AngelScriptAPI.h 387 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595
  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. Rect drawRect;
  242. bool enabled;
  243. /* readonly */
  244. bool enabledEffective;
  245. String entity;
  246. bool flipX;
  247. bool flipY;
  248. Vector2 hotSpot;
  249. /* readonly */
  250. uint id;
  251. /* readonly */
  252. bool inView;
  253. int layer;
  254. uint lightMask;
  255. float lodBias;
  256. LoopMode2D loopMode;
  257. uint maxLights;
  258. /* readonly */
  259. Node node;
  260. /* readonly */
  261. uint numAttributes;
  262. ObjectAnimation objectAnimation;
  263. bool occludee;
  264. bool occluder;
  265. int orderInLayer;
  266. /* readonly */
  267. int refs;
  268. float shadowDistance;
  269. uint shadowMask;
  270. float speed;
  271. Sprite2D sprite;
  272. bool temporary;
  273. Rect textureRect;
  274. /* readonly */
  275. StringHash type;
  276. /* readonly */
  277. String typeName;
  278. bool useDrawRect;
  279. bool useHotSpot;
  280. bool useTextureRect;
  281. uint viewMask;
  282. /* readonly */
  283. int weakRefs;
  284. /* readonly */
  285. BoundingBox worldBoundingBox;
  286. uint zoneMask;
  287. };
  288. class Animation
  289. {
  290. // Methods:
  291. void AddTrigger(const AnimationTriggerPoint&);
  292. void AddTrigger(float, bool, const Variant&);
  293. Animation Clone(const String& = String ( )) const;
  294. AnimationTrack CreateTrack(const String&);
  295. bool HasSubscribedToEvent(Object, const String&);
  296. bool HasSubscribedToEvent(const String&);
  297. bool Load(File);
  298. bool Load(VectorBuffer&);
  299. bool Load(const String&);
  300. bool RemoveAllTracks();
  301. void RemoveAllTriggers();
  302. bool RemoveTrack(const String&);
  303. void RemoveTrigger(uint);
  304. bool Save(File) const;
  305. bool Save(VectorBuffer&) const;
  306. bool Save(const String&) const;
  307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  308. // Properties:
  309. String animationName;
  310. /* readonly */
  311. String category;
  312. float length;
  313. /* readonly */
  314. uint memoryUse;
  315. String name;
  316. /* readonly */
  317. uint numTracks;
  318. uint numTriggers;
  319. /* readonly */
  320. int refs;
  321. /* readonly */
  322. Array<AnimationTrack> tracks;
  323. Array<AnimationTriggerPoint> triggers;
  324. /* readonly */
  325. StringHash type;
  326. /* readonly */
  327. String typeName;
  328. /* readonly */
  329. uint useTimer;
  330. /* readonly */
  331. int weakRefs;
  332. };
  333. class AnimationControl
  334. {
  335. // Properties:
  336. float autoFadeTime;
  337. float fadeTime;
  338. StringHash hash;
  339. String name;
  340. bool removeOnCompletion;
  341. float speed;
  342. float targetWeight;
  343. };
  344. class AnimationController
  345. {
  346. // Methods:
  347. void ApplyAttributes();
  348. void DrawDebugGeometry(DebugRenderer, bool);
  349. bool Fade(const String&, float, float);
  350. bool FadeOthers(const String&, float, float);
  351. AnimationState GetAnimationState(StringHash) const;
  352. AnimationState GetAnimationState(const String&) const;
  353. Variant GetAttribute(const String&) const;
  354. ValueAnimation GetAttributeAnimation(const String&) const;
  355. float GetAttributeAnimationSpeed(const String&) const;
  356. float GetAttributeAnimationTime(const String&) const;
  357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  358. Variant GetAttributeDefault(const String&) const;
  359. float GetAutoFade(const String&) const;
  360. AnimationBlendMode GetBlendMode(const String&) const;
  361. float GetFadeTarget(const String&) const;
  362. float GetFadeTime(const String&) const;
  363. bool GetInterceptNetworkUpdate(const String&) const;
  364. uint8 GetLayer(const String&) const;
  365. float GetLength(const String&) const;
  366. bool GetLooped(const String&) const;
  367. bool GetRemoveOnCompletion(const String&);
  368. float GetSpeed(const String&) const;
  369. float GetTime(const String&) const;
  370. float GetWeight(const String&) const;
  371. bool HasSubscribedToEvent(Object, const String&);
  372. bool HasSubscribedToEvent(const String&);
  373. bool IsAtEnd(const String&) const;
  374. bool IsFadingIn(const String&) const;
  375. bool IsFadingOut(const String&) const;
  376. bool IsPlaying(const String&) const;
  377. bool IsPlaying(uint8) const;
  378. bool Load(File, bool = false);
  379. bool Load(VectorBuffer&, bool = false);
  380. bool LoadJSON(const JSONValue&, bool = false);
  381. bool LoadXML(const XMLElement&, bool = false);
  382. void MarkNetworkUpdate() const;
  383. bool Play(const String&, uint8, bool, float = 0.0f);
  384. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  385. void Remove();
  386. void RemoveAttributeAnimation(const String&);
  387. void RemoveInstanceDefault();
  388. void RemoveObjectAnimation();
  389. void ResetToDefault();
  390. bool Save(File) const;
  391. bool Save(VectorBuffer&) const;
  392. bool SaveJSON(JSONValue&) const;
  393. bool SaveXML(XMLElement&) const;
  394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  395. void SetAnimationTime(float);
  396. bool SetAttribute(const String&, const Variant&);
  397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  398. void SetAttributeAnimationSpeed(const String&, float);
  399. void SetAttributeAnimationTime(const String&, float);
  400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  401. bool SetAutoFade(const String&, float);
  402. bool SetBlendMode(const String&, AnimationBlendMode);
  403. void SetInterceptNetworkUpdate(const String&, bool);
  404. bool SetLayer(const String&, uint8);
  405. bool SetLooped(const String&, bool);
  406. bool SetRemoveOnCompletion(const String&, bool);
  407. bool SetSpeed(const String&, float);
  408. bool SetStartBone(const String&, const String&);
  409. bool SetTime(const String&, float);
  410. bool SetWeight(const String&, float);
  411. void Stop(const String&, float = 0.0f);
  412. void StopAll(float = 0.0f);
  413. void StopLayer(uint8, float = 0.0f);
  414. const String& GetStartBone(const String&) const;
  415. // Properties:
  416. bool animationEnabled;
  417. /* readonly */
  418. Array<AnimationControl> animations;
  419. /* readonly */
  420. Array<Variant> attributeDefaults;
  421. /* readonly */
  422. Array<AttributeInfo> attributeInfos;
  423. Array<Variant> attributes;
  424. /* readonly */
  425. String category;
  426. bool enabled;
  427. /* readonly */
  428. bool enabledEffective;
  429. /* readonly */
  430. uint id;
  431. /* readonly */
  432. Node node;
  433. /* readonly */
  434. uint numAnimations;
  435. /* readonly */
  436. uint numAttributes;
  437. ObjectAnimation objectAnimation;
  438. /* readonly */
  439. int refs;
  440. bool temporary;
  441. /* readonly */
  442. StringHash type;
  443. /* readonly */
  444. String typeName;
  445. /* readonly */
  446. int weakRefs;
  447. };
  448. class AnimationKeyFrame
  449. {
  450. // Properties:
  451. Vector3 position;
  452. Quaternion rotation;
  453. Vector3 scale;
  454. float time;
  455. };
  456. class AnimationSet2D
  457. {
  458. // Methods:
  459. String GetAnimation(uint) const;
  460. bool HasSubscribedToEvent(Object, const String&);
  461. bool HasSubscribedToEvent(const String&);
  462. bool Load(File);
  463. bool Load(VectorBuffer&);
  464. bool Load(const String&);
  465. bool Save(File) const;
  466. bool Save(VectorBuffer&) const;
  467. bool Save(const String&) const;
  468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  469. // Properties:
  470. /* readonly */
  471. String category;
  472. /* readonly */
  473. uint memoryUse;
  474. String name;
  475. /* readonly */
  476. uint numAnimations;
  477. /* readonly */
  478. int refs;
  479. /* readonly */
  480. StringHash type;
  481. /* readonly */
  482. String typeName;
  483. /* readonly */
  484. uint useTimer;
  485. /* readonly */
  486. int weakRefs;
  487. };
  488. class AnimationState
  489. {
  490. // Methods:
  491. void AddTime(float);
  492. void AddWeight(float);
  493. void Apply();
  494. float GetBoneWeight(StringHash) const;
  495. float GetBoneWeight(uint) const;
  496. uint GetTrackIndex(StringHash) const;
  497. uint GetTrackIndex(const String&) const;
  498. void SetBoneWeight(StringHash, float, bool = false);
  499. void SetBoneWeight(const String&, float, bool = false);
  500. void SetBoneWeight(uint, float, bool = false);
  501. // Properties:
  502. /* readonly */
  503. Animation animation;
  504. AnimationBlendMode blendMode;
  505. Array<float> boneWeights;
  506. /* readonly */
  507. bool enabled;
  508. uint8 layer;
  509. /* readonly */
  510. float length;
  511. bool looped;
  512. /* readonly */
  513. AnimatedModel model;
  514. /* readonly */
  515. Node node;
  516. /* readonly */
  517. int refs;
  518. Bone startBone;
  519. float time;
  520. /* readonly */
  521. int weakRefs;
  522. float weight;
  523. };
  524. class AnimationTrack
  525. {
  526. // Methods:
  527. void AddKeyFrame(const AnimationKeyFrame&);
  528. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  529. void RemoveAllKeyFrames();
  530. void RemoveKeyFrame(uint);
  531. // Properties:
  532. uint8 channelMask;
  533. Array<AnimationKeyFrame> keyFrames;
  534. String name;
  535. StringHash nameHash;
  536. /* readonly */
  537. uint numKeyFrames;
  538. };
  539. class AnimationTriggerPoint
  540. {
  541. // Properties:
  542. Variant data;
  543. float time;
  544. };
  545. template <class T> class Array
  546. {
  547. // Methods:
  548. void Clear();
  549. void Erase(uint);
  550. int Find(const T&) const;
  551. int Find(uint, const T&) const;
  552. int FindByRef(const T&) const;
  553. int FindByRef(uint, const T&) const;
  554. void Insert(uint, const T&);
  555. void Pop();
  556. void Push(const T&);
  557. void Reserve(uint);
  558. void Resize(uint);
  559. void Reverse();
  560. void Sort();
  561. void Sort(uint, uint);
  562. void SortReverse();
  563. void SortReverse(uint, uint);
  564. // Properties:
  565. /* readonly */
  566. bool empty;
  567. uint length;
  568. };
  569. class AttributeInfo
  570. {
  571. // Properties:
  572. Variant defaultValue;
  573. /* readonly */
  574. Array<String> enumNames;
  575. uint mode;
  576. String name;
  577. VariantType type;
  578. /* readonly */
  579. Array<String> variantStructureElementNames;
  580. };
  581. class Audio
  582. {
  583. // Methods:
  584. bool HasMasterGain(const String&) const;
  585. bool HasSubscribedToEvent(Object, const String&);
  586. bool HasSubscribedToEvent(const String&);
  587. bool IsSoundTypePaused(const String&);
  588. void PauseSoundType(const String&);
  589. bool Play();
  590. void ResumeAll();
  591. void ResumeSoundType(const String&);
  592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  593. void SetMode(int, int, bool, bool = true);
  594. void Stop();
  595. // Properties:
  596. /* readonly */
  597. String category;
  598. /* readonly */
  599. bool initialized;
  600. /* readonly */
  601. bool interpolation;
  602. SoundListener listener;
  603. Array<float> masterGain;
  604. /* readonly */
  605. int mixRate;
  606. /* readonly */
  607. bool playing;
  608. /* readonly */
  609. int refs;
  610. /* readonly */
  611. uint sampleSize;
  612. /* readonly */
  613. bool stereo;
  614. /* readonly */
  615. StringHash type;
  616. /* readonly */
  617. String typeName;
  618. /* readonly */
  619. int weakRefs;
  620. };
  621. class BiasParameters
  622. {
  623. // Properties:
  624. float constantBias;
  625. float normalOffset;
  626. float slopeScaledBias;
  627. };
  628. class Billboard
  629. {
  630. // Properties:
  631. Color color;
  632. Vector3 direction;
  633. bool enabled;
  634. Vector3 position;
  635. float rotation;
  636. Vector2 size;
  637. Rect uv;
  638. };
  639. class BillboardSet
  640. {
  641. // Methods:
  642. void ApplyAttributes();
  643. void Commit();
  644. void DrawDebugGeometry(DebugRenderer, bool);
  645. Variant GetAttribute(const String&) const;
  646. ValueAnimation GetAttributeAnimation(const String&) const;
  647. float GetAttributeAnimationSpeed(const String&) const;
  648. float GetAttributeAnimationTime(const String&) const;
  649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  650. Variant GetAttributeDefault(const String&) const;
  651. bool GetInterceptNetworkUpdate(const String&) const;
  652. bool HasSubscribedToEvent(Object, const String&);
  653. bool HasSubscribedToEvent(const String&);
  654. bool IsInView(Camera) const;
  655. bool Load(File, bool = false);
  656. bool Load(VectorBuffer&, bool = false);
  657. bool LoadJSON(const JSONValue&, bool = false);
  658. bool LoadXML(const XMLElement&, bool = false);
  659. void MarkNetworkUpdate() const;
  660. void Remove();
  661. void RemoveAttributeAnimation(const String&);
  662. void RemoveInstanceDefault();
  663. void RemoveObjectAnimation();
  664. void ResetToDefault();
  665. bool Save(File) const;
  666. bool Save(VectorBuffer&) const;
  667. bool SaveJSON(JSONValue&) const;
  668. bool SaveXML(XMLElement&) const;
  669. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  670. void SetAnimationTime(float);
  671. bool SetAttribute(const String&, const Variant&);
  672. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  673. void SetAttributeAnimationSpeed(const String&, float);
  674. void SetAttributeAnimationTime(const String&, float);
  675. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  676. void SetInterceptNetworkUpdate(const String&, bool);
  677. // Properties:
  678. bool animationEnabled;
  679. float animationLodBias;
  680. /* readonly */
  681. Array<Variant> attributeDefaults;
  682. /* readonly */
  683. Array<AttributeInfo> attributeInfos;
  684. Array<Variant> attributes;
  685. /* readonly */
  686. Array<Billboard> billboards;
  687. /* readonly */
  688. BoundingBox boundingBox;
  689. bool castShadows;
  690. /* readonly */
  691. String category;
  692. float drawDistance;
  693. bool enabled;
  694. /* readonly */
  695. bool enabledEffective;
  696. FaceCameraMode faceCameraMode;
  697. bool fixedScreenSize;
  698. /* readonly */
  699. uint id;
  700. /* readonly */
  701. bool inView;
  702. uint lightMask;
  703. float lodBias;
  704. Material material;
  705. uint maxLights;
  706. float minAngle;
  707. /* readonly */
  708. Node node;
  709. /* readonly */
  710. uint numAttributes;
  711. uint numBillboards;
  712. ObjectAnimation objectAnimation;
  713. bool occludee;
  714. bool occluder;
  715. /* readonly */
  716. int refs;
  717. bool relative;
  718. bool scaled;
  719. float shadowDistance;
  720. uint shadowMask;
  721. bool sorted;
  722. bool temporary;
  723. /* readonly */
  724. StringHash type;
  725. /* readonly */
  726. String typeName;
  727. uint viewMask;
  728. /* readonly */
  729. int weakRefs;
  730. /* readonly */
  731. BoundingBox worldBoundingBox;
  732. /* readonly */
  733. Zone zone;
  734. uint zoneMask;
  735. };
  736. class Bone
  737. {
  738. // Properties:
  739. bool animated;
  740. BoundingBox boundingBox;
  741. Vector3 initialPosition;
  742. Quaternion initialRotation;
  743. Vector3 initialScale;
  744. String name;
  745. Node node;
  746. float radius;
  747. };
  748. class BorderImage
  749. {
  750. // Methods:
  751. void AddChild(UIElement);
  752. void AddTag(const String&);
  753. void AddTags(const String&, int8 = ';');
  754. void ApplyAttributes();
  755. void BringToFront();
  756. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  757. void DisableLayoutUpdate();
  758. IntVector2 ElementToScreen(const IntVector2&);
  759. void EnableLayoutUpdate();
  760. uint FindChild(UIElement) const;
  761. Variant GetAttribute(const String&) const;
  762. ValueAnimation GetAttributeAnimation(const String&) const;
  763. float GetAttributeAnimationSpeed(const String&) const;
  764. float GetAttributeAnimationTime(const String&) const;
  765. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  766. Variant GetAttributeDefault(const String&) const;
  767. UIElement GetChild(const String&, bool = false) const;
  768. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  769. Array<UIElement> GetChildren(bool = false) const;
  770. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  771. UIElement GetElementEventSender() const;
  772. bool GetInterceptNetworkUpdate(const String&) const;
  773. uint GetNumChildren(bool) const;
  774. bool HasSubscribedToEvent(Object, const String&);
  775. bool HasSubscribedToEvent(const String&);
  776. bool HasTag(const String&) const;
  777. void InsertChild(uint, UIElement);
  778. bool IsInside(IntVector2, bool);
  779. bool IsInsideCombined(IntVector2, bool);
  780. bool Load(File, bool = false);
  781. bool Load(VectorBuffer&, bool = false);
  782. UIElement LoadChildXML(XMLFile, XMLFile = null);
  783. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  784. bool LoadJSON(const JSONValue&, bool = false);
  785. bool LoadXML(File);
  786. bool LoadXML(VectorBuffer&);
  787. bool LoadXML(XMLFile, XMLFile);
  788. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  789. bool LoadXML(const XMLElement&, bool = false);
  790. void MarkNetworkUpdate() const;
  791. void Remove();
  792. void RemoveAllChildren();
  793. void RemoveAllTags();
  794. void RemoveAttributeAnimation(const String&);
  795. void RemoveChild(UIElement, uint = 0);
  796. void RemoveChild(uint);
  797. void RemoveInstanceDefault();
  798. void RemoveObjectAnimation();
  799. bool RemoveTag(const String&);
  800. void ResetDeepEnabled();
  801. void ResetToDefault();
  802. bool Save(File) const;
  803. bool Save(VectorBuffer&) const;
  804. bool SaveJSON(JSONValue&) const;
  805. bool SaveXML(File, const String& = "\t");
  806. bool SaveXML(VectorBuffer&, const String& = "\t");
  807. bool SaveXML(XMLElement&) const;
  808. IntVector2 ScreenToElement(const IntVector2&);
  809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  810. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  811. void SetAnimationTime(float);
  812. bool SetAttribute(const String&, const Variant&);
  813. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  814. void SetAttributeAnimationSpeed(const String&, float);
  815. void SetAttributeAnimationTime(const String&, float);
  816. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  817. void SetDeepEnabled(bool);
  818. void SetEnabledRecursive(bool);
  819. void SetFixedHeight(int);
  820. void SetFixedSize(int, int);
  821. void SetFixedWidth(int);
  822. void SetFullImageRect();
  823. void SetHoverOffset(int, int);
  824. void SetInterceptNetworkUpdate(const String&, bool);
  825. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  826. void SetMaxAnchor(float, float);
  827. void SetMaxSize(int, int);
  828. void SetMinAnchor(float, float);
  829. void SetMinSize(int, int);
  830. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  831. void SetPivot(float, float);
  832. void SetPosition(int, int);
  833. void SetSize(int, int);
  834. bool SetStyle(const String&, XMLFile = null);
  835. bool SetStyle(const XMLElement&);
  836. bool SetStyleAuto(XMLFile = null);
  837. void UpdateLayout();
  838. const Variant& GetVar(const StringHash&);
  839. // Properties:
  840. bool animationEnabled;
  841. /* readonly */
  842. Array<Variant> attributeDefaults;
  843. /* readonly */
  844. Array<AttributeInfo> attributeInfos;
  845. Array<Variant> attributes;
  846. BlendMode blendMode;
  847. IntRect border;
  848. bool bringToBack;
  849. bool bringToFront;
  850. /* readonly */
  851. String category;
  852. /* readonly */
  853. IntVector2 childOffset;
  854. /* readonly */
  855. Array<UIElement> children;
  856. IntRect clipBorder;
  857. bool clipChildren;
  858. /* writeonly */
  859. Color color;
  860. /* readonly */
  861. bool colorGradient;
  862. Array<Color> colors;
  863. /* readonly */
  864. IntRect combinedScreenRect;
  865. XMLFile defaultStyle;
  866. /* readonly */
  867. float derivedOpacity;
  868. /* readonly */
  869. uint dragButtonCombo;
  870. /* readonly */
  871. int dragButtonCount;
  872. uint dragDropMode;
  873. bool editable;
  874. bool elementEventSender;
  875. bool enableAnchor;
  876. bool enabled;
  877. /* readonly */
  878. bool enabledSelf;
  879. /* readonly */
  880. bool fixedHeight;
  881. /* readonly */
  882. bool fixedSize;
  883. /* readonly */
  884. bool fixedWidth;
  885. bool focus;
  886. FocusMode focusMode;
  887. int height;
  888. HorizontalAlignment horizontalAlignment;
  889. IntVector2 hoverOffset;
  890. /* readonly */
  891. bool hovering;
  892. IntRect imageBorder;
  893. IntRect imageRect;
  894. int indent;
  895. int indentSpacing;
  896. /* readonly */
  897. int indentWidth;
  898. bool internal;
  899. IntRect layoutBorder;
  900. Vector2 layoutFlexScale;
  901. LayoutMode layoutMode;
  902. int layoutSpacing;
  903. Vector2 maxAnchor;
  904. int maxHeight;
  905. IntVector2 maxOffset;
  906. IntVector2 maxSize;
  907. int maxWidth;
  908. Vector2 minAnchor;
  909. int minHeight;
  910. IntVector2 minOffset;
  911. IntVector2 minSize;
  912. int minWidth;
  913. String name;
  914. /* readonly */
  915. uint numAllChildren;
  916. /* readonly */
  917. uint numAttributes;
  918. /* readonly */
  919. uint numChildren;
  920. ObjectAnimation objectAnimation;
  921. float opacity;
  922. UIElement parent;
  923. Vector2 pivot;
  924. IntVector2 position;
  925. int priority;
  926. /* readonly */
  927. int refs;
  928. /* readonly */
  929. UIElement root;
  930. /* readonly */
  931. IntVector2 screenPosition;
  932. bool selected;
  933. IntVector2 size;
  934. bool sortChildren;
  935. String style;
  936. /* readonly */
  937. Array<String> tags;
  938. bool temporary;
  939. Texture texture;
  940. bool tiled;
  941. TraversalMode traversalMode;
  942. /* readonly */
  943. StringHash type;
  944. /* readonly */
  945. String typeName;
  946. bool useDerivedOpacity;
  947. /* readonly */
  948. VariantMap vars;
  949. VerticalAlignment verticalAlignment;
  950. bool visible;
  951. /* readonly */
  952. bool visibleEffective;
  953. /* readonly */
  954. int weakRefs;
  955. int width;
  956. };
  957. class BoundingBox
  958. {
  959. // Methods:
  960. void Clear();
  961. void Clip(const BoundingBox&);
  962. void Define(const BoundingBox&);
  963. void Define(const Frustum&);
  964. void Define(const Polyhedron&);
  965. void Define(const Sphere&);
  966. void Define(const Vector3&);
  967. void Define(const Vector3&, const Vector3&);
  968. void Define(float, float);
  969. bool Defined() const;
  970. Intersection IsInside(const BoundingBox&) const;
  971. Intersection IsInside(const Sphere&) const;
  972. Intersection IsInside(const Vector3&) const;
  973. Intersection IsInsideFast(const BoundingBox&) const;
  974. Intersection IsInsideFast(const Sphere&) const;
  975. void Merge(const BoundingBox&);
  976. void Merge(const Frustum&);
  977. void Merge(const Polyhedron&);
  978. void Merge(const Sphere&);
  979. void Merge(const Vector3&);
  980. Rect Projected(const Matrix4&) const;
  981. String ToString() const;
  982. void Transform(const Matrix3&);
  983. void Transform(const Matrix3x4&);
  984. BoundingBox Transformed(const Matrix3&) const;
  985. BoundingBox Transformed(const Matrix3x4&) const;
  986. // Properties:
  987. /* readonly */
  988. Vector3 center;
  989. /* readonly */
  990. Vector3 halfSize;
  991. Vector3 max;
  992. Vector3 min;
  993. /* readonly */
  994. Vector3 size;
  995. };
  996. class Button
  997. {
  998. // Methods:
  999. void AddChild(UIElement);
  1000. void AddTag(const String&);
  1001. void AddTags(const String&, int8 = ';');
  1002. void ApplyAttributes();
  1003. void BringToFront();
  1004. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1005. void DisableLayoutUpdate();
  1006. IntVector2 ElementToScreen(const IntVector2&);
  1007. void EnableLayoutUpdate();
  1008. uint FindChild(UIElement) const;
  1009. Variant GetAttribute(const String&) const;
  1010. ValueAnimation GetAttributeAnimation(const String&) const;
  1011. float GetAttributeAnimationSpeed(const String&) const;
  1012. float GetAttributeAnimationTime(const String&) const;
  1013. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1014. Variant GetAttributeDefault(const String&) const;
  1015. UIElement GetChild(const String&, bool = false) const;
  1016. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1017. Array<UIElement> GetChildren(bool = false) const;
  1018. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1019. UIElement GetElementEventSender() const;
  1020. bool GetInterceptNetworkUpdate(const String&) const;
  1021. uint GetNumChildren(bool) const;
  1022. bool HasSubscribedToEvent(Object, const String&);
  1023. bool HasSubscribedToEvent(const String&);
  1024. bool HasTag(const String&) const;
  1025. void InsertChild(uint, UIElement);
  1026. bool IsInside(IntVector2, bool);
  1027. bool IsInsideCombined(IntVector2, bool);
  1028. bool Load(File, bool = false);
  1029. bool Load(VectorBuffer&, bool = false);
  1030. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1031. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1032. bool LoadJSON(const JSONValue&, bool = false);
  1033. bool LoadXML(File);
  1034. bool LoadXML(VectorBuffer&);
  1035. bool LoadXML(XMLFile, XMLFile);
  1036. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1037. bool LoadXML(const XMLElement&, bool = false);
  1038. void MarkNetworkUpdate() const;
  1039. void Remove();
  1040. void RemoveAllChildren();
  1041. void RemoveAllTags();
  1042. void RemoveAttributeAnimation(const String&);
  1043. void RemoveChild(UIElement, uint = 0);
  1044. void RemoveChild(uint);
  1045. void RemoveInstanceDefault();
  1046. void RemoveObjectAnimation();
  1047. bool RemoveTag(const String&);
  1048. void ResetDeepEnabled();
  1049. void ResetToDefault();
  1050. bool Save(File) const;
  1051. bool Save(VectorBuffer&) const;
  1052. bool SaveJSON(JSONValue&) const;
  1053. bool SaveXML(File, const String& = "\t");
  1054. bool SaveXML(VectorBuffer&, const String& = "\t");
  1055. bool SaveXML(XMLElement&) const;
  1056. IntVector2 ScreenToElement(const IntVector2&);
  1057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1058. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1059. void SetAnimationTime(float);
  1060. bool SetAttribute(const String&, const Variant&);
  1061. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1062. void SetAttributeAnimationSpeed(const String&, float);
  1063. void SetAttributeAnimationTime(const String&, float);
  1064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1065. void SetDeepEnabled(bool);
  1066. void SetEnabledRecursive(bool);
  1067. void SetFixedHeight(int);
  1068. void SetFixedSize(int, int);
  1069. void SetFixedWidth(int);
  1070. void SetFullImageRect();
  1071. void SetHoverOffset(int, int);
  1072. void SetInterceptNetworkUpdate(const String&, bool);
  1073. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1074. void SetMaxAnchor(float, float);
  1075. void SetMaxSize(int, int);
  1076. void SetMinAnchor(float, float);
  1077. void SetMinSize(int, int);
  1078. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1079. void SetPivot(float, float);
  1080. void SetPosition(int, int);
  1081. void SetPressedChildOffset(int, int);
  1082. void SetPressedOffset(int, int);
  1083. void SetRepeat(float, float);
  1084. void SetSize(int, int);
  1085. bool SetStyle(const String&, XMLFile = null);
  1086. bool SetStyle(const XMLElement&);
  1087. bool SetStyleAuto(XMLFile = null);
  1088. void UpdateLayout();
  1089. const Variant& GetVar(const StringHash&);
  1090. // Properties:
  1091. bool animationEnabled;
  1092. /* readonly */
  1093. Array<Variant> attributeDefaults;
  1094. /* readonly */
  1095. Array<AttributeInfo> attributeInfos;
  1096. Array<Variant> attributes;
  1097. BlendMode blendMode;
  1098. IntRect border;
  1099. bool bringToBack;
  1100. bool bringToFront;
  1101. /* readonly */
  1102. String category;
  1103. /* readonly */
  1104. IntVector2 childOffset;
  1105. /* readonly */
  1106. Array<UIElement> children;
  1107. IntRect clipBorder;
  1108. bool clipChildren;
  1109. /* writeonly */
  1110. Color color;
  1111. /* readonly */
  1112. bool colorGradient;
  1113. Array<Color> colors;
  1114. /* readonly */
  1115. IntRect combinedScreenRect;
  1116. XMLFile defaultStyle;
  1117. /* readonly */
  1118. float derivedOpacity;
  1119. /* readonly */
  1120. uint dragButtonCombo;
  1121. /* readonly */
  1122. int dragButtonCount;
  1123. uint dragDropMode;
  1124. bool editable;
  1125. bool elementEventSender;
  1126. bool enableAnchor;
  1127. bool enabled;
  1128. /* readonly */
  1129. bool enabledSelf;
  1130. /* readonly */
  1131. bool fixedHeight;
  1132. /* readonly */
  1133. bool fixedSize;
  1134. /* readonly */
  1135. bool fixedWidth;
  1136. bool focus;
  1137. FocusMode focusMode;
  1138. int height;
  1139. HorizontalAlignment horizontalAlignment;
  1140. IntVector2 hoverOffset;
  1141. /* readonly */
  1142. bool hovering;
  1143. IntRect imageBorder;
  1144. IntRect imageRect;
  1145. int indent;
  1146. int indentSpacing;
  1147. /* readonly */
  1148. int indentWidth;
  1149. bool internal;
  1150. IntRect layoutBorder;
  1151. Vector2 layoutFlexScale;
  1152. LayoutMode layoutMode;
  1153. int layoutSpacing;
  1154. Vector2 maxAnchor;
  1155. int maxHeight;
  1156. IntVector2 maxOffset;
  1157. IntVector2 maxSize;
  1158. int maxWidth;
  1159. Vector2 minAnchor;
  1160. int minHeight;
  1161. IntVector2 minOffset;
  1162. IntVector2 minSize;
  1163. int minWidth;
  1164. String name;
  1165. /* readonly */
  1166. uint numAllChildren;
  1167. /* readonly */
  1168. uint numAttributes;
  1169. /* readonly */
  1170. uint numChildren;
  1171. ObjectAnimation objectAnimation;
  1172. float opacity;
  1173. UIElement parent;
  1174. Vector2 pivot;
  1175. IntVector2 position;
  1176. /* readonly */
  1177. bool pressed;
  1178. IntVector2 pressedChildOffset;
  1179. IntVector2 pressedOffset;
  1180. int priority;
  1181. /* readonly */
  1182. int refs;
  1183. float repeatDelay;
  1184. float repeatRate;
  1185. /* readonly */
  1186. UIElement root;
  1187. /* readonly */
  1188. IntVector2 screenPosition;
  1189. bool selected;
  1190. IntVector2 size;
  1191. bool sortChildren;
  1192. String style;
  1193. /* readonly */
  1194. Array<String> tags;
  1195. bool temporary;
  1196. Texture texture;
  1197. bool tiled;
  1198. TraversalMode traversalMode;
  1199. /* readonly */
  1200. StringHash type;
  1201. /* readonly */
  1202. String typeName;
  1203. bool useDerivedOpacity;
  1204. /* readonly */
  1205. VariantMap vars;
  1206. VerticalAlignment verticalAlignment;
  1207. bool visible;
  1208. /* readonly */
  1209. bool visibleEffective;
  1210. /* readonly */
  1211. int weakRefs;
  1212. int width;
  1213. };
  1214. class Camera
  1215. {
  1216. // Methods:
  1217. void ApplyAttributes();
  1218. void DrawDebugGeometry(DebugRenderer, bool);
  1219. Variant GetAttribute(const String&) const;
  1220. ValueAnimation GetAttributeAnimation(const String&) const;
  1221. float GetAttributeAnimationSpeed(const String&) const;
  1222. float GetAttributeAnimationTime(const String&) const;
  1223. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1224. Variant GetAttributeDefault(const String&) const;
  1225. float GetDistance(const Vector3&) const;
  1226. float GetDistanceSquared(const Vector3&) const;
  1227. bool GetInterceptNetworkUpdate(const String&) const;
  1228. Ray GetScreenRay(float, float) const;
  1229. Frustum GetSplitFrustum(float, float) const;
  1230. bool HasSubscribedToEvent(Object, const String&);
  1231. bool HasSubscribedToEvent(const String&);
  1232. bool Load(File, bool = false);
  1233. bool Load(VectorBuffer&, bool = false);
  1234. bool LoadJSON(const JSONValue&, bool = false);
  1235. bool LoadXML(const XMLElement&, bool = false);
  1236. void MarkNetworkUpdate() const;
  1237. void Remove();
  1238. void RemoveAttributeAnimation(const String&);
  1239. void RemoveInstanceDefault();
  1240. void RemoveObjectAnimation();
  1241. void ResetToDefault();
  1242. bool Save(File) const;
  1243. bool Save(VectorBuffer&) const;
  1244. bool SaveJSON(JSONValue&) const;
  1245. bool SaveXML(XMLElement&) const;
  1246. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1248. void SetAnimationTime(float);
  1249. bool SetAttribute(const String&, const Variant&);
  1250. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1251. void SetAttributeAnimationSpeed(const String&, float);
  1252. void SetAttributeAnimationTime(const String&, float);
  1253. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1254. void SetInterceptNetworkUpdate(const String&, bool);
  1255. void SetOrthoSize(const Vector2&);
  1256. Vector2 WorldToScreenPoint(const Vector3&) const;
  1257. // Properties:
  1258. bool animationEnabled;
  1259. float aspectRatio;
  1260. /* readonly */
  1261. Array<Variant> attributeDefaults;
  1262. /* readonly */
  1263. Array<AttributeInfo> attributeInfos;
  1264. Array<Variant> attributes;
  1265. bool autoAspectRatio;
  1266. /* readonly */
  1267. String category;
  1268. Plane clipPlane;
  1269. /* readonly */
  1270. Matrix3x4 effectiveWorldTransform;
  1271. bool enabled;
  1272. /* readonly */
  1273. bool enabledEffective;
  1274. float farClip;
  1275. FillMode fillMode;
  1276. float fov;
  1277. /* readonly */
  1278. Frustum frustum;
  1279. /* readonly */
  1280. Matrix4 gpuProjection;
  1281. /* readonly */
  1282. float halfViewSize;
  1283. /* readonly */
  1284. uint id;
  1285. float lodBias;
  1286. float nearClip;
  1287. /* readonly */
  1288. Node node;
  1289. /* readonly */
  1290. uint numAttributes;
  1291. ObjectAnimation objectAnimation;
  1292. float orthoSize;
  1293. bool orthographic;
  1294. Matrix4 projection;
  1295. Vector2 projectionOffset;
  1296. Plane reflectionPlane;
  1297. /* readonly */
  1298. int refs;
  1299. bool temporary;
  1300. /* readonly */
  1301. StringHash type;
  1302. /* readonly */
  1303. String typeName;
  1304. bool useClipping;
  1305. bool useReflection;
  1306. /* readonly */
  1307. Matrix3x4 view;
  1308. uint viewMask;
  1309. uint viewOverrideFlags;
  1310. /* readonly */
  1311. Frustum viewSpaceFrustum;
  1312. /* readonly */
  1313. int weakRefs;
  1314. float zoom;
  1315. };
  1316. class CascadeParameters
  1317. {
  1318. // Properties:
  1319. float biasAutoAdjust;
  1320. float fadeStart;
  1321. float split1;
  1322. float split2;
  1323. float split3;
  1324. float split4;
  1325. };
  1326. class CheckBox
  1327. {
  1328. // Methods:
  1329. void AddChild(UIElement);
  1330. void AddTag(const String&);
  1331. void AddTags(const String&, int8 = ';');
  1332. void ApplyAttributes();
  1333. void BringToFront();
  1334. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1335. void DisableLayoutUpdate();
  1336. IntVector2 ElementToScreen(const IntVector2&);
  1337. void EnableLayoutUpdate();
  1338. uint FindChild(UIElement) const;
  1339. Variant GetAttribute(const String&) const;
  1340. ValueAnimation GetAttributeAnimation(const String&) const;
  1341. float GetAttributeAnimationSpeed(const String&) const;
  1342. float GetAttributeAnimationTime(const String&) const;
  1343. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1344. Variant GetAttributeDefault(const String&) const;
  1345. UIElement GetChild(const String&, bool = false) const;
  1346. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1347. Array<UIElement> GetChildren(bool = false) const;
  1348. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1349. UIElement GetElementEventSender() const;
  1350. bool GetInterceptNetworkUpdate(const String&) const;
  1351. uint GetNumChildren(bool) const;
  1352. bool HasSubscribedToEvent(Object, const String&);
  1353. bool HasSubscribedToEvent(const String&);
  1354. bool HasTag(const String&) const;
  1355. void InsertChild(uint, UIElement);
  1356. bool IsInside(IntVector2, bool);
  1357. bool IsInsideCombined(IntVector2, bool);
  1358. bool Load(File, bool = false);
  1359. bool Load(VectorBuffer&, bool = false);
  1360. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1361. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1362. bool LoadJSON(const JSONValue&, bool = false);
  1363. bool LoadXML(File);
  1364. bool LoadXML(VectorBuffer&);
  1365. bool LoadXML(XMLFile, XMLFile);
  1366. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1367. bool LoadXML(const XMLElement&, bool = false);
  1368. void MarkNetworkUpdate() const;
  1369. void Remove();
  1370. void RemoveAllChildren();
  1371. void RemoveAllTags();
  1372. void RemoveAttributeAnimation(const String&);
  1373. void RemoveChild(UIElement, uint = 0);
  1374. void RemoveChild(uint);
  1375. void RemoveInstanceDefault();
  1376. void RemoveObjectAnimation();
  1377. bool RemoveTag(const String&);
  1378. void ResetDeepEnabled();
  1379. void ResetToDefault();
  1380. bool Save(File) const;
  1381. bool Save(VectorBuffer&) const;
  1382. bool SaveJSON(JSONValue&) const;
  1383. bool SaveXML(File, const String& = "\t");
  1384. bool SaveXML(VectorBuffer&, const String& = "\t");
  1385. bool SaveXML(XMLElement&) const;
  1386. IntVector2 ScreenToElement(const IntVector2&);
  1387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1388. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1389. void SetAnimationTime(float);
  1390. bool SetAttribute(const String&, const Variant&);
  1391. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1392. void SetAttributeAnimationSpeed(const String&, float);
  1393. void SetAttributeAnimationTime(const String&, float);
  1394. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1395. void SetCheckedOffset(int, int);
  1396. void SetDeepEnabled(bool);
  1397. void SetEnabledRecursive(bool);
  1398. void SetFixedHeight(int);
  1399. void SetFixedSize(int, int);
  1400. void SetFixedWidth(int);
  1401. void SetFullImageRect();
  1402. void SetHoverOffset(int, int);
  1403. void SetInterceptNetworkUpdate(const String&, bool);
  1404. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1405. void SetMaxAnchor(float, float);
  1406. void SetMaxSize(int, int);
  1407. void SetMinAnchor(float, float);
  1408. void SetMinSize(int, int);
  1409. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1410. void SetPivot(float, float);
  1411. void SetPosition(int, int);
  1412. void SetSize(int, int);
  1413. bool SetStyle(const String&, XMLFile = null);
  1414. bool SetStyle(const XMLElement&);
  1415. bool SetStyleAuto(XMLFile = null);
  1416. void UpdateLayout();
  1417. const Variant& GetVar(const StringHash&);
  1418. // Properties:
  1419. bool animationEnabled;
  1420. /* readonly */
  1421. Array<Variant> attributeDefaults;
  1422. /* readonly */
  1423. Array<AttributeInfo> attributeInfos;
  1424. Array<Variant> attributes;
  1425. BlendMode blendMode;
  1426. IntRect border;
  1427. bool bringToBack;
  1428. bool bringToFront;
  1429. /* readonly */
  1430. String category;
  1431. bool checked;
  1432. IntVector2 checkedOffset;
  1433. /* readonly */
  1434. IntVector2 childOffset;
  1435. /* readonly */
  1436. Array<UIElement> children;
  1437. IntRect clipBorder;
  1438. bool clipChildren;
  1439. /* writeonly */
  1440. Color color;
  1441. /* readonly */
  1442. bool colorGradient;
  1443. Array<Color> colors;
  1444. /* readonly */
  1445. IntRect combinedScreenRect;
  1446. XMLFile defaultStyle;
  1447. /* readonly */
  1448. float derivedOpacity;
  1449. /* readonly */
  1450. uint dragButtonCombo;
  1451. /* readonly */
  1452. int dragButtonCount;
  1453. uint dragDropMode;
  1454. bool editable;
  1455. bool elementEventSender;
  1456. bool enableAnchor;
  1457. bool enabled;
  1458. /* readonly */
  1459. bool enabledSelf;
  1460. /* readonly */
  1461. bool fixedHeight;
  1462. /* readonly */
  1463. bool fixedSize;
  1464. /* readonly */
  1465. bool fixedWidth;
  1466. bool focus;
  1467. FocusMode focusMode;
  1468. int height;
  1469. HorizontalAlignment horizontalAlignment;
  1470. IntVector2 hoverOffset;
  1471. /* readonly */
  1472. bool hovering;
  1473. IntRect imageBorder;
  1474. IntRect imageRect;
  1475. int indent;
  1476. int indentSpacing;
  1477. /* readonly */
  1478. int indentWidth;
  1479. bool internal;
  1480. IntRect layoutBorder;
  1481. Vector2 layoutFlexScale;
  1482. LayoutMode layoutMode;
  1483. int layoutSpacing;
  1484. Vector2 maxAnchor;
  1485. int maxHeight;
  1486. IntVector2 maxOffset;
  1487. IntVector2 maxSize;
  1488. int maxWidth;
  1489. Vector2 minAnchor;
  1490. int minHeight;
  1491. IntVector2 minOffset;
  1492. IntVector2 minSize;
  1493. int minWidth;
  1494. String name;
  1495. /* readonly */
  1496. uint numAllChildren;
  1497. /* readonly */
  1498. uint numAttributes;
  1499. /* readonly */
  1500. uint numChildren;
  1501. ObjectAnimation objectAnimation;
  1502. float opacity;
  1503. UIElement parent;
  1504. Vector2 pivot;
  1505. IntVector2 position;
  1506. int priority;
  1507. /* readonly */
  1508. int refs;
  1509. /* readonly */
  1510. UIElement root;
  1511. /* readonly */
  1512. IntVector2 screenPosition;
  1513. bool selected;
  1514. IntVector2 size;
  1515. bool sortChildren;
  1516. String style;
  1517. /* readonly */
  1518. Array<String> tags;
  1519. bool temporary;
  1520. Texture texture;
  1521. bool tiled;
  1522. TraversalMode traversalMode;
  1523. /* readonly */
  1524. StringHash type;
  1525. /* readonly */
  1526. String typeName;
  1527. bool useDerivedOpacity;
  1528. /* readonly */
  1529. VariantMap vars;
  1530. VerticalAlignment verticalAlignment;
  1531. bool visible;
  1532. /* readonly */
  1533. bool visibleEffective;
  1534. /* readonly */
  1535. int weakRefs;
  1536. int width;
  1537. };
  1538. class CollisionBox2D
  1539. {
  1540. // Methods:
  1541. void ApplyAttributes();
  1542. void DrawDebugGeometry(DebugRenderer, bool);
  1543. Variant GetAttribute(const String&) const;
  1544. ValueAnimation GetAttributeAnimation(const String&) const;
  1545. float GetAttributeAnimationSpeed(const String&) const;
  1546. float GetAttributeAnimationTime(const String&) const;
  1547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1548. Variant GetAttributeDefault(const String&) const;
  1549. bool GetInterceptNetworkUpdate(const String&) const;
  1550. bool HasSubscribedToEvent(Object, const String&);
  1551. bool HasSubscribedToEvent(const String&);
  1552. bool Load(File, bool = false);
  1553. bool Load(VectorBuffer&, bool = false);
  1554. bool LoadJSON(const JSONValue&, bool = false);
  1555. bool LoadXML(const XMLElement&, bool = false);
  1556. void MarkNetworkUpdate() const;
  1557. void Remove();
  1558. void RemoveAttributeAnimation(const String&);
  1559. void RemoveInstanceDefault();
  1560. void RemoveObjectAnimation();
  1561. void ResetToDefault();
  1562. bool Save(File) const;
  1563. bool Save(VectorBuffer&) const;
  1564. bool SaveJSON(JSONValue&) const;
  1565. bool SaveXML(XMLElement&) const;
  1566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1567. void SetAnimationTime(float);
  1568. bool SetAttribute(const String&, const Variant&);
  1569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1570. void SetAttributeAnimationSpeed(const String&, float);
  1571. void SetAttributeAnimationTime(const String&, float);
  1572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1573. void SetCenter(float, float);
  1574. void SetInterceptNetworkUpdate(const String&, bool);
  1575. void SetSize(float, float);
  1576. // Properties:
  1577. float angle;
  1578. bool animationEnabled;
  1579. /* readonly */
  1580. Array<Variant> attributeDefaults;
  1581. /* readonly */
  1582. Array<AttributeInfo> attributeInfos;
  1583. Array<Variant> attributes;
  1584. /* readonly */
  1585. String category;
  1586. int categoryBits;
  1587. Vector2 center;
  1588. float density;
  1589. bool enabled;
  1590. /* readonly */
  1591. bool enabledEffective;
  1592. float friction;
  1593. int groupIndex;
  1594. /* readonly */
  1595. uint id;
  1596. /* readonly */
  1597. float inertia;
  1598. int maskBits;
  1599. /* readonly */
  1600. float mass;
  1601. /* readonly */
  1602. Vector2 massCenter;
  1603. /* readonly */
  1604. Node node;
  1605. /* readonly */
  1606. uint numAttributes;
  1607. ObjectAnimation objectAnimation;
  1608. /* readonly */
  1609. int refs;
  1610. float restitution;
  1611. Vector2 size;
  1612. bool temporary;
  1613. bool trigger;
  1614. /* readonly */
  1615. StringHash type;
  1616. /* readonly */
  1617. String typeName;
  1618. /* readonly */
  1619. int weakRefs;
  1620. };
  1621. class CollisionChain2D
  1622. {
  1623. // Methods:
  1624. void ApplyAttributes();
  1625. void DrawDebugGeometry(DebugRenderer, bool);
  1626. Variant GetAttribute(const String&) const;
  1627. ValueAnimation GetAttributeAnimation(const String&) const;
  1628. float GetAttributeAnimationSpeed(const String&) const;
  1629. float GetAttributeAnimationTime(const String&) const;
  1630. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1631. Variant GetAttributeDefault(const String&) const;
  1632. bool GetInterceptNetworkUpdate(const String&) const;
  1633. Array<Vector2> GetVertices() const;
  1634. bool HasSubscribedToEvent(Object, const String&);
  1635. bool HasSubscribedToEvent(const String&);
  1636. bool Load(File, bool = false);
  1637. bool Load(VectorBuffer&, bool = false);
  1638. bool LoadJSON(const JSONValue&, bool = false);
  1639. bool LoadXML(const XMLElement&, bool = false);
  1640. void MarkNetworkUpdate() const;
  1641. void Remove();
  1642. void RemoveAttributeAnimation(const String&);
  1643. void RemoveInstanceDefault();
  1644. void RemoveObjectAnimation();
  1645. void ResetToDefault();
  1646. bool Save(File) const;
  1647. bool Save(VectorBuffer&) const;
  1648. bool SaveJSON(JSONValue&) const;
  1649. bool SaveXML(XMLElement&) const;
  1650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1651. void SetAnimationTime(float);
  1652. bool SetAttribute(const String&, const Variant&);
  1653. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1654. void SetAttributeAnimationSpeed(const String&, float);
  1655. void SetAttributeAnimationTime(const String&, float);
  1656. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1657. void SetInterceptNetworkUpdate(const String&, bool);
  1658. void SetVertex(uint, const Vector2&);
  1659. void SetVertices(Array<Vector2>);
  1660. const Vector2& GetVertex(uint) const;
  1661. // Properties:
  1662. bool animationEnabled;
  1663. /* readonly */
  1664. Array<Variant> attributeDefaults;
  1665. /* readonly */
  1666. Array<AttributeInfo> attributeInfos;
  1667. Array<Variant> attributes;
  1668. /* readonly */
  1669. String category;
  1670. int categoryBits;
  1671. float density;
  1672. bool enabled;
  1673. /* readonly */
  1674. bool enabledEffective;
  1675. float friction;
  1676. int groupIndex;
  1677. /* readonly */
  1678. uint id;
  1679. /* readonly */
  1680. float inertia;
  1681. bool loop;
  1682. int maskBits;
  1683. /* readonly */
  1684. float mass;
  1685. /* readonly */
  1686. Vector2 massCenter;
  1687. /* readonly */
  1688. Node node;
  1689. /* readonly */
  1690. uint numAttributes;
  1691. ObjectAnimation objectAnimation;
  1692. /* readonly */
  1693. int refs;
  1694. float restitution;
  1695. bool temporary;
  1696. bool trigger;
  1697. /* readonly */
  1698. StringHash type;
  1699. /* readonly */
  1700. String typeName;
  1701. uint vertexCount;
  1702. /* readonly */
  1703. int weakRefs;
  1704. };
  1705. class CollisionCircle2D
  1706. {
  1707. // Methods:
  1708. void ApplyAttributes();
  1709. void DrawDebugGeometry(DebugRenderer, bool);
  1710. Variant GetAttribute(const String&) const;
  1711. ValueAnimation GetAttributeAnimation(const String&) const;
  1712. float GetAttributeAnimationSpeed(const String&) const;
  1713. float GetAttributeAnimationTime(const String&) const;
  1714. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1715. Variant GetAttributeDefault(const String&) const;
  1716. bool GetInterceptNetworkUpdate(const String&) const;
  1717. bool HasSubscribedToEvent(Object, const String&);
  1718. bool HasSubscribedToEvent(const String&);
  1719. bool Load(File, bool = false);
  1720. bool Load(VectorBuffer&, bool = false);
  1721. bool LoadJSON(const JSONValue&, bool = false);
  1722. bool LoadXML(const XMLElement&, bool = false);
  1723. void MarkNetworkUpdate() const;
  1724. void Remove();
  1725. void RemoveAttributeAnimation(const String&);
  1726. void RemoveInstanceDefault();
  1727. void RemoveObjectAnimation();
  1728. void ResetToDefault();
  1729. bool Save(File) const;
  1730. bool Save(VectorBuffer&) const;
  1731. bool SaveJSON(JSONValue&) const;
  1732. bool SaveXML(XMLElement&) const;
  1733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1734. void SetAnimationTime(float);
  1735. bool SetAttribute(const String&, const Variant&);
  1736. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1737. void SetAttributeAnimationSpeed(const String&, float);
  1738. void SetAttributeAnimationTime(const String&, float);
  1739. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1740. void SetCenter(float, float);
  1741. void SetInterceptNetworkUpdate(const String&, bool);
  1742. // Properties:
  1743. bool animationEnabled;
  1744. /* readonly */
  1745. Array<Variant> attributeDefaults;
  1746. /* readonly */
  1747. Array<AttributeInfo> attributeInfos;
  1748. Array<Variant> attributes;
  1749. /* readonly */
  1750. String category;
  1751. int categoryBits;
  1752. Vector2 center;
  1753. float density;
  1754. bool enabled;
  1755. /* readonly */
  1756. bool enabledEffective;
  1757. float friction;
  1758. int groupIndex;
  1759. /* readonly */
  1760. uint id;
  1761. /* readonly */
  1762. float inertia;
  1763. int maskBits;
  1764. /* readonly */
  1765. float mass;
  1766. /* readonly */
  1767. Vector2 massCenter;
  1768. /* readonly */
  1769. Node node;
  1770. /* readonly */
  1771. uint numAttributes;
  1772. ObjectAnimation objectAnimation;
  1773. float radius;
  1774. /* readonly */
  1775. int refs;
  1776. float restitution;
  1777. bool temporary;
  1778. bool trigger;
  1779. /* readonly */
  1780. StringHash type;
  1781. /* readonly */
  1782. String typeName;
  1783. /* readonly */
  1784. int weakRefs;
  1785. };
  1786. class CollisionEdge2D
  1787. {
  1788. // Methods:
  1789. void ApplyAttributes();
  1790. void DrawDebugGeometry(DebugRenderer, bool);
  1791. Variant GetAttribute(const String&) const;
  1792. ValueAnimation GetAttributeAnimation(const String&) const;
  1793. float GetAttributeAnimationSpeed(const String&) const;
  1794. float GetAttributeAnimationTime(const String&) const;
  1795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1796. Variant GetAttributeDefault(const String&) const;
  1797. bool GetInterceptNetworkUpdate(const String&) const;
  1798. bool HasSubscribedToEvent(Object, const String&);
  1799. bool HasSubscribedToEvent(const String&);
  1800. bool Load(File, bool = false);
  1801. bool Load(VectorBuffer&, bool = false);
  1802. bool LoadJSON(const JSONValue&, bool = false);
  1803. bool LoadXML(const XMLElement&, bool = false);
  1804. void MarkNetworkUpdate() const;
  1805. void Remove();
  1806. void RemoveAttributeAnimation(const String&);
  1807. void RemoveInstanceDefault();
  1808. void RemoveObjectAnimation();
  1809. void ResetToDefault();
  1810. bool Save(File) const;
  1811. bool Save(VectorBuffer&) const;
  1812. bool SaveJSON(JSONValue&) const;
  1813. bool SaveXML(XMLElement&) const;
  1814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1815. void SetAnimationTime(float);
  1816. bool SetAttribute(const String&, const Variant&);
  1817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1818. void SetAttributeAnimationSpeed(const String&, float);
  1819. void SetAttributeAnimationTime(const String&, float);
  1820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1821. void SetInterceptNetworkUpdate(const String&, bool);
  1822. void SetVertices(const Vector2&, const Vector2&);
  1823. // Properties:
  1824. bool animationEnabled;
  1825. /* readonly */
  1826. Array<Variant> attributeDefaults;
  1827. /* readonly */
  1828. Array<AttributeInfo> attributeInfos;
  1829. Array<Variant> attributes;
  1830. /* readonly */
  1831. String category;
  1832. int categoryBits;
  1833. float density;
  1834. bool enabled;
  1835. /* readonly */
  1836. bool enabledEffective;
  1837. float friction;
  1838. int groupIndex;
  1839. /* readonly */
  1840. uint id;
  1841. /* readonly */
  1842. float inertia;
  1843. int maskBits;
  1844. /* readonly */
  1845. float mass;
  1846. /* readonly */
  1847. Vector2 massCenter;
  1848. /* readonly */
  1849. Node node;
  1850. /* readonly */
  1851. uint numAttributes;
  1852. ObjectAnimation objectAnimation;
  1853. /* readonly */
  1854. int refs;
  1855. float restitution;
  1856. bool temporary;
  1857. bool trigger;
  1858. /* readonly */
  1859. StringHash type;
  1860. /* readonly */
  1861. String typeName;
  1862. Vector2 vertex1;
  1863. Vector2 vertex2;
  1864. /* readonly */
  1865. int weakRefs;
  1866. };
  1867. class CollisionPolygon2D
  1868. {
  1869. // Methods:
  1870. void ApplyAttributes();
  1871. void DrawDebugGeometry(DebugRenderer, bool);
  1872. Variant GetAttribute(const String&) const;
  1873. ValueAnimation GetAttributeAnimation(const String&) const;
  1874. float GetAttributeAnimationSpeed(const String&) const;
  1875. float GetAttributeAnimationTime(const String&) const;
  1876. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1877. Variant GetAttributeDefault(const String&) const;
  1878. bool GetInterceptNetworkUpdate(const String&) const;
  1879. Array<Vector2> GetVertices() const;
  1880. bool HasSubscribedToEvent(Object, const String&);
  1881. bool HasSubscribedToEvent(const String&);
  1882. bool Load(File, bool = false);
  1883. bool Load(VectorBuffer&, bool = false);
  1884. bool LoadJSON(const JSONValue&, bool = false);
  1885. bool LoadXML(const XMLElement&, bool = false);
  1886. void MarkNetworkUpdate() const;
  1887. void Remove();
  1888. void RemoveAttributeAnimation(const String&);
  1889. void RemoveInstanceDefault();
  1890. void RemoveObjectAnimation();
  1891. void ResetToDefault();
  1892. bool Save(File) const;
  1893. bool Save(VectorBuffer&) const;
  1894. bool SaveJSON(JSONValue&) const;
  1895. bool SaveXML(XMLElement&) const;
  1896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1897. void SetAnimationTime(float);
  1898. bool SetAttribute(const String&, const Variant&);
  1899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1900. void SetAttributeAnimationSpeed(const String&, float);
  1901. void SetAttributeAnimationTime(const String&, float);
  1902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1903. void SetInterceptNetworkUpdate(const String&, bool);
  1904. void SetVertex(uint, const Vector2&);
  1905. void SetVertices(Array<Vector2>);
  1906. const Vector2& GetVertex(uint) const;
  1907. // Properties:
  1908. bool animationEnabled;
  1909. /* readonly */
  1910. Array<Variant> attributeDefaults;
  1911. /* readonly */
  1912. Array<AttributeInfo> attributeInfos;
  1913. Array<Variant> attributes;
  1914. /* readonly */
  1915. String category;
  1916. int categoryBits;
  1917. float density;
  1918. bool enabled;
  1919. /* readonly */
  1920. bool enabledEffective;
  1921. float friction;
  1922. int groupIndex;
  1923. /* readonly */
  1924. uint id;
  1925. /* readonly */
  1926. float inertia;
  1927. int maskBits;
  1928. /* readonly */
  1929. float mass;
  1930. /* readonly */
  1931. Vector2 massCenter;
  1932. /* readonly */
  1933. Node node;
  1934. /* readonly */
  1935. uint numAttributes;
  1936. ObjectAnimation objectAnimation;
  1937. /* readonly */
  1938. int refs;
  1939. float restitution;
  1940. bool temporary;
  1941. bool trigger;
  1942. /* readonly */
  1943. StringHash type;
  1944. /* readonly */
  1945. String typeName;
  1946. uint vertexCount;
  1947. /* readonly */
  1948. int weakRefs;
  1949. };
  1950. class CollisionShape
  1951. {
  1952. // Methods:
  1953. void ApplyAttributes();
  1954. void DrawDebugGeometry(DebugRenderer, bool);
  1955. Variant GetAttribute(const String&) const;
  1956. ValueAnimation GetAttributeAnimation(const String&) const;
  1957. float GetAttributeAnimationSpeed(const String&) const;
  1958. float GetAttributeAnimationTime(const String&) const;
  1959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1960. Variant GetAttributeDefault(const String&) const;
  1961. bool GetInterceptNetworkUpdate(const String&) const;
  1962. bool HasSubscribedToEvent(Object, const String&);
  1963. bool HasSubscribedToEvent(const String&);
  1964. bool Load(File, bool = false);
  1965. bool Load(VectorBuffer&, bool = false);
  1966. bool LoadJSON(const JSONValue&, bool = false);
  1967. bool LoadXML(const XMLElement&, bool = false);
  1968. void MarkNetworkUpdate() const;
  1969. void Remove();
  1970. void RemoveAttributeAnimation(const String&);
  1971. void RemoveInstanceDefault();
  1972. void RemoveObjectAnimation();
  1973. void ResetToDefault();
  1974. bool Save(File) const;
  1975. bool Save(VectorBuffer&) const;
  1976. bool SaveJSON(JSONValue&) const;
  1977. bool SaveXML(XMLElement&) const;
  1978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1979. void SetAnimationTime(float);
  1980. bool SetAttribute(const String&, const Variant&);
  1981. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1982. void SetAttributeAnimationSpeed(const String&, float);
  1983. void SetAttributeAnimationTime(const String&, float);
  1984. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1985. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1986. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1987. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1988. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1989. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1990. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1991. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1992. void SetInterceptNetworkUpdate(const String&, bool);
  1993. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1994. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1995. void SetTerrain(uint = 0);
  1996. void SetTransform(const Vector3&, const Quaternion&);
  1997. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1998. // Properties:
  1999. bool animationEnabled;
  2000. /* readonly */
  2001. Array<Variant> attributeDefaults;
  2002. /* readonly */
  2003. Array<AttributeInfo> attributeInfos;
  2004. Array<Variant> attributes;
  2005. /* readonly */
  2006. String category;
  2007. bool enabled;
  2008. /* readonly */
  2009. bool enabledEffective;
  2010. /* readonly */
  2011. uint id;
  2012. uint lodLevel;
  2013. float margin;
  2014. Model model;
  2015. /* readonly */
  2016. Node node;
  2017. /* readonly */
  2018. uint numAttributes;
  2019. ObjectAnimation objectAnimation;
  2020. Vector3 position;
  2021. /* readonly */
  2022. int refs;
  2023. Quaternion rotation;
  2024. ShapeType shapeType;
  2025. Vector3 size;
  2026. bool temporary;
  2027. /* readonly */
  2028. StringHash type;
  2029. /* readonly */
  2030. String typeName;
  2031. /* readonly */
  2032. int weakRefs;
  2033. /* readonly */
  2034. BoundingBox worldBoundingBox;
  2035. };
  2036. class CollisionShape2D
  2037. {
  2038. // Methods:
  2039. void ApplyAttributes();
  2040. void DrawDebugGeometry(DebugRenderer, bool);
  2041. Variant GetAttribute(const String&) const;
  2042. ValueAnimation GetAttributeAnimation(const String&) const;
  2043. float GetAttributeAnimationSpeed(const String&) const;
  2044. float GetAttributeAnimationTime(const String&) const;
  2045. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2046. Variant GetAttributeDefault(const String&) const;
  2047. bool GetInterceptNetworkUpdate(const String&) const;
  2048. bool HasSubscribedToEvent(Object, const String&);
  2049. bool HasSubscribedToEvent(const String&);
  2050. bool Load(File, bool = false);
  2051. bool Load(VectorBuffer&, bool = false);
  2052. bool LoadJSON(const JSONValue&, bool = false);
  2053. bool LoadXML(const XMLElement&, bool = false);
  2054. void MarkNetworkUpdate() const;
  2055. void Remove();
  2056. void RemoveAttributeAnimation(const String&);
  2057. void RemoveInstanceDefault();
  2058. void RemoveObjectAnimation();
  2059. void ResetToDefault();
  2060. bool Save(File) const;
  2061. bool Save(VectorBuffer&) const;
  2062. bool SaveJSON(JSONValue&) const;
  2063. bool SaveXML(XMLElement&) const;
  2064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2065. void SetAnimationTime(float);
  2066. bool SetAttribute(const String&, const Variant&);
  2067. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2068. void SetAttributeAnimationSpeed(const String&, float);
  2069. void SetAttributeAnimationTime(const String&, float);
  2070. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2071. void SetInterceptNetworkUpdate(const String&, bool);
  2072. // Properties:
  2073. bool animationEnabled;
  2074. /* readonly */
  2075. Array<Variant> attributeDefaults;
  2076. /* readonly */
  2077. Array<AttributeInfo> attributeInfos;
  2078. Array<Variant> attributes;
  2079. /* readonly */
  2080. String category;
  2081. int categoryBits;
  2082. float density;
  2083. bool enabled;
  2084. /* readonly */
  2085. bool enabledEffective;
  2086. float friction;
  2087. int groupIndex;
  2088. /* readonly */
  2089. uint id;
  2090. /* readonly */
  2091. float inertia;
  2092. int maskBits;
  2093. /* readonly */
  2094. float mass;
  2095. /* readonly */
  2096. Vector2 massCenter;
  2097. /* readonly */
  2098. Node node;
  2099. /* readonly */
  2100. uint numAttributes;
  2101. ObjectAnimation objectAnimation;
  2102. /* readonly */
  2103. int refs;
  2104. float restitution;
  2105. bool temporary;
  2106. bool trigger;
  2107. /* readonly */
  2108. StringHash type;
  2109. /* readonly */
  2110. String typeName;
  2111. /* readonly */
  2112. int weakRefs;
  2113. };
  2114. class Color
  2115. {
  2116. // Methods:
  2117. Color Abs() const;
  2118. float Average() const;
  2119. float Chroma() const;
  2120. void Clip(bool);
  2121. bool Equals() const;
  2122. void FromHSL(float, float, float, float);
  2123. void FromHSV(float, float, float, float);
  2124. float Hue() const;
  2125. void Invert(bool);
  2126. Color Lerp(const Color&, float) const;
  2127. float Lightness() const;
  2128. float Luma() const;
  2129. float MaxRGB() const;
  2130. float MinRGB() const;
  2131. float Range() const;
  2132. float SaturationHSL() const;
  2133. float SaturationHSV() const;
  2134. float SumRGB() const;
  2135. Vector3 ToHSL() const;
  2136. Vector3 ToHSV() const;
  2137. String ToString() const;
  2138. uint ToUInt() const;
  2139. float Value() const;
  2140. // Properties:
  2141. float a;
  2142. float b;
  2143. /* readonly */
  2144. Array<float> data;
  2145. float g;
  2146. float r;
  2147. /* readonly */
  2148. Vector3 rgb;
  2149. /* readonly */
  2150. Vector4 rgba;
  2151. };
  2152. class ColorFrame
  2153. {
  2154. // Properties:
  2155. Color color;
  2156. float time;
  2157. };
  2158. class Component
  2159. {
  2160. // Methods:
  2161. void ApplyAttributes();
  2162. void DrawDebugGeometry(DebugRenderer, bool);
  2163. Variant GetAttribute(const String&) const;
  2164. ValueAnimation GetAttributeAnimation(const String&) const;
  2165. float GetAttributeAnimationSpeed(const String&) const;
  2166. float GetAttributeAnimationTime(const String&) const;
  2167. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2168. Variant GetAttributeDefault(const String&) const;
  2169. bool GetInterceptNetworkUpdate(const String&) const;
  2170. bool HasSubscribedToEvent(Object, const String&);
  2171. bool HasSubscribedToEvent(const String&);
  2172. bool Load(File, bool = false);
  2173. bool Load(VectorBuffer&, bool = false);
  2174. bool LoadJSON(const JSONValue&, bool = false);
  2175. bool LoadXML(const XMLElement&, bool = false);
  2176. void MarkNetworkUpdate() const;
  2177. void Remove();
  2178. void RemoveAttributeAnimation(const String&);
  2179. void RemoveInstanceDefault();
  2180. void RemoveObjectAnimation();
  2181. void ResetToDefault();
  2182. bool Save(File) const;
  2183. bool Save(VectorBuffer&) const;
  2184. bool SaveJSON(JSONValue&) const;
  2185. bool SaveXML(XMLElement&) const;
  2186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2187. void SetAnimationTime(float);
  2188. bool SetAttribute(const String&, const Variant&);
  2189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2190. void SetAttributeAnimationSpeed(const String&, float);
  2191. void SetAttributeAnimationTime(const String&, float);
  2192. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2193. void SetInterceptNetworkUpdate(const String&, bool);
  2194. // Properties:
  2195. bool animationEnabled;
  2196. /* readonly */
  2197. Array<Variant> attributeDefaults;
  2198. /* readonly */
  2199. Array<AttributeInfo> attributeInfos;
  2200. Array<Variant> attributes;
  2201. /* readonly */
  2202. String category;
  2203. bool enabled;
  2204. /* readonly */
  2205. bool enabledEffective;
  2206. /* readonly */
  2207. uint id;
  2208. /* readonly */
  2209. Node node;
  2210. /* readonly */
  2211. uint numAttributes;
  2212. ObjectAnimation objectAnimation;
  2213. /* readonly */
  2214. int refs;
  2215. bool temporary;
  2216. /* readonly */
  2217. StringHash type;
  2218. /* readonly */
  2219. String typeName;
  2220. /* readonly */
  2221. int weakRefs;
  2222. };
  2223. class Connection
  2224. {
  2225. // Methods:
  2226. void Disconnect(int = 0);
  2227. bool HasSubscribedToEvent(Object, const String&);
  2228. bool HasSubscribedToEvent(const String&);
  2229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2230. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2231. void SendPackageToClient(PackageFile);
  2232. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2233. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2234. String ToString() const;
  2235. // Properties:
  2236. /* readonly */
  2237. String address;
  2238. /* readonly */
  2239. float bytesInPerSec;
  2240. /* readonly */
  2241. float bytesOutPerSec;
  2242. /* readonly */
  2243. String category;
  2244. /* readonly */
  2245. bool client;
  2246. /* readonly */
  2247. bool connectPending;
  2248. /* readonly */
  2249. bool connected;
  2250. Controls controls;
  2251. /* readonly */
  2252. String downloadName;
  2253. /* readonly */
  2254. float downloadProgress;
  2255. VariantMap identity;
  2256. /* readonly */
  2257. float lastHeardTime;
  2258. bool logStatistics;
  2259. /* readonly */
  2260. uint numDownloads;
  2261. /* readonly */
  2262. float packetsInPerSec;
  2263. /* readonly */
  2264. float packetsOutPerSec;
  2265. /* readonly */
  2266. uint16 port;
  2267. Vector3 position;
  2268. /* readonly */
  2269. int refs;
  2270. Quaternion rotation;
  2271. /* readonly */
  2272. float roundTripTime;
  2273. Scene scene;
  2274. /* readonly */
  2275. bool sceneLoaded;
  2276. uint8 timeStamp;
  2277. /* readonly */
  2278. StringHash type;
  2279. /* readonly */
  2280. String typeName;
  2281. /* readonly */
  2282. int weakRefs;
  2283. };
  2284. class Console
  2285. {
  2286. // Methods:
  2287. void AddAutoComplete(const String&);
  2288. void CopySelectedRows() const;
  2289. bool HasSubscribedToEvent(Object, const String&);
  2290. bool HasSubscribedToEvent(const String&);
  2291. void RemoveAutoComplete(const String&);
  2292. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2293. void Toggle();
  2294. void UpdateElements();
  2295. // Properties:
  2296. bool autoVisibleOnError;
  2297. /* readonly */
  2298. BorderImage background;
  2299. /* readonly */
  2300. String category;
  2301. /* readonly */
  2302. Button closeButton;
  2303. String commandInterpreter;
  2304. XMLFile defaultStyle;
  2305. bool focusOnShow;
  2306. /* readonly */
  2307. uint historyPosition;
  2308. /* readonly */
  2309. Array<String> historyRow;
  2310. /* readonly */
  2311. LineEdit lineEdit;
  2312. uint numBufferedRows;
  2313. uint numHistoryRows;
  2314. uint numRows;
  2315. /* readonly */
  2316. int refs;
  2317. /* readonly */
  2318. StringHash type;
  2319. /* readonly */
  2320. String typeName;
  2321. bool visible;
  2322. /* readonly */
  2323. int weakRefs;
  2324. };
  2325. class Constraint
  2326. {
  2327. // Methods:
  2328. void ApplyAttributes();
  2329. void DrawDebugGeometry(DebugRenderer, bool);
  2330. Variant GetAttribute(const String&) const;
  2331. ValueAnimation GetAttributeAnimation(const String&) const;
  2332. float GetAttributeAnimationSpeed(const String&) const;
  2333. float GetAttributeAnimationTime(const String&) const;
  2334. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2335. Variant GetAttributeDefault(const String&) const;
  2336. bool GetInterceptNetworkUpdate(const String&) const;
  2337. bool HasSubscribedToEvent(Object, const String&);
  2338. bool HasSubscribedToEvent(const String&);
  2339. bool Load(File, bool = false);
  2340. bool Load(VectorBuffer&, bool = false);
  2341. bool LoadJSON(const JSONValue&, bool = false);
  2342. bool LoadXML(const XMLElement&, bool = false);
  2343. void MarkNetworkUpdate() const;
  2344. void Remove();
  2345. void RemoveAttributeAnimation(const String&);
  2346. void RemoveInstanceDefault();
  2347. void RemoveObjectAnimation();
  2348. void ResetToDefault();
  2349. bool Save(File) const;
  2350. bool Save(VectorBuffer&) const;
  2351. bool SaveJSON(JSONValue&) const;
  2352. bool SaveXML(XMLElement&) const;
  2353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2354. void SetAnimationTime(float);
  2355. bool SetAttribute(const String&, const Variant&);
  2356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2357. void SetAttributeAnimationSpeed(const String&, float);
  2358. void SetAttributeAnimationTime(const String&, float);
  2359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2360. void SetInterceptNetworkUpdate(const String&, bool);
  2361. // Properties:
  2362. bool animationEnabled;
  2363. /* readonly */
  2364. Array<Variant> attributeDefaults;
  2365. /* readonly */
  2366. Array<AttributeInfo> attributeInfos;
  2367. Array<Variant> attributes;
  2368. /* writeonly */
  2369. Vector3 axis;
  2370. /* readonly */
  2371. String category;
  2372. float cfm;
  2373. ConstraintType constraintType;
  2374. bool disableCollision;
  2375. bool enabled;
  2376. /* readonly */
  2377. bool enabledEffective;
  2378. float erp;
  2379. Vector2 highLimit;
  2380. /* readonly */
  2381. uint id;
  2382. Vector2 lowLimit;
  2383. /* readonly */
  2384. Node node;
  2385. /* readonly */
  2386. uint numAttributes;
  2387. ObjectAnimation objectAnimation;
  2388. /* writeonly */
  2389. Vector3 otherAxis;
  2390. RigidBody otherBody;
  2391. Vector3 otherPosition;
  2392. Quaternion otherRotation;
  2393. /* readonly */
  2394. RigidBody ownBody;
  2395. Vector3 position;
  2396. /* readonly */
  2397. int refs;
  2398. Quaternion rotation;
  2399. bool temporary;
  2400. /* readonly */
  2401. StringHash type;
  2402. /* readonly */
  2403. String typeName;
  2404. /* readonly */
  2405. int weakRefs;
  2406. Vector3 worldPosition;
  2407. };
  2408. class Constraint2D
  2409. {
  2410. // Methods:
  2411. void ApplyAttributes();
  2412. void DrawDebugGeometry(DebugRenderer, bool);
  2413. Variant GetAttribute(const String&) const;
  2414. ValueAnimation GetAttributeAnimation(const String&) const;
  2415. float GetAttributeAnimationSpeed(const String&) const;
  2416. float GetAttributeAnimationTime(const String&) const;
  2417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2418. Variant GetAttributeDefault(const String&) const;
  2419. bool GetInterceptNetworkUpdate(const String&) const;
  2420. bool HasSubscribedToEvent(Object, const String&);
  2421. bool HasSubscribedToEvent(const String&);
  2422. bool Load(File, bool = false);
  2423. bool Load(VectorBuffer&, bool = false);
  2424. bool LoadJSON(const JSONValue&, bool = false);
  2425. bool LoadXML(const XMLElement&, bool = false);
  2426. void MarkNetworkUpdate() const;
  2427. void Remove();
  2428. void RemoveAttributeAnimation(const String&);
  2429. void RemoveInstanceDefault();
  2430. void RemoveObjectAnimation();
  2431. void ResetToDefault();
  2432. bool Save(File) const;
  2433. bool Save(VectorBuffer&) const;
  2434. bool SaveJSON(JSONValue&) const;
  2435. bool SaveXML(XMLElement&) const;
  2436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2437. void SetAnimationTime(float);
  2438. bool SetAttribute(const String&, const Variant&);
  2439. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2440. void SetAttributeAnimationSpeed(const String&, float);
  2441. void SetAttributeAnimationTime(const String&, float);
  2442. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2443. void SetInterceptNetworkUpdate(const String&, bool);
  2444. // Properties:
  2445. bool animationEnabled;
  2446. /* readonly */
  2447. Array<Variant> attributeDefaults;
  2448. /* readonly */
  2449. Array<AttributeInfo> attributeInfos;
  2450. Array<Variant> attributes;
  2451. /* readonly */
  2452. String category;
  2453. bool collideConnected;
  2454. bool enabled;
  2455. /* readonly */
  2456. bool enabledEffective;
  2457. /* readonly */
  2458. uint id;
  2459. /* readonly */
  2460. Node node;
  2461. /* readonly */
  2462. uint numAttributes;
  2463. ObjectAnimation objectAnimation;
  2464. RigidBody2D otherBody;
  2465. /* readonly */
  2466. RigidBody2D ownerBody;
  2467. /* readonly */
  2468. int refs;
  2469. bool temporary;
  2470. /* readonly */
  2471. StringHash type;
  2472. /* readonly */
  2473. String typeName;
  2474. /* readonly */
  2475. int weakRefs;
  2476. };
  2477. class ConstraintDistance2D
  2478. {
  2479. // Methods:
  2480. void ApplyAttributes();
  2481. void DrawDebugGeometry(DebugRenderer, bool);
  2482. Variant GetAttribute(const String&) const;
  2483. ValueAnimation GetAttributeAnimation(const String&) const;
  2484. float GetAttributeAnimationSpeed(const String&) const;
  2485. float GetAttributeAnimationTime(const String&) const;
  2486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2487. Variant GetAttributeDefault(const String&) const;
  2488. bool GetInterceptNetworkUpdate(const String&) const;
  2489. bool HasSubscribedToEvent(Object, const String&);
  2490. bool HasSubscribedToEvent(const String&);
  2491. bool Load(File, bool = false);
  2492. bool Load(VectorBuffer&, bool = false);
  2493. bool LoadJSON(const JSONValue&, bool = false);
  2494. bool LoadXML(const XMLElement&, bool = false);
  2495. void MarkNetworkUpdate() const;
  2496. void Remove();
  2497. void RemoveAttributeAnimation(const String&);
  2498. void RemoveInstanceDefault();
  2499. void RemoveObjectAnimation();
  2500. void ResetToDefault();
  2501. bool Save(File) const;
  2502. bool Save(VectorBuffer&) const;
  2503. bool SaveJSON(JSONValue&) const;
  2504. bool SaveXML(XMLElement&) const;
  2505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2506. void SetAnimationTime(float);
  2507. bool SetAttribute(const String&, const Variant&);
  2508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2509. void SetAttributeAnimationSpeed(const String&, float);
  2510. void SetAttributeAnimationTime(const String&, float);
  2511. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2512. void SetInterceptNetworkUpdate(const String&, bool);
  2513. // Properties:
  2514. bool animationEnabled;
  2515. /* readonly */
  2516. Array<Variant> attributeDefaults;
  2517. /* readonly */
  2518. Array<AttributeInfo> attributeInfos;
  2519. Array<Variant> attributes;
  2520. /* readonly */
  2521. String category;
  2522. bool collideConnected;
  2523. float dampingRatio;
  2524. bool enabled;
  2525. /* readonly */
  2526. bool enabledEffective;
  2527. float frequencyHz;
  2528. /* readonly */
  2529. uint id;
  2530. float length;
  2531. /* readonly */
  2532. Node node;
  2533. /* readonly */
  2534. uint numAttributes;
  2535. ObjectAnimation objectAnimation;
  2536. RigidBody2D otherBody;
  2537. Vector2 otherBodyAnchor;
  2538. /* readonly */
  2539. RigidBody2D ownerBody;
  2540. Vector2 ownerBodyAnchor;
  2541. /* readonly */
  2542. int refs;
  2543. bool temporary;
  2544. /* readonly */
  2545. StringHash type;
  2546. /* readonly */
  2547. String typeName;
  2548. /* readonly */
  2549. int weakRefs;
  2550. };
  2551. class ConstraintFriction2D
  2552. {
  2553. // Methods:
  2554. void ApplyAttributes();
  2555. void DrawDebugGeometry(DebugRenderer, bool);
  2556. Variant GetAttribute(const String&) const;
  2557. ValueAnimation GetAttributeAnimation(const String&) const;
  2558. float GetAttributeAnimationSpeed(const String&) const;
  2559. float GetAttributeAnimationTime(const String&) const;
  2560. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2561. Variant GetAttributeDefault(const String&) const;
  2562. bool GetInterceptNetworkUpdate(const String&) const;
  2563. bool HasSubscribedToEvent(Object, const String&);
  2564. bool HasSubscribedToEvent(const String&);
  2565. bool Load(File, bool = false);
  2566. bool Load(VectorBuffer&, bool = false);
  2567. bool LoadJSON(const JSONValue&, bool = false);
  2568. bool LoadXML(const XMLElement&, bool = false);
  2569. void MarkNetworkUpdate() const;
  2570. void Remove();
  2571. void RemoveAttributeAnimation(const String&);
  2572. void RemoveInstanceDefault();
  2573. void RemoveObjectAnimation();
  2574. void ResetToDefault();
  2575. bool Save(File) const;
  2576. bool Save(VectorBuffer&) const;
  2577. bool SaveJSON(JSONValue&) const;
  2578. bool SaveXML(XMLElement&) const;
  2579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2580. void SetAnimationTime(float);
  2581. bool SetAttribute(const String&, const Variant&);
  2582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2583. void SetAttributeAnimationSpeed(const String&, float);
  2584. void SetAttributeAnimationTime(const String&, float);
  2585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2586. void SetInterceptNetworkUpdate(const String&, bool);
  2587. // Properties:
  2588. Vector2 anchor;
  2589. bool animationEnabled;
  2590. /* readonly */
  2591. Array<Variant> attributeDefaults;
  2592. /* readonly */
  2593. Array<AttributeInfo> attributeInfos;
  2594. Array<Variant> attributes;
  2595. /* readonly */
  2596. String category;
  2597. bool collideConnected;
  2598. bool enabled;
  2599. /* readonly */
  2600. bool enabledEffective;
  2601. /* readonly */
  2602. uint id;
  2603. float maxForce;
  2604. float maxTorque;
  2605. /* readonly */
  2606. Node node;
  2607. /* readonly */
  2608. uint numAttributes;
  2609. ObjectAnimation objectAnimation;
  2610. RigidBody2D otherBody;
  2611. /* readonly */
  2612. RigidBody2D ownerBody;
  2613. /* readonly */
  2614. int refs;
  2615. bool temporary;
  2616. /* readonly */
  2617. StringHash type;
  2618. /* readonly */
  2619. String typeName;
  2620. /* readonly */
  2621. int weakRefs;
  2622. };
  2623. class ConstraintGear2D
  2624. {
  2625. // Methods:
  2626. void ApplyAttributes();
  2627. void DrawDebugGeometry(DebugRenderer, bool);
  2628. Variant GetAttribute(const String&) const;
  2629. ValueAnimation GetAttributeAnimation(const String&) const;
  2630. float GetAttributeAnimationSpeed(const String&) const;
  2631. float GetAttributeAnimationTime(const String&) const;
  2632. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2633. Variant GetAttributeDefault(const String&) const;
  2634. bool GetInterceptNetworkUpdate(const String&) const;
  2635. bool HasSubscribedToEvent(Object, const String&);
  2636. bool HasSubscribedToEvent(const String&);
  2637. bool Load(File, bool = false);
  2638. bool Load(VectorBuffer&, bool = false);
  2639. bool LoadJSON(const JSONValue&, bool = false);
  2640. bool LoadXML(const XMLElement&, bool = false);
  2641. void MarkNetworkUpdate() const;
  2642. void Remove();
  2643. void RemoveAttributeAnimation(const String&);
  2644. void RemoveInstanceDefault();
  2645. void RemoveObjectAnimation();
  2646. void ResetToDefault();
  2647. bool Save(File) const;
  2648. bool Save(VectorBuffer&) const;
  2649. bool SaveJSON(JSONValue&) const;
  2650. bool SaveXML(XMLElement&) const;
  2651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2652. void SetAnimationTime(float);
  2653. bool SetAttribute(const String&, const Variant&);
  2654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2655. void SetAttributeAnimationSpeed(const String&, float);
  2656. void SetAttributeAnimationTime(const String&, float);
  2657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2658. void SetInterceptNetworkUpdate(const String&, bool);
  2659. // Properties:
  2660. bool animationEnabled;
  2661. /* readonly */
  2662. Array<Variant> attributeDefaults;
  2663. /* readonly */
  2664. Array<AttributeInfo> attributeInfos;
  2665. Array<Variant> attributes;
  2666. /* readonly */
  2667. String category;
  2668. bool collideConnected;
  2669. bool enabled;
  2670. /* readonly */
  2671. bool enabledEffective;
  2672. /* readonly */
  2673. uint id;
  2674. /* readonly */
  2675. Node node;
  2676. /* readonly */
  2677. uint numAttributes;
  2678. ObjectAnimation objectAnimation;
  2679. RigidBody2D otherBody;
  2680. Constraint2D otherConstraint;
  2681. /* readonly */
  2682. RigidBody2D ownerBody;
  2683. Constraint2D ownerConstraint;
  2684. float ratio;
  2685. /* readonly */
  2686. int refs;
  2687. bool temporary;
  2688. /* readonly */
  2689. StringHash type;
  2690. /* readonly */
  2691. String typeName;
  2692. /* readonly */
  2693. int weakRefs;
  2694. };
  2695. class ConstraintMotor2D
  2696. {
  2697. // Methods:
  2698. void ApplyAttributes();
  2699. void DrawDebugGeometry(DebugRenderer, bool);
  2700. Variant GetAttribute(const String&) const;
  2701. ValueAnimation GetAttributeAnimation(const String&) const;
  2702. float GetAttributeAnimationSpeed(const String&) const;
  2703. float GetAttributeAnimationTime(const String&) const;
  2704. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2705. Variant GetAttributeDefault(const String&) const;
  2706. bool GetInterceptNetworkUpdate(const String&) const;
  2707. bool HasSubscribedToEvent(Object, const String&);
  2708. bool HasSubscribedToEvent(const String&);
  2709. bool Load(File, bool = false);
  2710. bool Load(VectorBuffer&, bool = false);
  2711. bool LoadJSON(const JSONValue&, bool = false);
  2712. bool LoadXML(const XMLElement&, bool = false);
  2713. void MarkNetworkUpdate() const;
  2714. void Remove();
  2715. void RemoveAttributeAnimation(const String&);
  2716. void RemoveInstanceDefault();
  2717. void RemoveObjectAnimation();
  2718. void ResetToDefault();
  2719. bool Save(File) const;
  2720. bool Save(VectorBuffer&) const;
  2721. bool SaveJSON(JSONValue&) const;
  2722. bool SaveXML(XMLElement&) const;
  2723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2724. void SetAnimationTime(float);
  2725. bool SetAttribute(const String&, const Variant&);
  2726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2727. void SetAttributeAnimationSpeed(const String&, float);
  2728. void SetAttributeAnimationTime(const String&, float);
  2729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2730. void SetInterceptNetworkUpdate(const String&, bool);
  2731. // Properties:
  2732. float angularOffset;
  2733. bool animationEnabled;
  2734. /* readonly */
  2735. Array<Variant> attributeDefaults;
  2736. /* readonly */
  2737. Array<AttributeInfo> attributeInfos;
  2738. Array<Variant> attributes;
  2739. /* readonly */
  2740. String category;
  2741. bool collideConnected;
  2742. float correctionFactor;
  2743. bool enabled;
  2744. /* readonly */
  2745. bool enabledEffective;
  2746. /* readonly */
  2747. uint id;
  2748. Vector2 linearOffset;
  2749. float maxForce;
  2750. float maxTorque;
  2751. /* readonly */
  2752. Node node;
  2753. /* readonly */
  2754. uint numAttributes;
  2755. ObjectAnimation objectAnimation;
  2756. RigidBody2D otherBody;
  2757. /* readonly */
  2758. RigidBody2D ownerBody;
  2759. /* readonly */
  2760. int refs;
  2761. bool temporary;
  2762. /* readonly */
  2763. StringHash type;
  2764. /* readonly */
  2765. String typeName;
  2766. /* readonly */
  2767. int weakRefs;
  2768. };
  2769. class ConstraintMouse2D
  2770. {
  2771. // Methods:
  2772. void ApplyAttributes();
  2773. void DrawDebugGeometry(DebugRenderer, bool);
  2774. Variant GetAttribute(const String&) const;
  2775. ValueAnimation GetAttributeAnimation(const String&) const;
  2776. float GetAttributeAnimationSpeed(const String&) const;
  2777. float GetAttributeAnimationTime(const String&) const;
  2778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2779. Variant GetAttributeDefault(const String&) const;
  2780. bool GetInterceptNetworkUpdate(const String&) const;
  2781. bool HasSubscribedToEvent(Object, const String&);
  2782. bool HasSubscribedToEvent(const String&);
  2783. bool Load(File, bool = false);
  2784. bool Load(VectorBuffer&, bool = false);
  2785. bool LoadJSON(const JSONValue&, bool = false);
  2786. bool LoadXML(const XMLElement&, bool = false);
  2787. void MarkNetworkUpdate() const;
  2788. void Remove();
  2789. void RemoveAttributeAnimation(const String&);
  2790. void RemoveInstanceDefault();
  2791. void RemoveObjectAnimation();
  2792. void ResetToDefault();
  2793. bool Save(File) const;
  2794. bool Save(VectorBuffer&) const;
  2795. bool SaveJSON(JSONValue&) const;
  2796. bool SaveXML(XMLElement&) const;
  2797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2798. void SetAnimationTime(float);
  2799. bool SetAttribute(const String&, const Variant&);
  2800. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2801. void SetAttributeAnimationSpeed(const String&, float);
  2802. void SetAttributeAnimationTime(const String&, float);
  2803. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2804. void SetInterceptNetworkUpdate(const String&, bool);
  2805. // Properties:
  2806. bool animationEnabled;
  2807. /* readonly */
  2808. Array<Variant> attributeDefaults;
  2809. /* readonly */
  2810. Array<AttributeInfo> attributeInfos;
  2811. Array<Variant> attributes;
  2812. /* readonly */
  2813. String category;
  2814. bool collideConnected;
  2815. float dampingRatio;
  2816. bool enabled;
  2817. /* readonly */
  2818. bool enabledEffective;
  2819. float frequencyHz;
  2820. /* readonly */
  2821. uint id;
  2822. float maxForce;
  2823. /* readonly */
  2824. Node node;
  2825. /* readonly */
  2826. uint numAttributes;
  2827. ObjectAnimation objectAnimation;
  2828. RigidBody2D otherBody;
  2829. /* readonly */
  2830. RigidBody2D ownerBody;
  2831. /* readonly */
  2832. int refs;
  2833. Vector2 target;
  2834. bool temporary;
  2835. /* readonly */
  2836. StringHash type;
  2837. /* readonly */
  2838. String typeName;
  2839. /* readonly */
  2840. int weakRefs;
  2841. };
  2842. class ConstraintPrismatic2D
  2843. {
  2844. // Methods:
  2845. void ApplyAttributes();
  2846. void DrawDebugGeometry(DebugRenderer, bool);
  2847. Variant GetAttribute(const String&) const;
  2848. ValueAnimation GetAttributeAnimation(const String&) const;
  2849. float GetAttributeAnimationSpeed(const String&) const;
  2850. float GetAttributeAnimationTime(const String&) const;
  2851. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2852. Variant GetAttributeDefault(const String&) const;
  2853. bool GetInterceptNetworkUpdate(const String&) const;
  2854. bool HasSubscribedToEvent(Object, const String&);
  2855. bool HasSubscribedToEvent(const String&);
  2856. bool Load(File, bool = false);
  2857. bool Load(VectorBuffer&, bool = false);
  2858. bool LoadJSON(const JSONValue&, bool = false);
  2859. bool LoadXML(const XMLElement&, bool = false);
  2860. void MarkNetworkUpdate() const;
  2861. void Remove();
  2862. void RemoveAttributeAnimation(const String&);
  2863. void RemoveInstanceDefault();
  2864. void RemoveObjectAnimation();
  2865. void ResetToDefault();
  2866. bool Save(File) const;
  2867. bool Save(VectorBuffer&) const;
  2868. bool SaveJSON(JSONValue&) const;
  2869. bool SaveXML(XMLElement&) const;
  2870. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2871. void SetAnimationTime(float);
  2872. bool SetAttribute(const String&, const Variant&);
  2873. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2874. void SetAttributeAnimationSpeed(const String&, float);
  2875. void SetAttributeAnimationTime(const String&, float);
  2876. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2877. void SetInterceptNetworkUpdate(const String&, bool);
  2878. // Properties:
  2879. Vector2 anchor;
  2880. bool animationEnabled;
  2881. /* readonly */
  2882. Array<Variant> attributeDefaults;
  2883. /* readonly */
  2884. Array<AttributeInfo> attributeInfos;
  2885. Array<Variant> attributes;
  2886. Vector2 axis;
  2887. /* readonly */
  2888. String category;
  2889. bool collideConnected;
  2890. bool enableLimit;
  2891. bool enableMotor;
  2892. bool enabled;
  2893. /* readonly */
  2894. bool enabledEffective;
  2895. /* readonly */
  2896. uint id;
  2897. float lowerTranslation;
  2898. float maxMotorForce;
  2899. float motorSpeed;
  2900. /* readonly */
  2901. Node node;
  2902. /* readonly */
  2903. uint numAttributes;
  2904. ObjectAnimation objectAnimation;
  2905. RigidBody2D otherBody;
  2906. /* readonly */
  2907. RigidBody2D ownerBody;
  2908. /* readonly */
  2909. int refs;
  2910. bool temporary;
  2911. /* readonly */
  2912. StringHash type;
  2913. /* readonly */
  2914. String typeName;
  2915. float upperTranslation;
  2916. /* readonly */
  2917. int weakRefs;
  2918. };
  2919. class ConstraintPulley2D
  2920. {
  2921. // Methods:
  2922. void ApplyAttributes();
  2923. void DrawDebugGeometry(DebugRenderer, bool);
  2924. Variant GetAttribute(const String&) const;
  2925. ValueAnimation GetAttributeAnimation(const String&) const;
  2926. float GetAttributeAnimationSpeed(const String&) const;
  2927. float GetAttributeAnimationTime(const String&) const;
  2928. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2929. Variant GetAttributeDefault(const String&) const;
  2930. bool GetInterceptNetworkUpdate(const String&) const;
  2931. bool HasSubscribedToEvent(Object, const String&);
  2932. bool HasSubscribedToEvent(const String&);
  2933. bool Load(File, bool = false);
  2934. bool Load(VectorBuffer&, bool = false);
  2935. bool LoadJSON(const JSONValue&, bool = false);
  2936. bool LoadXML(const XMLElement&, bool = false);
  2937. void MarkNetworkUpdate() const;
  2938. void Remove();
  2939. void RemoveAttributeAnimation(const String&);
  2940. void RemoveInstanceDefault();
  2941. void RemoveObjectAnimation();
  2942. void ResetToDefault();
  2943. bool Save(File) const;
  2944. bool Save(VectorBuffer&) const;
  2945. bool SaveJSON(JSONValue&) const;
  2946. bool SaveXML(XMLElement&) const;
  2947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2948. void SetAnimationTime(float);
  2949. bool SetAttribute(const String&, const Variant&);
  2950. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2951. void SetAttributeAnimationSpeed(const String&, float);
  2952. void SetAttributeAnimationTime(const String&, float);
  2953. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2954. void SetInterceptNetworkUpdate(const String&, bool);
  2955. // Properties:
  2956. bool animationEnabled;
  2957. /* readonly */
  2958. Array<Variant> attributeDefaults;
  2959. /* readonly */
  2960. Array<AttributeInfo> attributeInfos;
  2961. Array<Variant> attributes;
  2962. /* readonly */
  2963. String category;
  2964. bool collideConnected;
  2965. bool enabled;
  2966. /* readonly */
  2967. bool enabledEffective;
  2968. /* readonly */
  2969. uint id;
  2970. /* readonly */
  2971. Node node;
  2972. /* readonly */
  2973. uint numAttributes;
  2974. ObjectAnimation objectAnimation;
  2975. RigidBody2D otherBody;
  2976. Vector2 otherBodyAnchor;
  2977. Vector2 otherBodyGroundAnchor;
  2978. /* readonly */
  2979. RigidBody2D ownerBody;
  2980. Vector2 ownerBodyAnchor;
  2981. Vector2 ownerBodyGroundAnchor;
  2982. float ratio;
  2983. /* readonly */
  2984. int refs;
  2985. bool temporary;
  2986. /* readonly */
  2987. StringHash type;
  2988. /* readonly */
  2989. String typeName;
  2990. /* readonly */
  2991. int weakRefs;
  2992. };
  2993. class ConstraintRevolute2D
  2994. {
  2995. // Methods:
  2996. void ApplyAttributes();
  2997. void DrawDebugGeometry(DebugRenderer, bool);
  2998. Variant GetAttribute(const String&) const;
  2999. ValueAnimation GetAttributeAnimation(const String&) const;
  3000. float GetAttributeAnimationSpeed(const String&) const;
  3001. float GetAttributeAnimationTime(const String&) const;
  3002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3003. Variant GetAttributeDefault(const String&) const;
  3004. bool GetInterceptNetworkUpdate(const String&) const;
  3005. bool HasSubscribedToEvent(Object, const String&);
  3006. bool HasSubscribedToEvent(const String&);
  3007. bool Load(File, bool = false);
  3008. bool Load(VectorBuffer&, bool = false);
  3009. bool LoadJSON(const JSONValue&, bool = false);
  3010. bool LoadXML(const XMLElement&, bool = false);
  3011. void MarkNetworkUpdate() const;
  3012. void Remove();
  3013. void RemoveAttributeAnimation(const String&);
  3014. void RemoveInstanceDefault();
  3015. void RemoveObjectAnimation();
  3016. void ResetToDefault();
  3017. bool Save(File) const;
  3018. bool Save(VectorBuffer&) const;
  3019. bool SaveJSON(JSONValue&) const;
  3020. bool SaveXML(XMLElement&) const;
  3021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3022. void SetAnimationTime(float);
  3023. bool SetAttribute(const String&, const Variant&);
  3024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3025. void SetAttributeAnimationSpeed(const String&, float);
  3026. void SetAttributeAnimationTime(const String&, float);
  3027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3028. void SetInterceptNetworkUpdate(const String&, bool);
  3029. // Properties:
  3030. Vector2 anchor;
  3031. bool animationEnabled;
  3032. /* readonly */
  3033. Array<Variant> attributeDefaults;
  3034. /* readonly */
  3035. Array<AttributeInfo> attributeInfos;
  3036. Array<Variant> attributes;
  3037. /* readonly */
  3038. String category;
  3039. bool collideConnected;
  3040. bool enableLimit;
  3041. bool enableMotor;
  3042. bool enabled;
  3043. /* readonly */
  3044. bool enabledEffective;
  3045. /* readonly */
  3046. uint id;
  3047. float lowerAngle;
  3048. float maxMotorTorque;
  3049. float motorSpeed;
  3050. /* readonly */
  3051. Node node;
  3052. /* readonly */
  3053. uint numAttributes;
  3054. ObjectAnimation objectAnimation;
  3055. RigidBody2D otherBody;
  3056. /* readonly */
  3057. RigidBody2D ownerBody;
  3058. /* readonly */
  3059. int refs;
  3060. bool temporary;
  3061. /* readonly */
  3062. StringHash type;
  3063. /* readonly */
  3064. String typeName;
  3065. float upperAngle;
  3066. /* readonly */
  3067. int weakRefs;
  3068. };
  3069. class ConstraintRope2D
  3070. {
  3071. // Methods:
  3072. void ApplyAttributes();
  3073. void DrawDebugGeometry(DebugRenderer, bool);
  3074. Variant GetAttribute(const String&) const;
  3075. ValueAnimation GetAttributeAnimation(const String&) const;
  3076. float GetAttributeAnimationSpeed(const String&) const;
  3077. float GetAttributeAnimationTime(const String&) const;
  3078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3079. Variant GetAttributeDefault(const String&) const;
  3080. bool GetInterceptNetworkUpdate(const String&) const;
  3081. bool HasSubscribedToEvent(Object, const String&);
  3082. bool HasSubscribedToEvent(const String&);
  3083. bool Load(File, bool = false);
  3084. bool Load(VectorBuffer&, bool = false);
  3085. bool LoadJSON(const JSONValue&, bool = false);
  3086. bool LoadXML(const XMLElement&, bool = false);
  3087. void MarkNetworkUpdate() const;
  3088. void Remove();
  3089. void RemoveAttributeAnimation(const String&);
  3090. void RemoveInstanceDefault();
  3091. void RemoveObjectAnimation();
  3092. void ResetToDefault();
  3093. bool Save(File) const;
  3094. bool Save(VectorBuffer&) const;
  3095. bool SaveJSON(JSONValue&) const;
  3096. bool SaveXML(XMLElement&) const;
  3097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3098. void SetAnimationTime(float);
  3099. bool SetAttribute(const String&, const Variant&);
  3100. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3101. void SetAttributeAnimationSpeed(const String&, float);
  3102. void SetAttributeAnimationTime(const String&, float);
  3103. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3104. void SetInterceptNetworkUpdate(const String&, bool);
  3105. // Properties:
  3106. bool animationEnabled;
  3107. /* readonly */
  3108. Array<Variant> attributeDefaults;
  3109. /* readonly */
  3110. Array<AttributeInfo> attributeInfos;
  3111. Array<Variant> attributes;
  3112. /* readonly */
  3113. String category;
  3114. bool collideConnected;
  3115. bool enabled;
  3116. /* readonly */
  3117. bool enabledEffective;
  3118. /* readonly */
  3119. uint id;
  3120. float maxLength;
  3121. /* readonly */
  3122. Node node;
  3123. /* readonly */
  3124. uint numAttributes;
  3125. ObjectAnimation objectAnimation;
  3126. RigidBody2D otherBody;
  3127. Vector2 otherBodyAnchor;
  3128. /* readonly */
  3129. RigidBody2D ownerBody;
  3130. Vector2 ownerBodyAnchor;
  3131. /* readonly */
  3132. int refs;
  3133. bool temporary;
  3134. /* readonly */
  3135. StringHash type;
  3136. /* readonly */
  3137. String typeName;
  3138. /* readonly */
  3139. int weakRefs;
  3140. };
  3141. class ConstraintWeld2D
  3142. {
  3143. // Methods:
  3144. void ApplyAttributes();
  3145. void DrawDebugGeometry(DebugRenderer, bool);
  3146. Variant GetAttribute(const String&) const;
  3147. ValueAnimation GetAttributeAnimation(const String&) const;
  3148. float GetAttributeAnimationSpeed(const String&) const;
  3149. float GetAttributeAnimationTime(const String&) const;
  3150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3151. Variant GetAttributeDefault(const String&) const;
  3152. bool GetInterceptNetworkUpdate(const String&) const;
  3153. bool HasSubscribedToEvent(Object, const String&);
  3154. bool HasSubscribedToEvent(const String&);
  3155. bool Load(File, bool = false);
  3156. bool Load(VectorBuffer&, bool = false);
  3157. bool LoadJSON(const JSONValue&, bool = false);
  3158. bool LoadXML(const XMLElement&, bool = false);
  3159. void MarkNetworkUpdate() const;
  3160. void Remove();
  3161. void RemoveAttributeAnimation(const String&);
  3162. void RemoveInstanceDefault();
  3163. void RemoveObjectAnimation();
  3164. void ResetToDefault();
  3165. bool Save(File) const;
  3166. bool Save(VectorBuffer&) const;
  3167. bool SaveJSON(JSONValue&) const;
  3168. bool SaveXML(XMLElement&) const;
  3169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3170. void SetAnimationTime(float);
  3171. bool SetAttribute(const String&, const Variant&);
  3172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3173. void SetAttributeAnimationSpeed(const String&, float);
  3174. void SetAttributeAnimationTime(const String&, float);
  3175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3176. void SetInterceptNetworkUpdate(const String&, bool);
  3177. // Properties:
  3178. Vector2 anchor;
  3179. bool animationEnabled;
  3180. /* readonly */
  3181. Array<Variant> attributeDefaults;
  3182. /* readonly */
  3183. Array<AttributeInfo> attributeInfos;
  3184. Array<Variant> attributes;
  3185. /* readonly */
  3186. String category;
  3187. bool collideConnected;
  3188. float dampingRatio;
  3189. bool enabled;
  3190. /* readonly */
  3191. bool enabledEffective;
  3192. float frequencyHz;
  3193. /* readonly */
  3194. uint id;
  3195. /* readonly */
  3196. Node node;
  3197. /* readonly */
  3198. uint numAttributes;
  3199. ObjectAnimation objectAnimation;
  3200. RigidBody2D otherBody;
  3201. /* readonly */
  3202. RigidBody2D ownerBody;
  3203. /* readonly */
  3204. int refs;
  3205. bool temporary;
  3206. /* readonly */
  3207. StringHash type;
  3208. /* readonly */
  3209. String typeName;
  3210. /* readonly */
  3211. int weakRefs;
  3212. };
  3213. class ConstraintWheel2D
  3214. {
  3215. // Methods:
  3216. void ApplyAttributes();
  3217. void DrawDebugGeometry(DebugRenderer, bool);
  3218. Variant GetAttribute(const String&) const;
  3219. ValueAnimation GetAttributeAnimation(const String&) const;
  3220. float GetAttributeAnimationSpeed(const String&) const;
  3221. float GetAttributeAnimationTime(const String&) const;
  3222. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3223. Variant GetAttributeDefault(const String&) const;
  3224. bool GetInterceptNetworkUpdate(const String&) const;
  3225. bool HasSubscribedToEvent(Object, const String&);
  3226. bool HasSubscribedToEvent(const String&);
  3227. bool Load(File, bool = false);
  3228. bool Load(VectorBuffer&, bool = false);
  3229. bool LoadJSON(const JSONValue&, bool = false);
  3230. bool LoadXML(const XMLElement&, bool = false);
  3231. void MarkNetworkUpdate() const;
  3232. void Remove();
  3233. void RemoveAttributeAnimation(const String&);
  3234. void RemoveInstanceDefault();
  3235. void RemoveObjectAnimation();
  3236. void ResetToDefault();
  3237. bool Save(File) const;
  3238. bool Save(VectorBuffer&) const;
  3239. bool SaveJSON(JSONValue&) const;
  3240. bool SaveXML(XMLElement&) const;
  3241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3242. void SetAnimationTime(float);
  3243. bool SetAttribute(const String&, const Variant&);
  3244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3245. void SetAttributeAnimationSpeed(const String&, float);
  3246. void SetAttributeAnimationTime(const String&, float);
  3247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3248. void SetInterceptNetworkUpdate(const String&, bool);
  3249. // Properties:
  3250. Vector2 anchor;
  3251. bool animationEnabled;
  3252. /* readonly */
  3253. Array<Variant> attributeDefaults;
  3254. /* readonly */
  3255. Array<AttributeInfo> attributeInfos;
  3256. Array<Variant> attributes;
  3257. Vector2 axis;
  3258. /* readonly */
  3259. String category;
  3260. bool collideConnected;
  3261. float dampingRatio;
  3262. bool enableMotor;
  3263. bool enabled;
  3264. /* readonly */
  3265. bool enabledEffective;
  3266. float frequencyHz;
  3267. /* readonly */
  3268. uint id;
  3269. float maxMotorTorque;
  3270. float motorSpeed;
  3271. /* readonly */
  3272. Node node;
  3273. /* readonly */
  3274. uint numAttributes;
  3275. ObjectAnimation objectAnimation;
  3276. RigidBody2D otherBody;
  3277. /* readonly */
  3278. RigidBody2D ownerBody;
  3279. /* readonly */
  3280. int refs;
  3281. bool temporary;
  3282. /* readonly */
  3283. StringHash type;
  3284. /* readonly */
  3285. String typeName;
  3286. /* readonly */
  3287. int weakRefs;
  3288. };
  3289. class Controls
  3290. {
  3291. // Methods:
  3292. bool IsDown(uint) const;
  3293. bool IsPressed(uint, const Controls&) const;
  3294. void Reset();
  3295. void Set(uint, bool);
  3296. // Properties:
  3297. uint buttons;
  3298. VariantMap extraData;
  3299. float pitch;
  3300. float yaw;
  3301. };
  3302. class CrowdAgent
  3303. {
  3304. // Methods:
  3305. void ApplyAttributes();
  3306. void DrawDebugGeometry(DebugRenderer, bool);
  3307. void DrawDebugGeometry(bool);
  3308. Variant GetAttribute(const String&) const;
  3309. ValueAnimation GetAttributeAnimation(const String&) const;
  3310. float GetAttributeAnimationSpeed(const String&) const;
  3311. float GetAttributeAnimationTime(const String&) const;
  3312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3313. Variant GetAttributeDefault(const String&) const;
  3314. bool GetInterceptNetworkUpdate(const String&) const;
  3315. bool HasSubscribedToEvent(Object, const String&);
  3316. bool HasSubscribedToEvent(const String&);
  3317. bool Load(File, bool = false);
  3318. bool Load(VectorBuffer&, bool = false);
  3319. bool LoadJSON(const JSONValue&, bool = false);
  3320. bool LoadXML(const XMLElement&, bool = false);
  3321. void MarkNetworkUpdate() const;
  3322. void Remove();
  3323. void RemoveAttributeAnimation(const String&);
  3324. void RemoveInstanceDefault();
  3325. void RemoveObjectAnimation();
  3326. void ResetTarget();
  3327. void ResetToDefault();
  3328. bool Save(File) const;
  3329. bool Save(VectorBuffer&) const;
  3330. bool SaveJSON(JSONValue&) const;
  3331. bool SaveXML(XMLElement&) const;
  3332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3333. void SetAnimationTime(float);
  3334. bool SetAttribute(const String&, const Variant&);
  3335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3336. void SetAttributeAnimationSpeed(const String&, float);
  3337. void SetAttributeAnimationTime(const String&, float);
  3338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3339. void SetInterceptNetworkUpdate(const String&, bool);
  3340. // Properties:
  3341. /* readonly */
  3342. Vector3 actualVelocity;
  3343. /* readonly */
  3344. CrowdAgentState agentState;
  3345. bool animationEnabled;
  3346. /* readonly */
  3347. bool arrived;
  3348. /* readonly */
  3349. Array<Variant> attributeDefaults;
  3350. /* readonly */
  3351. Array<AttributeInfo> attributeInfos;
  3352. Array<Variant> attributes;
  3353. /* readonly */
  3354. String category;
  3355. /* readonly */
  3356. Vector3 desiredVelocity;
  3357. bool enabled;
  3358. /* readonly */
  3359. bool enabledEffective;
  3360. float height;
  3361. /* readonly */
  3362. uint id;
  3363. /* readonly */
  3364. bool inCrowd;
  3365. float maxAccel;
  3366. float maxSpeed;
  3367. NavigationPushiness navigationPushiness;
  3368. NavigationQuality navigationQuality;
  3369. /* readonly */
  3370. Node node;
  3371. /* readonly */
  3372. uint numAttributes;
  3373. ObjectAnimation objectAnimation;
  3374. uint obstacleAvoidanceType;
  3375. /* readonly */
  3376. Vector3 position;
  3377. uint queryFilterType;
  3378. float radius;
  3379. /* readonly */
  3380. int refs;
  3381. /* readonly */
  3382. bool requestedTarget;
  3383. /* readonly */
  3384. CrowdAgentRequestedTarget requestedTargetType;
  3385. Vector3 targetPosition;
  3386. /* readonly */
  3387. CrowdAgentTargetState targetState;
  3388. Vector3 targetVelocity;
  3389. bool temporary;
  3390. /* readonly */
  3391. StringHash type;
  3392. /* readonly */
  3393. String typeName;
  3394. bool updateNodePosition;
  3395. /* readonly */
  3396. int weakRefs;
  3397. };
  3398. class CrowdManager
  3399. {
  3400. // Methods:
  3401. void ApplyAttributes();
  3402. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3403. void DrawDebugGeometry(DebugRenderer, bool);
  3404. void DrawDebugGeometry(bool);
  3405. Vector3 FindNearestPoint(const Vector3&, int);
  3406. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3407. float GetAreaCost(uint, uint);
  3408. Variant GetAttribute(const String&) const;
  3409. ValueAnimation GetAttributeAnimation(const String&) const;
  3410. float GetAttributeAnimationSpeed(const String&) const;
  3411. float GetAttributeAnimationTime(const String&) const;
  3412. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3413. Variant GetAttributeDefault(const String&) const;
  3414. float GetDistanceToWall(const Vector3&, float, int);
  3415. uint16 GetExcludeFlags(uint);
  3416. uint16 GetIncludeFlags(uint);
  3417. bool GetInterceptNetworkUpdate(const String&) const;
  3418. Vector3 GetRandomPoint(int);
  3419. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3420. bool HasSubscribedToEvent(Object, const String&);
  3421. bool HasSubscribedToEvent(const String&);
  3422. bool Load(File, bool = false);
  3423. bool Load(VectorBuffer&, bool = false);
  3424. bool LoadJSON(const JSONValue&, bool = false);
  3425. bool LoadXML(const XMLElement&, bool = false);
  3426. void MarkNetworkUpdate() const;
  3427. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3428. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3429. void Remove();
  3430. void RemoveAttributeAnimation(const String&);
  3431. void RemoveInstanceDefault();
  3432. void RemoveObjectAnimation();
  3433. void ResetCrowdTarget(Node = null);
  3434. void ResetToDefault();
  3435. bool Save(File) const;
  3436. bool Save(VectorBuffer&) const;
  3437. bool SaveJSON(JSONValue&) const;
  3438. bool SaveXML(XMLElement&) const;
  3439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3440. void SetAnimationTime(float);
  3441. void SetAreaCost(uint, uint, float);
  3442. bool SetAttribute(const String&, const Variant&);
  3443. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3444. void SetAttributeAnimationSpeed(const String&, float);
  3445. void SetAttributeAnimationTime(const String&, float);
  3446. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3447. void SetCrowdTarget(const Vector3&, Node = null);
  3448. void SetCrowdVelocity(const Vector3&, Node = null);
  3449. void SetExcludeFlags(uint, uint16);
  3450. void SetIncludeFlags(uint, uint16);
  3451. void SetInterceptNetworkUpdate(const String&, bool);
  3452. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3453. // Properties:
  3454. bool animationEnabled;
  3455. /* readonly */
  3456. Array<Variant> attributeDefaults;
  3457. /* readonly */
  3458. Array<AttributeInfo> attributeInfos;
  3459. Array<Variant> attributes;
  3460. /* readonly */
  3461. String category;
  3462. bool enabled;
  3463. /* readonly */
  3464. bool enabledEffective;
  3465. /* readonly */
  3466. uint id;
  3467. float maxAgentRadius;
  3468. int maxAgents;
  3469. NavigationMesh navMesh;
  3470. /* readonly */
  3471. Node node;
  3472. /* readonly */
  3473. Array<uint> numAreas;
  3474. /* readonly */
  3475. uint numAttributes;
  3476. /* readonly */
  3477. uint numObstacleAvoidanceTypes;
  3478. /* readonly */
  3479. uint numQueryFilterTypes;
  3480. ObjectAnimation objectAnimation;
  3481. /* readonly */
  3482. int refs;
  3483. bool temporary;
  3484. /* readonly */
  3485. StringHash type;
  3486. /* readonly */
  3487. String typeName;
  3488. /* readonly */
  3489. int weakRefs;
  3490. };
  3491. class CrowdObstacleAvoidanceParams
  3492. {
  3493. // Properties:
  3494. uint8 adaptiveDepth;
  3495. uint8 adaptiveDivs;
  3496. uint8 adaptiveRings;
  3497. uint8 gridSize;
  3498. float horizTime;
  3499. float velBias;
  3500. float weightCurVel;
  3501. float weightDesVel;
  3502. float weightSide;
  3503. float weightToi;
  3504. };
  3505. class Cursor
  3506. {
  3507. // Methods:
  3508. void AddChild(UIElement);
  3509. void AddTag(const String&);
  3510. void AddTags(const String&, int8 = ';');
  3511. void ApplyAttributes();
  3512. void BringToFront();
  3513. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3514. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3515. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3516. void DisableLayoutUpdate();
  3517. IntVector2 ElementToScreen(const IntVector2&);
  3518. void EnableLayoutUpdate();
  3519. uint FindChild(UIElement) const;
  3520. Variant GetAttribute(const String&) const;
  3521. ValueAnimation GetAttributeAnimation(const String&) const;
  3522. float GetAttributeAnimationSpeed(const String&) const;
  3523. float GetAttributeAnimationTime(const String&) const;
  3524. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3525. Variant GetAttributeDefault(const String&) const;
  3526. UIElement GetChild(const String&, bool = false) const;
  3527. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3528. Array<UIElement> GetChildren(bool = false) const;
  3529. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3530. UIElement GetElementEventSender() const;
  3531. bool GetInterceptNetworkUpdate(const String&) const;
  3532. uint GetNumChildren(bool) const;
  3533. bool HasSubscribedToEvent(Object, const String&);
  3534. bool HasSubscribedToEvent(const String&);
  3535. bool HasTag(const String&) const;
  3536. void InsertChild(uint, UIElement);
  3537. bool IsInside(IntVector2, bool);
  3538. bool IsInsideCombined(IntVector2, bool);
  3539. bool Load(File, bool = false);
  3540. bool Load(VectorBuffer&, bool = false);
  3541. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3542. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3543. bool LoadJSON(const JSONValue&, bool = false);
  3544. bool LoadXML(File);
  3545. bool LoadXML(VectorBuffer&);
  3546. bool LoadXML(XMLFile, XMLFile);
  3547. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3548. bool LoadXML(const XMLElement&, bool = false);
  3549. void MarkNetworkUpdate() const;
  3550. void Remove();
  3551. void RemoveAllChildren();
  3552. void RemoveAllTags();
  3553. void RemoveAttributeAnimation(const String&);
  3554. void RemoveChild(UIElement, uint = 0);
  3555. void RemoveChild(uint);
  3556. void RemoveInstanceDefault();
  3557. void RemoveObjectAnimation();
  3558. bool RemoveTag(const String&);
  3559. void ResetDeepEnabled();
  3560. void ResetToDefault();
  3561. bool Save(File) const;
  3562. bool Save(VectorBuffer&) const;
  3563. bool SaveJSON(JSONValue&) const;
  3564. bool SaveXML(File, const String& = "\t");
  3565. bool SaveXML(VectorBuffer&, const String& = "\t");
  3566. bool SaveXML(XMLElement&) const;
  3567. IntVector2 ScreenToElement(const IntVector2&);
  3568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3569. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3570. void SetAnimationTime(float);
  3571. bool SetAttribute(const String&, const Variant&);
  3572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3573. void SetAttributeAnimationSpeed(const String&, float);
  3574. void SetAttributeAnimationTime(const String&, float);
  3575. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3576. void SetDeepEnabled(bool);
  3577. void SetEnabledRecursive(bool);
  3578. void SetFixedHeight(int);
  3579. void SetFixedSize(int, int);
  3580. void SetFixedWidth(int);
  3581. void SetFullImageRect();
  3582. void SetHoverOffset(int, int);
  3583. void SetInterceptNetworkUpdate(const String&, bool);
  3584. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3585. void SetMaxAnchor(float, float);
  3586. void SetMaxSize(int, int);
  3587. void SetMinAnchor(float, float);
  3588. void SetMinSize(int, int);
  3589. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3590. void SetPivot(float, float);
  3591. void SetPosition(int, int);
  3592. void SetShape(CursorShape);
  3593. void SetShape(const String&);
  3594. void SetSize(int, int);
  3595. bool SetStyle(const String&, XMLFile = null);
  3596. bool SetStyle(const XMLElement&);
  3597. bool SetStyleAuto(XMLFile = null);
  3598. void UpdateLayout();
  3599. const Variant& GetVar(const StringHash&);
  3600. // Properties:
  3601. bool animationEnabled;
  3602. /* readonly */
  3603. Array<Variant> attributeDefaults;
  3604. /* readonly */
  3605. Array<AttributeInfo> attributeInfos;
  3606. Array<Variant> attributes;
  3607. BlendMode blendMode;
  3608. IntRect border;
  3609. bool bringToBack;
  3610. bool bringToFront;
  3611. /* readonly */
  3612. String category;
  3613. /* readonly */
  3614. IntVector2 childOffset;
  3615. /* readonly */
  3616. Array<UIElement> children;
  3617. IntRect clipBorder;
  3618. bool clipChildren;
  3619. /* writeonly */
  3620. Color color;
  3621. /* readonly */
  3622. bool colorGradient;
  3623. Array<Color> colors;
  3624. /* readonly */
  3625. IntRect combinedScreenRect;
  3626. XMLFile defaultStyle;
  3627. /* readonly */
  3628. float derivedOpacity;
  3629. /* readonly */
  3630. uint dragButtonCombo;
  3631. /* readonly */
  3632. int dragButtonCount;
  3633. uint dragDropMode;
  3634. bool editable;
  3635. bool elementEventSender;
  3636. bool enableAnchor;
  3637. bool enabled;
  3638. /* readonly */
  3639. bool enabledSelf;
  3640. /* readonly */
  3641. bool fixedHeight;
  3642. /* readonly */
  3643. bool fixedSize;
  3644. /* readonly */
  3645. bool fixedWidth;
  3646. bool focus;
  3647. FocusMode focusMode;
  3648. int height;
  3649. HorizontalAlignment horizontalAlignment;
  3650. IntVector2 hoverOffset;
  3651. /* readonly */
  3652. bool hovering;
  3653. IntRect imageBorder;
  3654. IntRect imageRect;
  3655. int indent;
  3656. int indentSpacing;
  3657. /* readonly */
  3658. int indentWidth;
  3659. bool internal;
  3660. IntRect layoutBorder;
  3661. Vector2 layoutFlexScale;
  3662. LayoutMode layoutMode;
  3663. int layoutSpacing;
  3664. Vector2 maxAnchor;
  3665. int maxHeight;
  3666. IntVector2 maxOffset;
  3667. IntVector2 maxSize;
  3668. int maxWidth;
  3669. Vector2 minAnchor;
  3670. int minHeight;
  3671. IntVector2 minOffset;
  3672. IntVector2 minSize;
  3673. int minWidth;
  3674. String name;
  3675. /* readonly */
  3676. uint numAllChildren;
  3677. /* readonly */
  3678. uint numAttributes;
  3679. /* readonly */
  3680. uint numChildren;
  3681. ObjectAnimation objectAnimation;
  3682. float opacity;
  3683. UIElement parent;
  3684. Vector2 pivot;
  3685. IntVector2 position;
  3686. int priority;
  3687. /* readonly */
  3688. int refs;
  3689. /* readonly */
  3690. UIElement root;
  3691. /* readonly */
  3692. IntVector2 screenPosition;
  3693. bool selected;
  3694. String shape;
  3695. IntVector2 size;
  3696. bool sortChildren;
  3697. String style;
  3698. /* readonly */
  3699. Array<String> tags;
  3700. bool temporary;
  3701. Texture texture;
  3702. bool tiled;
  3703. TraversalMode traversalMode;
  3704. /* readonly */
  3705. StringHash type;
  3706. /* readonly */
  3707. String typeName;
  3708. bool useDerivedOpacity;
  3709. bool useSystemShapes;
  3710. /* readonly */
  3711. VariantMap vars;
  3712. VerticalAlignment verticalAlignment;
  3713. bool visible;
  3714. /* readonly */
  3715. bool visibleEffective;
  3716. /* readonly */
  3717. int weakRefs;
  3718. int width;
  3719. };
  3720. class CustomGeometry
  3721. {
  3722. // Methods:
  3723. void ApplyAttributes();
  3724. void BeginGeometry(uint, PrimitiveType);
  3725. void Clear();
  3726. void Commit();
  3727. void DefineColor(const Color&);
  3728. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3729. void DefineNormal(const Vector3&);
  3730. void DefineTangent(const Vector4&);
  3731. void DefineTexCoord(const Vector2&);
  3732. void DefineVertex(const Vector3&);
  3733. void DrawDebugGeometry(DebugRenderer, bool);
  3734. Variant GetAttribute(const String&) const;
  3735. ValueAnimation GetAttributeAnimation(const String&) const;
  3736. float GetAttributeAnimationSpeed(const String&) const;
  3737. float GetAttributeAnimationTime(const String&) const;
  3738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3739. Variant GetAttributeDefault(const String&) const;
  3740. bool GetInterceptNetworkUpdate(const String&) const;
  3741. CustomGeometryVertex GetVertex(uint, uint);
  3742. bool HasSubscribedToEvent(Object, const String&);
  3743. bool HasSubscribedToEvent(const String&);
  3744. bool IsInView(Camera) const;
  3745. bool Load(File, bool = false);
  3746. bool Load(VectorBuffer&, bool = false);
  3747. bool LoadJSON(const JSONValue&, bool = false);
  3748. bool LoadXML(const XMLElement&, bool = false);
  3749. void MarkNetworkUpdate() const;
  3750. void Remove();
  3751. void RemoveAttributeAnimation(const String&);
  3752. void RemoveInstanceDefault();
  3753. void RemoveObjectAnimation();
  3754. void ResetToDefault();
  3755. bool Save(File) const;
  3756. bool Save(VectorBuffer&) const;
  3757. bool SaveJSON(JSONValue&) const;
  3758. bool SaveXML(XMLElement&) const;
  3759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3760. void SetAnimationTime(float);
  3761. bool SetAttribute(const String&, const Variant&);
  3762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3763. void SetAttributeAnimationSpeed(const String&, float);
  3764. void SetAttributeAnimationTime(const String&, float);
  3765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3766. void SetInterceptNetworkUpdate(const String&, bool);
  3767. // Properties:
  3768. bool animationEnabled;
  3769. /* readonly */
  3770. Array<Variant> attributeDefaults;
  3771. /* readonly */
  3772. Array<AttributeInfo> attributeInfos;
  3773. Array<Variant> attributes;
  3774. /* readonly */
  3775. BoundingBox boundingBox;
  3776. bool castShadows;
  3777. /* readonly */
  3778. String category;
  3779. float drawDistance;
  3780. bool dynamic;
  3781. bool enabled;
  3782. /* readonly */
  3783. bool enabledEffective;
  3784. /* readonly */
  3785. uint id;
  3786. /* readonly */
  3787. bool inView;
  3788. uint lightMask;
  3789. float lodBias;
  3790. /* writeonly */
  3791. Material material;
  3792. Array<Material> materials;
  3793. uint maxLights;
  3794. /* readonly */
  3795. Node node;
  3796. /* readonly */
  3797. uint numAttributes;
  3798. uint numGeometries;
  3799. /* readonly */
  3800. Array<uint> numVertices;
  3801. ObjectAnimation objectAnimation;
  3802. bool occludee;
  3803. bool occluder;
  3804. /* readonly */
  3805. int refs;
  3806. float shadowDistance;
  3807. uint shadowMask;
  3808. bool temporary;
  3809. /* readonly */
  3810. StringHash type;
  3811. /* readonly */
  3812. String typeName;
  3813. uint viewMask;
  3814. /* readonly */
  3815. int weakRefs;
  3816. /* readonly */
  3817. BoundingBox worldBoundingBox;
  3818. /* readonly */
  3819. Zone zone;
  3820. uint zoneMask;
  3821. };
  3822. class CustomGeometryVertex
  3823. {
  3824. // Properties:
  3825. uint color;
  3826. Vector3 normal;
  3827. Vector3 position;
  3828. Vector4 tangent;
  3829. Vector2 texCoord;
  3830. };
  3831. class Database
  3832. {
  3833. // Methods:
  3834. DbConnection Connect(const String&);
  3835. void Disconnect(DbConnection);
  3836. bool HasSubscribedToEvent(Object, const String&);
  3837. bool HasSubscribedToEvent(const String&);
  3838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3839. // Properties:
  3840. /* readonly */
  3841. String category;
  3842. uint poolSize;
  3843. /* readonly */
  3844. bool pooling;
  3845. /* readonly */
  3846. int refs;
  3847. /* readonly */
  3848. StringHash type;
  3849. /* readonly */
  3850. String typeName;
  3851. /* readonly */
  3852. int weakRefs;
  3853. };
  3854. class DbConnection
  3855. {
  3856. // Methods:
  3857. DbResult Execute(const String&, bool = false);
  3858. bool HasSubscribedToEvent(Object, const String&);
  3859. bool HasSubscribedToEvent(const String&);
  3860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3861. // Properties:
  3862. /* readonly */
  3863. String category;
  3864. /* readonly */
  3865. bool connected;
  3866. /* readonly */
  3867. String connectionString;
  3868. /* readonly */
  3869. int refs;
  3870. /* readonly */
  3871. StringHash type;
  3872. /* readonly */
  3873. String typeName;
  3874. /* readonly */
  3875. int weakRefs;
  3876. };
  3877. class DbResult
  3878. {
  3879. // Properties:
  3880. /* readonly */
  3881. Array<String> columns;
  3882. /* readonly */
  3883. int64 numAffectedRows;
  3884. /* readonly */
  3885. uint numColumns;
  3886. /* readonly */
  3887. uint numRows;
  3888. /* readonly */
  3889. Array<Array<Variant>> row;
  3890. };
  3891. class DebugHud
  3892. {
  3893. // Methods:
  3894. void ClearAppStats();
  3895. bool HasSubscribedToEvent(Object, const String&);
  3896. bool HasSubscribedToEvent(const String&);
  3897. void ResetAppStats(const String&);
  3898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3899. void SetAppStats(const String&, const String&);
  3900. void SetAppStats(const String&, const Variant&);
  3901. void Toggle(uint);
  3902. void ToggleAll();
  3903. void Update();
  3904. // Properties:
  3905. /* readonly */
  3906. String category;
  3907. XMLFile defaultStyle;
  3908. /* readonly */
  3909. Text memoryText;
  3910. uint mode;
  3911. /* readonly */
  3912. Text modeText;
  3913. float profilerInterval;
  3914. uint profilerMaxDepth;
  3915. /* readonly */
  3916. Text profilerText;
  3917. /* readonly */
  3918. int refs;
  3919. /* readonly */
  3920. Text statsText;
  3921. /* readonly */
  3922. StringHash type;
  3923. /* readonly */
  3924. String typeName;
  3925. bool useRendererStats;
  3926. /* readonly */
  3927. int weakRefs;
  3928. };
  3929. class DebugRenderer
  3930. {
  3931. // Methods:
  3932. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  3933. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3934. void AddCross(const Vector3&, float, const Color&, bool = true);
  3935. void AddFrustum(const Frustum&, const Color&, bool = true);
  3936. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3937. void AddNode(Node, float = 1.0, bool = true);
  3938. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3939. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3940. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3941. void AddSkeleton(Skeleton, const Color&, bool = true);
  3942. void AddSphere(const Sphere&, const Color&, bool = true);
  3943. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3944. void ApplyAttributes();
  3945. void DrawDebugGeometry(DebugRenderer, bool);
  3946. Variant GetAttribute(const String&) const;
  3947. ValueAnimation GetAttributeAnimation(const String&) const;
  3948. float GetAttributeAnimationSpeed(const String&) const;
  3949. float GetAttributeAnimationTime(const String&) const;
  3950. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3951. Variant GetAttributeDefault(const String&) const;
  3952. bool GetInterceptNetworkUpdate(const String&) const;
  3953. bool HasSubscribedToEvent(Object, const String&);
  3954. bool HasSubscribedToEvent(const String&);
  3955. bool Load(File, bool = false);
  3956. bool Load(VectorBuffer&, bool = false);
  3957. bool LoadJSON(const JSONValue&, bool = false);
  3958. bool LoadXML(const XMLElement&, bool = false);
  3959. void MarkNetworkUpdate() const;
  3960. void Remove();
  3961. void RemoveAttributeAnimation(const String&);
  3962. void RemoveInstanceDefault();
  3963. void RemoveObjectAnimation();
  3964. void ResetToDefault();
  3965. bool Save(File) const;
  3966. bool Save(VectorBuffer&) const;
  3967. bool SaveJSON(JSONValue&) const;
  3968. bool SaveXML(XMLElement&) const;
  3969. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3970. void SetAnimationTime(float);
  3971. bool SetAttribute(const String&, const Variant&);
  3972. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3973. void SetAttributeAnimationSpeed(const String&, float);
  3974. void SetAttributeAnimationTime(const String&, float);
  3975. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3976. void SetInterceptNetworkUpdate(const String&, bool);
  3977. // Properties:
  3978. bool animationEnabled;
  3979. /* readonly */
  3980. Array<Variant> attributeDefaults;
  3981. /* readonly */
  3982. Array<AttributeInfo> attributeInfos;
  3983. Array<Variant> attributes;
  3984. /* readonly */
  3985. String category;
  3986. bool enabled;
  3987. /* readonly */
  3988. bool enabledEffective;
  3989. /* readonly */
  3990. uint id;
  3991. bool lineAntiAlias;
  3992. /* readonly */
  3993. Node node;
  3994. /* readonly */
  3995. uint numAttributes;
  3996. ObjectAnimation objectAnimation;
  3997. /* readonly */
  3998. int refs;
  3999. bool temporary;
  4000. /* readonly */
  4001. StringHash type;
  4002. /* readonly */
  4003. String typeName;
  4004. /* readonly */
  4005. int weakRefs;
  4006. };
  4007. class DecalSet
  4008. {
  4009. // Methods:
  4010. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4011. void ApplyAttributes();
  4012. void DrawDebugGeometry(DebugRenderer, bool);
  4013. Variant GetAttribute(const String&) const;
  4014. ValueAnimation GetAttributeAnimation(const String&) const;
  4015. float GetAttributeAnimationSpeed(const String&) const;
  4016. float GetAttributeAnimationTime(const String&) const;
  4017. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4018. Variant GetAttributeDefault(const String&) const;
  4019. bool GetInterceptNetworkUpdate(const String&) const;
  4020. bool HasSubscribedToEvent(Object, const String&);
  4021. bool HasSubscribedToEvent(const String&);
  4022. bool IsInView(Camera) const;
  4023. bool Load(File, bool = false);
  4024. bool Load(VectorBuffer&, bool = false);
  4025. bool LoadJSON(const JSONValue&, bool = false);
  4026. bool LoadXML(const XMLElement&, bool = false);
  4027. void MarkNetworkUpdate() const;
  4028. void Remove();
  4029. void RemoveAllDecals();
  4030. void RemoveAttributeAnimation(const String&);
  4031. void RemoveDecals(uint);
  4032. void RemoveInstanceDefault();
  4033. void RemoveObjectAnimation();
  4034. void ResetToDefault();
  4035. bool Save(File) const;
  4036. bool Save(VectorBuffer&) const;
  4037. bool SaveJSON(JSONValue&) const;
  4038. bool SaveXML(XMLElement&) const;
  4039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4040. void SetAnimationTime(float);
  4041. bool SetAttribute(const String&, const Variant&);
  4042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4043. void SetAttributeAnimationSpeed(const String&, float);
  4044. void SetAttributeAnimationTime(const String&, float);
  4045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4046. void SetInterceptNetworkUpdate(const String&, bool);
  4047. // Properties:
  4048. bool animationEnabled;
  4049. /* readonly */
  4050. Array<Variant> attributeDefaults;
  4051. /* readonly */
  4052. Array<AttributeInfo> attributeInfos;
  4053. Array<Variant> attributes;
  4054. /* readonly */
  4055. BoundingBox boundingBox;
  4056. bool castShadows;
  4057. /* readonly */
  4058. String category;
  4059. float drawDistance;
  4060. bool enabled;
  4061. /* readonly */
  4062. bool enabledEffective;
  4063. /* readonly */
  4064. uint id;
  4065. /* readonly */
  4066. bool inView;
  4067. uint lightMask;
  4068. float lodBias;
  4069. Material material;
  4070. uint maxIndices;
  4071. uint maxLights;
  4072. uint maxVertices;
  4073. /* readonly */
  4074. Node node;
  4075. /* readonly */
  4076. uint numAttributes;
  4077. /* readonly */
  4078. uint numDecals;
  4079. /* readonly */
  4080. uint numIndices;
  4081. /* readonly */
  4082. uint numVertices;
  4083. ObjectAnimation objectAnimation;
  4084. bool occludee;
  4085. bool occluder;
  4086. bool optimizeBufferSize;
  4087. /* readonly */
  4088. int refs;
  4089. float shadowDistance;
  4090. uint shadowMask;
  4091. bool temporary;
  4092. /* readonly */
  4093. StringHash type;
  4094. /* readonly */
  4095. String typeName;
  4096. uint viewMask;
  4097. /* readonly */
  4098. int weakRefs;
  4099. /* readonly */
  4100. BoundingBox worldBoundingBox;
  4101. /* readonly */
  4102. Zone zone;
  4103. uint zoneMask;
  4104. };
  4105. class Deserializer
  4106. {
  4107. // Methods:
  4108. Array<uint8> Read(uint);
  4109. bool ReadBool();
  4110. BoundingBox ReadBoundingBox();
  4111. int8 ReadByte();
  4112. Color ReadColor();
  4113. double ReadDouble();
  4114. String ReadFileID();
  4115. float ReadFloat();
  4116. int ReadInt();
  4117. int64 ReadInt64();
  4118. IntRect ReadIntRect();
  4119. IntVector2 ReadIntVector2();
  4120. String ReadLine();
  4121. Matrix3 ReadMatrix3();
  4122. Matrix3x4 ReadMatrix3x4();
  4123. Matrix4 ReadMatrix4();
  4124. uint ReadNetID();
  4125. Quaternion ReadPackedQuaternion();
  4126. Vector3 ReadPackedVector3(float);
  4127. Quaternion ReadQuaternion();
  4128. int16 ReadShort();
  4129. String ReadString();
  4130. StringHash ReadStringHash();
  4131. uint8 ReadUByte();
  4132. uint ReadUInt();
  4133. uint64 ReadUInt64();
  4134. uint16 ReadUShort();
  4135. uint ReadVLE();
  4136. Variant ReadVariant();
  4137. VariantMap ReadVariantMap();
  4138. Vector2 ReadVector2();
  4139. Vector3 ReadVector3();
  4140. Vector4 ReadVector4();
  4141. VectorBuffer ReadVectorBuffer(uint);
  4142. uint Seek(uint);
  4143. // Properties:
  4144. /* readonly */
  4145. uint checksum;
  4146. /* readonly */
  4147. bool eof;
  4148. /* readonly */
  4149. String name;
  4150. /* readonly */
  4151. uint position;
  4152. /* readonly */
  4153. uint size;
  4154. };
  4155. class Dictionary
  4156. {
  4157. // Methods:
  4158. void Clear();
  4159. void Erase(const String&);
  4160. bool Exists(const String&) const;
  4161. bool Get(const String&, void*) const;
  4162. bool Get(const String&, double&) const;
  4163. bool Get(const String&, int64&) const;
  4164. void Set(const String&, const void*);
  4165. void Set(const String&, const double&);
  4166. void Set(const String&, const int64&);
  4167. // Properties:
  4168. /* readonly */
  4169. bool empty;
  4170. /* readonly */
  4171. Array<String> keys;
  4172. /* readonly */
  4173. uint length;
  4174. };
  4175. class DictionaryValue
  4176. {
  4177. };
  4178. class Drawable
  4179. {
  4180. // Methods:
  4181. void ApplyAttributes();
  4182. void DrawDebugGeometry(DebugRenderer, bool);
  4183. Variant GetAttribute(const String&) const;
  4184. ValueAnimation GetAttributeAnimation(const String&) const;
  4185. float GetAttributeAnimationSpeed(const String&) const;
  4186. float GetAttributeAnimationTime(const String&) const;
  4187. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4188. Variant GetAttributeDefault(const String&) const;
  4189. bool GetInterceptNetworkUpdate(const String&) const;
  4190. bool HasSubscribedToEvent(Object, const String&);
  4191. bool HasSubscribedToEvent(const String&);
  4192. bool IsInView(Camera) const;
  4193. bool Load(File, bool = false);
  4194. bool Load(VectorBuffer&, bool = false);
  4195. bool LoadJSON(const JSONValue&, bool = false);
  4196. bool LoadXML(const XMLElement&, bool = false);
  4197. void MarkNetworkUpdate() const;
  4198. void Remove();
  4199. void RemoveAttributeAnimation(const String&);
  4200. void RemoveInstanceDefault();
  4201. void RemoveObjectAnimation();
  4202. void ResetToDefault();
  4203. bool Save(File) const;
  4204. bool Save(VectorBuffer&) const;
  4205. bool SaveJSON(JSONValue&) const;
  4206. bool SaveXML(XMLElement&) const;
  4207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4208. void SetAnimationTime(float);
  4209. bool SetAttribute(const String&, const Variant&);
  4210. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4211. void SetAttributeAnimationSpeed(const String&, float);
  4212. void SetAttributeAnimationTime(const String&, float);
  4213. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4214. void SetInterceptNetworkUpdate(const String&, bool);
  4215. // Properties:
  4216. bool animationEnabled;
  4217. /* readonly */
  4218. Array<Variant> attributeDefaults;
  4219. /* readonly */
  4220. Array<AttributeInfo> attributeInfos;
  4221. Array<Variant> attributes;
  4222. /* readonly */
  4223. BoundingBox boundingBox;
  4224. bool castShadows;
  4225. /* readonly */
  4226. String category;
  4227. float drawDistance;
  4228. bool enabled;
  4229. /* readonly */
  4230. bool enabledEffective;
  4231. /* readonly */
  4232. uint id;
  4233. /* readonly */
  4234. bool inView;
  4235. uint lightMask;
  4236. float lodBias;
  4237. uint maxLights;
  4238. /* readonly */
  4239. Node node;
  4240. /* readonly */
  4241. uint numAttributes;
  4242. ObjectAnimation objectAnimation;
  4243. bool occludee;
  4244. bool occluder;
  4245. /* readonly */
  4246. int refs;
  4247. float shadowDistance;
  4248. uint shadowMask;
  4249. bool temporary;
  4250. /* readonly */
  4251. StringHash type;
  4252. /* readonly */
  4253. String typeName;
  4254. uint viewMask;
  4255. /* readonly */
  4256. int weakRefs;
  4257. /* readonly */
  4258. BoundingBox worldBoundingBox;
  4259. uint zoneMask;
  4260. };
  4261. class Drawable2D
  4262. {
  4263. // Methods:
  4264. void ApplyAttributes();
  4265. void DrawDebugGeometry(DebugRenderer, bool);
  4266. Variant GetAttribute(const String&) const;
  4267. ValueAnimation GetAttributeAnimation(const String&) const;
  4268. float GetAttributeAnimationSpeed(const String&) const;
  4269. float GetAttributeAnimationTime(const String&) const;
  4270. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4271. Variant GetAttributeDefault(const String&) const;
  4272. bool GetInterceptNetworkUpdate(const String&) const;
  4273. bool HasSubscribedToEvent(Object, const String&);
  4274. bool HasSubscribedToEvent(const String&);
  4275. bool IsInView(Camera) const;
  4276. bool Load(File, bool = false);
  4277. bool Load(VectorBuffer&, bool = false);
  4278. bool LoadJSON(const JSONValue&, bool = false);
  4279. bool LoadXML(const XMLElement&, bool = false);
  4280. void MarkNetworkUpdate() const;
  4281. void Remove();
  4282. void RemoveAttributeAnimation(const String&);
  4283. void RemoveInstanceDefault();
  4284. void RemoveObjectAnimation();
  4285. void ResetToDefault();
  4286. bool Save(File) const;
  4287. bool Save(VectorBuffer&) const;
  4288. bool SaveJSON(JSONValue&) const;
  4289. bool SaveXML(XMLElement&) const;
  4290. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4291. void SetAnimationTime(float);
  4292. bool SetAttribute(const String&, const Variant&);
  4293. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4294. void SetAttributeAnimationSpeed(const String&, float);
  4295. void SetAttributeAnimationTime(const String&, float);
  4296. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4297. void SetInterceptNetworkUpdate(const String&, bool);
  4298. // Properties:
  4299. bool animationEnabled;
  4300. /* readonly */
  4301. Array<Variant> attributeDefaults;
  4302. /* readonly */
  4303. Array<AttributeInfo> attributeInfos;
  4304. Array<Variant> attributes;
  4305. /* readonly */
  4306. BoundingBox boundingBox;
  4307. bool castShadows;
  4308. /* readonly */
  4309. String category;
  4310. float drawDistance;
  4311. bool enabled;
  4312. /* readonly */
  4313. bool enabledEffective;
  4314. /* readonly */
  4315. uint id;
  4316. /* readonly */
  4317. bool inView;
  4318. int layer;
  4319. uint lightMask;
  4320. float lodBias;
  4321. uint maxLights;
  4322. /* readonly */
  4323. Node node;
  4324. /* readonly */
  4325. uint numAttributes;
  4326. ObjectAnimation objectAnimation;
  4327. bool occludee;
  4328. bool occluder;
  4329. int orderInLayer;
  4330. /* readonly */
  4331. int refs;
  4332. float shadowDistance;
  4333. uint shadowMask;
  4334. bool temporary;
  4335. /* readonly */
  4336. StringHash type;
  4337. /* readonly */
  4338. String typeName;
  4339. uint viewMask;
  4340. /* readonly */
  4341. int weakRefs;
  4342. /* readonly */
  4343. BoundingBox worldBoundingBox;
  4344. uint zoneMask;
  4345. };
  4346. class DropDownList
  4347. {
  4348. // Methods:
  4349. void AddChild(UIElement);
  4350. void AddItem(UIElement);
  4351. void AddTag(const String&);
  4352. void AddTags(const String&, int8 = ';');
  4353. void ApplyAttributes();
  4354. void BringToFront();
  4355. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4356. void DisableLayoutUpdate();
  4357. IntVector2 ElementToScreen(const IntVector2&);
  4358. void EnableLayoutUpdate();
  4359. uint FindChild(UIElement) const;
  4360. Variant GetAttribute(const String&) const;
  4361. ValueAnimation GetAttributeAnimation(const String&) const;
  4362. float GetAttributeAnimationSpeed(const String&) const;
  4363. float GetAttributeAnimationTime(const String&) const;
  4364. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4365. Variant GetAttributeDefault(const String&) const;
  4366. UIElement GetChild(const String&, bool = false) const;
  4367. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4368. Array<UIElement> GetChildren(bool = false) const;
  4369. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4370. UIElement GetElementEventSender() const;
  4371. bool GetInterceptNetworkUpdate(const String&) const;
  4372. Array<UIElement> GetItems() const;
  4373. uint GetNumChildren(bool) const;
  4374. bool HasSubscribedToEvent(Object, const String&);
  4375. bool HasSubscribedToEvent(const String&);
  4376. bool HasTag(const String&) const;
  4377. void InsertChild(uint, UIElement);
  4378. void InsertItem(uint, UIElement);
  4379. bool IsInside(IntVector2, bool);
  4380. bool IsInsideCombined(IntVector2, bool);
  4381. bool Load(File, bool = false);
  4382. bool Load(VectorBuffer&, bool = false);
  4383. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4384. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4385. bool LoadJSON(const JSONValue&, bool = false);
  4386. bool LoadXML(File);
  4387. bool LoadXML(VectorBuffer&);
  4388. bool LoadXML(XMLFile, XMLFile);
  4389. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4390. bool LoadXML(const XMLElement&, bool = false);
  4391. void MarkNetworkUpdate() const;
  4392. void Remove();
  4393. void RemoveAllChildren();
  4394. void RemoveAllItems();
  4395. void RemoveAllTags();
  4396. void RemoveAttributeAnimation(const String&);
  4397. void RemoveChild(UIElement, uint = 0);
  4398. void RemoveChild(uint);
  4399. void RemoveInstanceDefault();
  4400. void RemoveItem(UIElement);
  4401. void RemoveItem(uint);
  4402. void RemoveObjectAnimation();
  4403. bool RemoveTag(const String&);
  4404. void ResetDeepEnabled();
  4405. void ResetToDefault();
  4406. bool Save(File) const;
  4407. bool Save(VectorBuffer&) const;
  4408. bool SaveJSON(JSONValue&) const;
  4409. bool SaveXML(File, const String& = "\t");
  4410. bool SaveXML(VectorBuffer&, const String& = "\t");
  4411. bool SaveXML(XMLElement&) const;
  4412. IntVector2 ScreenToElement(const IntVector2&);
  4413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4414. void SetAccelerator(int, int);
  4415. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4416. void SetAnimationTime(float);
  4417. bool SetAttribute(const String&, const Variant&);
  4418. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4419. void SetAttributeAnimationSpeed(const String&, float);
  4420. void SetAttributeAnimationTime(const String&, float);
  4421. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4422. void SetDeepEnabled(bool);
  4423. void SetEnabledRecursive(bool);
  4424. void SetFixedHeight(int);
  4425. void SetFixedSize(int, int);
  4426. void SetFixedWidth(int);
  4427. void SetFullImageRect();
  4428. void SetHoverOffset(int, int);
  4429. void SetInterceptNetworkUpdate(const String&, bool);
  4430. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4431. void SetMaxAnchor(float, float);
  4432. void SetMaxSize(int, int);
  4433. void SetMinAnchor(float, float);
  4434. void SetMinSize(int, int);
  4435. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4436. void SetPivot(float, float);
  4437. void SetPosition(int, int);
  4438. void SetPressedChildOffset(int, int);
  4439. void SetPressedOffset(int, int);
  4440. void SetRepeat(float, float);
  4441. void SetSize(int, int);
  4442. bool SetStyle(const String&, XMLFile = null);
  4443. bool SetStyle(const XMLElement&);
  4444. bool SetStyleAuto(XMLFile = null);
  4445. void UpdateLayout();
  4446. const Variant& GetVar(const StringHash&);
  4447. UIElement getPopup() const;
  4448. // Properties:
  4449. /* readonly */
  4450. int acceleratorKey;
  4451. /* readonly */
  4452. int acceleratorQualifiers;
  4453. bool animationEnabled;
  4454. /* readonly */
  4455. Array<Variant> attributeDefaults;
  4456. /* readonly */
  4457. Array<AttributeInfo> attributeInfos;
  4458. Array<Variant> attributes;
  4459. BlendMode blendMode;
  4460. IntRect border;
  4461. bool bringToBack;
  4462. bool bringToFront;
  4463. /* readonly */
  4464. String category;
  4465. /* readonly */
  4466. IntVector2 childOffset;
  4467. /* readonly */
  4468. Array<UIElement> children;
  4469. IntRect clipBorder;
  4470. bool clipChildren;
  4471. /* writeonly */
  4472. Color color;
  4473. /* readonly */
  4474. bool colorGradient;
  4475. Array<Color> colors;
  4476. /* readonly */
  4477. IntRect combinedScreenRect;
  4478. XMLFile defaultStyle;
  4479. /* readonly */
  4480. float derivedOpacity;
  4481. /* readonly */
  4482. uint dragButtonCombo;
  4483. /* readonly */
  4484. int dragButtonCount;
  4485. uint dragDropMode;
  4486. bool editable;
  4487. bool elementEventSender;
  4488. bool enableAnchor;
  4489. bool enabled;
  4490. /* readonly */
  4491. bool enabledSelf;
  4492. /* readonly */
  4493. bool fixedHeight;
  4494. /* readonly */
  4495. bool fixedSize;
  4496. /* readonly */
  4497. bool fixedWidth;
  4498. bool focus;
  4499. FocusMode focusMode;
  4500. int height;
  4501. HorizontalAlignment horizontalAlignment;
  4502. IntVector2 hoverOffset;
  4503. /* readonly */
  4504. bool hovering;
  4505. IntRect imageBorder;
  4506. IntRect imageRect;
  4507. int indent;
  4508. int indentSpacing;
  4509. /* readonly */
  4510. int indentWidth;
  4511. bool internal;
  4512. /* readonly */
  4513. Array<UIElement> items;
  4514. IntRect layoutBorder;
  4515. Vector2 layoutFlexScale;
  4516. LayoutMode layoutMode;
  4517. int layoutSpacing;
  4518. /* readonly */
  4519. ListView listView;
  4520. Vector2 maxAnchor;
  4521. int maxHeight;
  4522. IntVector2 maxOffset;
  4523. IntVector2 maxSize;
  4524. int maxWidth;
  4525. Vector2 minAnchor;
  4526. int minHeight;
  4527. IntVector2 minOffset;
  4528. IntVector2 minSize;
  4529. int minWidth;
  4530. String name;
  4531. /* readonly */
  4532. uint numAllChildren;
  4533. /* readonly */
  4534. uint numAttributes;
  4535. /* readonly */
  4536. uint numChildren;
  4537. /* readonly */
  4538. uint numItems;
  4539. ObjectAnimation objectAnimation;
  4540. float opacity;
  4541. UIElement parent;
  4542. Vector2 pivot;
  4543. /* readonly */
  4544. UIElement placeholder;
  4545. String placeholderText;
  4546. IntVector2 position;
  4547. /* readonly */
  4548. bool pressed;
  4549. IntVector2 pressedChildOffset;
  4550. IntVector2 pressedOffset;
  4551. int priority;
  4552. /* readonly */
  4553. int refs;
  4554. float repeatDelay;
  4555. float repeatRate;
  4556. bool resizePopup;
  4557. /* readonly */
  4558. UIElement root;
  4559. /* readonly */
  4560. IntVector2 screenPosition;
  4561. bool selected;
  4562. /* readonly */
  4563. UIElement selectedItem;
  4564. uint selection;
  4565. bool showPopup;
  4566. IntVector2 size;
  4567. bool sortChildren;
  4568. String style;
  4569. /* readonly */
  4570. Array<String> tags;
  4571. bool temporary;
  4572. Texture texture;
  4573. bool tiled;
  4574. TraversalMode traversalMode;
  4575. /* readonly */
  4576. StringHash type;
  4577. /* readonly */
  4578. String typeName;
  4579. bool useDerivedOpacity;
  4580. /* readonly */
  4581. VariantMap vars;
  4582. VerticalAlignment verticalAlignment;
  4583. bool visible;
  4584. /* readonly */
  4585. bool visibleEffective;
  4586. /* readonly */
  4587. int weakRefs;
  4588. int width;
  4589. };
  4590. class DynamicNavigationMesh
  4591. {
  4592. // Methods:
  4593. void ApplyAttributes();
  4594. bool Build();
  4595. bool Build(const BoundingBox&);
  4596. void DrawDebugGeometry(DebugRenderer, bool);
  4597. void DrawDebugGeometry(bool);
  4598. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4599. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4600. float GetAreaCost(uint) const;
  4601. Variant GetAttribute(const String&) const;
  4602. ValueAnimation GetAttributeAnimation(const String&) const;
  4603. float GetAttributeAnimationSpeed(const String&) const;
  4604. float GetAttributeAnimationTime(const String&) const;
  4605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4606. Variant GetAttributeDefault(const String&) const;
  4607. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4608. bool GetInterceptNetworkUpdate(const String&) const;
  4609. Vector3 GetRandomPoint();
  4610. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4611. bool HasSubscribedToEvent(Object, const String&);
  4612. bool HasSubscribedToEvent(const String&);
  4613. bool Load(File, bool = false);
  4614. bool Load(VectorBuffer&, bool = false);
  4615. bool LoadJSON(const JSONValue&, bool = false);
  4616. bool LoadXML(const XMLElement&, bool = false);
  4617. void MarkNetworkUpdate() const;
  4618. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4619. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4620. void Remove();
  4621. void RemoveAttributeAnimation(const String&);
  4622. void RemoveInstanceDefault();
  4623. void RemoveObjectAnimation();
  4624. void ResetToDefault();
  4625. bool Save(File) const;
  4626. bool Save(VectorBuffer&) const;
  4627. bool SaveJSON(JSONValue&) const;
  4628. bool SaveXML(XMLElement&) const;
  4629. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4630. void SetAnimationTime(float);
  4631. void SetAreaCost(uint, float);
  4632. bool SetAttribute(const String&, const Variant&);
  4633. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4634. void SetAttributeAnimationSpeed(const String&, float);
  4635. void SetAttributeAnimationTime(const String&, float);
  4636. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4637. void SetInterceptNetworkUpdate(const String&, bool);
  4638. // Properties:
  4639. float agentHeight;
  4640. float agentMaxClimb;
  4641. float agentMaxSlope;
  4642. float agentRadius;
  4643. bool animationEnabled;
  4644. /* readonly */
  4645. Array<Variant> attributeDefaults;
  4646. /* readonly */
  4647. Array<AttributeInfo> attributeInfos;
  4648. Array<Variant> attributes;
  4649. /* readonly */
  4650. BoundingBox boundingBox;
  4651. /* readonly */
  4652. String category;
  4653. float cellHeight;
  4654. float cellSize;
  4655. float detailSampleDistance;
  4656. float detailSampleMaxError;
  4657. bool drawNavAreas;
  4658. bool drawObstacles;
  4659. bool drawOffMeshConnections;
  4660. float edgeMaxError;
  4661. float edgeMaxLength;
  4662. bool enabled;
  4663. /* readonly */
  4664. bool enabledEffective;
  4665. /* readonly */
  4666. uint id;
  4667. /* readonly */
  4668. bool initialized;
  4669. bool maxLayers;
  4670. uint maxObstacles;
  4671. /* readonly */
  4672. Node node;
  4673. /* readonly */
  4674. uint numAttributes;
  4675. /* readonly */
  4676. IntVector2 numTiles;
  4677. ObjectAnimation objectAnimation;
  4678. Vector3 padding;
  4679. NavmeshPartitionType partitionType;
  4680. /* readonly */
  4681. int refs;
  4682. float regionMergeSize;
  4683. float regionMinSize;
  4684. bool temporary;
  4685. int tileSize;
  4686. /* readonly */
  4687. StringHash type;
  4688. /* readonly */
  4689. String typeName;
  4690. /* readonly */
  4691. int weakRefs;
  4692. /* readonly */
  4693. BoundingBox worldBoundingBox;
  4694. };
  4695. class Engine
  4696. {
  4697. // Methods:
  4698. Console CreateConsole();
  4699. DebugHud CreateDebugHud();
  4700. void DumpMemory();
  4701. void DumpProfiler();
  4702. void DumpResources(bool = false);
  4703. void Exit();
  4704. bool HasSubscribedToEvent(Object, const String&);
  4705. bool HasSubscribedToEvent(const String&);
  4706. void RunFrame();
  4707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4708. // Properties:
  4709. bool autoExit;
  4710. /* readonly */
  4711. String category;
  4712. /* readonly */
  4713. bool exiting;
  4714. /* readonly */
  4715. bool headless;
  4716. /* readonly */
  4717. bool initialized;
  4718. int maxFps;
  4719. int maxInactiveFps;
  4720. int minFps;
  4721. bool pauseMinimized;
  4722. /* readonly */
  4723. int refs;
  4724. int timeStepSmoothing;
  4725. /* readonly */
  4726. StringHash type;
  4727. /* readonly */
  4728. String typeName;
  4729. /* readonly */
  4730. int weakRefs;
  4731. };
  4732. class File
  4733. {
  4734. // Methods:
  4735. void Close();
  4736. bool HasSubscribedToEvent(Object, const String&);
  4737. bool HasSubscribedToEvent(const String&);
  4738. bool Open(const String&, FileMode = FILE_READ);
  4739. Array<uint8> Read(uint);
  4740. bool ReadBool();
  4741. BoundingBox ReadBoundingBox();
  4742. int8 ReadByte();
  4743. Color ReadColor();
  4744. double ReadDouble();
  4745. String ReadFileID();
  4746. float ReadFloat();
  4747. int ReadInt();
  4748. int64 ReadInt64();
  4749. IntRect ReadIntRect();
  4750. IntVector2 ReadIntVector2();
  4751. String ReadLine();
  4752. Matrix3 ReadMatrix3();
  4753. Matrix3x4 ReadMatrix3x4();
  4754. Matrix4 ReadMatrix4();
  4755. uint ReadNetID();
  4756. Quaternion ReadPackedQuaternion();
  4757. Vector3 ReadPackedVector3(float);
  4758. Quaternion ReadQuaternion();
  4759. int16 ReadShort();
  4760. String ReadString();
  4761. StringHash ReadStringHash();
  4762. uint8 ReadUByte();
  4763. uint ReadUInt();
  4764. uint64 ReadUInt64();
  4765. uint16 ReadUShort();
  4766. uint ReadVLE();
  4767. Variant ReadVariant();
  4768. VariantMap ReadVariantMap();
  4769. Vector2 ReadVector2();
  4770. Vector3 ReadVector3();
  4771. Vector4 ReadVector4();
  4772. VectorBuffer ReadVectorBuffer(uint);
  4773. uint Seek(uint);
  4774. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4775. uint Write(Array<uint8>);
  4776. bool WriteBool(bool);
  4777. bool WriteBoundingBox(const BoundingBox&);
  4778. bool WriteByte(int8);
  4779. bool WriteColor(const Color&);
  4780. bool WriteDouble(double);
  4781. bool WriteFileID(const String&);
  4782. bool WriteFloat(float);
  4783. bool WriteInt(int);
  4784. bool WriteInt64(int64);
  4785. bool WriteIntRect(const IntRect&);
  4786. bool WriteIntVector2(const IntVector2&);
  4787. bool WriteLine(const String&);
  4788. bool WriteMatrix3(const Matrix3&);
  4789. bool WriteMatrix3x4(const Matrix3x4&);
  4790. bool WriteMatrix4(const Matrix4&);
  4791. bool WriteNetID(uint);
  4792. bool WritePackedQuaternion(const Quaternion&);
  4793. bool WritePackedVector3(const Vector3&, float);
  4794. bool WriteQuaternion(const Quaternion&);
  4795. bool WriteShort(int16);
  4796. bool WriteString(const String&);
  4797. bool WriteStringHash(const StringHash&);
  4798. bool WriteUByte(uint8);
  4799. bool WriteUInt(uint);
  4800. bool WriteUInt64(uint64);
  4801. bool WriteUShort(uint16);
  4802. bool WriteVLE(uint);
  4803. bool WriteVariant(const Variant&);
  4804. bool WriteVariantMap(const VariantMap&);
  4805. bool WriteVector2(const Vector2&);
  4806. bool WriteVector3(const Vector3&);
  4807. bool WriteVector4(const Vector4&);
  4808. bool WriteVectorBuffer(const VectorBuffer&);
  4809. // Properties:
  4810. /* readonly */
  4811. String category;
  4812. /* readonly */
  4813. uint checksum;
  4814. /* readonly */
  4815. bool eof;
  4816. /* readonly */
  4817. FileMode mode;
  4818. /* readonly */
  4819. String name;
  4820. /* readonly */
  4821. bool open;
  4822. /* readonly */
  4823. bool packaged;
  4824. /* readonly */
  4825. uint position;
  4826. /* readonly */
  4827. int refs;
  4828. /* readonly */
  4829. uint size;
  4830. /* readonly */
  4831. StringHash type;
  4832. /* readonly */
  4833. String typeName;
  4834. /* readonly */
  4835. int weakRefs;
  4836. };
  4837. class FileSelector
  4838. {
  4839. // Methods:
  4840. bool HasSubscribedToEvent(Object, const String&);
  4841. bool HasSubscribedToEvent(const String&);
  4842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4843. void SetButtonTexts(const String&, const String&);
  4844. void SetFilters(Array<String>, uint);
  4845. void UpdateElements();
  4846. // Properties:
  4847. /* readonly */
  4848. Button cancelButton;
  4849. /* readonly */
  4850. String category;
  4851. XMLFile defaultStyle;
  4852. bool directoryMode;
  4853. /* readonly */
  4854. ListView fileList;
  4855. String fileName;
  4856. /* readonly */
  4857. LineEdit fileNameEdit;
  4858. /* readonly */
  4859. String filter;
  4860. /* readonly */
  4861. uint filterIndex;
  4862. /* readonly */
  4863. DropDownList filterList;
  4864. /* readonly */
  4865. Button okButton;
  4866. String path;
  4867. /* readonly */
  4868. LineEdit pathEdit;
  4869. /* readonly */
  4870. int refs;
  4871. String title;
  4872. /* readonly */
  4873. Text titleText;
  4874. /* readonly */
  4875. StringHash type;
  4876. /* readonly */
  4877. String typeName;
  4878. /* readonly */
  4879. int weakRefs;
  4880. /* readonly */
  4881. Window window;
  4882. };
  4883. class FileSystem
  4884. {
  4885. // Methods:
  4886. bool Copy(const String&, const String&);
  4887. bool CreateDir(const String&);
  4888. bool Delete(const String&);
  4889. bool DirExists(const String&) const;
  4890. bool FileExists(const String&) const;
  4891. String GetAppPreferencesDir(const String&, const String&) const;
  4892. uint GetLastModifiedTime(const String&) const;
  4893. bool HasSubscribedToEvent(Object, const String&);
  4894. bool HasSubscribedToEvent(const String&);
  4895. bool Rename(const String&, const String&);
  4896. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4898. bool SetLastModifiedTime(const String&, uint);
  4899. int SystemCommand(const String&, bool = false);
  4900. uint SystemCommandAsync(const String&);
  4901. bool SystemOpen(const String&, const String&);
  4902. int SystemRun(const String&, Array<String>);
  4903. uint SystemRunAsync(const String&, Array<String>);
  4904. // Properties:
  4905. /* readonly */
  4906. String category;
  4907. String currentDir;
  4908. bool executeConsoleCommands;
  4909. /* readonly */
  4910. String programDir;
  4911. /* readonly */
  4912. int refs;
  4913. /* readonly */
  4914. StringHash type;
  4915. /* readonly */
  4916. String typeName;
  4917. /* readonly */
  4918. String userDocumentsDir;
  4919. /* readonly */
  4920. int weakRefs;
  4921. };
  4922. class FocusParameters
  4923. {
  4924. // Properties:
  4925. bool autoSize;
  4926. bool focus;
  4927. float minView;
  4928. bool nonUniform;
  4929. float quantize;
  4930. };
  4931. class Font
  4932. {
  4933. // Methods:
  4934. IntVector2 GetTotalGlyphOffset(int) const;
  4935. bool HasSubscribedToEvent(Object, const String&);
  4936. bool HasSubscribedToEvent(const String&);
  4937. bool Load(File);
  4938. bool Load(VectorBuffer&);
  4939. bool Load(const String&);
  4940. bool Save(File) const;
  4941. bool Save(VectorBuffer&) const;
  4942. bool Save(const String&) const;
  4943. bool SaveXML(File, int, bool = false, const String& = "\t");
  4944. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4945. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4947. // Properties:
  4948. IntVector2 absoluteGlyphOffset;
  4949. /* readonly */
  4950. String category;
  4951. /* readonly */
  4952. FontType fontType;
  4953. /* readonly */
  4954. uint memoryUse;
  4955. String name;
  4956. /* readonly */
  4957. int refs;
  4958. Vector2 scaledGlyphOffset;
  4959. /* readonly */
  4960. StringHash type;
  4961. /* readonly */
  4962. String typeName;
  4963. /* readonly */
  4964. uint useTimer;
  4965. /* readonly */
  4966. int weakRefs;
  4967. };
  4968. class Frustum
  4969. {
  4970. // Methods:
  4971. void Define(const BoundingBox&, const Matrix3x4&);
  4972. void Define(const Matrix4&);
  4973. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4974. void Define(float, float, float, float, float, const Matrix3x4&);
  4975. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4976. void DefineSplit(const Matrix4&, float, float);
  4977. float Distance(const Vector3&) const;
  4978. Intersection IsInside(const BoundingBox&);
  4979. Intersection IsInside(const Sphere&);
  4980. Intersection IsInside(const Vector3&);
  4981. Intersection IsInsideFast(const BoundingBox&) const;
  4982. Intersection IsInsideFast(const Sphere&) const;
  4983. void Transform(const Matrix3&);
  4984. void Transform(const Matrix3x4&);
  4985. Frustum Transformed(const Matrix3&) const;
  4986. Frustum Transformed(const Matrix3x4&) const;
  4987. // Properties:
  4988. /* readonly */
  4989. Array<Vector3> vertices;
  4990. };
  4991. class Geometry
  4992. {
  4993. // Methods:
  4994. bool HasSubscribedToEvent(Object, const String&);
  4995. bool HasSubscribedToEvent(const String&);
  4996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4997. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4998. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4999. void SetIndexBuffer(IndexBuffer);
  5000. bool SetVertexBuffer(uint, VertexBuffer);
  5001. // Properties:
  5002. /* readonly */
  5003. String category;
  5004. /* readonly */
  5005. bool empty;
  5006. IndexBuffer indexBuffer;
  5007. /* readonly */
  5008. uint indexCount;
  5009. /* readonly */
  5010. uint indexStart;
  5011. float lodDistance;
  5012. uint numVertexBuffers;
  5013. /* readonly */
  5014. PrimitiveType primitiveType;
  5015. /* readonly */
  5016. int refs;
  5017. /* readonly */
  5018. StringHash type;
  5019. /* readonly */
  5020. String typeName;
  5021. /* readonly */
  5022. Array<VertexBuffer> vertexBuffers;
  5023. /* readonly */
  5024. uint vertexCount;
  5025. /* readonly */
  5026. uint vertexStart;
  5027. /* readonly */
  5028. int weakRefs;
  5029. };
  5030. class Graphics
  5031. {
  5032. // Methods:
  5033. void BeginDumpShaders(const String&);
  5034. void Close();
  5035. void EndDumpShaders();
  5036. bool HasSubscribedToEvent(Object, const String&);
  5037. bool HasSubscribedToEvent(const String&);
  5038. void Maximize();
  5039. void Minimize();
  5040. void PrecacheShaders(File);
  5041. void PrecacheShaders(VectorBuffer&);
  5042. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5043. bool SetMode(int, int);
  5044. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  5045. void SetWindowPosition(int, int);
  5046. bool TakeScreenShot(Image);
  5047. bool ToggleFullscreen();
  5048. // Properties:
  5049. /* readonly */
  5050. String apiName;
  5051. /* readonly */
  5052. bool borderless;
  5053. /* readonly */
  5054. String category;
  5055. /* readonly */
  5056. bool deferredSupport;
  5057. /* readonly */
  5058. IntVector2 desktopResolution;
  5059. /* readonly */
  5060. bool deviceLost;
  5061. bool dither;
  5062. bool flushGPU;
  5063. /* readonly */
  5064. bool fullscreen;
  5065. /* readonly */
  5066. bool hardwareShadowSupport;
  5067. /* readonly */
  5068. int height;
  5069. /* readonly */
  5070. bool initialized;
  5071. /* readonly */
  5072. bool instancingSupport;
  5073. /* readonly */
  5074. bool lightPrepassSupport;
  5075. /* readonly */
  5076. int multiSample;
  5077. /* readonly */
  5078. Array<int> multiSampleLevels;
  5079. /* readonly */
  5080. uint numBatches;
  5081. /* readonly */
  5082. uint numPrimitives;
  5083. String orientations;
  5084. /* readonly */
  5085. bool readableDepthSupport;
  5086. /* readonly */
  5087. int refs;
  5088. /* readonly */
  5089. bool resizable;
  5090. /* readonly */
  5091. Array<IntVector2> resolutions;
  5092. bool sRGB;
  5093. /* readonly */
  5094. bool sRGBSupport;
  5095. /* readonly */
  5096. bool sRGBWriteSupport;
  5097. String shaderCacheDir;
  5098. /* readonly */
  5099. IntVector2 size;
  5100. /* readonly */
  5101. bool tripleBuffer;
  5102. /* readonly */
  5103. StringHash type;
  5104. /* readonly */
  5105. String typeName;
  5106. /* readonly */
  5107. bool vsync;
  5108. /* readonly */
  5109. int weakRefs;
  5110. /* readonly */
  5111. int width;
  5112. /* writeonly */
  5113. Image windowIcon;
  5114. IntVector2 windowPosition;
  5115. String windowTitle;
  5116. };
  5117. class HttpRequest
  5118. {
  5119. // Methods:
  5120. Array<uint8> Read(uint);
  5121. bool ReadBool();
  5122. BoundingBox ReadBoundingBox();
  5123. int8 ReadByte();
  5124. Color ReadColor();
  5125. double ReadDouble();
  5126. String ReadFileID();
  5127. float ReadFloat();
  5128. int ReadInt();
  5129. int64 ReadInt64();
  5130. IntRect ReadIntRect();
  5131. IntVector2 ReadIntVector2();
  5132. String ReadLine();
  5133. Matrix3 ReadMatrix3();
  5134. Matrix3x4 ReadMatrix3x4();
  5135. Matrix4 ReadMatrix4();
  5136. uint ReadNetID();
  5137. Quaternion ReadPackedQuaternion();
  5138. Vector3 ReadPackedVector3(float);
  5139. Quaternion ReadQuaternion();
  5140. int16 ReadShort();
  5141. String ReadString();
  5142. StringHash ReadStringHash();
  5143. uint8 ReadUByte();
  5144. uint ReadUInt();
  5145. uint64 ReadUInt64();
  5146. uint16 ReadUShort();
  5147. uint ReadVLE();
  5148. Variant ReadVariant();
  5149. VariantMap ReadVariantMap();
  5150. Vector2 ReadVector2();
  5151. Vector3 ReadVector3();
  5152. Vector4 ReadVector4();
  5153. VectorBuffer ReadVectorBuffer(uint);
  5154. uint Seek(uint);
  5155. // Properties:
  5156. /* readonly */
  5157. uint availableSize;
  5158. /* readonly */
  5159. uint checksum;
  5160. /* readonly */
  5161. bool eof;
  5162. /* readonly */
  5163. String error;
  5164. /* readonly */
  5165. String name;
  5166. /* readonly */
  5167. bool open;
  5168. /* readonly */
  5169. uint position;
  5170. /* readonly */
  5171. int refs;
  5172. /* readonly */
  5173. uint size;
  5174. /* readonly */
  5175. HttpRequestState state;
  5176. /* readonly */
  5177. String url;
  5178. /* readonly */
  5179. String verb;
  5180. /* readonly */
  5181. int weakRefs;
  5182. };
  5183. class Image
  5184. {
  5185. // Methods:
  5186. void Clear(const Color&);
  5187. void ClearInt(uint);
  5188. bool FlipHorizontal();
  5189. bool FlipVertical();
  5190. Color GetPixel(int, int) const;
  5191. Color GetPixel(int, int, int) const;
  5192. Color GetPixelBilinear(float, float) const;
  5193. uint GetPixelInt(int, int) const;
  5194. uint GetPixelInt(int, int, int) const;
  5195. Color GetPixelTrilinear(float, float, float) const;
  5196. Image GetSubimage(const IntRect&) const;
  5197. bool HasSubscribedToEvent(Object, const String&);
  5198. bool HasSubscribedToEvent(const String&);
  5199. bool Load(File);
  5200. bool Load(VectorBuffer&);
  5201. bool Load(const String&);
  5202. bool LoadColorLUT(File);
  5203. bool LoadColorLUT(VectorBuffer&);
  5204. bool Resize(int, int);
  5205. bool Save(File) const;
  5206. bool Save(VectorBuffer&) const;
  5207. bool Save(const String&) const;
  5208. bool SaveBMP(const String&) const;
  5209. bool SaveDDS(const String&) const;
  5210. bool SaveJPG(const String&, int) const;
  5211. bool SavePNG(const String&) const;
  5212. bool SaveTGA(const String&) const;
  5213. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5214. void SetPixel(int, int, const Color&);
  5215. void SetPixel(int, int, int, const Color&);
  5216. void SetPixelInt(int, int, int, uint);
  5217. void SetPixelInt(int, int, uint);
  5218. bool SetSize(int, int, int, uint);
  5219. bool SetSize(int, int, uint);
  5220. // Properties:
  5221. /* readonly */
  5222. bool array;
  5223. /* readonly */
  5224. String category;
  5225. /* readonly */
  5226. uint components;
  5227. /* readonly */
  5228. bool compressed;
  5229. /* readonly */
  5230. CompressedFormat compressedFormat;
  5231. /* readonly */
  5232. bool cubemap;
  5233. /* readonly */
  5234. int depth;
  5235. /* readonly */
  5236. int height;
  5237. /* readonly */
  5238. uint memoryUse;
  5239. String name;
  5240. /* readonly */
  5241. uint numCompressedLevels;
  5242. /* readonly */
  5243. int refs;
  5244. /* readonly */
  5245. bool sRGB;
  5246. /* readonly */
  5247. StringHash type;
  5248. /* readonly */
  5249. String typeName;
  5250. /* readonly */
  5251. uint useTimer;
  5252. /* readonly */
  5253. int weakRefs;
  5254. /* readonly */
  5255. int width;
  5256. };
  5257. class IndexBuffer
  5258. {
  5259. // Methods:
  5260. VectorBuffer GetData();
  5261. bool HasSubscribedToEvent(Object, const String&);
  5262. bool HasSubscribedToEvent(const String&);
  5263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5264. bool SetData(VectorBuffer&);
  5265. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5266. void SetSize(uint, bool, bool = false);
  5267. // Properties:
  5268. /* readonly */
  5269. String category;
  5270. /* readonly */
  5271. bool dynamic;
  5272. /* readonly */
  5273. uint indexCount;
  5274. /* readonly */
  5275. uint indexSize;
  5276. /* readonly */
  5277. int refs;
  5278. bool shadowed;
  5279. /* readonly */
  5280. StringHash type;
  5281. /* readonly */
  5282. String typeName;
  5283. /* readonly */
  5284. int weakRefs;
  5285. };
  5286. class Input
  5287. {
  5288. // Methods:
  5289. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5290. void CenterMousePosition();
  5291. int GetKeyFromName(const String&) const;
  5292. int GetKeyFromScancode(int) const;
  5293. String GetKeyName(int) const;
  5294. int GetScancodeFromKey(int) const;
  5295. int GetScancodeFromName(const String&) const;
  5296. String GetScancodeName(int) const;
  5297. bool HasSubscribedToEvent(Object, const String&);
  5298. bool HasSubscribedToEvent(const String&);
  5299. uint LoadGestures(File);
  5300. uint LoadGestures(VectorBuffer&);
  5301. bool RecordGesture();
  5302. void RemoveAllGestures();
  5303. bool RemoveGesture(uint);
  5304. bool RemoveScreenJoystick(int);
  5305. void ResetMouseGrabbed();
  5306. void ResetMouseMode();
  5307. void ResetMouseVisible();
  5308. bool SaveGesture(File, uint);
  5309. bool SaveGesture(VectorBuffer&, uint);
  5310. bool SaveGestures(File);
  5311. bool SaveGestures(VectorBuffer&);
  5312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5313. void SetMouseGrabbed(bool, bool = false);
  5314. void SetMouseMode(MouseMode, bool = false);
  5315. void SetMouseVisible(bool, bool = false);
  5316. // Properties:
  5317. /* readonly */
  5318. String category;
  5319. /* readonly */
  5320. bool focus;
  5321. /* readonly */
  5322. Array<JoystickState> joysticks;
  5323. /* readonly */
  5324. Array<JoystickState> joysticksByIndex;
  5325. /* readonly */
  5326. Array<JoystickState> joysticksByName;
  5327. /* readonly */
  5328. Array<bool> keyDown;
  5329. /* readonly */
  5330. Array<bool> keyPress;
  5331. /* readonly */
  5332. bool minimized;
  5333. /* readonly */
  5334. Array<bool> mouseButtonDown;
  5335. /* readonly */
  5336. Array<bool> mouseButtonPress;
  5337. bool mouseGrabbed;
  5338. /* readonly */
  5339. bool mouseLocked;
  5340. MouseMode mouseMode;
  5341. /* readonly */
  5342. IntVector2 mouseMove;
  5343. /* readonly */
  5344. int mouseMoveWheel;
  5345. /* readonly */
  5346. int mouseMoveX;
  5347. /* readonly */
  5348. int mouseMoveY;
  5349. IntVector2 mousePosition;
  5350. bool mouseVisible;
  5351. /* readonly */
  5352. uint numJoysticks;
  5353. /* readonly */
  5354. uint numTouches;
  5355. /* readonly */
  5356. Array<bool> qualifierDown;
  5357. /* readonly */
  5358. Array<bool> qualifierPress;
  5359. /* readonly */
  5360. int qualifiers;
  5361. /* readonly */
  5362. int refs;
  5363. /* readonly */
  5364. Array<bool> scancodeDown;
  5365. /* readonly */
  5366. Array<bool> scancodePress;
  5367. Array<bool> screenJoystickVisible;
  5368. /* readonly */
  5369. bool screenKeyboardSupport;
  5370. bool screenKeyboardVisible;
  5371. bool toggleFullscreen;
  5372. bool touchEmulation;
  5373. /* readonly */
  5374. Array<TouchState> touches;
  5375. /* readonly */
  5376. StringHash type;
  5377. /* readonly */
  5378. String typeName;
  5379. /* readonly */
  5380. int weakRefs;
  5381. };
  5382. class IntRect
  5383. {
  5384. // Methods:
  5385. Intersection IsInside(const IntVector2&) const;
  5386. // Properties:
  5387. int bottom;
  5388. /* readonly */
  5389. Array<int> data;
  5390. /* readonly */
  5391. int height;
  5392. int left;
  5393. int right;
  5394. /* readonly */
  5395. IntVector2 size;
  5396. int top;
  5397. /* readonly */
  5398. int width;
  5399. };
  5400. class IntVector2
  5401. {
  5402. // Methods:
  5403. float Length() const;
  5404. uint ToHash() const;
  5405. String ToString() const;
  5406. // Properties:
  5407. /* readonly */
  5408. Array<int> data;
  5409. int x;
  5410. int y;
  5411. };
  5412. class IntVector3
  5413. {
  5414. // Methods:
  5415. float Length() const;
  5416. uint ToHash() const;
  5417. String ToString() const;
  5418. // Properties:
  5419. /* readonly */
  5420. Array<int> data;
  5421. int x;
  5422. int y;
  5423. int z;
  5424. };
  5425. class JSONFile
  5426. {
  5427. // Methods:
  5428. bool FromString(const String&);
  5429. JSONValue& GetRoot();
  5430. bool HasSubscribedToEvent(Object, const String&);
  5431. bool HasSubscribedToEvent(const String&);
  5432. bool Load(File);
  5433. bool Load(VectorBuffer&);
  5434. bool Load(const String&);
  5435. bool Save(File) const;
  5436. bool Save(File, const String&) const;
  5437. bool Save(VectorBuffer&) const;
  5438. bool Save(const String&) const;
  5439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5440. // Properties:
  5441. /* readonly */
  5442. String category;
  5443. /* readonly */
  5444. uint memoryUse;
  5445. String name;
  5446. /* readonly */
  5447. int refs;
  5448. /* readonly */
  5449. JSONValue root;
  5450. /* readonly */
  5451. StringHash type;
  5452. /* readonly */
  5453. String typeName;
  5454. /* readonly */
  5455. uint useTimer;
  5456. /* readonly */
  5457. int weakRefs;
  5458. };
  5459. class JSONValue
  5460. {
  5461. // Methods:
  5462. void Clear();
  5463. bool Contains(const String&) const;
  5464. void Erase(const String&);
  5465. void Erase(uint, uint = 1);
  5466. bool GetBool() const;
  5467. double GetDouble() const;
  5468. float GetFloat() const;
  5469. int GetInt() const;
  5470. uint GetUInt() const;
  5471. void Insert(uint, const JSONValue&);
  5472. const JSONValue& Get(const String&) const;
  5473. void Pop();
  5474. void Push(const JSONValue&);
  5475. void Resize(uint);
  5476. void Set(const String&, const JSONValue&);
  5477. const String& GetString() const;
  5478. // Properties:
  5479. /* readonly */
  5480. bool isArray;
  5481. /* readonly */
  5482. bool isBool;
  5483. /* readonly */
  5484. bool isNull;
  5485. /* readonly */
  5486. bool isNumber;
  5487. /* readonly */
  5488. bool isObject;
  5489. /* readonly */
  5490. bool isString;
  5491. /* readonly */
  5492. JSONNumberType numberType;
  5493. /* readonly */
  5494. String numberTypeName;
  5495. /* readonly */
  5496. uint size;
  5497. /* readonly */
  5498. JSONValueType valueType;
  5499. /* readonly */
  5500. String valueTypeName;
  5501. };
  5502. class JoystickState
  5503. {
  5504. // Properties:
  5505. /* readonly */
  5506. Array<float> axisPosition;
  5507. /* readonly */
  5508. Array<bool> buttonDown;
  5509. /* readonly */
  5510. Array<bool> buttonPress;
  5511. /* readonly */
  5512. bool controller;
  5513. /* readonly */
  5514. Array<int> hatPosition;
  5515. int joystickID;
  5516. String name;
  5517. /* readonly */
  5518. uint numAxes;
  5519. /* readonly */
  5520. uint numButtons;
  5521. /* readonly */
  5522. uint numHats;
  5523. };
  5524. class Light
  5525. {
  5526. // Methods:
  5527. void ApplyAttributes();
  5528. void DrawDebugGeometry(DebugRenderer, bool);
  5529. Variant GetAttribute(const String&) const;
  5530. ValueAnimation GetAttributeAnimation(const String&) const;
  5531. float GetAttributeAnimationSpeed(const String&) const;
  5532. float GetAttributeAnimationTime(const String&) const;
  5533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5534. Variant GetAttributeDefault(const String&) const;
  5535. bool GetInterceptNetworkUpdate(const String&) const;
  5536. bool HasSubscribedToEvent(Object, const String&);
  5537. bool HasSubscribedToEvent(const String&);
  5538. bool IsInView(Camera) const;
  5539. bool Load(File, bool = false);
  5540. bool Load(VectorBuffer&, bool = false);
  5541. bool LoadJSON(const JSONValue&, bool = false);
  5542. bool LoadXML(const XMLElement&, bool = false);
  5543. void MarkNetworkUpdate() const;
  5544. void Remove();
  5545. void RemoveAttributeAnimation(const String&);
  5546. void RemoveInstanceDefault();
  5547. void RemoveObjectAnimation();
  5548. void ResetToDefault();
  5549. bool Save(File) const;
  5550. bool Save(VectorBuffer&) const;
  5551. bool SaveJSON(JSONValue&) const;
  5552. bool SaveXML(XMLElement&) const;
  5553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5554. void SetAnimationTime(float);
  5555. bool SetAttribute(const String&, const Variant&);
  5556. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5557. void SetAttributeAnimationSpeed(const String&, float);
  5558. void SetAttributeAnimationTime(const String&, float);
  5559. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5560. void SetInterceptNetworkUpdate(const String&, bool);
  5561. // Properties:
  5562. bool animationEnabled;
  5563. float aspectRatio;
  5564. /* readonly */
  5565. Array<Variant> attributeDefaults;
  5566. /* readonly */
  5567. Array<AttributeInfo> attributeInfos;
  5568. Array<Variant> attributes;
  5569. /* readonly */
  5570. BoundingBox boundingBox;
  5571. float brightness;
  5572. bool castShadows;
  5573. /* readonly */
  5574. String category;
  5575. Color color;
  5576. /* readonly */
  5577. Color colorFromTemperature;
  5578. float drawDistance;
  5579. /* readonly */
  5580. Color effectiveColor;
  5581. /* readonly */
  5582. float effectiveSpecularIntensity;
  5583. bool enabled;
  5584. /* readonly */
  5585. bool enabledEffective;
  5586. float fadeDistance;
  5587. float fov;
  5588. /* readonly */
  5589. Frustum frustum;
  5590. /* readonly */
  5591. uint id;
  5592. /* readonly */
  5593. bool inView;
  5594. float length;
  5595. uint lightMask;
  5596. LightType lightType;
  5597. float lodBias;
  5598. uint maxLights;
  5599. /* readonly */
  5600. bool negative;
  5601. /* readonly */
  5602. Node node;
  5603. /* readonly */
  5604. uint numAttributes;
  5605. /* readonly */
  5606. int numShadowSplits;
  5607. ObjectAnimation objectAnimation;
  5608. bool occludee;
  5609. bool occluder;
  5610. bool perVertex;
  5611. float radius;
  5612. Texture rampTexture;
  5613. float range;
  5614. /* readonly */
  5615. int refs;
  5616. BiasParameters shadowBias;
  5617. CascadeParameters shadowCascade;
  5618. float shadowDistance;
  5619. float shadowFadeDistance;
  5620. FocusParameters shadowFocus;
  5621. float shadowIntensity;
  5622. uint shadowMask;
  5623. float shadowMaxExtrusion;
  5624. float shadowNearFarRatio;
  5625. float shadowResolution;
  5626. Texture shapeTexture;
  5627. float specularIntensity;
  5628. float temperature;
  5629. bool temporary;
  5630. /* readonly */
  5631. StringHash type;
  5632. /* readonly */
  5633. String typeName;
  5634. bool usePhysicalValues;
  5635. uint viewMask;
  5636. /* readonly */
  5637. int weakRefs;
  5638. /* readonly */
  5639. BoundingBox worldBoundingBox;
  5640. uint zoneMask;
  5641. };
  5642. class LineEdit
  5643. {
  5644. // Methods:
  5645. void AddChild(UIElement);
  5646. void AddTag(const String&);
  5647. void AddTags(const String&, int8 = ';');
  5648. void ApplyAttributes();
  5649. void BringToFront();
  5650. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5651. void DisableLayoutUpdate();
  5652. IntVector2 ElementToScreen(const IntVector2&);
  5653. void EnableLayoutUpdate();
  5654. uint FindChild(UIElement) const;
  5655. Variant GetAttribute(const String&) const;
  5656. ValueAnimation GetAttributeAnimation(const String&) const;
  5657. float GetAttributeAnimationSpeed(const String&) const;
  5658. float GetAttributeAnimationTime(const String&) const;
  5659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5660. Variant GetAttributeDefault(const String&) const;
  5661. UIElement GetChild(const String&, bool = false) const;
  5662. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5663. Array<UIElement> GetChildren(bool = false) const;
  5664. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5665. UIElement GetElementEventSender() const;
  5666. bool GetInterceptNetworkUpdate(const String&) const;
  5667. uint GetNumChildren(bool) const;
  5668. bool HasSubscribedToEvent(Object, const String&);
  5669. bool HasSubscribedToEvent(const String&);
  5670. bool HasTag(const String&) const;
  5671. void InsertChild(uint, UIElement);
  5672. bool IsInside(IntVector2, bool);
  5673. bool IsInsideCombined(IntVector2, bool);
  5674. bool Load(File, bool = false);
  5675. bool Load(VectorBuffer&, bool = false);
  5676. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5677. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5678. bool LoadJSON(const JSONValue&, bool = false);
  5679. bool LoadXML(File);
  5680. bool LoadXML(VectorBuffer&);
  5681. bool LoadXML(XMLFile, XMLFile);
  5682. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5683. bool LoadXML(const XMLElement&, bool = false);
  5684. void MarkNetworkUpdate() const;
  5685. void Remove();
  5686. void RemoveAllChildren();
  5687. void RemoveAllTags();
  5688. void RemoveAttributeAnimation(const String&);
  5689. void RemoveChild(UIElement, uint = 0);
  5690. void RemoveChild(uint);
  5691. void RemoveInstanceDefault();
  5692. void RemoveObjectAnimation();
  5693. bool RemoveTag(const String&);
  5694. void ResetDeepEnabled();
  5695. void ResetToDefault();
  5696. bool Save(File) const;
  5697. bool Save(VectorBuffer&) const;
  5698. bool SaveJSON(JSONValue&) const;
  5699. bool SaveXML(File, const String& = "\t");
  5700. bool SaveXML(VectorBuffer&, const String& = "\t");
  5701. bool SaveXML(XMLElement&) const;
  5702. IntVector2 ScreenToElement(const IntVector2&);
  5703. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5704. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5705. void SetAnimationTime(float);
  5706. bool SetAttribute(const String&, const Variant&);
  5707. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5708. void SetAttributeAnimationSpeed(const String&, float);
  5709. void SetAttributeAnimationTime(const String&, float);
  5710. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5711. void SetDeepEnabled(bool);
  5712. void SetEnabledRecursive(bool);
  5713. void SetFixedHeight(int);
  5714. void SetFixedSize(int, int);
  5715. void SetFixedWidth(int);
  5716. void SetFullImageRect();
  5717. void SetHoverOffset(int, int);
  5718. void SetInterceptNetworkUpdate(const String&, bool);
  5719. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5720. void SetMaxAnchor(float, float);
  5721. void SetMaxSize(int, int);
  5722. void SetMinAnchor(float, float);
  5723. void SetMinSize(int, int);
  5724. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5725. void SetPivot(float, float);
  5726. void SetPosition(int, int);
  5727. void SetSize(int, int);
  5728. bool SetStyle(const String&, XMLFile = null);
  5729. bool SetStyle(const XMLElement&);
  5730. bool SetStyleAuto(XMLFile = null);
  5731. void UpdateLayout();
  5732. const Variant& GetVar(const StringHash&);
  5733. // Properties:
  5734. bool animationEnabled;
  5735. /* readonly */
  5736. Array<Variant> attributeDefaults;
  5737. /* readonly */
  5738. Array<AttributeInfo> attributeInfos;
  5739. Array<Variant> attributes;
  5740. BlendMode blendMode;
  5741. IntRect border;
  5742. bool bringToBack;
  5743. bool bringToFront;
  5744. /* readonly */
  5745. String category;
  5746. /* readonly */
  5747. IntVector2 childOffset;
  5748. /* readonly */
  5749. Array<UIElement> children;
  5750. IntRect clipBorder;
  5751. bool clipChildren;
  5752. /* writeonly */
  5753. Color color;
  5754. /* readonly */
  5755. bool colorGradient;
  5756. Array<Color> colors;
  5757. /* readonly */
  5758. IntRect combinedScreenRect;
  5759. /* readonly */
  5760. BorderImage cursor;
  5761. float cursorBlinkRate;
  5762. bool cursorMovable;
  5763. uint cursorPosition;
  5764. XMLFile defaultStyle;
  5765. /* readonly */
  5766. float derivedOpacity;
  5767. /* readonly */
  5768. uint dragButtonCombo;
  5769. /* readonly */
  5770. int dragButtonCount;
  5771. uint dragDropMode;
  5772. uint echoCharacter;
  5773. bool editable;
  5774. bool elementEventSender;
  5775. bool enableAnchor;
  5776. bool enabled;
  5777. /* readonly */
  5778. bool enabledSelf;
  5779. /* readonly */
  5780. bool fixedHeight;
  5781. /* readonly */
  5782. bool fixedSize;
  5783. /* readonly */
  5784. bool fixedWidth;
  5785. bool focus;
  5786. FocusMode focusMode;
  5787. int height;
  5788. HorizontalAlignment horizontalAlignment;
  5789. IntVector2 hoverOffset;
  5790. /* readonly */
  5791. bool hovering;
  5792. IntRect imageBorder;
  5793. IntRect imageRect;
  5794. int indent;
  5795. int indentSpacing;
  5796. /* readonly */
  5797. int indentWidth;
  5798. bool internal;
  5799. IntRect layoutBorder;
  5800. Vector2 layoutFlexScale;
  5801. LayoutMode layoutMode;
  5802. int layoutSpacing;
  5803. Vector2 maxAnchor;
  5804. int maxHeight;
  5805. uint maxLength;
  5806. IntVector2 maxOffset;
  5807. IntVector2 maxSize;
  5808. int maxWidth;
  5809. Vector2 minAnchor;
  5810. int minHeight;
  5811. IntVector2 minOffset;
  5812. IntVector2 minSize;
  5813. int minWidth;
  5814. String name;
  5815. /* readonly */
  5816. uint numAllChildren;
  5817. /* readonly */
  5818. uint numAttributes;
  5819. /* readonly */
  5820. uint numChildren;
  5821. ObjectAnimation objectAnimation;
  5822. float opacity;
  5823. UIElement parent;
  5824. Vector2 pivot;
  5825. IntVector2 position;
  5826. int priority;
  5827. /* readonly */
  5828. int refs;
  5829. /* readonly */
  5830. UIElement root;
  5831. /* readonly */
  5832. IntVector2 screenPosition;
  5833. bool selected;
  5834. IntVector2 size;
  5835. bool sortChildren;
  5836. String style;
  5837. /* readonly */
  5838. Array<String> tags;
  5839. bool temporary;
  5840. String text;
  5841. bool textCopyable;
  5842. /* readonly */
  5843. Text textElement;
  5844. bool textSelectable;
  5845. Texture texture;
  5846. bool tiled;
  5847. TraversalMode traversalMode;
  5848. /* readonly */
  5849. StringHash type;
  5850. /* readonly */
  5851. String typeName;
  5852. bool useDerivedOpacity;
  5853. /* readonly */
  5854. VariantMap vars;
  5855. VerticalAlignment verticalAlignment;
  5856. bool visible;
  5857. /* readonly */
  5858. bool visibleEffective;
  5859. /* readonly */
  5860. int weakRefs;
  5861. int width;
  5862. };
  5863. class ListView
  5864. {
  5865. // Methods:
  5866. void AddChild(UIElement);
  5867. void AddItem(UIElement);
  5868. void AddSelection(uint);
  5869. void AddTag(const String&);
  5870. void AddTags(const String&, int8 = ';');
  5871. void ApplyAttributes();
  5872. void BringToFront();
  5873. void ChangeSelection(int, bool);
  5874. void ClearSelection();
  5875. void CopySelectedItemsToClipboard();
  5876. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5877. void DisableLayoutUpdate();
  5878. IntVector2 ElementToScreen(const IntVector2&);
  5879. void EnableLayoutUpdate();
  5880. void Expand(uint, bool, bool = false);
  5881. uint FindChild(UIElement) const;
  5882. uint FindItem(UIElement);
  5883. Variant GetAttribute(const String&) const;
  5884. ValueAnimation GetAttributeAnimation(const String&) const;
  5885. float GetAttributeAnimationSpeed(const String&) const;
  5886. float GetAttributeAnimationTime(const String&) const;
  5887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5888. Variant GetAttributeDefault(const String&) const;
  5889. UIElement GetChild(const String&, bool = false) const;
  5890. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5891. Array<UIElement> GetChildren(bool = false) const;
  5892. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5893. UIElement GetElementEventSender() const;
  5894. bool GetInterceptNetworkUpdate(const String&) const;
  5895. Array<UIElement> GetItems() const;
  5896. uint GetNumChildren(bool) const;
  5897. bool HasSubscribedToEvent(Object, const String&);
  5898. bool HasSubscribedToEvent(const String&);
  5899. bool HasTag(const String&) const;
  5900. void InsertChild(uint, UIElement);
  5901. void InsertItem(uint, UIElement, UIElement = null);
  5902. bool IsExpanded(uint) const;
  5903. bool IsInside(IntVector2, bool);
  5904. bool IsInsideCombined(IntVector2, bool);
  5905. bool IsSelected(uint) const;
  5906. bool Load(File, bool = false);
  5907. bool Load(VectorBuffer&, bool = false);
  5908. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5909. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5910. bool LoadJSON(const JSONValue&, bool = false);
  5911. bool LoadXML(File);
  5912. bool LoadXML(VectorBuffer&);
  5913. bool LoadXML(XMLFile, XMLFile);
  5914. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5915. bool LoadXML(const XMLElement&, bool = false);
  5916. void MarkNetworkUpdate() const;
  5917. void Remove();
  5918. void RemoveAllChildren();
  5919. void RemoveAllItems();
  5920. void RemoveAllTags();
  5921. void RemoveAttributeAnimation(const String&);
  5922. void RemoveChild(UIElement, uint = 0);
  5923. void RemoveChild(uint);
  5924. void RemoveInstanceDefault();
  5925. void RemoveItem(UIElement, uint = 0);
  5926. void RemoveItem(uint);
  5927. void RemoveObjectAnimation();
  5928. void RemoveSelection(uint);
  5929. bool RemoveTag(const String&);
  5930. void ResetDeepEnabled();
  5931. void ResetToDefault();
  5932. bool Save(File) const;
  5933. bool Save(VectorBuffer&) const;
  5934. bool SaveJSON(JSONValue&) const;
  5935. bool SaveXML(File, const String& = "\t");
  5936. bool SaveXML(VectorBuffer&, const String& = "\t");
  5937. bool SaveXML(XMLElement&) const;
  5938. IntVector2 ScreenToElement(const IntVector2&);
  5939. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5940. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5941. void SetAnimationTime(float);
  5942. bool SetAttribute(const String&, const Variant&);
  5943. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5944. void SetAttributeAnimationSpeed(const String&, float);
  5945. void SetAttributeAnimationTime(const String&, float);
  5946. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5947. void SetDeepEnabled(bool);
  5948. void SetEnabledRecursive(bool);
  5949. void SetFixedHeight(int);
  5950. void SetFixedSize(int, int);
  5951. void SetFixedWidth(int);
  5952. void SetInterceptNetworkUpdate(const String&, bool);
  5953. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5954. void SetMaxAnchor(float, float);
  5955. void SetMaxSize(int, int);
  5956. void SetMinAnchor(float, float);
  5957. void SetMinSize(int, int);
  5958. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5959. void SetPivot(float, float);
  5960. void SetPosition(int, int);
  5961. void SetScrollBarsVisible(bool, bool);
  5962. void SetSelections(Array<uint>);
  5963. void SetSize(int, int);
  5964. bool SetStyle(const String&, XMLFile = null);
  5965. bool SetStyle(const XMLElement&);
  5966. bool SetStyleAuto(XMLFile = null);
  5967. void SetViewPosition(int, int);
  5968. void ToggleExpand(uint, bool = false);
  5969. void ToggleSelection(uint);
  5970. void UpdateLayout();
  5971. const Variant& GetVar(const StringHash&);
  5972. // Properties:
  5973. bool animationEnabled;
  5974. /* readonly */
  5975. Array<Variant> attributeDefaults;
  5976. /* readonly */
  5977. Array<AttributeInfo> attributeInfos;
  5978. Array<Variant> attributes;
  5979. bool autoDisableChildren;
  5980. float autoDisableThreshold;
  5981. int baseIndent;
  5982. bool bringToBack;
  5983. bool bringToFront;
  5984. /* readonly */
  5985. String category;
  5986. /* readonly */
  5987. IntVector2 childOffset;
  5988. /* readonly */
  5989. Array<UIElement> children;
  5990. bool clearSelectionOnDefocus;
  5991. IntRect clipBorder;
  5992. bool clipChildren;
  5993. /* writeonly */
  5994. Color color;
  5995. /* readonly */
  5996. bool colorGradient;
  5997. Array<Color> colors;
  5998. /* readonly */
  5999. IntRect combinedScreenRect;
  6000. /* readonly */
  6001. UIElement contentElement;
  6002. XMLFile defaultStyle;
  6003. /* readonly */
  6004. float derivedOpacity;
  6005. /* readonly */
  6006. uint dragButtonCombo;
  6007. /* readonly */
  6008. int dragButtonCount;
  6009. uint dragDropMode;
  6010. bool editable;
  6011. bool elementEventSender;
  6012. bool enableAnchor;
  6013. bool enabled;
  6014. /* readonly */
  6015. bool enabledSelf;
  6016. /* readonly */
  6017. bool fixedHeight;
  6018. /* readonly */
  6019. bool fixedSize;
  6020. /* readonly */
  6021. bool fixedWidth;
  6022. bool focus;
  6023. FocusMode focusMode;
  6024. int height;
  6025. bool hierarchyMode;
  6026. HighlightMode highlightMode;
  6027. HorizontalAlignment horizontalAlignment;
  6028. /* readonly */
  6029. ScrollBar horizontalScrollBar;
  6030. /* readonly */
  6031. bool hovering;
  6032. int indent;
  6033. int indentSpacing;
  6034. /* readonly */
  6035. int indentWidth;
  6036. bool internal;
  6037. /* readonly */
  6038. Array<UIElement> items;
  6039. IntRect layoutBorder;
  6040. Vector2 layoutFlexScale;
  6041. LayoutMode layoutMode;
  6042. int layoutSpacing;
  6043. Vector2 maxAnchor;
  6044. int maxHeight;
  6045. IntVector2 maxOffset;
  6046. IntVector2 maxSize;
  6047. int maxWidth;
  6048. Vector2 minAnchor;
  6049. int minHeight;
  6050. IntVector2 minOffset;
  6051. IntVector2 minSize;
  6052. int minWidth;
  6053. bool multiselect;
  6054. String name;
  6055. /* readonly */
  6056. uint numAllChildren;
  6057. /* readonly */
  6058. uint numAttributes;
  6059. /* readonly */
  6060. uint numChildren;
  6061. /* readonly */
  6062. uint numItems;
  6063. ObjectAnimation objectAnimation;
  6064. float opacity;
  6065. float pageStep;
  6066. UIElement parent;
  6067. Vector2 pivot;
  6068. IntVector2 position;
  6069. int priority;
  6070. /* readonly */
  6071. int refs;
  6072. /* readonly */
  6073. UIElement root;
  6074. /* readonly */
  6075. IntVector2 screenPosition;
  6076. bool scrollBarsAutoVisible;
  6077. float scrollDeceleration;
  6078. /* readonly */
  6079. BorderImage scrollPanel;
  6080. float scrollSnapEpsilon;
  6081. float scrollStep;
  6082. bool selectOnClickEnd;
  6083. bool selected;
  6084. /* readonly */
  6085. UIElement selectedItem;
  6086. /* readonly */
  6087. Array<UIElement> selectedItems;
  6088. uint selection;
  6089. /* readonly */
  6090. Array<uint> selections;
  6091. IntVector2 size;
  6092. bool sortChildren;
  6093. String style;
  6094. /* readonly */
  6095. Array<String> tags;
  6096. bool temporary;
  6097. TraversalMode traversalMode;
  6098. /* readonly */
  6099. StringHash type;
  6100. /* readonly */
  6101. String typeName;
  6102. bool useDerivedOpacity;
  6103. /* readonly */
  6104. VariantMap vars;
  6105. VerticalAlignment verticalAlignment;
  6106. /* readonly */
  6107. ScrollBar verticalScrollBar;
  6108. IntVector2 viewPosition;
  6109. bool visible;
  6110. /* readonly */
  6111. bool visibleEffective;
  6112. /* readonly */
  6113. int weakRefs;
  6114. int width;
  6115. };
  6116. class Localization
  6117. {
  6118. // Methods:
  6119. String Get(const String&);
  6120. String GetLanguage(int);
  6121. int GetLanguageIndex(const String&);
  6122. bool HasSubscribedToEvent(Object, const String&);
  6123. bool HasSubscribedToEvent(const String&);
  6124. void LoadJSON(const JSONValue&);
  6125. void LoadJSONFile(const String&);
  6126. void Reset();
  6127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6128. void SetLanguage(const String&);
  6129. void SetLanguage(int);
  6130. // Properties:
  6131. /* readonly */
  6132. String category;
  6133. /* readonly */
  6134. String language;
  6135. /* readonly */
  6136. int languageIndex;
  6137. /* readonly */
  6138. int numLanguages;
  6139. /* readonly */
  6140. int refs;
  6141. /* readonly */
  6142. StringHash type;
  6143. /* readonly */
  6144. String typeName;
  6145. /* readonly */
  6146. int weakRefs;
  6147. };
  6148. class Log
  6149. {
  6150. // Methods:
  6151. void Close();
  6152. void Debug(const String&);
  6153. void Error(const String&);
  6154. bool HasSubscribedToEvent(Object, const String&);
  6155. bool HasSubscribedToEvent(const String&);
  6156. void Info(const String&);
  6157. void Open(const String&);
  6158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6159. void Warning(const String&);
  6160. void Write(const String&, bool = false);
  6161. // Properties:
  6162. /* readonly */
  6163. String category;
  6164. /* readonly */
  6165. String lastMessage;
  6166. int level;
  6167. bool quiet;
  6168. /* readonly */
  6169. int refs;
  6170. bool timeStamp;
  6171. /* readonly */
  6172. StringHash type;
  6173. /* readonly */
  6174. String typeName;
  6175. /* readonly */
  6176. int weakRefs;
  6177. };
  6178. class Material
  6179. {
  6180. // Methods:
  6181. Material Clone(const String& = String ( )) const;
  6182. Pass GetPass(uint, const String&);
  6183. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6184. float GetShaderParameterAnimationSpeed(const String&) const;
  6185. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6186. bool HasSubscribedToEvent(Object, const String&);
  6187. bool HasSubscribedToEvent(const String&);
  6188. bool Load(File);
  6189. bool Load(VectorBuffer&);
  6190. bool Load(const JSONValue&);
  6191. bool Load(const String&);
  6192. bool Load(const XMLElement&);
  6193. void RemoveShaderParameter(const String&);
  6194. bool Save(File) const;
  6195. bool Save(JSONValue&) const;
  6196. bool Save(VectorBuffer&) const;
  6197. bool Save(XMLElement&) const;
  6198. bool Save(const String&) const;
  6199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6200. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6201. void SetShaderParameterAnimationSpeed(const String&, float);
  6202. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6203. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6204. void SetUVTransform(const Vector2&, float, const Vector2&);
  6205. void SetUVTransform(const Vector2&, float, float);
  6206. void SortTechniques();
  6207. // Properties:
  6208. bool alphaToCoverage;
  6209. /* readonly */
  6210. String category;
  6211. CullMode cullMode;
  6212. BiasParameters depthBias;
  6213. FillMode fillMode;
  6214. bool lineAntiAlias;
  6215. /* readonly */
  6216. uint memoryUse;
  6217. String name;
  6218. uint numTechniques;
  6219. bool occlusion;
  6220. String pixelShaderDefines;
  6221. /* readonly */
  6222. int refs;
  6223. uint8 renderOrder;
  6224. Scene scene;
  6225. /* readonly */
  6226. Array<String> shaderParameterNames;
  6227. Array<Variant> shaderParameters;
  6228. CullMode shadowCullMode;
  6229. /* readonly */
  6230. Array<TechniqueEntry> techniqueEntries;
  6231. /* readonly */
  6232. Array<Technique> techniques;
  6233. Array<Texture> textures;
  6234. /* readonly */
  6235. StringHash type;
  6236. /* readonly */
  6237. String typeName;
  6238. /* readonly */
  6239. uint useTimer;
  6240. String vertexShaderDefines;
  6241. /* readonly */
  6242. int weakRefs;
  6243. };
  6244. class Matrix2
  6245. {
  6246. // Methods:
  6247. bool Equals(const Matrix2&) const;
  6248. Matrix2 Inverse() const;
  6249. Vector2 Scale() const;
  6250. Matrix2 Scaled(const Vector2&) const;
  6251. void SetScale(const Vector2&);
  6252. void SetScale(float);
  6253. String ToString() const;
  6254. Matrix2 Transpose() const;
  6255. // Properties:
  6256. float m00;
  6257. float m01;
  6258. float m10;
  6259. float m11;
  6260. };
  6261. class Matrix3
  6262. {
  6263. // Methods:
  6264. bool Equals(const Matrix3&) const;
  6265. Matrix3 Inverse() const;
  6266. Vector3 Scale() const;
  6267. Matrix3 Scaled(const Vector3&) const;
  6268. void SetScale(const Vector3&);
  6269. void SetScale(float);
  6270. String ToString() const;
  6271. Matrix3 Transpose() const;
  6272. // Properties:
  6273. float m00;
  6274. float m01;
  6275. float m02;
  6276. float m10;
  6277. float m11;
  6278. float m12;
  6279. float m20;
  6280. float m21;
  6281. float m22;
  6282. };
  6283. class Matrix3x4
  6284. {
  6285. // Methods:
  6286. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6287. bool Equals(const Matrix3x4&) const;
  6288. Matrix3x4 Inverse() const;
  6289. Quaternion Rotation() const;
  6290. Matrix3 RotationMatrix() const;
  6291. Vector3 Scale() const;
  6292. void SetRotation(const Matrix3&);
  6293. void SetScale(const Vector3&);
  6294. void SetScale(float);
  6295. void SetTranslation(const Vector3&);
  6296. Matrix3 ToMatrix3() const;
  6297. Matrix4 ToMatrix4() const;
  6298. String ToString() const;
  6299. Vector3 Translation() const;
  6300. // Properties:
  6301. float m00;
  6302. float m01;
  6303. float m02;
  6304. float m03;
  6305. float m10;
  6306. float m11;
  6307. float m12;
  6308. float m13;
  6309. float m20;
  6310. float m21;
  6311. float m22;
  6312. float m23;
  6313. };
  6314. class Matrix4
  6315. {
  6316. // Methods:
  6317. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6318. bool Equals(const Matrix4&) const;
  6319. Matrix4 Inverse() const;
  6320. Quaternion Rotation() const;
  6321. Matrix3 RotationMatrix() const;
  6322. Vector3 Scale() const;
  6323. void SetRotation(const Matrix3&);
  6324. void SetScale(const Vector3&);
  6325. void SetScale(float);
  6326. void SetTranslation(const Vector3&);
  6327. Matrix3 ToMatrix3() const;
  6328. String ToString() const;
  6329. Vector3 Translation() const;
  6330. Matrix4 Transpose() const;
  6331. // Properties:
  6332. float m00;
  6333. float m01;
  6334. float m02;
  6335. float m03;
  6336. float m10;
  6337. float m11;
  6338. float m12;
  6339. float m13;
  6340. float m20;
  6341. float m21;
  6342. float m22;
  6343. float m23;
  6344. float m30;
  6345. float m31;
  6346. float m32;
  6347. float m33;
  6348. };
  6349. class Menu
  6350. {
  6351. // Methods:
  6352. void AddChild(UIElement);
  6353. void AddTag(const String&);
  6354. void AddTags(const String&, int8 = ';');
  6355. void ApplyAttributes();
  6356. void BringToFront();
  6357. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6358. void DisableLayoutUpdate();
  6359. IntVector2 ElementToScreen(const IntVector2&);
  6360. void EnableLayoutUpdate();
  6361. uint FindChild(UIElement) const;
  6362. Variant GetAttribute(const String&) const;
  6363. ValueAnimation GetAttributeAnimation(const String&) const;
  6364. float GetAttributeAnimationSpeed(const String&) const;
  6365. float GetAttributeAnimationTime(const String&) const;
  6366. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6367. Variant GetAttributeDefault(const String&) const;
  6368. UIElement GetChild(const String&, bool = false) const;
  6369. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6370. Array<UIElement> GetChildren(bool = false) const;
  6371. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6372. UIElement GetElementEventSender() const;
  6373. bool GetInterceptNetworkUpdate(const String&) const;
  6374. uint GetNumChildren(bool) const;
  6375. bool HasSubscribedToEvent(Object, const String&);
  6376. bool HasSubscribedToEvent(const String&);
  6377. bool HasTag(const String&) const;
  6378. void InsertChild(uint, UIElement);
  6379. bool IsInside(IntVector2, bool);
  6380. bool IsInsideCombined(IntVector2, bool);
  6381. bool Load(File, bool = false);
  6382. bool Load(VectorBuffer&, bool = false);
  6383. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6384. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6385. bool LoadJSON(const JSONValue&, bool = false);
  6386. bool LoadXML(File);
  6387. bool LoadXML(VectorBuffer&);
  6388. bool LoadXML(XMLFile, XMLFile);
  6389. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6390. bool LoadXML(const XMLElement&, bool = false);
  6391. void MarkNetworkUpdate() const;
  6392. void Remove();
  6393. void RemoveAllChildren();
  6394. void RemoveAllTags();
  6395. void RemoveAttributeAnimation(const String&);
  6396. void RemoveChild(UIElement, uint = 0);
  6397. void RemoveChild(uint);
  6398. void RemoveInstanceDefault();
  6399. void RemoveObjectAnimation();
  6400. bool RemoveTag(const String&);
  6401. void ResetDeepEnabled();
  6402. void ResetToDefault();
  6403. bool Save(File) const;
  6404. bool Save(VectorBuffer&) const;
  6405. bool SaveJSON(JSONValue&) const;
  6406. bool SaveXML(File, const String& = "\t");
  6407. bool SaveXML(VectorBuffer&, const String& = "\t");
  6408. bool SaveXML(XMLElement&) const;
  6409. IntVector2 ScreenToElement(const IntVector2&);
  6410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6411. void SetAccelerator(int, int);
  6412. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6413. void SetAnimationTime(float);
  6414. bool SetAttribute(const String&, const Variant&);
  6415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6416. void SetAttributeAnimationSpeed(const String&, float);
  6417. void SetAttributeAnimationTime(const String&, float);
  6418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6419. void SetDeepEnabled(bool);
  6420. void SetEnabledRecursive(bool);
  6421. void SetFixedHeight(int);
  6422. void SetFixedSize(int, int);
  6423. void SetFixedWidth(int);
  6424. void SetFullImageRect();
  6425. void SetHoverOffset(int, int);
  6426. void SetInterceptNetworkUpdate(const String&, bool);
  6427. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6428. void SetMaxAnchor(float, float);
  6429. void SetMaxSize(int, int);
  6430. void SetMinAnchor(float, float);
  6431. void SetMinSize(int, int);
  6432. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6433. void SetPivot(float, float);
  6434. void SetPopupOffset(int, int);
  6435. void SetPosition(int, int);
  6436. void SetPressedChildOffset(int, int);
  6437. void SetPressedOffset(int, int);
  6438. void SetRepeat(float, float);
  6439. void SetSize(int, int);
  6440. bool SetStyle(const String&, XMLFile = null);
  6441. bool SetStyle(const XMLElement&);
  6442. bool SetStyleAuto(XMLFile = null);
  6443. void UpdateLayout();
  6444. const Variant& GetVar(const StringHash&);
  6445. // Properties:
  6446. /* readonly */
  6447. int acceleratorKey;
  6448. /* readonly */
  6449. int acceleratorQualifiers;
  6450. bool animationEnabled;
  6451. /* readonly */
  6452. Array<Variant> attributeDefaults;
  6453. /* readonly */
  6454. Array<AttributeInfo> attributeInfos;
  6455. Array<Variant> attributes;
  6456. BlendMode blendMode;
  6457. IntRect border;
  6458. bool bringToBack;
  6459. bool bringToFront;
  6460. /* readonly */
  6461. String category;
  6462. /* readonly */
  6463. IntVector2 childOffset;
  6464. /* readonly */
  6465. Array<UIElement> children;
  6466. IntRect clipBorder;
  6467. bool clipChildren;
  6468. /* writeonly */
  6469. Color color;
  6470. /* readonly */
  6471. bool colorGradient;
  6472. Array<Color> colors;
  6473. /* readonly */
  6474. IntRect combinedScreenRect;
  6475. XMLFile defaultStyle;
  6476. /* readonly */
  6477. float derivedOpacity;
  6478. /* readonly */
  6479. uint dragButtonCombo;
  6480. /* readonly */
  6481. int dragButtonCount;
  6482. uint dragDropMode;
  6483. bool editable;
  6484. bool elementEventSender;
  6485. bool enableAnchor;
  6486. bool enabled;
  6487. /* readonly */
  6488. bool enabledSelf;
  6489. /* readonly */
  6490. bool fixedHeight;
  6491. /* readonly */
  6492. bool fixedSize;
  6493. /* readonly */
  6494. bool fixedWidth;
  6495. bool focus;
  6496. FocusMode focusMode;
  6497. int height;
  6498. HorizontalAlignment horizontalAlignment;
  6499. IntVector2 hoverOffset;
  6500. /* readonly */
  6501. bool hovering;
  6502. IntRect imageBorder;
  6503. IntRect imageRect;
  6504. int indent;
  6505. int indentSpacing;
  6506. /* readonly */
  6507. int indentWidth;
  6508. bool internal;
  6509. IntRect layoutBorder;
  6510. Vector2 layoutFlexScale;
  6511. LayoutMode layoutMode;
  6512. int layoutSpacing;
  6513. Vector2 maxAnchor;
  6514. int maxHeight;
  6515. IntVector2 maxOffset;
  6516. IntVector2 maxSize;
  6517. int maxWidth;
  6518. Vector2 minAnchor;
  6519. int minHeight;
  6520. IntVector2 minOffset;
  6521. IntVector2 minSize;
  6522. int minWidth;
  6523. String name;
  6524. /* readonly */
  6525. uint numAllChildren;
  6526. /* readonly */
  6527. uint numAttributes;
  6528. /* readonly */
  6529. uint numChildren;
  6530. ObjectAnimation objectAnimation;
  6531. float opacity;
  6532. UIElement parent;
  6533. Vector2 pivot;
  6534. UIElement popup;
  6535. IntVector2 popupOffset;
  6536. IntVector2 position;
  6537. /* readonly */
  6538. bool pressed;
  6539. IntVector2 pressedChildOffset;
  6540. IntVector2 pressedOffset;
  6541. int priority;
  6542. /* readonly */
  6543. int refs;
  6544. float repeatDelay;
  6545. float repeatRate;
  6546. /* readonly */
  6547. UIElement root;
  6548. /* readonly */
  6549. IntVector2 screenPosition;
  6550. bool selected;
  6551. bool showPopup;
  6552. IntVector2 size;
  6553. bool sortChildren;
  6554. String style;
  6555. /* readonly */
  6556. Array<String> tags;
  6557. bool temporary;
  6558. Texture texture;
  6559. bool tiled;
  6560. TraversalMode traversalMode;
  6561. /* readonly */
  6562. StringHash type;
  6563. /* readonly */
  6564. String typeName;
  6565. bool useDerivedOpacity;
  6566. /* readonly */
  6567. VariantMap vars;
  6568. VerticalAlignment verticalAlignment;
  6569. bool visible;
  6570. /* readonly */
  6571. bool visibleEffective;
  6572. /* readonly */
  6573. int weakRefs;
  6574. int width;
  6575. };
  6576. class MessageBox
  6577. {
  6578. // Methods:
  6579. bool HasSubscribedToEvent(Object, const String&);
  6580. bool HasSubscribedToEvent(const String&);
  6581. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6582. // Properties:
  6583. /* readonly */
  6584. String category;
  6585. String message;
  6586. /* readonly */
  6587. int refs;
  6588. String title;
  6589. /* readonly */
  6590. StringHash type;
  6591. /* readonly */
  6592. String typeName;
  6593. /* readonly */
  6594. int weakRefs;
  6595. /* readonly */
  6596. UIElement window;
  6597. };
  6598. class Model
  6599. {
  6600. // Methods:
  6601. Model Clone(const String& = String ( )) const;
  6602. Geometry GetGeometry(uint, uint) const;
  6603. bool HasSubscribedToEvent(Object, const String&);
  6604. bool HasSubscribedToEvent(const String&);
  6605. bool Load(File);
  6606. bool Load(VectorBuffer&);
  6607. bool Load(const String&);
  6608. bool Save(File) const;
  6609. bool Save(VectorBuffer&) const;
  6610. bool Save(const String&) const;
  6611. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6612. bool SetGeometry(uint, uint, Geometry);
  6613. bool SetIndexBuffers(Array<IndexBuffer>);
  6614. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  6615. // Properties:
  6616. BoundingBox boundingBox;
  6617. /* readonly */
  6618. String category;
  6619. Array<Vector3> geometryCenters;
  6620. /* readonly */
  6621. uint memoryUse;
  6622. String name;
  6623. uint numGeometries;
  6624. Array<uint> numGeometryLodLevels;
  6625. /* readonly */
  6626. uint numMorphs;
  6627. /* readonly */
  6628. int refs;
  6629. /* readonly */
  6630. Skeleton skeleton;
  6631. /* readonly */
  6632. StringHash type;
  6633. /* readonly */
  6634. String typeName;
  6635. /* readonly */
  6636. uint useTimer;
  6637. /* readonly */
  6638. int weakRefs;
  6639. };
  6640. class NamedPipe
  6641. {
  6642. // Methods:
  6643. void Close();
  6644. bool HasSubscribedToEvent(Object, const String&);
  6645. bool HasSubscribedToEvent(const String&);
  6646. bool Open(const String&, bool);
  6647. Array<uint8> Read(uint);
  6648. bool ReadBool();
  6649. BoundingBox ReadBoundingBox();
  6650. int8 ReadByte();
  6651. Color ReadColor();
  6652. double ReadDouble();
  6653. String ReadFileID();
  6654. float ReadFloat();
  6655. int ReadInt();
  6656. int64 ReadInt64();
  6657. IntRect ReadIntRect();
  6658. IntVector2 ReadIntVector2();
  6659. String ReadLine();
  6660. Matrix3 ReadMatrix3();
  6661. Matrix3x4 ReadMatrix3x4();
  6662. Matrix4 ReadMatrix4();
  6663. uint ReadNetID();
  6664. Quaternion ReadPackedQuaternion();
  6665. Vector3 ReadPackedVector3(float);
  6666. Quaternion ReadQuaternion();
  6667. int16 ReadShort();
  6668. String ReadString();
  6669. StringHash ReadStringHash();
  6670. uint8 ReadUByte();
  6671. uint ReadUInt();
  6672. uint64 ReadUInt64();
  6673. uint16 ReadUShort();
  6674. uint ReadVLE();
  6675. Variant ReadVariant();
  6676. VariantMap ReadVariantMap();
  6677. Vector2 ReadVector2();
  6678. Vector3 ReadVector3();
  6679. Vector4 ReadVector4();
  6680. VectorBuffer ReadVectorBuffer(uint);
  6681. uint Seek(uint);
  6682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6683. uint Write(Array<uint8>);
  6684. bool WriteBool(bool);
  6685. bool WriteBoundingBox(const BoundingBox&);
  6686. bool WriteByte(int8);
  6687. bool WriteColor(const Color&);
  6688. bool WriteDouble(double);
  6689. bool WriteFileID(const String&);
  6690. bool WriteFloat(float);
  6691. bool WriteInt(int);
  6692. bool WriteInt64(int64);
  6693. bool WriteIntRect(const IntRect&);
  6694. bool WriteIntVector2(const IntVector2&);
  6695. bool WriteLine(const String&);
  6696. bool WriteMatrix3(const Matrix3&);
  6697. bool WriteMatrix3x4(const Matrix3x4&);
  6698. bool WriteMatrix4(const Matrix4&);
  6699. bool WriteNetID(uint);
  6700. bool WritePackedQuaternion(const Quaternion&);
  6701. bool WritePackedVector3(const Vector3&, float);
  6702. bool WriteQuaternion(const Quaternion&);
  6703. bool WriteShort(int16);
  6704. bool WriteString(const String&);
  6705. bool WriteStringHash(const StringHash&);
  6706. bool WriteUByte(uint8);
  6707. bool WriteUInt(uint);
  6708. bool WriteUInt64(uint64);
  6709. bool WriteUShort(uint16);
  6710. bool WriteVLE(uint);
  6711. bool WriteVariant(const Variant&);
  6712. bool WriteVariantMap(const VariantMap&);
  6713. bool WriteVector2(const Vector2&);
  6714. bool WriteVector3(const Vector3&);
  6715. bool WriteVector4(const Vector4&);
  6716. bool WriteVectorBuffer(const VectorBuffer&);
  6717. // Properties:
  6718. /* readonly */
  6719. String category;
  6720. /* readonly */
  6721. uint checksum;
  6722. /* readonly */
  6723. bool eof;
  6724. /* readonly */
  6725. String name;
  6726. /* readonly */
  6727. bool open;
  6728. /* readonly */
  6729. uint position;
  6730. /* readonly */
  6731. int refs;
  6732. /* readonly */
  6733. bool server;
  6734. /* readonly */
  6735. uint size;
  6736. /* readonly */
  6737. StringHash type;
  6738. /* readonly */
  6739. String typeName;
  6740. /* readonly */
  6741. int weakRefs;
  6742. };
  6743. class NavArea
  6744. {
  6745. // Methods:
  6746. void ApplyAttributes();
  6747. void DrawDebugGeometry(DebugRenderer, bool);
  6748. Variant GetAttribute(const String&) const;
  6749. ValueAnimation GetAttributeAnimation(const String&) const;
  6750. float GetAttributeAnimationSpeed(const String&) const;
  6751. float GetAttributeAnimationTime(const String&) const;
  6752. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6753. Variant GetAttributeDefault(const String&) const;
  6754. bool GetInterceptNetworkUpdate(const String&) const;
  6755. bool HasSubscribedToEvent(Object, const String&);
  6756. bool HasSubscribedToEvent(const String&);
  6757. bool Load(File, bool = false);
  6758. bool Load(VectorBuffer&, bool = false);
  6759. bool LoadJSON(const JSONValue&, bool = false);
  6760. bool LoadXML(const XMLElement&, bool = false);
  6761. void MarkNetworkUpdate() const;
  6762. void Remove();
  6763. void RemoveAttributeAnimation(const String&);
  6764. void RemoveInstanceDefault();
  6765. void RemoveObjectAnimation();
  6766. void ResetToDefault();
  6767. bool Save(File) const;
  6768. bool Save(VectorBuffer&) const;
  6769. bool SaveJSON(JSONValue&) const;
  6770. bool SaveXML(XMLElement&) const;
  6771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6772. void SetAnimationTime(float);
  6773. bool SetAttribute(const String&, const Variant&);
  6774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6775. void SetAttributeAnimationSpeed(const String&, float);
  6776. void SetAttributeAnimationTime(const String&, float);
  6777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6778. void SetInterceptNetworkUpdate(const String&, bool);
  6779. // Properties:
  6780. bool animationEnabled;
  6781. uint areaID;
  6782. /* readonly */
  6783. Array<Variant> attributeDefaults;
  6784. /* readonly */
  6785. Array<AttributeInfo> attributeInfos;
  6786. Array<Variant> attributes;
  6787. BoundingBox boundingBox;
  6788. /* readonly */
  6789. String category;
  6790. bool enabled;
  6791. /* readonly */
  6792. bool enabledEffective;
  6793. /* readonly */
  6794. uint id;
  6795. /* readonly */
  6796. Node node;
  6797. /* readonly */
  6798. uint numAttributes;
  6799. ObjectAnimation objectAnimation;
  6800. /* readonly */
  6801. int refs;
  6802. bool temporary;
  6803. /* readonly */
  6804. StringHash type;
  6805. /* readonly */
  6806. String typeName;
  6807. /* readonly */
  6808. int weakRefs;
  6809. /* readonly */
  6810. BoundingBox worldBoundingBox;
  6811. };
  6812. class Navigable
  6813. {
  6814. // Methods:
  6815. void ApplyAttributes();
  6816. void DrawDebugGeometry(DebugRenderer, bool);
  6817. Variant GetAttribute(const String&) const;
  6818. ValueAnimation GetAttributeAnimation(const String&) const;
  6819. float GetAttributeAnimationSpeed(const String&) const;
  6820. float GetAttributeAnimationTime(const String&) const;
  6821. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6822. Variant GetAttributeDefault(const String&) const;
  6823. bool GetInterceptNetworkUpdate(const String&) const;
  6824. bool HasSubscribedToEvent(Object, const String&);
  6825. bool HasSubscribedToEvent(const String&);
  6826. bool Load(File, bool = false);
  6827. bool Load(VectorBuffer&, bool = false);
  6828. bool LoadJSON(const JSONValue&, bool = false);
  6829. bool LoadXML(const XMLElement&, bool = false);
  6830. void MarkNetworkUpdate() const;
  6831. void Remove();
  6832. void RemoveAttributeAnimation(const String&);
  6833. void RemoveInstanceDefault();
  6834. void RemoveObjectAnimation();
  6835. void ResetToDefault();
  6836. bool Save(File) const;
  6837. bool Save(VectorBuffer&) const;
  6838. bool SaveJSON(JSONValue&) const;
  6839. bool SaveXML(XMLElement&) const;
  6840. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6841. void SetAnimationTime(float);
  6842. bool SetAttribute(const String&, const Variant&);
  6843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6844. void SetAttributeAnimationSpeed(const String&, float);
  6845. void SetAttributeAnimationTime(const String&, float);
  6846. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6847. void SetInterceptNetworkUpdate(const String&, bool);
  6848. // Properties:
  6849. bool animationEnabled;
  6850. /* readonly */
  6851. Array<Variant> attributeDefaults;
  6852. /* readonly */
  6853. Array<AttributeInfo> attributeInfos;
  6854. Array<Variant> attributes;
  6855. /* readonly */
  6856. String category;
  6857. bool enabled;
  6858. /* readonly */
  6859. bool enabledEffective;
  6860. /* readonly */
  6861. uint id;
  6862. /* readonly */
  6863. Node node;
  6864. /* readonly */
  6865. uint numAttributes;
  6866. ObjectAnimation objectAnimation;
  6867. bool recursive;
  6868. /* readonly */
  6869. int refs;
  6870. bool temporary;
  6871. /* readonly */
  6872. StringHash type;
  6873. /* readonly */
  6874. String typeName;
  6875. /* readonly */
  6876. int weakRefs;
  6877. };
  6878. class NavigationMesh
  6879. {
  6880. // Methods:
  6881. void ApplyAttributes();
  6882. bool Build();
  6883. bool Build(const BoundingBox&);
  6884. void DrawDebugGeometry(DebugRenderer, bool);
  6885. void DrawDebugGeometry(bool);
  6886. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6887. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6888. float GetAreaCost(uint) const;
  6889. Variant GetAttribute(const String&) const;
  6890. ValueAnimation GetAttributeAnimation(const String&) const;
  6891. float GetAttributeAnimationSpeed(const String&) const;
  6892. float GetAttributeAnimationTime(const String&) const;
  6893. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6894. Variant GetAttributeDefault(const String&) const;
  6895. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6896. bool GetInterceptNetworkUpdate(const String&) const;
  6897. Vector3 GetRandomPoint();
  6898. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6899. bool HasSubscribedToEvent(Object, const String&);
  6900. bool HasSubscribedToEvent(const String&);
  6901. bool Load(File, bool = false);
  6902. bool Load(VectorBuffer&, bool = false);
  6903. bool LoadJSON(const JSONValue&, bool = false);
  6904. bool LoadXML(const XMLElement&, bool = false);
  6905. void MarkNetworkUpdate() const;
  6906. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6907. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6908. void Remove();
  6909. void RemoveAttributeAnimation(const String&);
  6910. void RemoveInstanceDefault();
  6911. void RemoveObjectAnimation();
  6912. void ResetToDefault();
  6913. bool Save(File) const;
  6914. bool Save(VectorBuffer&) const;
  6915. bool SaveJSON(JSONValue&) const;
  6916. bool SaveXML(XMLElement&) const;
  6917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6918. void SetAnimationTime(float);
  6919. void SetAreaCost(uint, float);
  6920. bool SetAttribute(const String&, const Variant&);
  6921. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6922. void SetAttributeAnimationSpeed(const String&, float);
  6923. void SetAttributeAnimationTime(const String&, float);
  6924. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6925. void SetInterceptNetworkUpdate(const String&, bool);
  6926. // Properties:
  6927. float agentHeight;
  6928. float agentMaxClimb;
  6929. float agentMaxSlope;
  6930. float agentRadius;
  6931. bool animationEnabled;
  6932. /* readonly */
  6933. Array<Variant> attributeDefaults;
  6934. /* readonly */
  6935. Array<AttributeInfo> attributeInfos;
  6936. Array<Variant> attributes;
  6937. /* readonly */
  6938. BoundingBox boundingBox;
  6939. /* readonly */
  6940. String category;
  6941. float cellHeight;
  6942. float cellSize;
  6943. float detailSampleDistance;
  6944. float detailSampleMaxError;
  6945. bool drawNavAreas;
  6946. bool drawOffMeshConnections;
  6947. float edgeMaxError;
  6948. float edgeMaxLength;
  6949. bool enabled;
  6950. /* readonly */
  6951. bool enabledEffective;
  6952. /* readonly */
  6953. uint id;
  6954. /* readonly */
  6955. bool initialized;
  6956. /* readonly */
  6957. Node node;
  6958. /* readonly */
  6959. uint numAttributes;
  6960. /* readonly */
  6961. IntVector2 numTiles;
  6962. ObjectAnimation objectAnimation;
  6963. Vector3 padding;
  6964. NavmeshPartitionType partitionType;
  6965. /* readonly */
  6966. int refs;
  6967. float regionMergeSize;
  6968. float regionMinSize;
  6969. bool temporary;
  6970. int tileSize;
  6971. /* readonly */
  6972. StringHash type;
  6973. /* readonly */
  6974. String typeName;
  6975. /* readonly */
  6976. int weakRefs;
  6977. /* readonly */
  6978. BoundingBox worldBoundingBox;
  6979. };
  6980. class Network
  6981. {
  6982. // Methods:
  6983. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6984. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6985. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6986. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6987. bool CheckRemoteEvent(const String&) const;
  6988. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6989. void Disconnect(int = 0);
  6990. bool HasSubscribedToEvent(Object, const String&);
  6991. bool HasSubscribedToEvent(const String&);
  6992. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6993. void RegisterRemoteEvent(const String&) const;
  6994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6995. void SendPackageToClients(Scene, PackageFile);
  6996. bool StartServer(uint16);
  6997. void StopServer();
  6998. void UnregisterAllRemoteEvents();
  6999. void UnregisterRemoteEvent(const String&) const;
  7000. // Properties:
  7001. /* readonly */
  7002. String category;
  7003. /* readonly */
  7004. Array<Connection> clientConnections;
  7005. String packageCacheDir;
  7006. /* readonly */
  7007. int refs;
  7008. /* readonly */
  7009. Connection serverConnection;
  7010. /* readonly */
  7011. bool serverRunning;
  7012. int simulatedLatency;
  7013. float simulatedPacketLoss;
  7014. /* readonly */
  7015. StringHash type;
  7016. /* readonly */
  7017. String typeName;
  7018. int updateFps;
  7019. /* readonly */
  7020. int weakRefs;
  7021. };
  7022. class NetworkPriority
  7023. {
  7024. // Methods:
  7025. void ApplyAttributes();
  7026. void DrawDebugGeometry(DebugRenderer, bool);
  7027. Variant GetAttribute(const String&) const;
  7028. ValueAnimation GetAttributeAnimation(const String&) const;
  7029. float GetAttributeAnimationSpeed(const String&) const;
  7030. float GetAttributeAnimationTime(const String&) const;
  7031. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7032. Variant GetAttributeDefault(const String&) const;
  7033. bool GetInterceptNetworkUpdate(const String&) const;
  7034. bool HasSubscribedToEvent(Object, const String&);
  7035. bool HasSubscribedToEvent(const String&);
  7036. bool Load(File, bool = false);
  7037. bool Load(VectorBuffer&, bool = false);
  7038. bool LoadJSON(const JSONValue&, bool = false);
  7039. bool LoadXML(const XMLElement&, bool = false);
  7040. void MarkNetworkUpdate() const;
  7041. void Remove();
  7042. void RemoveAttributeAnimation(const String&);
  7043. void RemoveInstanceDefault();
  7044. void RemoveObjectAnimation();
  7045. void ResetToDefault();
  7046. bool Save(File) const;
  7047. bool Save(VectorBuffer&) const;
  7048. bool SaveJSON(JSONValue&) const;
  7049. bool SaveXML(XMLElement&) const;
  7050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7051. void SetAnimationTime(float);
  7052. bool SetAttribute(const String&, const Variant&);
  7053. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7054. void SetAttributeAnimationSpeed(const String&, float);
  7055. void SetAttributeAnimationTime(const String&, float);
  7056. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7057. void SetInterceptNetworkUpdate(const String&, bool);
  7058. // Properties:
  7059. bool alwaysUpdateOwner;
  7060. bool animationEnabled;
  7061. /* readonly */
  7062. Array<Variant> attributeDefaults;
  7063. /* readonly */
  7064. Array<AttributeInfo> attributeInfos;
  7065. Array<Variant> attributes;
  7066. float basePriority;
  7067. /* readonly */
  7068. String category;
  7069. float distanceFactor;
  7070. bool enabled;
  7071. /* readonly */
  7072. bool enabledEffective;
  7073. /* readonly */
  7074. uint id;
  7075. float minPriority;
  7076. /* readonly */
  7077. Node node;
  7078. /* readonly */
  7079. uint numAttributes;
  7080. ObjectAnimation objectAnimation;
  7081. /* readonly */
  7082. int refs;
  7083. bool temporary;
  7084. /* readonly */
  7085. StringHash type;
  7086. /* readonly */
  7087. String typeName;
  7088. /* readonly */
  7089. int weakRefs;
  7090. };
  7091. class Node
  7092. {
  7093. // Methods:
  7094. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7095. void AddTag(const String&);
  7096. void AddTags(const String&, int8 = ';');
  7097. void ApplyAttributes();
  7098. Node Clone(CreateMode = REPLICATED);
  7099. Component CloneComponent(Component, CreateMode, uint = 0);
  7100. Component CloneComponent(Component, uint = 0);
  7101. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7102. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7103. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7104. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7105. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7106. Variant GetAttribute(const String&) const;
  7107. ValueAnimation GetAttributeAnimation(const String&) const;
  7108. float GetAttributeAnimationSpeed(const String&) const;
  7109. float GetAttributeAnimationTime(const String&) const;
  7110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7111. Variant GetAttributeDefault(const String&) const;
  7112. Node GetChild(const String&, bool = false) const;
  7113. Array<Node> GetChildren(bool = false) const;
  7114. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7115. Array<Node> GetChildrenWithScript(bool = false) const;
  7116. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7117. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7118. Component GetComponent(const String&, bool = false) const;
  7119. Array<Component> GetComponents() const;
  7120. Array<Component> GetComponents(const String&, bool = false) const;
  7121. bool GetInterceptNetworkUpdate(const String&) const;
  7122. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7123. Component GetParentComponent(const String&, bool = false) const;
  7124. ScriptObject GetScriptObject() const;
  7125. ScriptObject GetScriptObject(const String&) const;
  7126. bool HasComponent(const String&) const;
  7127. bool HasSubscribedToEvent(Object, const String&);
  7128. bool HasSubscribedToEvent(const String&);
  7129. bool HasTag(const String&);
  7130. bool Load(File, bool = false);
  7131. bool Load(VectorBuffer&, bool = false);
  7132. bool LoadJSON(const JSONValue&, bool = false);
  7133. bool LoadXML(const XMLElement&, bool = false);
  7134. Vector3 LocalToWorld(const Vector3&) const;
  7135. Vector3 LocalToWorld(const Vector4&) const;
  7136. Vector2 LocalToWorld2D(const Vector2&) const;
  7137. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7138. void MarkDirty();
  7139. void MarkNetworkUpdate() const;
  7140. void Pitch(float, TransformSpace = TS_LOCAL);
  7141. void Remove();
  7142. void RemoveAllChildren();
  7143. void RemoveAllComponents();
  7144. void RemoveAllTags();
  7145. void RemoveAttributeAnimation(const String&);
  7146. void RemoveChild(Node);
  7147. void RemoveChildren(bool, bool, bool);
  7148. void RemoveComponent(Component);
  7149. void RemoveComponent(const String&);
  7150. void RemoveComponents(bool, bool);
  7151. void RemoveComponents(const String&);
  7152. void RemoveInstanceDefault();
  7153. void RemoveObjectAnimation();
  7154. bool RemoveTag(const String&);
  7155. void ReorderComponent(Component, uint);
  7156. void ResetDeepEnabled();
  7157. void ResetToDefault();
  7158. void Roll(float, TransformSpace = TS_LOCAL);
  7159. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7160. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7161. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7162. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7163. bool Save(File) const;
  7164. bool Save(VectorBuffer&) const;
  7165. bool SaveJSON(File);
  7166. bool SaveJSON(JSONValue&) const;
  7167. bool SaveJSON(VectorBuffer&);
  7168. bool SaveXML(File, const String& = "\t");
  7169. bool SaveXML(VectorBuffer&, const String& = "\t");
  7170. bool SaveXML(XMLElement&) const;
  7171. void Scale(const Vector3&);
  7172. void Scale(float);
  7173. void Scale2D(const Vector2&);
  7174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7175. void SetAnimationTime(float);
  7176. bool SetAttribute(const String&, const Variant&);
  7177. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7178. void SetAttributeAnimationSpeed(const String&, float);
  7179. void SetAttributeAnimationTime(const String&, float);
  7180. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7181. void SetDeepEnabled(bool);
  7182. void SetEnabledRecursive(bool);
  7183. void SetInterceptNetworkUpdate(const String&, bool);
  7184. void SetPosition2D(float, float);
  7185. void SetScale(float);
  7186. void SetScale2D(float, float);
  7187. void SetTransform(const Matrix3x4&);
  7188. void SetTransform(const Vector3&, const Quaternion&);
  7189. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7190. void SetTransform(const Vector3&, const Quaternion&, float);
  7191. void SetTransform2D(const Vector2&, float);
  7192. void SetTransform2D(const Vector2&, float, const Vector2&);
  7193. void SetTransform2D(const Vector2&, float, float);
  7194. void SetWorldTransform(const Vector3&, const Quaternion&);
  7195. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7196. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7197. void SetWorldTransform2D(const Vector2&, float);
  7198. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7199. void SetWorldTransform2D(const Vector2&, float, float);
  7200. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7201. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7202. Vector3 WorldToLocal(const Vector3&) const;
  7203. Vector3 WorldToLocal(const Vector4&) const;
  7204. Vector2 WorldToLocal2D(const Vector2&) const;
  7205. void Yaw(float, TransformSpace = TS_LOCAL);
  7206. // Properties:
  7207. bool animationEnabled;
  7208. /* readonly */
  7209. Array<Variant> attributeDefaults;
  7210. /* readonly */
  7211. Array<AttributeInfo> attributeInfos;
  7212. Array<Variant> attributes;
  7213. /* readonly */
  7214. String category;
  7215. /* readonly */
  7216. Array<Node> children;
  7217. /* readonly */
  7218. Array<Component> components;
  7219. Vector3 direction;
  7220. bool enabled;
  7221. /* readonly */
  7222. bool enabledSelf;
  7223. uint id;
  7224. String name;
  7225. /* readonly */
  7226. uint numAllChildren;
  7227. /* readonly */
  7228. uint numAttributes;
  7229. /* readonly */
  7230. uint numChildren;
  7231. /* readonly */
  7232. uint numComponents;
  7233. ObjectAnimation objectAnimation;
  7234. Connection owner;
  7235. Node parent;
  7236. Vector3 position;
  7237. Vector2 position2D;
  7238. /* readonly */
  7239. int refs;
  7240. /* readonly */
  7241. Vector3 right;
  7242. Quaternion rotation;
  7243. float rotation2D;
  7244. Vector3 scale;
  7245. Vector2 scale2D;
  7246. /* readonly */
  7247. Scene scene;
  7248. /* readonly */
  7249. ScriptObject scriptObject;
  7250. /* readonly */
  7251. Array<String> tags;
  7252. bool temporary;
  7253. /* readonly */
  7254. Matrix3x4 transform;
  7255. /* readonly */
  7256. StringHash type;
  7257. /* readonly */
  7258. String typeName;
  7259. /* readonly */
  7260. Vector3 up;
  7261. /* readonly */
  7262. VariantMap vars;
  7263. /* readonly */
  7264. int weakRefs;
  7265. Vector3 worldDirection;
  7266. Vector3 worldPosition;
  7267. Vector2 worldPosition2D;
  7268. /* readonly */
  7269. Vector3 worldRight;
  7270. Quaternion worldRotation;
  7271. float worldRotation2D;
  7272. Vector3 worldScale;
  7273. Vector2 worldScale2D;
  7274. /* readonly */
  7275. Matrix3x4 worldTransform;
  7276. /* readonly */
  7277. Vector3 worldUp;
  7278. };
  7279. class Object
  7280. {
  7281. // Methods:
  7282. bool HasSubscribedToEvent(Object, const String&);
  7283. bool HasSubscribedToEvent(const String&);
  7284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7285. // Properties:
  7286. /* readonly */
  7287. String category;
  7288. /* readonly */
  7289. int refs;
  7290. /* readonly */
  7291. StringHash type;
  7292. /* readonly */
  7293. String typeName;
  7294. /* readonly */
  7295. int weakRefs;
  7296. };
  7297. class ObjectAnimation
  7298. {
  7299. // Methods:
  7300. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7301. ValueAnimation GetAttributeAnimation(const String&) const;
  7302. float GetAttributeAnimationSpeed(const String&) const;
  7303. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7304. bool HasSubscribedToEvent(Object, const String&);
  7305. bool HasSubscribedToEvent(const String&);
  7306. bool Load(File);
  7307. bool Load(VectorBuffer&);
  7308. bool Load(const String&);
  7309. void RemoveAttributeAnimation(ValueAnimation);
  7310. void RemoveAttributeAnimation(const String&);
  7311. bool Save(File) const;
  7312. bool Save(VectorBuffer&) const;
  7313. bool Save(const String&) const;
  7314. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7315. // Properties:
  7316. /* readonly */
  7317. Array<Variant> attributeAnimations;
  7318. /* readonly */
  7319. String category;
  7320. /* readonly */
  7321. uint memoryUse;
  7322. String name;
  7323. /* readonly */
  7324. int refs;
  7325. /* readonly */
  7326. Array<Variant> speeds;
  7327. /* readonly */
  7328. StringHash type;
  7329. /* readonly */
  7330. String typeName;
  7331. /* readonly */
  7332. uint useTimer;
  7333. /* readonly */
  7334. int weakRefs;
  7335. /* readonly */
  7336. Array<Variant> wrapModes;
  7337. };
  7338. class Obstacle
  7339. {
  7340. // Methods:
  7341. void ApplyAttributes();
  7342. void DrawDebugGeometry(DebugRenderer, bool);
  7343. void DrawDebugGeometry(bool);
  7344. Variant GetAttribute(const String&) const;
  7345. ValueAnimation GetAttributeAnimation(const String&) const;
  7346. float GetAttributeAnimationSpeed(const String&) const;
  7347. float GetAttributeAnimationTime(const String&) const;
  7348. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7349. Variant GetAttributeDefault(const String&) const;
  7350. bool GetInterceptNetworkUpdate(const String&) const;
  7351. bool HasSubscribedToEvent(Object, const String&);
  7352. bool HasSubscribedToEvent(const String&);
  7353. bool Load(File, bool = false);
  7354. bool Load(VectorBuffer&, bool = false);
  7355. bool LoadJSON(const JSONValue&, bool = false);
  7356. bool LoadXML(const XMLElement&, bool = false);
  7357. void MarkNetworkUpdate() const;
  7358. void Remove();
  7359. void RemoveAttributeAnimation(const String&);
  7360. void RemoveInstanceDefault();
  7361. void RemoveObjectAnimation();
  7362. void ResetToDefault();
  7363. bool Save(File) const;
  7364. bool Save(VectorBuffer&) const;
  7365. bool SaveJSON(JSONValue&) const;
  7366. bool SaveXML(XMLElement&) const;
  7367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7368. void SetAnimationTime(float);
  7369. bool SetAttribute(const String&, const Variant&);
  7370. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7371. void SetAttributeAnimationSpeed(const String&, float);
  7372. void SetAttributeAnimationTime(const String&, float);
  7373. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7374. void SetInterceptNetworkUpdate(const String&, bool);
  7375. // Properties:
  7376. bool animationEnabled;
  7377. /* readonly */
  7378. Array<Variant> attributeDefaults;
  7379. /* readonly */
  7380. Array<AttributeInfo> attributeInfos;
  7381. Array<Variant> attributes;
  7382. /* readonly */
  7383. String category;
  7384. bool enabled;
  7385. /* readonly */
  7386. bool enabledEffective;
  7387. float height;
  7388. /* readonly */
  7389. uint id;
  7390. /* readonly */
  7391. Node node;
  7392. /* readonly */
  7393. uint numAttributes;
  7394. ObjectAnimation objectAnimation;
  7395. /* readonly */
  7396. uint obstacleId;
  7397. float radius;
  7398. /* readonly */
  7399. int refs;
  7400. bool temporary;
  7401. /* readonly */
  7402. StringHash type;
  7403. /* readonly */
  7404. String typeName;
  7405. /* readonly */
  7406. int weakRefs;
  7407. };
  7408. class Octree
  7409. {
  7410. // Methods:
  7411. void AddManualDrawable(Drawable);
  7412. void ApplyAttributes();
  7413. void DrawDebugGeometry(DebugRenderer, bool);
  7414. void DrawDebugGeometry(bool) const;
  7415. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7416. Variant GetAttribute(const String&) const;
  7417. ValueAnimation GetAttributeAnimation(const String&) const;
  7418. float GetAttributeAnimationSpeed(const String&) const;
  7419. float GetAttributeAnimationTime(const String&) const;
  7420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7421. Variant GetAttributeDefault(const String&) const;
  7422. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7423. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7424. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7425. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7426. bool GetInterceptNetworkUpdate(const String&) const;
  7427. bool HasSubscribedToEvent(Object, const String&);
  7428. bool HasSubscribedToEvent(const String&);
  7429. bool Load(File, bool = false);
  7430. bool Load(VectorBuffer&, bool = false);
  7431. bool LoadJSON(const JSONValue&, bool = false);
  7432. bool LoadXML(const XMLElement&, bool = false);
  7433. void MarkNetworkUpdate() const;
  7434. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7435. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7436. void Remove();
  7437. void RemoveAttributeAnimation(const String&);
  7438. void RemoveInstanceDefault();
  7439. void RemoveManualDrawable(Drawable);
  7440. void RemoveObjectAnimation();
  7441. void ResetToDefault();
  7442. bool Save(File) const;
  7443. bool Save(VectorBuffer&) const;
  7444. bool SaveJSON(JSONValue&) const;
  7445. bool SaveXML(XMLElement&) const;
  7446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7447. void SetAnimationTime(float);
  7448. bool SetAttribute(const String&, const Variant&);
  7449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7450. void SetAttributeAnimationSpeed(const String&, float);
  7451. void SetAttributeAnimationTime(const String&, float);
  7452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7453. void SetInterceptNetworkUpdate(const String&, bool);
  7454. void SetSize(const BoundingBox&, uint);
  7455. // Properties:
  7456. bool animationEnabled;
  7457. /* readonly */
  7458. Array<Variant> attributeDefaults;
  7459. /* readonly */
  7460. Array<AttributeInfo> attributeInfos;
  7461. Array<Variant> attributes;
  7462. /* readonly */
  7463. String category;
  7464. bool enabled;
  7465. /* readonly */
  7466. bool enabledEffective;
  7467. /* readonly */
  7468. uint id;
  7469. /* readonly */
  7470. Node node;
  7471. /* readonly */
  7472. uint numAttributes;
  7473. /* readonly */
  7474. uint numLevels;
  7475. ObjectAnimation objectAnimation;
  7476. /* readonly */
  7477. int refs;
  7478. bool temporary;
  7479. /* readonly */
  7480. StringHash type;
  7481. /* readonly */
  7482. String typeName;
  7483. /* readonly */
  7484. int weakRefs;
  7485. /* readonly */
  7486. BoundingBox worldBoundingBox;
  7487. };
  7488. class OffMeshConnection
  7489. {
  7490. // Methods:
  7491. void ApplyAttributes();
  7492. void DrawDebugGeometry(DebugRenderer, bool);
  7493. Variant GetAttribute(const String&) const;
  7494. ValueAnimation GetAttributeAnimation(const String&) const;
  7495. float GetAttributeAnimationSpeed(const String&) const;
  7496. float GetAttributeAnimationTime(const String&) const;
  7497. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7498. Variant GetAttributeDefault(const String&) const;
  7499. bool GetInterceptNetworkUpdate(const String&) const;
  7500. bool HasSubscribedToEvent(Object, const String&);
  7501. bool HasSubscribedToEvent(const String&);
  7502. bool Load(File, bool = false);
  7503. bool Load(VectorBuffer&, bool = false);
  7504. bool LoadJSON(const JSONValue&, bool = false);
  7505. bool LoadXML(const XMLElement&, bool = false);
  7506. void MarkNetworkUpdate() const;
  7507. void Remove();
  7508. void RemoveAttributeAnimation(const String&);
  7509. void RemoveInstanceDefault();
  7510. void RemoveObjectAnimation();
  7511. void ResetToDefault();
  7512. bool Save(File) const;
  7513. bool Save(VectorBuffer&) const;
  7514. bool SaveJSON(JSONValue&) const;
  7515. bool SaveXML(XMLElement&) const;
  7516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7517. void SetAnimationTime(float);
  7518. bool SetAttribute(const String&, const Variant&);
  7519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7520. void SetAttributeAnimationSpeed(const String&, float);
  7521. void SetAttributeAnimationTime(const String&, float);
  7522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7523. void SetInterceptNetworkUpdate(const String&, bool);
  7524. // Properties:
  7525. bool animationEnabled;
  7526. uint areaID;
  7527. /* readonly */
  7528. Array<Variant> attributeDefaults;
  7529. /* readonly */
  7530. Array<AttributeInfo> attributeInfos;
  7531. Array<Variant> attributes;
  7532. bool bidirectional;
  7533. /* readonly */
  7534. String category;
  7535. bool enabled;
  7536. /* readonly */
  7537. bool enabledEffective;
  7538. Node endPoint;
  7539. /* readonly */
  7540. uint id;
  7541. uint mask;
  7542. /* readonly */
  7543. Node node;
  7544. /* readonly */
  7545. uint numAttributes;
  7546. ObjectAnimation objectAnimation;
  7547. float radius;
  7548. /* readonly */
  7549. int refs;
  7550. bool temporary;
  7551. /* readonly */
  7552. StringHash type;
  7553. /* readonly */
  7554. String typeName;
  7555. /* readonly */
  7556. int weakRefs;
  7557. };
  7558. class PackageFile
  7559. {
  7560. // Methods:
  7561. bool Exists(const String&) const;
  7562. Array<String> GetEntryNames() const;
  7563. bool HasSubscribedToEvent(Object, const String&);
  7564. bool HasSubscribedToEvent(const String&);
  7565. bool Open(const String&, uint = 0) const;
  7566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7567. bool compressed() const;
  7568. // Properties:
  7569. /* readonly */
  7570. String category;
  7571. /* readonly */
  7572. uint checksum;
  7573. /* readonly */
  7574. String name;
  7575. /* readonly */
  7576. uint numFiles;
  7577. /* readonly */
  7578. int refs;
  7579. /* readonly */
  7580. uint totalDataSize;
  7581. /* readonly */
  7582. uint totalSize;
  7583. /* readonly */
  7584. StringHash type;
  7585. /* readonly */
  7586. String typeName;
  7587. /* readonly */
  7588. int weakRefs;
  7589. };
  7590. class ParticleEffect
  7591. {
  7592. // Methods:
  7593. void AddColorFrame(ColorFrame);
  7594. void AddColorTime(Color&, float);
  7595. void AddTextureFrame(TextureFrame);
  7596. void AddTextureTime(Rect&, float);
  7597. ParticleEffect Clone(const String& = String ( )) const;
  7598. ColorFrame GetColorFrame(uint) const;
  7599. TextureFrame GetTextureFrame(uint) const;
  7600. bool HasSubscribedToEvent(Object, const String&);
  7601. bool HasSubscribedToEvent(const String&);
  7602. bool Load(File);
  7603. bool Load(VectorBuffer&);
  7604. bool Load(const String&);
  7605. bool Load(const XMLElement&);
  7606. void RemoveColorFrame(uint);
  7607. void RemoveTextureFrame(uint);
  7608. bool Save(File) const;
  7609. bool Save(VectorBuffer&) const;
  7610. bool Save(XMLElement&) const;
  7611. bool Save(const String&) const;
  7612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7613. void SetColorFrame(uint, ColorFrame);
  7614. void SetTextureFrame(uint, TextureFrame);
  7615. void SortColorFrames();
  7616. void SortTextureFrames();
  7617. // Properties:
  7618. float activeTime;
  7619. float animationLodBias;
  7620. /* readonly */
  7621. String category;
  7622. Vector3 constantForce;
  7623. float dampingForce;
  7624. Vector3 emitterSize;
  7625. EmitterType emitterType;
  7626. FaceCameraMode faceCameraMode;
  7627. bool fixedScreenSize;
  7628. float inactiveTime;
  7629. Material material;
  7630. Vector3 maxDirection;
  7631. float maxEmissionRate;
  7632. Vector2 maxParticleSize;
  7633. float maxRotation;
  7634. float maxRotationSpeed;
  7635. float maxTimeToLive;
  7636. float maxVelocity;
  7637. /* readonly */
  7638. uint memoryUse;
  7639. Vector3 minDirection;
  7640. float minEmissionRate;
  7641. Vector2 minParticleSize;
  7642. float minRotation;
  7643. float minRotationSpeed;
  7644. float minTimeToLive;
  7645. float minVelocity;
  7646. String name;
  7647. uint numColorFrames;
  7648. uint numParticles;
  7649. uint numTextureFrames;
  7650. /* readonly */
  7651. int refs;
  7652. bool relative;
  7653. bool scaled;
  7654. float sizeAdd;
  7655. float sizeMul;
  7656. bool sorted;
  7657. /* readonly */
  7658. StringHash type;
  7659. /* readonly */
  7660. String typeName;
  7661. bool updateInvisible;
  7662. /* readonly */
  7663. uint useTimer;
  7664. /* readonly */
  7665. int weakRefs;
  7666. };
  7667. class ParticleEffect2D
  7668. {
  7669. // Methods:
  7670. ParticleEffect2D Clone(const String& = String ( )) const;
  7671. bool HasSubscribedToEvent(Object, const String&);
  7672. bool HasSubscribedToEvent(const String&);
  7673. bool Load(File);
  7674. bool Load(VectorBuffer&);
  7675. bool Load(const String&);
  7676. bool Save(File) const;
  7677. bool Save(VectorBuffer&) const;
  7678. bool Save(const String&) const;
  7679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7680. // Properties:
  7681. /* readonly */
  7682. String category;
  7683. /* readonly */
  7684. uint memoryUse;
  7685. String name;
  7686. /* readonly */
  7687. int refs;
  7688. /* readonly */
  7689. StringHash type;
  7690. /* readonly */
  7691. String typeName;
  7692. /* readonly */
  7693. uint useTimer;
  7694. /* readonly */
  7695. int weakRefs;
  7696. };
  7697. class ParticleEmitter
  7698. {
  7699. // Methods:
  7700. void ApplyAttributes();
  7701. void ApplyEffect();
  7702. void Commit();
  7703. void DrawDebugGeometry(DebugRenderer, bool);
  7704. Variant GetAttribute(const String&) const;
  7705. ValueAnimation GetAttributeAnimation(const String&) const;
  7706. float GetAttributeAnimationSpeed(const String&) const;
  7707. float GetAttributeAnimationTime(const String&) const;
  7708. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7709. Variant GetAttributeDefault(const String&) const;
  7710. bool GetInterceptNetworkUpdate(const String&) const;
  7711. bool HasSubscribedToEvent(Object, const String&);
  7712. bool HasSubscribedToEvent(const String&);
  7713. bool IsInView(Camera) const;
  7714. bool Load(File, bool = false);
  7715. bool Load(VectorBuffer&, bool = false);
  7716. bool LoadJSON(const JSONValue&, bool = false);
  7717. bool LoadXML(const XMLElement&, bool = false);
  7718. void MarkNetworkUpdate() const;
  7719. void Remove();
  7720. void RemoveAllParticles();
  7721. void RemoveAttributeAnimation(const String&);
  7722. void RemoveInstanceDefault();
  7723. void RemoveObjectAnimation();
  7724. void Reset();
  7725. void ResetEmissionTimer();
  7726. void ResetToDefault();
  7727. bool Save(File) const;
  7728. bool Save(VectorBuffer&) const;
  7729. bool SaveJSON(JSONValue&) const;
  7730. bool SaveXML(XMLElement&) const;
  7731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7732. void SetAnimationTime(float);
  7733. bool SetAttribute(const String&, const Variant&);
  7734. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7735. void SetAttributeAnimationSpeed(const String&, float);
  7736. void SetAttributeAnimationTime(const String&, float);
  7737. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7738. void SetInterceptNetworkUpdate(const String&, bool);
  7739. // Properties:
  7740. bool animationEnabled;
  7741. float animationLodBias;
  7742. /* readonly */
  7743. Array<Variant> attributeDefaults;
  7744. /* readonly */
  7745. Array<AttributeInfo> attributeInfos;
  7746. Array<Variant> attributes;
  7747. AutoRemoveMode autoRemoveMode;
  7748. /* readonly */
  7749. Array<Billboard> billboards;
  7750. /* readonly */
  7751. BoundingBox boundingBox;
  7752. bool castShadows;
  7753. /* readonly */
  7754. String category;
  7755. float drawDistance;
  7756. ParticleEffect effect;
  7757. bool emitting;
  7758. bool enabled;
  7759. /* readonly */
  7760. bool enabledEffective;
  7761. FaceCameraMode faceCameraMode;
  7762. bool fixedScreenSize;
  7763. /* readonly */
  7764. uint id;
  7765. /* readonly */
  7766. bool inView;
  7767. uint lightMask;
  7768. float lodBias;
  7769. Material material;
  7770. uint maxLights;
  7771. /* readonly */
  7772. Node node;
  7773. /* readonly */
  7774. uint numAttributes;
  7775. uint numBillboards;
  7776. uint numParticles;
  7777. ObjectAnimation objectAnimation;
  7778. bool occludee;
  7779. bool occluder;
  7780. /* readonly */
  7781. int refs;
  7782. bool relative;
  7783. bool scaled;
  7784. bool serializeParticles;
  7785. float shadowDistance;
  7786. uint shadowMask;
  7787. bool sorted;
  7788. bool temporary;
  7789. /* readonly */
  7790. StringHash type;
  7791. /* readonly */
  7792. String typeName;
  7793. uint viewMask;
  7794. /* readonly */
  7795. int weakRefs;
  7796. /* readonly */
  7797. BoundingBox worldBoundingBox;
  7798. /* readonly */
  7799. Zone zone;
  7800. uint zoneMask;
  7801. };
  7802. class ParticleEmitter2D
  7803. {
  7804. // Methods:
  7805. void ApplyAttributes();
  7806. void DrawDebugGeometry(DebugRenderer, bool);
  7807. Variant GetAttribute(const String&) const;
  7808. ValueAnimation GetAttributeAnimation(const String&) const;
  7809. float GetAttributeAnimationSpeed(const String&) const;
  7810. float GetAttributeAnimationTime(const String&) const;
  7811. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7812. Variant GetAttributeDefault(const String&) const;
  7813. bool GetInterceptNetworkUpdate(const String&) const;
  7814. bool HasSubscribedToEvent(Object, const String&);
  7815. bool HasSubscribedToEvent(const String&);
  7816. bool IsInView(Camera) const;
  7817. bool Load(File, bool = false);
  7818. bool Load(VectorBuffer&, bool = false);
  7819. bool LoadJSON(const JSONValue&, bool = false);
  7820. bool LoadXML(const XMLElement&, bool = false);
  7821. void MarkNetworkUpdate() const;
  7822. void Remove();
  7823. void RemoveAttributeAnimation(const String&);
  7824. void RemoveInstanceDefault();
  7825. void RemoveObjectAnimation();
  7826. void ResetToDefault();
  7827. bool Save(File) const;
  7828. bool Save(VectorBuffer&) const;
  7829. bool SaveJSON(JSONValue&) const;
  7830. bool SaveXML(XMLElement&) const;
  7831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7832. void SetAnimationTime(float);
  7833. bool SetAttribute(const String&, const Variant&);
  7834. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7835. void SetAttributeAnimationSpeed(const String&, float);
  7836. void SetAttributeAnimationTime(const String&, float);
  7837. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7838. void SetInterceptNetworkUpdate(const String&, bool);
  7839. // Properties:
  7840. bool animationEnabled;
  7841. /* readonly */
  7842. Array<Variant> attributeDefaults;
  7843. /* readonly */
  7844. Array<AttributeInfo> attributeInfos;
  7845. Array<Variant> attributes;
  7846. BlendMode blendMode;
  7847. /* readonly */
  7848. BoundingBox boundingBox;
  7849. bool castShadows;
  7850. /* readonly */
  7851. String category;
  7852. float drawDistance;
  7853. ParticleEffect2D effect;
  7854. bool enabled;
  7855. /* readonly */
  7856. bool enabledEffective;
  7857. /* readonly */
  7858. uint id;
  7859. /* readonly */
  7860. bool inView;
  7861. int layer;
  7862. uint lightMask;
  7863. float lodBias;
  7864. uint maxLights;
  7865. /* readonly */
  7866. Node node;
  7867. /* readonly */
  7868. uint numAttributes;
  7869. ObjectAnimation objectAnimation;
  7870. bool occludee;
  7871. bool occluder;
  7872. int orderInLayer;
  7873. /* readonly */
  7874. int refs;
  7875. float shadowDistance;
  7876. uint shadowMask;
  7877. Sprite2D sprite;
  7878. bool temporary;
  7879. /* readonly */
  7880. StringHash type;
  7881. /* readonly */
  7882. String typeName;
  7883. uint viewMask;
  7884. /* readonly */
  7885. int weakRefs;
  7886. /* readonly */
  7887. BoundingBox worldBoundingBox;
  7888. uint zoneMask;
  7889. };
  7890. class Pass
  7891. {
  7892. // Properties:
  7893. bool alphaToCoverage;
  7894. BlendMode blendMode;
  7895. CullMode cullMode;
  7896. CompareMode depthTestMode;
  7897. bool depthWrite;
  7898. bool desktop;
  7899. PassLightingMode lightingMode;
  7900. String pixelShader;
  7901. String pixelShaderDefineExcludes;
  7902. String pixelShaderDefines;
  7903. /* readonly */
  7904. int refs;
  7905. String vertexShader;
  7906. String vertexShaderDefineExcludes;
  7907. String vertexShaderDefines;
  7908. /* readonly */
  7909. int weakRefs;
  7910. };
  7911. class PhysicsRaycastResult
  7912. {
  7913. // Properties:
  7914. /* readonly */
  7915. RigidBody body;
  7916. float distance;
  7917. float hitFraction;
  7918. Vector3 normal;
  7919. Vector3 position;
  7920. };
  7921. class PhysicsRaycastResult2D
  7922. {
  7923. // Properties:
  7924. /* readonly */
  7925. RigidBody2D body;
  7926. float distance;
  7927. Vector2 normal;
  7928. Vector2 position;
  7929. };
  7930. class PhysicsWorld
  7931. {
  7932. // Methods:
  7933. void ApplyAttributes();
  7934. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7935. void DrawDebugGeometry(DebugRenderer, bool);
  7936. void DrawDebugGeometry(bool);
  7937. Variant GetAttribute(const String&) const;
  7938. ValueAnimation GetAttributeAnimation(const String&) const;
  7939. float GetAttributeAnimationSpeed(const String&) const;
  7940. float GetAttributeAnimationTime(const String&) const;
  7941. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7942. Variant GetAttributeDefault(const String&) const;
  7943. Array<RigidBody> GetCollidingBodies(RigidBody);
  7944. bool GetInterceptNetworkUpdate(const String&) const;
  7945. Array<RigidBody> GetRigidBodies(RigidBody);
  7946. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7947. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7948. bool HasSubscribedToEvent(Object, const String&);
  7949. bool HasSubscribedToEvent(const String&);
  7950. bool Load(File, bool = false);
  7951. bool Load(VectorBuffer&, bool = false);
  7952. bool LoadJSON(const JSONValue&, bool = false);
  7953. bool LoadXML(const XMLElement&, bool = false);
  7954. void MarkNetworkUpdate() const;
  7955. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7956. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7957. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7958. void Remove();
  7959. void RemoveAttributeAnimation(const String&);
  7960. void RemoveCachedGeometry(Model);
  7961. void RemoveInstanceDefault();
  7962. void RemoveObjectAnimation();
  7963. void ResetToDefault();
  7964. bool Save(File) const;
  7965. bool Save(VectorBuffer&) const;
  7966. bool SaveJSON(JSONValue&) const;
  7967. bool SaveXML(XMLElement&) const;
  7968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7969. void SetAnimationTime(float);
  7970. bool SetAttribute(const String&, const Variant&);
  7971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7972. void SetAttributeAnimationSpeed(const String&, float);
  7973. void SetAttributeAnimationTime(const String&, float);
  7974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7975. void SetInterceptNetworkUpdate(const String&, bool);
  7976. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7977. void Update(float);
  7978. void UpdateCollisions();
  7979. // Properties:
  7980. bool animationEnabled;
  7981. /* readonly */
  7982. Array<Variant> attributeDefaults;
  7983. /* readonly */
  7984. Array<AttributeInfo> attributeInfos;
  7985. Array<Variant> attributes;
  7986. /* readonly */
  7987. String category;
  7988. bool enabled;
  7989. /* readonly */
  7990. bool enabledEffective;
  7991. int fps;
  7992. Vector3 gravity;
  7993. /* readonly */
  7994. uint id;
  7995. bool internalEdge;
  7996. bool interpolation;
  7997. int maxSubSteps;
  7998. /* readonly */
  7999. Node node;
  8000. /* readonly */
  8001. uint numAttributes;
  8002. int numIterations;
  8003. ObjectAnimation objectAnimation;
  8004. /* readonly */
  8005. int refs;
  8006. bool splitImpulse;
  8007. bool temporary;
  8008. /* readonly */
  8009. StringHash type;
  8010. /* readonly */
  8011. String typeName;
  8012. bool updateEnabled;
  8013. /* readonly */
  8014. int weakRefs;
  8015. };
  8016. class PhysicsWorld2D
  8017. {
  8018. // Methods:
  8019. void ApplyAttributes();
  8020. void DrawDebugGeometry() const;
  8021. void DrawDebugGeometry(DebugRenderer, bool);
  8022. Variant GetAttribute(const String&) const;
  8023. ValueAnimation GetAttributeAnimation(const String&) const;
  8024. float GetAttributeAnimationSpeed(const String&) const;
  8025. float GetAttributeAnimationTime(const String&) const;
  8026. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8027. Variant GetAttributeDefault(const String&) const;
  8028. bool GetInterceptNetworkUpdate(const String&) const;
  8029. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8030. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8031. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8032. bool HasSubscribedToEvent(Object, const String&);
  8033. bool HasSubscribedToEvent(const String&);
  8034. bool Load(File, bool = false);
  8035. bool Load(VectorBuffer&, bool = false);
  8036. bool LoadJSON(const JSONValue&, bool = false);
  8037. bool LoadXML(const XMLElement&, bool = false);
  8038. void MarkNetworkUpdate() const;
  8039. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8040. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8041. void Remove();
  8042. void RemoveAttributeAnimation(const String&);
  8043. void RemoveInstanceDefault();
  8044. void RemoveObjectAnimation();
  8045. void ResetToDefault();
  8046. bool Save(File) const;
  8047. bool Save(VectorBuffer&) const;
  8048. bool SaveJSON(JSONValue&) const;
  8049. bool SaveXML(XMLElement&) const;
  8050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8051. void SetAnimationTime(float);
  8052. bool SetAttribute(const String&, const Variant&);
  8053. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8054. void SetAttributeAnimationSpeed(const String&, float);
  8055. void SetAttributeAnimationTime(const String&, float);
  8056. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8057. void SetInterceptNetworkUpdate(const String&, bool);
  8058. // Properties:
  8059. bool allowSleeping;
  8060. bool animationEnabled;
  8061. /* readonly */
  8062. Array<Variant> attributeDefaults;
  8063. /* readonly */
  8064. Array<AttributeInfo> attributeInfos;
  8065. Array<Variant> attributes;
  8066. bool autoClearForces;
  8067. /* readonly */
  8068. String category;
  8069. bool continuousPhysics;
  8070. bool drawAabb;
  8071. bool drawCenterOfMass;
  8072. bool drawJoint;
  8073. bool drawPair;
  8074. bool drawShape;
  8075. bool enabled;
  8076. /* readonly */
  8077. bool enabledEffective;
  8078. Vector2 gravity;
  8079. /* readonly */
  8080. uint id;
  8081. /* readonly */
  8082. Node node;
  8083. /* readonly */
  8084. uint numAttributes;
  8085. ObjectAnimation objectAnimation;
  8086. uint positionIterations;
  8087. /* readonly */
  8088. int refs;
  8089. bool subStepping;
  8090. bool temporary;
  8091. /* readonly */
  8092. StringHash type;
  8093. /* readonly */
  8094. String typeName;
  8095. bool updateEnabled;
  8096. uint velocityIterations;
  8097. bool warmStarting;
  8098. /* readonly */
  8099. int weakRefs;
  8100. };
  8101. class Plane
  8102. {
  8103. // Methods:
  8104. void Define(const Vector3&, const Vector3&);
  8105. void Define(const Vector3&, const Vector3&, const Vector3&);
  8106. void Define(const Vector4&);
  8107. float Distance(const Vector3&) const;
  8108. Vector3 Project(const Vector3&) const;
  8109. Vector3 Reflect(const Vector3&) const;
  8110. Vector4 ToVector4() const;
  8111. void Transform(const Matrix3&);
  8112. void Transform(const Matrix3x4&);
  8113. void Transform(const Matrix4&);
  8114. Plane Transformed(const Matrix3&) const;
  8115. Plane Transformed(const Matrix3x4&) const;
  8116. Plane Transformed(const Matrix4&) const;
  8117. // Properties:
  8118. Vector3 absNormal;
  8119. float d;
  8120. Vector3 normal;
  8121. /* readonly */
  8122. Matrix3x4 reflectionMatrix;
  8123. };
  8124. class Polyhedron
  8125. {
  8126. // Methods:
  8127. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8128. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8129. void AddFace(const Array<Vector3>);
  8130. void Clear();
  8131. void Clip(const BoundingBox&);
  8132. void Clip(const Frustum&);
  8133. void Define(const BoundingBox&);
  8134. void Define(const Frustum&);
  8135. void Transform(const Matrix3&);
  8136. void Transform(const Matrix3x4&);
  8137. Polyhedron Transformed(const Matrix3&) const;
  8138. Polyhedron Transformed(const Matrix3x4&) const;
  8139. // Properties:
  8140. /* readonly */
  8141. Array<Array<Vector3>> face;
  8142. /* readonly */
  8143. uint numFaces;
  8144. };
  8145. class ProgressBar
  8146. {
  8147. // Methods:
  8148. void ChangeValue(float);
  8149. bool HasSubscribedToEvent(Object, const String&);
  8150. bool HasSubscribedToEvent(const String&);
  8151. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8152. void SetLoadingPercentStyle(const String&);
  8153. // Properties:
  8154. /* readonly */
  8155. String category;
  8156. /* readonly */
  8157. BorderImage knob;
  8158. Orientation orientation;
  8159. float range;
  8160. /* readonly */
  8161. int refs;
  8162. bool showPercentText;
  8163. /* readonly */
  8164. StringHash type;
  8165. /* readonly */
  8166. String typeName;
  8167. float value;
  8168. /* readonly */
  8169. int weakRefs;
  8170. };
  8171. class PropertySet2D
  8172. {
  8173. // Methods:
  8174. bool HasProperty(const String&) const;
  8175. const String& GetProperty(const String&) const;
  8176. // Properties:
  8177. /* readonly */
  8178. int refs;
  8179. /* readonly */
  8180. int weakRefs;
  8181. };
  8182. class Quaternion
  8183. {
  8184. // Methods:
  8185. Quaternion Conjugate() const;
  8186. float DotProduct(const Quaternion&) const;
  8187. bool Equals(const Quaternion&) const;
  8188. void FromAngleAxis(float, const Vector3&);
  8189. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8190. void FromEulerAngles(float, float, float);
  8191. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8192. void FromRotationMatrix(const Matrix3&);
  8193. void FromRotationTo(const Vector3&, const Vector3&);
  8194. Quaternion Inverse() const;
  8195. bool IsNaN() const;
  8196. float LengthSquared() const;
  8197. Quaternion Nlerp(Quaternion, float, bool) const;
  8198. void Normalize();
  8199. Quaternion Normalized() const;
  8200. Quaternion Slerp(Quaternion, float) const;
  8201. String ToString() const;
  8202. // Properties:
  8203. /* readonly */
  8204. Vector3 eulerAngles;
  8205. /* readonly */
  8206. float pitch;
  8207. /* readonly */
  8208. float roll;
  8209. /* readonly */
  8210. Matrix3 rotationMatrix;
  8211. float w;
  8212. float x;
  8213. float y;
  8214. /* readonly */
  8215. float yaw;
  8216. float z;
  8217. };
  8218. class Ray
  8219. {
  8220. // Methods:
  8221. Vector3 ClosestPoint(const Ray&) const;
  8222. void Define(const Vector3&, const Vector3&);
  8223. float Distance(const Vector3&) const;
  8224. float HitDistance(const BoundingBox&) const;
  8225. float HitDistance(const Frustum&, bool = true) const;
  8226. float HitDistance(const Plane&) const;
  8227. float HitDistance(const Sphere&) const;
  8228. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8229. Vector3 Project(const Vector3&) const;
  8230. Ray Transformed(const Matrix3x4&) const;
  8231. // Properties:
  8232. Vector3 direction;
  8233. Vector3 origin;
  8234. };
  8235. class RayQueryResult
  8236. {
  8237. // Properties:
  8238. float distance;
  8239. /* readonly */
  8240. Drawable drawable;
  8241. /* readonly */
  8242. Node node;
  8243. Vector3 normal;
  8244. Vector3 position;
  8245. uint subObject;
  8246. Vector2 textureUV;
  8247. };
  8248. class Rect
  8249. {
  8250. // Methods:
  8251. void Clear();
  8252. void Clip(const Rect&);
  8253. void Define(const Vector2&);
  8254. void Define(const Vector2&, const Vector2&);
  8255. bool Defined() const;
  8256. bool Equals(const Rect&) const;
  8257. Intersection IsInside(const Rect&) const;
  8258. Intersection IsInside(const Vector2&) const;
  8259. void Merge(const Rect&);
  8260. void Merge(const Vector2&);
  8261. Vector4 ToVector4() const;
  8262. // Properties:
  8263. float bottom;
  8264. /* readonly */
  8265. Vector2 center;
  8266. /* readonly */
  8267. Vector2 halfSize;
  8268. float left;
  8269. Vector2 max;
  8270. Vector2 min;
  8271. float right;
  8272. /* readonly */
  8273. Vector2 size;
  8274. float top;
  8275. };
  8276. class RefCounted
  8277. {
  8278. // Properties:
  8279. /* readonly */
  8280. int refs;
  8281. /* readonly */
  8282. int weakRefs;
  8283. };
  8284. class RenderPath
  8285. {
  8286. // Methods:
  8287. void AddCommand(const RenderPathCommand&);
  8288. void AddRenderTarget(const RenderTargetInfo&);
  8289. bool Append(XMLFile);
  8290. RenderPath Clone();
  8291. void InsertCommand(uint, const RenderPathCommand&);
  8292. bool Load(XMLFile);
  8293. void RemoveCommand(uint);
  8294. void RemoveCommands(const String&);
  8295. void RemoveRenderTarget(const String&);
  8296. void RemoveRenderTarget(uint);
  8297. void RemoveRenderTargts(const String&);
  8298. void SetEnabled(const String&, bool);
  8299. void ToggleEnabled(const String&);
  8300. // Properties:
  8301. Array<RenderPathCommand> commands;
  8302. /* readonly */
  8303. uint numCommands;
  8304. /* readonly */
  8305. uint numRenderTargets;
  8306. /* readonly */
  8307. int refs;
  8308. Array<RenderTargetInfo> renderTargets;
  8309. Array<Variant> shaderParameters;
  8310. /* readonly */
  8311. int weakRefs;
  8312. };
  8313. class RenderPathCommand
  8314. {
  8315. // Methods:
  8316. void RemoveShaderParameter(const String&);
  8317. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8318. // Properties:
  8319. BlendMode blendMode;
  8320. Color clearColor;
  8321. float clearDepth;
  8322. uint clearFlags;
  8323. uint clearStencil;
  8324. String depthStencilName;
  8325. bool enabled;
  8326. String eventName;
  8327. bool markToStencil;
  8328. String metadata;
  8329. uint numOutputs;
  8330. Array<CubeMapFace> outputFaces;
  8331. Array<String> outputNames;
  8332. String pass;
  8333. String pixelShaderDefines;
  8334. String pixelShaderName;
  8335. Array<Variant> shaderParameters;
  8336. RenderCommandSortMode sortMode;
  8337. String tag;
  8338. Array<String> textureNames;
  8339. RenderCommandType type;
  8340. bool useFogColor;
  8341. bool useLitBase;
  8342. bool vertexLights;
  8343. String vertexShaderDefines;
  8344. String vertexShaderName;
  8345. };
  8346. class RenderSurface
  8347. {
  8348. // Methods:
  8349. void QueueUpdate();
  8350. // Properties:
  8351. /* readonly */
  8352. int height;
  8353. RenderSurface linkedDepthStencil;
  8354. RenderSurface linkedRenderTarget;
  8355. uint numViewports;
  8356. /* readonly */
  8357. Texture parentTexture;
  8358. /* readonly */
  8359. bool resolveDirty;
  8360. RenderSurfaceUpdateMode updateMode;
  8361. /* readonly */
  8362. TextureUsage usage;
  8363. Array<Viewport> viewports;
  8364. /* readonly */
  8365. int width;
  8366. };
  8367. class RenderTargetInfo
  8368. {
  8369. // Properties:
  8370. bool autoResolve;
  8371. bool cubemap;
  8372. bool enabled;
  8373. bool filtered;
  8374. uint format;
  8375. int multiSample;
  8376. String name;
  8377. bool persistent;
  8378. bool sRGB;
  8379. Vector2 size;
  8380. RenderTargetSizeMode sizeMode;
  8381. String tag;
  8382. };
  8383. class Renderer
  8384. {
  8385. // Methods:
  8386. void DrawDebugGeometry(bool) const;
  8387. bool HasSubscribedToEvent(Object, const String&);
  8388. bool HasSubscribedToEvent(const String&);
  8389. void ReloadShaders() const;
  8390. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8391. void SetDefaultRenderPath(XMLFile);
  8392. void SetVSMShadowParameters(float, float);
  8393. // Properties:
  8394. /* readonly */
  8395. String category;
  8396. /* readonly */
  8397. Material defaultLightRamp;
  8398. /* readonly */
  8399. Material defaultLightSpot;
  8400. /* readonly */
  8401. Material defaultMaterial;
  8402. RenderPath defaultRenderPath;
  8403. Technique defaultTechnique;
  8404. /* readonly */
  8405. Zone defaultZone;
  8406. bool drawShadows;
  8407. bool dynamicInstancing;
  8408. bool hdrRendering;
  8409. int materialQuality;
  8410. int maxOccluderTriangles;
  8411. int maxShadowMaps;
  8412. int maxSortedInstances;
  8413. int minInstances;
  8414. float mobileNormalOffsetMul;
  8415. float mobileShadowBiasAdd;
  8416. float mobileShadowBiasMul;
  8417. /* readonly */
  8418. uint numBatches;
  8419. int numExtraInstancingBufferElements;
  8420. /* readonly */
  8421. Array<uint> numGeometries;
  8422. /* readonly */
  8423. Array<uint> numLights;
  8424. /* readonly */
  8425. Array<uint> numOccluders;
  8426. /* readonly */
  8427. uint numPrimitives;
  8428. /* readonly */
  8429. Array<uint> numShadowMaps;
  8430. uint numViewports;
  8431. /* readonly */
  8432. uint numViews;
  8433. float occluderSizeThreshold;
  8434. int occlusionBufferSize;
  8435. /* readonly */
  8436. int refs;
  8437. bool reuseShadowMaps;
  8438. int shadowMapSize;
  8439. ShadowQuality shadowQuality;
  8440. float shadowSoftness;
  8441. bool specularLighting;
  8442. int textureAnisotropy;
  8443. TextureFilterMode textureFilterMode;
  8444. int textureQuality;
  8445. bool threadedOcclusion;
  8446. /* readonly */
  8447. StringHash type;
  8448. /* readonly */
  8449. String typeName;
  8450. Array<Viewport> viewports;
  8451. int vsmMultiSample;
  8452. Vector2 vsmShadowParameters;
  8453. /* readonly */
  8454. int weakRefs;
  8455. };
  8456. class Resource
  8457. {
  8458. // Methods:
  8459. bool HasSubscribedToEvent(Object, const String&);
  8460. bool HasSubscribedToEvent(const String&);
  8461. bool Load(File);
  8462. bool Load(VectorBuffer&);
  8463. bool Load(const String&);
  8464. bool Save(File) const;
  8465. bool Save(VectorBuffer&) const;
  8466. bool Save(const String&) const;
  8467. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8468. // Properties:
  8469. /* readonly */
  8470. String category;
  8471. /* readonly */
  8472. uint memoryUse;
  8473. String name;
  8474. /* readonly */
  8475. int refs;
  8476. /* readonly */
  8477. StringHash type;
  8478. /* readonly */
  8479. String typeName;
  8480. /* readonly */
  8481. uint useTimer;
  8482. /* readonly */
  8483. int weakRefs;
  8484. };
  8485. class ResourceCache
  8486. {
  8487. // Methods:
  8488. bool AddManualResource(Resource);
  8489. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8490. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8491. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8492. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8493. bool Exists(const String&) const;
  8494. Resource GetExistingResource(StringHash, const String&);
  8495. Resource GetExistingResource(const String&, const String&);
  8496. File GetFile(const String&);
  8497. String GetPreferredResourceDir(const String&) const;
  8498. Resource GetResource(StringHash, const String&, bool = true);
  8499. Resource GetResource(const String&, const String&, bool = true);
  8500. String GetResourceFileName(const String&) const;
  8501. bool HasSubscribedToEvent(Object, const String&);
  8502. bool HasSubscribedToEvent(const String&);
  8503. void ReleaseAllResources(bool = false);
  8504. void ReleaseResource(const String&, const String&, bool = false);
  8505. void ReleaseResources(StringHash, bool = false);
  8506. void ReleaseResources(const String&, bool = false);
  8507. void ReleaseResources(const String&, const String&, bool = false);
  8508. bool ReloadResource(Resource);
  8509. void ReloadResourceWithDependencies(const String&);
  8510. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8511. void RemovePackageFile(const String&, bool = true, bool = false);
  8512. void RemoveResourceDir(const String&);
  8513. String SanitateResourceDirName(const String&) const;
  8514. String SanitateResourceName(const String&) const;
  8515. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8516. // Properties:
  8517. bool autoReloadResources;
  8518. /* readonly */
  8519. String category;
  8520. int finishBackgroundResourcesMs;
  8521. Array<uint64> memoryBudget;
  8522. /* readonly */
  8523. Array<uint64> memoryUse;
  8524. /* readonly */
  8525. uint numBackgroundLoadResources;
  8526. /* readonly */
  8527. Array<PackageFile> packageFiles;
  8528. /* readonly */
  8529. int refs;
  8530. /* readonly */
  8531. Array<String> resourceDirs;
  8532. bool returnFailedResources;
  8533. /* readonly */
  8534. bool seachPackagesFirst;
  8535. /* writeonly */
  8536. bool searchPackagesFirst;
  8537. /* readonly */
  8538. uint64 totalMemoryUse;
  8539. /* readonly */
  8540. StringHash type;
  8541. /* readonly */
  8542. String typeName;
  8543. /* readonly */
  8544. int weakRefs;
  8545. };
  8546. class ResourceRef
  8547. {
  8548. // Properties:
  8549. String name;
  8550. StringHash type;
  8551. };
  8552. class ResourceRefList
  8553. {
  8554. // Methods:
  8555. void Resize(uint);
  8556. // Properties:
  8557. /* readonly */
  8558. bool empty;
  8559. /* readonly */
  8560. uint length;
  8561. Array<String> names;
  8562. StringHash type;
  8563. };
  8564. class RibbonTrail
  8565. {
  8566. // Methods:
  8567. void ApplyAttributes();
  8568. void Commit();
  8569. void DrawDebugGeometry(DebugRenderer, bool);
  8570. Variant GetAttribute(const String&) const;
  8571. ValueAnimation GetAttributeAnimation(const String&) const;
  8572. float GetAttributeAnimationSpeed(const String&) const;
  8573. float GetAttributeAnimationTime(const String&) const;
  8574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8575. Variant GetAttributeDefault(const String&) const;
  8576. bool GetInterceptNetworkUpdate(const String&) const;
  8577. bool HasSubscribedToEvent(Object, const String&);
  8578. bool HasSubscribedToEvent(const String&);
  8579. bool IsInView(Camera) const;
  8580. bool Load(File, bool = false);
  8581. bool Load(VectorBuffer&, bool = false);
  8582. bool LoadJSON(const JSONValue&, bool = false);
  8583. bool LoadXML(const XMLElement&, bool = false);
  8584. void MarkNetworkUpdate() const;
  8585. void Remove();
  8586. void RemoveAttributeAnimation(const String&);
  8587. void RemoveInstanceDefault();
  8588. void RemoveObjectAnimation();
  8589. void ResetToDefault();
  8590. bool Save(File) const;
  8591. bool Save(VectorBuffer&) const;
  8592. bool SaveJSON(JSONValue&) const;
  8593. bool SaveXML(XMLElement&) const;
  8594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8595. void SetAnimationTime(float);
  8596. bool SetAttribute(const String&, const Variant&);
  8597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8598. void SetAttributeAnimationSpeed(const String&, float);
  8599. void SetAttributeAnimationTime(const String&, float);
  8600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8601. void SetInterceptNetworkUpdate(const String&, bool);
  8602. // Properties:
  8603. bool animationEnabled;
  8604. float animationLodBias;
  8605. /* readonly */
  8606. Array<Variant> attributeDefaults;
  8607. /* readonly */
  8608. Array<AttributeInfo> attributeInfos;
  8609. Array<Variant> attributes;
  8610. /* readonly */
  8611. BoundingBox boundingBox;
  8612. bool castShadows;
  8613. /* readonly */
  8614. String category;
  8615. float drawDistance;
  8616. bool emitting;
  8617. bool enabled;
  8618. /* readonly */
  8619. bool enabledEffective;
  8620. Color endColor;
  8621. float endScale;
  8622. /* readonly */
  8623. uint id;
  8624. /* readonly */
  8625. bool inView;
  8626. float lifetime;
  8627. uint lightMask;
  8628. float lodBias;
  8629. Material material;
  8630. uint maxLights;
  8631. /* readonly */
  8632. Node node;
  8633. /* readonly */
  8634. uint numAttributes;
  8635. ObjectAnimation objectAnimation;
  8636. bool occludee;
  8637. bool occluder;
  8638. /* readonly */
  8639. int refs;
  8640. float shadowDistance;
  8641. uint shadowMask;
  8642. bool sorted;
  8643. Color startColor;
  8644. float startScale;
  8645. uint tailColumn;
  8646. bool temporary;
  8647. TrailType trailType;
  8648. /* readonly */
  8649. StringHash type;
  8650. /* readonly */
  8651. String typeName;
  8652. bool updateInvisible;
  8653. float vertexDistance;
  8654. uint viewMask;
  8655. /* readonly */
  8656. int weakRefs;
  8657. float width;
  8658. /* readonly */
  8659. BoundingBox worldBoundingBox;
  8660. /* readonly */
  8661. Zone zone;
  8662. uint zoneMask;
  8663. };
  8664. class RigidBody
  8665. {
  8666. // Methods:
  8667. void Activate();
  8668. void ApplyAttributes();
  8669. void ApplyForce(const Vector3&);
  8670. void ApplyForce(const Vector3&, const Vector3&);
  8671. void ApplyImpulse(const Vector3&);
  8672. void ApplyImpulse(const Vector3&, const Vector3&);
  8673. void ApplyTorque(const Vector3&);
  8674. void ApplyTorqueImpulse(const Vector3&);
  8675. void DisableMassUpdate();
  8676. void DrawDebugGeometry(DebugRenderer, bool);
  8677. void EnableMassUpdate();
  8678. Variant GetAttribute(const String&) const;
  8679. ValueAnimation GetAttributeAnimation(const String&) const;
  8680. float GetAttributeAnimationSpeed(const String&) const;
  8681. float GetAttributeAnimationTime(const String&) const;
  8682. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8683. Variant GetAttributeDefault(const String&) const;
  8684. bool GetInterceptNetworkUpdate(const String&) const;
  8685. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8686. bool HasSubscribedToEvent(Object, const String&);
  8687. bool HasSubscribedToEvent(const String&);
  8688. bool Load(File, bool = false);
  8689. bool Load(VectorBuffer&, bool = false);
  8690. bool LoadJSON(const JSONValue&, bool = false);
  8691. bool LoadXML(const XMLElement&, bool = false);
  8692. void MarkNetworkUpdate() const;
  8693. void ReAddBodyToWorld();
  8694. void Remove();
  8695. void RemoveAttributeAnimation(const String&);
  8696. void RemoveInstanceDefault();
  8697. void RemoveObjectAnimation();
  8698. void ResetForces();
  8699. void ResetToDefault();
  8700. bool Save(File) const;
  8701. bool Save(VectorBuffer&) const;
  8702. bool SaveJSON(JSONValue&) const;
  8703. bool SaveXML(XMLElement&) const;
  8704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8705. void SetAnimationTime(float);
  8706. bool SetAttribute(const String&, const Variant&);
  8707. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8708. void SetAttributeAnimationSpeed(const String&, float);
  8709. void SetAttributeAnimationTime(const String&, float);
  8710. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8711. void SetCollisionLayerAndMask(uint, uint);
  8712. void SetInterceptNetworkUpdate(const String&, bool);
  8713. void SetTransform(const Vector3&, const Quaternion&);
  8714. // Properties:
  8715. /* readonly */
  8716. bool active;
  8717. float angularDamping;
  8718. Vector3 angularFactor;
  8719. float angularRestThreshold;
  8720. Vector3 angularVelocity;
  8721. bool animationEnabled;
  8722. Vector3 anisotropicFriction;
  8723. /* readonly */
  8724. Array<Variant> attributeDefaults;
  8725. /* readonly */
  8726. Array<AttributeInfo> attributeInfos;
  8727. Array<Variant> attributes;
  8728. /* readonly */
  8729. String category;
  8730. float ccdMotionThreshold;
  8731. float ccdRadius;
  8732. /* readonly */
  8733. Vector3 centerOfMass;
  8734. /* readonly */
  8735. Array<RigidBody> collidingBodies;
  8736. CollisionEventMode collisionEventMode;
  8737. uint collisionLayer;
  8738. uint collisionMask;
  8739. float contactProcessingThreshold;
  8740. bool enabled;
  8741. /* readonly */
  8742. bool enabledEffective;
  8743. float friction;
  8744. Vector3 gravityOverride;
  8745. /* readonly */
  8746. uint id;
  8747. bool kinematic;
  8748. float linearDamping;
  8749. Vector3 linearFactor;
  8750. float linearRestThreshold;
  8751. Vector3 linearVelocity;
  8752. float mass;
  8753. /* readonly */
  8754. Node node;
  8755. /* readonly */
  8756. uint numAttributes;
  8757. ObjectAnimation objectAnimation;
  8758. Vector3 position;
  8759. /* readonly */
  8760. int refs;
  8761. float restitution;
  8762. float rollingFriction;
  8763. Quaternion rotation;
  8764. bool temporary;
  8765. bool trigger;
  8766. /* readonly */
  8767. StringHash type;
  8768. /* readonly */
  8769. String typeName;
  8770. bool useGravity;
  8771. /* readonly */
  8772. int weakRefs;
  8773. };
  8774. class RigidBody2D
  8775. {
  8776. // Methods:
  8777. void ApplyAngularImpulse(float, bool);
  8778. void ApplyAttributes();
  8779. void ApplyForce(const Vector2&, const Vector2&, bool);
  8780. void ApplyForceToCenter(const Vector2&, bool);
  8781. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8782. void ApplyTorque(float, bool);
  8783. void DrawDebugGeometry(DebugRenderer, bool);
  8784. Variant GetAttribute(const String&) const;
  8785. ValueAnimation GetAttributeAnimation(const String&) const;
  8786. float GetAttributeAnimationSpeed(const String&) const;
  8787. float GetAttributeAnimationTime(const String&) const;
  8788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8789. Variant GetAttributeDefault(const String&) const;
  8790. bool GetInterceptNetworkUpdate(const String&) const;
  8791. bool HasSubscribedToEvent(Object, const String&);
  8792. bool HasSubscribedToEvent(const String&);
  8793. bool Load(File, bool = false);
  8794. bool Load(VectorBuffer&, bool = false);
  8795. bool LoadJSON(const JSONValue&, bool = false);
  8796. bool LoadXML(const XMLElement&, bool = false);
  8797. void MarkNetworkUpdate() const;
  8798. void Remove();
  8799. void RemoveAttributeAnimation(const String&);
  8800. void RemoveInstanceDefault();
  8801. void RemoveObjectAnimation();
  8802. void ResetToDefault();
  8803. bool Save(File) const;
  8804. bool Save(VectorBuffer&) const;
  8805. bool SaveJSON(JSONValue&) const;
  8806. bool SaveXML(XMLElement&) const;
  8807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8808. void SetAnimationTime(float);
  8809. bool SetAttribute(const String&, const Variant&);
  8810. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8811. void SetAttributeAnimationSpeed(const String&, float);
  8812. void SetAttributeAnimationTime(const String&, float);
  8813. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8814. void SetInterceptNetworkUpdate(const String&, bool);
  8815. // Properties:
  8816. bool allowSleep;
  8817. float angularDamping;
  8818. bool animationEnabled;
  8819. /* readonly */
  8820. Array<Variant> attributeDefaults;
  8821. /* readonly */
  8822. Array<AttributeInfo> attributeInfos;
  8823. Array<Variant> attributes;
  8824. bool awake;
  8825. BodyType2D bodyType;
  8826. bool bullet;
  8827. /* readonly */
  8828. String category;
  8829. bool enabled;
  8830. /* readonly */
  8831. bool enabledEffective;
  8832. bool fixedRotation;
  8833. float gravityScale;
  8834. /* readonly */
  8835. uint id;
  8836. float inertia;
  8837. float linearDamping;
  8838. Vector2 linearVelocity;
  8839. float mass;
  8840. Vector2 massCenter;
  8841. /* readonly */
  8842. Node node;
  8843. /* readonly */
  8844. uint numAttributes;
  8845. ObjectAnimation objectAnimation;
  8846. /* readonly */
  8847. int refs;
  8848. bool temporary;
  8849. /* readonly */
  8850. StringHash type;
  8851. /* readonly */
  8852. String typeName;
  8853. bool useFixtureMass;
  8854. /* readonly */
  8855. int weakRefs;
  8856. };
  8857. class Scene
  8858. {
  8859. // Methods:
  8860. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8861. void AddRequiredPackageFile(PackageFile);
  8862. void AddTag(const String&);
  8863. void AddTags(const String&, int8 = ';');
  8864. void ApplyAttributes();
  8865. void Clear(bool = true, bool = true);
  8866. void ClearRequiredPackageFiles();
  8867. Component CloneComponent(Component, CreateMode, uint = 0);
  8868. Component CloneComponent(Component, uint = 0);
  8869. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  8870. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8871. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8872. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8873. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8874. Variant GetAttribute(const String&) const;
  8875. ValueAnimation GetAttributeAnimation(const String&) const;
  8876. float GetAttributeAnimationSpeed(const String&) const;
  8877. float GetAttributeAnimationTime(const String&) const;
  8878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8879. Variant GetAttributeDefault(const String&) const;
  8880. Node GetChild(const String&, bool = false) const;
  8881. Array<Node> GetChildren(bool = false) const;
  8882. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8883. Array<Node> GetChildrenWithScript(bool = false) const;
  8884. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8885. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8886. Component GetComponent(const String&, bool = false) const;
  8887. Component GetComponent(uint) const;
  8888. Array<Component> GetComponents() const;
  8889. Array<Component> GetComponents(const String&, bool = false) const;
  8890. bool GetInterceptNetworkUpdate(const String&) const;
  8891. Node GetNode(uint) const;
  8892. Array<Node> GetNodesWithTag(const String&) const;
  8893. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8894. Component GetParentComponent(const String&, bool = false) const;
  8895. ScriptObject GetScriptObject() const;
  8896. ScriptObject GetScriptObject(const String&) const;
  8897. bool HasComponent(const String&) const;
  8898. bool HasSubscribedToEvent(Object, const String&);
  8899. bool HasSubscribedToEvent(const String&);
  8900. bool HasTag(const String&);
  8901. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8902. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8903. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8904. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8905. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8906. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8907. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8908. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8909. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8910. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8911. bool Load(File, bool = false);
  8912. bool Load(VectorBuffer&, bool = false);
  8913. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8914. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8915. bool LoadJSON(File);
  8916. bool LoadJSON(VectorBuffer&);
  8917. bool LoadJSON(const JSONValue&, bool = false);
  8918. bool LoadXML(File);
  8919. bool LoadXML(VectorBuffer&);
  8920. bool LoadXML(const XMLElement&, bool = false);
  8921. Vector3 LocalToWorld(const Vector3&) const;
  8922. Vector3 LocalToWorld(const Vector4&) const;
  8923. Vector2 LocalToWorld2D(const Vector2&) const;
  8924. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8925. void MarkNetworkUpdate() const;
  8926. void Pitch(float, TransformSpace = TS_LOCAL);
  8927. void RegisterVar(const String&);
  8928. void Remove();
  8929. void RemoveAllChildren();
  8930. void RemoveAllComponents();
  8931. void RemoveAllTags();
  8932. void RemoveAttributeAnimation(const String&);
  8933. void RemoveChild(Node);
  8934. void RemoveChildren(bool, bool, bool);
  8935. void RemoveComponent(Component);
  8936. void RemoveComponent(const String&);
  8937. void RemoveComponents(bool, bool);
  8938. void RemoveComponents(const String&);
  8939. void RemoveInstanceDefault();
  8940. void RemoveObjectAnimation();
  8941. bool RemoveTag(const String&);
  8942. void ReorderComponent(Component, uint);
  8943. void ResetToDefault();
  8944. void Roll(float, TransformSpace = TS_LOCAL);
  8945. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8946. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8947. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8948. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8949. bool Save(File) const;
  8950. bool Save(VectorBuffer&) const;
  8951. bool SaveJSON(File, const String& = "\t");
  8952. bool SaveJSON(JSONValue&) const;
  8953. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8954. bool SaveXML(File, const String& = "\t");
  8955. bool SaveXML(VectorBuffer&, const String& = "\t");
  8956. bool SaveXML(XMLElement&) const;
  8957. void Scale(const Vector3&);
  8958. void Scale(float);
  8959. void Scale2D(const Vector2&);
  8960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8961. void SetAnimationTime(float);
  8962. bool SetAttribute(const String&, const Variant&);
  8963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8964. void SetAttributeAnimationSpeed(const String&, float);
  8965. void SetAttributeAnimationTime(const String&, float);
  8966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8967. void SetInterceptNetworkUpdate(const String&, bool);
  8968. void SetPosition2D(float, float);
  8969. void SetScale(float);
  8970. void SetScale2D(float, float);
  8971. void SetTransform(const Matrix3x4&);
  8972. void SetTransform(const Vector3&, const Quaternion&);
  8973. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8974. void SetTransform(const Vector3&, const Quaternion&, float);
  8975. void SetTransform2D(const Vector2&, float);
  8976. void SetTransform2D(const Vector2&, float, const Vector2&);
  8977. void SetTransform2D(const Vector2&, float, float);
  8978. void SetWorldTransform(const Vector3&, const Quaternion&);
  8979. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8980. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8981. void SetWorldTransform2D(const Vector2&, float);
  8982. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8983. void SetWorldTransform2D(const Vector2&, float, float);
  8984. void StopAsyncLoading();
  8985. const String& GetVarName(StringHash) const;
  8986. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8987. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8988. void UnregisterAllVars(const String&);
  8989. void UnregisterVar(const String&);
  8990. void Update(float);
  8991. Vector3 WorldToLocal(const Vector3&) const;
  8992. Vector3 WorldToLocal(const Vector4&) const;
  8993. Vector2 WorldToLocal2D(const Vector2&) const;
  8994. void Yaw(float, TransformSpace = TS_LOCAL);
  8995. // Properties:
  8996. bool animationEnabled;
  8997. /* readonly */
  8998. LoadMode asyncLoadMode;
  8999. /* readonly */
  9000. bool asyncLoading;
  9001. int asyncLoadingMs;
  9002. /* readonly */
  9003. float asyncProgress;
  9004. /* readonly */
  9005. Array<Variant> attributeDefaults;
  9006. /* readonly */
  9007. Array<AttributeInfo> attributeInfos;
  9008. Array<Variant> attributes;
  9009. /* readonly */
  9010. String category;
  9011. /* readonly */
  9012. uint checksum;
  9013. /* readonly */
  9014. Array<Node> children;
  9015. /* readonly */
  9016. Array<Component> components;
  9017. /* readonly */
  9018. DebugRenderer debugRenderer;
  9019. Vector3 direction;
  9020. float elapsedTime;
  9021. /* readonly */
  9022. String fileName;
  9023. uint id;
  9024. String name;
  9025. /* readonly */
  9026. uint numAllChildren;
  9027. /* readonly */
  9028. uint numAttributes;
  9029. /* readonly */
  9030. uint numChildren;
  9031. /* readonly */
  9032. uint numComponents;
  9033. ObjectAnimation objectAnimation;
  9034. /* readonly */
  9035. Octree octree;
  9036. Node parent;
  9037. /* readonly */
  9038. PhysicsWorld physicsWorld;
  9039. /* readonly */
  9040. PhysicsWorld2D physicsWorld2D;
  9041. Vector3 position;
  9042. Vector2 position2D;
  9043. /* readonly */
  9044. int refs;
  9045. /* readonly */
  9046. Array<PackageFile> requiredPackageFiles;
  9047. /* readonly */
  9048. Vector3 right;
  9049. Quaternion rotation;
  9050. float rotation2D;
  9051. Vector3 scale;
  9052. Vector2 scale2D;
  9053. /* readonly */
  9054. ScriptObject scriptObject;
  9055. float smoothingConstant;
  9056. float snapThreshold;
  9057. /* readonly */
  9058. Array<String> tags;
  9059. bool temporary;
  9060. float timeScale;
  9061. /* readonly */
  9062. Matrix3x4 transform;
  9063. /* readonly */
  9064. StringHash type;
  9065. /* readonly */
  9066. String typeName;
  9067. /* readonly */
  9068. Vector3 up;
  9069. bool updateEnabled;
  9070. /* readonly */
  9071. VariantMap vars;
  9072. /* readonly */
  9073. int weakRefs;
  9074. Vector3 worldDirection;
  9075. Vector3 worldPosition;
  9076. Vector2 worldPosition2D;
  9077. /* readonly */
  9078. Vector3 worldRight;
  9079. Quaternion worldRotation;
  9080. float worldRotation2D;
  9081. Vector3 worldScale;
  9082. Vector2 worldScale2D;
  9083. /* readonly */
  9084. Matrix3x4 worldTransform;
  9085. /* readonly */
  9086. Vector3 worldUp;
  9087. };
  9088. class Script
  9089. {
  9090. // Methods:
  9091. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9092. bool Execute(const String&);
  9093. bool HasSubscribedToEvent(Object, const String&);
  9094. bool HasSubscribedToEvent(const String&);
  9095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9096. // Properties:
  9097. /* readonly */
  9098. String category;
  9099. Scene defaultScene;
  9100. ScriptFile defaultScriptFile;
  9101. bool executeConsoleCommands;
  9102. /* readonly */
  9103. int refs;
  9104. /* readonly */
  9105. StringHash type;
  9106. /* readonly */
  9107. String typeName;
  9108. /* readonly */
  9109. int weakRefs;
  9110. };
  9111. class ScriptFile
  9112. {
  9113. // Methods:
  9114. void ClearDelayedExecute(const String& = String ( ));
  9115. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9116. bool Execute(const String&, const Array<Variant> = null);
  9117. bool HasSubscribedToEvent(Object, const String&);
  9118. bool HasSubscribedToEvent(const String&);
  9119. bool Load(File);
  9120. bool Load(VectorBuffer&);
  9121. bool Load(const String&);
  9122. bool Save(File) const;
  9123. bool Save(VectorBuffer&) const;
  9124. bool Save(const String&) const;
  9125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9126. // Properties:
  9127. /* readonly */
  9128. String category;
  9129. /* readonly */
  9130. bool compiled;
  9131. /* readonly */
  9132. uint memoryUse;
  9133. String name;
  9134. /* readonly */
  9135. int refs;
  9136. /* readonly */
  9137. StringHash type;
  9138. /* readonly */
  9139. String typeName;
  9140. /* readonly */
  9141. uint useTimer;
  9142. /* readonly */
  9143. int weakRefs;
  9144. };
  9145. class ScriptInstance
  9146. {
  9147. // Methods:
  9148. void ApplyAttributes();
  9149. void ClearDelayedExecute(const String& = String ( ));
  9150. bool CreateObject(ScriptFile, const String&);
  9151. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9152. void DrawDebugGeometry(DebugRenderer, bool);
  9153. bool Execute(const String&, const Array<Variant> = null);
  9154. Variant GetAttribute(const String&) const;
  9155. ValueAnimation GetAttributeAnimation(const String&) const;
  9156. float GetAttributeAnimationSpeed(const String&) const;
  9157. float GetAttributeAnimationTime(const String&) const;
  9158. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9159. Variant GetAttributeDefault(const String&) const;
  9160. bool GetInterceptNetworkUpdate(const String&) const;
  9161. bool HasMethod(const String&) const;
  9162. bool HasSubscribedToEvent(Object, const String&);
  9163. bool HasSubscribedToEvent(const String&);
  9164. bool IsA(const String&) const;
  9165. bool Load(File, bool = false);
  9166. bool Load(VectorBuffer&, bool = false);
  9167. bool LoadJSON(const JSONValue&, bool = false);
  9168. bool LoadXML(const XMLElement&, bool = false);
  9169. void MarkNetworkUpdate() const;
  9170. void Remove();
  9171. void RemoveAttributeAnimation(const String&);
  9172. void RemoveInstanceDefault();
  9173. void RemoveObjectAnimation();
  9174. void ResetToDefault();
  9175. bool Save(File) const;
  9176. bool Save(VectorBuffer&) const;
  9177. bool SaveJSON(JSONValue&) const;
  9178. bool SaveXML(XMLElement&) const;
  9179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9180. void SetAnimationTime(float);
  9181. bool SetAttribute(const String&, const Variant&);
  9182. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9183. void SetAttributeAnimationSpeed(const String&, float);
  9184. void SetAttributeAnimationTime(const String&, float);
  9185. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9186. void SetInterceptNetworkUpdate(const String&, bool);
  9187. // Properties:
  9188. bool animationEnabled;
  9189. /* readonly */
  9190. Array<Variant> attributeDefaults;
  9191. /* readonly */
  9192. Array<AttributeInfo> attributeInfos;
  9193. Array<Variant> attributes;
  9194. /* readonly */
  9195. String category;
  9196. String className;
  9197. bool enabled;
  9198. /* readonly */
  9199. bool enabledEffective;
  9200. /* readonly */
  9201. uint id;
  9202. /* readonly */
  9203. Node node;
  9204. /* readonly */
  9205. uint numAttributes;
  9206. ObjectAnimation objectAnimation;
  9207. /* readonly */
  9208. int refs;
  9209. ScriptFile scriptFile;
  9210. /* readonly */
  9211. ScriptObject scriptObject;
  9212. bool temporary;
  9213. /* readonly */
  9214. StringHash type;
  9215. /* readonly */
  9216. String typeName;
  9217. /* readonly */
  9218. int weakRefs;
  9219. };
  9220. class ScriptObject
  9221. {
  9222. };
  9223. class ScrollBar
  9224. {
  9225. // Methods:
  9226. void AddChild(UIElement);
  9227. void AddTag(const String&);
  9228. void AddTags(const String&, int8 = ';');
  9229. void ApplyAttributes();
  9230. void BringToFront();
  9231. void ChangeValue(float);
  9232. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9233. void DisableLayoutUpdate();
  9234. IntVector2 ElementToScreen(const IntVector2&);
  9235. void EnableLayoutUpdate();
  9236. uint FindChild(UIElement) const;
  9237. Variant GetAttribute(const String&) const;
  9238. ValueAnimation GetAttributeAnimation(const String&) const;
  9239. float GetAttributeAnimationSpeed(const String&) const;
  9240. float GetAttributeAnimationTime(const String&) const;
  9241. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9242. Variant GetAttributeDefault(const String&) const;
  9243. UIElement GetChild(const String&, bool = false) const;
  9244. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9245. Array<UIElement> GetChildren(bool = false) const;
  9246. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9247. UIElement GetElementEventSender() const;
  9248. bool GetInterceptNetworkUpdate(const String&) const;
  9249. uint GetNumChildren(bool) const;
  9250. bool HasSubscribedToEvent(Object, const String&);
  9251. bool HasSubscribedToEvent(const String&);
  9252. bool HasTag(const String&) const;
  9253. void InsertChild(uint, UIElement);
  9254. bool IsInside(IntVector2, bool);
  9255. bool IsInsideCombined(IntVector2, bool);
  9256. bool Load(File, bool = false);
  9257. bool Load(VectorBuffer&, bool = false);
  9258. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9259. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9260. bool LoadJSON(const JSONValue&, bool = false);
  9261. bool LoadXML(File);
  9262. bool LoadXML(VectorBuffer&);
  9263. bool LoadXML(XMLFile, XMLFile);
  9264. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9265. bool LoadXML(const XMLElement&, bool = false);
  9266. void MarkNetworkUpdate() const;
  9267. void Remove();
  9268. void RemoveAllChildren();
  9269. void RemoveAllTags();
  9270. void RemoveAttributeAnimation(const String&);
  9271. void RemoveChild(UIElement, uint = 0);
  9272. void RemoveChild(uint);
  9273. void RemoveInstanceDefault();
  9274. void RemoveObjectAnimation();
  9275. bool RemoveTag(const String&);
  9276. void ResetDeepEnabled();
  9277. void ResetToDefault();
  9278. bool Save(File) const;
  9279. bool Save(VectorBuffer&) const;
  9280. bool SaveJSON(JSONValue&) const;
  9281. bool SaveXML(File, const String& = "\t");
  9282. bool SaveXML(VectorBuffer&, const String& = "\t");
  9283. bool SaveXML(XMLElement&) const;
  9284. IntVector2 ScreenToElement(const IntVector2&);
  9285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9286. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9287. void SetAnimationTime(float);
  9288. bool SetAttribute(const String&, const Variant&);
  9289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9290. void SetAttributeAnimationSpeed(const String&, float);
  9291. void SetAttributeAnimationTime(const String&, float);
  9292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9293. void SetDeepEnabled(bool);
  9294. void SetEnabledRecursive(bool);
  9295. void SetFixedHeight(int);
  9296. void SetFixedSize(int, int);
  9297. void SetFixedWidth(int);
  9298. void SetInterceptNetworkUpdate(const String&, bool);
  9299. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9300. void SetMaxAnchor(float, float);
  9301. void SetMaxSize(int, int);
  9302. void SetMinAnchor(float, float);
  9303. void SetMinSize(int, int);
  9304. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9305. void SetPivot(float, float);
  9306. void SetPosition(int, int);
  9307. void SetSize(int, int);
  9308. bool SetStyle(const String&, XMLFile = null);
  9309. bool SetStyle(const XMLElement&);
  9310. bool SetStyleAuto(XMLFile = null);
  9311. void StepBack();
  9312. void StepForward();
  9313. void UpdateLayout();
  9314. const Variant& GetVar(const StringHash&);
  9315. // Properties:
  9316. bool animationEnabled;
  9317. /* readonly */
  9318. Array<Variant> attributeDefaults;
  9319. /* readonly */
  9320. Array<AttributeInfo> attributeInfos;
  9321. Array<Variant> attributes;
  9322. /* readonly */
  9323. Button backButton;
  9324. bool bringToBack;
  9325. bool bringToFront;
  9326. /* readonly */
  9327. String category;
  9328. /* readonly */
  9329. IntVector2 childOffset;
  9330. /* readonly */
  9331. Array<UIElement> children;
  9332. IntRect clipBorder;
  9333. bool clipChildren;
  9334. /* writeonly */
  9335. Color color;
  9336. /* readonly */
  9337. bool colorGradient;
  9338. Array<Color> colors;
  9339. /* readonly */
  9340. IntRect combinedScreenRect;
  9341. XMLFile defaultStyle;
  9342. /* readonly */
  9343. float derivedOpacity;
  9344. /* readonly */
  9345. uint dragButtonCombo;
  9346. /* readonly */
  9347. int dragButtonCount;
  9348. uint dragDropMode;
  9349. bool editable;
  9350. /* readonly */
  9351. float effectiveScrollStep;
  9352. bool elementEventSender;
  9353. bool enableAnchor;
  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. /* readonly */
  9366. Button forwardButton;
  9367. int height;
  9368. HorizontalAlignment horizontalAlignment;
  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. Vector2 maxAnchor;
  9381. int maxHeight;
  9382. IntVector2 maxOffset;
  9383. IntVector2 maxSize;
  9384. int maxWidth;
  9385. Vector2 minAnchor;
  9386. int minHeight;
  9387. IntVector2 minOffset;
  9388. IntVector2 minSize;
  9389. int minWidth;
  9390. String name;
  9391. /* readonly */
  9392. uint numAllChildren;
  9393. /* readonly */
  9394. uint numAttributes;
  9395. /* readonly */
  9396. uint numChildren;
  9397. ObjectAnimation objectAnimation;
  9398. float opacity;
  9399. Orientation orientation;
  9400. UIElement parent;
  9401. Vector2 pivot;
  9402. IntVector2 position;
  9403. int priority;
  9404. float range;
  9405. /* readonly */
  9406. int refs;
  9407. /* readonly */
  9408. UIElement root;
  9409. /* readonly */
  9410. IntVector2 screenPosition;
  9411. float scrollStep;
  9412. bool selected;
  9413. IntVector2 size;
  9414. /* readonly */
  9415. Slider slider;
  9416. bool sortChildren;
  9417. float stepFactor;
  9418. String style;
  9419. /* readonly */
  9420. Array<String> tags;
  9421. bool temporary;
  9422. TraversalMode traversalMode;
  9423. /* readonly */
  9424. StringHash type;
  9425. /* readonly */
  9426. String typeName;
  9427. bool useDerivedOpacity;
  9428. float value;
  9429. /* readonly */
  9430. VariantMap vars;
  9431. VerticalAlignment verticalAlignment;
  9432. bool visible;
  9433. /* readonly */
  9434. bool visibleEffective;
  9435. /* readonly */
  9436. int weakRefs;
  9437. int width;
  9438. };
  9439. class ScrollView
  9440. {
  9441. // Methods:
  9442. void AddChild(UIElement);
  9443. void AddTag(const String&);
  9444. void AddTags(const String&, int8 = ';');
  9445. void ApplyAttributes();
  9446. void BringToFront();
  9447. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9448. void DisableLayoutUpdate();
  9449. IntVector2 ElementToScreen(const IntVector2&);
  9450. void EnableLayoutUpdate();
  9451. uint FindChild(UIElement) const;
  9452. Variant GetAttribute(const String&) const;
  9453. ValueAnimation GetAttributeAnimation(const String&) const;
  9454. float GetAttributeAnimationSpeed(const String&) const;
  9455. float GetAttributeAnimationTime(const String&) const;
  9456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9457. Variant GetAttributeDefault(const String&) const;
  9458. UIElement GetChild(const String&, bool = false) const;
  9459. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9460. Array<UIElement> GetChildren(bool = false) const;
  9461. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9462. UIElement GetElementEventSender() const;
  9463. bool GetInterceptNetworkUpdate(const String&) const;
  9464. uint GetNumChildren(bool) const;
  9465. bool HasSubscribedToEvent(Object, const String&);
  9466. bool HasSubscribedToEvent(const String&);
  9467. bool HasTag(const String&) const;
  9468. void InsertChild(uint, UIElement);
  9469. bool IsInside(IntVector2, bool);
  9470. bool IsInsideCombined(IntVector2, bool);
  9471. bool Load(File, bool = false);
  9472. bool Load(VectorBuffer&, bool = false);
  9473. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9474. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9475. bool LoadJSON(const JSONValue&, bool = false);
  9476. bool LoadXML(File);
  9477. bool LoadXML(VectorBuffer&);
  9478. bool LoadXML(XMLFile, XMLFile);
  9479. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9480. bool LoadXML(const XMLElement&, bool = false);
  9481. void MarkNetworkUpdate() const;
  9482. void Remove();
  9483. void RemoveAllChildren();
  9484. void RemoveAllTags();
  9485. void RemoveAttributeAnimation(const String&);
  9486. void RemoveChild(UIElement, uint = 0);
  9487. void RemoveChild(uint);
  9488. void RemoveInstanceDefault();
  9489. void RemoveObjectAnimation();
  9490. bool RemoveTag(const String&);
  9491. void ResetDeepEnabled();
  9492. void ResetToDefault();
  9493. bool Save(File) const;
  9494. bool Save(VectorBuffer&) const;
  9495. bool SaveJSON(JSONValue&) const;
  9496. bool SaveXML(File, const String& = "\t");
  9497. bool SaveXML(VectorBuffer&, const String& = "\t");
  9498. bool SaveXML(XMLElement&) const;
  9499. IntVector2 ScreenToElement(const IntVector2&);
  9500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9501. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9502. void SetAnimationTime(float);
  9503. bool SetAttribute(const String&, const Variant&);
  9504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9505. void SetAttributeAnimationSpeed(const String&, float);
  9506. void SetAttributeAnimationTime(const String&, float);
  9507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9508. void SetDeepEnabled(bool);
  9509. void SetEnabledRecursive(bool);
  9510. void SetFixedHeight(int);
  9511. void SetFixedSize(int, int);
  9512. void SetFixedWidth(int);
  9513. void SetInterceptNetworkUpdate(const String&, bool);
  9514. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9515. void SetMaxAnchor(float, float);
  9516. void SetMaxSize(int, int);
  9517. void SetMinAnchor(float, float);
  9518. void SetMinSize(int, int);
  9519. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9520. void SetPivot(float, float);
  9521. void SetPosition(int, int);
  9522. void SetScrollBarsVisible(bool, bool);
  9523. void SetSize(int, int);
  9524. bool SetStyle(const String&, XMLFile = null);
  9525. bool SetStyle(const XMLElement&);
  9526. bool SetStyleAuto(XMLFile = null);
  9527. void SetViewPosition(int, int);
  9528. void UpdateLayout();
  9529. const Variant& GetVar(const StringHash&);
  9530. // Properties:
  9531. bool animationEnabled;
  9532. /* readonly */
  9533. Array<Variant> attributeDefaults;
  9534. /* readonly */
  9535. Array<AttributeInfo> attributeInfos;
  9536. Array<Variant> attributes;
  9537. bool autoDisableChildren;
  9538. float autoDisableThreshold;
  9539. bool bringToBack;
  9540. bool bringToFront;
  9541. /* readonly */
  9542. String category;
  9543. /* readonly */
  9544. IntVector2 childOffset;
  9545. /* readonly */
  9546. Array<UIElement> children;
  9547. IntRect clipBorder;
  9548. bool clipChildren;
  9549. /* writeonly */
  9550. Color color;
  9551. /* readonly */
  9552. bool colorGradient;
  9553. Array<Color> colors;
  9554. /* readonly */
  9555. IntRect combinedScreenRect;
  9556. UIElement contentElement;
  9557. XMLFile defaultStyle;
  9558. /* readonly */
  9559. float derivedOpacity;
  9560. /* readonly */
  9561. uint dragButtonCombo;
  9562. /* readonly */
  9563. int dragButtonCount;
  9564. uint dragDropMode;
  9565. bool editable;
  9566. bool elementEventSender;
  9567. bool enableAnchor;
  9568. bool enabled;
  9569. /* readonly */
  9570. bool enabledSelf;
  9571. /* readonly */
  9572. bool fixedHeight;
  9573. /* readonly */
  9574. bool fixedSize;
  9575. /* readonly */
  9576. bool fixedWidth;
  9577. bool focus;
  9578. FocusMode focusMode;
  9579. int height;
  9580. HorizontalAlignment horizontalAlignment;
  9581. /* readonly */
  9582. ScrollBar horizontalScrollBar;
  9583. /* readonly */
  9584. bool hovering;
  9585. int indent;
  9586. int indentSpacing;
  9587. /* readonly */
  9588. int indentWidth;
  9589. bool internal;
  9590. IntRect layoutBorder;
  9591. Vector2 layoutFlexScale;
  9592. LayoutMode layoutMode;
  9593. int layoutSpacing;
  9594. Vector2 maxAnchor;
  9595. int maxHeight;
  9596. IntVector2 maxOffset;
  9597. IntVector2 maxSize;
  9598. int maxWidth;
  9599. Vector2 minAnchor;
  9600. int minHeight;
  9601. IntVector2 minOffset;
  9602. IntVector2 minSize;
  9603. int minWidth;
  9604. String name;
  9605. /* readonly */
  9606. uint numAllChildren;
  9607. /* readonly */
  9608. uint numAttributes;
  9609. /* readonly */
  9610. uint numChildren;
  9611. ObjectAnimation objectAnimation;
  9612. float opacity;
  9613. float pageStep;
  9614. UIElement parent;
  9615. Vector2 pivot;
  9616. IntVector2 position;
  9617. int priority;
  9618. /* readonly */
  9619. int refs;
  9620. /* readonly */
  9621. UIElement root;
  9622. /* readonly */
  9623. IntVector2 screenPosition;
  9624. bool scrollBarsAutoVisible;
  9625. float scrollDeceleration;
  9626. /* readonly */
  9627. BorderImage scrollPanel;
  9628. float scrollSnapEpsilon;
  9629. float scrollStep;
  9630. bool selected;
  9631. IntVector2 size;
  9632. bool sortChildren;
  9633. String style;
  9634. /* readonly */
  9635. Array<String> tags;
  9636. bool temporary;
  9637. TraversalMode traversalMode;
  9638. /* readonly */
  9639. StringHash type;
  9640. /* readonly */
  9641. String typeName;
  9642. bool useDerivedOpacity;
  9643. /* readonly */
  9644. VariantMap vars;
  9645. VerticalAlignment verticalAlignment;
  9646. /* readonly */
  9647. ScrollBar verticalScrollBar;
  9648. IntVector2 viewPosition;
  9649. bool visible;
  9650. /* readonly */
  9651. bool visibleEffective;
  9652. /* readonly */
  9653. int weakRefs;
  9654. int width;
  9655. };
  9656. class Serializable
  9657. {
  9658. // Methods:
  9659. void ApplyAttributes();
  9660. Variant GetAttribute(const String&) const;
  9661. Variant GetAttributeDefault(const String&) const;
  9662. bool GetInterceptNetworkUpdate(const String&) const;
  9663. bool HasSubscribedToEvent(Object, const String&);
  9664. bool HasSubscribedToEvent(const String&);
  9665. bool Load(File, bool = false);
  9666. bool Load(VectorBuffer&, bool = false);
  9667. bool LoadJSON(const JSONValue&, bool = false);
  9668. bool LoadXML(const XMLElement&, bool = false);
  9669. void MarkNetworkUpdate() const;
  9670. void RemoveInstanceDefault();
  9671. void ResetToDefault();
  9672. bool Save(File) const;
  9673. bool Save(VectorBuffer&) const;
  9674. bool SaveJSON(JSONValue&) const;
  9675. bool SaveXML(XMLElement&) const;
  9676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9677. bool SetAttribute(const String&, const Variant&);
  9678. void SetInterceptNetworkUpdate(const String&, bool);
  9679. // Properties:
  9680. /* readonly */
  9681. Array<Variant> attributeDefaults;
  9682. /* readonly */
  9683. Array<AttributeInfo> attributeInfos;
  9684. Array<Variant> attributes;
  9685. /* readonly */
  9686. String category;
  9687. /* readonly */
  9688. uint numAttributes;
  9689. /* readonly */
  9690. int refs;
  9691. bool temporary;
  9692. /* readonly */
  9693. StringHash type;
  9694. /* readonly */
  9695. String typeName;
  9696. /* readonly */
  9697. int weakRefs;
  9698. };
  9699. class Serializer
  9700. {
  9701. // Methods:
  9702. uint Write(Array<uint8>);
  9703. bool WriteBool(bool);
  9704. bool WriteBoundingBox(const BoundingBox&);
  9705. bool WriteByte(int8);
  9706. bool WriteColor(const Color&);
  9707. bool WriteDouble(double);
  9708. bool WriteFileID(const String&);
  9709. bool WriteFloat(float);
  9710. bool WriteInt(int);
  9711. bool WriteInt64(int64);
  9712. bool WriteIntRect(const IntRect&);
  9713. bool WriteIntVector2(const IntVector2&);
  9714. bool WriteLine(const String&);
  9715. bool WriteMatrix3(const Matrix3&);
  9716. bool WriteMatrix3x4(const Matrix3x4&);
  9717. bool WriteMatrix4(const Matrix4&);
  9718. bool WriteNetID(uint);
  9719. bool WritePackedQuaternion(const Quaternion&);
  9720. bool WritePackedVector3(const Vector3&, float);
  9721. bool WriteQuaternion(const Quaternion&);
  9722. bool WriteShort(int16);
  9723. bool WriteString(const String&);
  9724. bool WriteStringHash(const StringHash&);
  9725. bool WriteUByte(uint8);
  9726. bool WriteUInt(uint);
  9727. bool WriteUInt64(uint64);
  9728. bool WriteUShort(uint16);
  9729. bool WriteVLE(uint);
  9730. bool WriteVariant(const Variant&);
  9731. bool WriteVariantMap(const VariantMap&);
  9732. bool WriteVector2(const Vector2&);
  9733. bool WriteVector3(const Vector3&);
  9734. bool WriteVector4(const Vector4&);
  9735. bool WriteVectorBuffer(const VectorBuffer&);
  9736. };
  9737. class Skeleton
  9738. {
  9739. // Methods:
  9740. Bone GetBone(const String&) const;
  9741. void Reset();
  9742. // Properties:
  9743. /* readonly */
  9744. Array<Bone> bones;
  9745. /* readonly */
  9746. uint numBones;
  9747. /* readonly */
  9748. Bone rootBone;
  9749. };
  9750. class Skybox
  9751. {
  9752. // Methods:
  9753. void ApplyAttributes();
  9754. void ApplyMaterialList(const String& = String ( ));
  9755. void DrawDebugGeometry(DebugRenderer, bool);
  9756. Variant GetAttribute(const String&) const;
  9757. ValueAnimation GetAttributeAnimation(const String&) const;
  9758. float GetAttributeAnimationSpeed(const String&) const;
  9759. float GetAttributeAnimationTime(const String&) const;
  9760. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9761. Variant GetAttributeDefault(const String&) const;
  9762. bool GetInterceptNetworkUpdate(const String&) const;
  9763. bool HasSubscribedToEvent(Object, const String&);
  9764. bool HasSubscribedToEvent(const String&);
  9765. bool IsInView(Camera) const;
  9766. bool Load(File, bool = false);
  9767. bool Load(VectorBuffer&, bool = false);
  9768. bool LoadJSON(const JSONValue&, bool = false);
  9769. bool LoadXML(const XMLElement&, bool = false);
  9770. void MarkNetworkUpdate() const;
  9771. void Remove();
  9772. void RemoveAttributeAnimation(const String&);
  9773. void RemoveInstanceDefault();
  9774. void RemoveObjectAnimation();
  9775. void ResetToDefault();
  9776. bool Save(File) const;
  9777. bool Save(VectorBuffer&) const;
  9778. bool SaveJSON(JSONValue&) const;
  9779. bool SaveXML(XMLElement&) const;
  9780. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9781. void SetAnimationTime(float);
  9782. bool SetAttribute(const String&, const Variant&);
  9783. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9784. void SetAttributeAnimationSpeed(const String&, float);
  9785. void SetAttributeAnimationTime(const String&, float);
  9786. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9787. void SetInterceptNetworkUpdate(const String&, bool);
  9788. // Properties:
  9789. bool animationEnabled;
  9790. /* readonly */
  9791. Array<Variant> attributeDefaults;
  9792. /* readonly */
  9793. Array<AttributeInfo> attributeInfos;
  9794. Array<Variant> attributes;
  9795. /* readonly */
  9796. BoundingBox boundingBox;
  9797. bool castShadows;
  9798. /* readonly */
  9799. String category;
  9800. float drawDistance;
  9801. bool enabled;
  9802. /* readonly */
  9803. bool enabledEffective;
  9804. /* readonly */
  9805. uint id;
  9806. /* readonly */
  9807. bool inView;
  9808. uint lightMask;
  9809. float lodBias;
  9810. /* writeonly */
  9811. Material material;
  9812. Array<Material> materials;
  9813. uint maxLights;
  9814. Model model;
  9815. /* readonly */
  9816. Node node;
  9817. /* readonly */
  9818. uint numAttributes;
  9819. /* readonly */
  9820. uint numGeometries;
  9821. ObjectAnimation objectAnimation;
  9822. bool occludee;
  9823. bool occluder;
  9824. /* readonly */
  9825. int refs;
  9826. float shadowDistance;
  9827. uint shadowMask;
  9828. bool temporary;
  9829. /* readonly */
  9830. StringHash type;
  9831. /* readonly */
  9832. String typeName;
  9833. uint viewMask;
  9834. /* readonly */
  9835. int weakRefs;
  9836. /* readonly */
  9837. BoundingBox worldBoundingBox;
  9838. /* readonly */
  9839. Zone zone;
  9840. uint zoneMask;
  9841. };
  9842. class Slider
  9843. {
  9844. // Methods:
  9845. void AddChild(UIElement);
  9846. void AddTag(const String&);
  9847. void AddTags(const String&, int8 = ';');
  9848. void ApplyAttributes();
  9849. void BringToFront();
  9850. void ChangeValue(float);
  9851. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9852. void DisableLayoutUpdate();
  9853. IntVector2 ElementToScreen(const IntVector2&);
  9854. void EnableLayoutUpdate();
  9855. uint FindChild(UIElement) const;
  9856. Variant GetAttribute(const String&) const;
  9857. ValueAnimation GetAttributeAnimation(const String&) const;
  9858. float GetAttributeAnimationSpeed(const String&) const;
  9859. float GetAttributeAnimationTime(const String&) const;
  9860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9861. Variant GetAttributeDefault(const String&) const;
  9862. UIElement GetChild(const String&, bool = false) const;
  9863. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9864. Array<UIElement> GetChildren(bool = false) const;
  9865. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9866. UIElement GetElementEventSender() const;
  9867. bool GetInterceptNetworkUpdate(const String&) const;
  9868. uint GetNumChildren(bool) const;
  9869. bool HasSubscribedToEvent(Object, const String&);
  9870. bool HasSubscribedToEvent(const String&);
  9871. bool HasTag(const String&) const;
  9872. void InsertChild(uint, UIElement);
  9873. bool IsInside(IntVector2, bool);
  9874. bool IsInsideCombined(IntVector2, bool);
  9875. bool Load(File, bool = false);
  9876. bool Load(VectorBuffer&, bool = false);
  9877. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9878. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9879. bool LoadJSON(const JSONValue&, bool = false);
  9880. bool LoadXML(File);
  9881. bool LoadXML(VectorBuffer&);
  9882. bool LoadXML(XMLFile, XMLFile);
  9883. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9884. bool LoadXML(const XMLElement&, bool = false);
  9885. void MarkNetworkUpdate() const;
  9886. void Remove();
  9887. void RemoveAllChildren();
  9888. void RemoveAllTags();
  9889. void RemoveAttributeAnimation(const String&);
  9890. void RemoveChild(UIElement, uint = 0);
  9891. void RemoveChild(uint);
  9892. void RemoveInstanceDefault();
  9893. void RemoveObjectAnimation();
  9894. bool RemoveTag(const String&);
  9895. void ResetDeepEnabled();
  9896. void ResetToDefault();
  9897. bool Save(File) const;
  9898. bool Save(VectorBuffer&) const;
  9899. bool SaveJSON(JSONValue&) const;
  9900. bool SaveXML(File, const String& = "\t");
  9901. bool SaveXML(VectorBuffer&, const String& = "\t");
  9902. bool SaveXML(XMLElement&) const;
  9903. IntVector2 ScreenToElement(const IntVector2&);
  9904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9905. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9906. void SetAnimationTime(float);
  9907. bool SetAttribute(const String&, const Variant&);
  9908. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9909. void SetAttributeAnimationSpeed(const String&, float);
  9910. void SetAttributeAnimationTime(const String&, float);
  9911. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9912. void SetDeepEnabled(bool);
  9913. void SetEnabledRecursive(bool);
  9914. void SetFixedHeight(int);
  9915. void SetFixedSize(int, int);
  9916. void SetFixedWidth(int);
  9917. void SetFullImageRect();
  9918. void SetHoverOffset(int, int);
  9919. void SetInterceptNetworkUpdate(const String&, bool);
  9920. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9921. void SetMaxAnchor(float, float);
  9922. void SetMaxSize(int, int);
  9923. void SetMinAnchor(float, float);
  9924. void SetMinSize(int, int);
  9925. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9926. void SetPivot(float, float);
  9927. void SetPosition(int, int);
  9928. void SetSize(int, int);
  9929. bool SetStyle(const String&, XMLFile = null);
  9930. bool SetStyle(const XMLElement&);
  9931. bool SetStyleAuto(XMLFile = null);
  9932. void UpdateLayout();
  9933. const Variant& GetVar(const StringHash&);
  9934. // Properties:
  9935. bool animationEnabled;
  9936. /* readonly */
  9937. Array<Variant> attributeDefaults;
  9938. /* readonly */
  9939. Array<AttributeInfo> attributeInfos;
  9940. Array<Variant> attributes;
  9941. BlendMode blendMode;
  9942. IntRect border;
  9943. bool bringToBack;
  9944. bool bringToFront;
  9945. /* readonly */
  9946. String category;
  9947. /* readonly */
  9948. IntVector2 childOffset;
  9949. /* readonly */
  9950. Array<UIElement> children;
  9951. IntRect clipBorder;
  9952. bool clipChildren;
  9953. /* writeonly */
  9954. Color color;
  9955. /* readonly */
  9956. bool colorGradient;
  9957. Array<Color> colors;
  9958. /* readonly */
  9959. IntRect combinedScreenRect;
  9960. XMLFile defaultStyle;
  9961. /* readonly */
  9962. float derivedOpacity;
  9963. /* readonly */
  9964. uint dragButtonCombo;
  9965. /* readonly */
  9966. int dragButtonCount;
  9967. uint dragDropMode;
  9968. bool editable;
  9969. bool elementEventSender;
  9970. bool enableAnchor;
  9971. bool enabled;
  9972. /* readonly */
  9973. bool enabledSelf;
  9974. /* readonly */
  9975. bool fixedHeight;
  9976. /* readonly */
  9977. bool fixedSize;
  9978. /* readonly */
  9979. bool fixedWidth;
  9980. bool focus;
  9981. FocusMode focusMode;
  9982. int height;
  9983. HorizontalAlignment horizontalAlignment;
  9984. IntVector2 hoverOffset;
  9985. /* readonly */
  9986. bool hovering;
  9987. IntRect imageBorder;
  9988. IntRect imageRect;
  9989. int indent;
  9990. int indentSpacing;
  9991. /* readonly */
  9992. int indentWidth;
  9993. bool internal;
  9994. /* readonly */
  9995. BorderImage knob;
  9996. IntRect layoutBorder;
  9997. Vector2 layoutFlexScale;
  9998. LayoutMode layoutMode;
  9999. int layoutSpacing;
  10000. Vector2 maxAnchor;
  10001. int maxHeight;
  10002. IntVector2 maxOffset;
  10003. IntVector2 maxSize;
  10004. int maxWidth;
  10005. Vector2 minAnchor;
  10006. int minHeight;
  10007. IntVector2 minOffset;
  10008. IntVector2 minSize;
  10009. int minWidth;
  10010. String name;
  10011. /* readonly */
  10012. uint numAllChildren;
  10013. /* readonly */
  10014. uint numAttributes;
  10015. /* readonly */
  10016. uint numChildren;
  10017. ObjectAnimation objectAnimation;
  10018. float opacity;
  10019. Orientation orientation;
  10020. UIElement parent;
  10021. Vector2 pivot;
  10022. IntVector2 position;
  10023. int priority;
  10024. float range;
  10025. /* readonly */
  10026. int refs;
  10027. float repeatRate;
  10028. /* readonly */
  10029. UIElement root;
  10030. /* readonly */
  10031. IntVector2 screenPosition;
  10032. bool selected;
  10033. IntVector2 size;
  10034. bool sortChildren;
  10035. String style;
  10036. /* readonly */
  10037. Array<String> tags;
  10038. bool temporary;
  10039. Texture texture;
  10040. bool tiled;
  10041. TraversalMode traversalMode;
  10042. /* readonly */
  10043. StringHash type;
  10044. /* readonly */
  10045. String typeName;
  10046. bool useDerivedOpacity;
  10047. float value;
  10048. /* readonly */
  10049. VariantMap vars;
  10050. VerticalAlignment verticalAlignment;
  10051. bool visible;
  10052. /* readonly */
  10053. bool visibleEffective;
  10054. /* readonly */
  10055. int weakRefs;
  10056. int width;
  10057. };
  10058. class SmoothedTransform
  10059. {
  10060. // Methods:
  10061. void ApplyAttributes();
  10062. void DrawDebugGeometry(DebugRenderer, bool);
  10063. Variant GetAttribute(const String&) const;
  10064. ValueAnimation GetAttributeAnimation(const String&) const;
  10065. float GetAttributeAnimationSpeed(const String&) const;
  10066. float GetAttributeAnimationTime(const String&) const;
  10067. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10068. Variant GetAttributeDefault(const String&) const;
  10069. bool GetInterceptNetworkUpdate(const String&) const;
  10070. bool HasSubscribedToEvent(Object, const String&);
  10071. bool HasSubscribedToEvent(const String&);
  10072. bool Load(File, bool = false);
  10073. bool Load(VectorBuffer&, bool = false);
  10074. bool LoadJSON(const JSONValue&, bool = false);
  10075. bool LoadXML(const XMLElement&, bool = false);
  10076. void MarkNetworkUpdate() const;
  10077. void Remove();
  10078. void RemoveAttributeAnimation(const String&);
  10079. void RemoveInstanceDefault();
  10080. void RemoveObjectAnimation();
  10081. void ResetToDefault();
  10082. bool Save(File) const;
  10083. bool Save(VectorBuffer&) const;
  10084. bool SaveJSON(JSONValue&) const;
  10085. bool SaveXML(XMLElement&) const;
  10086. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10087. void SetAnimationTime(float);
  10088. bool SetAttribute(const String&, const Variant&);
  10089. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10090. void SetAttributeAnimationSpeed(const String&, float);
  10091. void SetAttributeAnimationTime(const String&, float);
  10092. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10093. void SetInterceptNetworkUpdate(const String&, bool);
  10094. void Update(float, float);
  10095. // Properties:
  10096. bool animationEnabled;
  10097. /* readonly */
  10098. Array<Variant> attributeDefaults;
  10099. /* readonly */
  10100. Array<AttributeInfo> attributeInfos;
  10101. Array<Variant> attributes;
  10102. /* readonly */
  10103. String category;
  10104. bool enabled;
  10105. /* readonly */
  10106. bool enabledEffective;
  10107. /* readonly */
  10108. uint id;
  10109. /* readonly */
  10110. bool inProgress;
  10111. /* readonly */
  10112. Node node;
  10113. /* readonly */
  10114. uint numAttributes;
  10115. ObjectAnimation objectAnimation;
  10116. /* readonly */
  10117. int refs;
  10118. Vector3 targetPosition;
  10119. Quaternion targetRotation;
  10120. Vector3 targetWorldPosition;
  10121. Quaternion targetWorldRotation;
  10122. bool temporary;
  10123. /* readonly */
  10124. StringHash type;
  10125. /* readonly */
  10126. String typeName;
  10127. /* readonly */
  10128. int weakRefs;
  10129. };
  10130. class Sound
  10131. {
  10132. // Methods:
  10133. bool HasSubscribedToEvent(Object, const String&);
  10134. bool HasSubscribedToEvent(const String&);
  10135. bool Load(File);
  10136. bool Load(VectorBuffer&);
  10137. bool Load(const String&);
  10138. bool Save(File) const;
  10139. bool Save(VectorBuffer&) const;
  10140. bool Save(const String&) const;
  10141. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10142. // Properties:
  10143. /* readonly */
  10144. String category;
  10145. /* readonly */
  10146. bool compressed;
  10147. /* readonly */
  10148. float frequency;
  10149. /* readonly */
  10150. float length;
  10151. bool looped;
  10152. /* readonly */
  10153. uint memoryUse;
  10154. String name;
  10155. /* readonly */
  10156. int refs;
  10157. /* readonly */
  10158. uint sampleSize;
  10159. /* readonly */
  10160. bool sixteenBit;
  10161. /* readonly */
  10162. bool stereo;
  10163. /* readonly */
  10164. StringHash type;
  10165. /* readonly */
  10166. String typeName;
  10167. /* readonly */
  10168. uint useTimer;
  10169. /* readonly */
  10170. int weakRefs;
  10171. };
  10172. class SoundListener
  10173. {
  10174. // Methods:
  10175. void ApplyAttributes();
  10176. void DrawDebugGeometry(DebugRenderer, bool);
  10177. Variant GetAttribute(const String&) const;
  10178. ValueAnimation GetAttributeAnimation(const String&) const;
  10179. float GetAttributeAnimationSpeed(const String&) const;
  10180. float GetAttributeAnimationTime(const String&) const;
  10181. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10182. Variant GetAttributeDefault(const String&) const;
  10183. bool GetInterceptNetworkUpdate(const String&) const;
  10184. bool HasSubscribedToEvent(Object, const String&);
  10185. bool HasSubscribedToEvent(const String&);
  10186. bool Load(File, bool = false);
  10187. bool Load(VectorBuffer&, bool = false);
  10188. bool LoadJSON(const JSONValue&, bool = false);
  10189. bool LoadXML(const XMLElement&, bool = false);
  10190. void MarkNetworkUpdate() const;
  10191. void Remove();
  10192. void RemoveAttributeAnimation(const String&);
  10193. void RemoveInstanceDefault();
  10194. void RemoveObjectAnimation();
  10195. void ResetToDefault();
  10196. bool Save(File) const;
  10197. bool Save(VectorBuffer&) const;
  10198. bool SaveJSON(JSONValue&) const;
  10199. bool SaveXML(XMLElement&) const;
  10200. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10201. void SetAnimationTime(float);
  10202. bool SetAttribute(const String&, const Variant&);
  10203. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10204. void SetAttributeAnimationSpeed(const String&, float);
  10205. void SetAttributeAnimationTime(const String&, float);
  10206. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10207. void SetInterceptNetworkUpdate(const String&, bool);
  10208. // Properties:
  10209. bool animationEnabled;
  10210. /* readonly */
  10211. Array<Variant> attributeDefaults;
  10212. /* readonly */
  10213. Array<AttributeInfo> attributeInfos;
  10214. Array<Variant> attributes;
  10215. /* readonly */
  10216. String category;
  10217. bool enabled;
  10218. /* readonly */
  10219. bool enabledEffective;
  10220. /* readonly */
  10221. uint id;
  10222. /* readonly */
  10223. Node node;
  10224. /* readonly */
  10225. uint numAttributes;
  10226. ObjectAnimation objectAnimation;
  10227. /* readonly */
  10228. int refs;
  10229. bool temporary;
  10230. /* readonly */
  10231. StringHash type;
  10232. /* readonly */
  10233. String typeName;
  10234. /* readonly */
  10235. int weakRefs;
  10236. };
  10237. class SoundSource
  10238. {
  10239. // Methods:
  10240. void ApplyAttributes();
  10241. void DrawDebugGeometry(DebugRenderer, bool);
  10242. Variant GetAttribute(const String&) const;
  10243. ValueAnimation GetAttributeAnimation(const String&) const;
  10244. float GetAttributeAnimationSpeed(const String&) const;
  10245. float GetAttributeAnimationTime(const String&) const;
  10246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10247. Variant GetAttributeDefault(const String&) const;
  10248. bool GetInterceptNetworkUpdate(const String&) const;
  10249. bool HasSubscribedToEvent(Object, const String&);
  10250. bool HasSubscribedToEvent(const String&);
  10251. bool Load(File, bool = false);
  10252. bool Load(VectorBuffer&, bool = false);
  10253. bool LoadJSON(const JSONValue&, bool = false);
  10254. bool LoadXML(const XMLElement&, bool = false);
  10255. void MarkNetworkUpdate() const;
  10256. void Play(Sound);
  10257. void Play(Sound, float);
  10258. void Play(Sound, float, float);
  10259. void Play(Sound, float, float, float);
  10260. void Remove();
  10261. void RemoveAttributeAnimation(const String&);
  10262. void RemoveInstanceDefault();
  10263. void RemoveObjectAnimation();
  10264. void ResetToDefault();
  10265. bool Save(File) const;
  10266. bool Save(VectorBuffer&) const;
  10267. bool SaveJSON(JSONValue&) const;
  10268. bool SaveXML(XMLElement&) const;
  10269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10270. void SetAnimationTime(float);
  10271. bool SetAttribute(const String&, const Variant&);
  10272. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10273. void SetAttributeAnimationSpeed(const String&, float);
  10274. void SetAttributeAnimationTime(const String&, float);
  10275. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10276. void SetInterceptNetworkUpdate(const String&, bool);
  10277. void Stop();
  10278. // Properties:
  10279. bool animationEnabled;
  10280. /* readonly */
  10281. float attenuation;
  10282. /* readonly */
  10283. Array<Variant> attributeDefaults;
  10284. /* readonly */
  10285. Array<AttributeInfo> attributeInfos;
  10286. Array<Variant> attributes;
  10287. AutoRemoveMode autoRemoveMode;
  10288. /* readonly */
  10289. String category;
  10290. bool enabled;
  10291. /* readonly */
  10292. bool enabledEffective;
  10293. float frequency;
  10294. float gain;
  10295. /* readonly */
  10296. uint id;
  10297. /* readonly */
  10298. Node node;
  10299. /* readonly */
  10300. uint numAttributes;
  10301. ObjectAnimation objectAnimation;
  10302. float panning;
  10303. /* readonly */
  10304. bool playing;
  10305. /* readonly */
  10306. int refs;
  10307. /* readonly */
  10308. Sound sound;
  10309. String soundType;
  10310. bool temporary;
  10311. /* readonly */
  10312. float timePosition;
  10313. /* readonly */
  10314. StringHash type;
  10315. /* readonly */
  10316. String typeName;
  10317. /* readonly */
  10318. int weakRefs;
  10319. };
  10320. class SoundSource3D
  10321. {
  10322. // Methods:
  10323. void ApplyAttributes();
  10324. void DrawDebugGeometry(DebugRenderer, bool);
  10325. Variant GetAttribute(const String&) const;
  10326. ValueAnimation GetAttributeAnimation(const String&) const;
  10327. float GetAttributeAnimationSpeed(const String&) const;
  10328. float GetAttributeAnimationTime(const String&) const;
  10329. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10330. Variant GetAttributeDefault(const String&) const;
  10331. bool GetInterceptNetworkUpdate(const String&) const;
  10332. bool HasSubscribedToEvent(Object, const String&);
  10333. bool HasSubscribedToEvent(const String&);
  10334. bool Load(File, bool = false);
  10335. bool Load(VectorBuffer&, bool = false);
  10336. bool LoadJSON(const JSONValue&, bool = false);
  10337. bool LoadXML(const XMLElement&, bool = false);
  10338. void MarkNetworkUpdate() const;
  10339. void Play(Sound);
  10340. void Play(Sound, float);
  10341. void Play(Sound, float, float);
  10342. void Play(Sound, float, float, float);
  10343. void Remove();
  10344. void RemoveAttributeAnimation(const String&);
  10345. void RemoveInstanceDefault();
  10346. void RemoveObjectAnimation();
  10347. void ResetToDefault();
  10348. bool Save(File) const;
  10349. bool Save(VectorBuffer&) const;
  10350. bool SaveJSON(JSONValue&) const;
  10351. bool SaveXML(XMLElement&) const;
  10352. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10353. void SetAngleAttenuation(float, float);
  10354. void SetAnimationTime(float);
  10355. bool SetAttribute(const String&, const Variant&);
  10356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10357. void SetAttributeAnimationSpeed(const String&, float);
  10358. void SetAttributeAnimationTime(const String&, float);
  10359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10360. void SetDistanceAttenuation(float, float, float);
  10361. void SetInterceptNetworkUpdate(const String&, bool);
  10362. void Stop();
  10363. // Properties:
  10364. bool animationEnabled;
  10365. /* readonly */
  10366. float attenuation;
  10367. /* readonly */
  10368. Array<Variant> attributeDefaults;
  10369. /* readonly */
  10370. Array<AttributeInfo> attributeInfos;
  10371. Array<Variant> attributes;
  10372. AutoRemoveMode autoRemoveMode;
  10373. /* readonly */
  10374. String category;
  10375. bool enabled;
  10376. /* readonly */
  10377. bool enabledEffective;
  10378. float farDistance;
  10379. float frequency;
  10380. float gain;
  10381. /* readonly */
  10382. uint id;
  10383. float innerAngle;
  10384. float nearDistance;
  10385. /* readonly */
  10386. Node node;
  10387. /* readonly */
  10388. uint numAttributes;
  10389. ObjectAnimation objectAnimation;
  10390. float outerAngle;
  10391. float panning;
  10392. /* readonly */
  10393. bool playing;
  10394. /* readonly */
  10395. int refs;
  10396. float rolloffFactor;
  10397. /* readonly */
  10398. Sound sound;
  10399. String soundType;
  10400. bool temporary;
  10401. /* readonly */
  10402. float timePosition;
  10403. /* readonly */
  10404. StringHash type;
  10405. /* readonly */
  10406. String typeName;
  10407. /* readonly */
  10408. int weakRefs;
  10409. };
  10410. class Sphere
  10411. {
  10412. // Methods:
  10413. void Clear();
  10414. void Define(const BoundingBox&);
  10415. void Define(const Frustum&);
  10416. void Define(const Polyhedron&);
  10417. void Define(const Sphere&);
  10418. void Define(const Vector3&, float);
  10419. bool Defined() const;
  10420. float Distance(const Vector3&) const;
  10421. Intersection IsInside(const BoundingBox&) const;
  10422. Intersection IsInside(const Sphere&) const;
  10423. Intersection IsInside(const Vector3&) const;
  10424. Intersection IsInsideFast(const BoundingBox&) const;
  10425. Intersection IsInsideFast(const Sphere&) const;
  10426. void Merge(const BoundingBox&);
  10427. void Merge(const Frustum&);
  10428. void Merge(const Sphere&);
  10429. void Merge(const Vector3&);
  10430. // Properties:
  10431. Vector3 center;
  10432. float radius;
  10433. };
  10434. class Spline
  10435. {
  10436. // Methods:
  10437. void AddKnot(const Variant&);
  10438. void AddKnot(const Variant&, uint);
  10439. void Clear();
  10440. Variant GetPoint(float);
  10441. void RemoveKnot();
  10442. void RemoveKnot(uint);
  10443. // Properties:
  10444. InterpolationMode interpolationMode;
  10445. Array<Variant> knot;
  10446. Array<Variant> knots;
  10447. };
  10448. class SplinePath
  10449. {
  10450. // Methods:
  10451. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10452. void ApplyAttributes();
  10453. void ClearControlPoints();
  10454. void DrawDebugGeometry(DebugRenderer, bool);
  10455. Variant GetAttribute(const String&) const;
  10456. ValueAnimation GetAttributeAnimation(const String&) const;
  10457. float GetAttributeAnimationSpeed(const String&) const;
  10458. float GetAttributeAnimationTime(const String&) const;
  10459. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10460. Variant GetAttributeDefault(const String&) const;
  10461. bool GetInterceptNetworkUpdate(const String&) const;
  10462. Vector3 GetPoint(float) const;
  10463. Vector3 GetPosition() const;
  10464. bool HasSubscribedToEvent(Object, const String&);
  10465. bool HasSubscribedToEvent(const String&);
  10466. bool Load(File, bool = false);
  10467. bool Load(VectorBuffer&, bool = false);
  10468. bool LoadJSON(const JSONValue&, bool = false);
  10469. bool LoadXML(const XMLElement&, bool = false);
  10470. void MarkNetworkUpdate() const;
  10471. void Move(float);
  10472. void Remove();
  10473. void RemoveAttributeAnimation(const String&);
  10474. void RemoveControlPoint(Node);
  10475. void RemoveInstanceDefault();
  10476. void RemoveObjectAnimation();
  10477. void Reset();
  10478. void ResetToDefault();
  10479. bool Save(File) const;
  10480. bool Save(VectorBuffer&) const;
  10481. bool SaveJSON(JSONValue&) const;
  10482. bool SaveXML(XMLElement&) const;
  10483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10484. void SetAnimationTime(float);
  10485. bool SetAttribute(const String&, const Variant&);
  10486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10487. void SetAttributeAnimationSpeed(const String&, float);
  10488. void SetAttributeAnimationTime(const String&, float);
  10489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10490. void SetInterceptNetworkUpdate(const String&, bool);
  10491. void SetPosition(float);
  10492. // Properties:
  10493. bool animationEnabled;
  10494. /* readonly */
  10495. Array<Variant> attributeDefaults;
  10496. /* readonly */
  10497. Array<AttributeInfo> attributeInfos;
  10498. Array<Variant> attributes;
  10499. /* readonly */
  10500. String category;
  10501. Node controlledNode;
  10502. bool enabled;
  10503. /* readonly */
  10504. bool enabledEffective;
  10505. /* readonly */
  10506. uint id;
  10507. InterpolationMode interpolationMode;
  10508. /* readonly */
  10509. bool isFinished;
  10510. /* readonly */
  10511. float length;
  10512. /* readonly */
  10513. Node node;
  10514. /* readonly */
  10515. uint numAttributes;
  10516. ObjectAnimation objectAnimation;
  10517. /* readonly */
  10518. int refs;
  10519. float speed;
  10520. bool temporary;
  10521. /* readonly */
  10522. StringHash type;
  10523. /* readonly */
  10524. String typeName;
  10525. /* readonly */
  10526. int weakRefs;
  10527. };
  10528. class Sprite
  10529. {
  10530. // Methods:
  10531. void AddChild(UIElement);
  10532. void AddTag(const String&);
  10533. void AddTags(const String&, int8 = ';');
  10534. void ApplyAttributes();
  10535. void BringToFront();
  10536. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10537. void DisableLayoutUpdate();
  10538. IntVector2 ElementToScreen(const IntVector2&);
  10539. void EnableLayoutUpdate();
  10540. uint FindChild(UIElement) const;
  10541. Variant GetAttribute(const String&) const;
  10542. ValueAnimation GetAttributeAnimation(const String&) const;
  10543. float GetAttributeAnimationSpeed(const String&) const;
  10544. float GetAttributeAnimationTime(const String&) const;
  10545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10546. Variant GetAttributeDefault(const String&) const;
  10547. UIElement GetChild(const String&, bool = false) const;
  10548. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10549. Array<UIElement> GetChildren(bool = false) const;
  10550. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10551. UIElement GetElementEventSender() const;
  10552. bool GetInterceptNetworkUpdate(const String&) const;
  10553. uint GetNumChildren(bool) const;
  10554. bool HasSubscribedToEvent(Object, const String&);
  10555. bool HasSubscribedToEvent(const String&);
  10556. bool HasTag(const String&) const;
  10557. void InsertChild(uint, UIElement);
  10558. bool IsInside(IntVector2, bool);
  10559. bool IsInsideCombined(IntVector2, bool);
  10560. bool Load(File, bool = false);
  10561. bool Load(VectorBuffer&, bool = false);
  10562. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10563. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10564. bool LoadJSON(const JSONValue&, bool = false);
  10565. bool LoadXML(File);
  10566. bool LoadXML(VectorBuffer&);
  10567. bool LoadXML(XMLFile, XMLFile);
  10568. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10569. bool LoadXML(const XMLElement&, bool = false);
  10570. void MarkNetworkUpdate() const;
  10571. void Remove();
  10572. void RemoveAllChildren();
  10573. void RemoveAllTags();
  10574. void RemoveAttributeAnimation(const String&);
  10575. void RemoveChild(UIElement, uint = 0);
  10576. void RemoveChild(uint);
  10577. void RemoveInstanceDefault();
  10578. void RemoveObjectAnimation();
  10579. bool RemoveTag(const String&);
  10580. void ResetDeepEnabled();
  10581. void ResetToDefault();
  10582. bool Save(File) const;
  10583. bool Save(VectorBuffer&) const;
  10584. bool SaveJSON(JSONValue&) const;
  10585. bool SaveXML(File, const String& = "\t");
  10586. bool SaveXML(VectorBuffer&, const String& = "\t");
  10587. bool SaveXML(XMLElement&) const;
  10588. IntVector2 ScreenToElement(const IntVector2&);
  10589. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10590. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10591. void SetAnimationTime(float);
  10592. bool SetAttribute(const String&, const Variant&);
  10593. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10594. void SetAttributeAnimationSpeed(const String&, float);
  10595. void SetAttributeAnimationTime(const String&, float);
  10596. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10597. void SetDeepEnabled(bool);
  10598. void SetEnabledRecursive(bool);
  10599. void SetFixedHeight(int);
  10600. void SetFixedSize(int, int);
  10601. void SetFixedWidth(int);
  10602. void SetFullImageRect();
  10603. void SetHotSpot(int, int);
  10604. void SetInterceptNetworkUpdate(const String&, bool);
  10605. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10606. void SetMaxAnchor(float, float);
  10607. void SetMaxSize(int, int);
  10608. void SetMinAnchor(float, float);
  10609. void SetMinSize(int, int);
  10610. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10611. void SetPivot(float, float);
  10612. void SetPosition(float, float);
  10613. void SetScale(float);
  10614. void SetScale(float, float);
  10615. void SetSize(int, int);
  10616. bool SetStyle(const String&, XMLFile = null);
  10617. bool SetStyle(const XMLElement&);
  10618. bool SetStyleAuto(XMLFile = null);
  10619. void UpdateLayout();
  10620. const Variant& GetVar(const StringHash&);
  10621. // Properties:
  10622. bool animationEnabled;
  10623. /* readonly */
  10624. Array<Variant> attributeDefaults;
  10625. /* readonly */
  10626. Array<AttributeInfo> attributeInfos;
  10627. Array<Variant> attributes;
  10628. BlendMode blendMode;
  10629. bool bringToBack;
  10630. bool bringToFront;
  10631. /* readonly */
  10632. String category;
  10633. /* readonly */
  10634. IntVector2 childOffset;
  10635. /* readonly */
  10636. Array<UIElement> children;
  10637. IntRect clipBorder;
  10638. bool clipChildren;
  10639. /* writeonly */
  10640. Color color;
  10641. /* readonly */
  10642. bool colorGradient;
  10643. Array<Color> colors;
  10644. /* readonly */
  10645. IntRect combinedScreenRect;
  10646. XMLFile defaultStyle;
  10647. /* readonly */
  10648. float derivedOpacity;
  10649. /* readonly */
  10650. uint dragButtonCombo;
  10651. /* readonly */
  10652. int dragButtonCount;
  10653. uint dragDropMode;
  10654. bool editable;
  10655. bool elementEventSender;
  10656. bool enableAnchor;
  10657. bool enabled;
  10658. /* readonly */
  10659. bool enabledSelf;
  10660. /* readonly */
  10661. bool fixedHeight;
  10662. /* readonly */
  10663. bool fixedSize;
  10664. /* readonly */
  10665. bool fixedWidth;
  10666. bool focus;
  10667. FocusMode focusMode;
  10668. int height;
  10669. HorizontalAlignment horizontalAlignment;
  10670. IntVector2 hotSpot;
  10671. /* readonly */
  10672. bool hovering;
  10673. IntRect imageRect;
  10674. int indent;
  10675. int indentSpacing;
  10676. /* readonly */
  10677. int indentWidth;
  10678. bool internal;
  10679. IntRect layoutBorder;
  10680. Vector2 layoutFlexScale;
  10681. LayoutMode layoutMode;
  10682. int layoutSpacing;
  10683. Vector2 maxAnchor;
  10684. int maxHeight;
  10685. IntVector2 maxOffset;
  10686. IntVector2 maxSize;
  10687. int maxWidth;
  10688. Vector2 minAnchor;
  10689. int minHeight;
  10690. IntVector2 minOffset;
  10691. IntVector2 minSize;
  10692. int minWidth;
  10693. String name;
  10694. /* readonly */
  10695. uint numAllChildren;
  10696. /* readonly */
  10697. uint numAttributes;
  10698. /* readonly */
  10699. uint numChildren;
  10700. ObjectAnimation objectAnimation;
  10701. float opacity;
  10702. UIElement parent;
  10703. Vector2 pivot;
  10704. Vector2 position;
  10705. int priority;
  10706. /* readonly */
  10707. int refs;
  10708. /* readonly */
  10709. UIElement root;
  10710. float rotation;
  10711. Vector2 scale;
  10712. /* readonly */
  10713. IntVector2 screenPosition;
  10714. bool selected;
  10715. IntVector2 size;
  10716. bool sortChildren;
  10717. String style;
  10718. /* readonly */
  10719. Array<String> tags;
  10720. bool temporary;
  10721. Texture texture;
  10722. TraversalMode traversalMode;
  10723. /* readonly */
  10724. StringHash type;
  10725. /* readonly */
  10726. String typeName;
  10727. bool useDerivedOpacity;
  10728. /* readonly */
  10729. VariantMap vars;
  10730. VerticalAlignment verticalAlignment;
  10731. bool visible;
  10732. /* readonly */
  10733. bool visibleEffective;
  10734. /* readonly */
  10735. int weakRefs;
  10736. int width;
  10737. };
  10738. class Sprite2D
  10739. {
  10740. // Methods:
  10741. bool HasSubscribedToEvent(Object, const String&);
  10742. bool HasSubscribedToEvent(const String&);
  10743. bool Load(File);
  10744. bool Load(VectorBuffer&);
  10745. bool Load(const String&);
  10746. bool Save(File) const;
  10747. bool Save(VectorBuffer&) const;
  10748. bool Save(const String&) const;
  10749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10750. // Properties:
  10751. /* readonly */
  10752. String category;
  10753. Vector2 hotSpot;
  10754. /* readonly */
  10755. uint memoryUse;
  10756. String name;
  10757. IntVector2 offset;
  10758. IntRect rectangle;
  10759. /* readonly */
  10760. int refs;
  10761. Texture2D texture;
  10762. float textureEdgeOffset;
  10763. /* readonly */
  10764. StringHash type;
  10765. /* readonly */
  10766. String typeName;
  10767. /* readonly */
  10768. uint useTimer;
  10769. /* readonly */
  10770. int weakRefs;
  10771. };
  10772. class SpriteSheet2D
  10773. {
  10774. // Methods:
  10775. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10776. Sprite2D GetSprite(const String&);
  10777. bool HasSubscribedToEvent(Object, const String&);
  10778. bool HasSubscribedToEvent(const String&);
  10779. bool Load(File);
  10780. bool Load(VectorBuffer&);
  10781. bool Load(const String&);
  10782. bool Save(File) const;
  10783. bool Save(VectorBuffer&) const;
  10784. bool Save(const String&) const;
  10785. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10786. // Properties:
  10787. /* readonly */
  10788. String category;
  10789. /* readonly */
  10790. uint memoryUse;
  10791. String name;
  10792. /* readonly */
  10793. int refs;
  10794. Texture2D texture;
  10795. /* readonly */
  10796. StringHash type;
  10797. /* readonly */
  10798. String typeName;
  10799. /* readonly */
  10800. uint useTimer;
  10801. /* readonly */
  10802. int weakRefs;
  10803. };
  10804. class StaticModel
  10805. {
  10806. // Methods:
  10807. void ApplyAttributes();
  10808. void ApplyMaterialList(const String& = String ( ));
  10809. void DrawDebugGeometry(DebugRenderer, bool);
  10810. Variant GetAttribute(const String&) const;
  10811. ValueAnimation GetAttributeAnimation(const String&) const;
  10812. float GetAttributeAnimationSpeed(const String&) const;
  10813. float GetAttributeAnimationTime(const String&) const;
  10814. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10815. Variant GetAttributeDefault(const String&) const;
  10816. bool GetInterceptNetworkUpdate(const String&) const;
  10817. bool HasSubscribedToEvent(Object, const String&);
  10818. bool HasSubscribedToEvent(const String&);
  10819. bool IsInView(Camera) const;
  10820. bool IsInside(const Vector3&) const;
  10821. bool IsInsideLocal(const Vector3&) const;
  10822. bool Load(File, bool = false);
  10823. bool Load(VectorBuffer&, bool = false);
  10824. bool LoadJSON(const JSONValue&, bool = false);
  10825. bool LoadXML(const XMLElement&, bool = false);
  10826. void MarkNetworkUpdate() const;
  10827. void Remove();
  10828. void RemoveAttributeAnimation(const String&);
  10829. void RemoveInstanceDefault();
  10830. void RemoveObjectAnimation();
  10831. void ResetToDefault();
  10832. bool Save(File) const;
  10833. bool Save(VectorBuffer&) const;
  10834. bool SaveJSON(JSONValue&) const;
  10835. bool SaveXML(XMLElement&) const;
  10836. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10837. void SetAnimationTime(float);
  10838. bool SetAttribute(const String&, const Variant&);
  10839. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10840. void SetAttributeAnimationSpeed(const String&, float);
  10841. void SetAttributeAnimationTime(const String&, float);
  10842. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10843. void SetInterceptNetworkUpdate(const String&, bool);
  10844. // Properties:
  10845. bool animationEnabled;
  10846. /* readonly */
  10847. Array<Variant> attributeDefaults;
  10848. /* readonly */
  10849. Array<AttributeInfo> attributeInfos;
  10850. Array<Variant> attributes;
  10851. /* readonly */
  10852. BoundingBox boundingBox;
  10853. bool castShadows;
  10854. /* readonly */
  10855. String category;
  10856. float drawDistance;
  10857. bool enabled;
  10858. /* readonly */
  10859. bool enabledEffective;
  10860. /* readonly */
  10861. uint id;
  10862. /* readonly */
  10863. bool inView;
  10864. uint lightMask;
  10865. float lodBias;
  10866. /* writeonly */
  10867. Material material;
  10868. Array<Material> materials;
  10869. uint maxLights;
  10870. Model model;
  10871. /* readonly */
  10872. Node node;
  10873. /* readonly */
  10874. uint numAttributes;
  10875. /* readonly */
  10876. uint numGeometries;
  10877. ObjectAnimation objectAnimation;
  10878. bool occludee;
  10879. bool occluder;
  10880. uint occlusionLodLevel;
  10881. /* readonly */
  10882. int refs;
  10883. float shadowDistance;
  10884. uint shadowMask;
  10885. bool temporary;
  10886. /* readonly */
  10887. StringHash type;
  10888. /* readonly */
  10889. String typeName;
  10890. uint viewMask;
  10891. /* readonly */
  10892. int weakRefs;
  10893. /* readonly */
  10894. BoundingBox worldBoundingBox;
  10895. uint zoneMask;
  10896. };
  10897. class StaticModelGroup
  10898. {
  10899. // Methods:
  10900. void AddInstanceNode(Node);
  10901. void ApplyAttributes();
  10902. void ApplyMaterialList(const String& = String ( ));
  10903. void DrawDebugGeometry(DebugRenderer, bool);
  10904. Variant GetAttribute(const String&) const;
  10905. ValueAnimation GetAttributeAnimation(const String&) const;
  10906. float GetAttributeAnimationSpeed(const String&) const;
  10907. float GetAttributeAnimationTime(const String&) const;
  10908. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10909. Variant GetAttributeDefault(const String&) const;
  10910. bool GetInterceptNetworkUpdate(const String&) const;
  10911. bool HasSubscribedToEvent(Object, const String&);
  10912. bool HasSubscribedToEvent(const String&);
  10913. bool IsInView(Camera) const;
  10914. bool Load(File, bool = false);
  10915. bool Load(VectorBuffer&, bool = false);
  10916. bool LoadJSON(const JSONValue&, bool = false);
  10917. bool LoadXML(const XMLElement&, bool = false);
  10918. void MarkNetworkUpdate() const;
  10919. void Remove();
  10920. void RemoveAllInstanceNodes();
  10921. void RemoveAttributeAnimation(const String&);
  10922. void RemoveInstanceDefault();
  10923. void RemoveInstanceNode(Node);
  10924. void RemoveObjectAnimation();
  10925. void ResetToDefault();
  10926. bool Save(File) const;
  10927. bool Save(VectorBuffer&) const;
  10928. bool SaveJSON(JSONValue&) const;
  10929. bool SaveXML(XMLElement&) const;
  10930. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10931. void SetAnimationTime(float);
  10932. bool SetAttribute(const String&, const Variant&);
  10933. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10934. void SetAttributeAnimationSpeed(const String&, float);
  10935. void SetAttributeAnimationTime(const String&, float);
  10936. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10937. void SetInterceptNetworkUpdate(const String&, bool);
  10938. // Properties:
  10939. bool animationEnabled;
  10940. /* readonly */
  10941. Array<Variant> attributeDefaults;
  10942. /* readonly */
  10943. Array<AttributeInfo> attributeInfos;
  10944. Array<Variant> attributes;
  10945. /* readonly */
  10946. BoundingBox boundingBox;
  10947. bool castShadows;
  10948. /* readonly */
  10949. String category;
  10950. float drawDistance;
  10951. bool enabled;
  10952. /* readonly */
  10953. bool enabledEffective;
  10954. /* readonly */
  10955. uint id;
  10956. /* readonly */
  10957. bool inView;
  10958. /* readonly */
  10959. Array<Node> instanceNodes;
  10960. uint lightMask;
  10961. float lodBias;
  10962. /* writeonly */
  10963. Material material;
  10964. Array<Material> materials;
  10965. uint maxLights;
  10966. Model model;
  10967. /* readonly */
  10968. Node node;
  10969. /* readonly */
  10970. uint numAttributes;
  10971. /* readonly */
  10972. uint numGeometries;
  10973. /* readonly */
  10974. uint numInstanceNodes;
  10975. ObjectAnimation objectAnimation;
  10976. bool occludee;
  10977. bool occluder;
  10978. uint occlusionLodLevel;
  10979. /* readonly */
  10980. int refs;
  10981. float shadowDistance;
  10982. uint shadowMask;
  10983. bool temporary;
  10984. /* readonly */
  10985. StringHash type;
  10986. /* readonly */
  10987. String typeName;
  10988. uint viewMask;
  10989. /* readonly */
  10990. int weakRefs;
  10991. /* readonly */
  10992. BoundingBox worldBoundingBox;
  10993. /* readonly */
  10994. Zone zone;
  10995. uint zoneMask;
  10996. };
  10997. class StaticSprite2D
  10998. {
  10999. // Methods:
  11000. void ApplyAttributes();
  11001. void DrawDebugGeometry(DebugRenderer, bool);
  11002. Variant GetAttribute(const String&) const;
  11003. ValueAnimation GetAttributeAnimation(const String&) const;
  11004. float GetAttributeAnimationSpeed(const String&) const;
  11005. float GetAttributeAnimationTime(const String&) const;
  11006. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11007. Variant GetAttributeDefault(const String&) const;
  11008. bool GetInterceptNetworkUpdate(const String&) const;
  11009. bool HasSubscribedToEvent(Object, const String&);
  11010. bool HasSubscribedToEvent(const String&);
  11011. bool IsInView(Camera) const;
  11012. bool Load(File, bool = false);
  11013. bool Load(VectorBuffer&, bool = false);
  11014. bool LoadJSON(const JSONValue&, bool = false);
  11015. bool LoadXML(const XMLElement&, bool = false);
  11016. void MarkNetworkUpdate() const;
  11017. void Remove();
  11018. void RemoveAttributeAnimation(const String&);
  11019. void RemoveInstanceDefault();
  11020. void RemoveObjectAnimation();
  11021. void ResetToDefault();
  11022. bool Save(File) const;
  11023. bool Save(VectorBuffer&) const;
  11024. bool SaveJSON(JSONValue&) const;
  11025. bool SaveXML(XMLElement&) const;
  11026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11027. void SetAnimationTime(float);
  11028. bool SetAttribute(const String&, const Variant&);
  11029. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11030. void SetAttributeAnimationSpeed(const String&, float);
  11031. void SetAttributeAnimationTime(const String&, float);
  11032. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11033. void SetFlip(bool, bool);
  11034. void SetInterceptNetworkUpdate(const String&, bool);
  11035. // Properties:
  11036. float alpha;
  11037. bool animationEnabled;
  11038. /* readonly */
  11039. Array<Variant> attributeDefaults;
  11040. /* readonly */
  11041. Array<AttributeInfo> attributeInfos;
  11042. Array<Variant> attributes;
  11043. BlendMode blendMode;
  11044. /* readonly */
  11045. BoundingBox boundingBox;
  11046. bool castShadows;
  11047. /* readonly */
  11048. String category;
  11049. Color color;
  11050. Material customMaterial;
  11051. float drawDistance;
  11052. Rect drawRect;
  11053. bool enabled;
  11054. /* readonly */
  11055. bool enabledEffective;
  11056. bool flipX;
  11057. bool flipY;
  11058. Vector2 hotSpot;
  11059. /* readonly */
  11060. uint id;
  11061. /* readonly */
  11062. bool inView;
  11063. int layer;
  11064. uint lightMask;
  11065. float lodBias;
  11066. uint maxLights;
  11067. /* readonly */
  11068. Node node;
  11069. /* readonly */
  11070. uint numAttributes;
  11071. ObjectAnimation objectAnimation;
  11072. bool occludee;
  11073. bool occluder;
  11074. int orderInLayer;
  11075. /* readonly */
  11076. int refs;
  11077. float shadowDistance;
  11078. uint shadowMask;
  11079. Sprite2D sprite;
  11080. bool temporary;
  11081. Rect textureRect;
  11082. /* readonly */
  11083. StringHash type;
  11084. /* readonly */
  11085. String typeName;
  11086. bool useDrawRect;
  11087. bool useHotSpot;
  11088. bool useTextureRect;
  11089. uint viewMask;
  11090. /* readonly */
  11091. int weakRefs;
  11092. /* readonly */
  11093. BoundingBox worldBoundingBox;
  11094. uint zoneMask;
  11095. };
  11096. class String
  11097. {
  11098. // Methods:
  11099. void AppendUTF8(uint);
  11100. uint AtUTF8(uint) const;
  11101. uint ByteOffsetUTF8(uint) const;
  11102. void Clear();
  11103. int Compare(const String&, bool = true) const;
  11104. bool Contains(const String&, bool = true) const;
  11105. bool Contains(uint8, bool = true) const;
  11106. bool EndsWith(const String&, bool = true) const;
  11107. uint Find(const String&, uint = 0, bool = true) const;
  11108. uint Find(uint8, uint = 0, bool = true) const;
  11109. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11110. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11111. void Join(Array<String>&, const String&);
  11112. uint NextUTF8Char(uint&) const;
  11113. void Replace(const String&, const String&, bool = true);
  11114. void Replace(uint8, uint8, bool = true);
  11115. void ReplaceUTF8(uint, uint);
  11116. String Replaced(const String&, const String&, bool = true) const;
  11117. String Replaced(uint8, uint8, bool = true) const;
  11118. void Resize(uint);
  11119. void SetUTF8FromLatin1(const String&);
  11120. Array<String> Split(uint8, bool = false) const;
  11121. bool StartsWith(const String&, bool = true) const;
  11122. String Substring(uint) const;
  11123. String Substring(uint, uint) const;
  11124. String SubstringUTF8(uint) const;
  11125. String SubstringUTF8(uint, uint) const;
  11126. bool ToBool() const;
  11127. Color ToColor() const;
  11128. double ToDouble() const;
  11129. float ToFloat() const;
  11130. int ToInt(int = 10) const;
  11131. IntRect ToIntRect() const;
  11132. IntVector2 ToIntVector2() const;
  11133. IntVector3 ToIntVector3() const;
  11134. String ToLower() const;
  11135. Matrix3 ToMatrix3() const;
  11136. Matrix3x4 ToMatrix3x4() const;
  11137. Matrix4 ToMatrix4() const;
  11138. Quaternion ToQuaternion() const;
  11139. uint ToUInt(int = 10) const;
  11140. String ToUpper() const;
  11141. Vector2 ToVector2() const;
  11142. Vector3 ToVector3() const;
  11143. Vector4 ToVector4(bool = false) const;
  11144. Variant ToVectorVariant() const;
  11145. String Trimmed() const;
  11146. // Properties:
  11147. /* readonly */
  11148. bool empty;
  11149. /* readonly */
  11150. uint length;
  11151. /* readonly */
  11152. uint utf8Length;
  11153. };
  11154. class StringHash
  11155. {
  11156. // Methods:
  11157. String ToString() const;
  11158. // Properties:
  11159. /* readonly */
  11160. uint value;
  11161. };
  11162. class Technique
  11163. {
  11164. // Methods:
  11165. Technique Clone(const String& = String ( )) const;
  11166. Pass CreatePass(const String&);
  11167. Pass GetPass(const String&);
  11168. Pass GetSupportedPass(const String&);
  11169. bool HasPass(const String&) const;
  11170. bool HasSubscribedToEvent(Object, const String&);
  11171. bool HasSubscribedToEvent(const String&);
  11172. bool Load(File);
  11173. bool Load(VectorBuffer&);
  11174. bool Load(const String&);
  11175. void RemovePass(const String&);
  11176. bool Save(File) const;
  11177. bool Save(VectorBuffer&) const;
  11178. bool Save(const String&) const;
  11179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11180. // Properties:
  11181. /* readonly */
  11182. String category;
  11183. bool desktop;
  11184. /* readonly */
  11185. uint memoryUse;
  11186. String name;
  11187. /* readonly */
  11188. uint numPasses;
  11189. /* readonly */
  11190. Array<String> passNames;
  11191. /* readonly */
  11192. Array<Pass> passes;
  11193. /* readonly */
  11194. int refs;
  11195. /* readonly */
  11196. bool supported;
  11197. /* readonly */
  11198. StringHash type;
  11199. /* readonly */
  11200. String typeName;
  11201. /* readonly */
  11202. uint useTimer;
  11203. /* readonly */
  11204. int weakRefs;
  11205. };
  11206. class TechniqueEntry
  11207. {
  11208. // Properties:
  11209. float lodDistance;
  11210. int qualityLevel;
  11211. Technique technique;
  11212. };
  11213. class Terrain
  11214. {
  11215. // Methods:
  11216. void ApplyAttributes();
  11217. void ApplyHeightMap();
  11218. void DrawDebugGeometry(DebugRenderer, bool);
  11219. Variant GetAttribute(const String&) const;
  11220. ValueAnimation GetAttributeAnimation(const String&) const;
  11221. float GetAttributeAnimationSpeed(const String&) const;
  11222. float GetAttributeAnimationTime(const String&) const;
  11223. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11224. Variant GetAttributeDefault(const String&) const;
  11225. float GetHeight(const Vector3&) const;
  11226. bool GetInterceptNetworkUpdate(const String&) const;
  11227. TerrainPatch GetNeighborPatch(int, int) const;
  11228. Vector3 GetNormal(const Vector3&) const;
  11229. TerrainPatch GetPatch(int, int) const;
  11230. bool HasSubscribedToEvent(Object, const String&);
  11231. bool HasSubscribedToEvent(const String&);
  11232. bool Load(File, bool = false);
  11233. bool Load(VectorBuffer&, bool = false);
  11234. bool LoadJSON(const JSONValue&, bool = false);
  11235. bool LoadXML(const XMLElement&, bool = false);
  11236. void MarkNetworkUpdate() const;
  11237. void Remove();
  11238. void RemoveAttributeAnimation(const String&);
  11239. void RemoveInstanceDefault();
  11240. void RemoveObjectAnimation();
  11241. void ResetToDefault();
  11242. bool Save(File) const;
  11243. bool Save(VectorBuffer&) const;
  11244. bool SaveJSON(JSONValue&) const;
  11245. bool SaveXML(XMLElement&) const;
  11246. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11247. void SetAnimationTime(float);
  11248. bool SetAttribute(const String&, const Variant&);
  11249. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11250. void SetAttributeAnimationSpeed(const String&, float);
  11251. void SetAttributeAnimationTime(const String&, float);
  11252. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11253. void SetInterceptNetworkUpdate(const String&, bool);
  11254. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11255. IntVector2 WorldToHeightMap(const Vector3&) const;
  11256. // Properties:
  11257. bool animationEnabled;
  11258. /* readonly */
  11259. Array<Variant> attributeDefaults;
  11260. /* readonly */
  11261. Array<AttributeInfo> attributeInfos;
  11262. Array<Variant> attributes;
  11263. bool castShadows;
  11264. /* readonly */
  11265. String category;
  11266. float drawDistance;
  11267. Terrain eastNeighbor;
  11268. bool enabled;
  11269. /* readonly */
  11270. bool enabledEffective;
  11271. Image heightMap;
  11272. /* readonly */
  11273. uint id;
  11274. uint lightMask;
  11275. float lodBias;
  11276. Material material;
  11277. uint maxLights;
  11278. uint maxLodLevels;
  11279. /* readonly */
  11280. Node node;
  11281. Terrain northNeighbor;
  11282. /* readonly */
  11283. uint numAttributes;
  11284. /* readonly */
  11285. IntVector2 numPatches;
  11286. /* readonly */
  11287. IntVector2 numVertices;
  11288. ObjectAnimation objectAnimation;
  11289. bool occludee;
  11290. bool occluder;
  11291. uint occlusionLodLevel;
  11292. int patchSize;
  11293. /* readonly */
  11294. Array<TerrainPatch> patches;
  11295. /* readonly */
  11296. int refs;
  11297. float shadowDistance;
  11298. uint shadowMask;
  11299. bool smoothing;
  11300. Terrain southNeighbor;
  11301. Vector3 spacing;
  11302. bool temporary;
  11303. /* readonly */
  11304. StringHash type;
  11305. /* readonly */
  11306. String typeName;
  11307. uint viewMask;
  11308. /* readonly */
  11309. int weakRefs;
  11310. Terrain westNeighbor;
  11311. uint zoneMask;
  11312. };
  11313. class TerrainPatch
  11314. {
  11315. // Methods:
  11316. void ApplyAttributes();
  11317. void DrawDebugGeometry(DebugRenderer, bool);
  11318. Variant GetAttribute(const String&) const;
  11319. ValueAnimation GetAttributeAnimation(const String&) const;
  11320. float GetAttributeAnimationSpeed(const String&) const;
  11321. float GetAttributeAnimationTime(const String&) const;
  11322. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11323. Variant GetAttributeDefault(const String&) const;
  11324. bool GetInterceptNetworkUpdate(const String&) const;
  11325. bool HasSubscribedToEvent(Object, const String&);
  11326. bool HasSubscribedToEvent(const String&);
  11327. bool IsInView(Camera) const;
  11328. bool Load(File, bool = false);
  11329. bool Load(VectorBuffer&, bool = false);
  11330. bool LoadJSON(const JSONValue&, bool = false);
  11331. bool LoadXML(const XMLElement&, bool = false);
  11332. void MarkNetworkUpdate() const;
  11333. void Remove();
  11334. void RemoveAttributeAnimation(const String&);
  11335. void RemoveInstanceDefault();
  11336. void RemoveObjectAnimation();
  11337. void ResetToDefault();
  11338. bool Save(File) const;
  11339. bool Save(VectorBuffer&) const;
  11340. bool SaveJSON(JSONValue&) const;
  11341. bool SaveXML(XMLElement&) const;
  11342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11343. void SetAnimationTime(float);
  11344. bool SetAttribute(const String&, const Variant&);
  11345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11346. void SetAttributeAnimationSpeed(const String&, float);
  11347. void SetAttributeAnimationTime(const String&, float);
  11348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11349. void SetInterceptNetworkUpdate(const String&, bool);
  11350. // Properties:
  11351. bool animationEnabled;
  11352. /* readonly */
  11353. Array<Variant> attributeDefaults;
  11354. /* readonly */
  11355. Array<AttributeInfo> attributeInfos;
  11356. Array<Variant> attributes;
  11357. /* readonly */
  11358. BoundingBox boundingBox;
  11359. bool castShadows;
  11360. /* readonly */
  11361. String category;
  11362. float drawDistance;
  11363. bool enabled;
  11364. /* readonly */
  11365. bool enabledEffective;
  11366. /* readonly */
  11367. uint id;
  11368. /* readonly */
  11369. bool inView;
  11370. uint lightMask;
  11371. float lodBias;
  11372. uint maxLights;
  11373. /* readonly */
  11374. Node node;
  11375. /* readonly */
  11376. uint numAttributes;
  11377. ObjectAnimation objectAnimation;
  11378. bool occludee;
  11379. bool occluder;
  11380. /* readonly */
  11381. int refs;
  11382. float shadowDistance;
  11383. uint shadowMask;
  11384. bool temporary;
  11385. /* readonly */
  11386. StringHash type;
  11387. /* readonly */
  11388. String typeName;
  11389. uint viewMask;
  11390. /* readonly */
  11391. int weakRefs;
  11392. /* readonly */
  11393. BoundingBox worldBoundingBox;
  11394. uint zoneMask;
  11395. };
  11396. class Text
  11397. {
  11398. // Methods:
  11399. void AddChild(UIElement);
  11400. void AddTag(const String&);
  11401. void AddTags(const String&, int8 = ';');
  11402. void ApplyAttributes();
  11403. void BringToFront();
  11404. void ClearSelection();
  11405. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11406. void DisableLayoutUpdate();
  11407. IntVector2 ElementToScreen(const IntVector2&);
  11408. void EnableLayoutUpdate();
  11409. uint FindChild(UIElement) const;
  11410. Variant GetAttribute(const String&) const;
  11411. ValueAnimation GetAttributeAnimation(const String&) const;
  11412. float GetAttributeAnimationSpeed(const String&) const;
  11413. float GetAttributeAnimationTime(const String&) const;
  11414. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11415. Variant GetAttributeDefault(const String&) const;
  11416. UIElement GetChild(const String&, bool = false) const;
  11417. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11418. Array<UIElement> GetChildren(bool = false) const;
  11419. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11420. UIElement GetElementEventSender() const;
  11421. bool GetInterceptNetworkUpdate(const String&) const;
  11422. uint GetNumChildren(bool) const;
  11423. bool HasSubscribedToEvent(Object, const String&);
  11424. bool HasSubscribedToEvent(const String&);
  11425. bool HasTag(const String&) const;
  11426. void InsertChild(uint, UIElement);
  11427. bool IsInside(IntVector2, bool);
  11428. bool IsInsideCombined(IntVector2, bool);
  11429. bool Load(File, bool = false);
  11430. bool Load(VectorBuffer&, bool = false);
  11431. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11432. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11433. bool LoadJSON(const JSONValue&, bool = false);
  11434. bool LoadXML(File);
  11435. bool LoadXML(VectorBuffer&);
  11436. bool LoadXML(XMLFile, XMLFile);
  11437. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11438. bool LoadXML(const XMLElement&, bool = false);
  11439. void MarkNetworkUpdate() const;
  11440. void Remove();
  11441. void RemoveAllChildren();
  11442. void RemoveAllTags();
  11443. void RemoveAttributeAnimation(const String&);
  11444. void RemoveChild(UIElement, uint = 0);
  11445. void RemoveChild(uint);
  11446. void RemoveInstanceDefault();
  11447. void RemoveObjectAnimation();
  11448. bool RemoveTag(const String&);
  11449. void ResetDeepEnabled();
  11450. void ResetToDefault();
  11451. bool Save(File) const;
  11452. bool Save(VectorBuffer&) const;
  11453. bool SaveJSON(JSONValue&) const;
  11454. bool SaveXML(File, const String& = "\t");
  11455. bool SaveXML(VectorBuffer&, const String& = "\t");
  11456. bool SaveXML(XMLElement&) const;
  11457. IntVector2 ScreenToElement(const IntVector2&);
  11458. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11459. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11460. void SetAnimationTime(float);
  11461. bool SetAttribute(const String&, const Variant&);
  11462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11463. void SetAttributeAnimationSpeed(const String&, float);
  11464. void SetAttributeAnimationTime(const String&, float);
  11465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11466. void SetDeepEnabled(bool);
  11467. void SetEnabledRecursive(bool);
  11468. void SetFixedHeight(int);
  11469. void SetFixedSize(int, int);
  11470. void SetFixedWidth(int);
  11471. bool SetFont(Font, int);
  11472. bool SetFont(const String&, int);
  11473. void SetInterceptNetworkUpdate(const String&, bool);
  11474. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11475. void SetMaxAnchor(float, float);
  11476. void SetMaxSize(int, int);
  11477. void SetMinAnchor(float, float);
  11478. void SetMinSize(int, int);
  11479. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11480. void SetPivot(float, float);
  11481. void SetPosition(int, int);
  11482. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11483. void SetSize(int, int);
  11484. bool SetStyle(const String&, XMLFile = null);
  11485. bool SetStyle(const XMLElement&);
  11486. bool SetStyleAuto(XMLFile = null);
  11487. void UpdateLayout();
  11488. const Variant& GetVar(const StringHash&);
  11489. // Properties:
  11490. bool animationEnabled;
  11491. /* readonly */
  11492. Array<Variant> attributeDefaults;
  11493. /* readonly */
  11494. Array<AttributeInfo> attributeInfos;
  11495. Array<Variant> attributes;
  11496. bool autoLocalizable;
  11497. bool bringToBack;
  11498. bool bringToFront;
  11499. /* readonly */
  11500. String category;
  11501. /* readonly */
  11502. Array<IntVector2> charPositions;
  11503. /* readonly */
  11504. Array<IntVector2> charSizes;
  11505. /* readonly */
  11506. IntVector2 childOffset;
  11507. /* readonly */
  11508. Array<UIElement> children;
  11509. IntRect clipBorder;
  11510. bool clipChildren;
  11511. /* writeonly */
  11512. Color color;
  11513. /* readonly */
  11514. bool colorGradient;
  11515. Array<Color> colors;
  11516. /* readonly */
  11517. IntRect combinedScreenRect;
  11518. XMLFile defaultStyle;
  11519. /* readonly */
  11520. float derivedOpacity;
  11521. /* readonly */
  11522. uint dragButtonCombo;
  11523. /* readonly */
  11524. int dragButtonCount;
  11525. uint dragDropMode;
  11526. bool editable;
  11527. Color effectColor;
  11528. bool effectRoundStroke;
  11529. IntVector2 effectShadowOffset;
  11530. int effectStrokeThickness;
  11531. bool elementEventSender;
  11532. bool enableAnchor;
  11533. bool enabled;
  11534. /* readonly */
  11535. bool enabledSelf;
  11536. /* readonly */
  11537. bool fixedHeight;
  11538. /* readonly */
  11539. bool fixedSize;
  11540. /* readonly */
  11541. bool fixedWidth;
  11542. bool focus;
  11543. FocusMode focusMode;
  11544. /* readonly */
  11545. Font font;
  11546. int fontSize;
  11547. int height;
  11548. HorizontalAlignment horizontalAlignment;
  11549. Color hoverColor;
  11550. /* readonly */
  11551. bool hovering;
  11552. int indent;
  11553. int indentSpacing;
  11554. /* readonly */
  11555. int indentWidth;
  11556. bool internal;
  11557. IntRect layoutBorder;
  11558. Vector2 layoutFlexScale;
  11559. LayoutMode layoutMode;
  11560. int layoutSpacing;
  11561. Vector2 maxAnchor;
  11562. int maxHeight;
  11563. IntVector2 maxOffset;
  11564. IntVector2 maxSize;
  11565. int maxWidth;
  11566. Vector2 minAnchor;
  11567. int minHeight;
  11568. IntVector2 minOffset;
  11569. IntVector2 minSize;
  11570. int minWidth;
  11571. String name;
  11572. /* readonly */
  11573. uint numAllChildren;
  11574. /* readonly */
  11575. uint numAttributes;
  11576. /* readonly */
  11577. uint numChars;
  11578. /* readonly */
  11579. uint numChildren;
  11580. /* readonly */
  11581. uint numRows;
  11582. ObjectAnimation objectAnimation;
  11583. float opacity;
  11584. UIElement parent;
  11585. Vector2 pivot;
  11586. IntVector2 position;
  11587. int priority;
  11588. /* readonly */
  11589. int refs;
  11590. /* readonly */
  11591. UIElement root;
  11592. /* readonly */
  11593. int rowHeight;
  11594. float rowSpacing;
  11595. /* readonly */
  11596. Array<int> rowWidths;
  11597. /* readonly */
  11598. IntVector2 screenPosition;
  11599. bool selected;
  11600. Color selectionColor;
  11601. /* readonly */
  11602. uint selectionLength;
  11603. /* readonly */
  11604. uint selectionStart;
  11605. IntVector2 size;
  11606. bool sortChildren;
  11607. String style;
  11608. /* readonly */
  11609. Array<String> tags;
  11610. bool temporary;
  11611. String text;
  11612. HorizontalAlignment textAlignment;
  11613. TextEffect textEffect;
  11614. TraversalMode traversalMode;
  11615. /* readonly */
  11616. StringHash type;
  11617. /* readonly */
  11618. String typeName;
  11619. bool useDerivedOpacity;
  11620. /* readonly */
  11621. VariantMap vars;
  11622. VerticalAlignment verticalAlignment;
  11623. bool visible;
  11624. /* readonly */
  11625. bool visibleEffective;
  11626. /* readonly */
  11627. int weakRefs;
  11628. int width;
  11629. bool wordwrap;
  11630. };
  11631. class Text3D
  11632. {
  11633. // Methods:
  11634. void ApplyAttributes();
  11635. void DrawDebugGeometry(DebugRenderer, bool);
  11636. Variant GetAttribute(const String&) const;
  11637. ValueAnimation GetAttributeAnimation(const String&) const;
  11638. float GetAttributeAnimationSpeed(const String&) const;
  11639. float GetAttributeAnimationTime(const String&) const;
  11640. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11641. Variant GetAttributeDefault(const String&) const;
  11642. bool GetInterceptNetworkUpdate(const String&) const;
  11643. bool HasSubscribedToEvent(Object, const String&);
  11644. bool HasSubscribedToEvent(const String&);
  11645. bool IsInView(Camera) const;
  11646. bool Load(File, bool = false);
  11647. bool Load(VectorBuffer&, bool = false);
  11648. bool LoadJSON(const JSONValue&, bool = false);
  11649. bool LoadXML(const XMLElement&, bool = false);
  11650. void MarkNetworkUpdate() const;
  11651. void Remove();
  11652. void RemoveAttributeAnimation(const String&);
  11653. void RemoveInstanceDefault();
  11654. void RemoveObjectAnimation();
  11655. void ResetToDefault();
  11656. bool Save(File) const;
  11657. bool Save(VectorBuffer&) const;
  11658. bool SaveJSON(JSONValue&) const;
  11659. bool SaveXML(XMLElement&) const;
  11660. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11661. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11662. void SetAnimationTime(float);
  11663. bool SetAttribute(const String&, const Variant&);
  11664. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11665. void SetAttributeAnimationSpeed(const String&, float);
  11666. void SetAttributeAnimationTime(const String&, float);
  11667. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11668. bool SetFont(Font, int);
  11669. bool SetFont(const String&, int);
  11670. void SetInterceptNetworkUpdate(const String&, bool);
  11671. // Properties:
  11672. bool animationEnabled;
  11673. /* readonly */
  11674. Array<Variant> attributeDefaults;
  11675. /* readonly */
  11676. Array<AttributeInfo> attributeInfos;
  11677. Array<Variant> attributes;
  11678. /* readonly */
  11679. BoundingBox boundingBox;
  11680. bool castShadows;
  11681. /* readonly */
  11682. String category;
  11683. /* readonly */
  11684. Array<IntVector2> charPositions;
  11685. /* readonly */
  11686. Array<IntVector2> charSizes;
  11687. /* writeonly */
  11688. Color color;
  11689. Array<Color> colors;
  11690. float drawDistance;
  11691. Color effectColor;
  11692. float effectDepthBias;
  11693. bool effectRoundStroke;
  11694. IntVector2 effectShadowOffset;
  11695. int effectStrokeThickness;
  11696. bool enabled;
  11697. /* readonly */
  11698. bool enabledEffective;
  11699. FaceCameraMode faceCameraMode;
  11700. bool fixedScreenSize;
  11701. /* readonly */
  11702. Font font;
  11703. int fontSize;
  11704. /* readonly */
  11705. int height;
  11706. HorizontalAlignment horizontalAlignment;
  11707. /* readonly */
  11708. uint id;
  11709. /* readonly */
  11710. bool inView;
  11711. uint lightMask;
  11712. float lodBias;
  11713. Material material;
  11714. uint maxLights;
  11715. /* readonly */
  11716. Node node;
  11717. /* readonly */
  11718. uint numAttributes;
  11719. /* readonly */
  11720. uint numChars;
  11721. /* readonly */
  11722. uint numRows;
  11723. ObjectAnimation objectAnimation;
  11724. bool occludee;
  11725. bool occluder;
  11726. float opacity;
  11727. /* readonly */
  11728. int refs;
  11729. /* readonly */
  11730. int rowHeight;
  11731. float rowSpacing;
  11732. /* readonly */
  11733. Array<int> rowWidths;
  11734. float shadowDistance;
  11735. uint shadowMask;
  11736. bool temporary;
  11737. String text;
  11738. HorizontalAlignment textAlignment;
  11739. TextEffect textEffect;
  11740. /* readonly */
  11741. StringHash type;
  11742. /* readonly */
  11743. String typeName;
  11744. VerticalAlignment verticalAlignment;
  11745. uint viewMask;
  11746. /* readonly */
  11747. int weakRefs;
  11748. int width;
  11749. bool wordwrap;
  11750. /* readonly */
  11751. BoundingBox worldBoundingBox;
  11752. uint zoneMask;
  11753. };
  11754. class Texture
  11755. {
  11756. // Methods:
  11757. void ClearDataLost();
  11758. bool HasSubscribedToEvent(Object, const String&);
  11759. bool HasSubscribedToEvent(const String&);
  11760. bool Load(File);
  11761. bool Load(VectorBuffer&);
  11762. bool Load(const String&);
  11763. bool Save(File) const;
  11764. bool Save(VectorBuffer&) const;
  11765. bool Save(const String&) const;
  11766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11767. void SetNumLevels(uint);
  11768. // Properties:
  11769. Array<TextureAddressMode> addressMode;
  11770. uint anisotropy;
  11771. /* readonly */
  11772. bool autoResolve;
  11773. Texture backupTexture;
  11774. Color borderColor;
  11775. /* readonly */
  11776. String category;
  11777. /* readonly */
  11778. uint components;
  11779. /* readonly */
  11780. bool compressed;
  11781. /* readonly */
  11782. bool dataLost;
  11783. TextureFilterMode filterMode;
  11784. /* readonly */
  11785. uint format;
  11786. /* readonly */
  11787. int height;
  11788. /* readonly */
  11789. Array<int> levelHeight;
  11790. /* readonly */
  11791. Array<int> levelWidth;
  11792. /* readonly */
  11793. uint levels;
  11794. /* readonly */
  11795. bool levelsDirty;
  11796. /* readonly */
  11797. uint memoryUse;
  11798. Array<int> mipsToSkip;
  11799. /* readonly */
  11800. int multiSample;
  11801. String name;
  11802. /* readonly */
  11803. int refs;
  11804. /* readonly */
  11805. bool resolveDirty;
  11806. bool sRGB;
  11807. /* readonly */
  11808. StringHash type;
  11809. /* readonly */
  11810. String typeName;
  11811. /* readonly */
  11812. TextureUsage usage;
  11813. /* readonly */
  11814. uint useTimer;
  11815. /* readonly */
  11816. int weakRefs;
  11817. /* readonly */
  11818. int width;
  11819. };
  11820. class Texture2D
  11821. {
  11822. // Methods:
  11823. void ClearDataLost();
  11824. Image GetImage() const;
  11825. bool HasSubscribedToEvent(Object, const String&);
  11826. bool HasSubscribedToEvent(const String&);
  11827. bool Load(File);
  11828. bool Load(VectorBuffer&);
  11829. bool Load(const String&);
  11830. bool Save(File) const;
  11831. bool Save(VectorBuffer&) const;
  11832. bool Save(const String&) const;
  11833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11834. bool SetData(Image, bool = false);
  11835. void SetNumLevels(uint);
  11836. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11837. // Properties:
  11838. Array<TextureAddressMode> addressMode;
  11839. uint anisotropy;
  11840. /* readonly */
  11841. bool autoResolve;
  11842. Texture backupTexture;
  11843. Color borderColor;
  11844. /* readonly */
  11845. String category;
  11846. /* readonly */
  11847. uint components;
  11848. /* readonly */
  11849. bool compressed;
  11850. /* readonly */
  11851. bool dataLost;
  11852. TextureFilterMode filterMode;
  11853. /* readonly */
  11854. uint format;
  11855. /* readonly */
  11856. int height;
  11857. /* readonly */
  11858. Array<int> levelHeight;
  11859. /* readonly */
  11860. Array<int> levelWidth;
  11861. /* readonly */
  11862. uint levels;
  11863. /* readonly */
  11864. bool levelsDirty;
  11865. /* readonly */
  11866. uint memoryUse;
  11867. Array<int> mipsToSkip;
  11868. /* readonly */
  11869. int multiSample;
  11870. String name;
  11871. /* readonly */
  11872. int refs;
  11873. /* readonly */
  11874. RenderSurface renderSurface;
  11875. /* readonly */
  11876. bool resolveDirty;
  11877. bool sRGB;
  11878. /* readonly */
  11879. StringHash type;
  11880. /* readonly */
  11881. String typeName;
  11882. /* readonly */
  11883. TextureUsage usage;
  11884. /* readonly */
  11885. uint useTimer;
  11886. /* readonly */
  11887. int weakRefs;
  11888. /* readonly */
  11889. int width;
  11890. };
  11891. class Texture2DArray
  11892. {
  11893. // Methods:
  11894. void ClearDataLost();
  11895. bool HasSubscribedToEvent(Object, const String&);
  11896. bool HasSubscribedToEvent(const String&);
  11897. bool Load(File);
  11898. bool Load(VectorBuffer&);
  11899. bool Load(const String&);
  11900. bool Save(File) const;
  11901. bool Save(VectorBuffer&) const;
  11902. bool Save(const String&) const;
  11903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11904. bool SetData(uint, Image, bool = false);
  11905. void SetNumLevels(uint);
  11906. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11907. // Properties:
  11908. Array<TextureAddressMode> addressMode;
  11909. uint anisotropy;
  11910. /* readonly */
  11911. bool autoResolve;
  11912. Texture backupTexture;
  11913. Color borderColor;
  11914. /* readonly */
  11915. String category;
  11916. /* readonly */
  11917. uint components;
  11918. /* readonly */
  11919. bool compressed;
  11920. /* readonly */
  11921. bool dataLost;
  11922. TextureFilterMode filterMode;
  11923. /* readonly */
  11924. uint format;
  11925. /* readonly */
  11926. int height;
  11927. uint layers;
  11928. /* readonly */
  11929. Array<int> levelHeight;
  11930. /* readonly */
  11931. Array<int> levelWidth;
  11932. /* readonly */
  11933. uint levels;
  11934. /* readonly */
  11935. bool levelsDirty;
  11936. /* readonly */
  11937. uint memoryUse;
  11938. Array<int> mipsToSkip;
  11939. /* readonly */
  11940. int multiSample;
  11941. String name;
  11942. /* readonly */
  11943. int refs;
  11944. /* readonly */
  11945. RenderSurface renderSurface;
  11946. /* readonly */
  11947. bool resolveDirty;
  11948. bool sRGB;
  11949. /* readonly */
  11950. StringHash type;
  11951. /* readonly */
  11952. String typeName;
  11953. /* readonly */
  11954. TextureUsage usage;
  11955. /* readonly */
  11956. uint useTimer;
  11957. /* readonly */
  11958. int weakRefs;
  11959. /* readonly */
  11960. int width;
  11961. };
  11962. class Texture3D
  11963. {
  11964. // Methods:
  11965. void ClearDataLost();
  11966. bool HasSubscribedToEvent(Object, const String&);
  11967. bool HasSubscribedToEvent(const String&);
  11968. bool Load(File);
  11969. bool Load(VectorBuffer&);
  11970. bool Load(const String&);
  11971. bool Save(File) const;
  11972. bool Save(VectorBuffer&) const;
  11973. bool Save(const String&) const;
  11974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11975. bool SetData(Image, bool = false);
  11976. void SetNumLevels(uint);
  11977. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11978. // Properties:
  11979. Array<TextureAddressMode> addressMode;
  11980. uint anisotropy;
  11981. /* readonly */
  11982. bool autoResolve;
  11983. Texture backupTexture;
  11984. Color borderColor;
  11985. /* readonly */
  11986. String category;
  11987. /* readonly */
  11988. uint components;
  11989. /* readonly */
  11990. bool compressed;
  11991. /* readonly */
  11992. bool dataLost;
  11993. TextureFilterMode filterMode;
  11994. /* readonly */
  11995. uint format;
  11996. /* readonly */
  11997. int height;
  11998. /* readonly */
  11999. Array<int> levelHeight;
  12000. /* readonly */
  12001. Array<int> levelWidth;
  12002. /* readonly */
  12003. uint levels;
  12004. /* readonly */
  12005. bool levelsDirty;
  12006. /* readonly */
  12007. uint memoryUse;
  12008. Array<int> mipsToSkip;
  12009. /* readonly */
  12010. int multiSample;
  12011. String name;
  12012. /* readonly */
  12013. int refs;
  12014. /* readonly */
  12015. bool resolveDirty;
  12016. bool sRGB;
  12017. /* readonly */
  12018. StringHash type;
  12019. /* readonly */
  12020. String typeName;
  12021. /* readonly */
  12022. TextureUsage usage;
  12023. /* readonly */
  12024. uint useTimer;
  12025. /* readonly */
  12026. int weakRefs;
  12027. /* readonly */
  12028. int width;
  12029. };
  12030. class TextureCube
  12031. {
  12032. // Methods:
  12033. void ClearDataLost();
  12034. Image GetImage(CubeMapFace) const;
  12035. bool HasSubscribedToEvent(Object, const String&);
  12036. bool HasSubscribedToEvent(const String&);
  12037. bool Load(File);
  12038. bool Load(VectorBuffer&);
  12039. bool Load(const String&);
  12040. bool Save(File) const;
  12041. bool Save(VectorBuffer&) const;
  12042. bool Save(const String&) const;
  12043. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12044. bool SetData(CubeMapFace, Image, bool = false);
  12045. void SetNumLevels(uint);
  12046. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12047. // Properties:
  12048. Array<TextureAddressMode> addressMode;
  12049. uint anisotropy;
  12050. /* readonly */
  12051. bool autoResolve;
  12052. Texture backupTexture;
  12053. Color borderColor;
  12054. /* readonly */
  12055. String category;
  12056. /* readonly */
  12057. uint components;
  12058. /* readonly */
  12059. bool compressed;
  12060. /* readonly */
  12061. bool dataLost;
  12062. TextureFilterMode filterMode;
  12063. /* readonly */
  12064. uint format;
  12065. /* readonly */
  12066. int height;
  12067. /* readonly */
  12068. Array<int> levelHeight;
  12069. /* readonly */
  12070. Array<int> levelWidth;
  12071. /* readonly */
  12072. uint levels;
  12073. /* readonly */
  12074. bool levelsDirty;
  12075. /* readonly */
  12076. uint memoryUse;
  12077. Array<int> mipsToSkip;
  12078. /* readonly */
  12079. int multiSample;
  12080. String name;
  12081. /* readonly */
  12082. int refs;
  12083. /* readonly */
  12084. Array<RenderSurface> renderSurfaces;
  12085. /* readonly */
  12086. bool resolveDirty;
  12087. bool sRGB;
  12088. /* readonly */
  12089. StringHash type;
  12090. /* readonly */
  12091. String typeName;
  12092. /* readonly */
  12093. TextureUsage usage;
  12094. /* readonly */
  12095. uint useTimer;
  12096. /* readonly */
  12097. int weakRefs;
  12098. /* readonly */
  12099. int width;
  12100. };
  12101. class TextureFrame
  12102. {
  12103. // Properties:
  12104. float time;
  12105. Rect uv;
  12106. };
  12107. class Tile2D
  12108. {
  12109. // Methods:
  12110. bool HasProperty(const String&) const;
  12111. const String& GetProperty(const String&) const;
  12112. // Properties:
  12113. /* readonly */
  12114. int gid;
  12115. /* readonly */
  12116. int refs;
  12117. /* readonly */
  12118. Sprite2D sprite;
  12119. /* readonly */
  12120. int weakRefs;
  12121. };
  12122. class TileMap2D
  12123. {
  12124. // Methods:
  12125. void ApplyAttributes();
  12126. void DrawDebugGeometry(DebugRenderer, bool);
  12127. Variant GetAttribute(const String&) const;
  12128. ValueAnimation GetAttributeAnimation(const String&) const;
  12129. float GetAttributeAnimationSpeed(const String&) const;
  12130. float GetAttributeAnimationTime(const String&) const;
  12131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12132. Variant GetAttributeDefault(const String&) const;
  12133. bool GetInterceptNetworkUpdate(const String&) const;
  12134. TileMapLayer2D GetLayer(uint) const;
  12135. bool HasSubscribedToEvent(Object, const String&);
  12136. bool HasSubscribedToEvent(const String&);
  12137. bool Load(File, bool = false);
  12138. bool Load(VectorBuffer&, bool = false);
  12139. bool LoadJSON(const JSONValue&, bool = false);
  12140. bool LoadXML(const XMLElement&, bool = false);
  12141. void MarkNetworkUpdate() const;
  12142. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12143. void Remove();
  12144. void RemoveAttributeAnimation(const String&);
  12145. void RemoveInstanceDefault();
  12146. void RemoveObjectAnimation();
  12147. void ResetToDefault();
  12148. bool Save(File) const;
  12149. bool Save(VectorBuffer&) const;
  12150. bool SaveJSON(JSONValue&) const;
  12151. bool SaveXML(XMLElement&) const;
  12152. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12153. void SetAnimationTime(float);
  12154. bool SetAttribute(const String&, const Variant&);
  12155. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12156. void SetAttributeAnimationSpeed(const String&, float);
  12157. void SetAttributeAnimationTime(const String&, float);
  12158. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12159. void SetInterceptNetworkUpdate(const String&, bool);
  12160. Vector2 TileIndexToPosition(int, int) const;
  12161. // Properties:
  12162. bool animationEnabled;
  12163. /* readonly */
  12164. Array<Variant> attributeDefaults;
  12165. /* readonly */
  12166. Array<AttributeInfo> attributeInfos;
  12167. Array<Variant> attributes;
  12168. /* readonly */
  12169. String category;
  12170. bool enabled;
  12171. /* readonly */
  12172. bool enabledEffective;
  12173. /* readonly */
  12174. uint id;
  12175. /* readonly */
  12176. TileMapInfo2D info;
  12177. /* readonly */
  12178. Node node;
  12179. /* readonly */
  12180. uint numAttributes;
  12181. /* readonly */
  12182. uint numLayers;
  12183. ObjectAnimation objectAnimation;
  12184. /* readonly */
  12185. int refs;
  12186. bool temporary;
  12187. TmxFile2D tmxFile;
  12188. /* readonly */
  12189. StringHash type;
  12190. /* readonly */
  12191. String typeName;
  12192. /* readonly */
  12193. int weakRefs;
  12194. };
  12195. class TileMapInfo2D
  12196. {
  12197. // Properties:
  12198. int height;
  12199. /* readonly */
  12200. float mapHeight;
  12201. /* readonly */
  12202. float mapWidth;
  12203. Orientation2D orientation;
  12204. float tileHeight;
  12205. float tileWidth;
  12206. int width;
  12207. };
  12208. class TileMapLayer2D
  12209. {
  12210. // Methods:
  12211. void ApplyAttributes();
  12212. void DrawDebugGeometry(DebugRenderer, bool);
  12213. Variant GetAttribute(const String&) const;
  12214. ValueAnimation GetAttributeAnimation(const String&) const;
  12215. float GetAttributeAnimationSpeed(const String&) const;
  12216. float GetAttributeAnimationTime(const String&) const;
  12217. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12218. Variant GetAttributeDefault(const String&) const;
  12219. bool GetInterceptNetworkUpdate(const String&) const;
  12220. TileMapObject2D GetObject(uint) const;
  12221. Node GetObjectNode(uint) const;
  12222. Tile2D GetTile(int, int) const;
  12223. Node GetTileNode(int, int) const;
  12224. bool HasProperty(const String&) const;
  12225. bool HasSubscribedToEvent(Object, const String&);
  12226. bool HasSubscribedToEvent(const String&);
  12227. bool Load(File, bool = false);
  12228. bool Load(VectorBuffer&, bool = false);
  12229. bool LoadJSON(const JSONValue&, bool = false);
  12230. bool LoadXML(const XMLElement&, bool = false);
  12231. void MarkNetworkUpdate() const;
  12232. void Remove();
  12233. void RemoveAttributeAnimation(const String&);
  12234. void RemoveInstanceDefault();
  12235. void RemoveObjectAnimation();
  12236. void ResetToDefault();
  12237. bool Save(File) const;
  12238. bool Save(VectorBuffer&) const;
  12239. bool SaveJSON(JSONValue&) const;
  12240. bool SaveXML(XMLElement&) const;
  12241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12242. void SetAnimationTime(float);
  12243. bool SetAttribute(const String&, const Variant&);
  12244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12245. void SetAttributeAnimationSpeed(const String&, float);
  12246. void SetAttributeAnimationTime(const String&, float);
  12247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12248. void SetInterceptNetworkUpdate(const String&, bool);
  12249. const String& GetProperty(const String&) const;
  12250. // Properties:
  12251. bool animationEnabled;
  12252. /* readonly */
  12253. Array<Variant> attributeDefaults;
  12254. /* readonly */
  12255. Array<AttributeInfo> attributeInfos;
  12256. Array<Variant> attributes;
  12257. /* readonly */
  12258. String category;
  12259. int drawOrder;
  12260. bool enabled;
  12261. /* readonly */
  12262. bool enabledEffective;
  12263. /* readonly */
  12264. int height;
  12265. /* readonly */
  12266. uint id;
  12267. /* readonly */
  12268. Node imageNode;
  12269. /* readonly */
  12270. TileMapLayerType2D layerType;
  12271. /* readonly */
  12272. Node node;
  12273. /* readonly */
  12274. uint numAttributes;
  12275. /* readonly */
  12276. uint numObjects;
  12277. ObjectAnimation objectAnimation;
  12278. /* readonly */
  12279. int refs;
  12280. bool temporary;
  12281. /* readonly */
  12282. StringHash type;
  12283. /* readonly */
  12284. String typeName;
  12285. bool visible;
  12286. /* readonly */
  12287. int weakRefs;
  12288. /* readonly */
  12289. int width;
  12290. };
  12291. class TileMapObject2D
  12292. {
  12293. // Methods:
  12294. bool HasProperty(const String&) const;
  12295. const String& GetProperty(const String&) const;
  12296. const Vector2& GetPoint(uint) const;
  12297. // Properties:
  12298. /* readonly */
  12299. String name;
  12300. /* readonly */
  12301. uint numPoints;
  12302. /* readonly */
  12303. TileObjectType2D objectType;
  12304. /* readonly */
  12305. Vector2 position;
  12306. /* readonly */
  12307. int refs;
  12308. /* readonly */
  12309. Vector2 size;
  12310. /* readonly */
  12311. int tileGid;
  12312. /* readonly */
  12313. Sprite2D tileSprite;
  12314. /* readonly */
  12315. String type;
  12316. /* readonly */
  12317. int weakRefs;
  12318. };
  12319. class Time
  12320. {
  12321. // Methods:
  12322. bool HasSubscribedToEvent(Object, const String&);
  12323. bool HasSubscribedToEvent(const String&);
  12324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12325. // Properties:
  12326. /* readonly */
  12327. String category;
  12328. /* readonly */
  12329. float elapsedTime;
  12330. /* readonly */
  12331. uint frameNumber;
  12332. /* readonly */
  12333. int refs;
  12334. /* readonly */
  12335. uint systemTime;
  12336. /* readonly */
  12337. uint timeSinceEpoch;
  12338. /* readonly */
  12339. String timeStamp;
  12340. /* readonly */
  12341. float timeStep;
  12342. /* readonly */
  12343. StringHash type;
  12344. /* readonly */
  12345. String typeName;
  12346. /* readonly */
  12347. int weakRefs;
  12348. };
  12349. class Timer
  12350. {
  12351. // Methods:
  12352. uint GetMSec(bool);
  12353. void Reset();
  12354. };
  12355. class TmxFile2D
  12356. {
  12357. // Methods:
  12358. bool HasSubscribedToEvent(Object, const String&);
  12359. bool HasSubscribedToEvent(const String&);
  12360. bool Load(File);
  12361. bool Load(VectorBuffer&);
  12362. bool Load(const String&);
  12363. bool Save(File) const;
  12364. bool Save(VectorBuffer&) const;
  12365. bool Save(const String&) const;
  12366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12367. // Properties:
  12368. /* readonly */
  12369. String category;
  12370. /* readonly */
  12371. uint memoryUse;
  12372. String name;
  12373. /* readonly */
  12374. int refs;
  12375. /* readonly */
  12376. StringHash type;
  12377. /* readonly */
  12378. String typeName;
  12379. /* readonly */
  12380. uint useTimer;
  12381. /* readonly */
  12382. int weakRefs;
  12383. };
  12384. class ToolTip
  12385. {
  12386. // Methods:
  12387. void AddChild(UIElement);
  12388. void AddTag(const String&);
  12389. void AddTags(const String&, int8 = ';');
  12390. void ApplyAttributes();
  12391. void BringToFront();
  12392. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12393. void DisableLayoutUpdate();
  12394. IntVector2 ElementToScreen(const IntVector2&);
  12395. void EnableLayoutUpdate();
  12396. uint FindChild(UIElement) const;
  12397. Variant GetAttribute(const String&) const;
  12398. ValueAnimation GetAttributeAnimation(const String&) const;
  12399. float GetAttributeAnimationSpeed(const String&) const;
  12400. float GetAttributeAnimationTime(const String&) const;
  12401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12402. Variant GetAttributeDefault(const String&) const;
  12403. UIElement GetChild(const String&, bool = false) const;
  12404. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12405. Array<UIElement> GetChildren(bool = false) const;
  12406. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12407. UIElement GetElementEventSender() const;
  12408. bool GetInterceptNetworkUpdate(const String&) const;
  12409. uint GetNumChildren(bool) const;
  12410. bool HasSubscribedToEvent(Object, const String&);
  12411. bool HasSubscribedToEvent(const String&);
  12412. bool HasTag(const String&) const;
  12413. void InsertChild(uint, UIElement);
  12414. bool IsInside(IntVector2, bool);
  12415. bool IsInsideCombined(IntVector2, bool);
  12416. bool Load(File, bool = false);
  12417. bool Load(VectorBuffer&, bool = false);
  12418. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12419. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12420. bool LoadJSON(const JSONValue&, bool = false);
  12421. bool LoadXML(File);
  12422. bool LoadXML(VectorBuffer&);
  12423. bool LoadXML(XMLFile, XMLFile);
  12424. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12425. bool LoadXML(const XMLElement&, bool = false);
  12426. void MarkNetworkUpdate() const;
  12427. void Remove();
  12428. void RemoveAllChildren();
  12429. void RemoveAllTags();
  12430. void RemoveAttributeAnimation(const String&);
  12431. void RemoveChild(UIElement, uint = 0);
  12432. void RemoveChild(uint);
  12433. void RemoveInstanceDefault();
  12434. void RemoveObjectAnimation();
  12435. bool RemoveTag(const String&);
  12436. void ResetDeepEnabled();
  12437. void ResetToDefault();
  12438. bool Save(File) const;
  12439. bool Save(VectorBuffer&) const;
  12440. bool SaveJSON(JSONValue&) const;
  12441. bool SaveXML(File, const String& = "\t");
  12442. bool SaveXML(VectorBuffer&, const String& = "\t");
  12443. bool SaveXML(XMLElement&) const;
  12444. IntVector2 ScreenToElement(const IntVector2&);
  12445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12446. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12447. void SetAnimationTime(float);
  12448. bool SetAttribute(const String&, const Variant&);
  12449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12450. void SetAttributeAnimationSpeed(const String&, float);
  12451. void SetAttributeAnimationTime(const String&, float);
  12452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12453. void SetDeepEnabled(bool);
  12454. void SetEnabledRecursive(bool);
  12455. void SetFixedHeight(int);
  12456. void SetFixedSize(int, int);
  12457. void SetFixedWidth(int);
  12458. void SetInterceptNetworkUpdate(const String&, bool);
  12459. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12460. void SetMaxAnchor(float, float);
  12461. void SetMaxSize(int, int);
  12462. void SetMinAnchor(float, float);
  12463. void SetMinSize(int, int);
  12464. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12465. void SetPivot(float, float);
  12466. void SetPosition(int, int);
  12467. void SetSize(int, int);
  12468. bool SetStyle(const String&, XMLFile = null);
  12469. bool SetStyle(const XMLElement&);
  12470. bool SetStyleAuto(XMLFile = null);
  12471. void UpdateLayout();
  12472. const Variant& GetVar(const StringHash&);
  12473. // Properties:
  12474. bool animationEnabled;
  12475. /* readonly */
  12476. Array<Variant> attributeDefaults;
  12477. /* readonly */
  12478. Array<AttributeInfo> attributeInfos;
  12479. Array<Variant> attributes;
  12480. bool bringToBack;
  12481. bool bringToFront;
  12482. /* readonly */
  12483. String category;
  12484. /* readonly */
  12485. IntVector2 childOffset;
  12486. /* readonly */
  12487. Array<UIElement> children;
  12488. IntRect clipBorder;
  12489. bool clipChildren;
  12490. /* writeonly */
  12491. Color color;
  12492. /* readonly */
  12493. bool colorGradient;
  12494. Array<Color> colors;
  12495. /* readonly */
  12496. IntRect combinedScreenRect;
  12497. XMLFile defaultStyle;
  12498. float delay;
  12499. /* readonly */
  12500. float derivedOpacity;
  12501. /* readonly */
  12502. uint dragButtonCombo;
  12503. /* readonly */
  12504. int dragButtonCount;
  12505. uint dragDropMode;
  12506. bool editable;
  12507. bool elementEventSender;
  12508. bool enableAnchor;
  12509. bool enabled;
  12510. /* readonly */
  12511. bool enabledSelf;
  12512. /* readonly */
  12513. bool fixedHeight;
  12514. /* readonly */
  12515. bool fixedSize;
  12516. /* readonly */
  12517. bool fixedWidth;
  12518. bool focus;
  12519. FocusMode focusMode;
  12520. int height;
  12521. HorizontalAlignment horizontalAlignment;
  12522. /* readonly */
  12523. bool hovering;
  12524. int indent;
  12525. int indentSpacing;
  12526. /* readonly */
  12527. int indentWidth;
  12528. bool internal;
  12529. IntRect layoutBorder;
  12530. Vector2 layoutFlexScale;
  12531. LayoutMode layoutMode;
  12532. int layoutSpacing;
  12533. Vector2 maxAnchor;
  12534. int maxHeight;
  12535. IntVector2 maxOffset;
  12536. IntVector2 maxSize;
  12537. int maxWidth;
  12538. Vector2 minAnchor;
  12539. int minHeight;
  12540. IntVector2 minOffset;
  12541. IntVector2 minSize;
  12542. int minWidth;
  12543. String name;
  12544. /* readonly */
  12545. uint numAllChildren;
  12546. /* readonly */
  12547. uint numAttributes;
  12548. /* readonly */
  12549. uint numChildren;
  12550. ObjectAnimation objectAnimation;
  12551. float opacity;
  12552. UIElement parent;
  12553. Vector2 pivot;
  12554. IntVector2 position;
  12555. int priority;
  12556. /* readonly */
  12557. int refs;
  12558. /* readonly */
  12559. UIElement root;
  12560. /* readonly */
  12561. IntVector2 screenPosition;
  12562. bool selected;
  12563. IntVector2 size;
  12564. bool sortChildren;
  12565. String style;
  12566. /* readonly */
  12567. Array<String> tags;
  12568. bool temporary;
  12569. TraversalMode traversalMode;
  12570. /* readonly */
  12571. StringHash type;
  12572. /* readonly */
  12573. String typeName;
  12574. bool useDerivedOpacity;
  12575. /* readonly */
  12576. VariantMap vars;
  12577. VerticalAlignment verticalAlignment;
  12578. bool visible;
  12579. /* readonly */
  12580. bool visibleEffective;
  12581. /* readonly */
  12582. int weakRefs;
  12583. int width;
  12584. };
  12585. class TouchState
  12586. {
  12587. // Properties:
  12588. IntVector2 delta;
  12589. IntVector2 lastPosition;
  12590. IntVector2 position;
  12591. float pressure;
  12592. int touchID;
  12593. /* readonly */
  12594. UIElement touchedElement;
  12595. };
  12596. class UI
  12597. {
  12598. // Methods:
  12599. void Clear();
  12600. void DebugDraw(UIElement);
  12601. UIElement GetElementAt(const IntVector2&, bool = true);
  12602. UIElement GetElementAt(int, int, bool = true);
  12603. bool HasModalElement() const;
  12604. bool HasSubscribedToEvent(Object, const String&);
  12605. bool HasSubscribedToEvent(const String&);
  12606. bool IsDragging() const;
  12607. UIElement LoadLayout(File);
  12608. UIElement LoadLayout(File, XMLFile);
  12609. UIElement LoadLayout(VectorBuffer&);
  12610. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12611. UIElement LoadLayout(XMLFile);
  12612. UIElement LoadLayout(XMLFile, XMLFile);
  12613. bool SaveLayout(File, UIElement);
  12614. bool SaveLayout(VectorBuffer&, UIElement);
  12615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12616. void SetCustomSize(int, int);
  12617. void SetFocusElement(UIElement, bool = false);
  12618. void SetHeight(float);
  12619. void SetWidth(float);
  12620. const Array<UIElement> GetDragElements();
  12621. // Properties:
  12622. /* readonly */
  12623. String category;
  12624. String clipBoardText;
  12625. Cursor cursor;
  12626. /* readonly */
  12627. IntVector2 cursorPosition;
  12628. IntVector2 customSize;
  12629. float defaultToolTipDelay;
  12630. float doubleClickInterval;
  12631. int dragBeginDistance;
  12632. float dragBeginInterval;
  12633. UIElement focusElement;
  12634. bool forceAutoHint;
  12635. /* readonly */
  12636. UIElement frontElement;
  12637. int maxFontTextureSize;
  12638. /* readonly */
  12639. UIElement modalRoot;
  12640. bool nonFocusedMouseWheel;
  12641. /* readonly */
  12642. int refs;
  12643. /* readonly */
  12644. UIElement root;
  12645. float scale;
  12646. /* readonly */
  12647. StringHash type;
  12648. /* readonly */
  12649. String typeName;
  12650. bool useMutableGlyphs;
  12651. bool useScreenKeyboard;
  12652. bool useSystemClipboard;
  12653. /* readonly */
  12654. int weakRefs;
  12655. };
  12656. class UIElement
  12657. {
  12658. // Methods:
  12659. void AddChild(UIElement);
  12660. void AddTag(const String&);
  12661. void AddTags(const String&, int8 = ';');
  12662. void ApplyAttributes();
  12663. void BringToFront();
  12664. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12665. void DisableLayoutUpdate();
  12666. IntVector2 ElementToScreen(const IntVector2&);
  12667. void EnableLayoutUpdate();
  12668. uint FindChild(UIElement) const;
  12669. Variant GetAttribute(const String&) const;
  12670. ValueAnimation GetAttributeAnimation(const String&) const;
  12671. float GetAttributeAnimationSpeed(const String&) const;
  12672. float GetAttributeAnimationTime(const String&) const;
  12673. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12674. Variant GetAttributeDefault(const String&) const;
  12675. UIElement GetChild(const String&, bool = false) const;
  12676. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12677. Array<UIElement> GetChildren(bool = false) const;
  12678. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12679. UIElement GetElementEventSender() const;
  12680. bool GetInterceptNetworkUpdate(const String&) const;
  12681. uint GetNumChildren(bool) const;
  12682. bool HasSubscribedToEvent(Object, const String&);
  12683. bool HasSubscribedToEvent(const String&);
  12684. bool HasTag(const String&) const;
  12685. void InsertChild(uint, UIElement);
  12686. bool IsInside(IntVector2, bool);
  12687. bool IsInsideCombined(IntVector2, bool);
  12688. bool Load(File, bool = false);
  12689. bool Load(VectorBuffer&, bool = false);
  12690. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12691. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12692. bool LoadJSON(const JSONValue&, bool = false);
  12693. bool LoadXML(File);
  12694. bool LoadXML(VectorBuffer&);
  12695. bool LoadXML(XMLFile, XMLFile);
  12696. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12697. bool LoadXML(const XMLElement&, bool = false);
  12698. void MarkNetworkUpdate() const;
  12699. void Remove();
  12700. void RemoveAllChildren();
  12701. void RemoveAllTags();
  12702. void RemoveAttributeAnimation(const String&);
  12703. void RemoveChild(UIElement, uint = 0);
  12704. void RemoveChild(uint);
  12705. void RemoveInstanceDefault();
  12706. void RemoveObjectAnimation();
  12707. bool RemoveTag(const String&);
  12708. void ResetDeepEnabled();
  12709. void ResetToDefault();
  12710. bool Save(File) const;
  12711. bool Save(VectorBuffer&) const;
  12712. bool SaveJSON(JSONValue&) const;
  12713. bool SaveXML(File, const String& = "\t");
  12714. bool SaveXML(VectorBuffer&, const String& = "\t");
  12715. bool SaveXML(XMLElement&) const;
  12716. IntVector2 ScreenToElement(const IntVector2&);
  12717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12718. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12719. void SetAnimationTime(float);
  12720. bool SetAttribute(const String&, const Variant&);
  12721. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12722. void SetAttributeAnimationSpeed(const String&, float);
  12723. void SetAttributeAnimationTime(const String&, float);
  12724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12725. void SetDeepEnabled(bool);
  12726. void SetEnabledRecursive(bool);
  12727. void SetFixedHeight(int);
  12728. void SetFixedSize(int, int);
  12729. void SetFixedWidth(int);
  12730. void SetInterceptNetworkUpdate(const String&, bool);
  12731. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12732. void SetMaxAnchor(float, float);
  12733. void SetMaxSize(int, int);
  12734. void SetMinAnchor(float, float);
  12735. void SetMinSize(int, int);
  12736. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12737. void SetPivot(float, float);
  12738. void SetPosition(int, int);
  12739. void SetSize(int, int);
  12740. bool SetStyle(const String&, XMLFile = null);
  12741. bool SetStyle(const XMLElement&);
  12742. bool SetStyleAuto(XMLFile = null);
  12743. void UpdateLayout();
  12744. const Variant& GetVar(const StringHash&);
  12745. // Properties:
  12746. bool animationEnabled;
  12747. /* readonly */
  12748. Array<Variant> attributeDefaults;
  12749. /* readonly */
  12750. Array<AttributeInfo> attributeInfos;
  12751. Array<Variant> attributes;
  12752. bool bringToBack;
  12753. bool bringToFront;
  12754. /* readonly */
  12755. String category;
  12756. /* readonly */
  12757. IntVector2 childOffset;
  12758. /* readonly */
  12759. Array<UIElement> children;
  12760. IntRect clipBorder;
  12761. bool clipChildren;
  12762. /* writeonly */
  12763. Color color;
  12764. /* readonly */
  12765. bool colorGradient;
  12766. Array<Color> colors;
  12767. /* readonly */
  12768. IntRect combinedScreenRect;
  12769. XMLFile defaultStyle;
  12770. /* readonly */
  12771. float derivedOpacity;
  12772. /* readonly */
  12773. uint dragButtonCombo;
  12774. /* readonly */
  12775. int dragButtonCount;
  12776. uint dragDropMode;
  12777. bool editable;
  12778. bool elementEventSender;
  12779. bool enableAnchor;
  12780. bool enabled;
  12781. /* readonly */
  12782. bool enabledSelf;
  12783. /* readonly */
  12784. bool fixedHeight;
  12785. /* readonly */
  12786. bool fixedSize;
  12787. /* readonly */
  12788. bool fixedWidth;
  12789. bool focus;
  12790. FocusMode focusMode;
  12791. int height;
  12792. HorizontalAlignment horizontalAlignment;
  12793. /* readonly */
  12794. bool hovering;
  12795. int indent;
  12796. int indentSpacing;
  12797. /* readonly */
  12798. int indentWidth;
  12799. bool internal;
  12800. IntRect layoutBorder;
  12801. Vector2 layoutFlexScale;
  12802. LayoutMode layoutMode;
  12803. int layoutSpacing;
  12804. Vector2 maxAnchor;
  12805. int maxHeight;
  12806. IntVector2 maxOffset;
  12807. IntVector2 maxSize;
  12808. int maxWidth;
  12809. Vector2 minAnchor;
  12810. int minHeight;
  12811. IntVector2 minOffset;
  12812. IntVector2 minSize;
  12813. int minWidth;
  12814. String name;
  12815. /* readonly */
  12816. uint numAllChildren;
  12817. /* readonly */
  12818. uint numAttributes;
  12819. /* readonly */
  12820. uint numChildren;
  12821. ObjectAnimation objectAnimation;
  12822. float opacity;
  12823. UIElement parent;
  12824. Vector2 pivot;
  12825. IntVector2 position;
  12826. int priority;
  12827. /* readonly */
  12828. int refs;
  12829. /* readonly */
  12830. UIElement root;
  12831. /* readonly */
  12832. IntVector2 screenPosition;
  12833. bool selected;
  12834. IntVector2 size;
  12835. bool sortChildren;
  12836. String style;
  12837. /* readonly */
  12838. Array<String> tags;
  12839. bool temporary;
  12840. TraversalMode traversalMode;
  12841. /* readonly */
  12842. StringHash type;
  12843. /* readonly */
  12844. String typeName;
  12845. bool useDerivedOpacity;
  12846. /* readonly */
  12847. VariantMap vars;
  12848. VerticalAlignment verticalAlignment;
  12849. bool visible;
  12850. /* readonly */
  12851. bool visibleEffective;
  12852. /* readonly */
  12853. int weakRefs;
  12854. int width;
  12855. };
  12856. class ValueAnimation
  12857. {
  12858. // Methods:
  12859. bool HasSubscribedToEvent(Object, const String&);
  12860. bool HasSubscribedToEvent(const String&);
  12861. bool Load(File);
  12862. bool Load(VectorBuffer&);
  12863. bool Load(const String&);
  12864. bool Save(File) const;
  12865. bool Save(VectorBuffer&) const;
  12866. bool Save(const String&) const;
  12867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12868. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12869. void SetKeyFrame(float, const Variant&);
  12870. // Properties:
  12871. /* readonly */
  12872. String category;
  12873. InterpMethod interpolationMethod;
  12874. /* readonly */
  12875. uint memoryUse;
  12876. String name;
  12877. /* readonly */
  12878. int refs;
  12879. float splineTension;
  12880. /* readonly */
  12881. StringHash type;
  12882. /* readonly */
  12883. String typeName;
  12884. /* readonly */
  12885. uint useTimer;
  12886. VariantType valueType;
  12887. /* readonly */
  12888. int weakRefs;
  12889. };
  12890. class Variant
  12891. {
  12892. // Methods:
  12893. void Clear();
  12894. const Color& GetColor() const;
  12895. void FromString(VariantType, const String&);
  12896. void FromString(const String&, const String&);
  12897. bool GetBool() const;
  12898. VectorBuffer GetBuffer() const;
  12899. double GetDouble() const;
  12900. float GetFloat() const;
  12901. int GetInt() const;
  12902. RefCounted GetPtr() const;
  12903. ScriptObject GetScriptObject() const;
  12904. StringHash GetStringHash() const;
  12905. Array<String> GetStringVector() const;
  12906. uint GetUInt() const;
  12907. Array<Variant> GetVariantVector() const;
  12908. const IntRect& GetIntRect() const;
  12909. const IntVector2& GetIntVector2() const;
  12910. const IntVector3& GetIntVector3() const;
  12911. const Matrix3& GetMatrix3() const;
  12912. const Matrix3x4& GetMatrix3x4() const;
  12913. const Matrix4& GetMatrix4() const;
  12914. const Quaternion& GetQuaternion() const;
  12915. const Rect& GetRect() const;
  12916. const ResourceRef& GetResourceRef() const;
  12917. const ResourceRefList& GetResourceRefList() const;
  12918. const String& GetString() const;
  12919. String ToString() const;
  12920. const VariantMap& GetVariantMap() const;
  12921. const Vector2& GetVector2() const;
  12922. const Vector3& GetVector3() const;
  12923. const Vector4& GetVector4() const;
  12924. // Properties:
  12925. /* readonly */
  12926. bool empty;
  12927. /* readonly */
  12928. VariantType type;
  12929. /* readonly */
  12930. String typeName;
  12931. /* readonly */
  12932. bool zero;
  12933. };
  12934. class VariantMap
  12935. {
  12936. // Methods:
  12937. void Clear();
  12938. bool Contains(StringHash) const;
  12939. bool Contains(const String&) const;
  12940. bool Erase(StringHash);
  12941. bool Erase(const String&);
  12942. // Properties:
  12943. /* readonly */
  12944. Array<StringHash> keys;
  12945. /* readonly */
  12946. uint length;
  12947. /* readonly */
  12948. Array<Variant> values;
  12949. };
  12950. class Vector2
  12951. {
  12952. // Methods:
  12953. Vector2 Abs() const;
  12954. float AbsDotProduct(const Vector2&) const;
  12955. float Angle(const Vector2&) const;
  12956. float DotProduct(const Vector2&) const;
  12957. bool Equals(const Vector2&) const;
  12958. bool IsNaN() const;
  12959. Vector2 Lerp(const Vector2&, float) const;
  12960. void Normalize();
  12961. Vector2 Normalized() const;
  12962. float ProjectOntoAxis(const Vector2&) const;
  12963. String ToString() const;
  12964. // Properties:
  12965. /* readonly */
  12966. Array<float> data;
  12967. /* readonly */
  12968. float length;
  12969. /* readonly */
  12970. float lengthSquared;
  12971. float x;
  12972. float y;
  12973. };
  12974. class Vector3
  12975. {
  12976. // Methods:
  12977. Vector3 Abs() const;
  12978. float AbsDotProduct(const Vector3&) const;
  12979. float Angle(const Vector3&) const;
  12980. Vector3 CrossProduct(const Vector3&) const;
  12981. float DotProduct(const Vector3&) const;
  12982. bool Equals(const Vector3&) const;
  12983. bool IsNaN() const;
  12984. Vector3 Lerp(const Vector3&, float) const;
  12985. void Normalize();
  12986. Vector3 Normalized() const;
  12987. float ProjectOntoAxis(const Vector3&) const;
  12988. String ToString() const;
  12989. // Properties:
  12990. /* readonly */
  12991. Array<float> data;
  12992. /* readonly */
  12993. float length;
  12994. /* readonly */
  12995. float lengthSquared;
  12996. float x;
  12997. float y;
  12998. float z;
  12999. };
  13000. class Vector4
  13001. {
  13002. // Methods:
  13003. Vector4 Abs() const;
  13004. float AbsDotProduct(const Vector4&) const;
  13005. float DotProduct(const Vector4&) const;
  13006. bool Equals(const Vector4&) const;
  13007. bool IsNaN() const;
  13008. Vector4 Lerp(const Vector4&, float) const;
  13009. float ProjectOntoAxis(const Vector3&) const;
  13010. String ToString() const;
  13011. // Properties:
  13012. /* readonly */
  13013. Array<float> data;
  13014. float w;
  13015. float x;
  13016. float y;
  13017. float z;
  13018. };
  13019. class VectorBuffer
  13020. {
  13021. // Methods:
  13022. void Clear();
  13023. Array<uint8> Read(uint);
  13024. bool ReadBool();
  13025. BoundingBox ReadBoundingBox();
  13026. int8 ReadByte();
  13027. Color ReadColor();
  13028. double ReadDouble();
  13029. String ReadFileID();
  13030. float ReadFloat();
  13031. int ReadInt();
  13032. int64 ReadInt64();
  13033. IntRect ReadIntRect();
  13034. IntVector2 ReadIntVector2();
  13035. String ReadLine();
  13036. Matrix3 ReadMatrix3();
  13037. Matrix3x4 ReadMatrix3x4();
  13038. Matrix4 ReadMatrix4();
  13039. uint ReadNetID();
  13040. Quaternion ReadPackedQuaternion();
  13041. Vector3 ReadPackedVector3(float);
  13042. Quaternion ReadQuaternion();
  13043. int16 ReadShort();
  13044. String ReadString();
  13045. StringHash ReadStringHash();
  13046. uint8 ReadUByte();
  13047. uint ReadUInt();
  13048. uint64 ReadUInt64();
  13049. uint16 ReadUShort();
  13050. uint ReadVLE();
  13051. Variant ReadVariant();
  13052. VariantMap ReadVariantMap();
  13053. Vector2 ReadVector2();
  13054. Vector3 ReadVector3();
  13055. Vector4 ReadVector4();
  13056. VectorBuffer ReadVectorBuffer(uint);
  13057. void Resize(uint);
  13058. uint Seek(uint);
  13059. void SetData(Deserializer, uint);
  13060. uint Write(Array<uint8>);
  13061. bool WriteBool(bool);
  13062. bool WriteBoundingBox(const BoundingBox&);
  13063. bool WriteByte(int8);
  13064. bool WriteColor(const Color&);
  13065. bool WriteDouble(double);
  13066. bool WriteFileID(const String&);
  13067. bool WriteFloat(float);
  13068. bool WriteInt(int);
  13069. bool WriteInt64(int64);
  13070. bool WriteIntRect(const IntRect&);
  13071. bool WriteIntVector2(const IntVector2&);
  13072. bool WriteLine(const String&);
  13073. bool WriteMatrix3(const Matrix3&);
  13074. bool WriteMatrix3x4(const Matrix3x4&);
  13075. bool WriteMatrix4(const Matrix4&);
  13076. bool WriteNetID(uint);
  13077. bool WritePackedQuaternion(const Quaternion&);
  13078. bool WritePackedVector3(const Vector3&, float);
  13079. bool WriteQuaternion(const Quaternion&);
  13080. bool WriteShort(int16);
  13081. bool WriteString(const String&);
  13082. bool WriteStringHash(const StringHash&);
  13083. bool WriteUByte(uint8);
  13084. bool WriteUInt(uint);
  13085. bool WriteUInt64(uint64);
  13086. bool WriteUShort(uint16);
  13087. bool WriteVLE(uint);
  13088. bool WriteVariant(const Variant&);
  13089. bool WriteVariantMap(const VariantMap&);
  13090. bool WriteVector2(const Vector2&);
  13091. bool WriteVector3(const Vector3&);
  13092. bool WriteVector4(const Vector4&);
  13093. bool WriteVectorBuffer(const VectorBuffer&);
  13094. // Properties:
  13095. /* readonly */
  13096. uint checksum;
  13097. /* readonly */
  13098. bool eof;
  13099. /* readonly */
  13100. String name;
  13101. /* readonly */
  13102. uint position;
  13103. /* readonly */
  13104. uint size;
  13105. };
  13106. class VertexBuffer
  13107. {
  13108. // Methods:
  13109. VectorBuffer GetData() const;
  13110. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13111. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13112. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13113. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13114. bool HasSubscribedToEvent(Object, const String&);
  13115. bool HasSubscribedToEvent(const String&);
  13116. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13117. bool SetData(VectorBuffer&);
  13118. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13119. void SetSize(uint, Array<VertexElement>, bool = false);
  13120. void SetSize(uint, uint, bool = false);
  13121. // Properties:
  13122. /* readonly */
  13123. String category;
  13124. /* readonly */
  13125. bool dynamic;
  13126. /* readonly */
  13127. uint elementMask;
  13128. /* readonly */
  13129. Array<VertexElement> elements;
  13130. /* readonly */
  13131. int refs;
  13132. bool shadowed;
  13133. /* readonly */
  13134. StringHash type;
  13135. /* readonly */
  13136. String typeName;
  13137. /* readonly */
  13138. uint vertexCount;
  13139. /* readonly */
  13140. uint vertexSize;
  13141. /* readonly */
  13142. int weakRefs;
  13143. };
  13144. class VertexElement
  13145. {
  13146. // Properties:
  13147. uint8 index;
  13148. uint offset;
  13149. bool perInstance;
  13150. VertexElementSemantic semantic;
  13151. VertexElementType type;
  13152. };
  13153. class View3D
  13154. {
  13155. // Methods:
  13156. void AddChild(UIElement);
  13157. void AddTag(const String&);
  13158. void AddTags(const String&, int8 = ';');
  13159. void ApplyAttributes();
  13160. void BringToFront();
  13161. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13162. void DisableLayoutUpdate();
  13163. IntVector2 ElementToScreen(const IntVector2&);
  13164. void EnableLayoutUpdate();
  13165. uint FindChild(UIElement) const;
  13166. Variant GetAttribute(const String&) const;
  13167. ValueAnimation GetAttributeAnimation(const String&) const;
  13168. float GetAttributeAnimationSpeed(const String&) const;
  13169. float GetAttributeAnimationTime(const String&) const;
  13170. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13171. Variant GetAttributeDefault(const String&) const;
  13172. UIElement GetChild(const String&, bool = false) const;
  13173. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13174. Array<UIElement> GetChildren(bool = false) const;
  13175. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13176. UIElement GetElementEventSender() const;
  13177. bool GetInterceptNetworkUpdate(const String&) const;
  13178. uint GetNumChildren(bool) const;
  13179. bool HasSubscribedToEvent(Object, const String&);
  13180. bool HasSubscribedToEvent(const String&);
  13181. bool HasTag(const String&) const;
  13182. void InsertChild(uint, UIElement);
  13183. bool IsInside(IntVector2, bool);
  13184. bool IsInsideCombined(IntVector2, bool);
  13185. bool Load(File, bool = false);
  13186. bool Load(VectorBuffer&, bool = false);
  13187. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13188. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13189. bool LoadJSON(const JSONValue&, bool = false);
  13190. bool LoadXML(File);
  13191. bool LoadXML(VectorBuffer&);
  13192. bool LoadXML(XMLFile, XMLFile);
  13193. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13194. bool LoadXML(const XMLElement&, bool = false);
  13195. void MarkNetworkUpdate() const;
  13196. void QueueUpdate();
  13197. void Remove();
  13198. void RemoveAllChildren();
  13199. void RemoveAllTags();
  13200. void RemoveAttributeAnimation(const String&);
  13201. void RemoveChild(UIElement, uint = 0);
  13202. void RemoveChild(uint);
  13203. void RemoveInstanceDefault();
  13204. void RemoveObjectAnimation();
  13205. bool RemoveTag(const String&);
  13206. void ResetDeepEnabled();
  13207. void ResetToDefault();
  13208. bool Save(File) const;
  13209. bool Save(VectorBuffer&) const;
  13210. bool SaveJSON(JSONValue&) const;
  13211. bool SaveXML(File, const String& = "\t");
  13212. bool SaveXML(VectorBuffer&, const String& = "\t");
  13213. bool SaveXML(XMLElement&) const;
  13214. IntVector2 ScreenToElement(const IntVector2&);
  13215. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13216. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13217. void SetAnimationTime(float);
  13218. bool SetAttribute(const String&, const Variant&);
  13219. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13220. void SetAttributeAnimationSpeed(const String&, float);
  13221. void SetAttributeAnimationTime(const String&, float);
  13222. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13223. void SetDeepEnabled(bool);
  13224. void SetEnabledRecursive(bool);
  13225. void SetFixedHeight(int);
  13226. void SetFixedSize(int, int);
  13227. void SetFixedWidth(int);
  13228. void SetFullImageRect();
  13229. void SetHoverOffset(int, int);
  13230. void SetInterceptNetworkUpdate(const String&, bool);
  13231. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13232. void SetMaxAnchor(float, float);
  13233. void SetMaxSize(int, int);
  13234. void SetMinAnchor(float, float);
  13235. void SetMinSize(int, int);
  13236. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13237. void SetPivot(float, float);
  13238. void SetPosition(int, int);
  13239. void SetSize(int, int);
  13240. bool SetStyle(const String&, XMLFile = null);
  13241. bool SetStyle(const XMLElement&);
  13242. bool SetStyleAuto(XMLFile = null);
  13243. void SetView(Scene, Camera, bool = true);
  13244. void UpdateLayout();
  13245. const Variant& GetVar(const StringHash&);
  13246. // Properties:
  13247. bool animationEnabled;
  13248. /* readonly */
  13249. Array<Variant> attributeDefaults;
  13250. /* readonly */
  13251. Array<AttributeInfo> attributeInfos;
  13252. Array<Variant> attributes;
  13253. bool autoUpdate;
  13254. BlendMode blendMode;
  13255. IntRect border;
  13256. bool bringToBack;
  13257. bool bringToFront;
  13258. /* readonly */
  13259. Node cameraNode;
  13260. /* readonly */
  13261. String category;
  13262. /* readonly */
  13263. IntVector2 childOffset;
  13264. /* readonly */
  13265. Array<UIElement> children;
  13266. IntRect clipBorder;
  13267. bool clipChildren;
  13268. /* writeonly */
  13269. Color color;
  13270. /* readonly */
  13271. bool colorGradient;
  13272. Array<Color> colors;
  13273. /* readonly */
  13274. IntRect combinedScreenRect;
  13275. XMLFile defaultStyle;
  13276. /* readonly */
  13277. Texture2D depthTexture;
  13278. /* readonly */
  13279. float derivedOpacity;
  13280. /* readonly */
  13281. uint dragButtonCombo;
  13282. /* readonly */
  13283. int dragButtonCount;
  13284. uint dragDropMode;
  13285. bool editable;
  13286. bool elementEventSender;
  13287. bool enableAnchor;
  13288. bool enabled;
  13289. /* readonly */
  13290. bool enabledSelf;
  13291. /* readonly */
  13292. bool fixedHeight;
  13293. bool fixedHeightResizing;
  13294. /* readonly */
  13295. bool fixedSize;
  13296. /* readonly */
  13297. bool fixedWidth;
  13298. bool fixedWidthResizing;
  13299. bool focus;
  13300. FocusMode focusMode;
  13301. uint format;
  13302. int height;
  13303. HorizontalAlignment horizontalAlignment;
  13304. IntVector2 hoverOffset;
  13305. /* readonly */
  13306. bool hovering;
  13307. IntRect imageBorder;
  13308. IntRect imageRect;
  13309. int indent;
  13310. int indentSpacing;
  13311. /* readonly */
  13312. int indentWidth;
  13313. bool internal;
  13314. IntRect layoutBorder;
  13315. Vector2 layoutFlexScale;
  13316. LayoutMode layoutMode;
  13317. int layoutSpacing;
  13318. Vector2 maxAnchor;
  13319. int maxHeight;
  13320. IntVector2 maxOffset;
  13321. IntVector2 maxSize;
  13322. int maxWidth;
  13323. Vector2 minAnchor;
  13324. int minHeight;
  13325. IntVector2 minOffset;
  13326. IntVector2 minSize;
  13327. int minWidth;
  13328. bool modal;
  13329. bool modalAutoDismiss;
  13330. Color modalFrameColor;
  13331. IntVector2 modalFrameSize;
  13332. Color modalShadeColor;
  13333. bool movable;
  13334. String name;
  13335. /* readonly */
  13336. uint numAllChildren;
  13337. /* readonly */
  13338. uint numAttributes;
  13339. /* readonly */
  13340. uint numChildren;
  13341. ObjectAnimation objectAnimation;
  13342. float opacity;
  13343. UIElement parent;
  13344. Vector2 pivot;
  13345. IntVector2 position;
  13346. int priority;
  13347. /* readonly */
  13348. int refs;
  13349. /* readonly */
  13350. Texture2D renderTexture;
  13351. bool resizable;
  13352. IntRect resizeBorder;
  13353. /* readonly */
  13354. UIElement root;
  13355. /* readonly */
  13356. Scene scene;
  13357. /* readonly */
  13358. IntVector2 screenPosition;
  13359. bool selected;
  13360. IntVector2 size;
  13361. bool sortChildren;
  13362. String style;
  13363. /* readonly */
  13364. Array<String> tags;
  13365. bool temporary;
  13366. Texture texture;
  13367. bool tiled;
  13368. TraversalMode traversalMode;
  13369. /* readonly */
  13370. StringHash type;
  13371. /* readonly */
  13372. String typeName;
  13373. bool useDerivedOpacity;
  13374. /* readonly */
  13375. VariantMap vars;
  13376. VerticalAlignment verticalAlignment;
  13377. /* readonly */
  13378. Viewport viewport;
  13379. bool visible;
  13380. /* readonly */
  13381. bool visibleEffective;
  13382. /* readonly */
  13383. int weakRefs;
  13384. int width;
  13385. };
  13386. class Viewport
  13387. {
  13388. // Methods:
  13389. Ray GetScreenRay(int, int) const;
  13390. bool HasSubscribedToEvent(Object, const String&);
  13391. bool HasSubscribedToEvent(const String&);
  13392. Vector3 ScreenToWorldPoint(int, int, float) const;
  13393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13394. void SetRenderPath(XMLFile);
  13395. IntVector2 WorldToScreenPoint(const Vector3&) const;
  13396. // Properties:
  13397. Camera camera;
  13398. /* readonly */
  13399. String category;
  13400. Camera cullCamera;
  13401. bool drawDebug;
  13402. IntRect rect;
  13403. /* readonly */
  13404. int refs;
  13405. RenderPath renderPath;
  13406. Scene scene;
  13407. /* readonly */
  13408. StringHash type;
  13409. /* readonly */
  13410. String typeName;
  13411. /* readonly */
  13412. int weakRefs;
  13413. };
  13414. class WeakHandle
  13415. {
  13416. // Methods:
  13417. RefCounted Get() const;
  13418. // Properties:
  13419. /* readonly */
  13420. bool expired;
  13421. /* readonly */
  13422. int refs;
  13423. /* readonly */
  13424. int weakRefs;
  13425. };
  13426. class Window
  13427. {
  13428. // Methods:
  13429. void AddChild(UIElement);
  13430. void AddTag(const String&);
  13431. void AddTags(const String&, int8 = ';');
  13432. void ApplyAttributes();
  13433. void BringToFront();
  13434. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13435. void DisableLayoutUpdate();
  13436. IntVector2 ElementToScreen(const IntVector2&);
  13437. void EnableLayoutUpdate();
  13438. uint FindChild(UIElement) const;
  13439. Variant GetAttribute(const String&) const;
  13440. ValueAnimation GetAttributeAnimation(const String&) const;
  13441. float GetAttributeAnimationSpeed(const String&) const;
  13442. float GetAttributeAnimationTime(const String&) const;
  13443. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13444. Variant GetAttributeDefault(const String&) const;
  13445. UIElement GetChild(const String&, bool = false) const;
  13446. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13447. Array<UIElement> GetChildren(bool = false) const;
  13448. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13449. UIElement GetElementEventSender() const;
  13450. bool GetInterceptNetworkUpdate(const String&) const;
  13451. uint GetNumChildren(bool) const;
  13452. bool HasSubscribedToEvent(Object, const String&);
  13453. bool HasSubscribedToEvent(const String&);
  13454. bool HasTag(const String&) const;
  13455. void InsertChild(uint, UIElement);
  13456. bool IsInside(IntVector2, bool);
  13457. bool IsInsideCombined(IntVector2, bool);
  13458. bool Load(File, bool = false);
  13459. bool Load(VectorBuffer&, bool = false);
  13460. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13461. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13462. bool LoadJSON(const JSONValue&, bool = false);
  13463. bool LoadXML(File);
  13464. bool LoadXML(VectorBuffer&);
  13465. bool LoadXML(XMLFile, XMLFile);
  13466. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13467. bool LoadXML(const XMLElement&, bool = false);
  13468. void MarkNetworkUpdate() const;
  13469. void Remove();
  13470. void RemoveAllChildren();
  13471. void RemoveAllTags();
  13472. void RemoveAttributeAnimation(const String&);
  13473. void RemoveChild(UIElement, uint = 0);
  13474. void RemoveChild(uint);
  13475. void RemoveInstanceDefault();
  13476. void RemoveObjectAnimation();
  13477. bool RemoveTag(const String&);
  13478. void ResetDeepEnabled();
  13479. void ResetToDefault();
  13480. bool Save(File) const;
  13481. bool Save(VectorBuffer&) const;
  13482. bool SaveJSON(JSONValue&) const;
  13483. bool SaveXML(File, const String& = "\t");
  13484. bool SaveXML(VectorBuffer&, const String& = "\t");
  13485. bool SaveXML(XMLElement&) const;
  13486. IntVector2 ScreenToElement(const IntVector2&);
  13487. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13488. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13489. void SetAnimationTime(float);
  13490. bool SetAttribute(const String&, const Variant&);
  13491. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13492. void SetAttributeAnimationSpeed(const String&, float);
  13493. void SetAttributeAnimationTime(const String&, float);
  13494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13495. void SetDeepEnabled(bool);
  13496. void SetEnabledRecursive(bool);
  13497. void SetFixedHeight(int);
  13498. void SetFixedSize(int, int);
  13499. void SetFixedWidth(int);
  13500. void SetFullImageRect();
  13501. void SetHoverOffset(int, int);
  13502. void SetInterceptNetworkUpdate(const String&, bool);
  13503. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13504. void SetMaxAnchor(float, float);
  13505. void SetMaxSize(int, int);
  13506. void SetMinAnchor(float, float);
  13507. void SetMinSize(int, int);
  13508. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13509. void SetPivot(float, float);
  13510. void SetPosition(int, int);
  13511. void SetSize(int, int);
  13512. bool SetStyle(const String&, XMLFile = null);
  13513. bool SetStyle(const XMLElement&);
  13514. bool SetStyleAuto(XMLFile = null);
  13515. void UpdateLayout();
  13516. const Variant& GetVar(const StringHash&);
  13517. // Properties:
  13518. bool animationEnabled;
  13519. /* readonly */
  13520. Array<Variant> attributeDefaults;
  13521. /* readonly */
  13522. Array<AttributeInfo> attributeInfos;
  13523. Array<Variant> attributes;
  13524. BlendMode blendMode;
  13525. IntRect border;
  13526. bool bringToBack;
  13527. bool bringToFront;
  13528. /* readonly */
  13529. String category;
  13530. /* readonly */
  13531. IntVector2 childOffset;
  13532. /* readonly */
  13533. Array<UIElement> children;
  13534. IntRect clipBorder;
  13535. bool clipChildren;
  13536. /* writeonly */
  13537. Color color;
  13538. /* readonly */
  13539. bool colorGradient;
  13540. Array<Color> colors;
  13541. /* readonly */
  13542. IntRect combinedScreenRect;
  13543. XMLFile defaultStyle;
  13544. /* readonly */
  13545. float derivedOpacity;
  13546. /* readonly */
  13547. uint dragButtonCombo;
  13548. /* readonly */
  13549. int dragButtonCount;
  13550. uint dragDropMode;
  13551. bool editable;
  13552. bool elementEventSender;
  13553. bool enableAnchor;
  13554. bool enabled;
  13555. /* readonly */
  13556. bool enabledSelf;
  13557. /* readonly */
  13558. bool fixedHeight;
  13559. bool fixedHeightResizing;
  13560. /* readonly */
  13561. bool fixedSize;
  13562. /* readonly */
  13563. bool fixedWidth;
  13564. bool fixedWidthResizing;
  13565. bool focus;
  13566. FocusMode focusMode;
  13567. int height;
  13568. HorizontalAlignment horizontalAlignment;
  13569. IntVector2 hoverOffset;
  13570. /* readonly */
  13571. bool hovering;
  13572. IntRect imageBorder;
  13573. IntRect imageRect;
  13574. int indent;
  13575. int indentSpacing;
  13576. /* readonly */
  13577. int indentWidth;
  13578. bool internal;
  13579. IntRect layoutBorder;
  13580. Vector2 layoutFlexScale;
  13581. LayoutMode layoutMode;
  13582. int layoutSpacing;
  13583. Vector2 maxAnchor;
  13584. int maxHeight;
  13585. IntVector2 maxOffset;
  13586. IntVector2 maxSize;
  13587. int maxWidth;
  13588. Vector2 minAnchor;
  13589. int minHeight;
  13590. IntVector2 minOffset;
  13591. IntVector2 minSize;
  13592. int minWidth;
  13593. bool modal;
  13594. bool modalAutoDismiss;
  13595. Color modalFrameColor;
  13596. IntVector2 modalFrameSize;
  13597. Color modalShadeColor;
  13598. bool movable;
  13599. String name;
  13600. /* readonly */
  13601. uint numAllChildren;
  13602. /* readonly */
  13603. uint numAttributes;
  13604. /* readonly */
  13605. uint numChildren;
  13606. ObjectAnimation objectAnimation;
  13607. float opacity;
  13608. UIElement parent;
  13609. Vector2 pivot;
  13610. IntVector2 position;
  13611. int priority;
  13612. /* readonly */
  13613. int refs;
  13614. bool resizable;
  13615. IntRect resizeBorder;
  13616. /* readonly */
  13617. UIElement root;
  13618. /* readonly */
  13619. IntVector2 screenPosition;
  13620. bool selected;
  13621. IntVector2 size;
  13622. bool sortChildren;
  13623. String style;
  13624. /* readonly */
  13625. Array<String> tags;
  13626. bool temporary;
  13627. Texture texture;
  13628. bool tiled;
  13629. TraversalMode traversalMode;
  13630. /* readonly */
  13631. StringHash type;
  13632. /* readonly */
  13633. String typeName;
  13634. bool useDerivedOpacity;
  13635. /* readonly */
  13636. VariantMap vars;
  13637. VerticalAlignment verticalAlignment;
  13638. bool visible;
  13639. /* readonly */
  13640. bool visibleEffective;
  13641. /* readonly */
  13642. int weakRefs;
  13643. int width;
  13644. };
  13645. class XMLElement
  13646. {
  13647. // Methods:
  13648. XMLElement CreateChild(const String&);
  13649. String GetAttribute(const String& = String ( )) const;
  13650. String GetAttributeLower(const String&) const;
  13651. Array<String> GetAttributeNames() const;
  13652. String GetAttributeUpper(const String&) const;
  13653. bool GetBool(const String&) const;
  13654. BoundingBox GetBoundingBox() const;
  13655. XMLElement GetChild(const String& = String ( )) const;
  13656. Color GetColor(const String&) const;
  13657. double GetDouble(const String&) const;
  13658. float GetFloat(const String&) const;
  13659. int GetInt(const String&) const;
  13660. IntRect GetIntRect(const String&) const;
  13661. IntVector2 GetIntVector2(const String&) const;
  13662. IntVector3 GetIntVector3(const String&) const;
  13663. Matrix3 GetMatrix3(const String&) const;
  13664. Matrix3x4 GetMatrix3x4(const String&) const;
  13665. Matrix4 GetMatrix4(const String&) const;
  13666. XMLElement GetNext(const String& = String ( )) const;
  13667. XMLElement GetOrCreateChild(const String&);
  13668. Quaternion GetQuaternion(const String&) const;
  13669. ResourceRef GetResourceRef() const;
  13670. ResourceRefList GetResourceRefList() const;
  13671. uint GetUInt(const String&) const;
  13672. String GetValue() const;
  13673. Variant GetVariant() const;
  13674. VariantMap GetVariantMap() const;
  13675. Array<Variant> GetVariantVector() const;
  13676. Vector2 GetVector2(const String&) const;
  13677. Vector3 GetVector3(const String&) const;
  13678. Vector4 GetVector4(const String&) const;
  13679. Variant GetVectorVariant(const String&) const;
  13680. bool HasAttribute(const String&) const;
  13681. bool HasChild(const String&) const;
  13682. bool RemoveAttribute(const String& = String ( ));
  13683. bool RemoveChild(const String&);
  13684. bool RemoveChild(const XMLElement&);
  13685. bool RemoveChildren(const String& = String ( ));
  13686. XPathResultSet Select(const String&);
  13687. XPathResultSet SelectPrepared(const XPathQuery&);
  13688. XMLElement SelectSingle(const String&);
  13689. XMLElement SelectSinglePrepared(const XPathQuery&);
  13690. bool SetAttribute(const String&);
  13691. bool SetAttribute(const String&, const String&);
  13692. bool SetBool(const String&, bool);
  13693. bool SetBoundingBox(const BoundingBox&);
  13694. bool SetColor(const String&, const Color&);
  13695. bool SetDouble(const String&, double);
  13696. bool SetFloat(const String&, float);
  13697. bool SetInt(const String&, int);
  13698. bool SetIntRect(const String&, const IntRect&);
  13699. bool SetIntVector2(const String&, const IntVector2&);
  13700. bool SetIntVector3(const String&, const IntVector3&);
  13701. bool SetMatrix3(const String&, const Matrix3&);
  13702. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13703. bool SetMatrix4(const String&, const Matrix4&);
  13704. bool SetQuaternion(const String&, const Quaternion&);
  13705. bool SetResourceRef(const String&, const ResourceRef&);
  13706. bool SetResourceRefList(const String&, const ResourceRefList&);
  13707. bool SetUInt(const String&, uint);
  13708. bool SetValue(const String&);
  13709. bool SetVariant(const Variant&);
  13710. bool SetVariantMap(const VariantMap&);
  13711. bool SetVariantVector(Array<Variant>);
  13712. bool SetVector2(const String&, const Vector2&);
  13713. bool SetVector3(const String&, const Vector3&);
  13714. bool SetVector4(const String&, const Vector4&);
  13715. bool SetVectorVariant(const String&, const Variant&);
  13716. // Properties:
  13717. /* readonly */
  13718. XMLFile file;
  13719. /* readonly */
  13720. bool isNull;
  13721. /* readonly */
  13722. String name;
  13723. /* readonly */
  13724. XMLElement nextResult;
  13725. /* readonly */
  13726. bool notNull;
  13727. /* readonly */
  13728. uint numAttributes;
  13729. /* readonly */
  13730. XMLElement parent;
  13731. String value;
  13732. };
  13733. class XMLFile
  13734. {
  13735. // Methods:
  13736. XMLElement CreateRoot(const String&);
  13737. bool FromString(const String&);
  13738. XMLElement GetOrCreateRoot(const String&);
  13739. XMLElement GetRoot(const String& = String ( ));
  13740. bool HasSubscribedToEvent(Object, const String&);
  13741. bool HasSubscribedToEvent(const String&);
  13742. bool Load(File);
  13743. bool Load(VectorBuffer&);
  13744. bool Load(const String&);
  13745. void Patch(XMLElement);
  13746. void Patch(XMLFile);
  13747. bool Save(File) const;
  13748. bool Save(File, const String&) const;
  13749. bool Save(VectorBuffer&) const;
  13750. bool Save(const String&) const;
  13751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13752. String ToString(const String& = String ( "\t" )) const;
  13753. // Properties:
  13754. /* readonly */
  13755. String category;
  13756. /* readonly */
  13757. uint memoryUse;
  13758. String name;
  13759. /* readonly */
  13760. int refs;
  13761. /* readonly */
  13762. XMLElement root;
  13763. /* readonly */
  13764. StringHash type;
  13765. /* readonly */
  13766. String typeName;
  13767. /* readonly */
  13768. uint useTimer;
  13769. /* readonly */
  13770. int weakRefs;
  13771. };
  13772. class XPathQuery
  13773. {
  13774. // Methods:
  13775. void Bind();
  13776. void Clear();
  13777. XPathResultSet Evaluate(XMLElement);
  13778. bool EvaluateToBool(XMLElement);
  13779. float EvaluateToFloat(XMLElement);
  13780. String EvaluateToString(XMLElement);
  13781. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13782. bool SetVariable(const String&, bool);
  13783. bool SetVariable(const String&, const String&);
  13784. bool SetVariable(const String&, const XPathResultSet&);
  13785. bool SetVariable(const String&, float);
  13786. // Properties:
  13787. String query;
  13788. };
  13789. class XPathResultSet
  13790. {
  13791. // Properties:
  13792. /* readonly */
  13793. bool empty;
  13794. /* readonly */
  13795. XMLElement firstResult;
  13796. /* readonly */
  13797. uint size;
  13798. };
  13799. class Zone
  13800. {
  13801. // Methods:
  13802. void ApplyAttributes();
  13803. void DrawDebugGeometry(DebugRenderer, bool);
  13804. Variant GetAttribute(const String&) const;
  13805. ValueAnimation GetAttributeAnimation(const String&) const;
  13806. float GetAttributeAnimationSpeed(const String&) const;
  13807. float GetAttributeAnimationTime(const String&) const;
  13808. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13809. Variant GetAttributeDefault(const String&) const;
  13810. bool GetInterceptNetworkUpdate(const String&) const;
  13811. bool HasSubscribedToEvent(Object, const String&);
  13812. bool HasSubscribedToEvent(const String&);
  13813. bool IsInView(Camera) const;
  13814. bool Load(File, bool = false);
  13815. bool Load(VectorBuffer&, bool = false);
  13816. bool LoadJSON(const JSONValue&, bool = false);
  13817. bool LoadXML(const XMLElement&, bool = false);
  13818. void MarkNetworkUpdate() const;
  13819. void Remove();
  13820. void RemoveAttributeAnimation(const String&);
  13821. void RemoveInstanceDefault();
  13822. void RemoveObjectAnimation();
  13823. void ResetToDefault();
  13824. bool Save(File) const;
  13825. bool Save(VectorBuffer&) const;
  13826. bool SaveJSON(JSONValue&) const;
  13827. bool SaveXML(XMLElement&) const;
  13828. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13829. void SetAnimationTime(float);
  13830. bool SetAttribute(const String&, const Variant&);
  13831. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13832. void SetAttributeAnimationSpeed(const String&, float);
  13833. void SetAttributeAnimationTime(const String&, float);
  13834. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13835. void SetInterceptNetworkUpdate(const String&, bool);
  13836. // Properties:
  13837. Color ambientColor;
  13838. /* readonly */
  13839. Color ambientEndColor;
  13840. bool ambientGradient;
  13841. /* readonly */
  13842. Color ambientStartColor;
  13843. bool animationEnabled;
  13844. /* readonly */
  13845. Array<Variant> attributeDefaults;
  13846. /* readonly */
  13847. Array<AttributeInfo> attributeInfos;
  13848. Array<Variant> attributes;
  13849. BoundingBox boundingBox;
  13850. bool castShadows;
  13851. /* readonly */
  13852. String category;
  13853. float drawDistance;
  13854. bool enabled;
  13855. /* readonly */
  13856. bool enabledEffective;
  13857. Color fogColor;
  13858. float fogEnd;
  13859. float fogHeight;
  13860. float fogHeightScale;
  13861. float fogStart;
  13862. bool heightFog;
  13863. /* readonly */
  13864. uint id;
  13865. /* readonly */
  13866. bool inView;
  13867. /* readonly */
  13868. Matrix3x4 inverseWorldTransform;
  13869. uint lightMask;
  13870. float lodBias;
  13871. uint maxLights;
  13872. /* readonly */
  13873. Node node;
  13874. /* readonly */
  13875. uint numAttributes;
  13876. ObjectAnimation objectAnimation;
  13877. bool occludee;
  13878. bool occluder;
  13879. bool override;
  13880. int priority;
  13881. /* readonly */
  13882. int refs;
  13883. float shadowDistance;
  13884. uint shadowMask;
  13885. bool temporary;
  13886. /* readonly */
  13887. StringHash type;
  13888. /* readonly */
  13889. String typeName;
  13890. uint viewMask;
  13891. /* readonly */
  13892. int weakRefs;
  13893. /* readonly */
  13894. BoundingBox worldBoundingBox;
  13895. uint zoneMask;
  13896. Texture zoneTexture;
  13897. };
  13898. // Enumerations
  13899. enum AnimationBlendMode
  13900. {
  13901. ABM_LERP,
  13902. ABM_ADDITIVE,
  13903. };
  13904. enum AutoRemoveMode
  13905. {
  13906. REMOVE_DISABLED,
  13907. REMOVE_COMPONENT,
  13908. REMOVE_NODE,
  13909. };
  13910. enum BlendMode
  13911. {
  13912. BLEND_REPLACE,
  13913. BLEND_ADD,
  13914. BLEND_MULTIPLY,
  13915. BLEND_ALPHA,
  13916. BLEND_ADDALPHA,
  13917. BLEND_PREMULALPHA,
  13918. BLEND_INVDESTALPHA,
  13919. BLEND_SUBTRACT,
  13920. BLEND_SUBTRACTALPHA,
  13921. };
  13922. enum BodyType2D
  13923. {
  13924. BT_STATIC,
  13925. BT_KINEMATIC,
  13926. BT_DYNAMIC,
  13927. };
  13928. enum CollisionEventMode
  13929. {
  13930. COLLISION_NEVER,
  13931. COLLISION_ACTIVE,
  13932. COLLISION_ALWAYS,
  13933. };
  13934. enum CompareMode
  13935. {
  13936. CMP_ALWAYS,
  13937. CMP_EQUAL,
  13938. CMP_NOTEQUAL,
  13939. CMP_LESS,
  13940. CMP_LESSEQUAL,
  13941. CMP_GREATER,
  13942. CMP_GREATEREQUAL,
  13943. };
  13944. enum CompressedFormat
  13945. {
  13946. CF_NONE,
  13947. CF_RGBA,
  13948. CF_DXT1,
  13949. CF_DXT3,
  13950. CF_DXT5,
  13951. CF_ETC1,
  13952. CF_PVRTC_RGB_2BPP,
  13953. CF_PVRTC_RGBA_2BPP,
  13954. CF_PVRTC_RGB_4BPP,
  13955. CF_PVRTC_RGBA_4BPP,
  13956. };
  13957. enum ConstraintType
  13958. {
  13959. CONSTRAINT_POINT,
  13960. CONSTRAINT_HINGE,
  13961. CONSTRAINT_SLIDER,
  13962. CONSTRAINT_CONETWIST,
  13963. };
  13964. enum Corner
  13965. {
  13966. C_TOPLEFT,
  13967. C_TOPRIGHT,
  13968. C_BOTTOMLEFT,
  13969. C_BOTTOMRIGHT,
  13970. };
  13971. enum CreateMode
  13972. {
  13973. REPLICATED,
  13974. LOCAL,
  13975. };
  13976. enum CrowdAgentRequestedTarget
  13977. {
  13978. CA_REQUESTEDTARGET_NONE,
  13979. CA_REQUESTEDTARGET_POSITION,
  13980. CA_REQUESTEDTARGET_VELOCITY,
  13981. };
  13982. enum CrowdAgentState
  13983. {
  13984. CA_STATE_INVALID,
  13985. CA_STATE_WALKING,
  13986. CA_STATE_OFFMESH,
  13987. };
  13988. enum CrowdAgentTargetState
  13989. {
  13990. CA_TARGET_NONE,
  13991. CA_TARGET_FAILED,
  13992. CA_TARGET_VALID,
  13993. CA_TARGET_REQUESTING,
  13994. CA_TARGET_WAITINGFORQUEUE,
  13995. CA_TARGET_WAITINGFORPATH,
  13996. CA_TARGET_VELOCITY,
  13997. };
  13998. enum CubeMapFace
  13999. {
  14000. FACE_POSITIVE_X,
  14001. FACE_NEGATIVE_X,
  14002. FACE_POSITIVE_Y,
  14003. FACE_NEGATIVE_Y,
  14004. FACE_POSITIVE_Z,
  14005. FACE_NEGATIVE_Z,
  14006. };
  14007. enum CullMode
  14008. {
  14009. CULL_NONE,
  14010. CULL_CCW,
  14011. CULL_CW,
  14012. };
  14013. enum CursorShape
  14014. {
  14015. CS_NORMAL,
  14016. CS_IBEAM,
  14017. CS_CROSS,
  14018. CS_RESIZEVERTICAL,
  14019. CS_RESIZEDIAGONAL_TOPRIGHT,
  14020. CS_RESIZEHORIZONTAL,
  14021. CS_RESIZEDIAGONAL_TOPLEFT,
  14022. CS_RESIZE_ALL,
  14023. CS_ACCEPTDROP,
  14024. CS_REJECTDROP,
  14025. CS_BUSY,
  14026. CS_BUSY_ARROW,
  14027. };
  14028. enum DBAPI
  14029. {
  14030. DBAPI_SQLITE,
  14031. DBAPI_ODBC,
  14032. };
  14033. enum DumpMode
  14034. {
  14035. DOXYGEN,
  14036. C_HEADER,
  14037. };
  14038. enum EmitterType
  14039. {
  14040. EMITTER_SPHERE,
  14041. EMITTER_BOX,
  14042. };
  14043. enum EmitterType2D
  14044. {
  14045. EMITTER_TYPE_GRAVITY,
  14046. EMITTER_TYPE_RADIAL,
  14047. };
  14048. enum FaceCameraMode
  14049. {
  14050. FC_NONE,
  14051. FC_ROTATE_XYZ,
  14052. FC_ROTATE_Y,
  14053. FC_LOOKAT_XYZ,
  14054. FC_LOOKAT_Y,
  14055. FC_LOOKAT_MIXED,
  14056. FC_DIRECTION,
  14057. };
  14058. enum FileMode
  14059. {
  14060. FILE_READ,
  14061. FILE_WRITE,
  14062. FILE_READWRITE,
  14063. };
  14064. enum FillMode
  14065. {
  14066. FILL_SOLID,
  14067. FILL_WIREFRAME,
  14068. FILL_POINT,
  14069. };
  14070. enum FocusMode
  14071. {
  14072. FM_NOTFOCUSABLE,
  14073. FM_RESETFOCUS,
  14074. FM_FOCUSABLE,
  14075. FM_FOCUSABLE_DEFOCUSABLE,
  14076. };
  14077. enum FontType
  14078. {
  14079. FONT_NONE,
  14080. FONT_FREETYPE,
  14081. FONT_BITMAP,
  14082. };
  14083. enum HighlightMode
  14084. {
  14085. HM_NEVER,
  14086. HM_FOCUS,
  14087. HM_ALWAYS,
  14088. };
  14089. enum HorizontalAlignment
  14090. {
  14091. HA_LEFT,
  14092. HA_CENTER,
  14093. HA_RIGHT,
  14094. HA_CUSTOM,
  14095. };
  14096. enum HttpRequestState
  14097. {
  14098. HTTP_INITIALIZING,
  14099. HTTP_ERROR,
  14100. HTTP_OPEN,
  14101. HTTP_CLOSED,
  14102. };
  14103. enum InterpMethod
  14104. {
  14105. IM_NONE,
  14106. IM_LINEAR,
  14107. IM_SPLINE,
  14108. };
  14109. enum InterpolationMode
  14110. {
  14111. BEZIER_CURVE,
  14112. CATMULL_ROM_CURVE,
  14113. LINEAR_CURVE,
  14114. CATMULL_ROM_FULL_CURVE,
  14115. };
  14116. enum Intersection
  14117. {
  14118. OUTSIDE,
  14119. INTERSECTS,
  14120. INSIDE,
  14121. };
  14122. enum JSONNumberType
  14123. {
  14124. JSONNT_NAN,
  14125. JSONNT_INT,
  14126. JSONNT_UINT,
  14127. JSONNT_FLOAT_DOUBLE,
  14128. };
  14129. enum JSONValueType
  14130. {
  14131. JSON_NULL,
  14132. JSON_BOOL,
  14133. JSON_NUMBER,
  14134. JSON_STRING,
  14135. JSON_ARRAY,
  14136. JSON_OBJECT,
  14137. };
  14138. enum LayoutMode
  14139. {
  14140. LM_FREE,
  14141. LM_HORIZONTAL,
  14142. LM_VERTICAL,
  14143. };
  14144. enum LightType
  14145. {
  14146. LIGHT_DIRECTIONAL,
  14147. LIGHT_SPOT,
  14148. LIGHT_POINT,
  14149. };
  14150. enum LoadMode
  14151. {
  14152. LOAD_RESOURCES_ONLY,
  14153. LOAD_SCENE,
  14154. LOAD_SCENE_AND_RESOURCES,
  14155. };
  14156. enum LoopMode2D
  14157. {
  14158. LM_DEFAULT,
  14159. LM_FORCE_LOOPED,
  14160. LM_FORCE_CLAMPED,
  14161. };
  14162. enum MouseMode
  14163. {
  14164. MM_ABSOLUTE,
  14165. MM_RELATIVE,
  14166. MM_WRAP,
  14167. MM_FREE,
  14168. };
  14169. enum NavigationPushiness
  14170. {
  14171. NAVIGATIONPUSHINESS_LOW,
  14172. NAVIGATIONPUSHINESS_MEDIUM,
  14173. NAVIGATIONPUSHINESS_HIGH,
  14174. NAVIGATIONPUSHINESS_NONE,
  14175. };
  14176. enum NavigationQuality
  14177. {
  14178. NAVIGATIONQUALITY_LOW,
  14179. NAVIGATIONQUALITY_MEDIUM,
  14180. NAVIGATIONQUALITY_HIGH,
  14181. };
  14182. enum NavmeshPartitionType
  14183. {
  14184. NAVMESH_PARTITION_WATERSHED,
  14185. NAVMESH_PARTITION_MONOTONE,
  14186. };
  14187. enum Orientation
  14188. {
  14189. O_HORIZONTAL,
  14190. O_VERTICAL,
  14191. };
  14192. enum Orientation2D
  14193. {
  14194. O_ORTHOGONAL,
  14195. O_ISOMETRIC,
  14196. O_STAGGERED,
  14197. O_HEXAGONAL,
  14198. };
  14199. enum PassLightingMode
  14200. {
  14201. LIGHTING_UNLIT,
  14202. LIGHTING_PERVERTEX,
  14203. LIGHTING_PERPIXEL,
  14204. };
  14205. enum PrimitiveType
  14206. {
  14207. TRIANGLE_LIST,
  14208. LINE_LIST,
  14209. POINT_LIST,
  14210. TRIANGLE_STRIP,
  14211. LINE_STRIP,
  14212. TRIANGLE_FAN,
  14213. };
  14214. enum RayQueryLevel
  14215. {
  14216. RAY_AABB,
  14217. RAY_OBB,
  14218. RAY_TRIANGLE,
  14219. RAY_TRIANGLE_UV,
  14220. };
  14221. enum RenderCommandSortMode
  14222. {
  14223. SORT_FRONTTOBACK,
  14224. SORT_BACKTOFRONT,
  14225. };
  14226. enum RenderCommandType
  14227. {
  14228. CMD_NONE,
  14229. CMD_CLEAR,
  14230. CMD_SCENEPASS,
  14231. CMD_QUAD,
  14232. CMD_FORWARDLIGHTS,
  14233. CMD_LIGHTVOLUMES,
  14234. CMD_RENDERUI,
  14235. CMD_SENDEVENT,
  14236. };
  14237. enum RenderSurfaceUpdateMode
  14238. {
  14239. SURFACE_MANUALUPDATE,
  14240. SURFACE_UPDATEVISIBLE,
  14241. SURFACE_UPDATEALWAYS,
  14242. };
  14243. enum RenderTargetSizeMode
  14244. {
  14245. SIZE_ABSOLUTE,
  14246. SIZE_VIEWPORTDIVISOR,
  14247. SIZE_VIEWPORTMULTIPLIER,
  14248. };
  14249. enum ShadowQuality
  14250. {
  14251. SHADOWQUALITY_SIMPLE_16BIT,
  14252. SHADOWQUALITY_SIMPLE_24BIT,
  14253. SHADOWQUALITY_PCF_16BIT,
  14254. SHADOWQUALITY_PCF_24BIT,
  14255. SHADOWQUALITY_VSM,
  14256. SHADOWQUALITY_BLUR_VSM,
  14257. };
  14258. enum ShapeType
  14259. {
  14260. SHAPE_BOX,
  14261. SHAPE_SPHERE,
  14262. SHAPE_STATICPLANE,
  14263. SHAPE_CYLINDER,
  14264. SHAPE_CAPSULE,
  14265. SHAPE_CONE,
  14266. SHAPE_TRIANGLEMESH,
  14267. SHAPE_CONVEXHULL,
  14268. SHAPE_TERRAIN,
  14269. };
  14270. enum TextEffect
  14271. {
  14272. TE_NONE,
  14273. TE_SHADOW,
  14274. TE_STROKE,
  14275. };
  14276. enum TextureAddressMode
  14277. {
  14278. ADDRESS_WRAP,
  14279. ADDRESS_MIRROR,
  14280. ADDRESS_CLAMP,
  14281. ADDRESS_BORDER,
  14282. };
  14283. enum TextureCoordinate
  14284. {
  14285. COORD_U,
  14286. COORD_V,
  14287. COORD_W,
  14288. };
  14289. enum TextureFilterMode
  14290. {
  14291. FILTER_NEAREST,
  14292. FILTER_BILINEAR,
  14293. FILTER_TRILINEAR,
  14294. FILTER_ANISOTROPIC,
  14295. FILTER_NEAREST_ANISOTROPIC,
  14296. FILTER_DEFAULT,
  14297. };
  14298. enum TextureUnit
  14299. {
  14300. TU_DIFFUSE,
  14301. TU_ALBEDOBUFFER,
  14302. TU_NORMAL,
  14303. TU_NORMALBUFFER,
  14304. TU_SPECULAR,
  14305. TU_EMISSIVE,
  14306. TU_ENVIRONMENT,
  14307. TU_LIGHTRAMP,
  14308. TU_LIGHTSHAPE,
  14309. TU_SHADOWMAP,
  14310. TU_CUSTOM1,
  14311. TU_CUSTOM2,
  14312. TU_VOLUMEMAP,
  14313. TU_FACESELECT,
  14314. TU_INDIRECTION,
  14315. TU_DEPTHBUFFER,
  14316. TU_LIGHTBUFFER,
  14317. TU_ZONE,
  14318. MAX_MATERIAL_TEXTURE_UNITS,
  14319. MAX_TEXTURE_UNITS,
  14320. };
  14321. enum TextureUsage
  14322. {
  14323. TEXTURE_STATIC,
  14324. TEXTURE_DYNAMIC,
  14325. TEXTURE_RENDERTARGET,
  14326. TEXTURE_DEPTHSTENCIL,
  14327. };
  14328. enum TileMapLayerType2D
  14329. {
  14330. LT_TILE_LAYER,
  14331. LT_OBJECT_GROUP,
  14332. LT_IMAGE_LAYER,
  14333. LT_INVALID,
  14334. };
  14335. enum TileObjectType2D
  14336. {
  14337. OT_RECTANGLE,
  14338. OT_ELLIPSE,
  14339. OT_POLYGON,
  14340. OT_POLYLINE,
  14341. OT_TILE,
  14342. OT_INVALID,
  14343. };
  14344. enum TrailType
  14345. {
  14346. TT_FACE_CAMERA,
  14347. TT_BONE,
  14348. };
  14349. enum TransformSpace
  14350. {
  14351. TS_LOCAL,
  14352. TS_PARENT,
  14353. TS_WORLD,
  14354. };
  14355. enum TraversalMode
  14356. {
  14357. TM_BREADTH_FIRST,
  14358. TM_DEPTH_FIRST,
  14359. };
  14360. enum VariantType
  14361. {
  14362. VAR_NONE,
  14363. VAR_INT,
  14364. VAR_BOOL,
  14365. VAR_FLOAT,
  14366. VAR_VECTOR2,
  14367. VAR_VECTOR3,
  14368. VAR_VECTOR4,
  14369. VAR_QUATERNION,
  14370. VAR_COLOR,
  14371. VAR_STRING,
  14372. VAR_BUFFER,
  14373. VAR_VOIDPTR,
  14374. VAR_RESOURCEREF,
  14375. VAR_RESOURCEREFLIST,
  14376. VAR_VARIANTVECTOR,
  14377. VAR_VARIANTMAP,
  14378. VAR_INTRECT,
  14379. VAR_INTVECTOR2,
  14380. VAR_INTVECTOR3,
  14381. VAR_PTR,
  14382. VAR_MATRIX3,
  14383. VAR_MATRIX3X4,
  14384. VAR_MATRIX4,
  14385. VAR_DOUBLE,
  14386. VAR_STRINGVECTOR,
  14387. VAR_RECT,
  14388. };
  14389. enum VertexElementSemantic
  14390. {
  14391. SEM_POSITION,
  14392. SEM_NORMAL,
  14393. SEM_BINORMAL,
  14394. SEM_TANGENT,
  14395. SEM_TEXCOORD,
  14396. SEM_COLOR,
  14397. SEM_BLENDWEIGHTS,
  14398. SEM_BLENDINDICES,
  14399. SEM_OBJECTINDEX,
  14400. MAX_VERTEX_ELEMENT_SEMANTICS,
  14401. };
  14402. enum VertexElementType
  14403. {
  14404. TYPE_INT,
  14405. TYPE_FLOAT,
  14406. TYPE_VECTOR2,
  14407. TYPE_VECTOR3,
  14408. TYPE_VECTOR4,
  14409. TYPE_UBYTE4,
  14410. TYPE_UBYTE4_NORM,
  14411. MAX_VERTEX_ELEMENT_TYPES,
  14412. };
  14413. enum VerticalAlignment
  14414. {
  14415. VA_TOP,
  14416. VA_CENTER,
  14417. VA_BOTTOM,
  14418. VA_CUSTOM,
  14419. };
  14420. enum WrapMode
  14421. {
  14422. WM_LOOP,
  14423. WM_ONCE,
  14424. WM_CLAMP,
  14425. };
  14426. // Global functions
  14427. float Abs(float);
  14428. float Acos(float);
  14429. String AddTrailingSlash(const String&);
  14430. float Asin(float);
  14431. float Atan(float);
  14432. float Atan2(float, float);
  14433. float Ceil(float);
  14434. int CeilToInt(float);
  14435. float Clamp(float, float, float);
  14436. int Clamp(int, int, int);
  14437. void ClearDelayedExecute(const String& = String ( ));
  14438. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14439. float Cos(float);
  14440. uint CountSetBits(uint);
  14441. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14442. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14443. bool Equals(float, float);
  14444. void ErrorDialog(const String&, const String&);
  14445. float Floor(float);
  14446. int FloorToInt(float);
  14447. float Fract(float);
  14448. uint GetAlphaFormat();
  14449. Array<String> GetArguments();
  14450. String GetConsoleInput();
  14451. uint GetDepthStencilFormat();
  14452. Object GetEventSender();
  14453. String GetExtension(const String&, bool = true);
  14454. String GetFileName(const String&);
  14455. String GetFileNameAndExtension(const String&, bool = false);
  14456. String GetFileSizeString(uint64);
  14457. uint GetFloat16Format();
  14458. uint GetFloat32Format();
  14459. uint GetFormat(const String&);
  14460. Variant GetGlobalVar(const String&);
  14461. String GetInternalPath(const String&);
  14462. uint GetLinearDepthFormat();
  14463. uint GetLuminanceAlphaFormat();
  14464. uint GetLuminanceFormat();
  14465. uint GetMaxBones();
  14466. String GetMiniDumpDir();
  14467. uint GetNumLogicalCPUs();
  14468. uint GetNumPhysicalCPUs();
  14469. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  14470. Array<String> GetObjectCategories();
  14471. Array<String> GetObjectsByCategory(const String&);
  14472. String GetParentPath(const String&);
  14473. String GetPath(const String&);
  14474. String GetPlatform();
  14475. uint GetRG16Format();
  14476. uint GetRGBA16Format();
  14477. uint GetRGBAFloat16Format();
  14478. uint GetRGBAFloat32Format();
  14479. uint GetRGBAFormat();
  14480. uint GetRGBFormat();
  14481. uint GetRGFloat16Format();
  14482. uint GetRGFloat32Format();
  14483. uint GetRandomSeed();
  14484. uint GetReadableDepthFormat();
  14485. String GetTextureUnitName(TextureUnit);
  14486. VariantType GetVariantTypeFromName(const String&);
  14487. String GetVariantTypeName(VariantType);
  14488. bool HasSubscribedToEvent(Object, const String&);
  14489. bool HasSubscribedToEvent(const String&);
  14490. float InverseLerp(float, float, float);
  14491. bool IsAbsolutePath(const String&);
  14492. bool IsAlpha(uint);
  14493. bool IsDigit(uint);
  14494. bool IsNaN(float);
  14495. bool IsPowerOfTwo(uint);
  14496. String Join(Array<String>&, const String&);
  14497. float Lerp(float, float, float);
  14498. float Ln(float);
  14499. void MarkNetworkUpdate();
  14500. float Max(float, float);
  14501. int Max(int, int);
  14502. float Min(float, float);
  14503. int Min(int, int);
  14504. float Mod(float, float);
  14505. uint NextPowerOfTwo(uint);
  14506. void OpenConsoleWindow();
  14507. float Pow(float, float);
  14508. void Print(bool, bool = false);
  14509. void Print(const String&, bool = false);
  14510. void Print(const Variant&, bool = false);
  14511. void Print(float, bool = false);
  14512. void Print(int, bool = false);
  14513. void Print(uint, bool = false);
  14514. void PrintCallStack(bool = false);
  14515. float Random();
  14516. float Random(float);
  14517. float Random(float, float);
  14518. int RandomInt();
  14519. int RandomInt(int);
  14520. int RandomInt(int, int);
  14521. float RandomNormal(float, float);
  14522. void RegisterEventName(const String&);
  14523. void Remove();
  14524. String RemoveTrailingSlash(const String&);
  14525. String ReplaceExtension(const String&, const String&);
  14526. float Round(float);
  14527. int RoundToInt(float);
  14528. uint SDBMHash(uint, uint8);
  14529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14530. void SetGlobalVar(const String&, Variant&);
  14531. void SetMiniDumpDir(const String&);
  14532. void SetRandomSeed(uint);
  14533. float Sign(float);
  14534. float Sin(float);
  14535. float SmoothStep(float, float, float);
  14536. float Sqrt(float);
  14537. float StableRandom(const Vector2&);
  14538. float StableRandom(const Vector3&);
  14539. float StableRandom(float);
  14540. const String& GetTypeName(StringHash);
  14541. void SubscribeToEvent(Object, const String&, const String&);
  14542. void SubscribeToEvent(const String&, const String&);
  14543. float Tan(float);
  14544. uint ToLower(uint);
  14545. String ToStringHex(int);
  14546. uint ToUpper(uint);
  14547. void UnsubscribeFromAllEvents();
  14548. void UnsubscribeFromAllEventsExcept(Array<String>);
  14549. void UnsubscribeFromEvent(Object, const String&);
  14550. void UnsubscribeFromEvent(const String&);
  14551. void UnsubscribeFromEvents(Object);
  14552. Vector2 VectorCeil(const Vector2&);
  14553. Vector3 VectorCeil(const Vector3&);
  14554. Vector4 VectorCeil(const Vector4&);
  14555. IntVector2 VectorCeilToInt(const Vector2&);
  14556. IntVector3 VectorCeilToInt(const Vector3&);
  14557. Vector2 VectorFloor(const Vector2&);
  14558. Vector3 VectorFloor(const Vector3&);
  14559. Vector4 VectorFloor(const Vector4&);
  14560. IntVector2 VectorFloorToInt(const Vector2&);
  14561. IntVector3 VectorFloorToInt(const Vector3&);
  14562. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  14563. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  14564. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  14565. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  14566. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  14567. Vector2 VectorMax(const Vector2&, const Vector2&);
  14568. Vector3 VectorMax(const Vector3&, const Vector3&);
  14569. Vector4 VectorMax(const Vector4&, const Vector4&);
  14570. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  14571. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  14572. Vector2 VectorMin(const Vector2&, const Vector2&);
  14573. Vector3 VectorMin(const Vector3&, const Vector3&);
  14574. Vector4 VectorMin(const Vector4&, const Vector4&);
  14575. Vector2 VectorRound(const Vector2&);
  14576. Vector3 VectorRound(const Vector3&);
  14577. Vector4 VectorRound(const Vector4&);
  14578. IntVector2 VectorRoundToInt(const Vector2&);
  14579. IntVector3 VectorRoundToInt(const Vector3&);
  14580. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14581. // Global properties
  14582. DBAPI DBAPI;
  14583. Audio audio;
  14584. ResourceCache cache;
  14585. Console console;
  14586. Database database;
  14587. DebugHud debugHud;
  14588. DebugRenderer debugRenderer;
  14589. Engine engine;
  14590. FileSystem fileSystem;
  14591. VariantMap globalVars;
  14592. Graphics graphics;
  14593. Input input;
  14594. Localization localization;
  14595. Log log;
  14596. Network network;
  14597. Node node;
  14598. Octree octree;
  14599. PhysicsWorld physicsWorld;
  14600. PhysicsWorld2D physicsWorld2D;
  14601. Renderer renderer;
  14602. ResourceCache resourceCache;
  14603. Scene scene;
  14604. Script script;
  14605. ScriptFile scriptFile;
  14606. ScriptInstance self;
  14607. Time time;
  14608. UI ui;
  14609. // Global constants
  14610. uint AM_COMPONENTID;
  14611. uint AM_DEFAULT;
  14612. uint AM_FILE;
  14613. uint AM_FILEREADONLY;
  14614. uint AM_LATESTDATA;
  14615. uint AM_NET;
  14616. uint AM_NODEID;
  14617. uint AM_NODEIDVECTOR;
  14618. uint AM_NOEDIT;
  14619. Color BLACK;
  14620. Color BLUE;
  14621. uint8 CHANNEL_POSITION;
  14622. uint8 CHANNEL_ROTATION;
  14623. uint8 CHANNEL_SCALE;
  14624. uint CLEAR_COLOR;
  14625. uint CLEAR_DEPTH;
  14626. uint CLEAR_STENCIL;
  14627. int CONTROLLER_AXIS_LEFTX;
  14628. int CONTROLLER_AXIS_LEFTY;
  14629. int CONTROLLER_AXIS_RIGHTX;
  14630. int CONTROLLER_AXIS_RIGHTY;
  14631. int CONTROLLER_AXIS_TRIGGERLEFT;
  14632. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14633. int CONTROLLER_BUTTON_A;
  14634. int CONTROLLER_BUTTON_B;
  14635. int CONTROLLER_BUTTON_BACK;
  14636. int CONTROLLER_BUTTON_DPAD_DOWN;
  14637. int CONTROLLER_BUTTON_DPAD_LEFT;
  14638. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14639. int CONTROLLER_BUTTON_DPAD_UP;
  14640. int CONTROLLER_BUTTON_GUIDE;
  14641. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14642. int CONTROLLER_BUTTON_LEFTSTICK;
  14643. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14644. int CONTROLLER_BUTTON_RIGHTSTICK;
  14645. int CONTROLLER_BUTTON_START;
  14646. int CONTROLLER_BUTTON_X;
  14647. int CONTROLLER_BUTTON_Y;
  14648. Color CYAN;
  14649. uint DD_DISABLED;
  14650. uint DD_SOURCE;
  14651. uint DD_SOURCE_AND_TARGET;
  14652. uint DD_TARGET;
  14653. uint DEBUGHUD_SHOW_ALL;
  14654. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14655. uint DEBUGHUD_SHOW_MEMORY;
  14656. uint DEBUGHUD_SHOW_MODE;
  14657. uint DEBUGHUD_SHOW_NONE;
  14658. uint DEBUGHUD_SHOW_PROFILER;
  14659. uint DEBUGHUD_SHOW_STATS;
  14660. uint DEFAULT_LIGHTMASK;
  14661. uint DEFAULT_VIEWMASK;
  14662. uint DRAWABLE_ANY;
  14663. uint DRAWABLE_GEOMETRY;
  14664. uint DRAWABLE_GEOMETRY2D;
  14665. uint DRAWABLE_LIGHT;
  14666. uint DRAWABLE_ZONE;
  14667. uint FIRST_LOCAL_ID;
  14668. uint FIRST_REPLICATED_ID;
  14669. Color GRAY;
  14670. Color GREEN;
  14671. int HAT_CENTER;
  14672. int HAT_DOWN;
  14673. int HAT_LEFT;
  14674. int HAT_RIGHT;
  14675. int HAT_UP;
  14676. int KEY_0;
  14677. int KEY_1;
  14678. int KEY_2;
  14679. int KEY_3;
  14680. int KEY_4;
  14681. int KEY_5;
  14682. int KEY_6;
  14683. int KEY_7;
  14684. int KEY_8;
  14685. int KEY_9;
  14686. int KEY_A;
  14687. int KEY_ALT;
  14688. int KEY_APPLICATION;
  14689. int KEY_B;
  14690. int KEY_BACKSPACE;
  14691. int KEY_C;
  14692. int KEY_CAPSLOCK;
  14693. int KEY_CTRL;
  14694. int KEY_D;
  14695. int KEY_DELETE;
  14696. int KEY_DOWN;
  14697. int KEY_E;
  14698. int KEY_END;
  14699. int KEY_ESCAPE;
  14700. int KEY_F;
  14701. int KEY_F1;
  14702. int KEY_F10;
  14703. int KEY_F11;
  14704. int KEY_F12;
  14705. int KEY_F13;
  14706. int KEY_F14;
  14707. int KEY_F15;
  14708. int KEY_F16;
  14709. int KEY_F17;
  14710. int KEY_F18;
  14711. int KEY_F19;
  14712. int KEY_F2;
  14713. int KEY_F20;
  14714. int KEY_F21;
  14715. int KEY_F22;
  14716. int KEY_F23;
  14717. int KEY_F24;
  14718. int KEY_F3;
  14719. int KEY_F4;
  14720. int KEY_F5;
  14721. int KEY_F6;
  14722. int KEY_F7;
  14723. int KEY_F8;
  14724. int KEY_F9;
  14725. int KEY_G;
  14726. int KEY_GUI;
  14727. int KEY_H;
  14728. int KEY_HOME;
  14729. int KEY_I;
  14730. int KEY_INSERT;
  14731. int KEY_J;
  14732. int KEY_K;
  14733. int KEY_KP_0;
  14734. int KEY_KP_1;
  14735. int KEY_KP_2;
  14736. int KEY_KP_3;
  14737. int KEY_KP_4;
  14738. int KEY_KP_5;
  14739. int KEY_KP_6;
  14740. int KEY_KP_7;
  14741. int KEY_KP_8;
  14742. int KEY_KP_9;
  14743. int KEY_KP_DIVIDE;
  14744. int KEY_KP_ENTER;
  14745. int KEY_KP_MINUS;
  14746. int KEY_KP_MULTIPLY;
  14747. int KEY_KP_PERIOD;
  14748. int KEY_KP_PLUS;
  14749. int KEY_L;
  14750. int KEY_LALT;
  14751. int KEY_LCTRL;
  14752. int KEY_LEFT;
  14753. int KEY_LGUI;
  14754. int KEY_LSHIFT;
  14755. int KEY_M;
  14756. int KEY_N;
  14757. int KEY_NUMLOCKCLEAR;
  14758. int KEY_O;
  14759. int KEY_P;
  14760. int KEY_PAGEDOWN;
  14761. int KEY_PAGEUP;
  14762. int KEY_PAUSE;
  14763. int KEY_PRINTSCREEN;
  14764. int KEY_Q;
  14765. int KEY_R;
  14766. int KEY_RALT;
  14767. int KEY_RCTRL;
  14768. int KEY_RETURN;
  14769. int KEY_RETURN2;
  14770. int KEY_RGUI;
  14771. int KEY_RIGHT;
  14772. int KEY_RSHIFT;
  14773. int KEY_S;
  14774. int KEY_SCROLLLOCK;
  14775. int KEY_SELECT;
  14776. int KEY_SHIFT;
  14777. int KEY_SPACE;
  14778. int KEY_T;
  14779. int KEY_TAB;
  14780. int KEY_U;
  14781. int KEY_UNKNOWN;
  14782. int KEY_UP;
  14783. int KEY_V;
  14784. int KEY_W;
  14785. int KEY_X;
  14786. int KEY_Y;
  14787. int KEY_Z;
  14788. uint LAST_LOCAL_ID;
  14789. uint LAST_REPLICATED_ID;
  14790. int LOG_DEBUG;
  14791. int LOG_ERROR;
  14792. int LOG_INFO;
  14793. int LOG_NONE;
  14794. int LOG_WARNING;
  14795. Color MAGENTA;
  14796. uint MASK_BLENDINDICES;
  14797. uint MASK_BLENDWEIGHTS;
  14798. uint MASK_COLOR;
  14799. uint MASK_CUBETEXCOORD1;
  14800. uint MASK_CUBETEXCOORD2;
  14801. uint MASK_INSTANCEMATRIX1;
  14802. uint MASK_INSTANCEMATRIX2;
  14803. uint MASK_INSTANCEMATRIX3;
  14804. uint MASK_NONE;
  14805. uint MASK_NORMAL;
  14806. uint MASK_OBJECTINDEX;
  14807. uint MASK_POSITION;
  14808. uint MASK_TANGENT;
  14809. uint MASK_TEXCOORD1;
  14810. uint MASK_TEXCOORD2;
  14811. int MOUSEB_LEFT;
  14812. int MOUSEB_MIDDLE;
  14813. int MOUSEB_RIGHT;
  14814. float M_DEGTORAD;
  14815. float M_DEGTORAD_2;
  14816. float M_EPSILON;
  14817. float M_HALF_PI;
  14818. float M_INFINITY;
  14819. float M_LARGE_EPSILON;
  14820. float M_LARGE_VALUE;
  14821. int M_MAX_INT;
  14822. uint M_MAX_UNSIGNED;
  14823. int M_MIN_INT;
  14824. uint M_MIN_UNSIGNED;
  14825. float M_PI;
  14826. float M_RADTODEG;
  14827. uint NPOS;
  14828. float PIXEL_SIZE;
  14829. int QUALITY_HIGH;
  14830. int QUALITY_LOW;
  14831. int QUALITY_MAX;
  14832. int QUALITY_MEDIUM;
  14833. int QUAL_ALT;
  14834. int QUAL_ANY;
  14835. int QUAL_CTRL;
  14836. int QUAL_SHIFT;
  14837. Color RED;
  14838. int SCANCODE_0;
  14839. int SCANCODE_1;
  14840. int SCANCODE_2;
  14841. int SCANCODE_3;
  14842. int SCANCODE_4;
  14843. int SCANCODE_5;
  14844. int SCANCODE_6;
  14845. int SCANCODE_7;
  14846. int SCANCODE_8;
  14847. int SCANCODE_9;
  14848. int SCANCODE_A;
  14849. int SCANCODE_AC_BACK;
  14850. int SCANCODE_AC_BOOKMARKS;
  14851. int SCANCODE_AC_FORWARD;
  14852. int SCANCODE_AC_HOME;
  14853. int SCANCODE_AC_REFRESH;
  14854. int SCANCODE_AC_SEARCH;
  14855. int SCANCODE_AC_STOP;
  14856. int SCANCODE_AGAIN;
  14857. int SCANCODE_ALT;
  14858. int SCANCODE_ALTERASE;
  14859. int SCANCODE_APOSTROPHE;
  14860. int SCANCODE_APP1;
  14861. int SCANCODE_APP2;
  14862. int SCANCODE_APPLICATION;
  14863. int SCANCODE_AUDIOMUTE;
  14864. int SCANCODE_AUDIONEXT;
  14865. int SCANCODE_AUDIOPLAY;
  14866. int SCANCODE_AUDIOPREV;
  14867. int SCANCODE_AUDIOSTOP;
  14868. int SCANCODE_B;
  14869. int SCANCODE_BACKSLASH;
  14870. int SCANCODE_BACKSPACE;
  14871. int SCANCODE_BRIGHTNESSDOWN;
  14872. int SCANCODE_BRIGHTNESSUP;
  14873. int SCANCODE_C;
  14874. int SCANCODE_CALCULATOR;
  14875. int SCANCODE_CANCEL;
  14876. int SCANCODE_CAPSLOCK;
  14877. int SCANCODE_CLEAR;
  14878. int SCANCODE_CLEARAGAIN;
  14879. int SCANCODE_COMMA;
  14880. int SCANCODE_COMPUTER;
  14881. int SCANCODE_COPY;
  14882. int SCANCODE_CRSEL;
  14883. int SCANCODE_CTRL;
  14884. int SCANCODE_CURRENCYSUBUNIT;
  14885. int SCANCODE_CURRENCYUNIT;
  14886. int SCANCODE_CUT;
  14887. int SCANCODE_D;
  14888. int SCANCODE_DECIMALSEPARATOR;
  14889. int SCANCODE_DELETE;
  14890. int SCANCODE_DISPLAYSWITCH;
  14891. int SCANCODE_DOWN;
  14892. int SCANCODE_E;
  14893. int SCANCODE_EJECT;
  14894. int SCANCODE_END;
  14895. int SCANCODE_EQUALS;
  14896. int SCANCODE_ESCAPE;
  14897. int SCANCODE_EXECUTE;
  14898. int SCANCODE_EXSEL;
  14899. int SCANCODE_F;
  14900. int SCANCODE_F1;
  14901. int SCANCODE_F10;
  14902. int SCANCODE_F11;
  14903. int SCANCODE_F12;
  14904. int SCANCODE_F13;
  14905. int SCANCODE_F14;
  14906. int SCANCODE_F15;
  14907. int SCANCODE_F16;
  14908. int SCANCODE_F17;
  14909. int SCANCODE_F18;
  14910. int SCANCODE_F19;
  14911. int SCANCODE_F2;
  14912. int SCANCODE_F20;
  14913. int SCANCODE_F21;
  14914. int SCANCODE_F22;
  14915. int SCANCODE_F23;
  14916. int SCANCODE_F24;
  14917. int SCANCODE_F3;
  14918. int SCANCODE_F4;
  14919. int SCANCODE_F5;
  14920. int SCANCODE_F6;
  14921. int SCANCODE_F7;
  14922. int SCANCODE_F8;
  14923. int SCANCODE_F9;
  14924. int SCANCODE_FIND;
  14925. int SCANCODE_G;
  14926. int SCANCODE_GRAVE;
  14927. int SCANCODE_GUI;
  14928. int SCANCODE_H;
  14929. int SCANCODE_HELP;
  14930. int SCANCODE_HOME;
  14931. int SCANCODE_I;
  14932. int SCANCODE_INSERT;
  14933. int SCANCODE_INTERNATIONAL1;
  14934. int SCANCODE_INTERNATIONAL2;
  14935. int SCANCODE_INTERNATIONAL3;
  14936. int SCANCODE_INTERNATIONAL4;
  14937. int SCANCODE_INTERNATIONAL5;
  14938. int SCANCODE_INTERNATIONAL6;
  14939. int SCANCODE_INTERNATIONAL7;
  14940. int SCANCODE_INTERNATIONAL8;
  14941. int SCANCODE_INTERNATIONAL9;
  14942. int SCANCODE_J;
  14943. int SCANCODE_K;
  14944. int SCANCODE_KBDILLUMDOWN;
  14945. int SCANCODE_KBDILLUMTOGGLE;
  14946. int SCANCODE_KBDILLUMUP;
  14947. int SCANCODE_KP_0;
  14948. int SCANCODE_KP_00;
  14949. int SCANCODE_KP_000;
  14950. int SCANCODE_KP_1;
  14951. int SCANCODE_KP_2;
  14952. int SCANCODE_KP_3;
  14953. int SCANCODE_KP_4;
  14954. int SCANCODE_KP_5;
  14955. int SCANCODE_KP_6;
  14956. int SCANCODE_KP_7;
  14957. int SCANCODE_KP_8;
  14958. int SCANCODE_KP_9;
  14959. int SCANCODE_KP_A;
  14960. int SCANCODE_KP_AMPERSAND;
  14961. int SCANCODE_KP_AT;
  14962. int SCANCODE_KP_B;
  14963. int SCANCODE_KP_BACKSPACE;
  14964. int SCANCODE_KP_BINARY;
  14965. int SCANCODE_KP_C;
  14966. int SCANCODE_KP_CLEAR;
  14967. int SCANCODE_KP_CLEARENTRY;
  14968. int SCANCODE_KP_COLON;
  14969. int SCANCODE_KP_COMMA;
  14970. int SCANCODE_KP_D;
  14971. int SCANCODE_KP_DBLAMPERSAND;
  14972. int SCANCODE_KP_DBLVERTICALBAR;
  14973. int SCANCODE_KP_DECIMAL;
  14974. int SCANCODE_KP_DIVIDE;
  14975. int SCANCODE_KP_E;
  14976. int SCANCODE_KP_ENTER;
  14977. int SCANCODE_KP_EQUALS;
  14978. int SCANCODE_KP_EQUALSAS400;
  14979. int SCANCODE_KP_EXCLAM;
  14980. int SCANCODE_KP_F;
  14981. int SCANCODE_KP_GREATER;
  14982. int SCANCODE_KP_HASH;
  14983. int SCANCODE_KP_HEXADECIMAL;
  14984. int SCANCODE_KP_LEFTBRACE;
  14985. int SCANCODE_KP_LEFTPAREN;
  14986. int SCANCODE_KP_LESS;
  14987. int SCANCODE_KP_MEMADD;
  14988. int SCANCODE_KP_MEMCLEAR;
  14989. int SCANCODE_KP_MEMDIVIDE;
  14990. int SCANCODE_KP_MEMMULTIPLY;
  14991. int SCANCODE_KP_MEMRECALL;
  14992. int SCANCODE_KP_MEMSTORE;
  14993. int SCANCODE_KP_MEMSUBTRACT;
  14994. int SCANCODE_KP_MINUS;
  14995. int SCANCODE_KP_MULTIPLY;
  14996. int SCANCODE_KP_OCTAL;
  14997. int SCANCODE_KP_PERCENT;
  14998. int SCANCODE_KP_PERIOD;
  14999. int SCANCODE_KP_PLUS;
  15000. int SCANCODE_KP_PLUSMINUS;
  15001. int SCANCODE_KP_POWER;
  15002. int SCANCODE_KP_RIGHTBRACE;
  15003. int SCANCODE_KP_RIGHTPAREN;
  15004. int SCANCODE_KP_SPACE;
  15005. int SCANCODE_KP_TAB;
  15006. int SCANCODE_KP_VERTICALBAR;
  15007. int SCANCODE_KP_XOR;
  15008. int SCANCODE_L;
  15009. int SCANCODE_LALT;
  15010. int SCANCODE_LANG1;
  15011. int SCANCODE_LANG2;
  15012. int SCANCODE_LANG3;
  15013. int SCANCODE_LANG4;
  15014. int SCANCODE_LANG5;
  15015. int SCANCODE_LANG6;
  15016. int SCANCODE_LANG7;
  15017. int SCANCODE_LANG8;
  15018. int SCANCODE_LANG9;
  15019. int SCANCODE_LCTRL;
  15020. int SCANCODE_LEFT;
  15021. int SCANCODE_LEFTBRACKET;
  15022. int SCANCODE_LGUI;
  15023. int SCANCODE_LSHIFT;
  15024. int SCANCODE_M;
  15025. int SCANCODE_MAIL;
  15026. int SCANCODE_MEDIASELECT;
  15027. int SCANCODE_MENU;
  15028. int SCANCODE_MINUS;
  15029. int SCANCODE_MODE;
  15030. int SCANCODE_MUTE;
  15031. int SCANCODE_N;
  15032. int SCANCODE_NONUSBACKSLASH;
  15033. int SCANCODE_NONUSHASH;
  15034. int SCANCODE_NUMLOCKCLEAR;
  15035. int SCANCODE_O;
  15036. int SCANCODE_OPER;
  15037. int SCANCODE_OUT;
  15038. int SCANCODE_P;
  15039. int SCANCODE_PAGEDOWN;
  15040. int SCANCODE_PAGEUP;
  15041. int SCANCODE_PASTE;
  15042. int SCANCODE_PAUSE;
  15043. int SCANCODE_PERIOD;
  15044. int SCANCODE_POWER;
  15045. int SCANCODE_PRINTSCREEN;
  15046. int SCANCODE_PRIOR;
  15047. int SCANCODE_Q;
  15048. int SCANCODE_R;
  15049. int SCANCODE_RALT;
  15050. int SCANCODE_RCTRL;
  15051. int SCANCODE_RETURN;
  15052. int SCANCODE_RETURN2;
  15053. int SCANCODE_RGUI;
  15054. int SCANCODE_RIGHT;
  15055. int SCANCODE_RIGHTBRACKET;
  15056. int SCANCODE_RSHIFT;
  15057. int SCANCODE_S;
  15058. int SCANCODE_SCROLLLOCK;
  15059. int SCANCODE_SELECT;
  15060. int SCANCODE_SEMICOLON;
  15061. int SCANCODE_SEPARATOR;
  15062. int SCANCODE_SHIFT;
  15063. int SCANCODE_SLASH;
  15064. int SCANCODE_SLEEP;
  15065. int SCANCODE_SPACE;
  15066. int SCANCODE_STOP;
  15067. int SCANCODE_SYSREQ;
  15068. int SCANCODE_T;
  15069. int SCANCODE_TAB;
  15070. int SCANCODE_THOUSANDSSEPARATOR;
  15071. int SCANCODE_U;
  15072. int SCANCODE_UNDO;
  15073. int SCANCODE_UNKNOWN;
  15074. int SCANCODE_UP;
  15075. int SCANCODE_V;
  15076. int SCANCODE_VOLUMEDOWN;
  15077. int SCANCODE_VOLUMEUP;
  15078. int SCANCODE_W;
  15079. int SCANCODE_WWW;
  15080. int SCANCODE_X;
  15081. int SCANCODE_Y;
  15082. int SCANCODE_Z;
  15083. uint SCAN_DIRS;
  15084. uint SCAN_FILES;
  15085. uint SCAN_HIDDEN;
  15086. String SOUND_AMBIENT;
  15087. String SOUND_EFFECT;
  15088. String SOUND_MASTER;
  15089. String SOUND_MUSIC;
  15090. String SOUND_VOICE;
  15091. Color TRANSPARENT;
  15092. uint VO_DISABLE_OCCLUSION;
  15093. uint VO_DISABLE_SHADOWS;
  15094. uint VO_LOW_MATERIAL_QUALITY;
  15095. uint VO_NONE;
  15096. Color WHITE;
  15097. Color YELLOW;