AngelScriptAPI.h 386 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593
  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. bool tripleBuffer;
  5100. /* readonly */
  5101. StringHash type;
  5102. /* readonly */
  5103. String typeName;
  5104. /* readonly */
  5105. bool vsync;
  5106. /* readonly */
  5107. int weakRefs;
  5108. /* readonly */
  5109. int width;
  5110. /* writeonly */
  5111. Image windowIcon;
  5112. IntVector2 windowPosition;
  5113. String windowTitle;
  5114. };
  5115. class HttpRequest
  5116. {
  5117. // Methods:
  5118. Array<uint8> Read(uint);
  5119. bool ReadBool();
  5120. BoundingBox ReadBoundingBox();
  5121. int8 ReadByte();
  5122. Color ReadColor();
  5123. double ReadDouble();
  5124. String ReadFileID();
  5125. float ReadFloat();
  5126. int ReadInt();
  5127. int64 ReadInt64();
  5128. IntRect ReadIntRect();
  5129. IntVector2 ReadIntVector2();
  5130. String ReadLine();
  5131. Matrix3 ReadMatrix3();
  5132. Matrix3x4 ReadMatrix3x4();
  5133. Matrix4 ReadMatrix4();
  5134. uint ReadNetID();
  5135. Quaternion ReadPackedQuaternion();
  5136. Vector3 ReadPackedVector3(float);
  5137. Quaternion ReadQuaternion();
  5138. int16 ReadShort();
  5139. String ReadString();
  5140. StringHash ReadStringHash();
  5141. uint8 ReadUByte();
  5142. uint ReadUInt();
  5143. uint64 ReadUInt64();
  5144. uint16 ReadUShort();
  5145. uint ReadVLE();
  5146. Variant ReadVariant();
  5147. VariantMap ReadVariantMap();
  5148. Vector2 ReadVector2();
  5149. Vector3 ReadVector3();
  5150. Vector4 ReadVector4();
  5151. VectorBuffer ReadVectorBuffer(uint);
  5152. uint Seek(uint);
  5153. // Properties:
  5154. /* readonly */
  5155. uint availableSize;
  5156. /* readonly */
  5157. uint checksum;
  5158. /* readonly */
  5159. bool eof;
  5160. /* readonly */
  5161. String error;
  5162. /* readonly */
  5163. String name;
  5164. /* readonly */
  5165. bool open;
  5166. /* readonly */
  5167. uint position;
  5168. /* readonly */
  5169. int refs;
  5170. /* readonly */
  5171. uint size;
  5172. /* readonly */
  5173. HttpRequestState state;
  5174. /* readonly */
  5175. String url;
  5176. /* readonly */
  5177. String verb;
  5178. /* readonly */
  5179. int weakRefs;
  5180. };
  5181. class Image
  5182. {
  5183. // Methods:
  5184. void Clear(const Color&);
  5185. void ClearInt(uint);
  5186. bool FlipHorizontal();
  5187. bool FlipVertical();
  5188. Color GetPixel(int, int) const;
  5189. Color GetPixel(int, int, int) const;
  5190. Color GetPixelBilinear(float, float) const;
  5191. uint GetPixelInt(int, int) const;
  5192. uint GetPixelInt(int, int, int) const;
  5193. Color GetPixelTrilinear(float, float, float) const;
  5194. Image GetSubimage(const IntRect&) const;
  5195. bool HasSubscribedToEvent(Object, const String&);
  5196. bool HasSubscribedToEvent(const String&);
  5197. bool Load(File);
  5198. bool Load(VectorBuffer&);
  5199. bool Load(const String&);
  5200. bool LoadColorLUT(File);
  5201. bool LoadColorLUT(VectorBuffer&);
  5202. bool Resize(int, int);
  5203. bool Save(File) const;
  5204. bool Save(VectorBuffer&) const;
  5205. bool Save(const String&) const;
  5206. bool SaveBMP(const String&) const;
  5207. bool SaveDDS(const String&) const;
  5208. bool SaveJPG(const String&, int) const;
  5209. bool SavePNG(const String&) const;
  5210. bool SaveTGA(const String&) const;
  5211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5212. void SetPixel(int, int, const Color&);
  5213. void SetPixel(int, int, int, const Color&);
  5214. void SetPixelInt(int, int, int, uint);
  5215. void SetPixelInt(int, int, uint);
  5216. bool SetSize(int, int, int, uint);
  5217. bool SetSize(int, int, uint);
  5218. // Properties:
  5219. /* readonly */
  5220. bool array;
  5221. /* readonly */
  5222. String category;
  5223. /* readonly */
  5224. uint components;
  5225. /* readonly */
  5226. bool compressed;
  5227. /* readonly */
  5228. CompressedFormat compressedFormat;
  5229. /* readonly */
  5230. bool cubemap;
  5231. /* readonly */
  5232. int depth;
  5233. /* readonly */
  5234. int height;
  5235. /* readonly */
  5236. uint memoryUse;
  5237. String name;
  5238. /* readonly */
  5239. uint numCompressedLevels;
  5240. /* readonly */
  5241. int refs;
  5242. /* readonly */
  5243. bool sRGB;
  5244. /* readonly */
  5245. StringHash type;
  5246. /* readonly */
  5247. String typeName;
  5248. /* readonly */
  5249. uint useTimer;
  5250. /* readonly */
  5251. int weakRefs;
  5252. /* readonly */
  5253. int width;
  5254. };
  5255. class IndexBuffer
  5256. {
  5257. // Methods:
  5258. VectorBuffer GetData();
  5259. bool HasSubscribedToEvent(Object, const String&);
  5260. bool HasSubscribedToEvent(const String&);
  5261. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5262. bool SetData(VectorBuffer&);
  5263. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5264. void SetSize(uint, bool, bool = false);
  5265. // Properties:
  5266. /* readonly */
  5267. String category;
  5268. /* readonly */
  5269. bool dynamic;
  5270. /* readonly */
  5271. uint indexCount;
  5272. /* readonly */
  5273. uint indexSize;
  5274. /* readonly */
  5275. int refs;
  5276. bool shadowed;
  5277. /* readonly */
  5278. StringHash type;
  5279. /* readonly */
  5280. String typeName;
  5281. /* readonly */
  5282. int weakRefs;
  5283. };
  5284. class Input
  5285. {
  5286. // Methods:
  5287. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5288. void CenterMousePosition();
  5289. int GetKeyFromName(const String&) const;
  5290. int GetKeyFromScancode(int) const;
  5291. String GetKeyName(int) const;
  5292. int GetScancodeFromKey(int) const;
  5293. int GetScancodeFromName(const String&) const;
  5294. String GetScancodeName(int) const;
  5295. bool HasSubscribedToEvent(Object, const String&);
  5296. bool HasSubscribedToEvent(const String&);
  5297. uint LoadGestures(File);
  5298. uint LoadGestures(VectorBuffer&);
  5299. bool RecordGesture();
  5300. void RemoveAllGestures();
  5301. bool RemoveGesture(uint);
  5302. bool RemoveScreenJoystick(int);
  5303. void ResetMouseGrabbed();
  5304. void ResetMouseMode();
  5305. void ResetMouseVisible();
  5306. bool SaveGesture(File, uint);
  5307. bool SaveGesture(VectorBuffer&, uint);
  5308. bool SaveGestures(File);
  5309. bool SaveGestures(VectorBuffer&);
  5310. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5311. void SetMouseGrabbed(bool, bool = false);
  5312. void SetMouseMode(MouseMode, bool = false);
  5313. void SetMouseVisible(bool, bool = false);
  5314. // Properties:
  5315. /* readonly */
  5316. String category;
  5317. /* readonly */
  5318. bool focus;
  5319. /* readonly */
  5320. Array<JoystickState> joysticks;
  5321. /* readonly */
  5322. Array<JoystickState> joysticksByIndex;
  5323. /* readonly */
  5324. Array<JoystickState> joysticksByName;
  5325. /* readonly */
  5326. Array<bool> keyDown;
  5327. /* readonly */
  5328. Array<bool> keyPress;
  5329. /* readonly */
  5330. bool minimized;
  5331. /* readonly */
  5332. Array<bool> mouseButtonDown;
  5333. /* readonly */
  5334. Array<bool> mouseButtonPress;
  5335. bool mouseGrabbed;
  5336. /* readonly */
  5337. bool mouseLocked;
  5338. MouseMode mouseMode;
  5339. /* readonly */
  5340. IntVector2 mouseMove;
  5341. /* readonly */
  5342. int mouseMoveWheel;
  5343. /* readonly */
  5344. int mouseMoveX;
  5345. /* readonly */
  5346. int mouseMoveY;
  5347. IntVector2 mousePosition;
  5348. bool mouseVisible;
  5349. /* readonly */
  5350. uint numJoysticks;
  5351. /* readonly */
  5352. uint numTouches;
  5353. /* readonly */
  5354. Array<bool> qualifierDown;
  5355. /* readonly */
  5356. Array<bool> qualifierPress;
  5357. /* readonly */
  5358. int qualifiers;
  5359. /* readonly */
  5360. int refs;
  5361. /* readonly */
  5362. Array<bool> scancodeDown;
  5363. /* readonly */
  5364. Array<bool> scancodePress;
  5365. Array<bool> screenJoystickVisible;
  5366. /* readonly */
  5367. bool screenKeyboardSupport;
  5368. bool screenKeyboardVisible;
  5369. bool toggleFullscreen;
  5370. bool touchEmulation;
  5371. /* readonly */
  5372. Array<TouchState> touches;
  5373. /* readonly */
  5374. StringHash type;
  5375. /* readonly */
  5376. String typeName;
  5377. /* readonly */
  5378. int weakRefs;
  5379. };
  5380. class IntRect
  5381. {
  5382. // Methods:
  5383. Intersection IsInside(const IntVector2&) const;
  5384. // Properties:
  5385. int bottom;
  5386. /* readonly */
  5387. Array<int> data;
  5388. /* readonly */
  5389. int height;
  5390. int left;
  5391. int right;
  5392. /* readonly */
  5393. IntVector2 size;
  5394. int top;
  5395. /* readonly */
  5396. int width;
  5397. };
  5398. class IntVector2
  5399. {
  5400. // Methods:
  5401. float Length() const;
  5402. uint ToHash() const;
  5403. String ToString() const;
  5404. // Properties:
  5405. /* readonly */
  5406. Array<int> data;
  5407. int x;
  5408. int y;
  5409. };
  5410. class IntVector3
  5411. {
  5412. // Methods:
  5413. float Length() const;
  5414. uint ToHash() const;
  5415. String ToString() const;
  5416. // Properties:
  5417. /* readonly */
  5418. Array<int> data;
  5419. int x;
  5420. int y;
  5421. int z;
  5422. };
  5423. class JSONFile
  5424. {
  5425. // Methods:
  5426. bool FromString(const String&);
  5427. JSONValue& GetRoot();
  5428. bool HasSubscribedToEvent(Object, const String&);
  5429. bool HasSubscribedToEvent(const String&);
  5430. bool Load(File);
  5431. bool Load(VectorBuffer&);
  5432. bool Load(const String&);
  5433. bool Save(File) const;
  5434. bool Save(File, const String&) const;
  5435. bool Save(VectorBuffer&) const;
  5436. bool Save(const String&) const;
  5437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5438. // Properties:
  5439. /* readonly */
  5440. String category;
  5441. /* readonly */
  5442. uint memoryUse;
  5443. String name;
  5444. /* readonly */
  5445. int refs;
  5446. /* readonly */
  5447. JSONValue root;
  5448. /* readonly */
  5449. StringHash type;
  5450. /* readonly */
  5451. String typeName;
  5452. /* readonly */
  5453. uint useTimer;
  5454. /* readonly */
  5455. int weakRefs;
  5456. };
  5457. class JSONValue
  5458. {
  5459. // Methods:
  5460. void Clear();
  5461. bool Contains(const String&) const;
  5462. void Erase(const String&);
  5463. void Erase(uint, uint = 1);
  5464. bool GetBool() const;
  5465. double GetDouble() const;
  5466. float GetFloat() const;
  5467. int GetInt() const;
  5468. uint GetUInt() const;
  5469. void Insert(uint, const JSONValue&);
  5470. const JSONValue& Get(const String&) const;
  5471. void Pop();
  5472. void Push(const JSONValue&);
  5473. void Resize(uint);
  5474. void Set(const String&, const JSONValue&);
  5475. const String& GetString() const;
  5476. // Properties:
  5477. /* readonly */
  5478. bool isArray;
  5479. /* readonly */
  5480. bool isBool;
  5481. /* readonly */
  5482. bool isNull;
  5483. /* readonly */
  5484. bool isNumber;
  5485. /* readonly */
  5486. bool isObject;
  5487. /* readonly */
  5488. bool isString;
  5489. /* readonly */
  5490. JSONNumberType numberType;
  5491. /* readonly */
  5492. String numberTypeName;
  5493. /* readonly */
  5494. uint size;
  5495. /* readonly */
  5496. JSONValueType valueType;
  5497. /* readonly */
  5498. String valueTypeName;
  5499. };
  5500. class JoystickState
  5501. {
  5502. // Properties:
  5503. /* readonly */
  5504. Array<float> axisPosition;
  5505. /* readonly */
  5506. Array<bool> buttonDown;
  5507. /* readonly */
  5508. Array<bool> buttonPress;
  5509. /* readonly */
  5510. bool controller;
  5511. /* readonly */
  5512. Array<int> hatPosition;
  5513. int joystickID;
  5514. String name;
  5515. /* readonly */
  5516. uint numAxes;
  5517. /* readonly */
  5518. uint numButtons;
  5519. /* readonly */
  5520. uint numHats;
  5521. };
  5522. class Light
  5523. {
  5524. // Methods:
  5525. void ApplyAttributes();
  5526. void DrawDebugGeometry(DebugRenderer, bool);
  5527. Variant GetAttribute(const String&) const;
  5528. ValueAnimation GetAttributeAnimation(const String&) const;
  5529. float GetAttributeAnimationSpeed(const String&) const;
  5530. float GetAttributeAnimationTime(const String&) const;
  5531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5532. Variant GetAttributeDefault(const String&) const;
  5533. bool GetInterceptNetworkUpdate(const String&) const;
  5534. bool HasSubscribedToEvent(Object, const String&);
  5535. bool HasSubscribedToEvent(const String&);
  5536. bool IsInView(Camera) const;
  5537. bool Load(File, bool = false);
  5538. bool Load(VectorBuffer&, bool = false);
  5539. bool LoadJSON(const JSONValue&, bool = false);
  5540. bool LoadXML(const XMLElement&, bool = false);
  5541. void MarkNetworkUpdate() const;
  5542. void Remove();
  5543. void RemoveAttributeAnimation(const String&);
  5544. void RemoveInstanceDefault();
  5545. void RemoveObjectAnimation();
  5546. void ResetToDefault();
  5547. bool Save(File) const;
  5548. bool Save(VectorBuffer&) const;
  5549. bool SaveJSON(JSONValue&) const;
  5550. bool SaveXML(XMLElement&) const;
  5551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5552. void SetAnimationTime(float);
  5553. bool SetAttribute(const String&, const Variant&);
  5554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5555. void SetAttributeAnimationSpeed(const String&, float);
  5556. void SetAttributeAnimationTime(const String&, float);
  5557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5558. void SetInterceptNetworkUpdate(const String&, bool);
  5559. // Properties:
  5560. bool animationEnabled;
  5561. float aspectRatio;
  5562. /* readonly */
  5563. Array<Variant> attributeDefaults;
  5564. /* readonly */
  5565. Array<AttributeInfo> attributeInfos;
  5566. Array<Variant> attributes;
  5567. /* readonly */
  5568. BoundingBox boundingBox;
  5569. float brightness;
  5570. bool castShadows;
  5571. /* readonly */
  5572. String category;
  5573. Color color;
  5574. /* readonly */
  5575. Color colorFromTemperature;
  5576. float drawDistance;
  5577. /* readonly */
  5578. Color effectiveColor;
  5579. /* readonly */
  5580. float effectiveSpecularIntensity;
  5581. bool enabled;
  5582. /* readonly */
  5583. bool enabledEffective;
  5584. float fadeDistance;
  5585. float fov;
  5586. /* readonly */
  5587. Frustum frustum;
  5588. /* readonly */
  5589. uint id;
  5590. /* readonly */
  5591. bool inView;
  5592. float length;
  5593. uint lightMask;
  5594. LightType lightType;
  5595. float lodBias;
  5596. uint maxLights;
  5597. /* readonly */
  5598. bool negative;
  5599. /* readonly */
  5600. Node node;
  5601. /* readonly */
  5602. uint numAttributes;
  5603. /* readonly */
  5604. int numShadowSplits;
  5605. ObjectAnimation objectAnimation;
  5606. bool occludee;
  5607. bool occluder;
  5608. bool perVertex;
  5609. float radius;
  5610. Texture rampTexture;
  5611. float range;
  5612. /* readonly */
  5613. int refs;
  5614. BiasParameters shadowBias;
  5615. CascadeParameters shadowCascade;
  5616. float shadowDistance;
  5617. float shadowFadeDistance;
  5618. FocusParameters shadowFocus;
  5619. float shadowIntensity;
  5620. uint shadowMask;
  5621. float shadowMaxExtrusion;
  5622. float shadowNearFarRatio;
  5623. float shadowResolution;
  5624. Texture shapeTexture;
  5625. float specularIntensity;
  5626. float temperature;
  5627. bool temporary;
  5628. /* readonly */
  5629. StringHash type;
  5630. /* readonly */
  5631. String typeName;
  5632. bool usePhysicalValues;
  5633. uint viewMask;
  5634. /* readonly */
  5635. int weakRefs;
  5636. /* readonly */
  5637. BoundingBox worldBoundingBox;
  5638. uint zoneMask;
  5639. };
  5640. class LineEdit
  5641. {
  5642. // Methods:
  5643. void AddChild(UIElement);
  5644. void AddTag(const String&);
  5645. void AddTags(const String&, int8 = ';');
  5646. void ApplyAttributes();
  5647. void BringToFront();
  5648. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5649. void DisableLayoutUpdate();
  5650. IntVector2 ElementToScreen(const IntVector2&);
  5651. void EnableLayoutUpdate();
  5652. uint FindChild(UIElement) const;
  5653. Variant GetAttribute(const String&) const;
  5654. ValueAnimation GetAttributeAnimation(const String&) const;
  5655. float GetAttributeAnimationSpeed(const String&) const;
  5656. float GetAttributeAnimationTime(const String&) const;
  5657. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5658. Variant GetAttributeDefault(const String&) const;
  5659. UIElement GetChild(const String&, bool = false) const;
  5660. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5661. Array<UIElement> GetChildren(bool = false) const;
  5662. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5663. UIElement GetElementEventSender() const;
  5664. bool GetInterceptNetworkUpdate(const String&) const;
  5665. uint GetNumChildren(bool) const;
  5666. bool HasSubscribedToEvent(Object, const String&);
  5667. bool HasSubscribedToEvent(const String&);
  5668. bool HasTag(const String&) const;
  5669. void InsertChild(uint, UIElement);
  5670. bool IsInside(IntVector2, bool);
  5671. bool IsInsideCombined(IntVector2, bool);
  5672. bool Load(File, bool = false);
  5673. bool Load(VectorBuffer&, bool = false);
  5674. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5675. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5676. bool LoadJSON(const JSONValue&, bool = false);
  5677. bool LoadXML(File);
  5678. bool LoadXML(VectorBuffer&);
  5679. bool LoadXML(XMLFile, XMLFile);
  5680. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5681. bool LoadXML(const XMLElement&, bool = false);
  5682. void MarkNetworkUpdate() const;
  5683. void Remove();
  5684. void RemoveAllChildren();
  5685. void RemoveAllTags();
  5686. void RemoveAttributeAnimation(const String&);
  5687. void RemoveChild(UIElement, uint = 0);
  5688. void RemoveChild(uint);
  5689. void RemoveInstanceDefault();
  5690. void RemoveObjectAnimation();
  5691. bool RemoveTag(const String&);
  5692. void ResetDeepEnabled();
  5693. void ResetToDefault();
  5694. bool Save(File) const;
  5695. bool Save(VectorBuffer&) const;
  5696. bool SaveJSON(JSONValue&) const;
  5697. bool SaveXML(File, const String& = "\t");
  5698. bool SaveXML(VectorBuffer&, const String& = "\t");
  5699. bool SaveXML(XMLElement&) const;
  5700. IntVector2 ScreenToElement(const IntVector2&);
  5701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5702. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5703. void SetAnimationTime(float);
  5704. bool SetAttribute(const String&, const Variant&);
  5705. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5706. void SetAttributeAnimationSpeed(const String&, float);
  5707. void SetAttributeAnimationTime(const String&, float);
  5708. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5709. void SetDeepEnabled(bool);
  5710. void SetEnabledRecursive(bool);
  5711. void SetFixedHeight(int);
  5712. void SetFixedSize(int, int);
  5713. void SetFixedWidth(int);
  5714. void SetFullImageRect();
  5715. void SetHoverOffset(int, int);
  5716. void SetInterceptNetworkUpdate(const String&, bool);
  5717. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5718. void SetMaxAnchor(float, float);
  5719. void SetMaxSize(int, int);
  5720. void SetMinAnchor(float, float);
  5721. void SetMinSize(int, int);
  5722. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5723. void SetPivot(float, float);
  5724. void SetPosition(int, int);
  5725. void SetSize(int, int);
  5726. bool SetStyle(const String&, XMLFile = null);
  5727. bool SetStyle(const XMLElement&);
  5728. bool SetStyleAuto(XMLFile = null);
  5729. void UpdateLayout();
  5730. const Variant& GetVar(const StringHash&);
  5731. // Properties:
  5732. bool animationEnabled;
  5733. /* readonly */
  5734. Array<Variant> attributeDefaults;
  5735. /* readonly */
  5736. Array<AttributeInfo> attributeInfos;
  5737. Array<Variant> attributes;
  5738. BlendMode blendMode;
  5739. IntRect border;
  5740. bool bringToBack;
  5741. bool bringToFront;
  5742. /* readonly */
  5743. String category;
  5744. /* readonly */
  5745. IntVector2 childOffset;
  5746. /* readonly */
  5747. Array<UIElement> children;
  5748. IntRect clipBorder;
  5749. bool clipChildren;
  5750. /* writeonly */
  5751. Color color;
  5752. /* readonly */
  5753. bool colorGradient;
  5754. Array<Color> colors;
  5755. /* readonly */
  5756. IntRect combinedScreenRect;
  5757. /* readonly */
  5758. BorderImage cursor;
  5759. float cursorBlinkRate;
  5760. bool cursorMovable;
  5761. uint cursorPosition;
  5762. XMLFile defaultStyle;
  5763. /* readonly */
  5764. float derivedOpacity;
  5765. /* readonly */
  5766. uint dragButtonCombo;
  5767. /* readonly */
  5768. int dragButtonCount;
  5769. uint dragDropMode;
  5770. uint echoCharacter;
  5771. bool editable;
  5772. bool elementEventSender;
  5773. bool enableAnchor;
  5774. bool enabled;
  5775. /* readonly */
  5776. bool enabledSelf;
  5777. /* readonly */
  5778. bool fixedHeight;
  5779. /* readonly */
  5780. bool fixedSize;
  5781. /* readonly */
  5782. bool fixedWidth;
  5783. bool focus;
  5784. FocusMode focusMode;
  5785. int height;
  5786. HorizontalAlignment horizontalAlignment;
  5787. IntVector2 hoverOffset;
  5788. /* readonly */
  5789. bool hovering;
  5790. IntRect imageBorder;
  5791. IntRect imageRect;
  5792. int indent;
  5793. int indentSpacing;
  5794. /* readonly */
  5795. int indentWidth;
  5796. bool internal;
  5797. IntRect layoutBorder;
  5798. Vector2 layoutFlexScale;
  5799. LayoutMode layoutMode;
  5800. int layoutSpacing;
  5801. Vector2 maxAnchor;
  5802. int maxHeight;
  5803. uint maxLength;
  5804. IntVector2 maxOffset;
  5805. IntVector2 maxSize;
  5806. int maxWidth;
  5807. Vector2 minAnchor;
  5808. int minHeight;
  5809. IntVector2 minOffset;
  5810. IntVector2 minSize;
  5811. int minWidth;
  5812. String name;
  5813. /* readonly */
  5814. uint numAllChildren;
  5815. /* readonly */
  5816. uint numAttributes;
  5817. /* readonly */
  5818. uint numChildren;
  5819. ObjectAnimation objectAnimation;
  5820. float opacity;
  5821. UIElement parent;
  5822. Vector2 pivot;
  5823. IntVector2 position;
  5824. int priority;
  5825. /* readonly */
  5826. int refs;
  5827. /* readonly */
  5828. UIElement root;
  5829. /* readonly */
  5830. IntVector2 screenPosition;
  5831. bool selected;
  5832. IntVector2 size;
  5833. bool sortChildren;
  5834. String style;
  5835. /* readonly */
  5836. Array<String> tags;
  5837. bool temporary;
  5838. String text;
  5839. bool textCopyable;
  5840. /* readonly */
  5841. Text textElement;
  5842. bool textSelectable;
  5843. Texture texture;
  5844. bool tiled;
  5845. TraversalMode traversalMode;
  5846. /* readonly */
  5847. StringHash type;
  5848. /* readonly */
  5849. String typeName;
  5850. bool useDerivedOpacity;
  5851. /* readonly */
  5852. VariantMap vars;
  5853. VerticalAlignment verticalAlignment;
  5854. bool visible;
  5855. /* readonly */
  5856. bool visibleEffective;
  5857. /* readonly */
  5858. int weakRefs;
  5859. int width;
  5860. };
  5861. class ListView
  5862. {
  5863. // Methods:
  5864. void AddChild(UIElement);
  5865. void AddItem(UIElement);
  5866. void AddSelection(uint);
  5867. void AddTag(const String&);
  5868. void AddTags(const String&, int8 = ';');
  5869. void ApplyAttributes();
  5870. void BringToFront();
  5871. void ChangeSelection(int, bool);
  5872. void ClearSelection();
  5873. void CopySelectedItemsToClipboard();
  5874. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5875. void DisableLayoutUpdate();
  5876. IntVector2 ElementToScreen(const IntVector2&);
  5877. void EnableLayoutUpdate();
  5878. void Expand(uint, bool, bool = false);
  5879. uint FindChild(UIElement) const;
  5880. uint FindItem(UIElement);
  5881. Variant GetAttribute(const String&) const;
  5882. ValueAnimation GetAttributeAnimation(const String&) const;
  5883. float GetAttributeAnimationSpeed(const String&) const;
  5884. float GetAttributeAnimationTime(const String&) const;
  5885. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5886. Variant GetAttributeDefault(const String&) const;
  5887. UIElement GetChild(const String&, bool = false) const;
  5888. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5889. Array<UIElement> GetChildren(bool = false) const;
  5890. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5891. UIElement GetElementEventSender() const;
  5892. bool GetInterceptNetworkUpdate(const String&) const;
  5893. Array<UIElement> GetItems() const;
  5894. uint GetNumChildren(bool) const;
  5895. bool HasSubscribedToEvent(Object, const String&);
  5896. bool HasSubscribedToEvent(const String&);
  5897. bool HasTag(const String&) const;
  5898. void InsertChild(uint, UIElement);
  5899. void InsertItem(uint, UIElement, UIElement = null);
  5900. bool IsExpanded(uint) const;
  5901. bool IsInside(IntVector2, bool);
  5902. bool IsInsideCombined(IntVector2, bool);
  5903. bool IsSelected(uint) const;
  5904. bool Load(File, bool = false);
  5905. bool Load(VectorBuffer&, bool = false);
  5906. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5907. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5908. bool LoadJSON(const JSONValue&, bool = false);
  5909. bool LoadXML(File);
  5910. bool LoadXML(VectorBuffer&);
  5911. bool LoadXML(XMLFile, XMLFile);
  5912. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5913. bool LoadXML(const XMLElement&, bool = false);
  5914. void MarkNetworkUpdate() const;
  5915. void Remove();
  5916. void RemoveAllChildren();
  5917. void RemoveAllItems();
  5918. void RemoveAllTags();
  5919. void RemoveAttributeAnimation(const String&);
  5920. void RemoveChild(UIElement, uint = 0);
  5921. void RemoveChild(uint);
  5922. void RemoveInstanceDefault();
  5923. void RemoveItem(UIElement, uint = 0);
  5924. void RemoveItem(uint);
  5925. void RemoveObjectAnimation();
  5926. void RemoveSelection(uint);
  5927. bool RemoveTag(const String&);
  5928. void ResetDeepEnabled();
  5929. void ResetToDefault();
  5930. bool Save(File) const;
  5931. bool Save(VectorBuffer&) const;
  5932. bool SaveJSON(JSONValue&) const;
  5933. bool SaveXML(File, const String& = "\t");
  5934. bool SaveXML(VectorBuffer&, const String& = "\t");
  5935. bool SaveXML(XMLElement&) const;
  5936. IntVector2 ScreenToElement(const IntVector2&);
  5937. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5938. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5939. void SetAnimationTime(float);
  5940. bool SetAttribute(const String&, const Variant&);
  5941. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5942. void SetAttributeAnimationSpeed(const String&, float);
  5943. void SetAttributeAnimationTime(const String&, float);
  5944. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5945. void SetDeepEnabled(bool);
  5946. void SetEnabledRecursive(bool);
  5947. void SetFixedHeight(int);
  5948. void SetFixedSize(int, int);
  5949. void SetFixedWidth(int);
  5950. void SetInterceptNetworkUpdate(const String&, bool);
  5951. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5952. void SetMaxAnchor(float, float);
  5953. void SetMaxSize(int, int);
  5954. void SetMinAnchor(float, float);
  5955. void SetMinSize(int, int);
  5956. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5957. void SetPivot(float, float);
  5958. void SetPosition(int, int);
  5959. void SetScrollBarsVisible(bool, bool);
  5960. void SetSelections(Array<uint>);
  5961. void SetSize(int, int);
  5962. bool SetStyle(const String&, XMLFile = null);
  5963. bool SetStyle(const XMLElement&);
  5964. bool SetStyleAuto(XMLFile = null);
  5965. void SetViewPosition(int, int);
  5966. void ToggleExpand(uint, bool = false);
  5967. void ToggleSelection(uint);
  5968. void UpdateLayout();
  5969. const Variant& GetVar(const StringHash&);
  5970. // Properties:
  5971. bool animationEnabled;
  5972. /* readonly */
  5973. Array<Variant> attributeDefaults;
  5974. /* readonly */
  5975. Array<AttributeInfo> attributeInfos;
  5976. Array<Variant> attributes;
  5977. bool autoDisableChildren;
  5978. float autoDisableThreshold;
  5979. int baseIndent;
  5980. bool bringToBack;
  5981. bool bringToFront;
  5982. /* readonly */
  5983. String category;
  5984. /* readonly */
  5985. IntVector2 childOffset;
  5986. /* readonly */
  5987. Array<UIElement> children;
  5988. bool clearSelectionOnDefocus;
  5989. IntRect clipBorder;
  5990. bool clipChildren;
  5991. /* writeonly */
  5992. Color color;
  5993. /* readonly */
  5994. bool colorGradient;
  5995. Array<Color> colors;
  5996. /* readonly */
  5997. IntRect combinedScreenRect;
  5998. /* readonly */
  5999. UIElement contentElement;
  6000. XMLFile defaultStyle;
  6001. /* readonly */
  6002. float derivedOpacity;
  6003. /* readonly */
  6004. uint dragButtonCombo;
  6005. /* readonly */
  6006. int dragButtonCount;
  6007. uint dragDropMode;
  6008. bool editable;
  6009. bool elementEventSender;
  6010. bool enableAnchor;
  6011. bool enabled;
  6012. /* readonly */
  6013. bool enabledSelf;
  6014. /* readonly */
  6015. bool fixedHeight;
  6016. /* readonly */
  6017. bool fixedSize;
  6018. /* readonly */
  6019. bool fixedWidth;
  6020. bool focus;
  6021. FocusMode focusMode;
  6022. int height;
  6023. bool hierarchyMode;
  6024. HighlightMode highlightMode;
  6025. HorizontalAlignment horizontalAlignment;
  6026. /* readonly */
  6027. ScrollBar horizontalScrollBar;
  6028. /* readonly */
  6029. bool hovering;
  6030. int indent;
  6031. int indentSpacing;
  6032. /* readonly */
  6033. int indentWidth;
  6034. bool internal;
  6035. /* readonly */
  6036. Array<UIElement> items;
  6037. IntRect layoutBorder;
  6038. Vector2 layoutFlexScale;
  6039. LayoutMode layoutMode;
  6040. int layoutSpacing;
  6041. Vector2 maxAnchor;
  6042. int maxHeight;
  6043. IntVector2 maxOffset;
  6044. IntVector2 maxSize;
  6045. int maxWidth;
  6046. Vector2 minAnchor;
  6047. int minHeight;
  6048. IntVector2 minOffset;
  6049. IntVector2 minSize;
  6050. int minWidth;
  6051. bool multiselect;
  6052. String name;
  6053. /* readonly */
  6054. uint numAllChildren;
  6055. /* readonly */
  6056. uint numAttributes;
  6057. /* readonly */
  6058. uint numChildren;
  6059. /* readonly */
  6060. uint numItems;
  6061. ObjectAnimation objectAnimation;
  6062. float opacity;
  6063. float pageStep;
  6064. UIElement parent;
  6065. Vector2 pivot;
  6066. IntVector2 position;
  6067. int priority;
  6068. /* readonly */
  6069. int refs;
  6070. /* readonly */
  6071. UIElement root;
  6072. /* readonly */
  6073. IntVector2 screenPosition;
  6074. bool scrollBarsAutoVisible;
  6075. float scrollDeceleration;
  6076. /* readonly */
  6077. BorderImage scrollPanel;
  6078. float scrollSnapEpsilon;
  6079. float scrollStep;
  6080. bool selectOnClickEnd;
  6081. bool selected;
  6082. /* readonly */
  6083. UIElement selectedItem;
  6084. /* readonly */
  6085. Array<UIElement> selectedItems;
  6086. uint selection;
  6087. /* readonly */
  6088. Array<uint> selections;
  6089. IntVector2 size;
  6090. bool sortChildren;
  6091. String style;
  6092. /* readonly */
  6093. Array<String> tags;
  6094. bool temporary;
  6095. TraversalMode traversalMode;
  6096. /* readonly */
  6097. StringHash type;
  6098. /* readonly */
  6099. String typeName;
  6100. bool useDerivedOpacity;
  6101. /* readonly */
  6102. VariantMap vars;
  6103. VerticalAlignment verticalAlignment;
  6104. /* readonly */
  6105. ScrollBar verticalScrollBar;
  6106. IntVector2 viewPosition;
  6107. bool visible;
  6108. /* readonly */
  6109. bool visibleEffective;
  6110. /* readonly */
  6111. int weakRefs;
  6112. int width;
  6113. };
  6114. class Localization
  6115. {
  6116. // Methods:
  6117. String Get(const String&);
  6118. String GetLanguage(int);
  6119. int GetLanguageIndex(const String&);
  6120. bool HasSubscribedToEvent(Object, const String&);
  6121. bool HasSubscribedToEvent(const String&);
  6122. void LoadJSON(const JSONValue&);
  6123. void LoadJSONFile(const String&);
  6124. void Reset();
  6125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6126. void SetLanguage(const String&);
  6127. void SetLanguage(int);
  6128. // Properties:
  6129. /* readonly */
  6130. String category;
  6131. /* readonly */
  6132. String language;
  6133. /* readonly */
  6134. int languageIndex;
  6135. /* readonly */
  6136. int numLanguages;
  6137. /* readonly */
  6138. int refs;
  6139. /* readonly */
  6140. StringHash type;
  6141. /* readonly */
  6142. String typeName;
  6143. /* readonly */
  6144. int weakRefs;
  6145. };
  6146. class Log
  6147. {
  6148. // Methods:
  6149. void Close();
  6150. void Debug(const String&);
  6151. void Error(const String&);
  6152. bool HasSubscribedToEvent(Object, const String&);
  6153. bool HasSubscribedToEvent(const String&);
  6154. void Info(const String&);
  6155. void Open(const String&);
  6156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6157. void Warning(const String&);
  6158. void Write(const String&, bool = false);
  6159. // Properties:
  6160. /* readonly */
  6161. String category;
  6162. /* readonly */
  6163. String lastMessage;
  6164. int level;
  6165. bool quiet;
  6166. /* readonly */
  6167. int refs;
  6168. bool timeStamp;
  6169. /* readonly */
  6170. StringHash type;
  6171. /* readonly */
  6172. String typeName;
  6173. /* readonly */
  6174. int weakRefs;
  6175. };
  6176. class Material
  6177. {
  6178. // Methods:
  6179. Material Clone(const String& = String ( )) const;
  6180. Pass GetPass(uint, const String&);
  6181. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6182. float GetShaderParameterAnimationSpeed(const String&) const;
  6183. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6184. bool HasSubscribedToEvent(Object, const String&);
  6185. bool HasSubscribedToEvent(const String&);
  6186. bool Load(File);
  6187. bool Load(VectorBuffer&);
  6188. bool Load(const JSONValue&);
  6189. bool Load(const String&);
  6190. bool Load(const XMLElement&);
  6191. void RemoveShaderParameter(const String&);
  6192. bool Save(File) const;
  6193. bool Save(JSONValue&) const;
  6194. bool Save(VectorBuffer&) const;
  6195. bool Save(XMLElement&) const;
  6196. bool Save(const String&) const;
  6197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6198. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6199. void SetShaderParameterAnimationSpeed(const String&, float);
  6200. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6201. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6202. void SetUVTransform(const Vector2&, float, const Vector2&);
  6203. void SetUVTransform(const Vector2&, float, float);
  6204. void SortTechniques();
  6205. // Properties:
  6206. bool alphaToCoverage;
  6207. /* readonly */
  6208. String category;
  6209. CullMode cullMode;
  6210. BiasParameters depthBias;
  6211. FillMode fillMode;
  6212. bool lineAntiAlias;
  6213. /* readonly */
  6214. uint memoryUse;
  6215. String name;
  6216. uint numTechniques;
  6217. bool occlusion;
  6218. String pixelShaderDefines;
  6219. /* readonly */
  6220. int refs;
  6221. uint8 renderOrder;
  6222. Scene scene;
  6223. /* readonly */
  6224. Array<String> shaderParameterNames;
  6225. Array<Variant> shaderParameters;
  6226. CullMode shadowCullMode;
  6227. /* readonly */
  6228. Array<TechniqueEntry> techniqueEntries;
  6229. /* readonly */
  6230. Array<Technique> techniques;
  6231. Array<Texture> textures;
  6232. /* readonly */
  6233. StringHash type;
  6234. /* readonly */
  6235. String typeName;
  6236. /* readonly */
  6237. uint useTimer;
  6238. String vertexShaderDefines;
  6239. /* readonly */
  6240. int weakRefs;
  6241. };
  6242. class Matrix2
  6243. {
  6244. // Methods:
  6245. bool Equals(const Matrix2&) const;
  6246. Matrix2 Inverse() const;
  6247. Vector2 Scale() const;
  6248. Matrix2 Scaled(const Vector2&) const;
  6249. void SetScale(const Vector2&);
  6250. void SetScale(float);
  6251. String ToString() const;
  6252. Matrix2 Transpose() const;
  6253. // Properties:
  6254. float m00;
  6255. float m01;
  6256. float m10;
  6257. float m11;
  6258. };
  6259. class Matrix3
  6260. {
  6261. // Methods:
  6262. bool Equals(const Matrix3&) const;
  6263. Matrix3 Inverse() const;
  6264. Vector3 Scale() const;
  6265. Matrix3 Scaled(const Vector3&) const;
  6266. void SetScale(const Vector3&);
  6267. void SetScale(float);
  6268. String ToString() const;
  6269. Matrix3 Transpose() const;
  6270. // Properties:
  6271. float m00;
  6272. float m01;
  6273. float m02;
  6274. float m10;
  6275. float m11;
  6276. float m12;
  6277. float m20;
  6278. float m21;
  6279. float m22;
  6280. };
  6281. class Matrix3x4
  6282. {
  6283. // Methods:
  6284. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6285. bool Equals(const Matrix3x4&) const;
  6286. Matrix3x4 Inverse() const;
  6287. Quaternion Rotation() const;
  6288. Matrix3 RotationMatrix() const;
  6289. Vector3 Scale() const;
  6290. void SetRotation(const Matrix3&);
  6291. void SetScale(const Vector3&);
  6292. void SetScale(float);
  6293. void SetTranslation(const Vector3&);
  6294. Matrix3 ToMatrix3() const;
  6295. Matrix4 ToMatrix4() const;
  6296. String ToString() const;
  6297. Vector3 Translation() const;
  6298. // Properties:
  6299. float m00;
  6300. float m01;
  6301. float m02;
  6302. float m03;
  6303. float m10;
  6304. float m11;
  6305. float m12;
  6306. float m13;
  6307. float m20;
  6308. float m21;
  6309. float m22;
  6310. float m23;
  6311. };
  6312. class Matrix4
  6313. {
  6314. // Methods:
  6315. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6316. bool Equals(const Matrix4&) const;
  6317. Matrix4 Inverse() const;
  6318. Quaternion Rotation() const;
  6319. Matrix3 RotationMatrix() const;
  6320. Vector3 Scale() const;
  6321. void SetRotation(const Matrix3&);
  6322. void SetScale(const Vector3&);
  6323. void SetScale(float);
  6324. void SetTranslation(const Vector3&);
  6325. Matrix3 ToMatrix3() const;
  6326. String ToString() const;
  6327. Vector3 Translation() const;
  6328. Matrix4 Transpose() const;
  6329. // Properties:
  6330. float m00;
  6331. float m01;
  6332. float m02;
  6333. float m03;
  6334. float m10;
  6335. float m11;
  6336. float m12;
  6337. float m13;
  6338. float m20;
  6339. float m21;
  6340. float m22;
  6341. float m23;
  6342. float m30;
  6343. float m31;
  6344. float m32;
  6345. float m33;
  6346. };
  6347. class Menu
  6348. {
  6349. // Methods:
  6350. void AddChild(UIElement);
  6351. void AddTag(const String&);
  6352. void AddTags(const String&, int8 = ';');
  6353. void ApplyAttributes();
  6354. void BringToFront();
  6355. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6356. void DisableLayoutUpdate();
  6357. IntVector2 ElementToScreen(const IntVector2&);
  6358. void EnableLayoutUpdate();
  6359. uint FindChild(UIElement) const;
  6360. Variant GetAttribute(const String&) const;
  6361. ValueAnimation GetAttributeAnimation(const String&) const;
  6362. float GetAttributeAnimationSpeed(const String&) const;
  6363. float GetAttributeAnimationTime(const String&) const;
  6364. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6365. Variant GetAttributeDefault(const String&) const;
  6366. UIElement GetChild(const String&, bool = false) const;
  6367. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6368. Array<UIElement> GetChildren(bool = false) const;
  6369. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6370. UIElement GetElementEventSender() const;
  6371. bool GetInterceptNetworkUpdate(const String&) const;
  6372. uint GetNumChildren(bool) const;
  6373. bool HasSubscribedToEvent(Object, const String&);
  6374. bool HasSubscribedToEvent(const String&);
  6375. bool HasTag(const String&) const;
  6376. void InsertChild(uint, UIElement);
  6377. bool IsInside(IntVector2, bool);
  6378. bool IsInsideCombined(IntVector2, bool);
  6379. bool Load(File, bool = false);
  6380. bool Load(VectorBuffer&, bool = false);
  6381. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6382. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6383. bool LoadJSON(const JSONValue&, bool = false);
  6384. bool LoadXML(File);
  6385. bool LoadXML(VectorBuffer&);
  6386. bool LoadXML(XMLFile, XMLFile);
  6387. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6388. bool LoadXML(const XMLElement&, bool = false);
  6389. void MarkNetworkUpdate() const;
  6390. void Remove();
  6391. void RemoveAllChildren();
  6392. void RemoveAllTags();
  6393. void RemoveAttributeAnimation(const String&);
  6394. void RemoveChild(UIElement, uint = 0);
  6395. void RemoveChild(uint);
  6396. void RemoveInstanceDefault();
  6397. void RemoveObjectAnimation();
  6398. bool RemoveTag(const String&);
  6399. void ResetDeepEnabled();
  6400. void ResetToDefault();
  6401. bool Save(File) const;
  6402. bool Save(VectorBuffer&) const;
  6403. bool SaveJSON(JSONValue&) const;
  6404. bool SaveXML(File, const String& = "\t");
  6405. bool SaveXML(VectorBuffer&, const String& = "\t");
  6406. bool SaveXML(XMLElement&) const;
  6407. IntVector2 ScreenToElement(const IntVector2&);
  6408. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6409. void SetAccelerator(int, int);
  6410. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6411. void SetAnimationTime(float);
  6412. bool SetAttribute(const String&, const Variant&);
  6413. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6414. void SetAttributeAnimationSpeed(const String&, float);
  6415. void SetAttributeAnimationTime(const String&, float);
  6416. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6417. void SetDeepEnabled(bool);
  6418. void SetEnabledRecursive(bool);
  6419. void SetFixedHeight(int);
  6420. void SetFixedSize(int, int);
  6421. void SetFixedWidth(int);
  6422. void SetFullImageRect();
  6423. void SetHoverOffset(int, int);
  6424. void SetInterceptNetworkUpdate(const String&, bool);
  6425. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6426. void SetMaxAnchor(float, float);
  6427. void SetMaxSize(int, int);
  6428. void SetMinAnchor(float, float);
  6429. void SetMinSize(int, int);
  6430. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6431. void SetPivot(float, float);
  6432. void SetPopupOffset(int, int);
  6433. void SetPosition(int, int);
  6434. void SetPressedChildOffset(int, int);
  6435. void SetPressedOffset(int, int);
  6436. void SetRepeat(float, float);
  6437. void SetSize(int, int);
  6438. bool SetStyle(const String&, XMLFile = null);
  6439. bool SetStyle(const XMLElement&);
  6440. bool SetStyleAuto(XMLFile = null);
  6441. void UpdateLayout();
  6442. const Variant& GetVar(const StringHash&);
  6443. // Properties:
  6444. /* readonly */
  6445. int acceleratorKey;
  6446. /* readonly */
  6447. int acceleratorQualifiers;
  6448. bool animationEnabled;
  6449. /* readonly */
  6450. Array<Variant> attributeDefaults;
  6451. /* readonly */
  6452. Array<AttributeInfo> attributeInfos;
  6453. Array<Variant> attributes;
  6454. BlendMode blendMode;
  6455. IntRect border;
  6456. bool bringToBack;
  6457. bool bringToFront;
  6458. /* readonly */
  6459. String category;
  6460. /* readonly */
  6461. IntVector2 childOffset;
  6462. /* readonly */
  6463. Array<UIElement> children;
  6464. IntRect clipBorder;
  6465. bool clipChildren;
  6466. /* writeonly */
  6467. Color color;
  6468. /* readonly */
  6469. bool colorGradient;
  6470. Array<Color> colors;
  6471. /* readonly */
  6472. IntRect combinedScreenRect;
  6473. XMLFile defaultStyle;
  6474. /* readonly */
  6475. float derivedOpacity;
  6476. /* readonly */
  6477. uint dragButtonCombo;
  6478. /* readonly */
  6479. int dragButtonCount;
  6480. uint dragDropMode;
  6481. bool editable;
  6482. bool elementEventSender;
  6483. bool enableAnchor;
  6484. bool enabled;
  6485. /* readonly */
  6486. bool enabledSelf;
  6487. /* readonly */
  6488. bool fixedHeight;
  6489. /* readonly */
  6490. bool fixedSize;
  6491. /* readonly */
  6492. bool fixedWidth;
  6493. bool focus;
  6494. FocusMode focusMode;
  6495. int height;
  6496. HorizontalAlignment horizontalAlignment;
  6497. IntVector2 hoverOffset;
  6498. /* readonly */
  6499. bool hovering;
  6500. IntRect imageBorder;
  6501. IntRect imageRect;
  6502. int indent;
  6503. int indentSpacing;
  6504. /* readonly */
  6505. int indentWidth;
  6506. bool internal;
  6507. IntRect layoutBorder;
  6508. Vector2 layoutFlexScale;
  6509. LayoutMode layoutMode;
  6510. int layoutSpacing;
  6511. Vector2 maxAnchor;
  6512. int maxHeight;
  6513. IntVector2 maxOffset;
  6514. IntVector2 maxSize;
  6515. int maxWidth;
  6516. Vector2 minAnchor;
  6517. int minHeight;
  6518. IntVector2 minOffset;
  6519. IntVector2 minSize;
  6520. int minWidth;
  6521. String name;
  6522. /* readonly */
  6523. uint numAllChildren;
  6524. /* readonly */
  6525. uint numAttributes;
  6526. /* readonly */
  6527. uint numChildren;
  6528. ObjectAnimation objectAnimation;
  6529. float opacity;
  6530. UIElement parent;
  6531. Vector2 pivot;
  6532. UIElement popup;
  6533. IntVector2 popupOffset;
  6534. IntVector2 position;
  6535. /* readonly */
  6536. bool pressed;
  6537. IntVector2 pressedChildOffset;
  6538. IntVector2 pressedOffset;
  6539. int priority;
  6540. /* readonly */
  6541. int refs;
  6542. float repeatDelay;
  6543. float repeatRate;
  6544. /* readonly */
  6545. UIElement root;
  6546. /* readonly */
  6547. IntVector2 screenPosition;
  6548. bool selected;
  6549. bool showPopup;
  6550. IntVector2 size;
  6551. bool sortChildren;
  6552. String style;
  6553. /* readonly */
  6554. Array<String> tags;
  6555. bool temporary;
  6556. Texture texture;
  6557. bool tiled;
  6558. TraversalMode traversalMode;
  6559. /* readonly */
  6560. StringHash type;
  6561. /* readonly */
  6562. String typeName;
  6563. bool useDerivedOpacity;
  6564. /* readonly */
  6565. VariantMap vars;
  6566. VerticalAlignment verticalAlignment;
  6567. bool visible;
  6568. /* readonly */
  6569. bool visibleEffective;
  6570. /* readonly */
  6571. int weakRefs;
  6572. int width;
  6573. };
  6574. class MessageBox
  6575. {
  6576. // Methods:
  6577. bool HasSubscribedToEvent(Object, const String&);
  6578. bool HasSubscribedToEvent(const String&);
  6579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6580. // Properties:
  6581. /* readonly */
  6582. String category;
  6583. String message;
  6584. /* readonly */
  6585. int refs;
  6586. String title;
  6587. /* readonly */
  6588. StringHash type;
  6589. /* readonly */
  6590. String typeName;
  6591. /* readonly */
  6592. int weakRefs;
  6593. /* readonly */
  6594. UIElement window;
  6595. };
  6596. class Model
  6597. {
  6598. // Methods:
  6599. Model Clone(const String& = String ( )) const;
  6600. Geometry GetGeometry(uint, uint) const;
  6601. bool HasSubscribedToEvent(Object, const String&);
  6602. bool HasSubscribedToEvent(const String&);
  6603. bool Load(File);
  6604. bool Load(VectorBuffer&);
  6605. bool Load(const String&);
  6606. bool Save(File) const;
  6607. bool Save(VectorBuffer&) const;
  6608. bool Save(const String&) const;
  6609. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6610. bool SetGeometry(uint, uint, Geometry);
  6611. bool SetIndexBuffers(Array<IndexBuffer>);
  6612. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  6613. // Properties:
  6614. BoundingBox boundingBox;
  6615. /* readonly */
  6616. String category;
  6617. Array<Vector3> geometryCenters;
  6618. /* readonly */
  6619. uint memoryUse;
  6620. String name;
  6621. uint numGeometries;
  6622. Array<uint> numGeometryLodLevels;
  6623. /* readonly */
  6624. uint numMorphs;
  6625. /* readonly */
  6626. int refs;
  6627. /* readonly */
  6628. Skeleton skeleton;
  6629. /* readonly */
  6630. StringHash type;
  6631. /* readonly */
  6632. String typeName;
  6633. /* readonly */
  6634. uint useTimer;
  6635. /* readonly */
  6636. int weakRefs;
  6637. };
  6638. class NamedPipe
  6639. {
  6640. // Methods:
  6641. void Close();
  6642. bool HasSubscribedToEvent(Object, const String&);
  6643. bool HasSubscribedToEvent(const String&);
  6644. bool Open(const String&, bool);
  6645. Array<uint8> Read(uint);
  6646. bool ReadBool();
  6647. BoundingBox ReadBoundingBox();
  6648. int8 ReadByte();
  6649. Color ReadColor();
  6650. double ReadDouble();
  6651. String ReadFileID();
  6652. float ReadFloat();
  6653. int ReadInt();
  6654. int64 ReadInt64();
  6655. IntRect ReadIntRect();
  6656. IntVector2 ReadIntVector2();
  6657. String ReadLine();
  6658. Matrix3 ReadMatrix3();
  6659. Matrix3x4 ReadMatrix3x4();
  6660. Matrix4 ReadMatrix4();
  6661. uint ReadNetID();
  6662. Quaternion ReadPackedQuaternion();
  6663. Vector3 ReadPackedVector3(float);
  6664. Quaternion ReadQuaternion();
  6665. int16 ReadShort();
  6666. String ReadString();
  6667. StringHash ReadStringHash();
  6668. uint8 ReadUByte();
  6669. uint ReadUInt();
  6670. uint64 ReadUInt64();
  6671. uint16 ReadUShort();
  6672. uint ReadVLE();
  6673. Variant ReadVariant();
  6674. VariantMap ReadVariantMap();
  6675. Vector2 ReadVector2();
  6676. Vector3 ReadVector3();
  6677. Vector4 ReadVector4();
  6678. VectorBuffer ReadVectorBuffer(uint);
  6679. uint Seek(uint);
  6680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6681. uint Write(Array<uint8>);
  6682. bool WriteBool(bool);
  6683. bool WriteBoundingBox(const BoundingBox&);
  6684. bool WriteByte(int8);
  6685. bool WriteColor(const Color&);
  6686. bool WriteDouble(double);
  6687. bool WriteFileID(const String&);
  6688. bool WriteFloat(float);
  6689. bool WriteInt(int);
  6690. bool WriteInt64(int64);
  6691. bool WriteIntRect(const IntRect&);
  6692. bool WriteIntVector2(const IntVector2&);
  6693. bool WriteLine(const String&);
  6694. bool WriteMatrix3(const Matrix3&);
  6695. bool WriteMatrix3x4(const Matrix3x4&);
  6696. bool WriteMatrix4(const Matrix4&);
  6697. bool WriteNetID(uint);
  6698. bool WritePackedQuaternion(const Quaternion&);
  6699. bool WritePackedVector3(const Vector3&, float);
  6700. bool WriteQuaternion(const Quaternion&);
  6701. bool WriteShort(int16);
  6702. bool WriteString(const String&);
  6703. bool WriteStringHash(const StringHash&);
  6704. bool WriteUByte(uint8);
  6705. bool WriteUInt(uint);
  6706. bool WriteUInt64(uint64);
  6707. bool WriteUShort(uint16);
  6708. bool WriteVLE(uint);
  6709. bool WriteVariant(const Variant&);
  6710. bool WriteVariantMap(const VariantMap&);
  6711. bool WriteVector2(const Vector2&);
  6712. bool WriteVector3(const Vector3&);
  6713. bool WriteVector4(const Vector4&);
  6714. bool WriteVectorBuffer(const VectorBuffer&);
  6715. // Properties:
  6716. /* readonly */
  6717. String category;
  6718. /* readonly */
  6719. uint checksum;
  6720. /* readonly */
  6721. bool eof;
  6722. /* readonly */
  6723. String name;
  6724. /* readonly */
  6725. bool open;
  6726. /* readonly */
  6727. uint position;
  6728. /* readonly */
  6729. int refs;
  6730. /* readonly */
  6731. bool server;
  6732. /* readonly */
  6733. uint size;
  6734. /* readonly */
  6735. StringHash type;
  6736. /* readonly */
  6737. String typeName;
  6738. /* readonly */
  6739. int weakRefs;
  6740. };
  6741. class NavArea
  6742. {
  6743. // Methods:
  6744. void ApplyAttributes();
  6745. void DrawDebugGeometry(DebugRenderer, bool);
  6746. Variant GetAttribute(const String&) const;
  6747. ValueAnimation GetAttributeAnimation(const String&) const;
  6748. float GetAttributeAnimationSpeed(const String&) const;
  6749. float GetAttributeAnimationTime(const String&) const;
  6750. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6751. Variant GetAttributeDefault(const String&) const;
  6752. bool GetInterceptNetworkUpdate(const String&) const;
  6753. bool HasSubscribedToEvent(Object, const String&);
  6754. bool HasSubscribedToEvent(const String&);
  6755. bool Load(File, bool = false);
  6756. bool Load(VectorBuffer&, bool = false);
  6757. bool LoadJSON(const JSONValue&, bool = false);
  6758. bool LoadXML(const XMLElement&, bool = false);
  6759. void MarkNetworkUpdate() const;
  6760. void Remove();
  6761. void RemoveAttributeAnimation(const String&);
  6762. void RemoveInstanceDefault();
  6763. void RemoveObjectAnimation();
  6764. void ResetToDefault();
  6765. bool Save(File) const;
  6766. bool Save(VectorBuffer&) const;
  6767. bool SaveJSON(JSONValue&) const;
  6768. bool SaveXML(XMLElement&) const;
  6769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6770. void SetAnimationTime(float);
  6771. bool SetAttribute(const String&, const Variant&);
  6772. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6773. void SetAttributeAnimationSpeed(const String&, float);
  6774. void SetAttributeAnimationTime(const String&, float);
  6775. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6776. void SetInterceptNetworkUpdate(const String&, bool);
  6777. // Properties:
  6778. bool animationEnabled;
  6779. uint areaID;
  6780. /* readonly */
  6781. Array<Variant> attributeDefaults;
  6782. /* readonly */
  6783. Array<AttributeInfo> attributeInfos;
  6784. Array<Variant> attributes;
  6785. BoundingBox boundingBox;
  6786. /* readonly */
  6787. String category;
  6788. bool enabled;
  6789. /* readonly */
  6790. bool enabledEffective;
  6791. /* readonly */
  6792. uint id;
  6793. /* readonly */
  6794. Node node;
  6795. /* readonly */
  6796. uint numAttributes;
  6797. ObjectAnimation objectAnimation;
  6798. /* readonly */
  6799. int refs;
  6800. bool temporary;
  6801. /* readonly */
  6802. StringHash type;
  6803. /* readonly */
  6804. String typeName;
  6805. /* readonly */
  6806. int weakRefs;
  6807. /* readonly */
  6808. BoundingBox worldBoundingBox;
  6809. };
  6810. class Navigable
  6811. {
  6812. // Methods:
  6813. void ApplyAttributes();
  6814. void DrawDebugGeometry(DebugRenderer, bool);
  6815. Variant GetAttribute(const String&) const;
  6816. ValueAnimation GetAttributeAnimation(const String&) const;
  6817. float GetAttributeAnimationSpeed(const String&) const;
  6818. float GetAttributeAnimationTime(const String&) const;
  6819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6820. Variant GetAttributeDefault(const String&) const;
  6821. bool GetInterceptNetworkUpdate(const String&) const;
  6822. bool HasSubscribedToEvent(Object, const String&);
  6823. bool HasSubscribedToEvent(const String&);
  6824. bool Load(File, bool = false);
  6825. bool Load(VectorBuffer&, bool = false);
  6826. bool LoadJSON(const JSONValue&, bool = false);
  6827. bool LoadXML(const XMLElement&, bool = false);
  6828. void MarkNetworkUpdate() const;
  6829. void Remove();
  6830. void RemoveAttributeAnimation(const String&);
  6831. void RemoveInstanceDefault();
  6832. void RemoveObjectAnimation();
  6833. void ResetToDefault();
  6834. bool Save(File) const;
  6835. bool Save(VectorBuffer&) const;
  6836. bool SaveJSON(JSONValue&) const;
  6837. bool SaveXML(XMLElement&) const;
  6838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6839. void SetAnimationTime(float);
  6840. bool SetAttribute(const String&, const Variant&);
  6841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6842. void SetAttributeAnimationSpeed(const String&, float);
  6843. void SetAttributeAnimationTime(const String&, float);
  6844. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6845. void SetInterceptNetworkUpdate(const String&, bool);
  6846. // Properties:
  6847. bool animationEnabled;
  6848. /* readonly */
  6849. Array<Variant> attributeDefaults;
  6850. /* readonly */
  6851. Array<AttributeInfo> attributeInfos;
  6852. Array<Variant> attributes;
  6853. /* readonly */
  6854. String category;
  6855. bool enabled;
  6856. /* readonly */
  6857. bool enabledEffective;
  6858. /* readonly */
  6859. uint id;
  6860. /* readonly */
  6861. Node node;
  6862. /* readonly */
  6863. uint numAttributes;
  6864. ObjectAnimation objectAnimation;
  6865. bool recursive;
  6866. /* readonly */
  6867. int refs;
  6868. bool temporary;
  6869. /* readonly */
  6870. StringHash type;
  6871. /* readonly */
  6872. String typeName;
  6873. /* readonly */
  6874. int weakRefs;
  6875. };
  6876. class NavigationMesh
  6877. {
  6878. // Methods:
  6879. void ApplyAttributes();
  6880. bool Build();
  6881. bool Build(const BoundingBox&);
  6882. void DrawDebugGeometry(DebugRenderer, bool);
  6883. void DrawDebugGeometry(bool);
  6884. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6885. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6886. float GetAreaCost(uint) const;
  6887. Variant GetAttribute(const String&) const;
  6888. ValueAnimation GetAttributeAnimation(const String&) const;
  6889. float GetAttributeAnimationSpeed(const String&) const;
  6890. float GetAttributeAnimationTime(const String&) const;
  6891. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6892. Variant GetAttributeDefault(const String&) const;
  6893. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6894. bool GetInterceptNetworkUpdate(const String&) const;
  6895. Vector3 GetRandomPoint();
  6896. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6897. bool HasSubscribedToEvent(Object, const String&);
  6898. bool HasSubscribedToEvent(const String&);
  6899. bool Load(File, bool = false);
  6900. bool Load(VectorBuffer&, bool = false);
  6901. bool LoadJSON(const JSONValue&, bool = false);
  6902. bool LoadXML(const XMLElement&, bool = false);
  6903. void MarkNetworkUpdate() const;
  6904. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6905. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6906. void Remove();
  6907. void RemoveAttributeAnimation(const String&);
  6908. void RemoveInstanceDefault();
  6909. void RemoveObjectAnimation();
  6910. void ResetToDefault();
  6911. bool Save(File) const;
  6912. bool Save(VectorBuffer&) const;
  6913. bool SaveJSON(JSONValue&) const;
  6914. bool SaveXML(XMLElement&) const;
  6915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6916. void SetAnimationTime(float);
  6917. void SetAreaCost(uint, float);
  6918. bool SetAttribute(const String&, const Variant&);
  6919. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6920. void SetAttributeAnimationSpeed(const String&, float);
  6921. void SetAttributeAnimationTime(const String&, float);
  6922. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6923. void SetInterceptNetworkUpdate(const String&, bool);
  6924. // Properties:
  6925. float agentHeight;
  6926. float agentMaxClimb;
  6927. float agentMaxSlope;
  6928. float agentRadius;
  6929. bool animationEnabled;
  6930. /* readonly */
  6931. Array<Variant> attributeDefaults;
  6932. /* readonly */
  6933. Array<AttributeInfo> attributeInfos;
  6934. Array<Variant> attributes;
  6935. /* readonly */
  6936. BoundingBox boundingBox;
  6937. /* readonly */
  6938. String category;
  6939. float cellHeight;
  6940. float cellSize;
  6941. float detailSampleDistance;
  6942. float detailSampleMaxError;
  6943. bool drawNavAreas;
  6944. bool drawOffMeshConnections;
  6945. float edgeMaxError;
  6946. float edgeMaxLength;
  6947. bool enabled;
  6948. /* readonly */
  6949. bool enabledEffective;
  6950. /* readonly */
  6951. uint id;
  6952. /* readonly */
  6953. bool initialized;
  6954. /* readonly */
  6955. Node node;
  6956. /* readonly */
  6957. uint numAttributes;
  6958. /* readonly */
  6959. IntVector2 numTiles;
  6960. ObjectAnimation objectAnimation;
  6961. Vector3 padding;
  6962. NavmeshPartitionType partitionType;
  6963. /* readonly */
  6964. int refs;
  6965. float regionMergeSize;
  6966. float regionMinSize;
  6967. bool temporary;
  6968. int tileSize;
  6969. /* readonly */
  6970. StringHash type;
  6971. /* readonly */
  6972. String typeName;
  6973. /* readonly */
  6974. int weakRefs;
  6975. /* readonly */
  6976. BoundingBox worldBoundingBox;
  6977. };
  6978. class Network
  6979. {
  6980. // Methods:
  6981. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6982. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6983. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6984. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6985. bool CheckRemoteEvent(const String&) const;
  6986. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6987. void Disconnect(int = 0);
  6988. bool HasSubscribedToEvent(Object, const String&);
  6989. bool HasSubscribedToEvent(const String&);
  6990. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6991. void RegisterRemoteEvent(const String&) const;
  6992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6993. void SendPackageToClients(Scene, PackageFile);
  6994. bool StartServer(uint16);
  6995. void StopServer();
  6996. void UnregisterAllRemoteEvents();
  6997. void UnregisterRemoteEvent(const String&) const;
  6998. // Properties:
  6999. /* readonly */
  7000. String category;
  7001. /* readonly */
  7002. Array<Connection> clientConnections;
  7003. String packageCacheDir;
  7004. /* readonly */
  7005. int refs;
  7006. /* readonly */
  7007. Connection serverConnection;
  7008. /* readonly */
  7009. bool serverRunning;
  7010. int simulatedLatency;
  7011. float simulatedPacketLoss;
  7012. /* readonly */
  7013. StringHash type;
  7014. /* readonly */
  7015. String typeName;
  7016. int updateFps;
  7017. /* readonly */
  7018. int weakRefs;
  7019. };
  7020. class NetworkPriority
  7021. {
  7022. // Methods:
  7023. void ApplyAttributes();
  7024. void DrawDebugGeometry(DebugRenderer, bool);
  7025. Variant GetAttribute(const String&) const;
  7026. ValueAnimation GetAttributeAnimation(const String&) const;
  7027. float GetAttributeAnimationSpeed(const String&) const;
  7028. float GetAttributeAnimationTime(const String&) const;
  7029. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7030. Variant GetAttributeDefault(const String&) const;
  7031. bool GetInterceptNetworkUpdate(const String&) const;
  7032. bool HasSubscribedToEvent(Object, const String&);
  7033. bool HasSubscribedToEvent(const String&);
  7034. bool Load(File, bool = false);
  7035. bool Load(VectorBuffer&, bool = false);
  7036. bool LoadJSON(const JSONValue&, bool = false);
  7037. bool LoadXML(const XMLElement&, bool = false);
  7038. void MarkNetworkUpdate() const;
  7039. void Remove();
  7040. void RemoveAttributeAnimation(const String&);
  7041. void RemoveInstanceDefault();
  7042. void RemoveObjectAnimation();
  7043. void ResetToDefault();
  7044. bool Save(File) const;
  7045. bool Save(VectorBuffer&) const;
  7046. bool SaveJSON(JSONValue&) const;
  7047. bool SaveXML(XMLElement&) const;
  7048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7049. void SetAnimationTime(float);
  7050. bool SetAttribute(const String&, const Variant&);
  7051. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7052. void SetAttributeAnimationSpeed(const String&, float);
  7053. void SetAttributeAnimationTime(const String&, float);
  7054. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7055. void SetInterceptNetworkUpdate(const String&, bool);
  7056. // Properties:
  7057. bool alwaysUpdateOwner;
  7058. bool animationEnabled;
  7059. /* readonly */
  7060. Array<Variant> attributeDefaults;
  7061. /* readonly */
  7062. Array<AttributeInfo> attributeInfos;
  7063. Array<Variant> attributes;
  7064. float basePriority;
  7065. /* readonly */
  7066. String category;
  7067. float distanceFactor;
  7068. bool enabled;
  7069. /* readonly */
  7070. bool enabledEffective;
  7071. /* readonly */
  7072. uint id;
  7073. float minPriority;
  7074. /* readonly */
  7075. Node node;
  7076. /* readonly */
  7077. uint numAttributes;
  7078. ObjectAnimation objectAnimation;
  7079. /* readonly */
  7080. int refs;
  7081. bool temporary;
  7082. /* readonly */
  7083. StringHash type;
  7084. /* readonly */
  7085. String typeName;
  7086. /* readonly */
  7087. int weakRefs;
  7088. };
  7089. class Node
  7090. {
  7091. // Methods:
  7092. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7093. void AddTag(const String&);
  7094. void AddTags(const String&, int8 = ';');
  7095. void ApplyAttributes();
  7096. Node Clone(CreateMode = REPLICATED);
  7097. Component CloneComponent(Component, CreateMode, uint = 0);
  7098. Component CloneComponent(Component, uint = 0);
  7099. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7100. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7101. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7102. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7103. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7104. Variant GetAttribute(const String&) const;
  7105. ValueAnimation GetAttributeAnimation(const String&) const;
  7106. float GetAttributeAnimationSpeed(const String&) const;
  7107. float GetAttributeAnimationTime(const String&) const;
  7108. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7109. Variant GetAttributeDefault(const String&) const;
  7110. Node GetChild(const String&, bool = false) const;
  7111. Array<Node> GetChildren(bool = false) const;
  7112. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7113. Array<Node> GetChildrenWithScript(bool = false) const;
  7114. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7115. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7116. Component GetComponent(const String&, bool = false) const;
  7117. Array<Component> GetComponents() const;
  7118. Array<Component> GetComponents(const String&, bool = false) const;
  7119. bool GetInterceptNetworkUpdate(const String&) const;
  7120. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7121. Component GetParentComponent(const String&, bool = false) const;
  7122. ScriptObject GetScriptObject() const;
  7123. ScriptObject GetScriptObject(const String&) const;
  7124. bool HasComponent(const String&) const;
  7125. bool HasSubscribedToEvent(Object, const String&);
  7126. bool HasSubscribedToEvent(const String&);
  7127. bool HasTag(const String&);
  7128. bool Load(File, bool = false);
  7129. bool Load(VectorBuffer&, bool = false);
  7130. bool LoadJSON(const JSONValue&, bool = false);
  7131. bool LoadXML(const XMLElement&, bool = false);
  7132. Vector3 LocalToWorld(const Vector3&) const;
  7133. Vector3 LocalToWorld(const Vector4&) const;
  7134. Vector2 LocalToWorld2D(const Vector2&) const;
  7135. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7136. void MarkDirty();
  7137. void MarkNetworkUpdate() const;
  7138. void Pitch(float, TransformSpace = TS_LOCAL);
  7139. void Remove();
  7140. void RemoveAllChildren();
  7141. void RemoveAllComponents();
  7142. void RemoveAllTags();
  7143. void RemoveAttributeAnimation(const String&);
  7144. void RemoveChild(Node);
  7145. void RemoveChildren(bool, bool, bool);
  7146. void RemoveComponent(Component);
  7147. void RemoveComponent(const String&);
  7148. void RemoveComponents(bool, bool);
  7149. void RemoveComponents(const String&);
  7150. void RemoveInstanceDefault();
  7151. void RemoveObjectAnimation();
  7152. bool RemoveTag(const String&);
  7153. void ReorderComponent(Component, uint);
  7154. void ResetDeepEnabled();
  7155. void ResetToDefault();
  7156. void Roll(float, TransformSpace = TS_LOCAL);
  7157. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7158. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7159. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7160. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7161. bool Save(File) const;
  7162. bool Save(VectorBuffer&) const;
  7163. bool SaveJSON(File);
  7164. bool SaveJSON(JSONValue&) const;
  7165. bool SaveJSON(VectorBuffer&);
  7166. bool SaveXML(File, const String& = "\t");
  7167. bool SaveXML(VectorBuffer&, const String& = "\t");
  7168. bool SaveXML(XMLElement&) const;
  7169. void Scale(const Vector3&);
  7170. void Scale(float);
  7171. void Scale2D(const Vector2&);
  7172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7173. void SetAnimationTime(float);
  7174. bool SetAttribute(const String&, const Variant&);
  7175. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7176. void SetAttributeAnimationSpeed(const String&, float);
  7177. void SetAttributeAnimationTime(const String&, float);
  7178. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7179. void SetDeepEnabled(bool);
  7180. void SetEnabledRecursive(bool);
  7181. void SetInterceptNetworkUpdate(const String&, bool);
  7182. void SetPosition2D(float, float);
  7183. void SetScale(float);
  7184. void SetScale2D(float, float);
  7185. void SetTransform(const Matrix3x4&);
  7186. void SetTransform(const Vector3&, const Quaternion&);
  7187. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7188. void SetTransform(const Vector3&, const Quaternion&, float);
  7189. void SetTransform2D(const Vector2&, float);
  7190. void SetTransform2D(const Vector2&, float, const Vector2&);
  7191. void SetTransform2D(const Vector2&, float, float);
  7192. void SetWorldTransform(const Vector3&, const Quaternion&);
  7193. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7194. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7195. void SetWorldTransform2D(const Vector2&, float);
  7196. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7197. void SetWorldTransform2D(const Vector2&, float, float);
  7198. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7199. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7200. Vector3 WorldToLocal(const Vector3&) const;
  7201. Vector3 WorldToLocal(const Vector4&) const;
  7202. Vector2 WorldToLocal2D(const Vector2&) const;
  7203. void Yaw(float, TransformSpace = TS_LOCAL);
  7204. // Properties:
  7205. bool animationEnabled;
  7206. /* readonly */
  7207. Array<Variant> attributeDefaults;
  7208. /* readonly */
  7209. Array<AttributeInfo> attributeInfos;
  7210. Array<Variant> attributes;
  7211. /* readonly */
  7212. String category;
  7213. /* readonly */
  7214. Array<Node> children;
  7215. /* readonly */
  7216. Array<Component> components;
  7217. Vector3 direction;
  7218. bool enabled;
  7219. /* readonly */
  7220. bool enabledSelf;
  7221. uint id;
  7222. String name;
  7223. /* readonly */
  7224. uint numAllChildren;
  7225. /* readonly */
  7226. uint numAttributes;
  7227. /* readonly */
  7228. uint numChildren;
  7229. /* readonly */
  7230. uint numComponents;
  7231. ObjectAnimation objectAnimation;
  7232. Connection owner;
  7233. Node parent;
  7234. Vector3 position;
  7235. Vector2 position2D;
  7236. /* readonly */
  7237. int refs;
  7238. /* readonly */
  7239. Vector3 right;
  7240. Quaternion rotation;
  7241. float rotation2D;
  7242. Vector3 scale;
  7243. Vector2 scale2D;
  7244. /* readonly */
  7245. Scene scene;
  7246. /* readonly */
  7247. ScriptObject scriptObject;
  7248. /* readonly */
  7249. Array<String> tags;
  7250. bool temporary;
  7251. /* readonly */
  7252. Matrix3x4 transform;
  7253. /* readonly */
  7254. StringHash type;
  7255. /* readonly */
  7256. String typeName;
  7257. /* readonly */
  7258. Vector3 up;
  7259. /* readonly */
  7260. VariantMap vars;
  7261. /* readonly */
  7262. int weakRefs;
  7263. Vector3 worldDirection;
  7264. Vector3 worldPosition;
  7265. Vector2 worldPosition2D;
  7266. /* readonly */
  7267. Vector3 worldRight;
  7268. Quaternion worldRotation;
  7269. float worldRotation2D;
  7270. Vector3 worldScale;
  7271. Vector2 worldScale2D;
  7272. /* readonly */
  7273. Matrix3x4 worldTransform;
  7274. /* readonly */
  7275. Vector3 worldUp;
  7276. };
  7277. class Object
  7278. {
  7279. // Methods:
  7280. bool HasSubscribedToEvent(Object, const String&);
  7281. bool HasSubscribedToEvent(const String&);
  7282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7283. // Properties:
  7284. /* readonly */
  7285. String category;
  7286. /* readonly */
  7287. int refs;
  7288. /* readonly */
  7289. StringHash type;
  7290. /* readonly */
  7291. String typeName;
  7292. /* readonly */
  7293. int weakRefs;
  7294. };
  7295. class ObjectAnimation
  7296. {
  7297. // Methods:
  7298. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7299. ValueAnimation GetAttributeAnimation(const String&) const;
  7300. float GetAttributeAnimationSpeed(const String&) const;
  7301. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7302. bool HasSubscribedToEvent(Object, const String&);
  7303. bool HasSubscribedToEvent(const String&);
  7304. bool Load(File);
  7305. bool Load(VectorBuffer&);
  7306. bool Load(const String&);
  7307. void RemoveAttributeAnimation(ValueAnimation);
  7308. void RemoveAttributeAnimation(const String&);
  7309. bool Save(File) const;
  7310. bool Save(VectorBuffer&) const;
  7311. bool Save(const String&) const;
  7312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7313. // Properties:
  7314. /* readonly */
  7315. Array<Variant> attributeAnimations;
  7316. /* readonly */
  7317. String category;
  7318. /* readonly */
  7319. uint memoryUse;
  7320. String name;
  7321. /* readonly */
  7322. int refs;
  7323. /* readonly */
  7324. Array<Variant> speeds;
  7325. /* readonly */
  7326. StringHash type;
  7327. /* readonly */
  7328. String typeName;
  7329. /* readonly */
  7330. uint useTimer;
  7331. /* readonly */
  7332. int weakRefs;
  7333. /* readonly */
  7334. Array<Variant> wrapModes;
  7335. };
  7336. class Obstacle
  7337. {
  7338. // Methods:
  7339. void ApplyAttributes();
  7340. void DrawDebugGeometry(DebugRenderer, bool);
  7341. void DrawDebugGeometry(bool);
  7342. Variant GetAttribute(const String&) const;
  7343. ValueAnimation GetAttributeAnimation(const String&) const;
  7344. float GetAttributeAnimationSpeed(const String&) const;
  7345. float GetAttributeAnimationTime(const String&) const;
  7346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7347. Variant GetAttributeDefault(const String&) const;
  7348. bool GetInterceptNetworkUpdate(const String&) const;
  7349. bool HasSubscribedToEvent(Object, const String&);
  7350. bool HasSubscribedToEvent(const String&);
  7351. bool Load(File, bool = false);
  7352. bool Load(VectorBuffer&, bool = false);
  7353. bool LoadJSON(const JSONValue&, bool = false);
  7354. bool LoadXML(const XMLElement&, bool = false);
  7355. void MarkNetworkUpdate() const;
  7356. void Remove();
  7357. void RemoveAttributeAnimation(const String&);
  7358. void RemoveInstanceDefault();
  7359. void RemoveObjectAnimation();
  7360. void ResetToDefault();
  7361. bool Save(File) const;
  7362. bool Save(VectorBuffer&) const;
  7363. bool SaveJSON(JSONValue&) const;
  7364. bool SaveXML(XMLElement&) const;
  7365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7366. void SetAnimationTime(float);
  7367. bool SetAttribute(const String&, const Variant&);
  7368. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7369. void SetAttributeAnimationSpeed(const String&, float);
  7370. void SetAttributeAnimationTime(const String&, float);
  7371. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7372. void SetInterceptNetworkUpdate(const String&, bool);
  7373. // Properties:
  7374. bool animationEnabled;
  7375. /* readonly */
  7376. Array<Variant> attributeDefaults;
  7377. /* readonly */
  7378. Array<AttributeInfo> attributeInfos;
  7379. Array<Variant> attributes;
  7380. /* readonly */
  7381. String category;
  7382. bool enabled;
  7383. /* readonly */
  7384. bool enabledEffective;
  7385. float height;
  7386. /* readonly */
  7387. uint id;
  7388. /* readonly */
  7389. Node node;
  7390. /* readonly */
  7391. uint numAttributes;
  7392. ObjectAnimation objectAnimation;
  7393. /* readonly */
  7394. uint obstacleId;
  7395. float radius;
  7396. /* readonly */
  7397. int refs;
  7398. bool temporary;
  7399. /* readonly */
  7400. StringHash type;
  7401. /* readonly */
  7402. String typeName;
  7403. /* readonly */
  7404. int weakRefs;
  7405. };
  7406. class Octree
  7407. {
  7408. // Methods:
  7409. void AddManualDrawable(Drawable);
  7410. void ApplyAttributes();
  7411. void DrawDebugGeometry(DebugRenderer, bool);
  7412. void DrawDebugGeometry(bool) const;
  7413. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7414. Variant GetAttribute(const String&) const;
  7415. ValueAnimation GetAttributeAnimation(const String&) const;
  7416. float GetAttributeAnimationSpeed(const String&) const;
  7417. float GetAttributeAnimationTime(const String&) const;
  7418. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7419. Variant GetAttributeDefault(const String&) const;
  7420. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7421. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7422. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7423. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7424. bool GetInterceptNetworkUpdate(const String&) const;
  7425. bool HasSubscribedToEvent(Object, const String&);
  7426. bool HasSubscribedToEvent(const String&);
  7427. bool Load(File, bool = false);
  7428. bool Load(VectorBuffer&, bool = false);
  7429. bool LoadJSON(const JSONValue&, bool = false);
  7430. bool LoadXML(const XMLElement&, bool = false);
  7431. void MarkNetworkUpdate() const;
  7432. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7433. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7434. void Remove();
  7435. void RemoveAttributeAnimation(const String&);
  7436. void RemoveInstanceDefault();
  7437. void RemoveManualDrawable(Drawable);
  7438. void RemoveObjectAnimation();
  7439. void ResetToDefault();
  7440. bool Save(File) const;
  7441. bool Save(VectorBuffer&) const;
  7442. bool SaveJSON(JSONValue&) const;
  7443. bool SaveXML(XMLElement&) const;
  7444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7445. void SetAnimationTime(float);
  7446. bool SetAttribute(const String&, const Variant&);
  7447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7448. void SetAttributeAnimationSpeed(const String&, float);
  7449. void SetAttributeAnimationTime(const String&, float);
  7450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7451. void SetInterceptNetworkUpdate(const String&, bool);
  7452. void SetSize(const BoundingBox&, uint);
  7453. // Properties:
  7454. bool animationEnabled;
  7455. /* readonly */
  7456. Array<Variant> attributeDefaults;
  7457. /* readonly */
  7458. Array<AttributeInfo> attributeInfos;
  7459. Array<Variant> attributes;
  7460. /* readonly */
  7461. String category;
  7462. bool enabled;
  7463. /* readonly */
  7464. bool enabledEffective;
  7465. /* readonly */
  7466. uint id;
  7467. /* readonly */
  7468. Node node;
  7469. /* readonly */
  7470. uint numAttributes;
  7471. /* readonly */
  7472. uint numLevels;
  7473. ObjectAnimation objectAnimation;
  7474. /* readonly */
  7475. int refs;
  7476. bool temporary;
  7477. /* readonly */
  7478. StringHash type;
  7479. /* readonly */
  7480. String typeName;
  7481. /* readonly */
  7482. int weakRefs;
  7483. /* readonly */
  7484. BoundingBox worldBoundingBox;
  7485. };
  7486. class OffMeshConnection
  7487. {
  7488. // Methods:
  7489. void ApplyAttributes();
  7490. void DrawDebugGeometry(DebugRenderer, bool);
  7491. Variant GetAttribute(const String&) const;
  7492. ValueAnimation GetAttributeAnimation(const String&) const;
  7493. float GetAttributeAnimationSpeed(const String&) const;
  7494. float GetAttributeAnimationTime(const String&) const;
  7495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7496. Variant GetAttributeDefault(const String&) const;
  7497. bool GetInterceptNetworkUpdate(const String&) const;
  7498. bool HasSubscribedToEvent(Object, const String&);
  7499. bool HasSubscribedToEvent(const String&);
  7500. bool Load(File, bool = false);
  7501. bool Load(VectorBuffer&, bool = false);
  7502. bool LoadJSON(const JSONValue&, bool = false);
  7503. bool LoadXML(const XMLElement&, bool = false);
  7504. void MarkNetworkUpdate() const;
  7505. void Remove();
  7506. void RemoveAttributeAnimation(const String&);
  7507. void RemoveInstanceDefault();
  7508. void RemoveObjectAnimation();
  7509. void ResetToDefault();
  7510. bool Save(File) const;
  7511. bool Save(VectorBuffer&) const;
  7512. bool SaveJSON(JSONValue&) const;
  7513. bool SaveXML(XMLElement&) const;
  7514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7515. void SetAnimationTime(float);
  7516. bool SetAttribute(const String&, const Variant&);
  7517. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7518. void SetAttributeAnimationSpeed(const String&, float);
  7519. void SetAttributeAnimationTime(const String&, float);
  7520. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7521. void SetInterceptNetworkUpdate(const String&, bool);
  7522. // Properties:
  7523. bool animationEnabled;
  7524. uint areaID;
  7525. /* readonly */
  7526. Array<Variant> attributeDefaults;
  7527. /* readonly */
  7528. Array<AttributeInfo> attributeInfos;
  7529. Array<Variant> attributes;
  7530. bool bidirectional;
  7531. /* readonly */
  7532. String category;
  7533. bool enabled;
  7534. /* readonly */
  7535. bool enabledEffective;
  7536. Node endPoint;
  7537. /* readonly */
  7538. uint id;
  7539. uint mask;
  7540. /* readonly */
  7541. Node node;
  7542. /* readonly */
  7543. uint numAttributes;
  7544. ObjectAnimation objectAnimation;
  7545. float radius;
  7546. /* readonly */
  7547. int refs;
  7548. bool temporary;
  7549. /* readonly */
  7550. StringHash type;
  7551. /* readonly */
  7552. String typeName;
  7553. /* readonly */
  7554. int weakRefs;
  7555. };
  7556. class PackageFile
  7557. {
  7558. // Methods:
  7559. bool Exists(const String&) const;
  7560. Array<String> GetEntryNames() const;
  7561. bool HasSubscribedToEvent(Object, const String&);
  7562. bool HasSubscribedToEvent(const String&);
  7563. bool Open(const String&, uint = 0) const;
  7564. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7565. bool compressed() const;
  7566. // Properties:
  7567. /* readonly */
  7568. String category;
  7569. /* readonly */
  7570. uint checksum;
  7571. /* readonly */
  7572. String name;
  7573. /* readonly */
  7574. uint numFiles;
  7575. /* readonly */
  7576. int refs;
  7577. /* readonly */
  7578. uint totalDataSize;
  7579. /* readonly */
  7580. uint totalSize;
  7581. /* readonly */
  7582. StringHash type;
  7583. /* readonly */
  7584. String typeName;
  7585. /* readonly */
  7586. int weakRefs;
  7587. };
  7588. class ParticleEffect
  7589. {
  7590. // Methods:
  7591. void AddColorFrame(ColorFrame);
  7592. void AddColorTime(Color&, float);
  7593. void AddTextureFrame(TextureFrame);
  7594. void AddTextureTime(Rect&, float);
  7595. ParticleEffect Clone(const String& = String ( )) const;
  7596. ColorFrame GetColorFrame(uint) const;
  7597. TextureFrame GetTextureFrame(uint) const;
  7598. bool HasSubscribedToEvent(Object, const String&);
  7599. bool HasSubscribedToEvent(const String&);
  7600. bool Load(File);
  7601. bool Load(VectorBuffer&);
  7602. bool Load(const String&);
  7603. bool Load(const XMLElement&);
  7604. void RemoveColorFrame(uint);
  7605. void RemoveTextureFrame(uint);
  7606. bool Save(File) const;
  7607. bool Save(VectorBuffer&) const;
  7608. bool Save(XMLElement&) const;
  7609. bool Save(const String&) const;
  7610. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7611. void SetColorFrame(uint, ColorFrame);
  7612. void SetTextureFrame(uint, TextureFrame);
  7613. void SortColorFrames();
  7614. void SortTextureFrames();
  7615. // Properties:
  7616. float activeTime;
  7617. float animationLodBias;
  7618. /* readonly */
  7619. String category;
  7620. Vector3 constantForce;
  7621. float dampingForce;
  7622. Vector3 emitterSize;
  7623. EmitterType emitterType;
  7624. FaceCameraMode faceCameraMode;
  7625. bool fixedScreenSize;
  7626. float inactiveTime;
  7627. Material material;
  7628. Vector3 maxDirection;
  7629. float maxEmissionRate;
  7630. Vector2 maxParticleSize;
  7631. float maxRotation;
  7632. float maxRotationSpeed;
  7633. float maxTimeToLive;
  7634. float maxVelocity;
  7635. /* readonly */
  7636. uint memoryUse;
  7637. Vector3 minDirection;
  7638. float minEmissionRate;
  7639. Vector2 minParticleSize;
  7640. float minRotation;
  7641. float minRotationSpeed;
  7642. float minTimeToLive;
  7643. float minVelocity;
  7644. String name;
  7645. uint numColorFrames;
  7646. uint numParticles;
  7647. uint numTextureFrames;
  7648. /* readonly */
  7649. int refs;
  7650. bool relative;
  7651. bool scaled;
  7652. float sizeAdd;
  7653. float sizeMul;
  7654. bool sorted;
  7655. /* readonly */
  7656. StringHash type;
  7657. /* readonly */
  7658. String typeName;
  7659. bool updateInvisible;
  7660. /* readonly */
  7661. uint useTimer;
  7662. /* readonly */
  7663. int weakRefs;
  7664. };
  7665. class ParticleEffect2D
  7666. {
  7667. // Methods:
  7668. ParticleEffect2D Clone(const String& = String ( )) const;
  7669. bool HasSubscribedToEvent(Object, const String&);
  7670. bool HasSubscribedToEvent(const String&);
  7671. bool Load(File);
  7672. bool Load(VectorBuffer&);
  7673. bool Load(const String&);
  7674. bool Save(File) const;
  7675. bool Save(VectorBuffer&) const;
  7676. bool Save(const String&) const;
  7677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7678. // Properties:
  7679. /* readonly */
  7680. String category;
  7681. /* readonly */
  7682. uint memoryUse;
  7683. String name;
  7684. /* readonly */
  7685. int refs;
  7686. /* readonly */
  7687. StringHash type;
  7688. /* readonly */
  7689. String typeName;
  7690. /* readonly */
  7691. uint useTimer;
  7692. /* readonly */
  7693. int weakRefs;
  7694. };
  7695. class ParticleEmitter
  7696. {
  7697. // Methods:
  7698. void ApplyAttributes();
  7699. void ApplyEffect();
  7700. void Commit();
  7701. void DrawDebugGeometry(DebugRenderer, bool);
  7702. Variant GetAttribute(const String&) const;
  7703. ValueAnimation GetAttributeAnimation(const String&) const;
  7704. float GetAttributeAnimationSpeed(const String&) const;
  7705. float GetAttributeAnimationTime(const String&) const;
  7706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7707. Variant GetAttributeDefault(const String&) const;
  7708. bool GetInterceptNetworkUpdate(const String&) const;
  7709. bool HasSubscribedToEvent(Object, const String&);
  7710. bool HasSubscribedToEvent(const String&);
  7711. bool IsInView(Camera) const;
  7712. bool Load(File, bool = false);
  7713. bool Load(VectorBuffer&, bool = false);
  7714. bool LoadJSON(const JSONValue&, bool = false);
  7715. bool LoadXML(const XMLElement&, bool = false);
  7716. void MarkNetworkUpdate() const;
  7717. void Remove();
  7718. void RemoveAllParticles();
  7719. void RemoveAttributeAnimation(const String&);
  7720. void RemoveInstanceDefault();
  7721. void RemoveObjectAnimation();
  7722. void Reset();
  7723. void ResetEmissionTimer();
  7724. void ResetToDefault();
  7725. bool Save(File) const;
  7726. bool Save(VectorBuffer&) const;
  7727. bool SaveJSON(JSONValue&) const;
  7728. bool SaveXML(XMLElement&) const;
  7729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7730. void SetAnimationTime(float);
  7731. bool SetAttribute(const String&, const Variant&);
  7732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7733. void SetAttributeAnimationSpeed(const String&, float);
  7734. void SetAttributeAnimationTime(const String&, float);
  7735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7736. void SetInterceptNetworkUpdate(const String&, bool);
  7737. // Properties:
  7738. bool animationEnabled;
  7739. float animationLodBias;
  7740. /* readonly */
  7741. Array<Variant> attributeDefaults;
  7742. /* readonly */
  7743. Array<AttributeInfo> attributeInfos;
  7744. Array<Variant> attributes;
  7745. AutoRemoveMode autoRemoveMode;
  7746. /* readonly */
  7747. Array<Billboard> billboards;
  7748. /* readonly */
  7749. BoundingBox boundingBox;
  7750. bool castShadows;
  7751. /* readonly */
  7752. String category;
  7753. float drawDistance;
  7754. ParticleEffect effect;
  7755. bool emitting;
  7756. bool enabled;
  7757. /* readonly */
  7758. bool enabledEffective;
  7759. FaceCameraMode faceCameraMode;
  7760. bool fixedScreenSize;
  7761. /* readonly */
  7762. uint id;
  7763. /* readonly */
  7764. bool inView;
  7765. uint lightMask;
  7766. float lodBias;
  7767. Material material;
  7768. uint maxLights;
  7769. /* readonly */
  7770. Node node;
  7771. /* readonly */
  7772. uint numAttributes;
  7773. uint numBillboards;
  7774. uint numParticles;
  7775. ObjectAnimation objectAnimation;
  7776. bool occludee;
  7777. bool occluder;
  7778. /* readonly */
  7779. int refs;
  7780. bool relative;
  7781. bool scaled;
  7782. bool serializeParticles;
  7783. float shadowDistance;
  7784. uint shadowMask;
  7785. bool sorted;
  7786. bool temporary;
  7787. /* readonly */
  7788. StringHash type;
  7789. /* readonly */
  7790. String typeName;
  7791. uint viewMask;
  7792. /* readonly */
  7793. int weakRefs;
  7794. /* readonly */
  7795. BoundingBox worldBoundingBox;
  7796. /* readonly */
  7797. Zone zone;
  7798. uint zoneMask;
  7799. };
  7800. class ParticleEmitter2D
  7801. {
  7802. // Methods:
  7803. void ApplyAttributes();
  7804. void DrawDebugGeometry(DebugRenderer, bool);
  7805. Variant GetAttribute(const String&) const;
  7806. ValueAnimation GetAttributeAnimation(const String&) const;
  7807. float GetAttributeAnimationSpeed(const String&) const;
  7808. float GetAttributeAnimationTime(const String&) const;
  7809. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7810. Variant GetAttributeDefault(const String&) const;
  7811. bool GetInterceptNetworkUpdate(const String&) const;
  7812. bool HasSubscribedToEvent(Object, const String&);
  7813. bool HasSubscribedToEvent(const String&);
  7814. bool IsInView(Camera) const;
  7815. bool Load(File, bool = false);
  7816. bool Load(VectorBuffer&, bool = false);
  7817. bool LoadJSON(const JSONValue&, bool = false);
  7818. bool LoadXML(const XMLElement&, bool = false);
  7819. void MarkNetworkUpdate() const;
  7820. void Remove();
  7821. void RemoveAttributeAnimation(const String&);
  7822. void RemoveInstanceDefault();
  7823. void RemoveObjectAnimation();
  7824. void ResetToDefault();
  7825. bool Save(File) const;
  7826. bool Save(VectorBuffer&) const;
  7827. bool SaveJSON(JSONValue&) const;
  7828. bool SaveXML(XMLElement&) const;
  7829. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7830. void SetAnimationTime(float);
  7831. bool SetAttribute(const String&, const Variant&);
  7832. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7833. void SetAttributeAnimationSpeed(const String&, float);
  7834. void SetAttributeAnimationTime(const String&, float);
  7835. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7836. void SetInterceptNetworkUpdate(const String&, bool);
  7837. // Properties:
  7838. bool animationEnabled;
  7839. /* readonly */
  7840. Array<Variant> attributeDefaults;
  7841. /* readonly */
  7842. Array<AttributeInfo> attributeInfos;
  7843. Array<Variant> attributes;
  7844. BlendMode blendMode;
  7845. /* readonly */
  7846. BoundingBox boundingBox;
  7847. bool castShadows;
  7848. /* readonly */
  7849. String category;
  7850. float drawDistance;
  7851. ParticleEffect2D effect;
  7852. bool enabled;
  7853. /* readonly */
  7854. bool enabledEffective;
  7855. /* readonly */
  7856. uint id;
  7857. /* readonly */
  7858. bool inView;
  7859. int layer;
  7860. uint lightMask;
  7861. float lodBias;
  7862. uint maxLights;
  7863. /* readonly */
  7864. Node node;
  7865. /* readonly */
  7866. uint numAttributes;
  7867. ObjectAnimation objectAnimation;
  7868. bool occludee;
  7869. bool occluder;
  7870. int orderInLayer;
  7871. /* readonly */
  7872. int refs;
  7873. float shadowDistance;
  7874. uint shadowMask;
  7875. Sprite2D sprite;
  7876. bool temporary;
  7877. /* readonly */
  7878. StringHash type;
  7879. /* readonly */
  7880. String typeName;
  7881. uint viewMask;
  7882. /* readonly */
  7883. int weakRefs;
  7884. /* readonly */
  7885. BoundingBox worldBoundingBox;
  7886. uint zoneMask;
  7887. };
  7888. class Pass
  7889. {
  7890. // Properties:
  7891. bool alphaToCoverage;
  7892. BlendMode blendMode;
  7893. CullMode cullMode;
  7894. CompareMode depthTestMode;
  7895. bool depthWrite;
  7896. bool desktop;
  7897. PassLightingMode lightingMode;
  7898. String pixelShader;
  7899. String pixelShaderDefineExcludes;
  7900. String pixelShaderDefines;
  7901. /* readonly */
  7902. int refs;
  7903. String vertexShader;
  7904. String vertexShaderDefineExcludes;
  7905. String vertexShaderDefines;
  7906. /* readonly */
  7907. int weakRefs;
  7908. };
  7909. class PhysicsRaycastResult
  7910. {
  7911. // Properties:
  7912. /* readonly */
  7913. RigidBody body;
  7914. float distance;
  7915. float hitFraction;
  7916. Vector3 normal;
  7917. Vector3 position;
  7918. };
  7919. class PhysicsRaycastResult2D
  7920. {
  7921. // Properties:
  7922. /* readonly */
  7923. RigidBody2D body;
  7924. float distance;
  7925. Vector2 normal;
  7926. Vector2 position;
  7927. };
  7928. class PhysicsWorld
  7929. {
  7930. // Methods:
  7931. void ApplyAttributes();
  7932. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7933. void DrawDebugGeometry(DebugRenderer, bool);
  7934. void DrawDebugGeometry(bool);
  7935. Variant GetAttribute(const String&) const;
  7936. ValueAnimation GetAttributeAnimation(const String&) const;
  7937. float GetAttributeAnimationSpeed(const String&) const;
  7938. float GetAttributeAnimationTime(const String&) const;
  7939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7940. Variant GetAttributeDefault(const String&) const;
  7941. Array<RigidBody> GetCollidingBodies(RigidBody);
  7942. bool GetInterceptNetworkUpdate(const String&) const;
  7943. Array<RigidBody> GetRigidBodies(RigidBody);
  7944. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7945. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7946. bool HasSubscribedToEvent(Object, const String&);
  7947. bool HasSubscribedToEvent(const String&);
  7948. bool Load(File, bool = false);
  7949. bool Load(VectorBuffer&, bool = false);
  7950. bool LoadJSON(const JSONValue&, bool = false);
  7951. bool LoadXML(const XMLElement&, bool = false);
  7952. void MarkNetworkUpdate() const;
  7953. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7954. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7955. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7956. void Remove();
  7957. void RemoveAttributeAnimation(const String&);
  7958. void RemoveCachedGeometry(Model);
  7959. void RemoveInstanceDefault();
  7960. void RemoveObjectAnimation();
  7961. void ResetToDefault();
  7962. bool Save(File) const;
  7963. bool Save(VectorBuffer&) const;
  7964. bool SaveJSON(JSONValue&) const;
  7965. bool SaveXML(XMLElement&) const;
  7966. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7967. void SetAnimationTime(float);
  7968. bool SetAttribute(const String&, const Variant&);
  7969. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7970. void SetAttributeAnimationSpeed(const String&, float);
  7971. void SetAttributeAnimationTime(const String&, float);
  7972. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7973. void SetInterceptNetworkUpdate(const String&, bool);
  7974. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7975. void Update(float);
  7976. void UpdateCollisions();
  7977. // Properties:
  7978. bool animationEnabled;
  7979. /* readonly */
  7980. Array<Variant> attributeDefaults;
  7981. /* readonly */
  7982. Array<AttributeInfo> attributeInfos;
  7983. Array<Variant> attributes;
  7984. /* readonly */
  7985. String category;
  7986. bool enabled;
  7987. /* readonly */
  7988. bool enabledEffective;
  7989. int fps;
  7990. Vector3 gravity;
  7991. /* readonly */
  7992. uint id;
  7993. bool internalEdge;
  7994. bool interpolation;
  7995. int maxSubSteps;
  7996. /* readonly */
  7997. Node node;
  7998. /* readonly */
  7999. uint numAttributes;
  8000. int numIterations;
  8001. ObjectAnimation objectAnimation;
  8002. /* readonly */
  8003. int refs;
  8004. bool splitImpulse;
  8005. bool temporary;
  8006. /* readonly */
  8007. StringHash type;
  8008. /* readonly */
  8009. String typeName;
  8010. bool updateEnabled;
  8011. /* readonly */
  8012. int weakRefs;
  8013. };
  8014. class PhysicsWorld2D
  8015. {
  8016. // Methods:
  8017. void ApplyAttributes();
  8018. void DrawDebugGeometry() const;
  8019. void DrawDebugGeometry(DebugRenderer, bool);
  8020. Variant GetAttribute(const String&) const;
  8021. ValueAnimation GetAttributeAnimation(const String&) const;
  8022. float GetAttributeAnimationSpeed(const String&) const;
  8023. float GetAttributeAnimationTime(const String&) const;
  8024. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8025. Variant GetAttributeDefault(const String&) const;
  8026. bool GetInterceptNetworkUpdate(const String&) const;
  8027. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8028. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8029. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8030. bool HasSubscribedToEvent(Object, const String&);
  8031. bool HasSubscribedToEvent(const String&);
  8032. bool Load(File, bool = false);
  8033. bool Load(VectorBuffer&, bool = false);
  8034. bool LoadJSON(const JSONValue&, bool = false);
  8035. bool LoadXML(const XMLElement&, bool = false);
  8036. void MarkNetworkUpdate() const;
  8037. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8038. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8039. void Remove();
  8040. void RemoveAttributeAnimation(const String&);
  8041. void RemoveInstanceDefault();
  8042. void RemoveObjectAnimation();
  8043. void ResetToDefault();
  8044. bool Save(File) const;
  8045. bool Save(VectorBuffer&) const;
  8046. bool SaveJSON(JSONValue&) const;
  8047. bool SaveXML(XMLElement&) const;
  8048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8049. void SetAnimationTime(float);
  8050. bool SetAttribute(const String&, const Variant&);
  8051. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8052. void SetAttributeAnimationSpeed(const String&, float);
  8053. void SetAttributeAnimationTime(const String&, float);
  8054. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8055. void SetInterceptNetworkUpdate(const String&, bool);
  8056. // Properties:
  8057. bool allowSleeping;
  8058. bool animationEnabled;
  8059. /* readonly */
  8060. Array<Variant> attributeDefaults;
  8061. /* readonly */
  8062. Array<AttributeInfo> attributeInfos;
  8063. Array<Variant> attributes;
  8064. bool autoClearForces;
  8065. /* readonly */
  8066. String category;
  8067. bool continuousPhysics;
  8068. bool drawAabb;
  8069. bool drawCenterOfMass;
  8070. bool drawJoint;
  8071. bool drawPair;
  8072. bool drawShape;
  8073. bool enabled;
  8074. /* readonly */
  8075. bool enabledEffective;
  8076. Vector2 gravity;
  8077. /* readonly */
  8078. uint id;
  8079. /* readonly */
  8080. Node node;
  8081. /* readonly */
  8082. uint numAttributes;
  8083. ObjectAnimation objectAnimation;
  8084. uint positionIterations;
  8085. /* readonly */
  8086. int refs;
  8087. bool subStepping;
  8088. bool temporary;
  8089. /* readonly */
  8090. StringHash type;
  8091. /* readonly */
  8092. String typeName;
  8093. bool updateEnabled;
  8094. uint velocityIterations;
  8095. bool warmStarting;
  8096. /* readonly */
  8097. int weakRefs;
  8098. };
  8099. class Plane
  8100. {
  8101. // Methods:
  8102. void Define(const Vector3&, const Vector3&);
  8103. void Define(const Vector3&, const Vector3&, const Vector3&);
  8104. void Define(const Vector4&);
  8105. float Distance(const Vector3&) const;
  8106. Vector3 Project(const Vector3&) const;
  8107. Vector3 Reflect(const Vector3&) const;
  8108. Vector4 ToVector4() const;
  8109. void Transform(const Matrix3&);
  8110. void Transform(const Matrix3x4&);
  8111. void Transform(const Matrix4&);
  8112. Plane Transformed(const Matrix3&) const;
  8113. Plane Transformed(const Matrix3x4&) const;
  8114. Plane Transformed(const Matrix4&) const;
  8115. // Properties:
  8116. Vector3 absNormal;
  8117. float d;
  8118. Vector3 normal;
  8119. /* readonly */
  8120. Matrix3x4 reflectionMatrix;
  8121. };
  8122. class Polyhedron
  8123. {
  8124. // Methods:
  8125. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8126. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8127. void AddFace(const Array<Vector3>);
  8128. void Clear();
  8129. void Clip(const BoundingBox&);
  8130. void Clip(const Frustum&);
  8131. void Define(const BoundingBox&);
  8132. void Define(const Frustum&);
  8133. void Transform(const Matrix3&);
  8134. void Transform(const Matrix3x4&);
  8135. Polyhedron Transformed(const Matrix3&) const;
  8136. Polyhedron Transformed(const Matrix3x4&) const;
  8137. // Properties:
  8138. /* readonly */
  8139. Array<Array<Vector3>> face;
  8140. /* readonly */
  8141. uint numFaces;
  8142. };
  8143. class ProgressBar
  8144. {
  8145. // Methods:
  8146. void ChangeValue(float);
  8147. bool HasSubscribedToEvent(Object, const String&);
  8148. bool HasSubscribedToEvent(const String&);
  8149. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8150. void SetLoadingPercentStyle(const String&);
  8151. // Properties:
  8152. /* readonly */
  8153. String category;
  8154. /* readonly */
  8155. BorderImage knob;
  8156. Orientation orientation;
  8157. float range;
  8158. /* readonly */
  8159. int refs;
  8160. bool showPercentText;
  8161. /* readonly */
  8162. StringHash type;
  8163. /* readonly */
  8164. String typeName;
  8165. float value;
  8166. /* readonly */
  8167. int weakRefs;
  8168. };
  8169. class PropertySet2D
  8170. {
  8171. // Methods:
  8172. bool HasProperty(const String&) const;
  8173. const String& GetProperty(const String&) const;
  8174. // Properties:
  8175. /* readonly */
  8176. int refs;
  8177. /* readonly */
  8178. int weakRefs;
  8179. };
  8180. class Quaternion
  8181. {
  8182. // Methods:
  8183. Quaternion Conjugate() const;
  8184. float DotProduct(const Quaternion&) const;
  8185. bool Equals(const Quaternion&) const;
  8186. void FromAngleAxis(float, const Vector3&);
  8187. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8188. void FromEulerAngles(float, float, float);
  8189. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8190. void FromRotationMatrix(const Matrix3&);
  8191. void FromRotationTo(const Vector3&, const Vector3&);
  8192. Quaternion Inverse() const;
  8193. bool IsNaN() const;
  8194. float LengthSquared() const;
  8195. Quaternion Nlerp(Quaternion, float, bool) const;
  8196. void Normalize();
  8197. Quaternion Normalized() const;
  8198. Quaternion Slerp(Quaternion, float) const;
  8199. String ToString() const;
  8200. // Properties:
  8201. /* readonly */
  8202. Vector3 eulerAngles;
  8203. /* readonly */
  8204. float pitch;
  8205. /* readonly */
  8206. float roll;
  8207. /* readonly */
  8208. Matrix3 rotationMatrix;
  8209. float w;
  8210. float x;
  8211. float y;
  8212. /* readonly */
  8213. float yaw;
  8214. float z;
  8215. };
  8216. class Ray
  8217. {
  8218. // Methods:
  8219. Vector3 ClosestPoint(const Ray&) const;
  8220. void Define(const Vector3&, const Vector3&);
  8221. float Distance(const Vector3&) const;
  8222. float HitDistance(const BoundingBox&) const;
  8223. float HitDistance(const Frustum&, bool = true) const;
  8224. float HitDistance(const Plane&) const;
  8225. float HitDistance(const Sphere&) const;
  8226. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8227. Vector3 Project(const Vector3&) const;
  8228. Ray Transformed(const Matrix3x4&) const;
  8229. // Properties:
  8230. Vector3 direction;
  8231. Vector3 origin;
  8232. };
  8233. class RayQueryResult
  8234. {
  8235. // Properties:
  8236. float distance;
  8237. /* readonly */
  8238. Drawable drawable;
  8239. /* readonly */
  8240. Node node;
  8241. Vector3 normal;
  8242. Vector3 position;
  8243. uint subObject;
  8244. Vector2 textureUV;
  8245. };
  8246. class Rect
  8247. {
  8248. // Methods:
  8249. void Clear();
  8250. void Clip(const Rect&);
  8251. void Define(const Vector2&);
  8252. void Define(const Vector2&, const Vector2&);
  8253. bool Defined() const;
  8254. bool Equals(const Rect&) const;
  8255. Intersection IsInside(const Rect&) const;
  8256. Intersection IsInside(const Vector2&) const;
  8257. void Merge(const Rect&);
  8258. void Merge(const Vector2&);
  8259. Vector4 ToVector4() const;
  8260. // Properties:
  8261. float bottom;
  8262. /* readonly */
  8263. Vector2 center;
  8264. /* readonly */
  8265. Vector2 halfSize;
  8266. float left;
  8267. Vector2 max;
  8268. Vector2 min;
  8269. float right;
  8270. /* readonly */
  8271. Vector2 size;
  8272. float top;
  8273. };
  8274. class RefCounted
  8275. {
  8276. // Properties:
  8277. /* readonly */
  8278. int refs;
  8279. /* readonly */
  8280. int weakRefs;
  8281. };
  8282. class RenderPath
  8283. {
  8284. // Methods:
  8285. void AddCommand(const RenderPathCommand&);
  8286. void AddRenderTarget(const RenderTargetInfo&);
  8287. bool Append(XMLFile);
  8288. RenderPath Clone();
  8289. void InsertCommand(uint, const RenderPathCommand&);
  8290. bool Load(XMLFile);
  8291. void RemoveCommand(uint);
  8292. void RemoveCommands(const String&);
  8293. void RemoveRenderTarget(const String&);
  8294. void RemoveRenderTarget(uint);
  8295. void RemoveRenderTargts(const String&);
  8296. void SetEnabled(const String&, bool);
  8297. void ToggleEnabled(const String&);
  8298. // Properties:
  8299. Array<RenderPathCommand> commands;
  8300. /* readonly */
  8301. uint numCommands;
  8302. /* readonly */
  8303. uint numRenderTargets;
  8304. /* readonly */
  8305. int refs;
  8306. Array<RenderTargetInfo> renderTargets;
  8307. Array<Variant> shaderParameters;
  8308. /* readonly */
  8309. int weakRefs;
  8310. };
  8311. class RenderPathCommand
  8312. {
  8313. // Methods:
  8314. void RemoveShaderParameter(const String&);
  8315. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8316. // Properties:
  8317. BlendMode blendMode;
  8318. Color clearColor;
  8319. float clearDepth;
  8320. uint clearFlags;
  8321. uint clearStencil;
  8322. String depthStencilName;
  8323. bool enabled;
  8324. String eventName;
  8325. bool markToStencil;
  8326. String metadata;
  8327. uint numOutputs;
  8328. Array<CubeMapFace> outputFaces;
  8329. Array<String> outputNames;
  8330. String pass;
  8331. String pixelShaderDefines;
  8332. String pixelShaderName;
  8333. Array<Variant> shaderParameters;
  8334. RenderCommandSortMode sortMode;
  8335. String tag;
  8336. Array<String> textureNames;
  8337. RenderCommandType type;
  8338. bool useFogColor;
  8339. bool useLitBase;
  8340. bool vertexLights;
  8341. String vertexShaderDefines;
  8342. String vertexShaderName;
  8343. };
  8344. class RenderSurface
  8345. {
  8346. // Methods:
  8347. void QueueUpdate();
  8348. // Properties:
  8349. /* readonly */
  8350. int height;
  8351. RenderSurface linkedDepthStencil;
  8352. RenderSurface linkedRenderTarget;
  8353. uint numViewports;
  8354. /* readonly */
  8355. Texture parentTexture;
  8356. /* readonly */
  8357. bool resolveDirty;
  8358. RenderSurfaceUpdateMode updateMode;
  8359. /* readonly */
  8360. TextureUsage usage;
  8361. Array<Viewport> viewports;
  8362. /* readonly */
  8363. int width;
  8364. };
  8365. class RenderTargetInfo
  8366. {
  8367. // Properties:
  8368. bool autoResolve;
  8369. bool cubemap;
  8370. bool enabled;
  8371. bool filtered;
  8372. uint format;
  8373. int multiSample;
  8374. String name;
  8375. bool persistent;
  8376. bool sRGB;
  8377. Vector2 size;
  8378. RenderTargetSizeMode sizeMode;
  8379. String tag;
  8380. };
  8381. class Renderer
  8382. {
  8383. // Methods:
  8384. void DrawDebugGeometry(bool) const;
  8385. bool HasSubscribedToEvent(Object, const String&);
  8386. bool HasSubscribedToEvent(const String&);
  8387. void ReloadShaders() const;
  8388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8389. void SetDefaultRenderPath(XMLFile);
  8390. void SetVSMShadowParameters(float, float);
  8391. // Properties:
  8392. /* readonly */
  8393. String category;
  8394. /* readonly */
  8395. Material defaultLightRamp;
  8396. /* readonly */
  8397. Material defaultLightSpot;
  8398. /* readonly */
  8399. Material defaultMaterial;
  8400. RenderPath defaultRenderPath;
  8401. Technique defaultTechnique;
  8402. /* readonly */
  8403. Zone defaultZone;
  8404. bool drawShadows;
  8405. bool dynamicInstancing;
  8406. bool hdrRendering;
  8407. int materialQuality;
  8408. int maxOccluderTriangles;
  8409. int maxShadowMaps;
  8410. int maxSortedInstances;
  8411. int minInstances;
  8412. float mobileNormalOffsetMul;
  8413. float mobileShadowBiasAdd;
  8414. float mobileShadowBiasMul;
  8415. /* readonly */
  8416. uint numBatches;
  8417. int numExtraInstancingBufferElements;
  8418. /* readonly */
  8419. Array<uint> numGeometries;
  8420. /* readonly */
  8421. Array<uint> numLights;
  8422. /* readonly */
  8423. Array<uint> numOccluders;
  8424. /* readonly */
  8425. uint numPrimitives;
  8426. /* readonly */
  8427. Array<uint> numShadowMaps;
  8428. uint numViewports;
  8429. /* readonly */
  8430. uint numViews;
  8431. float occluderSizeThreshold;
  8432. int occlusionBufferSize;
  8433. /* readonly */
  8434. int refs;
  8435. bool reuseShadowMaps;
  8436. int shadowMapSize;
  8437. ShadowQuality shadowQuality;
  8438. float shadowSoftness;
  8439. bool specularLighting;
  8440. int textureAnisotropy;
  8441. TextureFilterMode textureFilterMode;
  8442. int textureQuality;
  8443. bool threadedOcclusion;
  8444. /* readonly */
  8445. StringHash type;
  8446. /* readonly */
  8447. String typeName;
  8448. Array<Viewport> viewports;
  8449. int vsmMultiSample;
  8450. Vector2 vsmShadowParameters;
  8451. /* readonly */
  8452. int weakRefs;
  8453. };
  8454. class Resource
  8455. {
  8456. // Methods:
  8457. bool HasSubscribedToEvent(Object, const String&);
  8458. bool HasSubscribedToEvent(const String&);
  8459. bool Load(File);
  8460. bool Load(VectorBuffer&);
  8461. bool Load(const String&);
  8462. bool Save(File) const;
  8463. bool Save(VectorBuffer&) const;
  8464. bool Save(const String&) const;
  8465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8466. // Properties:
  8467. /* readonly */
  8468. String category;
  8469. /* readonly */
  8470. uint memoryUse;
  8471. String name;
  8472. /* readonly */
  8473. int refs;
  8474. /* readonly */
  8475. StringHash type;
  8476. /* readonly */
  8477. String typeName;
  8478. /* readonly */
  8479. uint useTimer;
  8480. /* readonly */
  8481. int weakRefs;
  8482. };
  8483. class ResourceCache
  8484. {
  8485. // Methods:
  8486. bool AddManualResource(Resource);
  8487. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8488. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8489. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8490. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8491. bool Exists(const String&) const;
  8492. Resource GetExistingResource(StringHash, const String&);
  8493. Resource GetExistingResource(const String&, const String&);
  8494. File GetFile(const String&);
  8495. String GetPreferredResourceDir(const String&) const;
  8496. Resource GetResource(StringHash, const String&, bool = true);
  8497. Resource GetResource(const String&, const String&, bool = true);
  8498. String GetResourceFileName(const String&) const;
  8499. bool HasSubscribedToEvent(Object, const String&);
  8500. bool HasSubscribedToEvent(const String&);
  8501. void ReleaseAllResources(bool = false);
  8502. void ReleaseResource(const String&, const String&, bool = false);
  8503. void ReleaseResources(StringHash, bool = false);
  8504. void ReleaseResources(const String&, bool = false);
  8505. void ReleaseResources(const String&, const String&, bool = false);
  8506. bool ReloadResource(Resource);
  8507. void ReloadResourceWithDependencies(const String&);
  8508. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8509. void RemovePackageFile(const String&, bool = true, bool = false);
  8510. void RemoveResourceDir(const String&);
  8511. String SanitateResourceDirName(const String&) const;
  8512. String SanitateResourceName(const String&) const;
  8513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8514. // Properties:
  8515. bool autoReloadResources;
  8516. /* readonly */
  8517. String category;
  8518. int finishBackgroundResourcesMs;
  8519. Array<uint64> memoryBudget;
  8520. /* readonly */
  8521. Array<uint64> memoryUse;
  8522. /* readonly */
  8523. uint numBackgroundLoadResources;
  8524. /* readonly */
  8525. Array<PackageFile> packageFiles;
  8526. /* readonly */
  8527. int refs;
  8528. /* readonly */
  8529. Array<String> resourceDirs;
  8530. bool returnFailedResources;
  8531. /* readonly */
  8532. bool seachPackagesFirst;
  8533. /* writeonly */
  8534. bool searchPackagesFirst;
  8535. /* readonly */
  8536. uint64 totalMemoryUse;
  8537. /* readonly */
  8538. StringHash type;
  8539. /* readonly */
  8540. String typeName;
  8541. /* readonly */
  8542. int weakRefs;
  8543. };
  8544. class ResourceRef
  8545. {
  8546. // Properties:
  8547. String name;
  8548. StringHash type;
  8549. };
  8550. class ResourceRefList
  8551. {
  8552. // Methods:
  8553. void Resize(uint);
  8554. // Properties:
  8555. /* readonly */
  8556. bool empty;
  8557. /* readonly */
  8558. uint length;
  8559. Array<String> names;
  8560. StringHash type;
  8561. };
  8562. class RibbonTrail
  8563. {
  8564. // Methods:
  8565. void ApplyAttributes();
  8566. void Commit();
  8567. void DrawDebugGeometry(DebugRenderer, bool);
  8568. Variant GetAttribute(const String&) const;
  8569. ValueAnimation GetAttributeAnimation(const String&) const;
  8570. float GetAttributeAnimationSpeed(const String&) const;
  8571. float GetAttributeAnimationTime(const String&) const;
  8572. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8573. Variant GetAttributeDefault(const String&) const;
  8574. bool GetInterceptNetworkUpdate(const String&) const;
  8575. bool HasSubscribedToEvent(Object, const String&);
  8576. bool HasSubscribedToEvent(const String&);
  8577. bool IsInView(Camera) const;
  8578. bool Load(File, bool = false);
  8579. bool Load(VectorBuffer&, bool = false);
  8580. bool LoadJSON(const JSONValue&, bool = false);
  8581. bool LoadXML(const XMLElement&, bool = false);
  8582. void MarkNetworkUpdate() const;
  8583. void Remove();
  8584. void RemoveAttributeAnimation(const String&);
  8585. void RemoveInstanceDefault();
  8586. void RemoveObjectAnimation();
  8587. void ResetToDefault();
  8588. bool Save(File) const;
  8589. bool Save(VectorBuffer&) const;
  8590. bool SaveJSON(JSONValue&) const;
  8591. bool SaveXML(XMLElement&) const;
  8592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8593. void SetAnimationTime(float);
  8594. bool SetAttribute(const String&, const Variant&);
  8595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8596. void SetAttributeAnimationSpeed(const String&, float);
  8597. void SetAttributeAnimationTime(const String&, float);
  8598. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8599. void SetInterceptNetworkUpdate(const String&, bool);
  8600. // Properties:
  8601. bool animationEnabled;
  8602. float animationLodBias;
  8603. /* readonly */
  8604. Array<Variant> attributeDefaults;
  8605. /* readonly */
  8606. Array<AttributeInfo> attributeInfos;
  8607. Array<Variant> attributes;
  8608. /* readonly */
  8609. BoundingBox boundingBox;
  8610. bool castShadows;
  8611. /* readonly */
  8612. String category;
  8613. float drawDistance;
  8614. bool emitting;
  8615. bool enabled;
  8616. /* readonly */
  8617. bool enabledEffective;
  8618. Color endColor;
  8619. float endScale;
  8620. /* readonly */
  8621. uint id;
  8622. /* readonly */
  8623. bool inView;
  8624. float lifetime;
  8625. uint lightMask;
  8626. float lodBias;
  8627. Material material;
  8628. uint maxLights;
  8629. /* readonly */
  8630. Node node;
  8631. /* readonly */
  8632. uint numAttributes;
  8633. ObjectAnimation objectAnimation;
  8634. bool occludee;
  8635. bool occluder;
  8636. /* readonly */
  8637. int refs;
  8638. float shadowDistance;
  8639. uint shadowMask;
  8640. bool sorted;
  8641. Color startColor;
  8642. float startScale;
  8643. uint tailColumn;
  8644. bool temporary;
  8645. TrailType trailType;
  8646. /* readonly */
  8647. StringHash type;
  8648. /* readonly */
  8649. String typeName;
  8650. bool updateInvisible;
  8651. float vertexDistance;
  8652. uint viewMask;
  8653. /* readonly */
  8654. int weakRefs;
  8655. float width;
  8656. /* readonly */
  8657. BoundingBox worldBoundingBox;
  8658. /* readonly */
  8659. Zone zone;
  8660. uint zoneMask;
  8661. };
  8662. class RigidBody
  8663. {
  8664. // Methods:
  8665. void Activate();
  8666. void ApplyAttributes();
  8667. void ApplyForce(const Vector3&);
  8668. void ApplyForce(const Vector3&, const Vector3&);
  8669. void ApplyImpulse(const Vector3&);
  8670. void ApplyImpulse(const Vector3&, const Vector3&);
  8671. void ApplyTorque(const Vector3&);
  8672. void ApplyTorqueImpulse(const Vector3&);
  8673. void DisableMassUpdate();
  8674. void DrawDebugGeometry(DebugRenderer, bool);
  8675. void EnableMassUpdate();
  8676. Variant GetAttribute(const String&) const;
  8677. ValueAnimation GetAttributeAnimation(const String&) const;
  8678. float GetAttributeAnimationSpeed(const String&) const;
  8679. float GetAttributeAnimationTime(const String&) const;
  8680. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8681. Variant GetAttributeDefault(const String&) const;
  8682. bool GetInterceptNetworkUpdate(const String&) const;
  8683. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8684. bool HasSubscribedToEvent(Object, const String&);
  8685. bool HasSubscribedToEvent(const String&);
  8686. bool Load(File, bool = false);
  8687. bool Load(VectorBuffer&, bool = false);
  8688. bool LoadJSON(const JSONValue&, bool = false);
  8689. bool LoadXML(const XMLElement&, bool = false);
  8690. void MarkNetworkUpdate() const;
  8691. void ReAddBodyToWorld();
  8692. void Remove();
  8693. void RemoveAttributeAnimation(const String&);
  8694. void RemoveInstanceDefault();
  8695. void RemoveObjectAnimation();
  8696. void ResetForces();
  8697. void ResetToDefault();
  8698. bool Save(File) const;
  8699. bool Save(VectorBuffer&) const;
  8700. bool SaveJSON(JSONValue&) const;
  8701. bool SaveXML(XMLElement&) const;
  8702. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8703. void SetAnimationTime(float);
  8704. bool SetAttribute(const String&, const Variant&);
  8705. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8706. void SetAttributeAnimationSpeed(const String&, float);
  8707. void SetAttributeAnimationTime(const String&, float);
  8708. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8709. void SetCollisionLayerAndMask(uint, uint);
  8710. void SetInterceptNetworkUpdate(const String&, bool);
  8711. void SetTransform(const Vector3&, const Quaternion&);
  8712. // Properties:
  8713. /* readonly */
  8714. bool active;
  8715. float angularDamping;
  8716. Vector3 angularFactor;
  8717. float angularRestThreshold;
  8718. Vector3 angularVelocity;
  8719. bool animationEnabled;
  8720. Vector3 anisotropicFriction;
  8721. /* readonly */
  8722. Array<Variant> attributeDefaults;
  8723. /* readonly */
  8724. Array<AttributeInfo> attributeInfos;
  8725. Array<Variant> attributes;
  8726. /* readonly */
  8727. String category;
  8728. float ccdMotionThreshold;
  8729. float ccdRadius;
  8730. /* readonly */
  8731. Vector3 centerOfMass;
  8732. /* readonly */
  8733. Array<RigidBody> collidingBodies;
  8734. CollisionEventMode collisionEventMode;
  8735. uint collisionLayer;
  8736. uint collisionMask;
  8737. float contactProcessingThreshold;
  8738. bool enabled;
  8739. /* readonly */
  8740. bool enabledEffective;
  8741. float friction;
  8742. Vector3 gravityOverride;
  8743. /* readonly */
  8744. uint id;
  8745. bool kinematic;
  8746. float linearDamping;
  8747. Vector3 linearFactor;
  8748. float linearRestThreshold;
  8749. Vector3 linearVelocity;
  8750. float mass;
  8751. /* readonly */
  8752. Node node;
  8753. /* readonly */
  8754. uint numAttributes;
  8755. ObjectAnimation objectAnimation;
  8756. Vector3 position;
  8757. /* readonly */
  8758. int refs;
  8759. float restitution;
  8760. float rollingFriction;
  8761. Quaternion rotation;
  8762. bool temporary;
  8763. bool trigger;
  8764. /* readonly */
  8765. StringHash type;
  8766. /* readonly */
  8767. String typeName;
  8768. bool useGravity;
  8769. /* readonly */
  8770. int weakRefs;
  8771. };
  8772. class RigidBody2D
  8773. {
  8774. // Methods:
  8775. void ApplyAngularImpulse(float, bool);
  8776. void ApplyAttributes();
  8777. void ApplyForce(const Vector2&, const Vector2&, bool);
  8778. void ApplyForceToCenter(const Vector2&, bool);
  8779. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8780. void ApplyTorque(float, bool);
  8781. void DrawDebugGeometry(DebugRenderer, bool);
  8782. Variant GetAttribute(const String&) const;
  8783. ValueAnimation GetAttributeAnimation(const String&) const;
  8784. float GetAttributeAnimationSpeed(const String&) const;
  8785. float GetAttributeAnimationTime(const String&) const;
  8786. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8787. Variant GetAttributeDefault(const String&) const;
  8788. bool GetInterceptNetworkUpdate(const String&) const;
  8789. bool HasSubscribedToEvent(Object, const String&);
  8790. bool HasSubscribedToEvent(const String&);
  8791. bool Load(File, bool = false);
  8792. bool Load(VectorBuffer&, bool = false);
  8793. bool LoadJSON(const JSONValue&, bool = false);
  8794. bool LoadXML(const XMLElement&, bool = false);
  8795. void MarkNetworkUpdate() const;
  8796. void Remove();
  8797. void RemoveAttributeAnimation(const String&);
  8798. void RemoveInstanceDefault();
  8799. void RemoveObjectAnimation();
  8800. void ResetToDefault();
  8801. bool Save(File) const;
  8802. bool Save(VectorBuffer&) const;
  8803. bool SaveJSON(JSONValue&) const;
  8804. bool SaveXML(XMLElement&) const;
  8805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8806. void SetAnimationTime(float);
  8807. bool SetAttribute(const String&, const Variant&);
  8808. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8809. void SetAttributeAnimationSpeed(const String&, float);
  8810. void SetAttributeAnimationTime(const String&, float);
  8811. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8812. void SetInterceptNetworkUpdate(const String&, bool);
  8813. // Properties:
  8814. bool allowSleep;
  8815. float angularDamping;
  8816. bool animationEnabled;
  8817. /* readonly */
  8818. Array<Variant> attributeDefaults;
  8819. /* readonly */
  8820. Array<AttributeInfo> attributeInfos;
  8821. Array<Variant> attributes;
  8822. bool awake;
  8823. BodyType2D bodyType;
  8824. bool bullet;
  8825. /* readonly */
  8826. String category;
  8827. bool enabled;
  8828. /* readonly */
  8829. bool enabledEffective;
  8830. bool fixedRotation;
  8831. float gravityScale;
  8832. /* readonly */
  8833. uint id;
  8834. float inertia;
  8835. float linearDamping;
  8836. Vector2 linearVelocity;
  8837. float mass;
  8838. Vector2 massCenter;
  8839. /* readonly */
  8840. Node node;
  8841. /* readonly */
  8842. uint numAttributes;
  8843. ObjectAnimation objectAnimation;
  8844. /* readonly */
  8845. int refs;
  8846. bool temporary;
  8847. /* readonly */
  8848. StringHash type;
  8849. /* readonly */
  8850. String typeName;
  8851. bool useFixtureMass;
  8852. /* readonly */
  8853. int weakRefs;
  8854. };
  8855. class Scene
  8856. {
  8857. // Methods:
  8858. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8859. void AddRequiredPackageFile(PackageFile);
  8860. void AddTag(const String&);
  8861. void AddTags(const String&, int8 = ';');
  8862. void ApplyAttributes();
  8863. void Clear(bool = true, bool = true);
  8864. void ClearRequiredPackageFiles();
  8865. Component CloneComponent(Component, CreateMode, uint = 0);
  8866. Component CloneComponent(Component, uint = 0);
  8867. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  8868. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8869. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8870. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8871. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8872. Variant GetAttribute(const String&) const;
  8873. ValueAnimation GetAttributeAnimation(const String&) const;
  8874. float GetAttributeAnimationSpeed(const String&) const;
  8875. float GetAttributeAnimationTime(const String&) const;
  8876. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8877. Variant GetAttributeDefault(const String&) const;
  8878. Node GetChild(const String&, bool = false) const;
  8879. Array<Node> GetChildren(bool = false) const;
  8880. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8881. Array<Node> GetChildrenWithScript(bool = false) const;
  8882. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8883. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8884. Component GetComponent(const String&, bool = false) const;
  8885. Component GetComponent(uint) const;
  8886. Array<Component> GetComponents() const;
  8887. Array<Component> GetComponents(const String&, bool = false) const;
  8888. bool GetInterceptNetworkUpdate(const String&) const;
  8889. Node GetNode(uint) const;
  8890. Array<Node> GetNodesWithTag(const String&) const;
  8891. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8892. Component GetParentComponent(const String&, bool = false) const;
  8893. ScriptObject GetScriptObject() const;
  8894. ScriptObject GetScriptObject(const String&) const;
  8895. bool HasComponent(const String&) const;
  8896. bool HasSubscribedToEvent(Object, const String&);
  8897. bool HasSubscribedToEvent(const String&);
  8898. bool HasTag(const String&);
  8899. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8900. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8901. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8902. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8903. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8904. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8905. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8906. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8907. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8908. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8909. bool Load(File, bool = false);
  8910. bool Load(VectorBuffer&, bool = false);
  8911. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8912. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8913. bool LoadJSON(File);
  8914. bool LoadJSON(VectorBuffer&);
  8915. bool LoadJSON(const JSONValue&, bool = false);
  8916. bool LoadXML(File);
  8917. bool LoadXML(VectorBuffer&);
  8918. bool LoadXML(const XMLElement&, bool = false);
  8919. Vector3 LocalToWorld(const Vector3&) const;
  8920. Vector3 LocalToWorld(const Vector4&) const;
  8921. Vector2 LocalToWorld2D(const Vector2&) const;
  8922. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8923. void MarkNetworkUpdate() const;
  8924. void Pitch(float, TransformSpace = TS_LOCAL);
  8925. void RegisterVar(const String&);
  8926. void Remove();
  8927. void RemoveAllChildren();
  8928. void RemoveAllComponents();
  8929. void RemoveAllTags();
  8930. void RemoveAttributeAnimation(const String&);
  8931. void RemoveChild(Node);
  8932. void RemoveChildren(bool, bool, bool);
  8933. void RemoveComponent(Component);
  8934. void RemoveComponent(const String&);
  8935. void RemoveComponents(bool, bool);
  8936. void RemoveComponents(const String&);
  8937. void RemoveInstanceDefault();
  8938. void RemoveObjectAnimation();
  8939. bool RemoveTag(const String&);
  8940. void ReorderComponent(Component, uint);
  8941. void ResetToDefault();
  8942. void Roll(float, TransformSpace = TS_LOCAL);
  8943. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8944. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8945. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8946. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8947. bool Save(File) const;
  8948. bool Save(VectorBuffer&) const;
  8949. bool SaveJSON(File, const String& = "\t");
  8950. bool SaveJSON(JSONValue&) const;
  8951. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8952. bool SaveXML(File, const String& = "\t");
  8953. bool SaveXML(VectorBuffer&, const String& = "\t");
  8954. bool SaveXML(XMLElement&) const;
  8955. void Scale(const Vector3&);
  8956. void Scale(float);
  8957. void Scale2D(const Vector2&);
  8958. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8959. void SetAnimationTime(float);
  8960. bool SetAttribute(const String&, const Variant&);
  8961. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8962. void SetAttributeAnimationSpeed(const String&, float);
  8963. void SetAttributeAnimationTime(const String&, float);
  8964. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8965. void SetInterceptNetworkUpdate(const String&, bool);
  8966. void SetPosition2D(float, float);
  8967. void SetScale(float);
  8968. void SetScale2D(float, float);
  8969. void SetTransform(const Matrix3x4&);
  8970. void SetTransform(const Vector3&, const Quaternion&);
  8971. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8972. void SetTransform(const Vector3&, const Quaternion&, float);
  8973. void SetTransform2D(const Vector2&, float);
  8974. void SetTransform2D(const Vector2&, float, const Vector2&);
  8975. void SetTransform2D(const Vector2&, float, float);
  8976. void SetWorldTransform(const Vector3&, const Quaternion&);
  8977. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8978. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8979. void SetWorldTransform2D(const Vector2&, float);
  8980. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8981. void SetWorldTransform2D(const Vector2&, float, float);
  8982. void StopAsyncLoading();
  8983. const String& GetVarName(StringHash) const;
  8984. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8985. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8986. void UnregisterAllVars(const String&);
  8987. void UnregisterVar(const String&);
  8988. void Update(float);
  8989. Vector3 WorldToLocal(const Vector3&) const;
  8990. Vector3 WorldToLocal(const Vector4&) const;
  8991. Vector2 WorldToLocal2D(const Vector2&) const;
  8992. void Yaw(float, TransformSpace = TS_LOCAL);
  8993. // Properties:
  8994. bool animationEnabled;
  8995. /* readonly */
  8996. LoadMode asyncLoadMode;
  8997. /* readonly */
  8998. bool asyncLoading;
  8999. int asyncLoadingMs;
  9000. /* readonly */
  9001. float asyncProgress;
  9002. /* readonly */
  9003. Array<Variant> attributeDefaults;
  9004. /* readonly */
  9005. Array<AttributeInfo> attributeInfos;
  9006. Array<Variant> attributes;
  9007. /* readonly */
  9008. String category;
  9009. /* readonly */
  9010. uint checksum;
  9011. /* readonly */
  9012. Array<Node> children;
  9013. /* readonly */
  9014. Array<Component> components;
  9015. /* readonly */
  9016. DebugRenderer debugRenderer;
  9017. Vector3 direction;
  9018. float elapsedTime;
  9019. /* readonly */
  9020. String fileName;
  9021. uint id;
  9022. String name;
  9023. /* readonly */
  9024. uint numAllChildren;
  9025. /* readonly */
  9026. uint numAttributes;
  9027. /* readonly */
  9028. uint numChildren;
  9029. /* readonly */
  9030. uint numComponents;
  9031. ObjectAnimation objectAnimation;
  9032. /* readonly */
  9033. Octree octree;
  9034. Node parent;
  9035. /* readonly */
  9036. PhysicsWorld physicsWorld;
  9037. /* readonly */
  9038. PhysicsWorld2D physicsWorld2D;
  9039. Vector3 position;
  9040. Vector2 position2D;
  9041. /* readonly */
  9042. int refs;
  9043. /* readonly */
  9044. Array<PackageFile> requiredPackageFiles;
  9045. /* readonly */
  9046. Vector3 right;
  9047. Quaternion rotation;
  9048. float rotation2D;
  9049. Vector3 scale;
  9050. Vector2 scale2D;
  9051. /* readonly */
  9052. ScriptObject scriptObject;
  9053. float smoothingConstant;
  9054. float snapThreshold;
  9055. /* readonly */
  9056. Array<String> tags;
  9057. bool temporary;
  9058. float timeScale;
  9059. /* readonly */
  9060. Matrix3x4 transform;
  9061. /* readonly */
  9062. StringHash type;
  9063. /* readonly */
  9064. String typeName;
  9065. /* readonly */
  9066. Vector3 up;
  9067. bool updateEnabled;
  9068. /* readonly */
  9069. VariantMap vars;
  9070. /* readonly */
  9071. int weakRefs;
  9072. Vector3 worldDirection;
  9073. Vector3 worldPosition;
  9074. Vector2 worldPosition2D;
  9075. /* readonly */
  9076. Vector3 worldRight;
  9077. Quaternion worldRotation;
  9078. float worldRotation2D;
  9079. Vector3 worldScale;
  9080. Vector2 worldScale2D;
  9081. /* readonly */
  9082. Matrix3x4 worldTransform;
  9083. /* readonly */
  9084. Vector3 worldUp;
  9085. };
  9086. class Script
  9087. {
  9088. // Methods:
  9089. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9090. bool Execute(const String&);
  9091. bool HasSubscribedToEvent(Object, const String&);
  9092. bool HasSubscribedToEvent(const String&);
  9093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9094. // Properties:
  9095. /* readonly */
  9096. String category;
  9097. Scene defaultScene;
  9098. ScriptFile defaultScriptFile;
  9099. bool executeConsoleCommands;
  9100. /* readonly */
  9101. int refs;
  9102. /* readonly */
  9103. StringHash type;
  9104. /* readonly */
  9105. String typeName;
  9106. /* readonly */
  9107. int weakRefs;
  9108. };
  9109. class ScriptFile
  9110. {
  9111. // Methods:
  9112. void ClearDelayedExecute(const String& = String ( ));
  9113. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9114. bool Execute(const String&, const Array<Variant> = null);
  9115. bool HasSubscribedToEvent(Object, const String&);
  9116. bool HasSubscribedToEvent(const String&);
  9117. bool Load(File);
  9118. bool Load(VectorBuffer&);
  9119. bool Load(const String&);
  9120. bool Save(File) const;
  9121. bool Save(VectorBuffer&) const;
  9122. bool Save(const String&) const;
  9123. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9124. // Properties:
  9125. /* readonly */
  9126. String category;
  9127. /* readonly */
  9128. bool compiled;
  9129. /* readonly */
  9130. uint memoryUse;
  9131. String name;
  9132. /* readonly */
  9133. int refs;
  9134. /* readonly */
  9135. StringHash type;
  9136. /* readonly */
  9137. String typeName;
  9138. /* readonly */
  9139. uint useTimer;
  9140. /* readonly */
  9141. int weakRefs;
  9142. };
  9143. class ScriptInstance
  9144. {
  9145. // Methods:
  9146. void ApplyAttributes();
  9147. void ClearDelayedExecute(const String& = String ( ));
  9148. bool CreateObject(ScriptFile, const String&);
  9149. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9150. void DrawDebugGeometry(DebugRenderer, bool);
  9151. bool Execute(const String&, const Array<Variant> = null);
  9152. Variant GetAttribute(const String&) const;
  9153. ValueAnimation GetAttributeAnimation(const String&) const;
  9154. float GetAttributeAnimationSpeed(const String&) const;
  9155. float GetAttributeAnimationTime(const String&) const;
  9156. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9157. Variant GetAttributeDefault(const String&) const;
  9158. bool GetInterceptNetworkUpdate(const String&) const;
  9159. bool HasMethod(const String&) const;
  9160. bool HasSubscribedToEvent(Object, const String&);
  9161. bool HasSubscribedToEvent(const String&);
  9162. bool IsA(const String&) const;
  9163. bool Load(File, bool = false);
  9164. bool Load(VectorBuffer&, bool = false);
  9165. bool LoadJSON(const JSONValue&, bool = false);
  9166. bool LoadXML(const XMLElement&, bool = false);
  9167. void MarkNetworkUpdate() const;
  9168. void Remove();
  9169. void RemoveAttributeAnimation(const String&);
  9170. void RemoveInstanceDefault();
  9171. void RemoveObjectAnimation();
  9172. void ResetToDefault();
  9173. bool Save(File) const;
  9174. bool Save(VectorBuffer&) const;
  9175. bool SaveJSON(JSONValue&) const;
  9176. bool SaveXML(XMLElement&) const;
  9177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9178. void SetAnimationTime(float);
  9179. bool SetAttribute(const String&, const Variant&);
  9180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9181. void SetAttributeAnimationSpeed(const String&, float);
  9182. void SetAttributeAnimationTime(const String&, float);
  9183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9184. void SetInterceptNetworkUpdate(const String&, bool);
  9185. // Properties:
  9186. bool animationEnabled;
  9187. /* readonly */
  9188. Array<Variant> attributeDefaults;
  9189. /* readonly */
  9190. Array<AttributeInfo> attributeInfos;
  9191. Array<Variant> attributes;
  9192. /* readonly */
  9193. String category;
  9194. String className;
  9195. bool enabled;
  9196. /* readonly */
  9197. bool enabledEffective;
  9198. /* readonly */
  9199. uint id;
  9200. /* readonly */
  9201. Node node;
  9202. /* readonly */
  9203. uint numAttributes;
  9204. ObjectAnimation objectAnimation;
  9205. /* readonly */
  9206. int refs;
  9207. ScriptFile scriptFile;
  9208. /* readonly */
  9209. ScriptObject scriptObject;
  9210. bool temporary;
  9211. /* readonly */
  9212. StringHash type;
  9213. /* readonly */
  9214. String typeName;
  9215. /* readonly */
  9216. int weakRefs;
  9217. };
  9218. class ScriptObject
  9219. {
  9220. };
  9221. class ScrollBar
  9222. {
  9223. // Methods:
  9224. void AddChild(UIElement);
  9225. void AddTag(const String&);
  9226. void AddTags(const String&, int8 = ';');
  9227. void ApplyAttributes();
  9228. void BringToFront();
  9229. void ChangeValue(float);
  9230. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9231. void DisableLayoutUpdate();
  9232. IntVector2 ElementToScreen(const IntVector2&);
  9233. void EnableLayoutUpdate();
  9234. uint FindChild(UIElement) const;
  9235. Variant GetAttribute(const String&) const;
  9236. ValueAnimation GetAttributeAnimation(const String&) const;
  9237. float GetAttributeAnimationSpeed(const String&) const;
  9238. float GetAttributeAnimationTime(const String&) const;
  9239. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9240. Variant GetAttributeDefault(const String&) const;
  9241. UIElement GetChild(const String&, bool = false) const;
  9242. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9243. Array<UIElement> GetChildren(bool = false) const;
  9244. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9245. UIElement GetElementEventSender() const;
  9246. bool GetInterceptNetworkUpdate(const String&) const;
  9247. uint GetNumChildren(bool) const;
  9248. bool HasSubscribedToEvent(Object, const String&);
  9249. bool HasSubscribedToEvent(const String&);
  9250. bool HasTag(const String&) const;
  9251. void InsertChild(uint, UIElement);
  9252. bool IsInside(IntVector2, bool);
  9253. bool IsInsideCombined(IntVector2, bool);
  9254. bool Load(File, bool = false);
  9255. bool Load(VectorBuffer&, bool = false);
  9256. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9257. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9258. bool LoadJSON(const JSONValue&, bool = false);
  9259. bool LoadXML(File);
  9260. bool LoadXML(VectorBuffer&);
  9261. bool LoadXML(XMLFile, XMLFile);
  9262. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9263. bool LoadXML(const XMLElement&, bool = false);
  9264. void MarkNetworkUpdate() const;
  9265. void Remove();
  9266. void RemoveAllChildren();
  9267. void RemoveAllTags();
  9268. void RemoveAttributeAnimation(const String&);
  9269. void RemoveChild(UIElement, uint = 0);
  9270. void RemoveChild(uint);
  9271. void RemoveInstanceDefault();
  9272. void RemoveObjectAnimation();
  9273. bool RemoveTag(const String&);
  9274. void ResetDeepEnabled();
  9275. void ResetToDefault();
  9276. bool Save(File) const;
  9277. bool Save(VectorBuffer&) const;
  9278. bool SaveJSON(JSONValue&) const;
  9279. bool SaveXML(File, const String& = "\t");
  9280. bool SaveXML(VectorBuffer&, const String& = "\t");
  9281. bool SaveXML(XMLElement&) const;
  9282. IntVector2 ScreenToElement(const IntVector2&);
  9283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9284. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9285. void SetAnimationTime(float);
  9286. bool SetAttribute(const String&, const Variant&);
  9287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9288. void SetAttributeAnimationSpeed(const String&, float);
  9289. void SetAttributeAnimationTime(const String&, float);
  9290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9291. void SetDeepEnabled(bool);
  9292. void SetEnabledRecursive(bool);
  9293. void SetFixedHeight(int);
  9294. void SetFixedSize(int, int);
  9295. void SetFixedWidth(int);
  9296. void SetInterceptNetworkUpdate(const String&, bool);
  9297. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9298. void SetMaxAnchor(float, float);
  9299. void SetMaxSize(int, int);
  9300. void SetMinAnchor(float, float);
  9301. void SetMinSize(int, int);
  9302. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9303. void SetPivot(float, float);
  9304. void SetPosition(int, int);
  9305. void SetSize(int, int);
  9306. bool SetStyle(const String&, XMLFile = null);
  9307. bool SetStyle(const XMLElement&);
  9308. bool SetStyleAuto(XMLFile = null);
  9309. void StepBack();
  9310. void StepForward();
  9311. void UpdateLayout();
  9312. const Variant& GetVar(const StringHash&);
  9313. // Properties:
  9314. bool animationEnabled;
  9315. /* readonly */
  9316. Array<Variant> attributeDefaults;
  9317. /* readonly */
  9318. Array<AttributeInfo> attributeInfos;
  9319. Array<Variant> attributes;
  9320. /* readonly */
  9321. Button backButton;
  9322. bool bringToBack;
  9323. bool bringToFront;
  9324. /* readonly */
  9325. String category;
  9326. /* readonly */
  9327. IntVector2 childOffset;
  9328. /* readonly */
  9329. Array<UIElement> children;
  9330. IntRect clipBorder;
  9331. bool clipChildren;
  9332. /* writeonly */
  9333. Color color;
  9334. /* readonly */
  9335. bool colorGradient;
  9336. Array<Color> colors;
  9337. /* readonly */
  9338. IntRect combinedScreenRect;
  9339. XMLFile defaultStyle;
  9340. /* readonly */
  9341. float derivedOpacity;
  9342. /* readonly */
  9343. uint dragButtonCombo;
  9344. /* readonly */
  9345. int dragButtonCount;
  9346. uint dragDropMode;
  9347. bool editable;
  9348. /* readonly */
  9349. float effectiveScrollStep;
  9350. bool elementEventSender;
  9351. bool enableAnchor;
  9352. bool enabled;
  9353. /* readonly */
  9354. bool enabledSelf;
  9355. /* readonly */
  9356. bool fixedHeight;
  9357. /* readonly */
  9358. bool fixedSize;
  9359. /* readonly */
  9360. bool fixedWidth;
  9361. bool focus;
  9362. FocusMode focusMode;
  9363. /* readonly */
  9364. Button forwardButton;
  9365. int height;
  9366. HorizontalAlignment horizontalAlignment;
  9367. /* readonly */
  9368. bool hovering;
  9369. int indent;
  9370. int indentSpacing;
  9371. /* readonly */
  9372. int indentWidth;
  9373. bool internal;
  9374. IntRect layoutBorder;
  9375. Vector2 layoutFlexScale;
  9376. LayoutMode layoutMode;
  9377. int layoutSpacing;
  9378. Vector2 maxAnchor;
  9379. int maxHeight;
  9380. IntVector2 maxOffset;
  9381. IntVector2 maxSize;
  9382. int maxWidth;
  9383. Vector2 minAnchor;
  9384. int minHeight;
  9385. IntVector2 minOffset;
  9386. IntVector2 minSize;
  9387. int minWidth;
  9388. String name;
  9389. /* readonly */
  9390. uint numAllChildren;
  9391. /* readonly */
  9392. uint numAttributes;
  9393. /* readonly */
  9394. uint numChildren;
  9395. ObjectAnimation objectAnimation;
  9396. float opacity;
  9397. Orientation orientation;
  9398. UIElement parent;
  9399. Vector2 pivot;
  9400. IntVector2 position;
  9401. int priority;
  9402. float range;
  9403. /* readonly */
  9404. int refs;
  9405. /* readonly */
  9406. UIElement root;
  9407. /* readonly */
  9408. IntVector2 screenPosition;
  9409. float scrollStep;
  9410. bool selected;
  9411. IntVector2 size;
  9412. /* readonly */
  9413. Slider slider;
  9414. bool sortChildren;
  9415. float stepFactor;
  9416. String style;
  9417. /* readonly */
  9418. Array<String> tags;
  9419. bool temporary;
  9420. TraversalMode traversalMode;
  9421. /* readonly */
  9422. StringHash type;
  9423. /* readonly */
  9424. String typeName;
  9425. bool useDerivedOpacity;
  9426. float value;
  9427. /* readonly */
  9428. VariantMap vars;
  9429. VerticalAlignment verticalAlignment;
  9430. bool visible;
  9431. /* readonly */
  9432. bool visibleEffective;
  9433. /* readonly */
  9434. int weakRefs;
  9435. int width;
  9436. };
  9437. class ScrollView
  9438. {
  9439. // Methods:
  9440. void AddChild(UIElement);
  9441. void AddTag(const String&);
  9442. void AddTags(const String&, int8 = ';');
  9443. void ApplyAttributes();
  9444. void BringToFront();
  9445. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9446. void DisableLayoutUpdate();
  9447. IntVector2 ElementToScreen(const IntVector2&);
  9448. void EnableLayoutUpdate();
  9449. uint FindChild(UIElement) const;
  9450. Variant GetAttribute(const String&) const;
  9451. ValueAnimation GetAttributeAnimation(const String&) const;
  9452. float GetAttributeAnimationSpeed(const String&) const;
  9453. float GetAttributeAnimationTime(const String&) const;
  9454. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9455. Variant GetAttributeDefault(const String&) const;
  9456. UIElement GetChild(const String&, bool = false) const;
  9457. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9458. Array<UIElement> GetChildren(bool = false) const;
  9459. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9460. UIElement GetElementEventSender() const;
  9461. bool GetInterceptNetworkUpdate(const String&) const;
  9462. uint GetNumChildren(bool) const;
  9463. bool HasSubscribedToEvent(Object, const String&);
  9464. bool HasSubscribedToEvent(const String&);
  9465. bool HasTag(const String&) const;
  9466. void InsertChild(uint, UIElement);
  9467. bool IsInside(IntVector2, bool);
  9468. bool IsInsideCombined(IntVector2, bool);
  9469. bool Load(File, bool = false);
  9470. bool Load(VectorBuffer&, bool = false);
  9471. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9472. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9473. bool LoadJSON(const JSONValue&, bool = false);
  9474. bool LoadXML(File);
  9475. bool LoadXML(VectorBuffer&);
  9476. bool LoadXML(XMLFile, XMLFile);
  9477. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9478. bool LoadXML(const XMLElement&, bool = false);
  9479. void MarkNetworkUpdate() const;
  9480. void Remove();
  9481. void RemoveAllChildren();
  9482. void RemoveAllTags();
  9483. void RemoveAttributeAnimation(const String&);
  9484. void RemoveChild(UIElement, uint = 0);
  9485. void RemoveChild(uint);
  9486. void RemoveInstanceDefault();
  9487. void RemoveObjectAnimation();
  9488. bool RemoveTag(const String&);
  9489. void ResetDeepEnabled();
  9490. void ResetToDefault();
  9491. bool Save(File) const;
  9492. bool Save(VectorBuffer&) const;
  9493. bool SaveJSON(JSONValue&) const;
  9494. bool SaveXML(File, const String& = "\t");
  9495. bool SaveXML(VectorBuffer&, const String& = "\t");
  9496. bool SaveXML(XMLElement&) const;
  9497. IntVector2 ScreenToElement(const IntVector2&);
  9498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9499. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9500. void SetAnimationTime(float);
  9501. bool SetAttribute(const String&, const Variant&);
  9502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9503. void SetAttributeAnimationSpeed(const String&, float);
  9504. void SetAttributeAnimationTime(const String&, float);
  9505. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9506. void SetDeepEnabled(bool);
  9507. void SetEnabledRecursive(bool);
  9508. void SetFixedHeight(int);
  9509. void SetFixedSize(int, int);
  9510. void SetFixedWidth(int);
  9511. void SetInterceptNetworkUpdate(const String&, bool);
  9512. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9513. void SetMaxAnchor(float, float);
  9514. void SetMaxSize(int, int);
  9515. void SetMinAnchor(float, float);
  9516. void SetMinSize(int, int);
  9517. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9518. void SetPivot(float, float);
  9519. void SetPosition(int, int);
  9520. void SetScrollBarsVisible(bool, bool);
  9521. void SetSize(int, int);
  9522. bool SetStyle(const String&, XMLFile = null);
  9523. bool SetStyle(const XMLElement&);
  9524. bool SetStyleAuto(XMLFile = null);
  9525. void SetViewPosition(int, int);
  9526. void UpdateLayout();
  9527. const Variant& GetVar(const StringHash&);
  9528. // Properties:
  9529. bool animationEnabled;
  9530. /* readonly */
  9531. Array<Variant> attributeDefaults;
  9532. /* readonly */
  9533. Array<AttributeInfo> attributeInfos;
  9534. Array<Variant> attributes;
  9535. bool autoDisableChildren;
  9536. float autoDisableThreshold;
  9537. bool bringToBack;
  9538. bool bringToFront;
  9539. /* readonly */
  9540. String category;
  9541. /* readonly */
  9542. IntVector2 childOffset;
  9543. /* readonly */
  9544. Array<UIElement> children;
  9545. IntRect clipBorder;
  9546. bool clipChildren;
  9547. /* writeonly */
  9548. Color color;
  9549. /* readonly */
  9550. bool colorGradient;
  9551. Array<Color> colors;
  9552. /* readonly */
  9553. IntRect combinedScreenRect;
  9554. UIElement contentElement;
  9555. XMLFile defaultStyle;
  9556. /* readonly */
  9557. float derivedOpacity;
  9558. /* readonly */
  9559. uint dragButtonCombo;
  9560. /* readonly */
  9561. int dragButtonCount;
  9562. uint dragDropMode;
  9563. bool editable;
  9564. bool elementEventSender;
  9565. bool enableAnchor;
  9566. bool enabled;
  9567. /* readonly */
  9568. bool enabledSelf;
  9569. /* readonly */
  9570. bool fixedHeight;
  9571. /* readonly */
  9572. bool fixedSize;
  9573. /* readonly */
  9574. bool fixedWidth;
  9575. bool focus;
  9576. FocusMode focusMode;
  9577. int height;
  9578. HorizontalAlignment horizontalAlignment;
  9579. /* readonly */
  9580. ScrollBar horizontalScrollBar;
  9581. /* readonly */
  9582. bool hovering;
  9583. int indent;
  9584. int indentSpacing;
  9585. /* readonly */
  9586. int indentWidth;
  9587. bool internal;
  9588. IntRect layoutBorder;
  9589. Vector2 layoutFlexScale;
  9590. LayoutMode layoutMode;
  9591. int layoutSpacing;
  9592. Vector2 maxAnchor;
  9593. int maxHeight;
  9594. IntVector2 maxOffset;
  9595. IntVector2 maxSize;
  9596. int maxWidth;
  9597. Vector2 minAnchor;
  9598. int minHeight;
  9599. IntVector2 minOffset;
  9600. IntVector2 minSize;
  9601. int minWidth;
  9602. String name;
  9603. /* readonly */
  9604. uint numAllChildren;
  9605. /* readonly */
  9606. uint numAttributes;
  9607. /* readonly */
  9608. uint numChildren;
  9609. ObjectAnimation objectAnimation;
  9610. float opacity;
  9611. float pageStep;
  9612. UIElement parent;
  9613. Vector2 pivot;
  9614. IntVector2 position;
  9615. int priority;
  9616. /* readonly */
  9617. int refs;
  9618. /* readonly */
  9619. UIElement root;
  9620. /* readonly */
  9621. IntVector2 screenPosition;
  9622. bool scrollBarsAutoVisible;
  9623. float scrollDeceleration;
  9624. /* readonly */
  9625. BorderImage scrollPanel;
  9626. float scrollSnapEpsilon;
  9627. float scrollStep;
  9628. bool selected;
  9629. IntVector2 size;
  9630. bool sortChildren;
  9631. String style;
  9632. /* readonly */
  9633. Array<String> tags;
  9634. bool temporary;
  9635. TraversalMode traversalMode;
  9636. /* readonly */
  9637. StringHash type;
  9638. /* readonly */
  9639. String typeName;
  9640. bool useDerivedOpacity;
  9641. /* readonly */
  9642. VariantMap vars;
  9643. VerticalAlignment verticalAlignment;
  9644. /* readonly */
  9645. ScrollBar verticalScrollBar;
  9646. IntVector2 viewPosition;
  9647. bool visible;
  9648. /* readonly */
  9649. bool visibleEffective;
  9650. /* readonly */
  9651. int weakRefs;
  9652. int width;
  9653. };
  9654. class Serializable
  9655. {
  9656. // Methods:
  9657. void ApplyAttributes();
  9658. Variant GetAttribute(const String&) const;
  9659. Variant GetAttributeDefault(const String&) const;
  9660. bool GetInterceptNetworkUpdate(const String&) const;
  9661. bool HasSubscribedToEvent(Object, const String&);
  9662. bool HasSubscribedToEvent(const String&);
  9663. bool Load(File, bool = false);
  9664. bool Load(VectorBuffer&, bool = false);
  9665. bool LoadJSON(const JSONValue&, bool = false);
  9666. bool LoadXML(const XMLElement&, bool = false);
  9667. void MarkNetworkUpdate() const;
  9668. void RemoveInstanceDefault();
  9669. void ResetToDefault();
  9670. bool Save(File) const;
  9671. bool Save(VectorBuffer&) const;
  9672. bool SaveJSON(JSONValue&) const;
  9673. bool SaveXML(XMLElement&) const;
  9674. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9675. bool SetAttribute(const String&, const Variant&);
  9676. void SetInterceptNetworkUpdate(const String&, bool);
  9677. // Properties:
  9678. /* readonly */
  9679. Array<Variant> attributeDefaults;
  9680. /* readonly */
  9681. Array<AttributeInfo> attributeInfos;
  9682. Array<Variant> attributes;
  9683. /* readonly */
  9684. String category;
  9685. /* readonly */
  9686. uint numAttributes;
  9687. /* readonly */
  9688. int refs;
  9689. bool temporary;
  9690. /* readonly */
  9691. StringHash type;
  9692. /* readonly */
  9693. String typeName;
  9694. /* readonly */
  9695. int weakRefs;
  9696. };
  9697. class Serializer
  9698. {
  9699. // Methods:
  9700. uint Write(Array<uint8>);
  9701. bool WriteBool(bool);
  9702. bool WriteBoundingBox(const BoundingBox&);
  9703. bool WriteByte(int8);
  9704. bool WriteColor(const Color&);
  9705. bool WriteDouble(double);
  9706. bool WriteFileID(const String&);
  9707. bool WriteFloat(float);
  9708. bool WriteInt(int);
  9709. bool WriteInt64(int64);
  9710. bool WriteIntRect(const IntRect&);
  9711. bool WriteIntVector2(const IntVector2&);
  9712. bool WriteLine(const String&);
  9713. bool WriteMatrix3(const Matrix3&);
  9714. bool WriteMatrix3x4(const Matrix3x4&);
  9715. bool WriteMatrix4(const Matrix4&);
  9716. bool WriteNetID(uint);
  9717. bool WritePackedQuaternion(const Quaternion&);
  9718. bool WritePackedVector3(const Vector3&, float);
  9719. bool WriteQuaternion(const Quaternion&);
  9720. bool WriteShort(int16);
  9721. bool WriteString(const String&);
  9722. bool WriteStringHash(const StringHash&);
  9723. bool WriteUByte(uint8);
  9724. bool WriteUInt(uint);
  9725. bool WriteUInt64(uint64);
  9726. bool WriteUShort(uint16);
  9727. bool WriteVLE(uint);
  9728. bool WriteVariant(const Variant&);
  9729. bool WriteVariantMap(const VariantMap&);
  9730. bool WriteVector2(const Vector2&);
  9731. bool WriteVector3(const Vector3&);
  9732. bool WriteVector4(const Vector4&);
  9733. bool WriteVectorBuffer(const VectorBuffer&);
  9734. };
  9735. class Skeleton
  9736. {
  9737. // Methods:
  9738. Bone GetBone(const String&) const;
  9739. void Reset();
  9740. // Properties:
  9741. /* readonly */
  9742. Array<Bone> bones;
  9743. /* readonly */
  9744. uint numBones;
  9745. /* readonly */
  9746. Bone rootBone;
  9747. };
  9748. class Skybox
  9749. {
  9750. // Methods:
  9751. void ApplyAttributes();
  9752. void ApplyMaterialList(const String& = String ( ));
  9753. void DrawDebugGeometry(DebugRenderer, bool);
  9754. Variant GetAttribute(const String&) const;
  9755. ValueAnimation GetAttributeAnimation(const String&) const;
  9756. float GetAttributeAnimationSpeed(const String&) const;
  9757. float GetAttributeAnimationTime(const String&) const;
  9758. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9759. Variant GetAttributeDefault(const String&) const;
  9760. bool GetInterceptNetworkUpdate(const String&) const;
  9761. bool HasSubscribedToEvent(Object, const String&);
  9762. bool HasSubscribedToEvent(const String&);
  9763. bool IsInView(Camera) const;
  9764. bool Load(File, bool = false);
  9765. bool Load(VectorBuffer&, bool = false);
  9766. bool LoadJSON(const JSONValue&, bool = false);
  9767. bool LoadXML(const XMLElement&, bool = false);
  9768. void MarkNetworkUpdate() const;
  9769. void Remove();
  9770. void RemoveAttributeAnimation(const String&);
  9771. void RemoveInstanceDefault();
  9772. void RemoveObjectAnimation();
  9773. void ResetToDefault();
  9774. bool Save(File) const;
  9775. bool Save(VectorBuffer&) const;
  9776. bool SaveJSON(JSONValue&) const;
  9777. bool SaveXML(XMLElement&) const;
  9778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9779. void SetAnimationTime(float);
  9780. bool SetAttribute(const String&, const Variant&);
  9781. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9782. void SetAttributeAnimationSpeed(const String&, float);
  9783. void SetAttributeAnimationTime(const String&, float);
  9784. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9785. void SetInterceptNetworkUpdate(const String&, bool);
  9786. // Properties:
  9787. bool animationEnabled;
  9788. /* readonly */
  9789. Array<Variant> attributeDefaults;
  9790. /* readonly */
  9791. Array<AttributeInfo> attributeInfos;
  9792. Array<Variant> attributes;
  9793. /* readonly */
  9794. BoundingBox boundingBox;
  9795. bool castShadows;
  9796. /* readonly */
  9797. String category;
  9798. float drawDistance;
  9799. bool enabled;
  9800. /* readonly */
  9801. bool enabledEffective;
  9802. /* readonly */
  9803. uint id;
  9804. /* readonly */
  9805. bool inView;
  9806. uint lightMask;
  9807. float lodBias;
  9808. /* writeonly */
  9809. Material material;
  9810. Array<Material> materials;
  9811. uint maxLights;
  9812. Model model;
  9813. /* readonly */
  9814. Node node;
  9815. /* readonly */
  9816. uint numAttributes;
  9817. /* readonly */
  9818. uint numGeometries;
  9819. ObjectAnimation objectAnimation;
  9820. bool occludee;
  9821. bool occluder;
  9822. /* readonly */
  9823. int refs;
  9824. float shadowDistance;
  9825. uint shadowMask;
  9826. bool temporary;
  9827. /* readonly */
  9828. StringHash type;
  9829. /* readonly */
  9830. String typeName;
  9831. uint viewMask;
  9832. /* readonly */
  9833. int weakRefs;
  9834. /* readonly */
  9835. BoundingBox worldBoundingBox;
  9836. /* readonly */
  9837. Zone zone;
  9838. uint zoneMask;
  9839. };
  9840. class Slider
  9841. {
  9842. // Methods:
  9843. void AddChild(UIElement);
  9844. void AddTag(const String&);
  9845. void AddTags(const String&, int8 = ';');
  9846. void ApplyAttributes();
  9847. void BringToFront();
  9848. void ChangeValue(float);
  9849. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9850. void DisableLayoutUpdate();
  9851. IntVector2 ElementToScreen(const IntVector2&);
  9852. void EnableLayoutUpdate();
  9853. uint FindChild(UIElement) const;
  9854. Variant GetAttribute(const String&) const;
  9855. ValueAnimation GetAttributeAnimation(const String&) const;
  9856. float GetAttributeAnimationSpeed(const String&) const;
  9857. float GetAttributeAnimationTime(const String&) const;
  9858. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9859. Variant GetAttributeDefault(const String&) const;
  9860. UIElement GetChild(const String&, bool = false) const;
  9861. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9862. Array<UIElement> GetChildren(bool = false) const;
  9863. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9864. UIElement GetElementEventSender() const;
  9865. bool GetInterceptNetworkUpdate(const String&) const;
  9866. uint GetNumChildren(bool) const;
  9867. bool HasSubscribedToEvent(Object, const String&);
  9868. bool HasSubscribedToEvent(const String&);
  9869. bool HasTag(const String&) const;
  9870. void InsertChild(uint, UIElement);
  9871. bool IsInside(IntVector2, bool);
  9872. bool IsInsideCombined(IntVector2, bool);
  9873. bool Load(File, bool = false);
  9874. bool Load(VectorBuffer&, bool = false);
  9875. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9876. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9877. bool LoadJSON(const JSONValue&, bool = false);
  9878. bool LoadXML(File);
  9879. bool LoadXML(VectorBuffer&);
  9880. bool LoadXML(XMLFile, XMLFile);
  9881. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9882. bool LoadXML(const XMLElement&, bool = false);
  9883. void MarkNetworkUpdate() const;
  9884. void Remove();
  9885. void RemoveAllChildren();
  9886. void RemoveAllTags();
  9887. void RemoveAttributeAnimation(const String&);
  9888. void RemoveChild(UIElement, uint = 0);
  9889. void RemoveChild(uint);
  9890. void RemoveInstanceDefault();
  9891. void RemoveObjectAnimation();
  9892. bool RemoveTag(const String&);
  9893. void ResetDeepEnabled();
  9894. void ResetToDefault();
  9895. bool Save(File) const;
  9896. bool Save(VectorBuffer&) const;
  9897. bool SaveJSON(JSONValue&) const;
  9898. bool SaveXML(File, const String& = "\t");
  9899. bool SaveXML(VectorBuffer&, const String& = "\t");
  9900. bool SaveXML(XMLElement&) const;
  9901. IntVector2 ScreenToElement(const IntVector2&);
  9902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9903. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9904. void SetAnimationTime(float);
  9905. bool SetAttribute(const String&, const Variant&);
  9906. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9907. void SetAttributeAnimationSpeed(const String&, float);
  9908. void SetAttributeAnimationTime(const String&, float);
  9909. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9910. void SetDeepEnabled(bool);
  9911. void SetEnabledRecursive(bool);
  9912. void SetFixedHeight(int);
  9913. void SetFixedSize(int, int);
  9914. void SetFixedWidth(int);
  9915. void SetFullImageRect();
  9916. void SetHoverOffset(int, int);
  9917. void SetInterceptNetworkUpdate(const String&, bool);
  9918. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9919. void SetMaxAnchor(float, float);
  9920. void SetMaxSize(int, int);
  9921. void SetMinAnchor(float, float);
  9922. void SetMinSize(int, int);
  9923. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9924. void SetPivot(float, float);
  9925. void SetPosition(int, int);
  9926. void SetSize(int, int);
  9927. bool SetStyle(const String&, XMLFile = null);
  9928. bool SetStyle(const XMLElement&);
  9929. bool SetStyleAuto(XMLFile = null);
  9930. void UpdateLayout();
  9931. const Variant& GetVar(const StringHash&);
  9932. // Properties:
  9933. bool animationEnabled;
  9934. /* readonly */
  9935. Array<Variant> attributeDefaults;
  9936. /* readonly */
  9937. Array<AttributeInfo> attributeInfos;
  9938. Array<Variant> attributes;
  9939. BlendMode blendMode;
  9940. IntRect border;
  9941. bool bringToBack;
  9942. bool bringToFront;
  9943. /* readonly */
  9944. String category;
  9945. /* readonly */
  9946. IntVector2 childOffset;
  9947. /* readonly */
  9948. Array<UIElement> children;
  9949. IntRect clipBorder;
  9950. bool clipChildren;
  9951. /* writeonly */
  9952. Color color;
  9953. /* readonly */
  9954. bool colorGradient;
  9955. Array<Color> colors;
  9956. /* readonly */
  9957. IntRect combinedScreenRect;
  9958. XMLFile defaultStyle;
  9959. /* readonly */
  9960. float derivedOpacity;
  9961. /* readonly */
  9962. uint dragButtonCombo;
  9963. /* readonly */
  9964. int dragButtonCount;
  9965. uint dragDropMode;
  9966. bool editable;
  9967. bool elementEventSender;
  9968. bool enableAnchor;
  9969. bool enabled;
  9970. /* readonly */
  9971. bool enabledSelf;
  9972. /* readonly */
  9973. bool fixedHeight;
  9974. /* readonly */
  9975. bool fixedSize;
  9976. /* readonly */
  9977. bool fixedWidth;
  9978. bool focus;
  9979. FocusMode focusMode;
  9980. int height;
  9981. HorizontalAlignment horizontalAlignment;
  9982. IntVector2 hoverOffset;
  9983. /* readonly */
  9984. bool hovering;
  9985. IntRect imageBorder;
  9986. IntRect imageRect;
  9987. int indent;
  9988. int indentSpacing;
  9989. /* readonly */
  9990. int indentWidth;
  9991. bool internal;
  9992. /* readonly */
  9993. BorderImage knob;
  9994. IntRect layoutBorder;
  9995. Vector2 layoutFlexScale;
  9996. LayoutMode layoutMode;
  9997. int layoutSpacing;
  9998. Vector2 maxAnchor;
  9999. int maxHeight;
  10000. IntVector2 maxOffset;
  10001. IntVector2 maxSize;
  10002. int maxWidth;
  10003. Vector2 minAnchor;
  10004. int minHeight;
  10005. IntVector2 minOffset;
  10006. IntVector2 minSize;
  10007. int minWidth;
  10008. String name;
  10009. /* readonly */
  10010. uint numAllChildren;
  10011. /* readonly */
  10012. uint numAttributes;
  10013. /* readonly */
  10014. uint numChildren;
  10015. ObjectAnimation objectAnimation;
  10016. float opacity;
  10017. Orientation orientation;
  10018. UIElement parent;
  10019. Vector2 pivot;
  10020. IntVector2 position;
  10021. int priority;
  10022. float range;
  10023. /* readonly */
  10024. int refs;
  10025. float repeatRate;
  10026. /* readonly */
  10027. UIElement root;
  10028. /* readonly */
  10029. IntVector2 screenPosition;
  10030. bool selected;
  10031. IntVector2 size;
  10032. bool sortChildren;
  10033. String style;
  10034. /* readonly */
  10035. Array<String> tags;
  10036. bool temporary;
  10037. Texture texture;
  10038. bool tiled;
  10039. TraversalMode traversalMode;
  10040. /* readonly */
  10041. StringHash type;
  10042. /* readonly */
  10043. String typeName;
  10044. bool useDerivedOpacity;
  10045. float value;
  10046. /* readonly */
  10047. VariantMap vars;
  10048. VerticalAlignment verticalAlignment;
  10049. bool visible;
  10050. /* readonly */
  10051. bool visibleEffective;
  10052. /* readonly */
  10053. int weakRefs;
  10054. int width;
  10055. };
  10056. class SmoothedTransform
  10057. {
  10058. // Methods:
  10059. void ApplyAttributes();
  10060. void DrawDebugGeometry(DebugRenderer, bool);
  10061. Variant GetAttribute(const String&) const;
  10062. ValueAnimation GetAttributeAnimation(const String&) const;
  10063. float GetAttributeAnimationSpeed(const String&) const;
  10064. float GetAttributeAnimationTime(const String&) const;
  10065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10066. Variant GetAttributeDefault(const String&) const;
  10067. bool GetInterceptNetworkUpdate(const String&) const;
  10068. bool HasSubscribedToEvent(Object, const String&);
  10069. bool HasSubscribedToEvent(const String&);
  10070. bool Load(File, bool = false);
  10071. bool Load(VectorBuffer&, bool = false);
  10072. bool LoadJSON(const JSONValue&, bool = false);
  10073. bool LoadXML(const XMLElement&, bool = false);
  10074. void MarkNetworkUpdate() const;
  10075. void Remove();
  10076. void RemoveAttributeAnimation(const String&);
  10077. void RemoveInstanceDefault();
  10078. void RemoveObjectAnimation();
  10079. void ResetToDefault();
  10080. bool Save(File) const;
  10081. bool Save(VectorBuffer&) const;
  10082. bool SaveJSON(JSONValue&) const;
  10083. bool SaveXML(XMLElement&) const;
  10084. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10085. void SetAnimationTime(float);
  10086. bool SetAttribute(const String&, const Variant&);
  10087. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10088. void SetAttributeAnimationSpeed(const String&, float);
  10089. void SetAttributeAnimationTime(const String&, float);
  10090. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10091. void SetInterceptNetworkUpdate(const String&, bool);
  10092. void Update(float, float);
  10093. // Properties:
  10094. bool animationEnabled;
  10095. /* readonly */
  10096. Array<Variant> attributeDefaults;
  10097. /* readonly */
  10098. Array<AttributeInfo> attributeInfos;
  10099. Array<Variant> attributes;
  10100. /* readonly */
  10101. String category;
  10102. bool enabled;
  10103. /* readonly */
  10104. bool enabledEffective;
  10105. /* readonly */
  10106. uint id;
  10107. /* readonly */
  10108. bool inProgress;
  10109. /* readonly */
  10110. Node node;
  10111. /* readonly */
  10112. uint numAttributes;
  10113. ObjectAnimation objectAnimation;
  10114. /* readonly */
  10115. int refs;
  10116. Vector3 targetPosition;
  10117. Quaternion targetRotation;
  10118. Vector3 targetWorldPosition;
  10119. Quaternion targetWorldRotation;
  10120. bool temporary;
  10121. /* readonly */
  10122. StringHash type;
  10123. /* readonly */
  10124. String typeName;
  10125. /* readonly */
  10126. int weakRefs;
  10127. };
  10128. class Sound
  10129. {
  10130. // Methods:
  10131. bool HasSubscribedToEvent(Object, const String&);
  10132. bool HasSubscribedToEvent(const String&);
  10133. bool Load(File);
  10134. bool Load(VectorBuffer&);
  10135. bool Load(const String&);
  10136. bool Save(File) const;
  10137. bool Save(VectorBuffer&) const;
  10138. bool Save(const String&) const;
  10139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10140. // Properties:
  10141. /* readonly */
  10142. String category;
  10143. /* readonly */
  10144. bool compressed;
  10145. /* readonly */
  10146. float frequency;
  10147. /* readonly */
  10148. float length;
  10149. bool looped;
  10150. /* readonly */
  10151. uint memoryUse;
  10152. String name;
  10153. /* readonly */
  10154. int refs;
  10155. /* readonly */
  10156. uint sampleSize;
  10157. /* readonly */
  10158. bool sixteenBit;
  10159. /* readonly */
  10160. bool stereo;
  10161. /* readonly */
  10162. StringHash type;
  10163. /* readonly */
  10164. String typeName;
  10165. /* readonly */
  10166. uint useTimer;
  10167. /* readonly */
  10168. int weakRefs;
  10169. };
  10170. class SoundListener
  10171. {
  10172. // Methods:
  10173. void ApplyAttributes();
  10174. void DrawDebugGeometry(DebugRenderer, bool);
  10175. Variant GetAttribute(const String&) const;
  10176. ValueAnimation GetAttributeAnimation(const String&) const;
  10177. float GetAttributeAnimationSpeed(const String&) const;
  10178. float GetAttributeAnimationTime(const String&) const;
  10179. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10180. Variant GetAttributeDefault(const String&) const;
  10181. bool GetInterceptNetworkUpdate(const String&) const;
  10182. bool HasSubscribedToEvent(Object, const String&);
  10183. bool HasSubscribedToEvent(const String&);
  10184. bool Load(File, bool = false);
  10185. bool Load(VectorBuffer&, bool = false);
  10186. bool LoadJSON(const JSONValue&, bool = false);
  10187. bool LoadXML(const XMLElement&, bool = false);
  10188. void MarkNetworkUpdate() const;
  10189. void Remove();
  10190. void RemoveAttributeAnimation(const String&);
  10191. void RemoveInstanceDefault();
  10192. void RemoveObjectAnimation();
  10193. void ResetToDefault();
  10194. bool Save(File) const;
  10195. bool Save(VectorBuffer&) const;
  10196. bool SaveJSON(JSONValue&) const;
  10197. bool SaveXML(XMLElement&) const;
  10198. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10199. void SetAnimationTime(float);
  10200. bool SetAttribute(const String&, const Variant&);
  10201. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10202. void SetAttributeAnimationSpeed(const String&, float);
  10203. void SetAttributeAnimationTime(const String&, float);
  10204. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10205. void SetInterceptNetworkUpdate(const String&, bool);
  10206. // Properties:
  10207. bool animationEnabled;
  10208. /* readonly */
  10209. Array<Variant> attributeDefaults;
  10210. /* readonly */
  10211. Array<AttributeInfo> attributeInfos;
  10212. Array<Variant> attributes;
  10213. /* readonly */
  10214. String category;
  10215. bool enabled;
  10216. /* readonly */
  10217. bool enabledEffective;
  10218. /* readonly */
  10219. uint id;
  10220. /* readonly */
  10221. Node node;
  10222. /* readonly */
  10223. uint numAttributes;
  10224. ObjectAnimation objectAnimation;
  10225. /* readonly */
  10226. int refs;
  10227. bool temporary;
  10228. /* readonly */
  10229. StringHash type;
  10230. /* readonly */
  10231. String typeName;
  10232. /* readonly */
  10233. int weakRefs;
  10234. };
  10235. class SoundSource
  10236. {
  10237. // Methods:
  10238. void ApplyAttributes();
  10239. void DrawDebugGeometry(DebugRenderer, bool);
  10240. Variant GetAttribute(const String&) const;
  10241. ValueAnimation GetAttributeAnimation(const String&) const;
  10242. float GetAttributeAnimationSpeed(const String&) const;
  10243. float GetAttributeAnimationTime(const String&) const;
  10244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10245. Variant GetAttributeDefault(const String&) const;
  10246. bool GetInterceptNetworkUpdate(const String&) const;
  10247. bool HasSubscribedToEvent(Object, const String&);
  10248. bool HasSubscribedToEvent(const String&);
  10249. bool Load(File, bool = false);
  10250. bool Load(VectorBuffer&, bool = false);
  10251. bool LoadJSON(const JSONValue&, bool = false);
  10252. bool LoadXML(const XMLElement&, bool = false);
  10253. void MarkNetworkUpdate() const;
  10254. void Play(Sound);
  10255. void Play(Sound, float);
  10256. void Play(Sound, float, float);
  10257. void Play(Sound, float, float, float);
  10258. void Remove();
  10259. void RemoveAttributeAnimation(const String&);
  10260. void RemoveInstanceDefault();
  10261. void RemoveObjectAnimation();
  10262. void ResetToDefault();
  10263. bool Save(File) const;
  10264. bool Save(VectorBuffer&) const;
  10265. bool SaveJSON(JSONValue&) const;
  10266. bool SaveXML(XMLElement&) const;
  10267. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10268. void SetAnimationTime(float);
  10269. bool SetAttribute(const String&, const Variant&);
  10270. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10271. void SetAttributeAnimationSpeed(const String&, float);
  10272. void SetAttributeAnimationTime(const String&, float);
  10273. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10274. void SetInterceptNetworkUpdate(const String&, bool);
  10275. void Stop();
  10276. // Properties:
  10277. bool animationEnabled;
  10278. /* readonly */
  10279. float attenuation;
  10280. /* readonly */
  10281. Array<Variant> attributeDefaults;
  10282. /* readonly */
  10283. Array<AttributeInfo> attributeInfos;
  10284. Array<Variant> attributes;
  10285. AutoRemoveMode autoRemoveMode;
  10286. /* readonly */
  10287. String category;
  10288. bool enabled;
  10289. /* readonly */
  10290. bool enabledEffective;
  10291. float frequency;
  10292. float gain;
  10293. /* readonly */
  10294. uint id;
  10295. /* readonly */
  10296. Node node;
  10297. /* readonly */
  10298. uint numAttributes;
  10299. ObjectAnimation objectAnimation;
  10300. float panning;
  10301. /* readonly */
  10302. bool playing;
  10303. /* readonly */
  10304. int refs;
  10305. /* readonly */
  10306. Sound sound;
  10307. String soundType;
  10308. bool temporary;
  10309. /* readonly */
  10310. float timePosition;
  10311. /* readonly */
  10312. StringHash type;
  10313. /* readonly */
  10314. String typeName;
  10315. /* readonly */
  10316. int weakRefs;
  10317. };
  10318. class SoundSource3D
  10319. {
  10320. // Methods:
  10321. void ApplyAttributes();
  10322. void DrawDebugGeometry(DebugRenderer, bool);
  10323. Variant GetAttribute(const String&) const;
  10324. ValueAnimation GetAttributeAnimation(const String&) const;
  10325. float GetAttributeAnimationSpeed(const String&) const;
  10326. float GetAttributeAnimationTime(const String&) const;
  10327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10328. Variant GetAttributeDefault(const String&) const;
  10329. bool GetInterceptNetworkUpdate(const String&) const;
  10330. bool HasSubscribedToEvent(Object, const String&);
  10331. bool HasSubscribedToEvent(const String&);
  10332. bool Load(File, bool = false);
  10333. bool Load(VectorBuffer&, bool = false);
  10334. bool LoadJSON(const JSONValue&, bool = false);
  10335. bool LoadXML(const XMLElement&, bool = false);
  10336. void MarkNetworkUpdate() const;
  10337. void Play(Sound);
  10338. void Play(Sound, float);
  10339. void Play(Sound, float, float);
  10340. void Play(Sound, float, float, float);
  10341. void Remove();
  10342. void RemoveAttributeAnimation(const String&);
  10343. void RemoveInstanceDefault();
  10344. void RemoveObjectAnimation();
  10345. void ResetToDefault();
  10346. bool Save(File) const;
  10347. bool Save(VectorBuffer&) const;
  10348. bool SaveJSON(JSONValue&) const;
  10349. bool SaveXML(XMLElement&) const;
  10350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10351. void SetAngleAttenuation(float, float);
  10352. void SetAnimationTime(float);
  10353. bool SetAttribute(const String&, const Variant&);
  10354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10355. void SetAttributeAnimationSpeed(const String&, float);
  10356. void SetAttributeAnimationTime(const String&, float);
  10357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10358. void SetDistanceAttenuation(float, float, float);
  10359. void SetInterceptNetworkUpdate(const String&, bool);
  10360. void Stop();
  10361. // Properties:
  10362. bool animationEnabled;
  10363. /* readonly */
  10364. float attenuation;
  10365. /* readonly */
  10366. Array<Variant> attributeDefaults;
  10367. /* readonly */
  10368. Array<AttributeInfo> attributeInfos;
  10369. Array<Variant> attributes;
  10370. AutoRemoveMode autoRemoveMode;
  10371. /* readonly */
  10372. String category;
  10373. bool enabled;
  10374. /* readonly */
  10375. bool enabledEffective;
  10376. float farDistance;
  10377. float frequency;
  10378. float gain;
  10379. /* readonly */
  10380. uint id;
  10381. float innerAngle;
  10382. float nearDistance;
  10383. /* readonly */
  10384. Node node;
  10385. /* readonly */
  10386. uint numAttributes;
  10387. ObjectAnimation objectAnimation;
  10388. float outerAngle;
  10389. float panning;
  10390. /* readonly */
  10391. bool playing;
  10392. /* readonly */
  10393. int refs;
  10394. float rolloffFactor;
  10395. /* readonly */
  10396. Sound sound;
  10397. String soundType;
  10398. bool temporary;
  10399. /* readonly */
  10400. float timePosition;
  10401. /* readonly */
  10402. StringHash type;
  10403. /* readonly */
  10404. String typeName;
  10405. /* readonly */
  10406. int weakRefs;
  10407. };
  10408. class Sphere
  10409. {
  10410. // Methods:
  10411. void Clear();
  10412. void Define(const BoundingBox&);
  10413. void Define(const Frustum&);
  10414. void Define(const Polyhedron&);
  10415. void Define(const Sphere&);
  10416. void Define(const Vector3&, float);
  10417. bool Defined() const;
  10418. float Distance(const Vector3&) const;
  10419. Intersection IsInside(const BoundingBox&) const;
  10420. Intersection IsInside(const Sphere&) const;
  10421. Intersection IsInside(const Vector3&) const;
  10422. Intersection IsInsideFast(const BoundingBox&) const;
  10423. Intersection IsInsideFast(const Sphere&) const;
  10424. void Merge(const BoundingBox&);
  10425. void Merge(const Frustum&);
  10426. void Merge(const Sphere&);
  10427. void Merge(const Vector3&);
  10428. // Properties:
  10429. Vector3 center;
  10430. float radius;
  10431. };
  10432. class Spline
  10433. {
  10434. // Methods:
  10435. void AddKnot(const Variant&);
  10436. void AddKnot(const Variant&, uint);
  10437. void Clear();
  10438. Variant GetPoint(float);
  10439. void RemoveKnot();
  10440. void RemoveKnot(uint);
  10441. // Properties:
  10442. InterpolationMode interpolationMode;
  10443. Array<Variant> knot;
  10444. Array<Variant> knots;
  10445. };
  10446. class SplinePath
  10447. {
  10448. // Methods:
  10449. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10450. void ApplyAttributes();
  10451. void ClearControlPoints();
  10452. void DrawDebugGeometry(DebugRenderer, bool);
  10453. Variant GetAttribute(const String&) const;
  10454. ValueAnimation GetAttributeAnimation(const String&) const;
  10455. float GetAttributeAnimationSpeed(const String&) const;
  10456. float GetAttributeAnimationTime(const String&) const;
  10457. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10458. Variant GetAttributeDefault(const String&) const;
  10459. bool GetInterceptNetworkUpdate(const String&) const;
  10460. Vector3 GetPoint(float) const;
  10461. Vector3 GetPosition() const;
  10462. bool HasSubscribedToEvent(Object, const String&);
  10463. bool HasSubscribedToEvent(const String&);
  10464. bool Load(File, bool = false);
  10465. bool Load(VectorBuffer&, bool = false);
  10466. bool LoadJSON(const JSONValue&, bool = false);
  10467. bool LoadXML(const XMLElement&, bool = false);
  10468. void MarkNetworkUpdate() const;
  10469. void Move(float);
  10470. void Remove();
  10471. void RemoveAttributeAnimation(const String&);
  10472. void RemoveControlPoint(Node);
  10473. void RemoveInstanceDefault();
  10474. void RemoveObjectAnimation();
  10475. void Reset();
  10476. void ResetToDefault();
  10477. bool Save(File) const;
  10478. bool Save(VectorBuffer&) const;
  10479. bool SaveJSON(JSONValue&) const;
  10480. bool SaveXML(XMLElement&) const;
  10481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10482. void SetAnimationTime(float);
  10483. bool SetAttribute(const String&, const Variant&);
  10484. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10485. void SetAttributeAnimationSpeed(const String&, float);
  10486. void SetAttributeAnimationTime(const String&, float);
  10487. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10488. void SetInterceptNetworkUpdate(const String&, bool);
  10489. void SetPosition(float);
  10490. // Properties:
  10491. bool animationEnabled;
  10492. /* readonly */
  10493. Array<Variant> attributeDefaults;
  10494. /* readonly */
  10495. Array<AttributeInfo> attributeInfos;
  10496. Array<Variant> attributes;
  10497. /* readonly */
  10498. String category;
  10499. Node controlledNode;
  10500. bool enabled;
  10501. /* readonly */
  10502. bool enabledEffective;
  10503. /* readonly */
  10504. uint id;
  10505. InterpolationMode interpolationMode;
  10506. /* readonly */
  10507. bool isFinished;
  10508. /* readonly */
  10509. float length;
  10510. /* readonly */
  10511. Node node;
  10512. /* readonly */
  10513. uint numAttributes;
  10514. ObjectAnimation objectAnimation;
  10515. /* readonly */
  10516. int refs;
  10517. float speed;
  10518. bool temporary;
  10519. /* readonly */
  10520. StringHash type;
  10521. /* readonly */
  10522. String typeName;
  10523. /* readonly */
  10524. int weakRefs;
  10525. };
  10526. class Sprite
  10527. {
  10528. // Methods:
  10529. void AddChild(UIElement);
  10530. void AddTag(const String&);
  10531. void AddTags(const String&, int8 = ';');
  10532. void ApplyAttributes();
  10533. void BringToFront();
  10534. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10535. void DisableLayoutUpdate();
  10536. IntVector2 ElementToScreen(const IntVector2&);
  10537. void EnableLayoutUpdate();
  10538. uint FindChild(UIElement) const;
  10539. Variant GetAttribute(const String&) const;
  10540. ValueAnimation GetAttributeAnimation(const String&) const;
  10541. float GetAttributeAnimationSpeed(const String&) const;
  10542. float GetAttributeAnimationTime(const String&) const;
  10543. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10544. Variant GetAttributeDefault(const String&) const;
  10545. UIElement GetChild(const String&, bool = false) const;
  10546. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10547. Array<UIElement> GetChildren(bool = false) const;
  10548. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10549. UIElement GetElementEventSender() const;
  10550. bool GetInterceptNetworkUpdate(const String&) const;
  10551. uint GetNumChildren(bool) const;
  10552. bool HasSubscribedToEvent(Object, const String&);
  10553. bool HasSubscribedToEvent(const String&);
  10554. bool HasTag(const String&) const;
  10555. void InsertChild(uint, UIElement);
  10556. bool IsInside(IntVector2, bool);
  10557. bool IsInsideCombined(IntVector2, bool);
  10558. bool Load(File, bool = false);
  10559. bool Load(VectorBuffer&, bool = false);
  10560. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10561. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10562. bool LoadJSON(const JSONValue&, bool = false);
  10563. bool LoadXML(File);
  10564. bool LoadXML(VectorBuffer&);
  10565. bool LoadXML(XMLFile, XMLFile);
  10566. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10567. bool LoadXML(const XMLElement&, bool = false);
  10568. void MarkNetworkUpdate() const;
  10569. void Remove();
  10570. void RemoveAllChildren();
  10571. void RemoveAllTags();
  10572. void RemoveAttributeAnimation(const String&);
  10573. void RemoveChild(UIElement, uint = 0);
  10574. void RemoveChild(uint);
  10575. void RemoveInstanceDefault();
  10576. void RemoveObjectAnimation();
  10577. bool RemoveTag(const String&);
  10578. void ResetDeepEnabled();
  10579. void ResetToDefault();
  10580. bool Save(File) const;
  10581. bool Save(VectorBuffer&) const;
  10582. bool SaveJSON(JSONValue&) const;
  10583. bool SaveXML(File, const String& = "\t");
  10584. bool SaveXML(VectorBuffer&, const String& = "\t");
  10585. bool SaveXML(XMLElement&) const;
  10586. IntVector2 ScreenToElement(const IntVector2&);
  10587. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10588. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10589. void SetAnimationTime(float);
  10590. bool SetAttribute(const String&, const Variant&);
  10591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10592. void SetAttributeAnimationSpeed(const String&, float);
  10593. void SetAttributeAnimationTime(const String&, float);
  10594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10595. void SetDeepEnabled(bool);
  10596. void SetEnabledRecursive(bool);
  10597. void SetFixedHeight(int);
  10598. void SetFixedSize(int, int);
  10599. void SetFixedWidth(int);
  10600. void SetFullImageRect();
  10601. void SetHotSpot(int, int);
  10602. void SetInterceptNetworkUpdate(const String&, bool);
  10603. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10604. void SetMaxAnchor(float, float);
  10605. void SetMaxSize(int, int);
  10606. void SetMinAnchor(float, float);
  10607. void SetMinSize(int, int);
  10608. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10609. void SetPivot(float, float);
  10610. void SetPosition(float, float);
  10611. void SetScale(float);
  10612. void SetScale(float, float);
  10613. void SetSize(int, int);
  10614. bool SetStyle(const String&, XMLFile = null);
  10615. bool SetStyle(const XMLElement&);
  10616. bool SetStyleAuto(XMLFile = null);
  10617. void UpdateLayout();
  10618. const Variant& GetVar(const StringHash&);
  10619. // Properties:
  10620. bool animationEnabled;
  10621. /* readonly */
  10622. Array<Variant> attributeDefaults;
  10623. /* readonly */
  10624. Array<AttributeInfo> attributeInfos;
  10625. Array<Variant> attributes;
  10626. BlendMode blendMode;
  10627. bool bringToBack;
  10628. bool bringToFront;
  10629. /* readonly */
  10630. String category;
  10631. /* readonly */
  10632. IntVector2 childOffset;
  10633. /* readonly */
  10634. Array<UIElement> children;
  10635. IntRect clipBorder;
  10636. bool clipChildren;
  10637. /* writeonly */
  10638. Color color;
  10639. /* readonly */
  10640. bool colorGradient;
  10641. Array<Color> colors;
  10642. /* readonly */
  10643. IntRect combinedScreenRect;
  10644. XMLFile defaultStyle;
  10645. /* readonly */
  10646. float derivedOpacity;
  10647. /* readonly */
  10648. uint dragButtonCombo;
  10649. /* readonly */
  10650. int dragButtonCount;
  10651. uint dragDropMode;
  10652. bool editable;
  10653. bool elementEventSender;
  10654. bool enableAnchor;
  10655. bool enabled;
  10656. /* readonly */
  10657. bool enabledSelf;
  10658. /* readonly */
  10659. bool fixedHeight;
  10660. /* readonly */
  10661. bool fixedSize;
  10662. /* readonly */
  10663. bool fixedWidth;
  10664. bool focus;
  10665. FocusMode focusMode;
  10666. int height;
  10667. HorizontalAlignment horizontalAlignment;
  10668. IntVector2 hotSpot;
  10669. /* readonly */
  10670. bool hovering;
  10671. IntRect imageRect;
  10672. int indent;
  10673. int indentSpacing;
  10674. /* readonly */
  10675. int indentWidth;
  10676. bool internal;
  10677. IntRect layoutBorder;
  10678. Vector2 layoutFlexScale;
  10679. LayoutMode layoutMode;
  10680. int layoutSpacing;
  10681. Vector2 maxAnchor;
  10682. int maxHeight;
  10683. IntVector2 maxOffset;
  10684. IntVector2 maxSize;
  10685. int maxWidth;
  10686. Vector2 minAnchor;
  10687. int minHeight;
  10688. IntVector2 minOffset;
  10689. IntVector2 minSize;
  10690. int minWidth;
  10691. String name;
  10692. /* readonly */
  10693. uint numAllChildren;
  10694. /* readonly */
  10695. uint numAttributes;
  10696. /* readonly */
  10697. uint numChildren;
  10698. ObjectAnimation objectAnimation;
  10699. float opacity;
  10700. UIElement parent;
  10701. Vector2 pivot;
  10702. Vector2 position;
  10703. int priority;
  10704. /* readonly */
  10705. int refs;
  10706. /* readonly */
  10707. UIElement root;
  10708. float rotation;
  10709. Vector2 scale;
  10710. /* readonly */
  10711. IntVector2 screenPosition;
  10712. bool selected;
  10713. IntVector2 size;
  10714. bool sortChildren;
  10715. String style;
  10716. /* readonly */
  10717. Array<String> tags;
  10718. bool temporary;
  10719. Texture texture;
  10720. TraversalMode traversalMode;
  10721. /* readonly */
  10722. StringHash type;
  10723. /* readonly */
  10724. String typeName;
  10725. bool useDerivedOpacity;
  10726. /* readonly */
  10727. VariantMap vars;
  10728. VerticalAlignment verticalAlignment;
  10729. bool visible;
  10730. /* readonly */
  10731. bool visibleEffective;
  10732. /* readonly */
  10733. int weakRefs;
  10734. int width;
  10735. };
  10736. class Sprite2D
  10737. {
  10738. // Methods:
  10739. bool HasSubscribedToEvent(Object, const String&);
  10740. bool HasSubscribedToEvent(const String&);
  10741. bool Load(File);
  10742. bool Load(VectorBuffer&);
  10743. bool Load(const String&);
  10744. bool Save(File) const;
  10745. bool Save(VectorBuffer&) const;
  10746. bool Save(const String&) const;
  10747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10748. // Properties:
  10749. /* readonly */
  10750. String category;
  10751. Vector2 hotSpot;
  10752. /* readonly */
  10753. uint memoryUse;
  10754. String name;
  10755. IntVector2 offset;
  10756. IntRect rectangle;
  10757. /* readonly */
  10758. int refs;
  10759. Texture2D texture;
  10760. float textureEdgeOffset;
  10761. /* readonly */
  10762. StringHash type;
  10763. /* readonly */
  10764. String typeName;
  10765. /* readonly */
  10766. uint useTimer;
  10767. /* readonly */
  10768. int weakRefs;
  10769. };
  10770. class SpriteSheet2D
  10771. {
  10772. // Methods:
  10773. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10774. Sprite2D GetSprite(const String&);
  10775. bool HasSubscribedToEvent(Object, const String&);
  10776. bool HasSubscribedToEvent(const String&);
  10777. bool Load(File);
  10778. bool Load(VectorBuffer&);
  10779. bool Load(const String&);
  10780. bool Save(File) const;
  10781. bool Save(VectorBuffer&) const;
  10782. bool Save(const String&) const;
  10783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10784. // Properties:
  10785. /* readonly */
  10786. String category;
  10787. /* readonly */
  10788. uint memoryUse;
  10789. String name;
  10790. /* readonly */
  10791. int refs;
  10792. Texture2D texture;
  10793. /* readonly */
  10794. StringHash type;
  10795. /* readonly */
  10796. String typeName;
  10797. /* readonly */
  10798. uint useTimer;
  10799. /* readonly */
  10800. int weakRefs;
  10801. };
  10802. class StaticModel
  10803. {
  10804. // Methods:
  10805. void ApplyAttributes();
  10806. void ApplyMaterialList(const String& = String ( ));
  10807. void DrawDebugGeometry(DebugRenderer, bool);
  10808. Variant GetAttribute(const String&) const;
  10809. ValueAnimation GetAttributeAnimation(const String&) const;
  10810. float GetAttributeAnimationSpeed(const String&) const;
  10811. float GetAttributeAnimationTime(const String&) const;
  10812. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10813. Variant GetAttributeDefault(const String&) const;
  10814. bool GetInterceptNetworkUpdate(const String&) const;
  10815. bool HasSubscribedToEvent(Object, const String&);
  10816. bool HasSubscribedToEvent(const String&);
  10817. bool IsInView(Camera) const;
  10818. bool IsInside(const Vector3&) const;
  10819. bool IsInsideLocal(const Vector3&) const;
  10820. bool Load(File, bool = false);
  10821. bool Load(VectorBuffer&, bool = false);
  10822. bool LoadJSON(const JSONValue&, bool = false);
  10823. bool LoadXML(const XMLElement&, bool = false);
  10824. void MarkNetworkUpdate() const;
  10825. void Remove();
  10826. void RemoveAttributeAnimation(const String&);
  10827. void RemoveInstanceDefault();
  10828. void RemoveObjectAnimation();
  10829. void ResetToDefault();
  10830. bool Save(File) const;
  10831. bool Save(VectorBuffer&) const;
  10832. bool SaveJSON(JSONValue&) const;
  10833. bool SaveXML(XMLElement&) const;
  10834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10835. void SetAnimationTime(float);
  10836. bool SetAttribute(const String&, const Variant&);
  10837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10838. void SetAttributeAnimationSpeed(const String&, float);
  10839. void SetAttributeAnimationTime(const String&, float);
  10840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10841. void SetInterceptNetworkUpdate(const String&, bool);
  10842. // Properties:
  10843. bool animationEnabled;
  10844. /* readonly */
  10845. Array<Variant> attributeDefaults;
  10846. /* readonly */
  10847. Array<AttributeInfo> attributeInfos;
  10848. Array<Variant> attributes;
  10849. /* readonly */
  10850. BoundingBox boundingBox;
  10851. bool castShadows;
  10852. /* readonly */
  10853. String category;
  10854. float drawDistance;
  10855. bool enabled;
  10856. /* readonly */
  10857. bool enabledEffective;
  10858. /* readonly */
  10859. uint id;
  10860. /* readonly */
  10861. bool inView;
  10862. uint lightMask;
  10863. float lodBias;
  10864. /* writeonly */
  10865. Material material;
  10866. Array<Material> materials;
  10867. uint maxLights;
  10868. Model model;
  10869. /* readonly */
  10870. Node node;
  10871. /* readonly */
  10872. uint numAttributes;
  10873. /* readonly */
  10874. uint numGeometries;
  10875. ObjectAnimation objectAnimation;
  10876. bool occludee;
  10877. bool occluder;
  10878. uint occlusionLodLevel;
  10879. /* readonly */
  10880. int refs;
  10881. float shadowDistance;
  10882. uint shadowMask;
  10883. bool temporary;
  10884. /* readonly */
  10885. StringHash type;
  10886. /* readonly */
  10887. String typeName;
  10888. uint viewMask;
  10889. /* readonly */
  10890. int weakRefs;
  10891. /* readonly */
  10892. BoundingBox worldBoundingBox;
  10893. uint zoneMask;
  10894. };
  10895. class StaticModelGroup
  10896. {
  10897. // Methods:
  10898. void AddInstanceNode(Node);
  10899. void ApplyAttributes();
  10900. void ApplyMaterialList(const String& = String ( ));
  10901. void DrawDebugGeometry(DebugRenderer, bool);
  10902. Variant GetAttribute(const String&) const;
  10903. ValueAnimation GetAttributeAnimation(const String&) const;
  10904. float GetAttributeAnimationSpeed(const String&) const;
  10905. float GetAttributeAnimationTime(const String&) const;
  10906. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10907. Variant GetAttributeDefault(const String&) const;
  10908. bool GetInterceptNetworkUpdate(const String&) const;
  10909. bool HasSubscribedToEvent(Object, const String&);
  10910. bool HasSubscribedToEvent(const String&);
  10911. bool IsInView(Camera) const;
  10912. bool Load(File, bool = false);
  10913. bool Load(VectorBuffer&, bool = false);
  10914. bool LoadJSON(const JSONValue&, bool = false);
  10915. bool LoadXML(const XMLElement&, bool = false);
  10916. void MarkNetworkUpdate() const;
  10917. void Remove();
  10918. void RemoveAllInstanceNodes();
  10919. void RemoveAttributeAnimation(const String&);
  10920. void RemoveInstanceDefault();
  10921. void RemoveInstanceNode(Node);
  10922. void RemoveObjectAnimation();
  10923. void ResetToDefault();
  10924. bool Save(File) const;
  10925. bool Save(VectorBuffer&) const;
  10926. bool SaveJSON(JSONValue&) const;
  10927. bool SaveXML(XMLElement&) const;
  10928. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10929. void SetAnimationTime(float);
  10930. bool SetAttribute(const String&, const Variant&);
  10931. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10932. void SetAttributeAnimationSpeed(const String&, float);
  10933. void SetAttributeAnimationTime(const String&, float);
  10934. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10935. void SetInterceptNetworkUpdate(const String&, bool);
  10936. // Properties:
  10937. bool animationEnabled;
  10938. /* readonly */
  10939. Array<Variant> attributeDefaults;
  10940. /* readonly */
  10941. Array<AttributeInfo> attributeInfos;
  10942. Array<Variant> attributes;
  10943. /* readonly */
  10944. BoundingBox boundingBox;
  10945. bool castShadows;
  10946. /* readonly */
  10947. String category;
  10948. float drawDistance;
  10949. bool enabled;
  10950. /* readonly */
  10951. bool enabledEffective;
  10952. /* readonly */
  10953. uint id;
  10954. /* readonly */
  10955. bool inView;
  10956. /* readonly */
  10957. Array<Node> instanceNodes;
  10958. uint lightMask;
  10959. float lodBias;
  10960. /* writeonly */
  10961. Material material;
  10962. Array<Material> materials;
  10963. uint maxLights;
  10964. Model model;
  10965. /* readonly */
  10966. Node node;
  10967. /* readonly */
  10968. uint numAttributes;
  10969. /* readonly */
  10970. uint numGeometries;
  10971. /* readonly */
  10972. uint numInstanceNodes;
  10973. ObjectAnimation objectAnimation;
  10974. bool occludee;
  10975. bool occluder;
  10976. uint occlusionLodLevel;
  10977. /* readonly */
  10978. int refs;
  10979. float shadowDistance;
  10980. uint shadowMask;
  10981. bool temporary;
  10982. /* readonly */
  10983. StringHash type;
  10984. /* readonly */
  10985. String typeName;
  10986. uint viewMask;
  10987. /* readonly */
  10988. int weakRefs;
  10989. /* readonly */
  10990. BoundingBox worldBoundingBox;
  10991. /* readonly */
  10992. Zone zone;
  10993. uint zoneMask;
  10994. };
  10995. class StaticSprite2D
  10996. {
  10997. // Methods:
  10998. void ApplyAttributes();
  10999. void DrawDebugGeometry(DebugRenderer, bool);
  11000. Variant GetAttribute(const String&) const;
  11001. ValueAnimation GetAttributeAnimation(const String&) const;
  11002. float GetAttributeAnimationSpeed(const String&) const;
  11003. float GetAttributeAnimationTime(const String&) const;
  11004. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11005. Variant GetAttributeDefault(const String&) const;
  11006. bool GetInterceptNetworkUpdate(const String&) const;
  11007. bool HasSubscribedToEvent(Object, const String&);
  11008. bool HasSubscribedToEvent(const String&);
  11009. bool IsInView(Camera) const;
  11010. bool Load(File, bool = false);
  11011. bool Load(VectorBuffer&, bool = false);
  11012. bool LoadJSON(const JSONValue&, bool = false);
  11013. bool LoadXML(const XMLElement&, bool = false);
  11014. void MarkNetworkUpdate() const;
  11015. void Remove();
  11016. void RemoveAttributeAnimation(const String&);
  11017. void RemoveInstanceDefault();
  11018. void RemoveObjectAnimation();
  11019. void ResetToDefault();
  11020. bool Save(File) const;
  11021. bool Save(VectorBuffer&) const;
  11022. bool SaveJSON(JSONValue&) const;
  11023. bool SaveXML(XMLElement&) const;
  11024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11025. void SetAnimationTime(float);
  11026. bool SetAttribute(const String&, const Variant&);
  11027. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11028. void SetAttributeAnimationSpeed(const String&, float);
  11029. void SetAttributeAnimationTime(const String&, float);
  11030. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11031. void SetFlip(bool, bool);
  11032. void SetInterceptNetworkUpdate(const String&, bool);
  11033. // Properties:
  11034. float alpha;
  11035. bool animationEnabled;
  11036. /* readonly */
  11037. Array<Variant> attributeDefaults;
  11038. /* readonly */
  11039. Array<AttributeInfo> attributeInfos;
  11040. Array<Variant> attributes;
  11041. BlendMode blendMode;
  11042. /* readonly */
  11043. BoundingBox boundingBox;
  11044. bool castShadows;
  11045. /* readonly */
  11046. String category;
  11047. Color color;
  11048. Material customMaterial;
  11049. float drawDistance;
  11050. Rect drawRect;
  11051. bool enabled;
  11052. /* readonly */
  11053. bool enabledEffective;
  11054. bool flipX;
  11055. bool flipY;
  11056. Vector2 hotSpot;
  11057. /* readonly */
  11058. uint id;
  11059. /* readonly */
  11060. bool inView;
  11061. int layer;
  11062. uint lightMask;
  11063. float lodBias;
  11064. uint maxLights;
  11065. /* readonly */
  11066. Node node;
  11067. /* readonly */
  11068. uint numAttributes;
  11069. ObjectAnimation objectAnimation;
  11070. bool occludee;
  11071. bool occluder;
  11072. int orderInLayer;
  11073. /* readonly */
  11074. int refs;
  11075. float shadowDistance;
  11076. uint shadowMask;
  11077. Sprite2D sprite;
  11078. bool temporary;
  11079. Rect textureRect;
  11080. /* readonly */
  11081. StringHash type;
  11082. /* readonly */
  11083. String typeName;
  11084. bool useDrawRect;
  11085. bool useHotSpot;
  11086. bool useTextureRect;
  11087. uint viewMask;
  11088. /* readonly */
  11089. int weakRefs;
  11090. /* readonly */
  11091. BoundingBox worldBoundingBox;
  11092. uint zoneMask;
  11093. };
  11094. class String
  11095. {
  11096. // Methods:
  11097. void AppendUTF8(uint);
  11098. uint AtUTF8(uint) const;
  11099. uint ByteOffsetUTF8(uint) const;
  11100. void Clear();
  11101. int Compare(const String&, bool = true) const;
  11102. bool Contains(const String&, bool = true) const;
  11103. bool Contains(uint8, bool = true) const;
  11104. bool EndsWith(const String&, bool = true) const;
  11105. uint Find(const String&, uint = 0, bool = true) const;
  11106. uint Find(uint8, uint = 0, bool = true) const;
  11107. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11108. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11109. void Join(Array<String>&, const String&);
  11110. uint NextUTF8Char(uint&) const;
  11111. void Replace(const String&, const String&, bool = true);
  11112. void Replace(uint8, uint8, bool = true);
  11113. void ReplaceUTF8(uint, uint);
  11114. String Replaced(const String&, const String&, bool = true) const;
  11115. String Replaced(uint8, uint8, bool = true) const;
  11116. void Resize(uint);
  11117. void SetUTF8FromLatin1(const String&);
  11118. Array<String> Split(uint8, bool = false) const;
  11119. bool StartsWith(const String&, bool = true) const;
  11120. String Substring(uint) const;
  11121. String Substring(uint, uint) const;
  11122. String SubstringUTF8(uint) const;
  11123. String SubstringUTF8(uint, uint) const;
  11124. bool ToBool() const;
  11125. Color ToColor() const;
  11126. double ToDouble() const;
  11127. float ToFloat() const;
  11128. int ToInt(int = 10) const;
  11129. IntRect ToIntRect() const;
  11130. IntVector2 ToIntVector2() const;
  11131. IntVector3 ToIntVector3() const;
  11132. String ToLower() const;
  11133. Matrix3 ToMatrix3() const;
  11134. Matrix3x4 ToMatrix3x4() const;
  11135. Matrix4 ToMatrix4() const;
  11136. Quaternion ToQuaternion() const;
  11137. uint ToUInt(int = 10) const;
  11138. String ToUpper() const;
  11139. Vector2 ToVector2() const;
  11140. Vector3 ToVector3() const;
  11141. Vector4 ToVector4(bool = false) const;
  11142. Variant ToVectorVariant() const;
  11143. String Trimmed() const;
  11144. // Properties:
  11145. /* readonly */
  11146. bool empty;
  11147. /* readonly */
  11148. uint length;
  11149. /* readonly */
  11150. uint utf8Length;
  11151. };
  11152. class StringHash
  11153. {
  11154. // Methods:
  11155. String ToString() const;
  11156. // Properties:
  11157. /* readonly */
  11158. uint value;
  11159. };
  11160. class Technique
  11161. {
  11162. // Methods:
  11163. Technique Clone(const String& = String ( )) const;
  11164. Pass CreatePass(const String&);
  11165. Pass GetPass(const String&);
  11166. Pass GetSupportedPass(const String&);
  11167. bool HasPass(const String&) const;
  11168. bool HasSubscribedToEvent(Object, const String&);
  11169. bool HasSubscribedToEvent(const String&);
  11170. bool Load(File);
  11171. bool Load(VectorBuffer&);
  11172. bool Load(const String&);
  11173. void RemovePass(const String&);
  11174. bool Save(File) const;
  11175. bool Save(VectorBuffer&) const;
  11176. bool Save(const String&) const;
  11177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11178. // Properties:
  11179. /* readonly */
  11180. String category;
  11181. bool desktop;
  11182. /* readonly */
  11183. uint memoryUse;
  11184. String name;
  11185. /* readonly */
  11186. uint numPasses;
  11187. /* readonly */
  11188. Array<String> passNames;
  11189. /* readonly */
  11190. Array<Pass> passes;
  11191. /* readonly */
  11192. int refs;
  11193. /* readonly */
  11194. bool supported;
  11195. /* readonly */
  11196. StringHash type;
  11197. /* readonly */
  11198. String typeName;
  11199. /* readonly */
  11200. uint useTimer;
  11201. /* readonly */
  11202. int weakRefs;
  11203. };
  11204. class TechniqueEntry
  11205. {
  11206. // Properties:
  11207. float lodDistance;
  11208. int qualityLevel;
  11209. Technique technique;
  11210. };
  11211. class Terrain
  11212. {
  11213. // Methods:
  11214. void ApplyAttributes();
  11215. void ApplyHeightMap();
  11216. void DrawDebugGeometry(DebugRenderer, bool);
  11217. Variant GetAttribute(const String&) const;
  11218. ValueAnimation GetAttributeAnimation(const String&) const;
  11219. float GetAttributeAnimationSpeed(const String&) const;
  11220. float GetAttributeAnimationTime(const String&) const;
  11221. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11222. Variant GetAttributeDefault(const String&) const;
  11223. float GetHeight(const Vector3&) const;
  11224. bool GetInterceptNetworkUpdate(const String&) const;
  11225. TerrainPatch GetNeighborPatch(int, int) const;
  11226. Vector3 GetNormal(const Vector3&) const;
  11227. TerrainPatch GetPatch(int, int) const;
  11228. bool HasSubscribedToEvent(Object, const String&);
  11229. bool HasSubscribedToEvent(const String&);
  11230. bool Load(File, bool = false);
  11231. bool Load(VectorBuffer&, bool = false);
  11232. bool LoadJSON(const JSONValue&, bool = false);
  11233. bool LoadXML(const XMLElement&, bool = false);
  11234. void MarkNetworkUpdate() const;
  11235. void Remove();
  11236. void RemoveAttributeAnimation(const String&);
  11237. void RemoveInstanceDefault();
  11238. void RemoveObjectAnimation();
  11239. void ResetToDefault();
  11240. bool Save(File) const;
  11241. bool Save(VectorBuffer&) const;
  11242. bool SaveJSON(JSONValue&) const;
  11243. bool SaveXML(XMLElement&) const;
  11244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11245. void SetAnimationTime(float);
  11246. bool SetAttribute(const String&, const Variant&);
  11247. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11248. void SetAttributeAnimationSpeed(const String&, float);
  11249. void SetAttributeAnimationTime(const String&, float);
  11250. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11251. void SetInterceptNetworkUpdate(const String&, bool);
  11252. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11253. IntVector2 WorldToHeightMap(const Vector3&) const;
  11254. // Properties:
  11255. bool animationEnabled;
  11256. /* readonly */
  11257. Array<Variant> attributeDefaults;
  11258. /* readonly */
  11259. Array<AttributeInfo> attributeInfos;
  11260. Array<Variant> attributes;
  11261. bool castShadows;
  11262. /* readonly */
  11263. String category;
  11264. float drawDistance;
  11265. Terrain eastNeighbor;
  11266. bool enabled;
  11267. /* readonly */
  11268. bool enabledEffective;
  11269. Image heightMap;
  11270. /* readonly */
  11271. uint id;
  11272. uint lightMask;
  11273. float lodBias;
  11274. Material material;
  11275. uint maxLights;
  11276. uint maxLodLevels;
  11277. /* readonly */
  11278. Node node;
  11279. Terrain northNeighbor;
  11280. /* readonly */
  11281. uint numAttributes;
  11282. /* readonly */
  11283. IntVector2 numPatches;
  11284. /* readonly */
  11285. IntVector2 numVertices;
  11286. ObjectAnimation objectAnimation;
  11287. bool occludee;
  11288. bool occluder;
  11289. uint occlusionLodLevel;
  11290. int patchSize;
  11291. /* readonly */
  11292. Array<TerrainPatch> patches;
  11293. /* readonly */
  11294. int refs;
  11295. float shadowDistance;
  11296. uint shadowMask;
  11297. bool smoothing;
  11298. Terrain southNeighbor;
  11299. Vector3 spacing;
  11300. bool temporary;
  11301. /* readonly */
  11302. StringHash type;
  11303. /* readonly */
  11304. String typeName;
  11305. uint viewMask;
  11306. /* readonly */
  11307. int weakRefs;
  11308. Terrain westNeighbor;
  11309. uint zoneMask;
  11310. };
  11311. class TerrainPatch
  11312. {
  11313. // Methods:
  11314. void ApplyAttributes();
  11315. void DrawDebugGeometry(DebugRenderer, bool);
  11316. Variant GetAttribute(const String&) const;
  11317. ValueAnimation GetAttributeAnimation(const String&) const;
  11318. float GetAttributeAnimationSpeed(const String&) const;
  11319. float GetAttributeAnimationTime(const String&) const;
  11320. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11321. Variant GetAttributeDefault(const String&) const;
  11322. bool GetInterceptNetworkUpdate(const String&) const;
  11323. bool HasSubscribedToEvent(Object, const String&);
  11324. bool HasSubscribedToEvent(const String&);
  11325. bool IsInView(Camera) const;
  11326. bool Load(File, bool = false);
  11327. bool Load(VectorBuffer&, bool = false);
  11328. bool LoadJSON(const JSONValue&, bool = false);
  11329. bool LoadXML(const XMLElement&, bool = false);
  11330. void MarkNetworkUpdate() const;
  11331. void Remove();
  11332. void RemoveAttributeAnimation(const String&);
  11333. void RemoveInstanceDefault();
  11334. void RemoveObjectAnimation();
  11335. void ResetToDefault();
  11336. bool Save(File) const;
  11337. bool Save(VectorBuffer&) const;
  11338. bool SaveJSON(JSONValue&) const;
  11339. bool SaveXML(XMLElement&) const;
  11340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11341. void SetAnimationTime(float);
  11342. bool SetAttribute(const String&, const Variant&);
  11343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11344. void SetAttributeAnimationSpeed(const String&, float);
  11345. void SetAttributeAnimationTime(const String&, float);
  11346. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11347. void SetInterceptNetworkUpdate(const String&, bool);
  11348. // Properties:
  11349. bool animationEnabled;
  11350. /* readonly */
  11351. Array<Variant> attributeDefaults;
  11352. /* readonly */
  11353. Array<AttributeInfo> attributeInfos;
  11354. Array<Variant> attributes;
  11355. /* readonly */
  11356. BoundingBox boundingBox;
  11357. bool castShadows;
  11358. /* readonly */
  11359. String category;
  11360. float drawDistance;
  11361. bool enabled;
  11362. /* readonly */
  11363. bool enabledEffective;
  11364. /* readonly */
  11365. uint id;
  11366. /* readonly */
  11367. bool inView;
  11368. uint lightMask;
  11369. float lodBias;
  11370. uint maxLights;
  11371. /* readonly */
  11372. Node node;
  11373. /* readonly */
  11374. uint numAttributes;
  11375. ObjectAnimation objectAnimation;
  11376. bool occludee;
  11377. bool occluder;
  11378. /* readonly */
  11379. int refs;
  11380. float shadowDistance;
  11381. uint shadowMask;
  11382. bool temporary;
  11383. /* readonly */
  11384. StringHash type;
  11385. /* readonly */
  11386. String typeName;
  11387. uint viewMask;
  11388. /* readonly */
  11389. int weakRefs;
  11390. /* readonly */
  11391. BoundingBox worldBoundingBox;
  11392. uint zoneMask;
  11393. };
  11394. class Text
  11395. {
  11396. // Methods:
  11397. void AddChild(UIElement);
  11398. void AddTag(const String&);
  11399. void AddTags(const String&, int8 = ';');
  11400. void ApplyAttributes();
  11401. void BringToFront();
  11402. void ClearSelection();
  11403. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11404. void DisableLayoutUpdate();
  11405. IntVector2 ElementToScreen(const IntVector2&);
  11406. void EnableLayoutUpdate();
  11407. uint FindChild(UIElement) const;
  11408. Variant GetAttribute(const String&) const;
  11409. ValueAnimation GetAttributeAnimation(const String&) const;
  11410. float GetAttributeAnimationSpeed(const String&) const;
  11411. float GetAttributeAnimationTime(const String&) const;
  11412. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11413. Variant GetAttributeDefault(const String&) const;
  11414. UIElement GetChild(const String&, bool = false) const;
  11415. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11416. Array<UIElement> GetChildren(bool = false) const;
  11417. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11418. UIElement GetElementEventSender() const;
  11419. bool GetInterceptNetworkUpdate(const String&) const;
  11420. uint GetNumChildren(bool) const;
  11421. bool HasSubscribedToEvent(Object, const String&);
  11422. bool HasSubscribedToEvent(const String&);
  11423. bool HasTag(const String&) const;
  11424. void InsertChild(uint, UIElement);
  11425. bool IsInside(IntVector2, bool);
  11426. bool IsInsideCombined(IntVector2, bool);
  11427. bool Load(File, bool = false);
  11428. bool Load(VectorBuffer&, bool = false);
  11429. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11430. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11431. bool LoadJSON(const JSONValue&, bool = false);
  11432. bool LoadXML(File);
  11433. bool LoadXML(VectorBuffer&);
  11434. bool LoadXML(XMLFile, XMLFile);
  11435. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11436. bool LoadXML(const XMLElement&, bool = false);
  11437. void MarkNetworkUpdate() const;
  11438. void Remove();
  11439. void RemoveAllChildren();
  11440. void RemoveAllTags();
  11441. void RemoveAttributeAnimation(const String&);
  11442. void RemoveChild(UIElement, uint = 0);
  11443. void RemoveChild(uint);
  11444. void RemoveInstanceDefault();
  11445. void RemoveObjectAnimation();
  11446. bool RemoveTag(const String&);
  11447. void ResetDeepEnabled();
  11448. void ResetToDefault();
  11449. bool Save(File) const;
  11450. bool Save(VectorBuffer&) const;
  11451. bool SaveJSON(JSONValue&) const;
  11452. bool SaveXML(File, const String& = "\t");
  11453. bool SaveXML(VectorBuffer&, const String& = "\t");
  11454. bool SaveXML(XMLElement&) const;
  11455. IntVector2 ScreenToElement(const IntVector2&);
  11456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11457. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11458. void SetAnimationTime(float);
  11459. bool SetAttribute(const String&, const Variant&);
  11460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11461. void SetAttributeAnimationSpeed(const String&, float);
  11462. void SetAttributeAnimationTime(const String&, float);
  11463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11464. void SetDeepEnabled(bool);
  11465. void SetEnabledRecursive(bool);
  11466. void SetFixedHeight(int);
  11467. void SetFixedSize(int, int);
  11468. void SetFixedWidth(int);
  11469. bool SetFont(Font, int);
  11470. bool SetFont(const String&, int);
  11471. void SetInterceptNetworkUpdate(const String&, bool);
  11472. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11473. void SetMaxAnchor(float, float);
  11474. void SetMaxSize(int, int);
  11475. void SetMinAnchor(float, float);
  11476. void SetMinSize(int, int);
  11477. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11478. void SetPivot(float, float);
  11479. void SetPosition(int, int);
  11480. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11481. void SetSize(int, int);
  11482. bool SetStyle(const String&, XMLFile = null);
  11483. bool SetStyle(const XMLElement&);
  11484. bool SetStyleAuto(XMLFile = null);
  11485. void UpdateLayout();
  11486. const Variant& GetVar(const StringHash&);
  11487. // Properties:
  11488. bool animationEnabled;
  11489. /* readonly */
  11490. Array<Variant> attributeDefaults;
  11491. /* readonly */
  11492. Array<AttributeInfo> attributeInfos;
  11493. Array<Variant> attributes;
  11494. bool autoLocalizable;
  11495. bool bringToBack;
  11496. bool bringToFront;
  11497. /* readonly */
  11498. String category;
  11499. /* readonly */
  11500. Array<IntVector2> charPositions;
  11501. /* readonly */
  11502. Array<IntVector2> charSizes;
  11503. /* readonly */
  11504. IntVector2 childOffset;
  11505. /* readonly */
  11506. Array<UIElement> children;
  11507. IntRect clipBorder;
  11508. bool clipChildren;
  11509. /* writeonly */
  11510. Color color;
  11511. /* readonly */
  11512. bool colorGradient;
  11513. Array<Color> colors;
  11514. /* readonly */
  11515. IntRect combinedScreenRect;
  11516. XMLFile defaultStyle;
  11517. /* readonly */
  11518. float derivedOpacity;
  11519. /* readonly */
  11520. uint dragButtonCombo;
  11521. /* readonly */
  11522. int dragButtonCount;
  11523. uint dragDropMode;
  11524. bool editable;
  11525. Color effectColor;
  11526. bool effectRoundStroke;
  11527. IntVector2 effectShadowOffset;
  11528. int effectStrokeThickness;
  11529. bool elementEventSender;
  11530. bool enableAnchor;
  11531. bool enabled;
  11532. /* readonly */
  11533. bool enabledSelf;
  11534. /* readonly */
  11535. bool fixedHeight;
  11536. /* readonly */
  11537. bool fixedSize;
  11538. /* readonly */
  11539. bool fixedWidth;
  11540. bool focus;
  11541. FocusMode focusMode;
  11542. /* readonly */
  11543. Font font;
  11544. int fontSize;
  11545. int height;
  11546. HorizontalAlignment horizontalAlignment;
  11547. Color hoverColor;
  11548. /* readonly */
  11549. bool hovering;
  11550. int indent;
  11551. int indentSpacing;
  11552. /* readonly */
  11553. int indentWidth;
  11554. bool internal;
  11555. IntRect layoutBorder;
  11556. Vector2 layoutFlexScale;
  11557. LayoutMode layoutMode;
  11558. int layoutSpacing;
  11559. Vector2 maxAnchor;
  11560. int maxHeight;
  11561. IntVector2 maxOffset;
  11562. IntVector2 maxSize;
  11563. int maxWidth;
  11564. Vector2 minAnchor;
  11565. int minHeight;
  11566. IntVector2 minOffset;
  11567. IntVector2 minSize;
  11568. int minWidth;
  11569. String name;
  11570. /* readonly */
  11571. uint numAllChildren;
  11572. /* readonly */
  11573. uint numAttributes;
  11574. /* readonly */
  11575. uint numChars;
  11576. /* readonly */
  11577. uint numChildren;
  11578. /* readonly */
  11579. uint numRows;
  11580. ObjectAnimation objectAnimation;
  11581. float opacity;
  11582. UIElement parent;
  11583. Vector2 pivot;
  11584. IntVector2 position;
  11585. int priority;
  11586. /* readonly */
  11587. int refs;
  11588. /* readonly */
  11589. UIElement root;
  11590. /* readonly */
  11591. int rowHeight;
  11592. float rowSpacing;
  11593. /* readonly */
  11594. Array<int> rowWidths;
  11595. /* readonly */
  11596. IntVector2 screenPosition;
  11597. bool selected;
  11598. Color selectionColor;
  11599. /* readonly */
  11600. uint selectionLength;
  11601. /* readonly */
  11602. uint selectionStart;
  11603. IntVector2 size;
  11604. bool sortChildren;
  11605. String style;
  11606. /* readonly */
  11607. Array<String> tags;
  11608. bool temporary;
  11609. String text;
  11610. HorizontalAlignment textAlignment;
  11611. TextEffect textEffect;
  11612. TraversalMode traversalMode;
  11613. /* readonly */
  11614. StringHash type;
  11615. /* readonly */
  11616. String typeName;
  11617. bool useDerivedOpacity;
  11618. /* readonly */
  11619. VariantMap vars;
  11620. VerticalAlignment verticalAlignment;
  11621. bool visible;
  11622. /* readonly */
  11623. bool visibleEffective;
  11624. /* readonly */
  11625. int weakRefs;
  11626. int width;
  11627. bool wordwrap;
  11628. };
  11629. class Text3D
  11630. {
  11631. // Methods:
  11632. void ApplyAttributes();
  11633. void DrawDebugGeometry(DebugRenderer, bool);
  11634. Variant GetAttribute(const String&) const;
  11635. ValueAnimation GetAttributeAnimation(const String&) const;
  11636. float GetAttributeAnimationSpeed(const String&) const;
  11637. float GetAttributeAnimationTime(const String&) const;
  11638. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11639. Variant GetAttributeDefault(const String&) const;
  11640. bool GetInterceptNetworkUpdate(const String&) const;
  11641. bool HasSubscribedToEvent(Object, const String&);
  11642. bool HasSubscribedToEvent(const String&);
  11643. bool IsInView(Camera) const;
  11644. bool Load(File, bool = false);
  11645. bool Load(VectorBuffer&, bool = false);
  11646. bool LoadJSON(const JSONValue&, bool = false);
  11647. bool LoadXML(const XMLElement&, bool = false);
  11648. void MarkNetworkUpdate() const;
  11649. void Remove();
  11650. void RemoveAttributeAnimation(const String&);
  11651. void RemoveInstanceDefault();
  11652. void RemoveObjectAnimation();
  11653. void ResetToDefault();
  11654. bool Save(File) const;
  11655. bool Save(VectorBuffer&) const;
  11656. bool SaveJSON(JSONValue&) const;
  11657. bool SaveXML(XMLElement&) const;
  11658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11659. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11660. void SetAnimationTime(float);
  11661. bool SetAttribute(const String&, const Variant&);
  11662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11663. void SetAttributeAnimationSpeed(const String&, float);
  11664. void SetAttributeAnimationTime(const String&, float);
  11665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11666. bool SetFont(Font, int);
  11667. bool SetFont(const String&, int);
  11668. void SetInterceptNetworkUpdate(const String&, bool);
  11669. // Properties:
  11670. bool animationEnabled;
  11671. /* readonly */
  11672. Array<Variant> attributeDefaults;
  11673. /* readonly */
  11674. Array<AttributeInfo> attributeInfos;
  11675. Array<Variant> attributes;
  11676. /* readonly */
  11677. BoundingBox boundingBox;
  11678. bool castShadows;
  11679. /* readonly */
  11680. String category;
  11681. /* readonly */
  11682. Array<IntVector2> charPositions;
  11683. /* readonly */
  11684. Array<IntVector2> charSizes;
  11685. /* writeonly */
  11686. Color color;
  11687. Array<Color> colors;
  11688. float drawDistance;
  11689. Color effectColor;
  11690. float effectDepthBias;
  11691. bool effectRoundStroke;
  11692. IntVector2 effectShadowOffset;
  11693. int effectStrokeThickness;
  11694. bool enabled;
  11695. /* readonly */
  11696. bool enabledEffective;
  11697. FaceCameraMode faceCameraMode;
  11698. bool fixedScreenSize;
  11699. /* readonly */
  11700. Font font;
  11701. int fontSize;
  11702. /* readonly */
  11703. int height;
  11704. HorizontalAlignment horizontalAlignment;
  11705. /* readonly */
  11706. uint id;
  11707. /* readonly */
  11708. bool inView;
  11709. uint lightMask;
  11710. float lodBias;
  11711. Material material;
  11712. uint maxLights;
  11713. /* readonly */
  11714. Node node;
  11715. /* readonly */
  11716. uint numAttributes;
  11717. /* readonly */
  11718. uint numChars;
  11719. /* readonly */
  11720. uint numRows;
  11721. ObjectAnimation objectAnimation;
  11722. bool occludee;
  11723. bool occluder;
  11724. float opacity;
  11725. /* readonly */
  11726. int refs;
  11727. /* readonly */
  11728. int rowHeight;
  11729. float rowSpacing;
  11730. /* readonly */
  11731. Array<int> rowWidths;
  11732. float shadowDistance;
  11733. uint shadowMask;
  11734. bool temporary;
  11735. String text;
  11736. HorizontalAlignment textAlignment;
  11737. TextEffect textEffect;
  11738. /* readonly */
  11739. StringHash type;
  11740. /* readonly */
  11741. String typeName;
  11742. VerticalAlignment verticalAlignment;
  11743. uint viewMask;
  11744. /* readonly */
  11745. int weakRefs;
  11746. int width;
  11747. bool wordwrap;
  11748. /* readonly */
  11749. BoundingBox worldBoundingBox;
  11750. uint zoneMask;
  11751. };
  11752. class Texture
  11753. {
  11754. // Methods:
  11755. void ClearDataLost();
  11756. bool HasSubscribedToEvent(Object, const String&);
  11757. bool HasSubscribedToEvent(const String&);
  11758. bool Load(File);
  11759. bool Load(VectorBuffer&);
  11760. bool Load(const String&);
  11761. bool Save(File) const;
  11762. bool Save(VectorBuffer&) const;
  11763. bool Save(const String&) const;
  11764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11765. void SetNumLevels(uint);
  11766. // Properties:
  11767. Array<TextureAddressMode> addressMode;
  11768. uint anisotropy;
  11769. /* readonly */
  11770. bool autoResolve;
  11771. Texture backupTexture;
  11772. Color borderColor;
  11773. /* readonly */
  11774. String category;
  11775. /* readonly */
  11776. uint components;
  11777. /* readonly */
  11778. bool compressed;
  11779. /* readonly */
  11780. bool dataLost;
  11781. TextureFilterMode filterMode;
  11782. /* readonly */
  11783. uint format;
  11784. /* readonly */
  11785. int height;
  11786. /* readonly */
  11787. Array<int> levelHeight;
  11788. /* readonly */
  11789. Array<int> levelWidth;
  11790. /* readonly */
  11791. uint levels;
  11792. /* readonly */
  11793. bool levelsDirty;
  11794. /* readonly */
  11795. uint memoryUse;
  11796. Array<int> mipsToSkip;
  11797. /* readonly */
  11798. int multiSample;
  11799. String name;
  11800. /* readonly */
  11801. int refs;
  11802. /* readonly */
  11803. bool resolveDirty;
  11804. bool sRGB;
  11805. /* readonly */
  11806. StringHash type;
  11807. /* readonly */
  11808. String typeName;
  11809. /* readonly */
  11810. TextureUsage usage;
  11811. /* readonly */
  11812. uint useTimer;
  11813. /* readonly */
  11814. int weakRefs;
  11815. /* readonly */
  11816. int width;
  11817. };
  11818. class Texture2D
  11819. {
  11820. // Methods:
  11821. void ClearDataLost();
  11822. Image GetImage() const;
  11823. bool HasSubscribedToEvent(Object, const String&);
  11824. bool HasSubscribedToEvent(const String&);
  11825. bool Load(File);
  11826. bool Load(VectorBuffer&);
  11827. bool Load(const String&);
  11828. bool Save(File) const;
  11829. bool Save(VectorBuffer&) const;
  11830. bool Save(const String&) const;
  11831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11832. bool SetData(Image, bool = false);
  11833. void SetNumLevels(uint);
  11834. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11835. // Properties:
  11836. Array<TextureAddressMode> addressMode;
  11837. uint anisotropy;
  11838. /* readonly */
  11839. bool autoResolve;
  11840. Texture backupTexture;
  11841. Color borderColor;
  11842. /* readonly */
  11843. String category;
  11844. /* readonly */
  11845. uint components;
  11846. /* readonly */
  11847. bool compressed;
  11848. /* readonly */
  11849. bool dataLost;
  11850. TextureFilterMode filterMode;
  11851. /* readonly */
  11852. uint format;
  11853. /* readonly */
  11854. int height;
  11855. /* readonly */
  11856. Array<int> levelHeight;
  11857. /* readonly */
  11858. Array<int> levelWidth;
  11859. /* readonly */
  11860. uint levels;
  11861. /* readonly */
  11862. bool levelsDirty;
  11863. /* readonly */
  11864. uint memoryUse;
  11865. Array<int> mipsToSkip;
  11866. /* readonly */
  11867. int multiSample;
  11868. String name;
  11869. /* readonly */
  11870. int refs;
  11871. /* readonly */
  11872. RenderSurface renderSurface;
  11873. /* readonly */
  11874. bool resolveDirty;
  11875. bool sRGB;
  11876. /* readonly */
  11877. StringHash type;
  11878. /* readonly */
  11879. String typeName;
  11880. /* readonly */
  11881. TextureUsage usage;
  11882. /* readonly */
  11883. uint useTimer;
  11884. /* readonly */
  11885. int weakRefs;
  11886. /* readonly */
  11887. int width;
  11888. };
  11889. class Texture2DArray
  11890. {
  11891. // Methods:
  11892. void ClearDataLost();
  11893. bool HasSubscribedToEvent(Object, const String&);
  11894. bool HasSubscribedToEvent(const String&);
  11895. bool Load(File);
  11896. bool Load(VectorBuffer&);
  11897. bool Load(const String&);
  11898. bool Save(File) const;
  11899. bool Save(VectorBuffer&) const;
  11900. bool Save(const String&) const;
  11901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11902. bool SetData(uint, Image, bool = false);
  11903. void SetNumLevels(uint);
  11904. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11905. // Properties:
  11906. Array<TextureAddressMode> addressMode;
  11907. uint anisotropy;
  11908. /* readonly */
  11909. bool autoResolve;
  11910. Texture backupTexture;
  11911. Color borderColor;
  11912. /* readonly */
  11913. String category;
  11914. /* readonly */
  11915. uint components;
  11916. /* readonly */
  11917. bool compressed;
  11918. /* readonly */
  11919. bool dataLost;
  11920. TextureFilterMode filterMode;
  11921. /* readonly */
  11922. uint format;
  11923. /* readonly */
  11924. int height;
  11925. uint layers;
  11926. /* readonly */
  11927. Array<int> levelHeight;
  11928. /* readonly */
  11929. Array<int> levelWidth;
  11930. /* readonly */
  11931. uint levels;
  11932. /* readonly */
  11933. bool levelsDirty;
  11934. /* readonly */
  11935. uint memoryUse;
  11936. Array<int> mipsToSkip;
  11937. /* readonly */
  11938. int multiSample;
  11939. String name;
  11940. /* readonly */
  11941. int refs;
  11942. /* readonly */
  11943. RenderSurface renderSurface;
  11944. /* readonly */
  11945. bool resolveDirty;
  11946. bool sRGB;
  11947. /* readonly */
  11948. StringHash type;
  11949. /* readonly */
  11950. String typeName;
  11951. /* readonly */
  11952. TextureUsage usage;
  11953. /* readonly */
  11954. uint useTimer;
  11955. /* readonly */
  11956. int weakRefs;
  11957. /* readonly */
  11958. int width;
  11959. };
  11960. class Texture3D
  11961. {
  11962. // Methods:
  11963. void ClearDataLost();
  11964. bool HasSubscribedToEvent(Object, const String&);
  11965. bool HasSubscribedToEvent(const String&);
  11966. bool Load(File);
  11967. bool Load(VectorBuffer&);
  11968. bool Load(const String&);
  11969. bool Save(File) const;
  11970. bool Save(VectorBuffer&) const;
  11971. bool Save(const String&) const;
  11972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11973. bool SetData(Image, bool = false);
  11974. void SetNumLevels(uint);
  11975. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11976. // Properties:
  11977. Array<TextureAddressMode> addressMode;
  11978. uint anisotropy;
  11979. /* readonly */
  11980. bool autoResolve;
  11981. Texture backupTexture;
  11982. Color borderColor;
  11983. /* readonly */
  11984. String category;
  11985. /* readonly */
  11986. uint components;
  11987. /* readonly */
  11988. bool compressed;
  11989. /* readonly */
  11990. bool dataLost;
  11991. TextureFilterMode filterMode;
  11992. /* readonly */
  11993. uint format;
  11994. /* readonly */
  11995. int height;
  11996. /* readonly */
  11997. Array<int> levelHeight;
  11998. /* readonly */
  11999. Array<int> levelWidth;
  12000. /* readonly */
  12001. uint levels;
  12002. /* readonly */
  12003. bool levelsDirty;
  12004. /* readonly */
  12005. uint memoryUse;
  12006. Array<int> mipsToSkip;
  12007. /* readonly */
  12008. int multiSample;
  12009. String name;
  12010. /* readonly */
  12011. int refs;
  12012. /* readonly */
  12013. bool resolveDirty;
  12014. bool sRGB;
  12015. /* readonly */
  12016. StringHash type;
  12017. /* readonly */
  12018. String typeName;
  12019. /* readonly */
  12020. TextureUsage usage;
  12021. /* readonly */
  12022. uint useTimer;
  12023. /* readonly */
  12024. int weakRefs;
  12025. /* readonly */
  12026. int width;
  12027. };
  12028. class TextureCube
  12029. {
  12030. // Methods:
  12031. void ClearDataLost();
  12032. Image GetImage(CubeMapFace) const;
  12033. bool HasSubscribedToEvent(Object, const String&);
  12034. bool HasSubscribedToEvent(const String&);
  12035. bool Load(File);
  12036. bool Load(VectorBuffer&);
  12037. bool Load(const String&);
  12038. bool Save(File) const;
  12039. bool Save(VectorBuffer&) const;
  12040. bool Save(const String&) const;
  12041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12042. bool SetData(CubeMapFace, Image, bool = false);
  12043. void SetNumLevels(uint);
  12044. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12045. // Properties:
  12046. Array<TextureAddressMode> addressMode;
  12047. uint anisotropy;
  12048. /* readonly */
  12049. bool autoResolve;
  12050. Texture backupTexture;
  12051. Color borderColor;
  12052. /* readonly */
  12053. String category;
  12054. /* readonly */
  12055. uint components;
  12056. /* readonly */
  12057. bool compressed;
  12058. /* readonly */
  12059. bool dataLost;
  12060. TextureFilterMode filterMode;
  12061. /* readonly */
  12062. uint format;
  12063. /* readonly */
  12064. int height;
  12065. /* readonly */
  12066. Array<int> levelHeight;
  12067. /* readonly */
  12068. Array<int> levelWidth;
  12069. /* readonly */
  12070. uint levels;
  12071. /* readonly */
  12072. bool levelsDirty;
  12073. /* readonly */
  12074. uint memoryUse;
  12075. Array<int> mipsToSkip;
  12076. /* readonly */
  12077. int multiSample;
  12078. String name;
  12079. /* readonly */
  12080. int refs;
  12081. /* readonly */
  12082. Array<RenderSurface> renderSurfaces;
  12083. /* readonly */
  12084. bool resolveDirty;
  12085. bool sRGB;
  12086. /* readonly */
  12087. StringHash type;
  12088. /* readonly */
  12089. String typeName;
  12090. /* readonly */
  12091. TextureUsage usage;
  12092. /* readonly */
  12093. uint useTimer;
  12094. /* readonly */
  12095. int weakRefs;
  12096. /* readonly */
  12097. int width;
  12098. };
  12099. class TextureFrame
  12100. {
  12101. // Properties:
  12102. float time;
  12103. Rect uv;
  12104. };
  12105. class Tile2D
  12106. {
  12107. // Methods:
  12108. bool HasProperty(const String&) const;
  12109. const String& GetProperty(const String&) const;
  12110. // Properties:
  12111. /* readonly */
  12112. int gid;
  12113. /* readonly */
  12114. int refs;
  12115. /* readonly */
  12116. Sprite2D sprite;
  12117. /* readonly */
  12118. int weakRefs;
  12119. };
  12120. class TileMap2D
  12121. {
  12122. // Methods:
  12123. void ApplyAttributes();
  12124. void DrawDebugGeometry(DebugRenderer, bool);
  12125. Variant GetAttribute(const String&) const;
  12126. ValueAnimation GetAttributeAnimation(const String&) const;
  12127. float GetAttributeAnimationSpeed(const String&) const;
  12128. float GetAttributeAnimationTime(const String&) const;
  12129. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12130. Variant GetAttributeDefault(const String&) const;
  12131. bool GetInterceptNetworkUpdate(const String&) const;
  12132. TileMapLayer2D GetLayer(uint) const;
  12133. bool HasSubscribedToEvent(Object, const String&);
  12134. bool HasSubscribedToEvent(const String&);
  12135. bool Load(File, bool = false);
  12136. bool Load(VectorBuffer&, bool = false);
  12137. bool LoadJSON(const JSONValue&, bool = false);
  12138. bool LoadXML(const XMLElement&, bool = false);
  12139. void MarkNetworkUpdate() const;
  12140. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12141. void Remove();
  12142. void RemoveAttributeAnimation(const String&);
  12143. void RemoveInstanceDefault();
  12144. void RemoveObjectAnimation();
  12145. void ResetToDefault();
  12146. bool Save(File) const;
  12147. bool Save(VectorBuffer&) const;
  12148. bool SaveJSON(JSONValue&) const;
  12149. bool SaveXML(XMLElement&) const;
  12150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12151. void SetAnimationTime(float);
  12152. bool SetAttribute(const String&, const Variant&);
  12153. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12154. void SetAttributeAnimationSpeed(const String&, float);
  12155. void SetAttributeAnimationTime(const String&, float);
  12156. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12157. void SetInterceptNetworkUpdate(const String&, bool);
  12158. Vector2 TileIndexToPosition(int, int) const;
  12159. // Properties:
  12160. bool animationEnabled;
  12161. /* readonly */
  12162. Array<Variant> attributeDefaults;
  12163. /* readonly */
  12164. Array<AttributeInfo> attributeInfos;
  12165. Array<Variant> attributes;
  12166. /* readonly */
  12167. String category;
  12168. bool enabled;
  12169. /* readonly */
  12170. bool enabledEffective;
  12171. /* readonly */
  12172. uint id;
  12173. /* readonly */
  12174. TileMapInfo2D info;
  12175. /* readonly */
  12176. Node node;
  12177. /* readonly */
  12178. uint numAttributes;
  12179. /* readonly */
  12180. uint numLayers;
  12181. ObjectAnimation objectAnimation;
  12182. /* readonly */
  12183. int refs;
  12184. bool temporary;
  12185. TmxFile2D tmxFile;
  12186. /* readonly */
  12187. StringHash type;
  12188. /* readonly */
  12189. String typeName;
  12190. /* readonly */
  12191. int weakRefs;
  12192. };
  12193. class TileMapInfo2D
  12194. {
  12195. // Properties:
  12196. int height;
  12197. /* readonly */
  12198. float mapHeight;
  12199. /* readonly */
  12200. float mapWidth;
  12201. Orientation2D orientation;
  12202. float tileHeight;
  12203. float tileWidth;
  12204. int width;
  12205. };
  12206. class TileMapLayer2D
  12207. {
  12208. // Methods:
  12209. void ApplyAttributes();
  12210. void DrawDebugGeometry(DebugRenderer, bool);
  12211. Variant GetAttribute(const String&) const;
  12212. ValueAnimation GetAttributeAnimation(const String&) const;
  12213. float GetAttributeAnimationSpeed(const String&) const;
  12214. float GetAttributeAnimationTime(const String&) const;
  12215. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12216. Variant GetAttributeDefault(const String&) const;
  12217. bool GetInterceptNetworkUpdate(const String&) const;
  12218. TileMapObject2D GetObject(uint) const;
  12219. Node GetObjectNode(uint) const;
  12220. Tile2D GetTile(int, int) const;
  12221. Node GetTileNode(int, int) const;
  12222. bool HasProperty(const String&) const;
  12223. bool HasSubscribedToEvent(Object, const String&);
  12224. bool HasSubscribedToEvent(const String&);
  12225. bool Load(File, bool = false);
  12226. bool Load(VectorBuffer&, bool = false);
  12227. bool LoadJSON(const JSONValue&, bool = false);
  12228. bool LoadXML(const XMLElement&, bool = false);
  12229. void MarkNetworkUpdate() const;
  12230. void Remove();
  12231. void RemoveAttributeAnimation(const String&);
  12232. void RemoveInstanceDefault();
  12233. void RemoveObjectAnimation();
  12234. void ResetToDefault();
  12235. bool Save(File) const;
  12236. bool Save(VectorBuffer&) const;
  12237. bool SaveJSON(JSONValue&) const;
  12238. bool SaveXML(XMLElement&) const;
  12239. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12240. void SetAnimationTime(float);
  12241. bool SetAttribute(const String&, const Variant&);
  12242. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12243. void SetAttributeAnimationSpeed(const String&, float);
  12244. void SetAttributeAnimationTime(const String&, float);
  12245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12246. void SetInterceptNetworkUpdate(const String&, bool);
  12247. const String& GetProperty(const String&) const;
  12248. // Properties:
  12249. bool animationEnabled;
  12250. /* readonly */
  12251. Array<Variant> attributeDefaults;
  12252. /* readonly */
  12253. Array<AttributeInfo> attributeInfos;
  12254. Array<Variant> attributes;
  12255. /* readonly */
  12256. String category;
  12257. int drawOrder;
  12258. bool enabled;
  12259. /* readonly */
  12260. bool enabledEffective;
  12261. /* readonly */
  12262. int height;
  12263. /* readonly */
  12264. uint id;
  12265. /* readonly */
  12266. Node imageNode;
  12267. /* readonly */
  12268. TileMapLayerType2D layerType;
  12269. /* readonly */
  12270. Node node;
  12271. /* readonly */
  12272. uint numAttributes;
  12273. /* readonly */
  12274. uint numObjects;
  12275. ObjectAnimation objectAnimation;
  12276. /* readonly */
  12277. int refs;
  12278. bool temporary;
  12279. /* readonly */
  12280. StringHash type;
  12281. /* readonly */
  12282. String typeName;
  12283. bool visible;
  12284. /* readonly */
  12285. int weakRefs;
  12286. /* readonly */
  12287. int width;
  12288. };
  12289. class TileMapObject2D
  12290. {
  12291. // Methods:
  12292. bool HasProperty(const String&) const;
  12293. const String& GetProperty(const String&) const;
  12294. const Vector2& GetPoint(uint) const;
  12295. // Properties:
  12296. /* readonly */
  12297. String name;
  12298. /* readonly */
  12299. uint numPoints;
  12300. /* readonly */
  12301. TileObjectType2D objectType;
  12302. /* readonly */
  12303. Vector2 position;
  12304. /* readonly */
  12305. int refs;
  12306. /* readonly */
  12307. Vector2 size;
  12308. /* readonly */
  12309. int tileGid;
  12310. /* readonly */
  12311. Sprite2D tileSprite;
  12312. /* readonly */
  12313. String type;
  12314. /* readonly */
  12315. int weakRefs;
  12316. };
  12317. class Time
  12318. {
  12319. // Methods:
  12320. bool HasSubscribedToEvent(Object, const String&);
  12321. bool HasSubscribedToEvent(const String&);
  12322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12323. // Properties:
  12324. /* readonly */
  12325. String category;
  12326. /* readonly */
  12327. float elapsedTime;
  12328. /* readonly */
  12329. uint frameNumber;
  12330. /* readonly */
  12331. int refs;
  12332. /* readonly */
  12333. uint systemTime;
  12334. /* readonly */
  12335. uint timeSinceEpoch;
  12336. /* readonly */
  12337. String timeStamp;
  12338. /* readonly */
  12339. float timeStep;
  12340. /* readonly */
  12341. StringHash type;
  12342. /* readonly */
  12343. String typeName;
  12344. /* readonly */
  12345. int weakRefs;
  12346. };
  12347. class Timer
  12348. {
  12349. // Methods:
  12350. uint GetMSec(bool);
  12351. void Reset();
  12352. };
  12353. class TmxFile2D
  12354. {
  12355. // Methods:
  12356. bool HasSubscribedToEvent(Object, const String&);
  12357. bool HasSubscribedToEvent(const String&);
  12358. bool Load(File);
  12359. bool Load(VectorBuffer&);
  12360. bool Load(const String&);
  12361. bool Save(File) const;
  12362. bool Save(VectorBuffer&) const;
  12363. bool Save(const String&) const;
  12364. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12365. // Properties:
  12366. /* readonly */
  12367. String category;
  12368. /* readonly */
  12369. uint memoryUse;
  12370. String name;
  12371. /* readonly */
  12372. int refs;
  12373. /* readonly */
  12374. StringHash type;
  12375. /* readonly */
  12376. String typeName;
  12377. /* readonly */
  12378. uint useTimer;
  12379. /* readonly */
  12380. int weakRefs;
  12381. };
  12382. class ToolTip
  12383. {
  12384. // Methods:
  12385. void AddChild(UIElement);
  12386. void AddTag(const String&);
  12387. void AddTags(const String&, int8 = ';');
  12388. void ApplyAttributes();
  12389. void BringToFront();
  12390. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12391. void DisableLayoutUpdate();
  12392. IntVector2 ElementToScreen(const IntVector2&);
  12393. void EnableLayoutUpdate();
  12394. uint FindChild(UIElement) const;
  12395. Variant GetAttribute(const String&) const;
  12396. ValueAnimation GetAttributeAnimation(const String&) const;
  12397. float GetAttributeAnimationSpeed(const String&) const;
  12398. float GetAttributeAnimationTime(const String&) const;
  12399. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12400. Variant GetAttributeDefault(const String&) const;
  12401. UIElement GetChild(const String&, bool = false) const;
  12402. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12403. Array<UIElement> GetChildren(bool = false) const;
  12404. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12405. UIElement GetElementEventSender() const;
  12406. bool GetInterceptNetworkUpdate(const String&) const;
  12407. uint GetNumChildren(bool) const;
  12408. bool HasSubscribedToEvent(Object, const String&);
  12409. bool HasSubscribedToEvent(const String&);
  12410. bool HasTag(const String&) const;
  12411. void InsertChild(uint, UIElement);
  12412. bool IsInside(IntVector2, bool);
  12413. bool IsInsideCombined(IntVector2, bool);
  12414. bool Load(File, bool = false);
  12415. bool Load(VectorBuffer&, bool = false);
  12416. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12417. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12418. bool LoadJSON(const JSONValue&, bool = false);
  12419. bool LoadXML(File);
  12420. bool LoadXML(VectorBuffer&);
  12421. bool LoadXML(XMLFile, XMLFile);
  12422. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12423. bool LoadXML(const XMLElement&, bool = false);
  12424. void MarkNetworkUpdate() const;
  12425. void Remove();
  12426. void RemoveAllChildren();
  12427. void RemoveAllTags();
  12428. void RemoveAttributeAnimation(const String&);
  12429. void RemoveChild(UIElement, uint = 0);
  12430. void RemoveChild(uint);
  12431. void RemoveInstanceDefault();
  12432. void RemoveObjectAnimation();
  12433. bool RemoveTag(const String&);
  12434. void ResetDeepEnabled();
  12435. void ResetToDefault();
  12436. bool Save(File) const;
  12437. bool Save(VectorBuffer&) const;
  12438. bool SaveJSON(JSONValue&) const;
  12439. bool SaveXML(File, const String& = "\t");
  12440. bool SaveXML(VectorBuffer&, const String& = "\t");
  12441. bool SaveXML(XMLElement&) const;
  12442. IntVector2 ScreenToElement(const IntVector2&);
  12443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12444. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12445. void SetAnimationTime(float);
  12446. bool SetAttribute(const String&, const Variant&);
  12447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12448. void SetAttributeAnimationSpeed(const String&, float);
  12449. void SetAttributeAnimationTime(const String&, float);
  12450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12451. void SetDeepEnabled(bool);
  12452. void SetEnabledRecursive(bool);
  12453. void SetFixedHeight(int);
  12454. void SetFixedSize(int, int);
  12455. void SetFixedWidth(int);
  12456. void SetInterceptNetworkUpdate(const String&, bool);
  12457. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12458. void SetMaxAnchor(float, float);
  12459. void SetMaxSize(int, int);
  12460. void SetMinAnchor(float, float);
  12461. void SetMinSize(int, int);
  12462. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12463. void SetPivot(float, float);
  12464. void SetPosition(int, int);
  12465. void SetSize(int, int);
  12466. bool SetStyle(const String&, XMLFile = null);
  12467. bool SetStyle(const XMLElement&);
  12468. bool SetStyleAuto(XMLFile = null);
  12469. void UpdateLayout();
  12470. const Variant& GetVar(const StringHash&);
  12471. // Properties:
  12472. bool animationEnabled;
  12473. /* readonly */
  12474. Array<Variant> attributeDefaults;
  12475. /* readonly */
  12476. Array<AttributeInfo> attributeInfos;
  12477. Array<Variant> attributes;
  12478. bool bringToBack;
  12479. bool bringToFront;
  12480. /* readonly */
  12481. String category;
  12482. /* readonly */
  12483. IntVector2 childOffset;
  12484. /* readonly */
  12485. Array<UIElement> children;
  12486. IntRect clipBorder;
  12487. bool clipChildren;
  12488. /* writeonly */
  12489. Color color;
  12490. /* readonly */
  12491. bool colorGradient;
  12492. Array<Color> colors;
  12493. /* readonly */
  12494. IntRect combinedScreenRect;
  12495. XMLFile defaultStyle;
  12496. float delay;
  12497. /* readonly */
  12498. float derivedOpacity;
  12499. /* readonly */
  12500. uint dragButtonCombo;
  12501. /* readonly */
  12502. int dragButtonCount;
  12503. uint dragDropMode;
  12504. bool editable;
  12505. bool elementEventSender;
  12506. bool enableAnchor;
  12507. bool enabled;
  12508. /* readonly */
  12509. bool enabledSelf;
  12510. /* readonly */
  12511. bool fixedHeight;
  12512. /* readonly */
  12513. bool fixedSize;
  12514. /* readonly */
  12515. bool fixedWidth;
  12516. bool focus;
  12517. FocusMode focusMode;
  12518. int height;
  12519. HorizontalAlignment horizontalAlignment;
  12520. /* readonly */
  12521. bool hovering;
  12522. int indent;
  12523. int indentSpacing;
  12524. /* readonly */
  12525. int indentWidth;
  12526. bool internal;
  12527. IntRect layoutBorder;
  12528. Vector2 layoutFlexScale;
  12529. LayoutMode layoutMode;
  12530. int layoutSpacing;
  12531. Vector2 maxAnchor;
  12532. int maxHeight;
  12533. IntVector2 maxOffset;
  12534. IntVector2 maxSize;
  12535. int maxWidth;
  12536. Vector2 minAnchor;
  12537. int minHeight;
  12538. IntVector2 minOffset;
  12539. IntVector2 minSize;
  12540. int minWidth;
  12541. String name;
  12542. /* readonly */
  12543. uint numAllChildren;
  12544. /* readonly */
  12545. uint numAttributes;
  12546. /* readonly */
  12547. uint numChildren;
  12548. ObjectAnimation objectAnimation;
  12549. float opacity;
  12550. UIElement parent;
  12551. Vector2 pivot;
  12552. IntVector2 position;
  12553. int priority;
  12554. /* readonly */
  12555. int refs;
  12556. /* readonly */
  12557. UIElement root;
  12558. /* readonly */
  12559. IntVector2 screenPosition;
  12560. bool selected;
  12561. IntVector2 size;
  12562. bool sortChildren;
  12563. String style;
  12564. /* readonly */
  12565. Array<String> tags;
  12566. bool temporary;
  12567. TraversalMode traversalMode;
  12568. /* readonly */
  12569. StringHash type;
  12570. /* readonly */
  12571. String typeName;
  12572. bool useDerivedOpacity;
  12573. /* readonly */
  12574. VariantMap vars;
  12575. VerticalAlignment verticalAlignment;
  12576. bool visible;
  12577. /* readonly */
  12578. bool visibleEffective;
  12579. /* readonly */
  12580. int weakRefs;
  12581. int width;
  12582. };
  12583. class TouchState
  12584. {
  12585. // Properties:
  12586. IntVector2 delta;
  12587. IntVector2 lastPosition;
  12588. IntVector2 position;
  12589. float pressure;
  12590. int touchID;
  12591. /* readonly */
  12592. UIElement touchedElement;
  12593. };
  12594. class UI
  12595. {
  12596. // Methods:
  12597. void Clear();
  12598. void DebugDraw(UIElement);
  12599. UIElement GetElementAt(const IntVector2&, bool = true);
  12600. UIElement GetElementAt(int, int, bool = true);
  12601. bool HasModalElement() const;
  12602. bool HasSubscribedToEvent(Object, const String&);
  12603. bool HasSubscribedToEvent(const String&);
  12604. bool IsDragging() const;
  12605. UIElement LoadLayout(File);
  12606. UIElement LoadLayout(File, XMLFile);
  12607. UIElement LoadLayout(VectorBuffer&);
  12608. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12609. UIElement LoadLayout(XMLFile);
  12610. UIElement LoadLayout(XMLFile, XMLFile);
  12611. bool SaveLayout(File, UIElement);
  12612. bool SaveLayout(VectorBuffer&, UIElement);
  12613. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12614. void SetCustomSize(int, int);
  12615. void SetFocusElement(UIElement, bool = false);
  12616. void SetHeight(float);
  12617. void SetWidth(float);
  12618. const Array<UIElement> GetDragElements();
  12619. // Properties:
  12620. /* readonly */
  12621. String category;
  12622. String clipBoardText;
  12623. Cursor cursor;
  12624. /* readonly */
  12625. IntVector2 cursorPosition;
  12626. IntVector2 customSize;
  12627. float defaultToolTipDelay;
  12628. float doubleClickInterval;
  12629. int dragBeginDistance;
  12630. float dragBeginInterval;
  12631. UIElement focusElement;
  12632. bool forceAutoHint;
  12633. /* readonly */
  12634. UIElement frontElement;
  12635. int maxFontTextureSize;
  12636. /* readonly */
  12637. UIElement modalRoot;
  12638. bool nonFocusedMouseWheel;
  12639. /* readonly */
  12640. int refs;
  12641. /* readonly */
  12642. UIElement root;
  12643. float scale;
  12644. /* readonly */
  12645. StringHash type;
  12646. /* readonly */
  12647. String typeName;
  12648. bool useMutableGlyphs;
  12649. bool useScreenKeyboard;
  12650. bool useSystemClipboard;
  12651. /* readonly */
  12652. int weakRefs;
  12653. };
  12654. class UIElement
  12655. {
  12656. // Methods:
  12657. void AddChild(UIElement);
  12658. void AddTag(const String&);
  12659. void AddTags(const String&, int8 = ';');
  12660. void ApplyAttributes();
  12661. void BringToFront();
  12662. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12663. void DisableLayoutUpdate();
  12664. IntVector2 ElementToScreen(const IntVector2&);
  12665. void EnableLayoutUpdate();
  12666. uint FindChild(UIElement) const;
  12667. Variant GetAttribute(const String&) const;
  12668. ValueAnimation GetAttributeAnimation(const String&) const;
  12669. float GetAttributeAnimationSpeed(const String&) const;
  12670. float GetAttributeAnimationTime(const String&) const;
  12671. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12672. Variant GetAttributeDefault(const String&) const;
  12673. UIElement GetChild(const String&, bool = false) const;
  12674. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12675. Array<UIElement> GetChildren(bool = false) const;
  12676. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12677. UIElement GetElementEventSender() const;
  12678. bool GetInterceptNetworkUpdate(const String&) const;
  12679. uint GetNumChildren(bool) const;
  12680. bool HasSubscribedToEvent(Object, const String&);
  12681. bool HasSubscribedToEvent(const String&);
  12682. bool HasTag(const String&) const;
  12683. void InsertChild(uint, UIElement);
  12684. bool IsInside(IntVector2, bool);
  12685. bool IsInsideCombined(IntVector2, bool);
  12686. bool Load(File, bool = false);
  12687. bool Load(VectorBuffer&, bool = false);
  12688. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12689. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12690. bool LoadJSON(const JSONValue&, bool = false);
  12691. bool LoadXML(File);
  12692. bool LoadXML(VectorBuffer&);
  12693. bool LoadXML(XMLFile, XMLFile);
  12694. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12695. bool LoadXML(const XMLElement&, bool = false);
  12696. void MarkNetworkUpdate() const;
  12697. void Remove();
  12698. void RemoveAllChildren();
  12699. void RemoveAllTags();
  12700. void RemoveAttributeAnimation(const String&);
  12701. void RemoveChild(UIElement, uint = 0);
  12702. void RemoveChild(uint);
  12703. void RemoveInstanceDefault();
  12704. void RemoveObjectAnimation();
  12705. bool RemoveTag(const String&);
  12706. void ResetDeepEnabled();
  12707. void ResetToDefault();
  12708. bool Save(File) const;
  12709. bool Save(VectorBuffer&) const;
  12710. bool SaveJSON(JSONValue&) const;
  12711. bool SaveXML(File, const String& = "\t");
  12712. bool SaveXML(VectorBuffer&, const String& = "\t");
  12713. bool SaveXML(XMLElement&) const;
  12714. IntVector2 ScreenToElement(const IntVector2&);
  12715. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12716. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12717. void SetAnimationTime(float);
  12718. bool SetAttribute(const String&, const Variant&);
  12719. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12720. void SetAttributeAnimationSpeed(const String&, float);
  12721. void SetAttributeAnimationTime(const String&, float);
  12722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12723. void SetDeepEnabled(bool);
  12724. void SetEnabledRecursive(bool);
  12725. void SetFixedHeight(int);
  12726. void SetFixedSize(int, int);
  12727. void SetFixedWidth(int);
  12728. void SetInterceptNetworkUpdate(const String&, bool);
  12729. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12730. void SetMaxAnchor(float, float);
  12731. void SetMaxSize(int, int);
  12732. void SetMinAnchor(float, float);
  12733. void SetMinSize(int, int);
  12734. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12735. void SetPivot(float, float);
  12736. void SetPosition(int, int);
  12737. void SetSize(int, int);
  12738. bool SetStyle(const String&, XMLFile = null);
  12739. bool SetStyle(const XMLElement&);
  12740. bool SetStyleAuto(XMLFile = null);
  12741. void UpdateLayout();
  12742. const Variant& GetVar(const StringHash&);
  12743. // Properties:
  12744. bool animationEnabled;
  12745. /* readonly */
  12746. Array<Variant> attributeDefaults;
  12747. /* readonly */
  12748. Array<AttributeInfo> attributeInfos;
  12749. Array<Variant> attributes;
  12750. bool bringToBack;
  12751. bool bringToFront;
  12752. /* readonly */
  12753. String category;
  12754. /* readonly */
  12755. IntVector2 childOffset;
  12756. /* readonly */
  12757. Array<UIElement> children;
  12758. IntRect clipBorder;
  12759. bool clipChildren;
  12760. /* writeonly */
  12761. Color color;
  12762. /* readonly */
  12763. bool colorGradient;
  12764. Array<Color> colors;
  12765. /* readonly */
  12766. IntRect combinedScreenRect;
  12767. XMLFile defaultStyle;
  12768. /* readonly */
  12769. float derivedOpacity;
  12770. /* readonly */
  12771. uint dragButtonCombo;
  12772. /* readonly */
  12773. int dragButtonCount;
  12774. uint dragDropMode;
  12775. bool editable;
  12776. bool elementEventSender;
  12777. bool enableAnchor;
  12778. bool enabled;
  12779. /* readonly */
  12780. bool enabledSelf;
  12781. /* readonly */
  12782. bool fixedHeight;
  12783. /* readonly */
  12784. bool fixedSize;
  12785. /* readonly */
  12786. bool fixedWidth;
  12787. bool focus;
  12788. FocusMode focusMode;
  12789. int height;
  12790. HorizontalAlignment horizontalAlignment;
  12791. /* readonly */
  12792. bool hovering;
  12793. int indent;
  12794. int indentSpacing;
  12795. /* readonly */
  12796. int indentWidth;
  12797. bool internal;
  12798. IntRect layoutBorder;
  12799. Vector2 layoutFlexScale;
  12800. LayoutMode layoutMode;
  12801. int layoutSpacing;
  12802. Vector2 maxAnchor;
  12803. int maxHeight;
  12804. IntVector2 maxOffset;
  12805. IntVector2 maxSize;
  12806. int maxWidth;
  12807. Vector2 minAnchor;
  12808. int minHeight;
  12809. IntVector2 minOffset;
  12810. IntVector2 minSize;
  12811. int minWidth;
  12812. String name;
  12813. /* readonly */
  12814. uint numAllChildren;
  12815. /* readonly */
  12816. uint numAttributes;
  12817. /* readonly */
  12818. uint numChildren;
  12819. ObjectAnimation objectAnimation;
  12820. float opacity;
  12821. UIElement parent;
  12822. Vector2 pivot;
  12823. IntVector2 position;
  12824. int priority;
  12825. /* readonly */
  12826. int refs;
  12827. /* readonly */
  12828. UIElement root;
  12829. /* readonly */
  12830. IntVector2 screenPosition;
  12831. bool selected;
  12832. IntVector2 size;
  12833. bool sortChildren;
  12834. String style;
  12835. /* readonly */
  12836. Array<String> tags;
  12837. bool temporary;
  12838. TraversalMode traversalMode;
  12839. /* readonly */
  12840. StringHash type;
  12841. /* readonly */
  12842. String typeName;
  12843. bool useDerivedOpacity;
  12844. /* readonly */
  12845. VariantMap vars;
  12846. VerticalAlignment verticalAlignment;
  12847. bool visible;
  12848. /* readonly */
  12849. bool visibleEffective;
  12850. /* readonly */
  12851. int weakRefs;
  12852. int width;
  12853. };
  12854. class ValueAnimation
  12855. {
  12856. // Methods:
  12857. bool HasSubscribedToEvent(Object, const String&);
  12858. bool HasSubscribedToEvent(const String&);
  12859. bool Load(File);
  12860. bool Load(VectorBuffer&);
  12861. bool Load(const String&);
  12862. bool Save(File) const;
  12863. bool Save(VectorBuffer&) const;
  12864. bool Save(const String&) const;
  12865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12866. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12867. void SetKeyFrame(float, const Variant&);
  12868. // Properties:
  12869. /* readonly */
  12870. String category;
  12871. InterpMethod interpolationMethod;
  12872. /* readonly */
  12873. uint memoryUse;
  12874. String name;
  12875. /* readonly */
  12876. int refs;
  12877. float splineTension;
  12878. /* readonly */
  12879. StringHash type;
  12880. /* readonly */
  12881. String typeName;
  12882. /* readonly */
  12883. uint useTimer;
  12884. VariantType valueType;
  12885. /* readonly */
  12886. int weakRefs;
  12887. };
  12888. class Variant
  12889. {
  12890. // Methods:
  12891. void Clear();
  12892. const Color& GetColor() const;
  12893. void FromString(VariantType, const String&);
  12894. void FromString(const String&, const String&);
  12895. bool GetBool() const;
  12896. VectorBuffer GetBuffer() const;
  12897. double GetDouble() const;
  12898. float GetFloat() const;
  12899. int GetInt() const;
  12900. RefCounted GetPtr() const;
  12901. ScriptObject GetScriptObject() const;
  12902. StringHash GetStringHash() const;
  12903. Array<String> GetStringVector() const;
  12904. uint GetUInt() const;
  12905. Array<Variant> GetVariantVector() const;
  12906. const IntRect& GetIntRect() const;
  12907. const IntVector2& GetIntVector2() const;
  12908. const IntVector3& GetIntVector3() const;
  12909. const Matrix3& GetMatrix3() const;
  12910. const Matrix3x4& GetMatrix3x4() const;
  12911. const Matrix4& GetMatrix4() const;
  12912. const Quaternion& GetQuaternion() const;
  12913. const Rect& GetRect() const;
  12914. const ResourceRef& GetResourceRef() const;
  12915. const ResourceRefList& GetResourceRefList() const;
  12916. const String& GetString() const;
  12917. String ToString() const;
  12918. const VariantMap& GetVariantMap() const;
  12919. const Vector2& GetVector2() const;
  12920. const Vector3& GetVector3() const;
  12921. const Vector4& GetVector4() const;
  12922. // Properties:
  12923. /* readonly */
  12924. bool empty;
  12925. /* readonly */
  12926. VariantType type;
  12927. /* readonly */
  12928. String typeName;
  12929. /* readonly */
  12930. bool zero;
  12931. };
  12932. class VariantMap
  12933. {
  12934. // Methods:
  12935. void Clear();
  12936. bool Contains(StringHash) const;
  12937. bool Contains(const String&) const;
  12938. bool Erase(StringHash);
  12939. bool Erase(const String&);
  12940. // Properties:
  12941. /* readonly */
  12942. Array<StringHash> keys;
  12943. /* readonly */
  12944. uint length;
  12945. /* readonly */
  12946. Array<Variant> values;
  12947. };
  12948. class Vector2
  12949. {
  12950. // Methods:
  12951. Vector2 Abs() const;
  12952. float AbsDotProduct(const Vector2&) const;
  12953. float Angle(const Vector2&) const;
  12954. float DotProduct(const Vector2&) const;
  12955. bool Equals(const Vector2&) const;
  12956. bool IsNaN() const;
  12957. Vector2 Lerp(const Vector2&, float) const;
  12958. void Normalize();
  12959. Vector2 Normalized() const;
  12960. float ProjectOntoAxis(const Vector2&) const;
  12961. String ToString() const;
  12962. // Properties:
  12963. /* readonly */
  12964. Array<float> data;
  12965. /* readonly */
  12966. float length;
  12967. /* readonly */
  12968. float lengthSquared;
  12969. float x;
  12970. float y;
  12971. };
  12972. class Vector3
  12973. {
  12974. // Methods:
  12975. Vector3 Abs() const;
  12976. float AbsDotProduct(const Vector3&) const;
  12977. float Angle(const Vector3&) const;
  12978. Vector3 CrossProduct(const Vector3&) const;
  12979. float DotProduct(const Vector3&) const;
  12980. bool Equals(const Vector3&) const;
  12981. bool IsNaN() const;
  12982. Vector3 Lerp(const Vector3&, float) const;
  12983. void Normalize();
  12984. Vector3 Normalized() const;
  12985. float ProjectOntoAxis(const Vector3&) const;
  12986. String ToString() const;
  12987. // Properties:
  12988. /* readonly */
  12989. Array<float> data;
  12990. /* readonly */
  12991. float length;
  12992. /* readonly */
  12993. float lengthSquared;
  12994. float x;
  12995. float y;
  12996. float z;
  12997. };
  12998. class Vector4
  12999. {
  13000. // Methods:
  13001. Vector4 Abs() const;
  13002. float AbsDotProduct(const Vector4&) const;
  13003. float DotProduct(const Vector4&) const;
  13004. bool Equals(const Vector4&) const;
  13005. bool IsNaN() const;
  13006. Vector4 Lerp(const Vector4&, float) const;
  13007. float ProjectOntoAxis(const Vector3&) const;
  13008. String ToString() const;
  13009. // Properties:
  13010. /* readonly */
  13011. Array<float> data;
  13012. float w;
  13013. float x;
  13014. float y;
  13015. float z;
  13016. };
  13017. class VectorBuffer
  13018. {
  13019. // Methods:
  13020. void Clear();
  13021. Array<uint8> Read(uint);
  13022. bool ReadBool();
  13023. BoundingBox ReadBoundingBox();
  13024. int8 ReadByte();
  13025. Color ReadColor();
  13026. double ReadDouble();
  13027. String ReadFileID();
  13028. float ReadFloat();
  13029. int ReadInt();
  13030. int64 ReadInt64();
  13031. IntRect ReadIntRect();
  13032. IntVector2 ReadIntVector2();
  13033. String ReadLine();
  13034. Matrix3 ReadMatrix3();
  13035. Matrix3x4 ReadMatrix3x4();
  13036. Matrix4 ReadMatrix4();
  13037. uint ReadNetID();
  13038. Quaternion ReadPackedQuaternion();
  13039. Vector3 ReadPackedVector3(float);
  13040. Quaternion ReadQuaternion();
  13041. int16 ReadShort();
  13042. String ReadString();
  13043. StringHash ReadStringHash();
  13044. uint8 ReadUByte();
  13045. uint ReadUInt();
  13046. uint64 ReadUInt64();
  13047. uint16 ReadUShort();
  13048. uint ReadVLE();
  13049. Variant ReadVariant();
  13050. VariantMap ReadVariantMap();
  13051. Vector2 ReadVector2();
  13052. Vector3 ReadVector3();
  13053. Vector4 ReadVector4();
  13054. VectorBuffer ReadVectorBuffer(uint);
  13055. void Resize(uint);
  13056. uint Seek(uint);
  13057. void SetData(Deserializer, uint);
  13058. uint Write(Array<uint8>);
  13059. bool WriteBool(bool);
  13060. bool WriteBoundingBox(const BoundingBox&);
  13061. bool WriteByte(int8);
  13062. bool WriteColor(const Color&);
  13063. bool WriteDouble(double);
  13064. bool WriteFileID(const String&);
  13065. bool WriteFloat(float);
  13066. bool WriteInt(int);
  13067. bool WriteInt64(int64);
  13068. bool WriteIntRect(const IntRect&);
  13069. bool WriteIntVector2(const IntVector2&);
  13070. bool WriteLine(const String&);
  13071. bool WriteMatrix3(const Matrix3&);
  13072. bool WriteMatrix3x4(const Matrix3x4&);
  13073. bool WriteMatrix4(const Matrix4&);
  13074. bool WriteNetID(uint);
  13075. bool WritePackedQuaternion(const Quaternion&);
  13076. bool WritePackedVector3(const Vector3&, float);
  13077. bool WriteQuaternion(const Quaternion&);
  13078. bool WriteShort(int16);
  13079. bool WriteString(const String&);
  13080. bool WriteStringHash(const StringHash&);
  13081. bool WriteUByte(uint8);
  13082. bool WriteUInt(uint);
  13083. bool WriteUInt64(uint64);
  13084. bool WriteUShort(uint16);
  13085. bool WriteVLE(uint);
  13086. bool WriteVariant(const Variant&);
  13087. bool WriteVariantMap(const VariantMap&);
  13088. bool WriteVector2(const Vector2&);
  13089. bool WriteVector3(const Vector3&);
  13090. bool WriteVector4(const Vector4&);
  13091. bool WriteVectorBuffer(const VectorBuffer&);
  13092. // Properties:
  13093. /* readonly */
  13094. uint checksum;
  13095. /* readonly */
  13096. bool eof;
  13097. /* readonly */
  13098. String name;
  13099. /* readonly */
  13100. uint position;
  13101. /* readonly */
  13102. uint size;
  13103. };
  13104. class VertexBuffer
  13105. {
  13106. // Methods:
  13107. VectorBuffer GetData() const;
  13108. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13109. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13110. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13111. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13112. bool HasSubscribedToEvent(Object, const String&);
  13113. bool HasSubscribedToEvent(const String&);
  13114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13115. bool SetData(VectorBuffer&);
  13116. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13117. void SetSize(uint, Array<VertexElement>, bool = false);
  13118. void SetSize(uint, uint, bool = false);
  13119. // Properties:
  13120. /* readonly */
  13121. String category;
  13122. /* readonly */
  13123. bool dynamic;
  13124. /* readonly */
  13125. uint elementMask;
  13126. /* readonly */
  13127. Array<VertexElement> elements;
  13128. /* readonly */
  13129. int refs;
  13130. bool shadowed;
  13131. /* readonly */
  13132. StringHash type;
  13133. /* readonly */
  13134. String typeName;
  13135. /* readonly */
  13136. uint vertexCount;
  13137. /* readonly */
  13138. uint vertexSize;
  13139. /* readonly */
  13140. int weakRefs;
  13141. };
  13142. class VertexElement
  13143. {
  13144. // Properties:
  13145. uint8 index;
  13146. uint offset;
  13147. bool perInstance;
  13148. VertexElementSemantic semantic;
  13149. VertexElementType type;
  13150. };
  13151. class View3D
  13152. {
  13153. // Methods:
  13154. void AddChild(UIElement);
  13155. void AddTag(const String&);
  13156. void AddTags(const String&, int8 = ';');
  13157. void ApplyAttributes();
  13158. void BringToFront();
  13159. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13160. void DisableLayoutUpdate();
  13161. IntVector2 ElementToScreen(const IntVector2&);
  13162. void EnableLayoutUpdate();
  13163. uint FindChild(UIElement) const;
  13164. Variant GetAttribute(const String&) const;
  13165. ValueAnimation GetAttributeAnimation(const String&) const;
  13166. float GetAttributeAnimationSpeed(const String&) const;
  13167. float GetAttributeAnimationTime(const String&) const;
  13168. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13169. Variant GetAttributeDefault(const String&) const;
  13170. UIElement GetChild(const String&, bool = false) const;
  13171. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13172. Array<UIElement> GetChildren(bool = false) const;
  13173. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13174. UIElement GetElementEventSender() const;
  13175. bool GetInterceptNetworkUpdate(const String&) const;
  13176. uint GetNumChildren(bool) const;
  13177. bool HasSubscribedToEvent(Object, const String&);
  13178. bool HasSubscribedToEvent(const String&);
  13179. bool HasTag(const String&) const;
  13180. void InsertChild(uint, UIElement);
  13181. bool IsInside(IntVector2, bool);
  13182. bool IsInsideCombined(IntVector2, bool);
  13183. bool Load(File, bool = false);
  13184. bool Load(VectorBuffer&, bool = false);
  13185. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13186. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13187. bool LoadJSON(const JSONValue&, bool = false);
  13188. bool LoadXML(File);
  13189. bool LoadXML(VectorBuffer&);
  13190. bool LoadXML(XMLFile, XMLFile);
  13191. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13192. bool LoadXML(const XMLElement&, bool = false);
  13193. void MarkNetworkUpdate() const;
  13194. void QueueUpdate();
  13195. void Remove();
  13196. void RemoveAllChildren();
  13197. void RemoveAllTags();
  13198. void RemoveAttributeAnimation(const String&);
  13199. void RemoveChild(UIElement, uint = 0);
  13200. void RemoveChild(uint);
  13201. void RemoveInstanceDefault();
  13202. void RemoveObjectAnimation();
  13203. bool RemoveTag(const String&);
  13204. void ResetDeepEnabled();
  13205. void ResetToDefault();
  13206. bool Save(File) const;
  13207. bool Save(VectorBuffer&) const;
  13208. bool SaveJSON(JSONValue&) const;
  13209. bool SaveXML(File, const String& = "\t");
  13210. bool SaveXML(VectorBuffer&, const String& = "\t");
  13211. bool SaveXML(XMLElement&) const;
  13212. IntVector2 ScreenToElement(const IntVector2&);
  13213. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13214. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13215. void SetAnimationTime(float);
  13216. bool SetAttribute(const String&, const Variant&);
  13217. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13218. void SetAttributeAnimationSpeed(const String&, float);
  13219. void SetAttributeAnimationTime(const String&, float);
  13220. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13221. void SetDeepEnabled(bool);
  13222. void SetEnabledRecursive(bool);
  13223. void SetFixedHeight(int);
  13224. void SetFixedSize(int, int);
  13225. void SetFixedWidth(int);
  13226. void SetFullImageRect();
  13227. void SetHoverOffset(int, int);
  13228. void SetInterceptNetworkUpdate(const String&, bool);
  13229. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13230. void SetMaxAnchor(float, float);
  13231. void SetMaxSize(int, int);
  13232. void SetMinAnchor(float, float);
  13233. void SetMinSize(int, int);
  13234. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13235. void SetPivot(float, float);
  13236. void SetPosition(int, int);
  13237. void SetSize(int, int);
  13238. bool SetStyle(const String&, XMLFile = null);
  13239. bool SetStyle(const XMLElement&);
  13240. bool SetStyleAuto(XMLFile = null);
  13241. void SetView(Scene, Camera, bool = true);
  13242. void UpdateLayout();
  13243. const Variant& GetVar(const StringHash&);
  13244. // Properties:
  13245. bool animationEnabled;
  13246. /* readonly */
  13247. Array<Variant> attributeDefaults;
  13248. /* readonly */
  13249. Array<AttributeInfo> attributeInfos;
  13250. Array<Variant> attributes;
  13251. bool autoUpdate;
  13252. BlendMode blendMode;
  13253. IntRect border;
  13254. bool bringToBack;
  13255. bool bringToFront;
  13256. /* readonly */
  13257. Node cameraNode;
  13258. /* readonly */
  13259. String category;
  13260. /* readonly */
  13261. IntVector2 childOffset;
  13262. /* readonly */
  13263. Array<UIElement> children;
  13264. IntRect clipBorder;
  13265. bool clipChildren;
  13266. /* writeonly */
  13267. Color color;
  13268. /* readonly */
  13269. bool colorGradient;
  13270. Array<Color> colors;
  13271. /* readonly */
  13272. IntRect combinedScreenRect;
  13273. XMLFile defaultStyle;
  13274. /* readonly */
  13275. Texture2D depthTexture;
  13276. /* readonly */
  13277. float derivedOpacity;
  13278. /* readonly */
  13279. uint dragButtonCombo;
  13280. /* readonly */
  13281. int dragButtonCount;
  13282. uint dragDropMode;
  13283. bool editable;
  13284. bool elementEventSender;
  13285. bool enableAnchor;
  13286. bool enabled;
  13287. /* readonly */
  13288. bool enabledSelf;
  13289. /* readonly */
  13290. bool fixedHeight;
  13291. bool fixedHeightResizing;
  13292. /* readonly */
  13293. bool fixedSize;
  13294. /* readonly */
  13295. bool fixedWidth;
  13296. bool fixedWidthResizing;
  13297. bool focus;
  13298. FocusMode focusMode;
  13299. uint format;
  13300. int height;
  13301. HorizontalAlignment horizontalAlignment;
  13302. IntVector2 hoverOffset;
  13303. /* readonly */
  13304. bool hovering;
  13305. IntRect imageBorder;
  13306. IntRect imageRect;
  13307. int indent;
  13308. int indentSpacing;
  13309. /* readonly */
  13310. int indentWidth;
  13311. bool internal;
  13312. IntRect layoutBorder;
  13313. Vector2 layoutFlexScale;
  13314. LayoutMode layoutMode;
  13315. int layoutSpacing;
  13316. Vector2 maxAnchor;
  13317. int maxHeight;
  13318. IntVector2 maxOffset;
  13319. IntVector2 maxSize;
  13320. int maxWidth;
  13321. Vector2 minAnchor;
  13322. int minHeight;
  13323. IntVector2 minOffset;
  13324. IntVector2 minSize;
  13325. int minWidth;
  13326. bool modal;
  13327. bool modalAutoDismiss;
  13328. Color modalFrameColor;
  13329. IntVector2 modalFrameSize;
  13330. Color modalShadeColor;
  13331. bool movable;
  13332. String name;
  13333. /* readonly */
  13334. uint numAllChildren;
  13335. /* readonly */
  13336. uint numAttributes;
  13337. /* readonly */
  13338. uint numChildren;
  13339. ObjectAnimation objectAnimation;
  13340. float opacity;
  13341. UIElement parent;
  13342. Vector2 pivot;
  13343. IntVector2 position;
  13344. int priority;
  13345. /* readonly */
  13346. int refs;
  13347. /* readonly */
  13348. Texture2D renderTexture;
  13349. bool resizable;
  13350. IntRect resizeBorder;
  13351. /* readonly */
  13352. UIElement root;
  13353. /* readonly */
  13354. Scene scene;
  13355. /* readonly */
  13356. IntVector2 screenPosition;
  13357. bool selected;
  13358. IntVector2 size;
  13359. bool sortChildren;
  13360. String style;
  13361. /* readonly */
  13362. Array<String> tags;
  13363. bool temporary;
  13364. Texture texture;
  13365. bool tiled;
  13366. TraversalMode traversalMode;
  13367. /* readonly */
  13368. StringHash type;
  13369. /* readonly */
  13370. String typeName;
  13371. bool useDerivedOpacity;
  13372. /* readonly */
  13373. VariantMap vars;
  13374. VerticalAlignment verticalAlignment;
  13375. /* readonly */
  13376. Viewport viewport;
  13377. bool visible;
  13378. /* readonly */
  13379. bool visibleEffective;
  13380. /* readonly */
  13381. int weakRefs;
  13382. int width;
  13383. };
  13384. class Viewport
  13385. {
  13386. // Methods:
  13387. Ray GetScreenRay(int, int) const;
  13388. bool HasSubscribedToEvent(Object, const String&);
  13389. bool HasSubscribedToEvent(const String&);
  13390. Vector3 ScreenToWorldPoint(int, int, float) const;
  13391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13392. void SetRenderPath(XMLFile);
  13393. IntVector2 WorldToScreenPoint(const Vector3&) const;
  13394. // Properties:
  13395. Camera camera;
  13396. /* readonly */
  13397. String category;
  13398. Camera cullCamera;
  13399. bool drawDebug;
  13400. IntRect rect;
  13401. /* readonly */
  13402. int refs;
  13403. RenderPath renderPath;
  13404. Scene scene;
  13405. /* readonly */
  13406. StringHash type;
  13407. /* readonly */
  13408. String typeName;
  13409. /* readonly */
  13410. int weakRefs;
  13411. };
  13412. class WeakHandle
  13413. {
  13414. // Methods:
  13415. RefCounted Get() const;
  13416. // Properties:
  13417. /* readonly */
  13418. bool expired;
  13419. /* readonly */
  13420. int refs;
  13421. /* readonly */
  13422. int weakRefs;
  13423. };
  13424. class Window
  13425. {
  13426. // Methods:
  13427. void AddChild(UIElement);
  13428. void AddTag(const String&);
  13429. void AddTags(const String&, int8 = ';');
  13430. void ApplyAttributes();
  13431. void BringToFront();
  13432. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13433. void DisableLayoutUpdate();
  13434. IntVector2 ElementToScreen(const IntVector2&);
  13435. void EnableLayoutUpdate();
  13436. uint FindChild(UIElement) const;
  13437. Variant GetAttribute(const String&) const;
  13438. ValueAnimation GetAttributeAnimation(const String&) const;
  13439. float GetAttributeAnimationSpeed(const String&) const;
  13440. float GetAttributeAnimationTime(const String&) const;
  13441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13442. Variant GetAttributeDefault(const String&) const;
  13443. UIElement GetChild(const String&, bool = false) const;
  13444. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13445. Array<UIElement> GetChildren(bool = false) const;
  13446. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13447. UIElement GetElementEventSender() const;
  13448. bool GetInterceptNetworkUpdate(const String&) const;
  13449. uint GetNumChildren(bool) const;
  13450. bool HasSubscribedToEvent(Object, const String&);
  13451. bool HasSubscribedToEvent(const String&);
  13452. bool HasTag(const String&) const;
  13453. void InsertChild(uint, UIElement);
  13454. bool IsInside(IntVector2, bool);
  13455. bool IsInsideCombined(IntVector2, bool);
  13456. bool Load(File, bool = false);
  13457. bool Load(VectorBuffer&, bool = false);
  13458. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13459. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13460. bool LoadJSON(const JSONValue&, bool = false);
  13461. bool LoadXML(File);
  13462. bool LoadXML(VectorBuffer&);
  13463. bool LoadXML(XMLFile, XMLFile);
  13464. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13465. bool LoadXML(const XMLElement&, bool = false);
  13466. void MarkNetworkUpdate() const;
  13467. void Remove();
  13468. void RemoveAllChildren();
  13469. void RemoveAllTags();
  13470. void RemoveAttributeAnimation(const String&);
  13471. void RemoveChild(UIElement, uint = 0);
  13472. void RemoveChild(uint);
  13473. void RemoveInstanceDefault();
  13474. void RemoveObjectAnimation();
  13475. bool RemoveTag(const String&);
  13476. void ResetDeepEnabled();
  13477. void ResetToDefault();
  13478. bool Save(File) const;
  13479. bool Save(VectorBuffer&) const;
  13480. bool SaveJSON(JSONValue&) const;
  13481. bool SaveXML(File, const String& = "\t");
  13482. bool SaveXML(VectorBuffer&, const String& = "\t");
  13483. bool SaveXML(XMLElement&) const;
  13484. IntVector2 ScreenToElement(const IntVector2&);
  13485. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13486. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13487. void SetAnimationTime(float);
  13488. bool SetAttribute(const String&, const Variant&);
  13489. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13490. void SetAttributeAnimationSpeed(const String&, float);
  13491. void SetAttributeAnimationTime(const String&, float);
  13492. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13493. void SetDeepEnabled(bool);
  13494. void SetEnabledRecursive(bool);
  13495. void SetFixedHeight(int);
  13496. void SetFixedSize(int, int);
  13497. void SetFixedWidth(int);
  13498. void SetFullImageRect();
  13499. void SetHoverOffset(int, int);
  13500. void SetInterceptNetworkUpdate(const String&, bool);
  13501. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13502. void SetMaxAnchor(float, float);
  13503. void SetMaxSize(int, int);
  13504. void SetMinAnchor(float, float);
  13505. void SetMinSize(int, int);
  13506. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13507. void SetPivot(float, float);
  13508. void SetPosition(int, int);
  13509. void SetSize(int, int);
  13510. bool SetStyle(const String&, XMLFile = null);
  13511. bool SetStyle(const XMLElement&);
  13512. bool SetStyleAuto(XMLFile = null);
  13513. void UpdateLayout();
  13514. const Variant& GetVar(const StringHash&);
  13515. // Properties:
  13516. bool animationEnabled;
  13517. /* readonly */
  13518. Array<Variant> attributeDefaults;
  13519. /* readonly */
  13520. Array<AttributeInfo> attributeInfos;
  13521. Array<Variant> attributes;
  13522. BlendMode blendMode;
  13523. IntRect border;
  13524. bool bringToBack;
  13525. bool bringToFront;
  13526. /* readonly */
  13527. String category;
  13528. /* readonly */
  13529. IntVector2 childOffset;
  13530. /* readonly */
  13531. Array<UIElement> children;
  13532. IntRect clipBorder;
  13533. bool clipChildren;
  13534. /* writeonly */
  13535. Color color;
  13536. /* readonly */
  13537. bool colorGradient;
  13538. Array<Color> colors;
  13539. /* readonly */
  13540. IntRect combinedScreenRect;
  13541. XMLFile defaultStyle;
  13542. /* readonly */
  13543. float derivedOpacity;
  13544. /* readonly */
  13545. uint dragButtonCombo;
  13546. /* readonly */
  13547. int dragButtonCount;
  13548. uint dragDropMode;
  13549. bool editable;
  13550. bool elementEventSender;
  13551. bool enableAnchor;
  13552. bool enabled;
  13553. /* readonly */
  13554. bool enabledSelf;
  13555. /* readonly */
  13556. bool fixedHeight;
  13557. bool fixedHeightResizing;
  13558. /* readonly */
  13559. bool fixedSize;
  13560. /* readonly */
  13561. bool fixedWidth;
  13562. bool fixedWidthResizing;
  13563. bool focus;
  13564. FocusMode focusMode;
  13565. int height;
  13566. HorizontalAlignment horizontalAlignment;
  13567. IntVector2 hoverOffset;
  13568. /* readonly */
  13569. bool hovering;
  13570. IntRect imageBorder;
  13571. IntRect imageRect;
  13572. int indent;
  13573. int indentSpacing;
  13574. /* readonly */
  13575. int indentWidth;
  13576. bool internal;
  13577. IntRect layoutBorder;
  13578. Vector2 layoutFlexScale;
  13579. LayoutMode layoutMode;
  13580. int layoutSpacing;
  13581. Vector2 maxAnchor;
  13582. int maxHeight;
  13583. IntVector2 maxOffset;
  13584. IntVector2 maxSize;
  13585. int maxWidth;
  13586. Vector2 minAnchor;
  13587. int minHeight;
  13588. IntVector2 minOffset;
  13589. IntVector2 minSize;
  13590. int minWidth;
  13591. bool modal;
  13592. bool modalAutoDismiss;
  13593. Color modalFrameColor;
  13594. IntVector2 modalFrameSize;
  13595. Color modalShadeColor;
  13596. bool movable;
  13597. String name;
  13598. /* readonly */
  13599. uint numAllChildren;
  13600. /* readonly */
  13601. uint numAttributes;
  13602. /* readonly */
  13603. uint numChildren;
  13604. ObjectAnimation objectAnimation;
  13605. float opacity;
  13606. UIElement parent;
  13607. Vector2 pivot;
  13608. IntVector2 position;
  13609. int priority;
  13610. /* readonly */
  13611. int refs;
  13612. bool resizable;
  13613. IntRect resizeBorder;
  13614. /* readonly */
  13615. UIElement root;
  13616. /* readonly */
  13617. IntVector2 screenPosition;
  13618. bool selected;
  13619. IntVector2 size;
  13620. bool sortChildren;
  13621. String style;
  13622. /* readonly */
  13623. Array<String> tags;
  13624. bool temporary;
  13625. Texture texture;
  13626. bool tiled;
  13627. TraversalMode traversalMode;
  13628. /* readonly */
  13629. StringHash type;
  13630. /* readonly */
  13631. String typeName;
  13632. bool useDerivedOpacity;
  13633. /* readonly */
  13634. VariantMap vars;
  13635. VerticalAlignment verticalAlignment;
  13636. bool visible;
  13637. /* readonly */
  13638. bool visibleEffective;
  13639. /* readonly */
  13640. int weakRefs;
  13641. int width;
  13642. };
  13643. class XMLElement
  13644. {
  13645. // Methods:
  13646. XMLElement CreateChild(const String&);
  13647. String GetAttribute(const String& = String ( )) const;
  13648. String GetAttributeLower(const String&) const;
  13649. Array<String> GetAttributeNames() const;
  13650. String GetAttributeUpper(const String&) const;
  13651. bool GetBool(const String&) const;
  13652. BoundingBox GetBoundingBox() const;
  13653. XMLElement GetChild(const String& = String ( )) const;
  13654. Color GetColor(const String&) const;
  13655. double GetDouble(const String&) const;
  13656. float GetFloat(const String&) const;
  13657. int GetInt(const String&) const;
  13658. IntRect GetIntRect(const String&) const;
  13659. IntVector2 GetIntVector2(const String&) const;
  13660. IntVector3 GetIntVector3(const String&) const;
  13661. Matrix3 GetMatrix3(const String&) const;
  13662. Matrix3x4 GetMatrix3x4(const String&) const;
  13663. Matrix4 GetMatrix4(const String&) const;
  13664. XMLElement GetNext(const String& = String ( )) const;
  13665. XMLElement GetOrCreateChild(const String&);
  13666. Quaternion GetQuaternion(const String&) const;
  13667. ResourceRef GetResourceRef() const;
  13668. ResourceRefList GetResourceRefList() const;
  13669. uint GetUInt(const String&) const;
  13670. String GetValue() const;
  13671. Variant GetVariant() const;
  13672. VariantMap GetVariantMap() const;
  13673. Array<Variant> GetVariantVector() const;
  13674. Vector2 GetVector2(const String&) const;
  13675. Vector3 GetVector3(const String&) const;
  13676. Vector4 GetVector4(const String&) const;
  13677. Variant GetVectorVariant(const String&) const;
  13678. bool HasAttribute(const String&) const;
  13679. bool HasChild(const String&) const;
  13680. bool RemoveAttribute(const String& = String ( ));
  13681. bool RemoveChild(const String&);
  13682. bool RemoveChild(const XMLElement&);
  13683. bool RemoveChildren(const String& = String ( ));
  13684. XPathResultSet Select(const String&);
  13685. XPathResultSet SelectPrepared(const XPathQuery&);
  13686. XMLElement SelectSingle(const String&);
  13687. XMLElement SelectSinglePrepared(const XPathQuery&);
  13688. bool SetAttribute(const String&);
  13689. bool SetAttribute(const String&, const String&);
  13690. bool SetBool(const String&, bool);
  13691. bool SetBoundingBox(const BoundingBox&);
  13692. bool SetColor(const String&, const Color&);
  13693. bool SetDouble(const String&, double);
  13694. bool SetFloat(const String&, float);
  13695. bool SetInt(const String&, int);
  13696. bool SetIntRect(const String&, const IntRect&);
  13697. bool SetIntVector2(const String&, const IntVector2&);
  13698. bool SetIntVector3(const String&, const IntVector3&);
  13699. bool SetMatrix3(const String&, const Matrix3&);
  13700. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13701. bool SetMatrix4(const String&, const Matrix4&);
  13702. bool SetQuaternion(const String&, const Quaternion&);
  13703. bool SetResourceRef(const String&, const ResourceRef&);
  13704. bool SetResourceRefList(const String&, const ResourceRefList&);
  13705. bool SetUInt(const String&, uint);
  13706. bool SetValue(const String&);
  13707. bool SetVariant(const Variant&);
  13708. bool SetVariantMap(const VariantMap&);
  13709. bool SetVariantVector(Array<Variant>);
  13710. bool SetVector2(const String&, const Vector2&);
  13711. bool SetVector3(const String&, const Vector3&);
  13712. bool SetVector4(const String&, const Vector4&);
  13713. bool SetVectorVariant(const String&, const Variant&);
  13714. // Properties:
  13715. /* readonly */
  13716. XMLFile file;
  13717. /* readonly */
  13718. bool isNull;
  13719. /* readonly */
  13720. String name;
  13721. /* readonly */
  13722. XMLElement nextResult;
  13723. /* readonly */
  13724. bool notNull;
  13725. /* readonly */
  13726. uint numAttributes;
  13727. /* readonly */
  13728. XMLElement parent;
  13729. String value;
  13730. };
  13731. class XMLFile
  13732. {
  13733. // Methods:
  13734. XMLElement CreateRoot(const String&);
  13735. bool FromString(const String&);
  13736. XMLElement GetOrCreateRoot(const String&);
  13737. XMLElement GetRoot(const String& = String ( ));
  13738. bool HasSubscribedToEvent(Object, const String&);
  13739. bool HasSubscribedToEvent(const String&);
  13740. bool Load(File);
  13741. bool Load(VectorBuffer&);
  13742. bool Load(const String&);
  13743. void Patch(XMLElement);
  13744. void Patch(XMLFile);
  13745. bool Save(File) const;
  13746. bool Save(File, const String&) const;
  13747. bool Save(VectorBuffer&) const;
  13748. bool Save(const String&) const;
  13749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13750. String ToString(const String& = String ( "\t" )) const;
  13751. // Properties:
  13752. /* readonly */
  13753. String category;
  13754. /* readonly */
  13755. uint memoryUse;
  13756. String name;
  13757. /* readonly */
  13758. int refs;
  13759. /* readonly */
  13760. XMLElement root;
  13761. /* readonly */
  13762. StringHash type;
  13763. /* readonly */
  13764. String typeName;
  13765. /* readonly */
  13766. uint useTimer;
  13767. /* readonly */
  13768. int weakRefs;
  13769. };
  13770. class XPathQuery
  13771. {
  13772. // Methods:
  13773. void Bind();
  13774. void Clear();
  13775. XPathResultSet Evaluate(XMLElement);
  13776. bool EvaluateToBool(XMLElement);
  13777. float EvaluateToFloat(XMLElement);
  13778. String EvaluateToString(XMLElement);
  13779. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13780. bool SetVariable(const String&, bool);
  13781. bool SetVariable(const String&, const String&);
  13782. bool SetVariable(const String&, const XPathResultSet&);
  13783. bool SetVariable(const String&, float);
  13784. // Properties:
  13785. String query;
  13786. };
  13787. class XPathResultSet
  13788. {
  13789. // Properties:
  13790. /* readonly */
  13791. bool empty;
  13792. /* readonly */
  13793. XMLElement firstResult;
  13794. /* readonly */
  13795. uint size;
  13796. };
  13797. class Zone
  13798. {
  13799. // Methods:
  13800. void ApplyAttributes();
  13801. void DrawDebugGeometry(DebugRenderer, bool);
  13802. Variant GetAttribute(const String&) const;
  13803. ValueAnimation GetAttributeAnimation(const String&) const;
  13804. float GetAttributeAnimationSpeed(const String&) const;
  13805. float GetAttributeAnimationTime(const String&) const;
  13806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13807. Variant GetAttributeDefault(const String&) const;
  13808. bool GetInterceptNetworkUpdate(const String&) const;
  13809. bool HasSubscribedToEvent(Object, const String&);
  13810. bool HasSubscribedToEvent(const String&);
  13811. bool IsInView(Camera) const;
  13812. bool Load(File, bool = false);
  13813. bool Load(VectorBuffer&, bool = false);
  13814. bool LoadJSON(const JSONValue&, bool = false);
  13815. bool LoadXML(const XMLElement&, bool = false);
  13816. void MarkNetworkUpdate() const;
  13817. void Remove();
  13818. void RemoveAttributeAnimation(const String&);
  13819. void RemoveInstanceDefault();
  13820. void RemoveObjectAnimation();
  13821. void ResetToDefault();
  13822. bool Save(File) const;
  13823. bool Save(VectorBuffer&) const;
  13824. bool SaveJSON(JSONValue&) const;
  13825. bool SaveXML(XMLElement&) const;
  13826. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13827. void SetAnimationTime(float);
  13828. bool SetAttribute(const String&, const Variant&);
  13829. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13830. void SetAttributeAnimationSpeed(const String&, float);
  13831. void SetAttributeAnimationTime(const String&, float);
  13832. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13833. void SetInterceptNetworkUpdate(const String&, bool);
  13834. // Properties:
  13835. Color ambientColor;
  13836. /* readonly */
  13837. Color ambientEndColor;
  13838. bool ambientGradient;
  13839. /* readonly */
  13840. Color ambientStartColor;
  13841. bool animationEnabled;
  13842. /* readonly */
  13843. Array<Variant> attributeDefaults;
  13844. /* readonly */
  13845. Array<AttributeInfo> attributeInfos;
  13846. Array<Variant> attributes;
  13847. BoundingBox boundingBox;
  13848. bool castShadows;
  13849. /* readonly */
  13850. String category;
  13851. float drawDistance;
  13852. bool enabled;
  13853. /* readonly */
  13854. bool enabledEffective;
  13855. Color fogColor;
  13856. float fogEnd;
  13857. float fogHeight;
  13858. float fogHeightScale;
  13859. float fogStart;
  13860. bool heightFog;
  13861. /* readonly */
  13862. uint id;
  13863. /* readonly */
  13864. bool inView;
  13865. /* readonly */
  13866. Matrix3x4 inverseWorldTransform;
  13867. uint lightMask;
  13868. float lodBias;
  13869. uint maxLights;
  13870. /* readonly */
  13871. Node node;
  13872. /* readonly */
  13873. uint numAttributes;
  13874. ObjectAnimation objectAnimation;
  13875. bool occludee;
  13876. bool occluder;
  13877. bool override;
  13878. int priority;
  13879. /* readonly */
  13880. int refs;
  13881. float shadowDistance;
  13882. uint shadowMask;
  13883. bool temporary;
  13884. /* readonly */
  13885. StringHash type;
  13886. /* readonly */
  13887. String typeName;
  13888. uint viewMask;
  13889. /* readonly */
  13890. int weakRefs;
  13891. /* readonly */
  13892. BoundingBox worldBoundingBox;
  13893. uint zoneMask;
  13894. Texture zoneTexture;
  13895. };
  13896. // Enumerations
  13897. enum AnimationBlendMode
  13898. {
  13899. ABM_LERP,
  13900. ABM_ADDITIVE,
  13901. };
  13902. enum AutoRemoveMode
  13903. {
  13904. REMOVE_DISABLED,
  13905. REMOVE_COMPONENT,
  13906. REMOVE_NODE,
  13907. };
  13908. enum BlendMode
  13909. {
  13910. BLEND_REPLACE,
  13911. BLEND_ADD,
  13912. BLEND_MULTIPLY,
  13913. BLEND_ALPHA,
  13914. BLEND_ADDALPHA,
  13915. BLEND_PREMULALPHA,
  13916. BLEND_INVDESTALPHA,
  13917. BLEND_SUBTRACT,
  13918. BLEND_SUBTRACTALPHA,
  13919. };
  13920. enum BodyType2D
  13921. {
  13922. BT_STATIC,
  13923. BT_KINEMATIC,
  13924. BT_DYNAMIC,
  13925. };
  13926. enum CollisionEventMode
  13927. {
  13928. COLLISION_NEVER,
  13929. COLLISION_ACTIVE,
  13930. COLLISION_ALWAYS,
  13931. };
  13932. enum CompareMode
  13933. {
  13934. CMP_ALWAYS,
  13935. CMP_EQUAL,
  13936. CMP_NOTEQUAL,
  13937. CMP_LESS,
  13938. CMP_LESSEQUAL,
  13939. CMP_GREATER,
  13940. CMP_GREATEREQUAL,
  13941. };
  13942. enum CompressedFormat
  13943. {
  13944. CF_NONE,
  13945. CF_RGBA,
  13946. CF_DXT1,
  13947. CF_DXT3,
  13948. CF_DXT5,
  13949. CF_ETC1,
  13950. CF_PVRTC_RGB_2BPP,
  13951. CF_PVRTC_RGBA_2BPP,
  13952. CF_PVRTC_RGB_4BPP,
  13953. CF_PVRTC_RGBA_4BPP,
  13954. };
  13955. enum ConstraintType
  13956. {
  13957. CONSTRAINT_POINT,
  13958. CONSTRAINT_HINGE,
  13959. CONSTRAINT_SLIDER,
  13960. CONSTRAINT_CONETWIST,
  13961. };
  13962. enum Corner
  13963. {
  13964. C_TOPLEFT,
  13965. C_TOPRIGHT,
  13966. C_BOTTOMLEFT,
  13967. C_BOTTOMRIGHT,
  13968. };
  13969. enum CreateMode
  13970. {
  13971. REPLICATED,
  13972. LOCAL,
  13973. };
  13974. enum CrowdAgentRequestedTarget
  13975. {
  13976. CA_REQUESTEDTARGET_NONE,
  13977. CA_REQUESTEDTARGET_POSITION,
  13978. CA_REQUESTEDTARGET_VELOCITY,
  13979. };
  13980. enum CrowdAgentState
  13981. {
  13982. CA_STATE_INVALID,
  13983. CA_STATE_WALKING,
  13984. CA_STATE_OFFMESH,
  13985. };
  13986. enum CrowdAgentTargetState
  13987. {
  13988. CA_TARGET_NONE,
  13989. CA_TARGET_FAILED,
  13990. CA_TARGET_VALID,
  13991. CA_TARGET_REQUESTING,
  13992. CA_TARGET_WAITINGFORQUEUE,
  13993. CA_TARGET_WAITINGFORPATH,
  13994. CA_TARGET_VELOCITY,
  13995. };
  13996. enum CubeMapFace
  13997. {
  13998. FACE_POSITIVE_X,
  13999. FACE_NEGATIVE_X,
  14000. FACE_POSITIVE_Y,
  14001. FACE_NEGATIVE_Y,
  14002. FACE_POSITIVE_Z,
  14003. FACE_NEGATIVE_Z,
  14004. };
  14005. enum CullMode
  14006. {
  14007. CULL_NONE,
  14008. CULL_CCW,
  14009. CULL_CW,
  14010. };
  14011. enum CursorShape
  14012. {
  14013. CS_NORMAL,
  14014. CS_IBEAM,
  14015. CS_CROSS,
  14016. CS_RESIZEVERTICAL,
  14017. CS_RESIZEDIAGONAL_TOPRIGHT,
  14018. CS_RESIZEHORIZONTAL,
  14019. CS_RESIZEDIAGONAL_TOPLEFT,
  14020. CS_RESIZE_ALL,
  14021. CS_ACCEPTDROP,
  14022. CS_REJECTDROP,
  14023. CS_BUSY,
  14024. CS_BUSY_ARROW,
  14025. };
  14026. enum DBAPI
  14027. {
  14028. DBAPI_SQLITE,
  14029. DBAPI_ODBC,
  14030. };
  14031. enum DumpMode
  14032. {
  14033. DOXYGEN,
  14034. C_HEADER,
  14035. };
  14036. enum EmitterType
  14037. {
  14038. EMITTER_SPHERE,
  14039. EMITTER_BOX,
  14040. };
  14041. enum EmitterType2D
  14042. {
  14043. EMITTER_TYPE_GRAVITY,
  14044. EMITTER_TYPE_RADIAL,
  14045. };
  14046. enum FaceCameraMode
  14047. {
  14048. FC_NONE,
  14049. FC_ROTATE_XYZ,
  14050. FC_ROTATE_Y,
  14051. FC_LOOKAT_XYZ,
  14052. FC_LOOKAT_Y,
  14053. FC_LOOKAT_MIXED,
  14054. FC_DIRECTION,
  14055. };
  14056. enum FileMode
  14057. {
  14058. FILE_READ,
  14059. FILE_WRITE,
  14060. FILE_READWRITE,
  14061. };
  14062. enum FillMode
  14063. {
  14064. FILL_SOLID,
  14065. FILL_WIREFRAME,
  14066. FILL_POINT,
  14067. };
  14068. enum FocusMode
  14069. {
  14070. FM_NOTFOCUSABLE,
  14071. FM_RESETFOCUS,
  14072. FM_FOCUSABLE,
  14073. FM_FOCUSABLE_DEFOCUSABLE,
  14074. };
  14075. enum FontType
  14076. {
  14077. FONT_NONE,
  14078. FONT_FREETYPE,
  14079. FONT_BITMAP,
  14080. };
  14081. enum HighlightMode
  14082. {
  14083. HM_NEVER,
  14084. HM_FOCUS,
  14085. HM_ALWAYS,
  14086. };
  14087. enum HorizontalAlignment
  14088. {
  14089. HA_LEFT,
  14090. HA_CENTER,
  14091. HA_RIGHT,
  14092. HA_CUSTOM,
  14093. };
  14094. enum HttpRequestState
  14095. {
  14096. HTTP_INITIALIZING,
  14097. HTTP_ERROR,
  14098. HTTP_OPEN,
  14099. HTTP_CLOSED,
  14100. };
  14101. enum InterpMethod
  14102. {
  14103. IM_NONE,
  14104. IM_LINEAR,
  14105. IM_SPLINE,
  14106. };
  14107. enum InterpolationMode
  14108. {
  14109. BEZIER_CURVE,
  14110. CATMULL_ROM_CURVE,
  14111. LINEAR_CURVE,
  14112. CATMULL_ROM_FULL_CURVE,
  14113. };
  14114. enum Intersection
  14115. {
  14116. OUTSIDE,
  14117. INTERSECTS,
  14118. INSIDE,
  14119. };
  14120. enum JSONNumberType
  14121. {
  14122. JSONNT_NAN,
  14123. JSONNT_INT,
  14124. JSONNT_UINT,
  14125. JSONNT_FLOAT_DOUBLE,
  14126. };
  14127. enum JSONValueType
  14128. {
  14129. JSON_NULL,
  14130. JSON_BOOL,
  14131. JSON_NUMBER,
  14132. JSON_STRING,
  14133. JSON_ARRAY,
  14134. JSON_OBJECT,
  14135. };
  14136. enum LayoutMode
  14137. {
  14138. LM_FREE,
  14139. LM_HORIZONTAL,
  14140. LM_VERTICAL,
  14141. };
  14142. enum LightType
  14143. {
  14144. LIGHT_DIRECTIONAL,
  14145. LIGHT_SPOT,
  14146. LIGHT_POINT,
  14147. };
  14148. enum LoadMode
  14149. {
  14150. LOAD_RESOURCES_ONLY,
  14151. LOAD_SCENE,
  14152. LOAD_SCENE_AND_RESOURCES,
  14153. };
  14154. enum LoopMode2D
  14155. {
  14156. LM_DEFAULT,
  14157. LM_FORCE_LOOPED,
  14158. LM_FORCE_CLAMPED,
  14159. };
  14160. enum MouseMode
  14161. {
  14162. MM_ABSOLUTE,
  14163. MM_RELATIVE,
  14164. MM_WRAP,
  14165. MM_FREE,
  14166. };
  14167. enum NavigationPushiness
  14168. {
  14169. NAVIGATIONPUSHINESS_LOW,
  14170. NAVIGATIONPUSHINESS_MEDIUM,
  14171. NAVIGATIONPUSHINESS_HIGH,
  14172. NAVIGATIONPUSHINESS_NONE,
  14173. };
  14174. enum NavigationQuality
  14175. {
  14176. NAVIGATIONQUALITY_LOW,
  14177. NAVIGATIONQUALITY_MEDIUM,
  14178. NAVIGATIONQUALITY_HIGH,
  14179. };
  14180. enum NavmeshPartitionType
  14181. {
  14182. NAVMESH_PARTITION_WATERSHED,
  14183. NAVMESH_PARTITION_MONOTONE,
  14184. };
  14185. enum Orientation
  14186. {
  14187. O_HORIZONTAL,
  14188. O_VERTICAL,
  14189. };
  14190. enum Orientation2D
  14191. {
  14192. O_ORTHOGONAL,
  14193. O_ISOMETRIC,
  14194. O_STAGGERED,
  14195. O_HEXAGONAL,
  14196. };
  14197. enum PassLightingMode
  14198. {
  14199. LIGHTING_UNLIT,
  14200. LIGHTING_PERVERTEX,
  14201. LIGHTING_PERPIXEL,
  14202. };
  14203. enum PrimitiveType
  14204. {
  14205. TRIANGLE_LIST,
  14206. LINE_LIST,
  14207. POINT_LIST,
  14208. TRIANGLE_STRIP,
  14209. LINE_STRIP,
  14210. TRIANGLE_FAN,
  14211. };
  14212. enum RayQueryLevel
  14213. {
  14214. RAY_AABB,
  14215. RAY_OBB,
  14216. RAY_TRIANGLE,
  14217. RAY_TRIANGLE_UV,
  14218. };
  14219. enum RenderCommandSortMode
  14220. {
  14221. SORT_FRONTTOBACK,
  14222. SORT_BACKTOFRONT,
  14223. };
  14224. enum RenderCommandType
  14225. {
  14226. CMD_NONE,
  14227. CMD_CLEAR,
  14228. CMD_SCENEPASS,
  14229. CMD_QUAD,
  14230. CMD_FORWARDLIGHTS,
  14231. CMD_LIGHTVOLUMES,
  14232. CMD_RENDERUI,
  14233. CMD_SENDEVENT,
  14234. };
  14235. enum RenderSurfaceUpdateMode
  14236. {
  14237. SURFACE_MANUALUPDATE,
  14238. SURFACE_UPDATEVISIBLE,
  14239. SURFACE_UPDATEALWAYS,
  14240. };
  14241. enum RenderTargetSizeMode
  14242. {
  14243. SIZE_ABSOLUTE,
  14244. SIZE_VIEWPORTDIVISOR,
  14245. SIZE_VIEWPORTMULTIPLIER,
  14246. };
  14247. enum ShadowQuality
  14248. {
  14249. SHADOWQUALITY_SIMPLE_16BIT,
  14250. SHADOWQUALITY_SIMPLE_24BIT,
  14251. SHADOWQUALITY_PCF_16BIT,
  14252. SHADOWQUALITY_PCF_24BIT,
  14253. SHADOWQUALITY_VSM,
  14254. SHADOWQUALITY_BLUR_VSM,
  14255. };
  14256. enum ShapeType
  14257. {
  14258. SHAPE_BOX,
  14259. SHAPE_SPHERE,
  14260. SHAPE_STATICPLANE,
  14261. SHAPE_CYLINDER,
  14262. SHAPE_CAPSULE,
  14263. SHAPE_CONE,
  14264. SHAPE_TRIANGLEMESH,
  14265. SHAPE_CONVEXHULL,
  14266. SHAPE_TERRAIN,
  14267. };
  14268. enum TextEffect
  14269. {
  14270. TE_NONE,
  14271. TE_SHADOW,
  14272. TE_STROKE,
  14273. };
  14274. enum TextureAddressMode
  14275. {
  14276. ADDRESS_WRAP,
  14277. ADDRESS_MIRROR,
  14278. ADDRESS_CLAMP,
  14279. ADDRESS_BORDER,
  14280. };
  14281. enum TextureCoordinate
  14282. {
  14283. COORD_U,
  14284. COORD_V,
  14285. COORD_W,
  14286. };
  14287. enum TextureFilterMode
  14288. {
  14289. FILTER_NEAREST,
  14290. FILTER_BILINEAR,
  14291. FILTER_TRILINEAR,
  14292. FILTER_ANISOTROPIC,
  14293. FILTER_NEAREST_ANISOTROPIC,
  14294. FILTER_DEFAULT,
  14295. };
  14296. enum TextureUnit
  14297. {
  14298. TU_DIFFUSE,
  14299. TU_ALBEDOBUFFER,
  14300. TU_NORMAL,
  14301. TU_NORMALBUFFER,
  14302. TU_SPECULAR,
  14303. TU_EMISSIVE,
  14304. TU_ENVIRONMENT,
  14305. TU_LIGHTRAMP,
  14306. TU_LIGHTSHAPE,
  14307. TU_SHADOWMAP,
  14308. TU_CUSTOM1,
  14309. TU_CUSTOM2,
  14310. TU_VOLUMEMAP,
  14311. TU_FACESELECT,
  14312. TU_INDIRECTION,
  14313. TU_DEPTHBUFFER,
  14314. TU_LIGHTBUFFER,
  14315. TU_ZONE,
  14316. MAX_MATERIAL_TEXTURE_UNITS,
  14317. MAX_TEXTURE_UNITS,
  14318. };
  14319. enum TextureUsage
  14320. {
  14321. TEXTURE_STATIC,
  14322. TEXTURE_DYNAMIC,
  14323. TEXTURE_RENDERTARGET,
  14324. TEXTURE_DEPTHSTENCIL,
  14325. };
  14326. enum TileMapLayerType2D
  14327. {
  14328. LT_TILE_LAYER,
  14329. LT_OBJECT_GROUP,
  14330. LT_IMAGE_LAYER,
  14331. LT_INVALID,
  14332. };
  14333. enum TileObjectType2D
  14334. {
  14335. OT_RECTANGLE,
  14336. OT_ELLIPSE,
  14337. OT_POLYGON,
  14338. OT_POLYLINE,
  14339. OT_TILE,
  14340. OT_INVALID,
  14341. };
  14342. enum TrailType
  14343. {
  14344. TT_FACE_CAMERA,
  14345. TT_BONE,
  14346. };
  14347. enum TransformSpace
  14348. {
  14349. TS_LOCAL,
  14350. TS_PARENT,
  14351. TS_WORLD,
  14352. };
  14353. enum TraversalMode
  14354. {
  14355. TM_BREADTH_FIRST,
  14356. TM_DEPTH_FIRST,
  14357. };
  14358. enum VariantType
  14359. {
  14360. VAR_NONE,
  14361. VAR_INT,
  14362. VAR_BOOL,
  14363. VAR_FLOAT,
  14364. VAR_VECTOR2,
  14365. VAR_VECTOR3,
  14366. VAR_VECTOR4,
  14367. VAR_QUATERNION,
  14368. VAR_COLOR,
  14369. VAR_STRING,
  14370. VAR_BUFFER,
  14371. VAR_VOIDPTR,
  14372. VAR_RESOURCEREF,
  14373. VAR_RESOURCEREFLIST,
  14374. VAR_VARIANTVECTOR,
  14375. VAR_VARIANTMAP,
  14376. VAR_INTRECT,
  14377. VAR_INTVECTOR2,
  14378. VAR_INTVECTOR3,
  14379. VAR_PTR,
  14380. VAR_MATRIX3,
  14381. VAR_MATRIX3X4,
  14382. VAR_MATRIX4,
  14383. VAR_DOUBLE,
  14384. VAR_STRINGVECTOR,
  14385. VAR_RECT,
  14386. };
  14387. enum VertexElementSemantic
  14388. {
  14389. SEM_POSITION,
  14390. SEM_NORMAL,
  14391. SEM_BINORMAL,
  14392. SEM_TANGENT,
  14393. SEM_TEXCOORD,
  14394. SEM_COLOR,
  14395. SEM_BLENDWEIGHTS,
  14396. SEM_BLENDINDICES,
  14397. SEM_OBJECTINDEX,
  14398. MAX_VERTEX_ELEMENT_SEMANTICS,
  14399. };
  14400. enum VertexElementType
  14401. {
  14402. TYPE_INT,
  14403. TYPE_FLOAT,
  14404. TYPE_VECTOR2,
  14405. TYPE_VECTOR3,
  14406. TYPE_VECTOR4,
  14407. TYPE_UBYTE4,
  14408. TYPE_UBYTE4_NORM,
  14409. MAX_VERTEX_ELEMENT_TYPES,
  14410. };
  14411. enum VerticalAlignment
  14412. {
  14413. VA_TOP,
  14414. VA_CENTER,
  14415. VA_BOTTOM,
  14416. VA_CUSTOM,
  14417. };
  14418. enum WrapMode
  14419. {
  14420. WM_LOOP,
  14421. WM_ONCE,
  14422. WM_CLAMP,
  14423. };
  14424. // Global functions
  14425. float Abs(float);
  14426. float Acos(float);
  14427. String AddTrailingSlash(const String&);
  14428. float Asin(float);
  14429. float Atan(float);
  14430. float Atan2(float, float);
  14431. float Ceil(float);
  14432. int CeilToInt(float);
  14433. float Clamp(float, float, float);
  14434. int Clamp(int, int, int);
  14435. void ClearDelayedExecute(const String& = String ( ));
  14436. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14437. float Cos(float);
  14438. uint CountSetBits(uint);
  14439. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14440. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14441. bool Equals(float, float);
  14442. void ErrorDialog(const String&, const String&);
  14443. float Floor(float);
  14444. int FloorToInt(float);
  14445. float Fract(float);
  14446. uint GetAlphaFormat();
  14447. Array<String> GetArguments();
  14448. String GetConsoleInput();
  14449. uint GetDepthStencilFormat();
  14450. Object GetEventSender();
  14451. String GetExtension(const String&, bool = true);
  14452. String GetFileName(const String&);
  14453. String GetFileNameAndExtension(const String&, bool = false);
  14454. String GetFileSizeString(uint64);
  14455. uint GetFloat16Format();
  14456. uint GetFloat32Format();
  14457. uint GetFormat(const String&);
  14458. Variant GetGlobalVar(const String&);
  14459. String GetInternalPath(const String&);
  14460. uint GetLinearDepthFormat();
  14461. uint GetLuminanceAlphaFormat();
  14462. uint GetLuminanceFormat();
  14463. uint GetMaxBones();
  14464. String GetMiniDumpDir();
  14465. uint GetNumLogicalCPUs();
  14466. uint GetNumPhysicalCPUs();
  14467. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  14468. Array<String> GetObjectCategories();
  14469. Array<String> GetObjectsByCategory(const String&);
  14470. String GetParentPath(const String&);
  14471. String GetPath(const String&);
  14472. String GetPlatform();
  14473. uint GetRG16Format();
  14474. uint GetRGBA16Format();
  14475. uint GetRGBAFloat16Format();
  14476. uint GetRGBAFloat32Format();
  14477. uint GetRGBAFormat();
  14478. uint GetRGBFormat();
  14479. uint GetRGFloat16Format();
  14480. uint GetRGFloat32Format();
  14481. uint GetRandomSeed();
  14482. uint GetReadableDepthFormat();
  14483. String GetTextureUnitName(TextureUnit);
  14484. VariantType GetVariantTypeFromName(const String&);
  14485. String GetVariantTypeName(VariantType);
  14486. bool HasSubscribedToEvent(Object, const String&);
  14487. bool HasSubscribedToEvent(const String&);
  14488. float InverseLerp(float, float, float);
  14489. bool IsAbsolutePath(const String&);
  14490. bool IsAlpha(uint);
  14491. bool IsDigit(uint);
  14492. bool IsNaN(float);
  14493. bool IsPowerOfTwo(uint);
  14494. String Join(Array<String>&, const String&);
  14495. float Lerp(float, float, float);
  14496. float Ln(float);
  14497. void MarkNetworkUpdate();
  14498. float Max(float, float);
  14499. int Max(int, int);
  14500. float Min(float, float);
  14501. int Min(int, int);
  14502. float Mod(float, float);
  14503. uint NextPowerOfTwo(uint);
  14504. void OpenConsoleWindow();
  14505. float Pow(float, float);
  14506. void Print(bool, bool = false);
  14507. void Print(const String&, bool = false);
  14508. void Print(const Variant&, bool = false);
  14509. void Print(float, bool = false);
  14510. void Print(int, bool = false);
  14511. void Print(uint, bool = false);
  14512. void PrintCallStack(bool = false);
  14513. float Random();
  14514. float Random(float);
  14515. float Random(float, float);
  14516. int RandomInt();
  14517. int RandomInt(int);
  14518. int RandomInt(int, int);
  14519. float RandomNormal(float, float);
  14520. void RegisterEventName(const String&);
  14521. void Remove();
  14522. String RemoveTrailingSlash(const String&);
  14523. String ReplaceExtension(const String&, const String&);
  14524. float Round(float);
  14525. int RoundToInt(float);
  14526. uint SDBMHash(uint, uint8);
  14527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14528. void SetGlobalVar(const String&, Variant&);
  14529. void SetMiniDumpDir(const String&);
  14530. void SetRandomSeed(uint);
  14531. float Sign(float);
  14532. float Sin(float);
  14533. float SmoothStep(float, float, float);
  14534. float Sqrt(float);
  14535. float StableRandom(const Vector2&);
  14536. float StableRandom(const Vector3&);
  14537. float StableRandom(float);
  14538. const String& GetTypeName(StringHash);
  14539. void SubscribeToEvent(Object, const String&, const String&);
  14540. void SubscribeToEvent(const String&, const String&);
  14541. float Tan(float);
  14542. uint ToLower(uint);
  14543. String ToStringHex(int);
  14544. uint ToUpper(uint);
  14545. void UnsubscribeFromAllEvents();
  14546. void UnsubscribeFromAllEventsExcept(Array<String>);
  14547. void UnsubscribeFromEvent(Object, const String&);
  14548. void UnsubscribeFromEvent(const String&);
  14549. void UnsubscribeFromEvents(Object);
  14550. Vector2 VectorCeil(const Vector2&);
  14551. Vector3 VectorCeil(const Vector3&);
  14552. Vector4 VectorCeil(const Vector4&);
  14553. IntVector2 VectorCeilToInt(const Vector2&);
  14554. IntVector3 VectorCeilToInt(const Vector3&);
  14555. Vector2 VectorFloor(const Vector2&);
  14556. Vector3 VectorFloor(const Vector3&);
  14557. Vector4 VectorFloor(const Vector4&);
  14558. IntVector2 VectorFloorToInt(const Vector2&);
  14559. IntVector3 VectorFloorToInt(const Vector3&);
  14560. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  14561. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  14562. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  14563. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  14564. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  14565. Vector2 VectorMax(const Vector2&, const Vector2&);
  14566. Vector3 VectorMax(const Vector3&, const Vector3&);
  14567. Vector4 VectorMax(const Vector4&, const Vector4&);
  14568. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  14569. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  14570. Vector2 VectorMin(const Vector2&, const Vector2&);
  14571. Vector3 VectorMin(const Vector3&, const Vector3&);
  14572. Vector4 VectorMin(const Vector4&, const Vector4&);
  14573. Vector2 VectorRound(const Vector2&);
  14574. Vector3 VectorRound(const Vector3&);
  14575. Vector4 VectorRound(const Vector4&);
  14576. IntVector2 VectorRoundToInt(const Vector2&);
  14577. IntVector3 VectorRoundToInt(const Vector3&);
  14578. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14579. // Global properties
  14580. DBAPI DBAPI;
  14581. Audio audio;
  14582. ResourceCache cache;
  14583. Console console;
  14584. Database database;
  14585. DebugHud debugHud;
  14586. DebugRenderer debugRenderer;
  14587. Engine engine;
  14588. FileSystem fileSystem;
  14589. VariantMap globalVars;
  14590. Graphics graphics;
  14591. Input input;
  14592. Localization localization;
  14593. Log log;
  14594. Network network;
  14595. Node node;
  14596. Octree octree;
  14597. PhysicsWorld physicsWorld;
  14598. PhysicsWorld2D physicsWorld2D;
  14599. Renderer renderer;
  14600. ResourceCache resourceCache;
  14601. Scene scene;
  14602. Script script;
  14603. ScriptFile scriptFile;
  14604. ScriptInstance self;
  14605. Time time;
  14606. UI ui;
  14607. // Global constants
  14608. uint AM_COMPONENTID;
  14609. uint AM_DEFAULT;
  14610. uint AM_FILE;
  14611. uint AM_FILEREADONLY;
  14612. uint AM_LATESTDATA;
  14613. uint AM_NET;
  14614. uint AM_NODEID;
  14615. uint AM_NODEIDVECTOR;
  14616. uint AM_NOEDIT;
  14617. Color BLACK;
  14618. Color BLUE;
  14619. uint8 CHANNEL_POSITION;
  14620. uint8 CHANNEL_ROTATION;
  14621. uint8 CHANNEL_SCALE;
  14622. uint CLEAR_COLOR;
  14623. uint CLEAR_DEPTH;
  14624. uint CLEAR_STENCIL;
  14625. int CONTROLLER_AXIS_LEFTX;
  14626. int CONTROLLER_AXIS_LEFTY;
  14627. int CONTROLLER_AXIS_RIGHTX;
  14628. int CONTROLLER_AXIS_RIGHTY;
  14629. int CONTROLLER_AXIS_TRIGGERLEFT;
  14630. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14631. int CONTROLLER_BUTTON_A;
  14632. int CONTROLLER_BUTTON_B;
  14633. int CONTROLLER_BUTTON_BACK;
  14634. int CONTROLLER_BUTTON_DPAD_DOWN;
  14635. int CONTROLLER_BUTTON_DPAD_LEFT;
  14636. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14637. int CONTROLLER_BUTTON_DPAD_UP;
  14638. int CONTROLLER_BUTTON_GUIDE;
  14639. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14640. int CONTROLLER_BUTTON_LEFTSTICK;
  14641. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14642. int CONTROLLER_BUTTON_RIGHTSTICK;
  14643. int CONTROLLER_BUTTON_START;
  14644. int CONTROLLER_BUTTON_X;
  14645. int CONTROLLER_BUTTON_Y;
  14646. Color CYAN;
  14647. uint DD_DISABLED;
  14648. uint DD_SOURCE;
  14649. uint DD_SOURCE_AND_TARGET;
  14650. uint DD_TARGET;
  14651. uint DEBUGHUD_SHOW_ALL;
  14652. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14653. uint DEBUGHUD_SHOW_MEMORY;
  14654. uint DEBUGHUD_SHOW_MODE;
  14655. uint DEBUGHUD_SHOW_NONE;
  14656. uint DEBUGHUD_SHOW_PROFILER;
  14657. uint DEBUGHUD_SHOW_STATS;
  14658. uint DEFAULT_LIGHTMASK;
  14659. uint DEFAULT_VIEWMASK;
  14660. uint DRAWABLE_ANY;
  14661. uint DRAWABLE_GEOMETRY;
  14662. uint DRAWABLE_GEOMETRY2D;
  14663. uint DRAWABLE_LIGHT;
  14664. uint DRAWABLE_ZONE;
  14665. uint FIRST_LOCAL_ID;
  14666. uint FIRST_REPLICATED_ID;
  14667. Color GRAY;
  14668. Color GREEN;
  14669. int HAT_CENTER;
  14670. int HAT_DOWN;
  14671. int HAT_LEFT;
  14672. int HAT_RIGHT;
  14673. int HAT_UP;
  14674. int KEY_0;
  14675. int KEY_1;
  14676. int KEY_2;
  14677. int KEY_3;
  14678. int KEY_4;
  14679. int KEY_5;
  14680. int KEY_6;
  14681. int KEY_7;
  14682. int KEY_8;
  14683. int KEY_9;
  14684. int KEY_A;
  14685. int KEY_ALT;
  14686. int KEY_APPLICATION;
  14687. int KEY_B;
  14688. int KEY_BACKSPACE;
  14689. int KEY_C;
  14690. int KEY_CAPSLOCK;
  14691. int KEY_CTRL;
  14692. int KEY_D;
  14693. int KEY_DELETE;
  14694. int KEY_DOWN;
  14695. int KEY_E;
  14696. int KEY_END;
  14697. int KEY_ESCAPE;
  14698. int KEY_F;
  14699. int KEY_F1;
  14700. int KEY_F10;
  14701. int KEY_F11;
  14702. int KEY_F12;
  14703. int KEY_F13;
  14704. int KEY_F14;
  14705. int KEY_F15;
  14706. int KEY_F16;
  14707. int KEY_F17;
  14708. int KEY_F18;
  14709. int KEY_F19;
  14710. int KEY_F2;
  14711. int KEY_F20;
  14712. int KEY_F21;
  14713. int KEY_F22;
  14714. int KEY_F23;
  14715. int KEY_F24;
  14716. int KEY_F3;
  14717. int KEY_F4;
  14718. int KEY_F5;
  14719. int KEY_F6;
  14720. int KEY_F7;
  14721. int KEY_F8;
  14722. int KEY_F9;
  14723. int KEY_G;
  14724. int KEY_GUI;
  14725. int KEY_H;
  14726. int KEY_HOME;
  14727. int KEY_I;
  14728. int KEY_INSERT;
  14729. int KEY_J;
  14730. int KEY_K;
  14731. int KEY_KP_0;
  14732. int KEY_KP_1;
  14733. int KEY_KP_2;
  14734. int KEY_KP_3;
  14735. int KEY_KP_4;
  14736. int KEY_KP_5;
  14737. int KEY_KP_6;
  14738. int KEY_KP_7;
  14739. int KEY_KP_8;
  14740. int KEY_KP_9;
  14741. int KEY_KP_DIVIDE;
  14742. int KEY_KP_ENTER;
  14743. int KEY_KP_MINUS;
  14744. int KEY_KP_MULTIPLY;
  14745. int KEY_KP_PERIOD;
  14746. int KEY_KP_PLUS;
  14747. int KEY_L;
  14748. int KEY_LALT;
  14749. int KEY_LCTRL;
  14750. int KEY_LEFT;
  14751. int KEY_LGUI;
  14752. int KEY_LSHIFT;
  14753. int KEY_M;
  14754. int KEY_N;
  14755. int KEY_NUMLOCKCLEAR;
  14756. int KEY_O;
  14757. int KEY_P;
  14758. int KEY_PAGEDOWN;
  14759. int KEY_PAGEUP;
  14760. int KEY_PAUSE;
  14761. int KEY_PRINTSCREEN;
  14762. int KEY_Q;
  14763. int KEY_R;
  14764. int KEY_RALT;
  14765. int KEY_RCTRL;
  14766. int KEY_RETURN;
  14767. int KEY_RETURN2;
  14768. int KEY_RGUI;
  14769. int KEY_RIGHT;
  14770. int KEY_RSHIFT;
  14771. int KEY_S;
  14772. int KEY_SCROLLLOCK;
  14773. int KEY_SELECT;
  14774. int KEY_SHIFT;
  14775. int KEY_SPACE;
  14776. int KEY_T;
  14777. int KEY_TAB;
  14778. int KEY_U;
  14779. int KEY_UNKNOWN;
  14780. int KEY_UP;
  14781. int KEY_V;
  14782. int KEY_W;
  14783. int KEY_X;
  14784. int KEY_Y;
  14785. int KEY_Z;
  14786. uint LAST_LOCAL_ID;
  14787. uint LAST_REPLICATED_ID;
  14788. int LOG_DEBUG;
  14789. int LOG_ERROR;
  14790. int LOG_INFO;
  14791. int LOG_NONE;
  14792. int LOG_WARNING;
  14793. Color MAGENTA;
  14794. uint MASK_BLENDINDICES;
  14795. uint MASK_BLENDWEIGHTS;
  14796. uint MASK_COLOR;
  14797. uint MASK_CUBETEXCOORD1;
  14798. uint MASK_CUBETEXCOORD2;
  14799. uint MASK_INSTANCEMATRIX1;
  14800. uint MASK_INSTANCEMATRIX2;
  14801. uint MASK_INSTANCEMATRIX3;
  14802. uint MASK_NONE;
  14803. uint MASK_NORMAL;
  14804. uint MASK_OBJECTINDEX;
  14805. uint MASK_POSITION;
  14806. uint MASK_TANGENT;
  14807. uint MASK_TEXCOORD1;
  14808. uint MASK_TEXCOORD2;
  14809. int MOUSEB_LEFT;
  14810. int MOUSEB_MIDDLE;
  14811. int MOUSEB_RIGHT;
  14812. float M_DEGTORAD;
  14813. float M_DEGTORAD_2;
  14814. float M_EPSILON;
  14815. float M_HALF_PI;
  14816. float M_INFINITY;
  14817. float M_LARGE_EPSILON;
  14818. float M_LARGE_VALUE;
  14819. int M_MAX_INT;
  14820. uint M_MAX_UNSIGNED;
  14821. int M_MIN_INT;
  14822. uint M_MIN_UNSIGNED;
  14823. float M_PI;
  14824. float M_RADTODEG;
  14825. uint NPOS;
  14826. float PIXEL_SIZE;
  14827. int QUALITY_HIGH;
  14828. int QUALITY_LOW;
  14829. int QUALITY_MAX;
  14830. int QUALITY_MEDIUM;
  14831. int QUAL_ALT;
  14832. int QUAL_ANY;
  14833. int QUAL_CTRL;
  14834. int QUAL_SHIFT;
  14835. Color RED;
  14836. int SCANCODE_0;
  14837. int SCANCODE_1;
  14838. int SCANCODE_2;
  14839. int SCANCODE_3;
  14840. int SCANCODE_4;
  14841. int SCANCODE_5;
  14842. int SCANCODE_6;
  14843. int SCANCODE_7;
  14844. int SCANCODE_8;
  14845. int SCANCODE_9;
  14846. int SCANCODE_A;
  14847. int SCANCODE_AC_BACK;
  14848. int SCANCODE_AC_BOOKMARKS;
  14849. int SCANCODE_AC_FORWARD;
  14850. int SCANCODE_AC_HOME;
  14851. int SCANCODE_AC_REFRESH;
  14852. int SCANCODE_AC_SEARCH;
  14853. int SCANCODE_AC_STOP;
  14854. int SCANCODE_AGAIN;
  14855. int SCANCODE_ALT;
  14856. int SCANCODE_ALTERASE;
  14857. int SCANCODE_APOSTROPHE;
  14858. int SCANCODE_APP1;
  14859. int SCANCODE_APP2;
  14860. int SCANCODE_APPLICATION;
  14861. int SCANCODE_AUDIOMUTE;
  14862. int SCANCODE_AUDIONEXT;
  14863. int SCANCODE_AUDIOPLAY;
  14864. int SCANCODE_AUDIOPREV;
  14865. int SCANCODE_AUDIOSTOP;
  14866. int SCANCODE_B;
  14867. int SCANCODE_BACKSLASH;
  14868. int SCANCODE_BACKSPACE;
  14869. int SCANCODE_BRIGHTNESSDOWN;
  14870. int SCANCODE_BRIGHTNESSUP;
  14871. int SCANCODE_C;
  14872. int SCANCODE_CALCULATOR;
  14873. int SCANCODE_CANCEL;
  14874. int SCANCODE_CAPSLOCK;
  14875. int SCANCODE_CLEAR;
  14876. int SCANCODE_CLEARAGAIN;
  14877. int SCANCODE_COMMA;
  14878. int SCANCODE_COMPUTER;
  14879. int SCANCODE_COPY;
  14880. int SCANCODE_CRSEL;
  14881. int SCANCODE_CTRL;
  14882. int SCANCODE_CURRENCYSUBUNIT;
  14883. int SCANCODE_CURRENCYUNIT;
  14884. int SCANCODE_CUT;
  14885. int SCANCODE_D;
  14886. int SCANCODE_DECIMALSEPARATOR;
  14887. int SCANCODE_DELETE;
  14888. int SCANCODE_DISPLAYSWITCH;
  14889. int SCANCODE_DOWN;
  14890. int SCANCODE_E;
  14891. int SCANCODE_EJECT;
  14892. int SCANCODE_END;
  14893. int SCANCODE_EQUALS;
  14894. int SCANCODE_ESCAPE;
  14895. int SCANCODE_EXECUTE;
  14896. int SCANCODE_EXSEL;
  14897. int SCANCODE_F;
  14898. int SCANCODE_F1;
  14899. int SCANCODE_F10;
  14900. int SCANCODE_F11;
  14901. int SCANCODE_F12;
  14902. int SCANCODE_F13;
  14903. int SCANCODE_F14;
  14904. int SCANCODE_F15;
  14905. int SCANCODE_F16;
  14906. int SCANCODE_F17;
  14907. int SCANCODE_F18;
  14908. int SCANCODE_F19;
  14909. int SCANCODE_F2;
  14910. int SCANCODE_F20;
  14911. int SCANCODE_F21;
  14912. int SCANCODE_F22;
  14913. int SCANCODE_F23;
  14914. int SCANCODE_F24;
  14915. int SCANCODE_F3;
  14916. int SCANCODE_F4;
  14917. int SCANCODE_F5;
  14918. int SCANCODE_F6;
  14919. int SCANCODE_F7;
  14920. int SCANCODE_F8;
  14921. int SCANCODE_F9;
  14922. int SCANCODE_FIND;
  14923. int SCANCODE_G;
  14924. int SCANCODE_GRAVE;
  14925. int SCANCODE_GUI;
  14926. int SCANCODE_H;
  14927. int SCANCODE_HELP;
  14928. int SCANCODE_HOME;
  14929. int SCANCODE_I;
  14930. int SCANCODE_INSERT;
  14931. int SCANCODE_INTERNATIONAL1;
  14932. int SCANCODE_INTERNATIONAL2;
  14933. int SCANCODE_INTERNATIONAL3;
  14934. int SCANCODE_INTERNATIONAL4;
  14935. int SCANCODE_INTERNATIONAL5;
  14936. int SCANCODE_INTERNATIONAL6;
  14937. int SCANCODE_INTERNATIONAL7;
  14938. int SCANCODE_INTERNATIONAL8;
  14939. int SCANCODE_INTERNATIONAL9;
  14940. int SCANCODE_J;
  14941. int SCANCODE_K;
  14942. int SCANCODE_KBDILLUMDOWN;
  14943. int SCANCODE_KBDILLUMTOGGLE;
  14944. int SCANCODE_KBDILLUMUP;
  14945. int SCANCODE_KP_0;
  14946. int SCANCODE_KP_00;
  14947. int SCANCODE_KP_000;
  14948. int SCANCODE_KP_1;
  14949. int SCANCODE_KP_2;
  14950. int SCANCODE_KP_3;
  14951. int SCANCODE_KP_4;
  14952. int SCANCODE_KP_5;
  14953. int SCANCODE_KP_6;
  14954. int SCANCODE_KP_7;
  14955. int SCANCODE_KP_8;
  14956. int SCANCODE_KP_9;
  14957. int SCANCODE_KP_A;
  14958. int SCANCODE_KP_AMPERSAND;
  14959. int SCANCODE_KP_AT;
  14960. int SCANCODE_KP_B;
  14961. int SCANCODE_KP_BACKSPACE;
  14962. int SCANCODE_KP_BINARY;
  14963. int SCANCODE_KP_C;
  14964. int SCANCODE_KP_CLEAR;
  14965. int SCANCODE_KP_CLEARENTRY;
  14966. int SCANCODE_KP_COLON;
  14967. int SCANCODE_KP_COMMA;
  14968. int SCANCODE_KP_D;
  14969. int SCANCODE_KP_DBLAMPERSAND;
  14970. int SCANCODE_KP_DBLVERTICALBAR;
  14971. int SCANCODE_KP_DECIMAL;
  14972. int SCANCODE_KP_DIVIDE;
  14973. int SCANCODE_KP_E;
  14974. int SCANCODE_KP_ENTER;
  14975. int SCANCODE_KP_EQUALS;
  14976. int SCANCODE_KP_EQUALSAS400;
  14977. int SCANCODE_KP_EXCLAM;
  14978. int SCANCODE_KP_F;
  14979. int SCANCODE_KP_GREATER;
  14980. int SCANCODE_KP_HASH;
  14981. int SCANCODE_KP_HEXADECIMAL;
  14982. int SCANCODE_KP_LEFTBRACE;
  14983. int SCANCODE_KP_LEFTPAREN;
  14984. int SCANCODE_KP_LESS;
  14985. int SCANCODE_KP_MEMADD;
  14986. int SCANCODE_KP_MEMCLEAR;
  14987. int SCANCODE_KP_MEMDIVIDE;
  14988. int SCANCODE_KP_MEMMULTIPLY;
  14989. int SCANCODE_KP_MEMRECALL;
  14990. int SCANCODE_KP_MEMSTORE;
  14991. int SCANCODE_KP_MEMSUBTRACT;
  14992. int SCANCODE_KP_MINUS;
  14993. int SCANCODE_KP_MULTIPLY;
  14994. int SCANCODE_KP_OCTAL;
  14995. int SCANCODE_KP_PERCENT;
  14996. int SCANCODE_KP_PERIOD;
  14997. int SCANCODE_KP_PLUS;
  14998. int SCANCODE_KP_PLUSMINUS;
  14999. int SCANCODE_KP_POWER;
  15000. int SCANCODE_KP_RIGHTBRACE;
  15001. int SCANCODE_KP_RIGHTPAREN;
  15002. int SCANCODE_KP_SPACE;
  15003. int SCANCODE_KP_TAB;
  15004. int SCANCODE_KP_VERTICALBAR;
  15005. int SCANCODE_KP_XOR;
  15006. int SCANCODE_L;
  15007. int SCANCODE_LALT;
  15008. int SCANCODE_LANG1;
  15009. int SCANCODE_LANG2;
  15010. int SCANCODE_LANG3;
  15011. int SCANCODE_LANG4;
  15012. int SCANCODE_LANG5;
  15013. int SCANCODE_LANG6;
  15014. int SCANCODE_LANG7;
  15015. int SCANCODE_LANG8;
  15016. int SCANCODE_LANG9;
  15017. int SCANCODE_LCTRL;
  15018. int SCANCODE_LEFT;
  15019. int SCANCODE_LEFTBRACKET;
  15020. int SCANCODE_LGUI;
  15021. int SCANCODE_LSHIFT;
  15022. int SCANCODE_M;
  15023. int SCANCODE_MAIL;
  15024. int SCANCODE_MEDIASELECT;
  15025. int SCANCODE_MENU;
  15026. int SCANCODE_MINUS;
  15027. int SCANCODE_MODE;
  15028. int SCANCODE_MUTE;
  15029. int SCANCODE_N;
  15030. int SCANCODE_NONUSBACKSLASH;
  15031. int SCANCODE_NONUSHASH;
  15032. int SCANCODE_NUMLOCKCLEAR;
  15033. int SCANCODE_O;
  15034. int SCANCODE_OPER;
  15035. int SCANCODE_OUT;
  15036. int SCANCODE_P;
  15037. int SCANCODE_PAGEDOWN;
  15038. int SCANCODE_PAGEUP;
  15039. int SCANCODE_PASTE;
  15040. int SCANCODE_PAUSE;
  15041. int SCANCODE_PERIOD;
  15042. int SCANCODE_POWER;
  15043. int SCANCODE_PRINTSCREEN;
  15044. int SCANCODE_PRIOR;
  15045. int SCANCODE_Q;
  15046. int SCANCODE_R;
  15047. int SCANCODE_RALT;
  15048. int SCANCODE_RCTRL;
  15049. int SCANCODE_RETURN;
  15050. int SCANCODE_RETURN2;
  15051. int SCANCODE_RGUI;
  15052. int SCANCODE_RIGHT;
  15053. int SCANCODE_RIGHTBRACKET;
  15054. int SCANCODE_RSHIFT;
  15055. int SCANCODE_S;
  15056. int SCANCODE_SCROLLLOCK;
  15057. int SCANCODE_SELECT;
  15058. int SCANCODE_SEMICOLON;
  15059. int SCANCODE_SEPARATOR;
  15060. int SCANCODE_SHIFT;
  15061. int SCANCODE_SLASH;
  15062. int SCANCODE_SLEEP;
  15063. int SCANCODE_SPACE;
  15064. int SCANCODE_STOP;
  15065. int SCANCODE_SYSREQ;
  15066. int SCANCODE_T;
  15067. int SCANCODE_TAB;
  15068. int SCANCODE_THOUSANDSSEPARATOR;
  15069. int SCANCODE_U;
  15070. int SCANCODE_UNDO;
  15071. int SCANCODE_UNKNOWN;
  15072. int SCANCODE_UP;
  15073. int SCANCODE_V;
  15074. int SCANCODE_VOLUMEDOWN;
  15075. int SCANCODE_VOLUMEUP;
  15076. int SCANCODE_W;
  15077. int SCANCODE_WWW;
  15078. int SCANCODE_X;
  15079. int SCANCODE_Y;
  15080. int SCANCODE_Z;
  15081. uint SCAN_DIRS;
  15082. uint SCAN_FILES;
  15083. uint SCAN_HIDDEN;
  15084. String SOUND_AMBIENT;
  15085. String SOUND_EFFECT;
  15086. String SOUND_MASTER;
  15087. String SOUND_MUSIC;
  15088. String SOUND_VOICE;
  15089. Color TRANSPARENT;
  15090. uint VO_DISABLE_OCCLUSION;
  15091. uint VO_DISABLE_SHADOWS;
  15092. uint VO_LOW_MATERIAL_QUALITY;
  15093. uint VO_NONE;
  15094. Color WHITE;
  15095. Color YELLOW;