AngelScriptAPI.h 386 KB

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