AngelScriptAPI.h 386 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553
  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. };
  579. class Audio
  580. {
  581. // Methods:
  582. bool HasMasterGain(const String&) const;
  583. bool HasSubscribedToEvent(Object, const String&);
  584. bool HasSubscribedToEvent(const String&);
  585. bool IsSoundTypePaused(const String&);
  586. void PauseSoundType(const String&);
  587. bool Play();
  588. void ResumeAll();
  589. void ResumeSoundType(const String&);
  590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  591. void SetMode(int, int, bool, bool = true);
  592. void Stop();
  593. // Properties:
  594. /* readonly */
  595. String category;
  596. /* readonly */
  597. bool initialized;
  598. /* readonly */
  599. bool interpolation;
  600. SoundListener listener;
  601. Array<float> masterGain;
  602. /* readonly */
  603. int mixRate;
  604. /* readonly */
  605. bool playing;
  606. /* readonly */
  607. int refs;
  608. /* readonly */
  609. uint sampleSize;
  610. /* readonly */
  611. bool stereo;
  612. /* readonly */
  613. StringHash type;
  614. /* readonly */
  615. String typeName;
  616. /* readonly */
  617. int weakRefs;
  618. };
  619. class BiasParameters
  620. {
  621. // Properties:
  622. float constantBias;
  623. float normalOffset;
  624. float slopeScaledBias;
  625. };
  626. class Billboard
  627. {
  628. // Properties:
  629. Color color;
  630. Vector3 direction;
  631. bool enabled;
  632. Vector3 position;
  633. float rotation;
  634. Vector2 size;
  635. Rect uv;
  636. };
  637. class BillboardSet
  638. {
  639. // Methods:
  640. void ApplyAttributes();
  641. void Commit();
  642. void DrawDebugGeometry(DebugRenderer, bool);
  643. Variant GetAttribute(const String&) const;
  644. ValueAnimation GetAttributeAnimation(const String&) const;
  645. float GetAttributeAnimationSpeed(const String&) const;
  646. float GetAttributeAnimationTime(const String&) const;
  647. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  648. Variant GetAttributeDefault(const String&) const;
  649. bool GetInterceptNetworkUpdate(const String&) const;
  650. bool HasSubscribedToEvent(Object, const String&);
  651. bool HasSubscribedToEvent(const String&);
  652. bool IsInView(Camera) const;
  653. bool Load(File, bool = false);
  654. bool Load(VectorBuffer&, bool = false);
  655. bool LoadJSON(const JSONValue&, bool = false);
  656. bool LoadXML(const XMLElement&, bool = false);
  657. void MarkNetworkUpdate() const;
  658. void Remove();
  659. void RemoveAttributeAnimation(const String&);
  660. void RemoveInstanceDefault();
  661. void RemoveObjectAnimation();
  662. void ResetToDefault();
  663. bool Save(File) const;
  664. bool Save(VectorBuffer&) const;
  665. bool SaveJSON(JSONValue&) const;
  666. bool SaveXML(XMLElement&) const;
  667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  668. void SetAnimationTime(float);
  669. bool SetAttribute(const String&, const Variant&);
  670. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  671. void SetAttributeAnimationSpeed(const String&, float);
  672. void SetAttributeAnimationTime(const String&, float);
  673. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  674. void SetInterceptNetworkUpdate(const String&, bool);
  675. // Properties:
  676. bool animationEnabled;
  677. float animationLodBias;
  678. /* readonly */
  679. Array<Variant> attributeDefaults;
  680. /* readonly */
  681. Array<AttributeInfo> attributeInfos;
  682. Array<Variant> attributes;
  683. /* readonly */
  684. Array<Billboard> billboards;
  685. /* readonly */
  686. BoundingBox boundingBox;
  687. bool castShadows;
  688. /* readonly */
  689. String category;
  690. float drawDistance;
  691. bool enabled;
  692. /* readonly */
  693. bool enabledEffective;
  694. FaceCameraMode faceCameraMode;
  695. bool fixedScreenSize;
  696. /* readonly */
  697. uint id;
  698. /* readonly */
  699. bool inView;
  700. uint lightMask;
  701. float lodBias;
  702. Material material;
  703. uint maxLights;
  704. float minAngle;
  705. /* readonly */
  706. Node node;
  707. /* readonly */
  708. uint numAttributes;
  709. uint numBillboards;
  710. ObjectAnimation objectAnimation;
  711. bool occludee;
  712. bool occluder;
  713. /* readonly */
  714. int refs;
  715. bool relative;
  716. bool scaled;
  717. float shadowDistance;
  718. uint shadowMask;
  719. bool sorted;
  720. bool temporary;
  721. /* readonly */
  722. StringHash type;
  723. /* readonly */
  724. String typeName;
  725. uint viewMask;
  726. /* readonly */
  727. int weakRefs;
  728. /* readonly */
  729. BoundingBox worldBoundingBox;
  730. /* readonly */
  731. Zone zone;
  732. uint zoneMask;
  733. };
  734. class Bone
  735. {
  736. // Properties:
  737. bool animated;
  738. BoundingBox boundingBox;
  739. Vector3 initialPosition;
  740. Quaternion initialRotation;
  741. Vector3 initialScale;
  742. String name;
  743. Node node;
  744. float radius;
  745. };
  746. class BorderImage
  747. {
  748. // Methods:
  749. void AddChild(UIElement);
  750. void AddTag(const String&);
  751. void AddTags(const String&, int8 = ';');
  752. void ApplyAttributes();
  753. void BringToFront();
  754. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  755. void DisableLayoutUpdate();
  756. IntVector2 ElementToScreen(const IntVector2&);
  757. void EnableLayoutUpdate();
  758. uint FindChild(UIElement) const;
  759. Variant GetAttribute(const String&) const;
  760. ValueAnimation GetAttributeAnimation(const String&) const;
  761. float GetAttributeAnimationSpeed(const String&) const;
  762. float GetAttributeAnimationTime(const String&) const;
  763. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  764. Variant GetAttributeDefault(const String&) const;
  765. UIElement GetChild(const String&, bool = false) const;
  766. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  767. Array<UIElement> GetChildren(bool = false) const;
  768. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  769. UIElement GetElementEventSender() const;
  770. bool GetInterceptNetworkUpdate(const String&) const;
  771. uint GetNumChildren(bool) const;
  772. bool HasSubscribedToEvent(Object, const String&);
  773. bool HasSubscribedToEvent(const String&);
  774. bool HasTag(const String&) const;
  775. void InsertChild(uint, UIElement);
  776. bool IsInside(IntVector2, bool);
  777. bool IsInsideCombined(IntVector2, bool);
  778. bool Load(File, bool = false);
  779. bool Load(VectorBuffer&, bool = false);
  780. UIElement LoadChildXML(XMLFile, XMLFile = null);
  781. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  782. bool LoadJSON(const JSONValue&, bool = false);
  783. bool LoadXML(File);
  784. bool LoadXML(VectorBuffer&);
  785. bool LoadXML(XMLFile, XMLFile);
  786. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  787. bool LoadXML(const XMLElement&, bool = false);
  788. void MarkNetworkUpdate() const;
  789. void Remove();
  790. void RemoveAllChildren();
  791. void RemoveAllTags();
  792. void RemoveAttributeAnimation(const String&);
  793. void RemoveChild(UIElement, uint = 0);
  794. void RemoveChild(uint);
  795. void RemoveInstanceDefault();
  796. void RemoveObjectAnimation();
  797. bool RemoveTag(const String&);
  798. void ResetDeepEnabled();
  799. void ResetToDefault();
  800. bool Save(File) const;
  801. bool Save(VectorBuffer&) const;
  802. bool SaveJSON(JSONValue&) const;
  803. bool SaveXML(File, const String& = "\t");
  804. bool SaveXML(VectorBuffer&, const String& = "\t");
  805. bool SaveXML(XMLElement&) const;
  806. IntVector2 ScreenToElement(const IntVector2&);
  807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  808. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  809. void SetAnimationTime(float);
  810. bool SetAttribute(const String&, const Variant&);
  811. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  812. void SetAttributeAnimationSpeed(const String&, float);
  813. void SetAttributeAnimationTime(const String&, float);
  814. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  815. void SetDeepEnabled(bool);
  816. void SetEnabledRecursive(bool);
  817. void SetFixedHeight(int);
  818. void SetFixedSize(int, int);
  819. void SetFixedWidth(int);
  820. void SetFullImageRect();
  821. void SetHoverOffset(int, int);
  822. void SetInterceptNetworkUpdate(const String&, bool);
  823. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  824. void SetMaxAnchor(float, float);
  825. void SetMaxSize(int, int);
  826. void SetMinAnchor(float, float);
  827. void SetMinSize(int, int);
  828. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  829. void SetPivot(float, float);
  830. void SetPosition(int, int);
  831. void SetSize(int, int);
  832. bool SetStyle(const String&, XMLFile = null);
  833. bool SetStyle(const XMLElement&);
  834. bool SetStyleAuto(XMLFile = null);
  835. void UpdateLayout();
  836. const Variant& GetVar(const StringHash&);
  837. // Properties:
  838. bool animationEnabled;
  839. /* readonly */
  840. Array<Variant> attributeDefaults;
  841. /* readonly */
  842. Array<AttributeInfo> attributeInfos;
  843. Array<Variant> attributes;
  844. BlendMode blendMode;
  845. IntRect border;
  846. bool bringToBack;
  847. bool bringToFront;
  848. /* readonly */
  849. String category;
  850. /* readonly */
  851. IntVector2 childOffset;
  852. /* readonly */
  853. Array<UIElement> children;
  854. IntRect clipBorder;
  855. bool clipChildren;
  856. /* writeonly */
  857. Color color;
  858. /* readonly */
  859. bool colorGradient;
  860. Array<Color> colors;
  861. /* readonly */
  862. IntRect combinedScreenRect;
  863. XMLFile defaultStyle;
  864. /* readonly */
  865. float derivedOpacity;
  866. /* readonly */
  867. uint dragButtonCombo;
  868. /* readonly */
  869. int dragButtonCount;
  870. uint dragDropMode;
  871. bool editable;
  872. bool elementEventSender;
  873. bool enableAnchor;
  874. bool enabled;
  875. /* readonly */
  876. bool enabledSelf;
  877. /* readonly */
  878. bool fixedHeight;
  879. /* readonly */
  880. bool fixedSize;
  881. /* readonly */
  882. bool fixedWidth;
  883. bool focus;
  884. FocusMode focusMode;
  885. int height;
  886. HorizontalAlignment horizontalAlignment;
  887. IntVector2 hoverOffset;
  888. /* readonly */
  889. bool hovering;
  890. IntRect imageBorder;
  891. IntRect imageRect;
  892. int indent;
  893. int indentSpacing;
  894. /* readonly */
  895. int indentWidth;
  896. bool internal;
  897. IntRect layoutBorder;
  898. Vector2 layoutFlexScale;
  899. LayoutMode layoutMode;
  900. int layoutSpacing;
  901. Vector2 maxAnchor;
  902. int maxHeight;
  903. IntVector2 maxOffset;
  904. IntVector2 maxSize;
  905. int maxWidth;
  906. Vector2 minAnchor;
  907. int minHeight;
  908. IntVector2 minOffset;
  909. IntVector2 minSize;
  910. int minWidth;
  911. String name;
  912. /* readonly */
  913. uint numAllChildren;
  914. /* readonly */
  915. uint numAttributes;
  916. /* readonly */
  917. uint numChildren;
  918. ObjectAnimation objectAnimation;
  919. float opacity;
  920. UIElement parent;
  921. Vector2 pivot;
  922. IntVector2 position;
  923. int priority;
  924. /* readonly */
  925. int refs;
  926. /* readonly */
  927. UIElement root;
  928. /* readonly */
  929. IntVector2 screenPosition;
  930. bool selected;
  931. IntVector2 size;
  932. bool sortChildren;
  933. String style;
  934. /* readonly */
  935. Array<String> tags;
  936. bool temporary;
  937. Texture texture;
  938. bool tiled;
  939. TraversalMode traversalMode;
  940. /* readonly */
  941. StringHash type;
  942. /* readonly */
  943. String typeName;
  944. bool useDerivedOpacity;
  945. /* readonly */
  946. VariantMap vars;
  947. VerticalAlignment verticalAlignment;
  948. bool visible;
  949. /* readonly */
  950. bool visibleEffective;
  951. /* readonly */
  952. int weakRefs;
  953. int width;
  954. };
  955. class BoundingBox
  956. {
  957. // Methods:
  958. void Clear();
  959. void Clip(const BoundingBox&);
  960. void Define(const BoundingBox&);
  961. void Define(const Frustum&);
  962. void Define(const Polyhedron&);
  963. void Define(const Sphere&);
  964. void Define(const Vector3&);
  965. void Define(const Vector3&, const Vector3&);
  966. void Define(float, float);
  967. bool Defined() const;
  968. Intersection IsInside(const BoundingBox&) const;
  969. Intersection IsInside(const Sphere&) const;
  970. Intersection IsInside(const Vector3&) const;
  971. Intersection IsInsideFast(const BoundingBox&) const;
  972. Intersection IsInsideFast(const Sphere&) const;
  973. void Merge(const BoundingBox&);
  974. void Merge(const Frustum&);
  975. void Merge(const Polyhedron&);
  976. void Merge(const Sphere&);
  977. void Merge(const Vector3&);
  978. Rect Projected(const Matrix4&) const;
  979. String ToString() const;
  980. void Transform(const Matrix3&);
  981. void Transform(const Matrix3x4&);
  982. BoundingBox Transformed(const Matrix3&) const;
  983. BoundingBox Transformed(const Matrix3x4&) const;
  984. // Properties:
  985. /* readonly */
  986. Vector3 center;
  987. /* readonly */
  988. Vector3 halfSize;
  989. Vector3 max;
  990. Vector3 min;
  991. /* readonly */
  992. Vector3 size;
  993. };
  994. class Button
  995. {
  996. // Methods:
  997. void AddChild(UIElement);
  998. void AddTag(const String&);
  999. void AddTags(const String&, int8 = ';');
  1000. void ApplyAttributes();
  1001. void BringToFront();
  1002. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1003. void DisableLayoutUpdate();
  1004. IntVector2 ElementToScreen(const IntVector2&);
  1005. void EnableLayoutUpdate();
  1006. uint FindChild(UIElement) const;
  1007. Variant GetAttribute(const String&) const;
  1008. ValueAnimation GetAttributeAnimation(const String&) const;
  1009. float GetAttributeAnimationSpeed(const String&) const;
  1010. float GetAttributeAnimationTime(const String&) const;
  1011. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1012. Variant GetAttributeDefault(const String&) const;
  1013. UIElement GetChild(const String&, bool = false) const;
  1014. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1015. Array<UIElement> GetChildren(bool = false) const;
  1016. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1017. UIElement GetElementEventSender() const;
  1018. bool GetInterceptNetworkUpdate(const String&) const;
  1019. uint GetNumChildren(bool) const;
  1020. bool HasSubscribedToEvent(Object, const String&);
  1021. bool HasSubscribedToEvent(const String&);
  1022. bool HasTag(const String&) const;
  1023. void InsertChild(uint, UIElement);
  1024. bool IsInside(IntVector2, bool);
  1025. bool IsInsideCombined(IntVector2, bool);
  1026. bool Load(File, bool = false);
  1027. bool Load(VectorBuffer&, bool = false);
  1028. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1029. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1030. bool LoadJSON(const JSONValue&, bool = false);
  1031. bool LoadXML(File);
  1032. bool LoadXML(VectorBuffer&);
  1033. bool LoadXML(XMLFile, XMLFile);
  1034. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1035. bool LoadXML(const XMLElement&, bool = false);
  1036. void MarkNetworkUpdate() const;
  1037. void Remove();
  1038. void RemoveAllChildren();
  1039. void RemoveAllTags();
  1040. void RemoveAttributeAnimation(const String&);
  1041. void RemoveChild(UIElement, uint = 0);
  1042. void RemoveChild(uint);
  1043. void RemoveInstanceDefault();
  1044. void RemoveObjectAnimation();
  1045. bool RemoveTag(const String&);
  1046. void ResetDeepEnabled();
  1047. void ResetToDefault();
  1048. bool Save(File) const;
  1049. bool Save(VectorBuffer&) const;
  1050. bool SaveJSON(JSONValue&) const;
  1051. bool SaveXML(File, const String& = "\t");
  1052. bool SaveXML(VectorBuffer&, const String& = "\t");
  1053. bool SaveXML(XMLElement&) const;
  1054. IntVector2 ScreenToElement(const IntVector2&);
  1055. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1056. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1057. void SetAnimationTime(float);
  1058. bool SetAttribute(const String&, const Variant&);
  1059. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1060. void SetAttributeAnimationSpeed(const String&, float);
  1061. void SetAttributeAnimationTime(const String&, float);
  1062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1063. void SetDeepEnabled(bool);
  1064. void SetEnabledRecursive(bool);
  1065. void SetFixedHeight(int);
  1066. void SetFixedSize(int, int);
  1067. void SetFixedWidth(int);
  1068. void SetFullImageRect();
  1069. void SetHoverOffset(int, int);
  1070. void SetInterceptNetworkUpdate(const String&, bool);
  1071. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1072. void SetMaxAnchor(float, float);
  1073. void SetMaxSize(int, int);
  1074. void SetMinAnchor(float, float);
  1075. void SetMinSize(int, int);
  1076. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1077. void SetPivot(float, float);
  1078. void SetPosition(int, int);
  1079. void SetPressedChildOffset(int, int);
  1080. void SetPressedOffset(int, int);
  1081. void SetRepeat(float, float);
  1082. void SetSize(int, int);
  1083. bool SetStyle(const String&, XMLFile = null);
  1084. bool SetStyle(const XMLElement&);
  1085. bool SetStyleAuto(XMLFile = null);
  1086. void UpdateLayout();
  1087. const Variant& GetVar(const StringHash&);
  1088. // Properties:
  1089. bool animationEnabled;
  1090. /* readonly */
  1091. Array<Variant> attributeDefaults;
  1092. /* readonly */
  1093. Array<AttributeInfo> attributeInfos;
  1094. Array<Variant> attributes;
  1095. BlendMode blendMode;
  1096. IntRect border;
  1097. bool bringToBack;
  1098. bool bringToFront;
  1099. /* readonly */
  1100. String category;
  1101. /* readonly */
  1102. IntVector2 childOffset;
  1103. /* readonly */
  1104. Array<UIElement> children;
  1105. IntRect clipBorder;
  1106. bool clipChildren;
  1107. /* writeonly */
  1108. Color color;
  1109. /* readonly */
  1110. bool colorGradient;
  1111. Array<Color> colors;
  1112. /* readonly */
  1113. IntRect combinedScreenRect;
  1114. XMLFile defaultStyle;
  1115. /* readonly */
  1116. float derivedOpacity;
  1117. /* readonly */
  1118. uint dragButtonCombo;
  1119. /* readonly */
  1120. int dragButtonCount;
  1121. uint dragDropMode;
  1122. bool editable;
  1123. bool elementEventSender;
  1124. bool enableAnchor;
  1125. bool enabled;
  1126. /* readonly */
  1127. bool enabledSelf;
  1128. /* readonly */
  1129. bool fixedHeight;
  1130. /* readonly */
  1131. bool fixedSize;
  1132. /* readonly */
  1133. bool fixedWidth;
  1134. bool focus;
  1135. FocusMode focusMode;
  1136. int height;
  1137. HorizontalAlignment horizontalAlignment;
  1138. IntVector2 hoverOffset;
  1139. /* readonly */
  1140. bool hovering;
  1141. IntRect imageBorder;
  1142. IntRect imageRect;
  1143. int indent;
  1144. int indentSpacing;
  1145. /* readonly */
  1146. int indentWidth;
  1147. bool internal;
  1148. IntRect layoutBorder;
  1149. Vector2 layoutFlexScale;
  1150. LayoutMode layoutMode;
  1151. int layoutSpacing;
  1152. Vector2 maxAnchor;
  1153. int maxHeight;
  1154. IntVector2 maxOffset;
  1155. IntVector2 maxSize;
  1156. int maxWidth;
  1157. Vector2 minAnchor;
  1158. int minHeight;
  1159. IntVector2 minOffset;
  1160. IntVector2 minSize;
  1161. int minWidth;
  1162. String name;
  1163. /* readonly */
  1164. uint numAllChildren;
  1165. /* readonly */
  1166. uint numAttributes;
  1167. /* readonly */
  1168. uint numChildren;
  1169. ObjectAnimation objectAnimation;
  1170. float opacity;
  1171. UIElement parent;
  1172. Vector2 pivot;
  1173. IntVector2 position;
  1174. /* readonly */
  1175. bool pressed;
  1176. IntVector2 pressedChildOffset;
  1177. IntVector2 pressedOffset;
  1178. int priority;
  1179. /* readonly */
  1180. int refs;
  1181. float repeatDelay;
  1182. float repeatRate;
  1183. /* readonly */
  1184. UIElement root;
  1185. /* readonly */
  1186. IntVector2 screenPosition;
  1187. bool selected;
  1188. IntVector2 size;
  1189. bool sortChildren;
  1190. String style;
  1191. /* readonly */
  1192. Array<String> tags;
  1193. bool temporary;
  1194. Texture texture;
  1195. bool tiled;
  1196. TraversalMode traversalMode;
  1197. /* readonly */
  1198. StringHash type;
  1199. /* readonly */
  1200. String typeName;
  1201. bool useDerivedOpacity;
  1202. /* readonly */
  1203. VariantMap vars;
  1204. VerticalAlignment verticalAlignment;
  1205. bool visible;
  1206. /* readonly */
  1207. bool visibleEffective;
  1208. /* readonly */
  1209. int weakRefs;
  1210. int width;
  1211. };
  1212. class Camera
  1213. {
  1214. // Methods:
  1215. void ApplyAttributes();
  1216. void DrawDebugGeometry(DebugRenderer, bool);
  1217. Variant GetAttribute(const String&) const;
  1218. ValueAnimation GetAttributeAnimation(const String&) const;
  1219. float GetAttributeAnimationSpeed(const String&) const;
  1220. float GetAttributeAnimationTime(const String&) const;
  1221. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1222. Variant GetAttributeDefault(const String&) const;
  1223. float GetDistance(const Vector3&) const;
  1224. float GetDistanceSquared(const Vector3&) const;
  1225. bool GetInterceptNetworkUpdate(const String&) const;
  1226. Ray GetScreenRay(float, float) const;
  1227. Frustum GetSplitFrustum(float, float) const;
  1228. bool HasSubscribedToEvent(Object, const String&);
  1229. bool HasSubscribedToEvent(const String&);
  1230. bool Load(File, bool = false);
  1231. bool Load(VectorBuffer&, bool = false);
  1232. bool LoadJSON(const JSONValue&, bool = false);
  1233. bool LoadXML(const XMLElement&, bool = false);
  1234. void MarkNetworkUpdate() const;
  1235. void Remove();
  1236. void RemoveAttributeAnimation(const String&);
  1237. void RemoveInstanceDefault();
  1238. void RemoveObjectAnimation();
  1239. void ResetToDefault();
  1240. bool Save(File) const;
  1241. bool Save(VectorBuffer&) const;
  1242. bool SaveJSON(JSONValue&) const;
  1243. bool SaveXML(XMLElement&) const;
  1244. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1245. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1246. void SetAnimationTime(float);
  1247. bool SetAttribute(const String&, const Variant&);
  1248. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1249. void SetAttributeAnimationSpeed(const String&, float);
  1250. void SetAttributeAnimationTime(const String&, float);
  1251. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1252. void SetInterceptNetworkUpdate(const String&, bool);
  1253. void SetOrthoSize(const Vector2&);
  1254. Vector2 WorldToScreenPoint(const Vector3&) const;
  1255. // Properties:
  1256. bool animationEnabled;
  1257. float aspectRatio;
  1258. /* readonly */
  1259. Array<Variant> attributeDefaults;
  1260. /* readonly */
  1261. Array<AttributeInfo> attributeInfos;
  1262. Array<Variant> attributes;
  1263. bool autoAspectRatio;
  1264. /* readonly */
  1265. String category;
  1266. Plane clipPlane;
  1267. /* readonly */
  1268. Matrix3x4 effectiveWorldTransform;
  1269. bool enabled;
  1270. /* readonly */
  1271. bool enabledEffective;
  1272. float farClip;
  1273. FillMode fillMode;
  1274. float fov;
  1275. /* readonly */
  1276. Frustum frustum;
  1277. /* readonly */
  1278. Matrix4 gpuProjection;
  1279. /* readonly */
  1280. float halfViewSize;
  1281. /* readonly */
  1282. uint id;
  1283. float lodBias;
  1284. float nearClip;
  1285. /* readonly */
  1286. Node node;
  1287. /* readonly */
  1288. uint numAttributes;
  1289. ObjectAnimation objectAnimation;
  1290. float orthoSize;
  1291. bool orthographic;
  1292. Matrix4 projection;
  1293. Vector2 projectionOffset;
  1294. Plane reflectionPlane;
  1295. /* readonly */
  1296. int refs;
  1297. bool temporary;
  1298. /* readonly */
  1299. StringHash type;
  1300. /* readonly */
  1301. String typeName;
  1302. bool useClipping;
  1303. bool useReflection;
  1304. /* readonly */
  1305. Matrix3x4 view;
  1306. uint viewMask;
  1307. uint viewOverrideFlags;
  1308. /* readonly */
  1309. Frustum viewSpaceFrustum;
  1310. /* readonly */
  1311. int weakRefs;
  1312. float zoom;
  1313. };
  1314. class CascadeParameters
  1315. {
  1316. // Properties:
  1317. float biasAutoAdjust;
  1318. float fadeStart;
  1319. float split1;
  1320. float split2;
  1321. float split3;
  1322. float split4;
  1323. };
  1324. class CheckBox
  1325. {
  1326. // Methods:
  1327. void AddChild(UIElement);
  1328. void AddTag(const String&);
  1329. void AddTags(const String&, int8 = ';');
  1330. void ApplyAttributes();
  1331. void BringToFront();
  1332. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1333. void DisableLayoutUpdate();
  1334. IntVector2 ElementToScreen(const IntVector2&);
  1335. void EnableLayoutUpdate();
  1336. uint FindChild(UIElement) const;
  1337. Variant GetAttribute(const String&) const;
  1338. ValueAnimation GetAttributeAnimation(const String&) const;
  1339. float GetAttributeAnimationSpeed(const String&) const;
  1340. float GetAttributeAnimationTime(const String&) const;
  1341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1342. Variant GetAttributeDefault(const String&) const;
  1343. UIElement GetChild(const String&, bool = false) const;
  1344. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1345. Array<UIElement> GetChildren(bool = false) const;
  1346. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1347. UIElement GetElementEventSender() const;
  1348. bool GetInterceptNetworkUpdate(const String&) const;
  1349. uint GetNumChildren(bool) const;
  1350. bool HasSubscribedToEvent(Object, const String&);
  1351. bool HasSubscribedToEvent(const String&);
  1352. bool HasTag(const String&) const;
  1353. void InsertChild(uint, UIElement);
  1354. bool IsInside(IntVector2, bool);
  1355. bool IsInsideCombined(IntVector2, bool);
  1356. bool Load(File, bool = false);
  1357. bool Load(VectorBuffer&, bool = false);
  1358. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1359. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1360. bool LoadJSON(const JSONValue&, bool = false);
  1361. bool LoadXML(File);
  1362. bool LoadXML(VectorBuffer&);
  1363. bool LoadXML(XMLFile, XMLFile);
  1364. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1365. bool LoadXML(const XMLElement&, bool = false);
  1366. void MarkNetworkUpdate() const;
  1367. void Remove();
  1368. void RemoveAllChildren();
  1369. void RemoveAllTags();
  1370. void RemoveAttributeAnimation(const String&);
  1371. void RemoveChild(UIElement, uint = 0);
  1372. void RemoveChild(uint);
  1373. void RemoveInstanceDefault();
  1374. void RemoveObjectAnimation();
  1375. bool RemoveTag(const String&);
  1376. void ResetDeepEnabled();
  1377. void ResetToDefault();
  1378. bool Save(File) const;
  1379. bool Save(VectorBuffer&) const;
  1380. bool SaveJSON(JSONValue&) const;
  1381. bool SaveXML(File, const String& = "\t");
  1382. bool SaveXML(VectorBuffer&, const String& = "\t");
  1383. bool SaveXML(XMLElement&) const;
  1384. IntVector2 ScreenToElement(const IntVector2&);
  1385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1386. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1387. void SetAnimationTime(float);
  1388. bool SetAttribute(const String&, const Variant&);
  1389. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1390. void SetAttributeAnimationSpeed(const String&, float);
  1391. void SetAttributeAnimationTime(const String&, float);
  1392. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1393. void SetCheckedOffset(int, int);
  1394. void SetDeepEnabled(bool);
  1395. void SetEnabledRecursive(bool);
  1396. void SetFixedHeight(int);
  1397. void SetFixedSize(int, int);
  1398. void SetFixedWidth(int);
  1399. void SetFullImageRect();
  1400. void SetHoverOffset(int, int);
  1401. void SetInterceptNetworkUpdate(const String&, bool);
  1402. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1403. void SetMaxAnchor(float, float);
  1404. void SetMaxSize(int, int);
  1405. void SetMinAnchor(float, float);
  1406. void SetMinSize(int, int);
  1407. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1408. void SetPivot(float, float);
  1409. void SetPosition(int, int);
  1410. void SetSize(int, int);
  1411. bool SetStyle(const String&, XMLFile = null);
  1412. bool SetStyle(const XMLElement&);
  1413. bool SetStyleAuto(XMLFile = null);
  1414. void UpdateLayout();
  1415. const Variant& GetVar(const StringHash&);
  1416. // Properties:
  1417. bool animationEnabled;
  1418. /* readonly */
  1419. Array<Variant> attributeDefaults;
  1420. /* readonly */
  1421. Array<AttributeInfo> attributeInfos;
  1422. Array<Variant> attributes;
  1423. BlendMode blendMode;
  1424. IntRect border;
  1425. bool bringToBack;
  1426. bool bringToFront;
  1427. /* readonly */
  1428. String category;
  1429. bool checked;
  1430. IntVector2 checkedOffset;
  1431. /* readonly */
  1432. IntVector2 childOffset;
  1433. /* readonly */
  1434. Array<UIElement> children;
  1435. IntRect clipBorder;
  1436. bool clipChildren;
  1437. /* writeonly */
  1438. Color color;
  1439. /* readonly */
  1440. bool colorGradient;
  1441. Array<Color> colors;
  1442. /* readonly */
  1443. IntRect combinedScreenRect;
  1444. XMLFile defaultStyle;
  1445. /* readonly */
  1446. float derivedOpacity;
  1447. /* readonly */
  1448. uint dragButtonCombo;
  1449. /* readonly */
  1450. int dragButtonCount;
  1451. uint dragDropMode;
  1452. bool editable;
  1453. bool elementEventSender;
  1454. bool enableAnchor;
  1455. bool enabled;
  1456. /* readonly */
  1457. bool enabledSelf;
  1458. /* readonly */
  1459. bool fixedHeight;
  1460. /* readonly */
  1461. bool fixedSize;
  1462. /* readonly */
  1463. bool fixedWidth;
  1464. bool focus;
  1465. FocusMode focusMode;
  1466. int height;
  1467. HorizontalAlignment horizontalAlignment;
  1468. IntVector2 hoverOffset;
  1469. /* readonly */
  1470. bool hovering;
  1471. IntRect imageBorder;
  1472. IntRect imageRect;
  1473. int indent;
  1474. int indentSpacing;
  1475. /* readonly */
  1476. int indentWidth;
  1477. bool internal;
  1478. IntRect layoutBorder;
  1479. Vector2 layoutFlexScale;
  1480. LayoutMode layoutMode;
  1481. int layoutSpacing;
  1482. Vector2 maxAnchor;
  1483. int maxHeight;
  1484. IntVector2 maxOffset;
  1485. IntVector2 maxSize;
  1486. int maxWidth;
  1487. Vector2 minAnchor;
  1488. int minHeight;
  1489. IntVector2 minOffset;
  1490. IntVector2 minSize;
  1491. int minWidth;
  1492. String name;
  1493. /* readonly */
  1494. uint numAllChildren;
  1495. /* readonly */
  1496. uint numAttributes;
  1497. /* readonly */
  1498. uint numChildren;
  1499. ObjectAnimation objectAnimation;
  1500. float opacity;
  1501. UIElement parent;
  1502. Vector2 pivot;
  1503. IntVector2 position;
  1504. int priority;
  1505. /* readonly */
  1506. int refs;
  1507. /* readonly */
  1508. UIElement root;
  1509. /* readonly */
  1510. IntVector2 screenPosition;
  1511. bool selected;
  1512. IntVector2 size;
  1513. bool sortChildren;
  1514. String style;
  1515. /* readonly */
  1516. Array<String> tags;
  1517. bool temporary;
  1518. Texture texture;
  1519. bool tiled;
  1520. TraversalMode traversalMode;
  1521. /* readonly */
  1522. StringHash type;
  1523. /* readonly */
  1524. String typeName;
  1525. bool useDerivedOpacity;
  1526. /* readonly */
  1527. VariantMap vars;
  1528. VerticalAlignment verticalAlignment;
  1529. bool visible;
  1530. /* readonly */
  1531. bool visibleEffective;
  1532. /* readonly */
  1533. int weakRefs;
  1534. int width;
  1535. };
  1536. class CollisionBox2D
  1537. {
  1538. // Methods:
  1539. void ApplyAttributes();
  1540. void DrawDebugGeometry(DebugRenderer, bool);
  1541. Variant GetAttribute(const String&) const;
  1542. ValueAnimation GetAttributeAnimation(const String&) const;
  1543. float GetAttributeAnimationSpeed(const String&) const;
  1544. float GetAttributeAnimationTime(const String&) const;
  1545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1546. Variant GetAttributeDefault(const String&) const;
  1547. bool GetInterceptNetworkUpdate(const String&) const;
  1548. bool HasSubscribedToEvent(Object, const String&);
  1549. bool HasSubscribedToEvent(const String&);
  1550. bool Load(File, bool = false);
  1551. bool Load(VectorBuffer&, bool = false);
  1552. bool LoadJSON(const JSONValue&, bool = false);
  1553. bool LoadXML(const XMLElement&, bool = false);
  1554. void MarkNetworkUpdate() const;
  1555. void Remove();
  1556. void RemoveAttributeAnimation(const String&);
  1557. void RemoveInstanceDefault();
  1558. void RemoveObjectAnimation();
  1559. void ResetToDefault();
  1560. bool Save(File) const;
  1561. bool Save(VectorBuffer&) const;
  1562. bool SaveJSON(JSONValue&) const;
  1563. bool SaveXML(XMLElement&) const;
  1564. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1565. void SetAnimationTime(float);
  1566. bool SetAttribute(const String&, const Variant&);
  1567. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1568. void SetAttributeAnimationSpeed(const String&, float);
  1569. void SetAttributeAnimationTime(const String&, float);
  1570. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1571. void SetCenter(float, float);
  1572. void SetInterceptNetworkUpdate(const String&, bool);
  1573. void SetSize(float, float);
  1574. // Properties:
  1575. float angle;
  1576. bool animationEnabled;
  1577. /* readonly */
  1578. Array<Variant> attributeDefaults;
  1579. /* readonly */
  1580. Array<AttributeInfo> attributeInfos;
  1581. Array<Variant> attributes;
  1582. /* readonly */
  1583. String category;
  1584. int categoryBits;
  1585. Vector2 center;
  1586. float density;
  1587. bool enabled;
  1588. /* readonly */
  1589. bool enabledEffective;
  1590. float friction;
  1591. int groupIndex;
  1592. /* readonly */
  1593. uint id;
  1594. /* readonly */
  1595. float inertia;
  1596. int maskBits;
  1597. /* readonly */
  1598. float mass;
  1599. /* readonly */
  1600. Vector2 massCenter;
  1601. /* readonly */
  1602. Node node;
  1603. /* readonly */
  1604. uint numAttributes;
  1605. ObjectAnimation objectAnimation;
  1606. /* readonly */
  1607. int refs;
  1608. float restitution;
  1609. Vector2 size;
  1610. bool temporary;
  1611. bool trigger;
  1612. /* readonly */
  1613. StringHash type;
  1614. /* readonly */
  1615. String typeName;
  1616. /* readonly */
  1617. int weakRefs;
  1618. };
  1619. class CollisionChain2D
  1620. {
  1621. // Methods:
  1622. void ApplyAttributes();
  1623. void DrawDebugGeometry(DebugRenderer, bool);
  1624. Variant GetAttribute(const String&) const;
  1625. ValueAnimation GetAttributeAnimation(const String&) const;
  1626. float GetAttributeAnimationSpeed(const String&) const;
  1627. float GetAttributeAnimationTime(const String&) const;
  1628. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1629. Variant GetAttributeDefault(const String&) const;
  1630. bool GetInterceptNetworkUpdate(const String&) const;
  1631. Array<Vector2> GetVertices() const;
  1632. bool HasSubscribedToEvent(Object, const String&);
  1633. bool HasSubscribedToEvent(const String&);
  1634. bool Load(File, bool = false);
  1635. bool Load(VectorBuffer&, bool = false);
  1636. bool LoadJSON(const JSONValue&, bool = false);
  1637. bool LoadXML(const XMLElement&, bool = false);
  1638. void MarkNetworkUpdate() const;
  1639. void Remove();
  1640. void RemoveAttributeAnimation(const String&);
  1641. void RemoveInstanceDefault();
  1642. void RemoveObjectAnimation();
  1643. void ResetToDefault();
  1644. bool Save(File) const;
  1645. bool Save(VectorBuffer&) const;
  1646. bool SaveJSON(JSONValue&) const;
  1647. bool SaveXML(XMLElement&) const;
  1648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1649. void SetAnimationTime(float);
  1650. bool SetAttribute(const String&, const Variant&);
  1651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1652. void SetAttributeAnimationSpeed(const String&, float);
  1653. void SetAttributeAnimationTime(const String&, float);
  1654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1655. void SetInterceptNetworkUpdate(const String&, bool);
  1656. void SetVertex(uint, const Vector2&);
  1657. void SetVertices(Array<Vector2>);
  1658. const Vector2& GetVertex(uint) const;
  1659. // Properties:
  1660. bool animationEnabled;
  1661. /* readonly */
  1662. Array<Variant> attributeDefaults;
  1663. /* readonly */
  1664. Array<AttributeInfo> attributeInfos;
  1665. Array<Variant> attributes;
  1666. /* readonly */
  1667. String category;
  1668. int categoryBits;
  1669. float density;
  1670. bool enabled;
  1671. /* readonly */
  1672. bool enabledEffective;
  1673. float friction;
  1674. int groupIndex;
  1675. /* readonly */
  1676. uint id;
  1677. /* readonly */
  1678. float inertia;
  1679. bool loop;
  1680. int maskBits;
  1681. /* readonly */
  1682. float mass;
  1683. /* readonly */
  1684. Vector2 massCenter;
  1685. /* readonly */
  1686. Node node;
  1687. /* readonly */
  1688. uint numAttributes;
  1689. ObjectAnimation objectAnimation;
  1690. /* readonly */
  1691. int refs;
  1692. float restitution;
  1693. bool temporary;
  1694. bool trigger;
  1695. /* readonly */
  1696. StringHash type;
  1697. /* readonly */
  1698. String typeName;
  1699. uint vertexCount;
  1700. /* readonly */
  1701. int weakRefs;
  1702. };
  1703. class CollisionCircle2D
  1704. {
  1705. // Methods:
  1706. void ApplyAttributes();
  1707. void DrawDebugGeometry(DebugRenderer, bool);
  1708. Variant GetAttribute(const String&) const;
  1709. ValueAnimation GetAttributeAnimation(const String&) const;
  1710. float GetAttributeAnimationSpeed(const String&) const;
  1711. float GetAttributeAnimationTime(const String&) const;
  1712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1713. Variant GetAttributeDefault(const String&) const;
  1714. bool GetInterceptNetworkUpdate(const String&) const;
  1715. bool HasSubscribedToEvent(Object, const String&);
  1716. bool HasSubscribedToEvent(const String&);
  1717. bool Load(File, bool = false);
  1718. bool Load(VectorBuffer&, bool = false);
  1719. bool LoadJSON(const JSONValue&, bool = false);
  1720. bool LoadXML(const XMLElement&, bool = false);
  1721. void MarkNetworkUpdate() const;
  1722. void Remove();
  1723. void RemoveAttributeAnimation(const String&);
  1724. void RemoveInstanceDefault();
  1725. void RemoveObjectAnimation();
  1726. void ResetToDefault();
  1727. bool Save(File) const;
  1728. bool Save(VectorBuffer&) const;
  1729. bool SaveJSON(JSONValue&) const;
  1730. bool SaveXML(XMLElement&) const;
  1731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1732. void SetAnimationTime(float);
  1733. bool SetAttribute(const String&, const Variant&);
  1734. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1735. void SetAttributeAnimationSpeed(const String&, float);
  1736. void SetAttributeAnimationTime(const String&, float);
  1737. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1738. void SetCenter(float, float);
  1739. void SetInterceptNetworkUpdate(const String&, bool);
  1740. // Properties:
  1741. bool animationEnabled;
  1742. /* readonly */
  1743. Array<Variant> attributeDefaults;
  1744. /* readonly */
  1745. Array<AttributeInfo> attributeInfos;
  1746. Array<Variant> attributes;
  1747. /* readonly */
  1748. String category;
  1749. int categoryBits;
  1750. Vector2 center;
  1751. float density;
  1752. bool enabled;
  1753. /* readonly */
  1754. bool enabledEffective;
  1755. float friction;
  1756. int groupIndex;
  1757. /* readonly */
  1758. uint id;
  1759. /* readonly */
  1760. float inertia;
  1761. int maskBits;
  1762. /* readonly */
  1763. float mass;
  1764. /* readonly */
  1765. Vector2 massCenter;
  1766. /* readonly */
  1767. Node node;
  1768. /* readonly */
  1769. uint numAttributes;
  1770. ObjectAnimation objectAnimation;
  1771. float radius;
  1772. /* readonly */
  1773. int refs;
  1774. float restitution;
  1775. bool temporary;
  1776. bool trigger;
  1777. /* readonly */
  1778. StringHash type;
  1779. /* readonly */
  1780. String typeName;
  1781. /* readonly */
  1782. int weakRefs;
  1783. };
  1784. class CollisionEdge2D
  1785. {
  1786. // Methods:
  1787. void ApplyAttributes();
  1788. void DrawDebugGeometry(DebugRenderer, bool);
  1789. Variant GetAttribute(const String&) const;
  1790. ValueAnimation GetAttributeAnimation(const String&) const;
  1791. float GetAttributeAnimationSpeed(const String&) const;
  1792. float GetAttributeAnimationTime(const String&) const;
  1793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1794. Variant GetAttributeDefault(const String&) const;
  1795. bool GetInterceptNetworkUpdate(const String&) const;
  1796. bool HasSubscribedToEvent(Object, const String&);
  1797. bool HasSubscribedToEvent(const String&);
  1798. bool Load(File, bool = false);
  1799. bool Load(VectorBuffer&, bool = false);
  1800. bool LoadJSON(const JSONValue&, bool = false);
  1801. bool LoadXML(const XMLElement&, bool = false);
  1802. void MarkNetworkUpdate() const;
  1803. void Remove();
  1804. void RemoveAttributeAnimation(const String&);
  1805. void RemoveInstanceDefault();
  1806. void RemoveObjectAnimation();
  1807. void ResetToDefault();
  1808. bool Save(File) const;
  1809. bool Save(VectorBuffer&) const;
  1810. bool SaveJSON(JSONValue&) const;
  1811. bool SaveXML(XMLElement&) const;
  1812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1813. void SetAnimationTime(float);
  1814. bool SetAttribute(const String&, const Variant&);
  1815. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1816. void SetAttributeAnimationSpeed(const String&, float);
  1817. void SetAttributeAnimationTime(const String&, float);
  1818. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1819. void SetInterceptNetworkUpdate(const String&, bool);
  1820. void SetVertices(const Vector2&, const Vector2&);
  1821. // Properties:
  1822. bool animationEnabled;
  1823. /* readonly */
  1824. Array<Variant> attributeDefaults;
  1825. /* readonly */
  1826. Array<AttributeInfo> attributeInfos;
  1827. Array<Variant> attributes;
  1828. /* readonly */
  1829. String category;
  1830. int categoryBits;
  1831. float density;
  1832. bool enabled;
  1833. /* readonly */
  1834. bool enabledEffective;
  1835. float friction;
  1836. int groupIndex;
  1837. /* readonly */
  1838. uint id;
  1839. /* readonly */
  1840. float inertia;
  1841. int maskBits;
  1842. /* readonly */
  1843. float mass;
  1844. /* readonly */
  1845. Vector2 massCenter;
  1846. /* readonly */
  1847. Node node;
  1848. /* readonly */
  1849. uint numAttributes;
  1850. ObjectAnimation objectAnimation;
  1851. /* readonly */
  1852. int refs;
  1853. float restitution;
  1854. bool temporary;
  1855. bool trigger;
  1856. /* readonly */
  1857. StringHash type;
  1858. /* readonly */
  1859. String typeName;
  1860. Vector2 vertex1;
  1861. Vector2 vertex2;
  1862. /* readonly */
  1863. int weakRefs;
  1864. };
  1865. class CollisionPolygon2D
  1866. {
  1867. // Methods:
  1868. void ApplyAttributes();
  1869. void DrawDebugGeometry(DebugRenderer, bool);
  1870. Variant GetAttribute(const String&) const;
  1871. ValueAnimation GetAttributeAnimation(const String&) const;
  1872. float GetAttributeAnimationSpeed(const String&) const;
  1873. float GetAttributeAnimationTime(const String&) const;
  1874. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1875. Variant GetAttributeDefault(const String&) const;
  1876. bool GetInterceptNetworkUpdate(const String&) const;
  1877. Array<Vector2> GetVertices() const;
  1878. bool HasSubscribedToEvent(Object, const String&);
  1879. bool HasSubscribedToEvent(const String&);
  1880. bool Load(File, bool = false);
  1881. bool Load(VectorBuffer&, bool = false);
  1882. bool LoadJSON(const JSONValue&, bool = false);
  1883. bool LoadXML(const XMLElement&, bool = false);
  1884. void MarkNetworkUpdate() const;
  1885. void Remove();
  1886. void RemoveAttributeAnimation(const String&);
  1887. void RemoveInstanceDefault();
  1888. void RemoveObjectAnimation();
  1889. void ResetToDefault();
  1890. bool Save(File) const;
  1891. bool Save(VectorBuffer&) const;
  1892. bool SaveJSON(JSONValue&) const;
  1893. bool SaveXML(XMLElement&) const;
  1894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1895. void SetAnimationTime(float);
  1896. bool SetAttribute(const String&, const Variant&);
  1897. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1898. void SetAttributeAnimationSpeed(const String&, float);
  1899. void SetAttributeAnimationTime(const String&, float);
  1900. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1901. void SetInterceptNetworkUpdate(const String&, bool);
  1902. void SetVertex(uint, const Vector2&);
  1903. void SetVertices(Array<Vector2>);
  1904. const Vector2& GetVertex(uint) const;
  1905. // Properties:
  1906. bool animationEnabled;
  1907. /* readonly */
  1908. Array<Variant> attributeDefaults;
  1909. /* readonly */
  1910. Array<AttributeInfo> attributeInfos;
  1911. Array<Variant> attributes;
  1912. /* readonly */
  1913. String category;
  1914. int categoryBits;
  1915. float density;
  1916. bool enabled;
  1917. /* readonly */
  1918. bool enabledEffective;
  1919. float friction;
  1920. int groupIndex;
  1921. /* readonly */
  1922. uint id;
  1923. /* readonly */
  1924. float inertia;
  1925. int maskBits;
  1926. /* readonly */
  1927. float mass;
  1928. /* readonly */
  1929. Vector2 massCenter;
  1930. /* readonly */
  1931. Node node;
  1932. /* readonly */
  1933. uint numAttributes;
  1934. ObjectAnimation objectAnimation;
  1935. /* readonly */
  1936. int refs;
  1937. float restitution;
  1938. bool temporary;
  1939. bool trigger;
  1940. /* readonly */
  1941. StringHash type;
  1942. /* readonly */
  1943. String typeName;
  1944. uint vertexCount;
  1945. /* readonly */
  1946. int weakRefs;
  1947. };
  1948. class CollisionShape
  1949. {
  1950. // Methods:
  1951. void ApplyAttributes();
  1952. void DrawDebugGeometry(DebugRenderer, bool);
  1953. Variant GetAttribute(const String&) const;
  1954. ValueAnimation GetAttributeAnimation(const String&) const;
  1955. float GetAttributeAnimationSpeed(const String&) const;
  1956. float GetAttributeAnimationTime(const String&) const;
  1957. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1958. Variant GetAttributeDefault(const String&) const;
  1959. bool GetInterceptNetworkUpdate(const String&) const;
  1960. bool HasSubscribedToEvent(Object, const String&);
  1961. bool HasSubscribedToEvent(const String&);
  1962. bool Load(File, bool = false);
  1963. bool Load(VectorBuffer&, bool = false);
  1964. bool LoadJSON(const JSONValue&, bool = false);
  1965. bool LoadXML(const XMLElement&, bool = false);
  1966. void MarkNetworkUpdate() const;
  1967. void Remove();
  1968. void RemoveAttributeAnimation(const String&);
  1969. void RemoveInstanceDefault();
  1970. void RemoveObjectAnimation();
  1971. void ResetToDefault();
  1972. bool Save(File) const;
  1973. bool Save(VectorBuffer&) const;
  1974. bool SaveJSON(JSONValue&) const;
  1975. bool SaveXML(XMLElement&) const;
  1976. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1977. void SetAnimationTime(float);
  1978. bool SetAttribute(const String&, const Variant&);
  1979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1980. void SetAttributeAnimationSpeed(const String&, float);
  1981. void SetAttributeAnimationTime(const String&, float);
  1982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1983. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1984. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1985. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1986. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1987. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1988. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1989. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1990. void SetInterceptNetworkUpdate(const String&, bool);
  1991. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1992. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1993. void SetTerrain(uint = 0);
  1994. void SetTransform(const Vector3&, const Quaternion&);
  1995. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1996. // Properties:
  1997. bool animationEnabled;
  1998. /* readonly */
  1999. Array<Variant> attributeDefaults;
  2000. /* readonly */
  2001. Array<AttributeInfo> attributeInfos;
  2002. Array<Variant> attributes;
  2003. /* readonly */
  2004. String category;
  2005. bool enabled;
  2006. /* readonly */
  2007. bool enabledEffective;
  2008. /* readonly */
  2009. uint id;
  2010. uint lodLevel;
  2011. float margin;
  2012. Model model;
  2013. /* readonly */
  2014. Node node;
  2015. /* readonly */
  2016. uint numAttributes;
  2017. ObjectAnimation objectAnimation;
  2018. Vector3 position;
  2019. /* readonly */
  2020. int refs;
  2021. Quaternion rotation;
  2022. ShapeType shapeType;
  2023. Vector3 size;
  2024. bool temporary;
  2025. /* readonly */
  2026. StringHash type;
  2027. /* readonly */
  2028. String typeName;
  2029. /* readonly */
  2030. int weakRefs;
  2031. /* readonly */
  2032. BoundingBox worldBoundingBox;
  2033. };
  2034. class CollisionShape2D
  2035. {
  2036. // Methods:
  2037. void ApplyAttributes();
  2038. void DrawDebugGeometry(DebugRenderer, bool);
  2039. Variant GetAttribute(const String&) const;
  2040. ValueAnimation GetAttributeAnimation(const String&) const;
  2041. float GetAttributeAnimationSpeed(const String&) const;
  2042. float GetAttributeAnimationTime(const String&) const;
  2043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2044. Variant GetAttributeDefault(const String&) const;
  2045. bool GetInterceptNetworkUpdate(const String&) const;
  2046. bool HasSubscribedToEvent(Object, const String&);
  2047. bool HasSubscribedToEvent(const String&);
  2048. bool Load(File, bool = false);
  2049. bool Load(VectorBuffer&, bool = false);
  2050. bool LoadJSON(const JSONValue&, bool = false);
  2051. bool LoadXML(const XMLElement&, bool = false);
  2052. void MarkNetworkUpdate() const;
  2053. void Remove();
  2054. void RemoveAttributeAnimation(const String&);
  2055. void RemoveInstanceDefault();
  2056. void RemoveObjectAnimation();
  2057. void ResetToDefault();
  2058. bool Save(File) const;
  2059. bool Save(VectorBuffer&) const;
  2060. bool SaveJSON(JSONValue&) const;
  2061. bool SaveXML(XMLElement&) const;
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SetAnimationTime(float);
  2064. bool SetAttribute(const String&, const Variant&);
  2065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2066. void SetAttributeAnimationSpeed(const String&, float);
  2067. void SetAttributeAnimationTime(const String&, float);
  2068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2069. void SetInterceptNetworkUpdate(const String&, bool);
  2070. // Properties:
  2071. bool animationEnabled;
  2072. /* readonly */
  2073. Array<Variant> attributeDefaults;
  2074. /* readonly */
  2075. Array<AttributeInfo> attributeInfos;
  2076. Array<Variant> attributes;
  2077. /* readonly */
  2078. String category;
  2079. int categoryBits;
  2080. float density;
  2081. bool enabled;
  2082. /* readonly */
  2083. bool enabledEffective;
  2084. float friction;
  2085. int groupIndex;
  2086. /* readonly */
  2087. uint id;
  2088. /* readonly */
  2089. float inertia;
  2090. int maskBits;
  2091. /* readonly */
  2092. float mass;
  2093. /* readonly */
  2094. Vector2 massCenter;
  2095. /* readonly */
  2096. Node node;
  2097. /* readonly */
  2098. uint numAttributes;
  2099. ObjectAnimation objectAnimation;
  2100. /* readonly */
  2101. int refs;
  2102. float restitution;
  2103. bool temporary;
  2104. bool trigger;
  2105. /* readonly */
  2106. StringHash type;
  2107. /* readonly */
  2108. String typeName;
  2109. /* readonly */
  2110. int weakRefs;
  2111. };
  2112. class Color
  2113. {
  2114. // Methods:
  2115. Color Abs() const;
  2116. float Average() const;
  2117. float Chroma() const;
  2118. void Clip(bool);
  2119. bool Equals() const;
  2120. void FromHSL(float, float, float, float);
  2121. void FromHSV(float, float, float, float);
  2122. float Hue() const;
  2123. void Invert(bool);
  2124. Color Lerp(const Color&, float) const;
  2125. float Lightness() const;
  2126. float Luma() const;
  2127. float MaxRGB() const;
  2128. float MinRGB() const;
  2129. float Range() const;
  2130. float SaturationHSL() const;
  2131. float SaturationHSV() const;
  2132. float SumRGB() const;
  2133. Vector3 ToHSL() const;
  2134. Vector3 ToHSV() const;
  2135. String ToString() const;
  2136. uint ToUInt() const;
  2137. float Value() const;
  2138. // Properties:
  2139. float a;
  2140. float b;
  2141. /* readonly */
  2142. Array<float> data;
  2143. float g;
  2144. float r;
  2145. /* readonly */
  2146. Vector3 rgb;
  2147. /* readonly */
  2148. Vector4 rgba;
  2149. };
  2150. class ColorFrame
  2151. {
  2152. // Properties:
  2153. Color color;
  2154. float time;
  2155. };
  2156. class Component
  2157. {
  2158. // Methods:
  2159. void ApplyAttributes();
  2160. void DrawDebugGeometry(DebugRenderer, bool);
  2161. Variant GetAttribute(const String&) const;
  2162. ValueAnimation GetAttributeAnimation(const String&) const;
  2163. float GetAttributeAnimationSpeed(const String&) const;
  2164. float GetAttributeAnimationTime(const String&) const;
  2165. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2166. Variant GetAttributeDefault(const String&) const;
  2167. bool GetInterceptNetworkUpdate(const String&) const;
  2168. bool HasSubscribedToEvent(Object, const String&);
  2169. bool HasSubscribedToEvent(const String&);
  2170. bool Load(File, bool = false);
  2171. bool Load(VectorBuffer&, bool = false);
  2172. bool LoadJSON(const JSONValue&, bool = false);
  2173. bool LoadXML(const XMLElement&, bool = false);
  2174. void MarkNetworkUpdate() const;
  2175. void Remove();
  2176. void RemoveAttributeAnimation(const String&);
  2177. void RemoveInstanceDefault();
  2178. void RemoveObjectAnimation();
  2179. void ResetToDefault();
  2180. bool Save(File) const;
  2181. bool Save(VectorBuffer&) const;
  2182. bool SaveJSON(JSONValue&) const;
  2183. bool SaveXML(XMLElement&) const;
  2184. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2185. void SetAnimationTime(float);
  2186. bool SetAttribute(const String&, const Variant&);
  2187. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2188. void SetAttributeAnimationSpeed(const String&, float);
  2189. void SetAttributeAnimationTime(const String&, float);
  2190. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2191. void SetInterceptNetworkUpdate(const String&, bool);
  2192. // Properties:
  2193. bool animationEnabled;
  2194. /* readonly */
  2195. Array<Variant> attributeDefaults;
  2196. /* readonly */
  2197. Array<AttributeInfo> attributeInfos;
  2198. Array<Variant> attributes;
  2199. /* readonly */
  2200. String category;
  2201. bool enabled;
  2202. /* readonly */
  2203. bool enabledEffective;
  2204. /* readonly */
  2205. uint id;
  2206. /* readonly */
  2207. Node node;
  2208. /* readonly */
  2209. uint numAttributes;
  2210. ObjectAnimation objectAnimation;
  2211. /* readonly */
  2212. int refs;
  2213. bool temporary;
  2214. /* readonly */
  2215. StringHash type;
  2216. /* readonly */
  2217. String typeName;
  2218. /* readonly */
  2219. int weakRefs;
  2220. };
  2221. class Connection
  2222. {
  2223. // Methods:
  2224. void Disconnect(int = 0);
  2225. bool HasSubscribedToEvent(Object, const String&);
  2226. bool HasSubscribedToEvent(const String&);
  2227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2228. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2229. void SendPackageToClient(PackageFile);
  2230. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2231. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2232. String ToString() const;
  2233. // Properties:
  2234. /* readonly */
  2235. String address;
  2236. /* readonly */
  2237. float bytesInPerSec;
  2238. /* readonly */
  2239. float bytesOutPerSec;
  2240. /* readonly */
  2241. String category;
  2242. /* readonly */
  2243. bool client;
  2244. /* readonly */
  2245. bool connectPending;
  2246. /* readonly */
  2247. bool connected;
  2248. Controls controls;
  2249. /* readonly */
  2250. String downloadName;
  2251. /* readonly */
  2252. float downloadProgress;
  2253. VariantMap identity;
  2254. /* readonly */
  2255. float lastHeardTime;
  2256. bool logStatistics;
  2257. /* readonly */
  2258. uint numDownloads;
  2259. /* readonly */
  2260. float packetsInPerSec;
  2261. /* readonly */
  2262. float packetsOutPerSec;
  2263. /* readonly */
  2264. uint16 port;
  2265. Vector3 position;
  2266. /* readonly */
  2267. int refs;
  2268. Quaternion rotation;
  2269. /* readonly */
  2270. float roundTripTime;
  2271. Scene scene;
  2272. /* readonly */
  2273. bool sceneLoaded;
  2274. uint8 timeStamp;
  2275. /* readonly */
  2276. StringHash type;
  2277. /* readonly */
  2278. String typeName;
  2279. /* readonly */
  2280. int weakRefs;
  2281. };
  2282. class Console
  2283. {
  2284. // Methods:
  2285. void AddAutoComplete(const String&);
  2286. void CopySelectedRows() const;
  2287. bool HasSubscribedToEvent(Object, const String&);
  2288. bool HasSubscribedToEvent(const String&);
  2289. void RemoveAutoComplete(const String&);
  2290. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2291. void Toggle();
  2292. void UpdateElements();
  2293. // Properties:
  2294. bool autoVisibleOnError;
  2295. /* readonly */
  2296. BorderImage background;
  2297. /* readonly */
  2298. String category;
  2299. /* readonly */
  2300. Button closeButton;
  2301. String commandInterpreter;
  2302. XMLFile defaultStyle;
  2303. bool focusOnShow;
  2304. /* readonly */
  2305. uint historyPosition;
  2306. /* readonly */
  2307. Array<String> historyRow;
  2308. /* readonly */
  2309. LineEdit lineEdit;
  2310. uint numBufferedRows;
  2311. uint numHistoryRows;
  2312. uint numRows;
  2313. /* readonly */
  2314. int refs;
  2315. /* readonly */
  2316. StringHash type;
  2317. /* readonly */
  2318. String typeName;
  2319. bool visible;
  2320. /* readonly */
  2321. int weakRefs;
  2322. };
  2323. class Constraint
  2324. {
  2325. // Methods:
  2326. void ApplyAttributes();
  2327. void DrawDebugGeometry(DebugRenderer, bool);
  2328. Variant GetAttribute(const String&) const;
  2329. ValueAnimation GetAttributeAnimation(const String&) const;
  2330. float GetAttributeAnimationSpeed(const String&) const;
  2331. float GetAttributeAnimationTime(const String&) const;
  2332. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2333. Variant GetAttributeDefault(const String&) const;
  2334. bool GetInterceptNetworkUpdate(const String&) const;
  2335. bool HasSubscribedToEvent(Object, const String&);
  2336. bool HasSubscribedToEvent(const String&);
  2337. bool Load(File, bool = false);
  2338. bool Load(VectorBuffer&, bool = false);
  2339. bool LoadJSON(const JSONValue&, bool = false);
  2340. bool LoadXML(const XMLElement&, bool = false);
  2341. void MarkNetworkUpdate() const;
  2342. void Remove();
  2343. void RemoveAttributeAnimation(const String&);
  2344. void RemoveInstanceDefault();
  2345. void RemoveObjectAnimation();
  2346. void ResetToDefault();
  2347. bool Save(File) const;
  2348. bool Save(VectorBuffer&) const;
  2349. bool SaveJSON(JSONValue&) const;
  2350. bool SaveXML(XMLElement&) const;
  2351. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2352. void SetAnimationTime(float);
  2353. bool SetAttribute(const String&, const Variant&);
  2354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2355. void SetAttributeAnimationSpeed(const String&, float);
  2356. void SetAttributeAnimationTime(const String&, float);
  2357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2358. void SetInterceptNetworkUpdate(const String&, bool);
  2359. // Properties:
  2360. bool animationEnabled;
  2361. /* readonly */
  2362. Array<Variant> attributeDefaults;
  2363. /* readonly */
  2364. Array<AttributeInfo> attributeInfos;
  2365. Array<Variant> attributes;
  2366. /* writeonly */
  2367. Vector3 axis;
  2368. /* readonly */
  2369. String category;
  2370. float cfm;
  2371. ConstraintType constraintType;
  2372. bool disableCollision;
  2373. bool enabled;
  2374. /* readonly */
  2375. bool enabledEffective;
  2376. float erp;
  2377. Vector2 highLimit;
  2378. /* readonly */
  2379. uint id;
  2380. Vector2 lowLimit;
  2381. /* readonly */
  2382. Node node;
  2383. /* readonly */
  2384. uint numAttributes;
  2385. ObjectAnimation objectAnimation;
  2386. /* writeonly */
  2387. Vector3 otherAxis;
  2388. RigidBody otherBody;
  2389. Vector3 otherPosition;
  2390. Quaternion otherRotation;
  2391. /* readonly */
  2392. RigidBody ownBody;
  2393. Vector3 position;
  2394. /* readonly */
  2395. int refs;
  2396. Quaternion rotation;
  2397. bool temporary;
  2398. /* readonly */
  2399. StringHash type;
  2400. /* readonly */
  2401. String typeName;
  2402. /* readonly */
  2403. int weakRefs;
  2404. Vector3 worldPosition;
  2405. };
  2406. class Constraint2D
  2407. {
  2408. // Methods:
  2409. void ApplyAttributes();
  2410. void DrawDebugGeometry(DebugRenderer, bool);
  2411. Variant GetAttribute(const String&) const;
  2412. ValueAnimation GetAttributeAnimation(const String&) const;
  2413. float GetAttributeAnimationSpeed(const String&) const;
  2414. float GetAttributeAnimationTime(const String&) const;
  2415. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2416. Variant GetAttributeDefault(const String&) const;
  2417. bool GetInterceptNetworkUpdate(const String&) const;
  2418. bool HasSubscribedToEvent(Object, const String&);
  2419. bool HasSubscribedToEvent(const String&);
  2420. bool Load(File, bool = false);
  2421. bool Load(VectorBuffer&, bool = false);
  2422. bool LoadJSON(const JSONValue&, bool = false);
  2423. bool LoadXML(const XMLElement&, bool = false);
  2424. void MarkNetworkUpdate() const;
  2425. void Remove();
  2426. void RemoveAttributeAnimation(const String&);
  2427. void RemoveInstanceDefault();
  2428. void RemoveObjectAnimation();
  2429. void ResetToDefault();
  2430. bool Save(File) const;
  2431. bool Save(VectorBuffer&) const;
  2432. bool SaveJSON(JSONValue&) const;
  2433. bool SaveXML(XMLElement&) const;
  2434. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2435. void SetAnimationTime(float);
  2436. bool SetAttribute(const String&, const Variant&);
  2437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2438. void SetAttributeAnimationSpeed(const String&, float);
  2439. void SetAttributeAnimationTime(const String&, float);
  2440. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2441. void SetInterceptNetworkUpdate(const String&, bool);
  2442. // Properties:
  2443. bool animationEnabled;
  2444. /* readonly */
  2445. Array<Variant> attributeDefaults;
  2446. /* readonly */
  2447. Array<AttributeInfo> attributeInfos;
  2448. Array<Variant> attributes;
  2449. /* readonly */
  2450. String category;
  2451. bool collideConnected;
  2452. bool enabled;
  2453. /* readonly */
  2454. bool enabledEffective;
  2455. /* readonly */
  2456. uint id;
  2457. /* readonly */
  2458. Node node;
  2459. /* readonly */
  2460. uint numAttributes;
  2461. ObjectAnimation objectAnimation;
  2462. RigidBody2D otherBody;
  2463. /* readonly */
  2464. RigidBody2D ownerBody;
  2465. /* readonly */
  2466. int refs;
  2467. bool temporary;
  2468. /* readonly */
  2469. StringHash type;
  2470. /* readonly */
  2471. String typeName;
  2472. /* readonly */
  2473. int weakRefs;
  2474. };
  2475. class ConstraintDistance2D
  2476. {
  2477. // Methods:
  2478. void ApplyAttributes();
  2479. void DrawDebugGeometry(DebugRenderer, bool);
  2480. Variant GetAttribute(const String&) const;
  2481. ValueAnimation GetAttributeAnimation(const String&) const;
  2482. float GetAttributeAnimationSpeed(const String&) const;
  2483. float GetAttributeAnimationTime(const String&) const;
  2484. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2485. Variant GetAttributeDefault(const String&) const;
  2486. bool GetInterceptNetworkUpdate(const String&) const;
  2487. bool HasSubscribedToEvent(Object, const String&);
  2488. bool HasSubscribedToEvent(const String&);
  2489. bool Load(File, bool = false);
  2490. bool Load(VectorBuffer&, bool = false);
  2491. bool LoadJSON(const JSONValue&, bool = false);
  2492. bool LoadXML(const XMLElement&, bool = false);
  2493. void MarkNetworkUpdate() const;
  2494. void Remove();
  2495. void RemoveAttributeAnimation(const String&);
  2496. void RemoveInstanceDefault();
  2497. void RemoveObjectAnimation();
  2498. void ResetToDefault();
  2499. bool Save(File) const;
  2500. bool Save(VectorBuffer&) const;
  2501. bool SaveJSON(JSONValue&) const;
  2502. bool SaveXML(XMLElement&) const;
  2503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2504. void SetAnimationTime(float);
  2505. bool SetAttribute(const String&, const Variant&);
  2506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2507. void SetAttributeAnimationSpeed(const String&, float);
  2508. void SetAttributeAnimationTime(const String&, float);
  2509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2510. void SetInterceptNetworkUpdate(const String&, bool);
  2511. // Properties:
  2512. bool animationEnabled;
  2513. /* readonly */
  2514. Array<Variant> attributeDefaults;
  2515. /* readonly */
  2516. Array<AttributeInfo> attributeInfos;
  2517. Array<Variant> attributes;
  2518. /* readonly */
  2519. String category;
  2520. bool collideConnected;
  2521. float dampingRatio;
  2522. bool enabled;
  2523. /* readonly */
  2524. bool enabledEffective;
  2525. float frequencyHz;
  2526. /* readonly */
  2527. uint id;
  2528. /* readonly */
  2529. Node node;
  2530. /* readonly */
  2531. uint numAttributes;
  2532. ObjectAnimation objectAnimation;
  2533. RigidBody2D otherBody;
  2534. Vector2 otherBodyAnchor;
  2535. /* readonly */
  2536. RigidBody2D ownerBody;
  2537. Vector2 ownerBodyAnchor;
  2538. /* readonly */
  2539. int refs;
  2540. bool temporary;
  2541. /* readonly */
  2542. StringHash type;
  2543. /* readonly */
  2544. String typeName;
  2545. /* readonly */
  2546. int weakRefs;
  2547. };
  2548. class ConstraintFriction2D
  2549. {
  2550. // Methods:
  2551. void ApplyAttributes();
  2552. void DrawDebugGeometry(DebugRenderer, bool);
  2553. Variant GetAttribute(const String&) const;
  2554. ValueAnimation GetAttributeAnimation(const String&) const;
  2555. float GetAttributeAnimationSpeed(const String&) const;
  2556. float GetAttributeAnimationTime(const String&) const;
  2557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2558. Variant GetAttributeDefault(const String&) const;
  2559. bool GetInterceptNetworkUpdate(const String&) const;
  2560. bool HasSubscribedToEvent(Object, const String&);
  2561. bool HasSubscribedToEvent(const String&);
  2562. bool Load(File, bool = false);
  2563. bool Load(VectorBuffer&, bool = false);
  2564. bool LoadJSON(const JSONValue&, bool = false);
  2565. bool LoadXML(const XMLElement&, bool = false);
  2566. void MarkNetworkUpdate() const;
  2567. void Remove();
  2568. void RemoveAttributeAnimation(const String&);
  2569. void RemoveInstanceDefault();
  2570. void RemoveObjectAnimation();
  2571. void ResetToDefault();
  2572. bool Save(File) const;
  2573. bool Save(VectorBuffer&) const;
  2574. bool SaveJSON(JSONValue&) const;
  2575. bool SaveXML(XMLElement&) const;
  2576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2577. void SetAnimationTime(float);
  2578. bool SetAttribute(const String&, const Variant&);
  2579. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2580. void SetAttributeAnimationSpeed(const String&, float);
  2581. void SetAttributeAnimationTime(const String&, float);
  2582. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2583. void SetInterceptNetworkUpdate(const String&, bool);
  2584. // Properties:
  2585. Vector2 anchor;
  2586. bool animationEnabled;
  2587. /* readonly */
  2588. Array<Variant> attributeDefaults;
  2589. /* readonly */
  2590. Array<AttributeInfo> attributeInfos;
  2591. Array<Variant> attributes;
  2592. /* readonly */
  2593. String category;
  2594. bool collideConnected;
  2595. bool enabled;
  2596. /* readonly */
  2597. bool enabledEffective;
  2598. /* readonly */
  2599. uint id;
  2600. float maxForce;
  2601. float maxTorque;
  2602. /* readonly */
  2603. Node node;
  2604. /* readonly */
  2605. uint numAttributes;
  2606. ObjectAnimation objectAnimation;
  2607. RigidBody2D otherBody;
  2608. /* readonly */
  2609. RigidBody2D ownerBody;
  2610. /* readonly */
  2611. int refs;
  2612. bool temporary;
  2613. /* readonly */
  2614. StringHash type;
  2615. /* readonly */
  2616. String typeName;
  2617. /* readonly */
  2618. int weakRefs;
  2619. };
  2620. class ConstraintGear2D
  2621. {
  2622. // Methods:
  2623. void ApplyAttributes();
  2624. void DrawDebugGeometry(DebugRenderer, bool);
  2625. Variant GetAttribute(const String&) const;
  2626. ValueAnimation GetAttributeAnimation(const String&) const;
  2627. float GetAttributeAnimationSpeed(const String&) const;
  2628. float GetAttributeAnimationTime(const String&) const;
  2629. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2630. Variant GetAttributeDefault(const String&) const;
  2631. bool GetInterceptNetworkUpdate(const String&) const;
  2632. bool HasSubscribedToEvent(Object, const String&);
  2633. bool HasSubscribedToEvent(const String&);
  2634. bool Load(File, bool = false);
  2635. bool Load(VectorBuffer&, bool = false);
  2636. bool LoadJSON(const JSONValue&, bool = false);
  2637. bool LoadXML(const XMLElement&, bool = false);
  2638. void MarkNetworkUpdate() const;
  2639. void Remove();
  2640. void RemoveAttributeAnimation(const String&);
  2641. void RemoveInstanceDefault();
  2642. void RemoveObjectAnimation();
  2643. void ResetToDefault();
  2644. bool Save(File) const;
  2645. bool Save(VectorBuffer&) const;
  2646. bool SaveJSON(JSONValue&) const;
  2647. bool SaveXML(XMLElement&) const;
  2648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2649. void SetAnimationTime(float);
  2650. bool SetAttribute(const String&, const Variant&);
  2651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2652. void SetAttributeAnimationSpeed(const String&, float);
  2653. void SetAttributeAnimationTime(const String&, float);
  2654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2655. void SetInterceptNetworkUpdate(const String&, bool);
  2656. // Properties:
  2657. bool animationEnabled;
  2658. /* readonly */
  2659. Array<Variant> attributeDefaults;
  2660. /* readonly */
  2661. Array<AttributeInfo> attributeInfos;
  2662. Array<Variant> attributes;
  2663. /* readonly */
  2664. String category;
  2665. bool collideConnected;
  2666. bool enabled;
  2667. /* readonly */
  2668. bool enabledEffective;
  2669. /* readonly */
  2670. uint id;
  2671. /* readonly */
  2672. Node node;
  2673. /* readonly */
  2674. uint numAttributes;
  2675. ObjectAnimation objectAnimation;
  2676. RigidBody2D otherBody;
  2677. Constraint2D otherConstraint;
  2678. /* readonly */
  2679. RigidBody2D ownerBody;
  2680. Constraint2D ownerConstraint;
  2681. float ratio;
  2682. /* readonly */
  2683. int refs;
  2684. bool temporary;
  2685. /* readonly */
  2686. StringHash type;
  2687. /* readonly */
  2688. String typeName;
  2689. /* readonly */
  2690. int weakRefs;
  2691. };
  2692. class ConstraintMotor2D
  2693. {
  2694. // Methods:
  2695. void ApplyAttributes();
  2696. void DrawDebugGeometry(DebugRenderer, bool);
  2697. Variant GetAttribute(const String&) const;
  2698. ValueAnimation GetAttributeAnimation(const String&) const;
  2699. float GetAttributeAnimationSpeed(const String&) const;
  2700. float GetAttributeAnimationTime(const String&) const;
  2701. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2702. Variant GetAttributeDefault(const String&) const;
  2703. bool GetInterceptNetworkUpdate(const String&) const;
  2704. bool HasSubscribedToEvent(Object, const String&);
  2705. bool HasSubscribedToEvent(const String&);
  2706. bool Load(File, bool = false);
  2707. bool Load(VectorBuffer&, bool = false);
  2708. bool LoadJSON(const JSONValue&, bool = false);
  2709. bool LoadXML(const XMLElement&, bool = false);
  2710. void MarkNetworkUpdate() const;
  2711. void Remove();
  2712. void RemoveAttributeAnimation(const String&);
  2713. void RemoveInstanceDefault();
  2714. void RemoveObjectAnimation();
  2715. void ResetToDefault();
  2716. bool Save(File) const;
  2717. bool Save(VectorBuffer&) const;
  2718. bool SaveJSON(JSONValue&) const;
  2719. bool SaveXML(XMLElement&) const;
  2720. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2721. void SetAnimationTime(float);
  2722. bool SetAttribute(const String&, const Variant&);
  2723. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2724. void SetAttributeAnimationSpeed(const String&, float);
  2725. void SetAttributeAnimationTime(const String&, float);
  2726. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2727. void SetInterceptNetworkUpdate(const String&, bool);
  2728. // Properties:
  2729. float angularOffset;
  2730. bool animationEnabled;
  2731. /* readonly */
  2732. Array<Variant> attributeDefaults;
  2733. /* readonly */
  2734. Array<AttributeInfo> attributeInfos;
  2735. Array<Variant> attributes;
  2736. /* readonly */
  2737. String category;
  2738. bool collideConnected;
  2739. float correctionFactor;
  2740. bool enabled;
  2741. /* readonly */
  2742. bool enabledEffective;
  2743. /* readonly */
  2744. uint id;
  2745. Vector2 linearOffset;
  2746. float maxForce;
  2747. float maxTorque;
  2748. /* readonly */
  2749. Node node;
  2750. /* readonly */
  2751. uint numAttributes;
  2752. ObjectAnimation objectAnimation;
  2753. RigidBody2D otherBody;
  2754. /* readonly */
  2755. RigidBody2D ownerBody;
  2756. /* readonly */
  2757. int refs;
  2758. bool temporary;
  2759. /* readonly */
  2760. StringHash type;
  2761. /* readonly */
  2762. String typeName;
  2763. /* readonly */
  2764. int weakRefs;
  2765. };
  2766. class ConstraintMouse2D
  2767. {
  2768. // Methods:
  2769. void ApplyAttributes();
  2770. void DrawDebugGeometry(DebugRenderer, bool);
  2771. Variant GetAttribute(const String&) const;
  2772. ValueAnimation GetAttributeAnimation(const String&) const;
  2773. float GetAttributeAnimationSpeed(const String&) const;
  2774. float GetAttributeAnimationTime(const String&) const;
  2775. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2776. Variant GetAttributeDefault(const String&) const;
  2777. bool GetInterceptNetworkUpdate(const String&) const;
  2778. bool HasSubscribedToEvent(Object, const String&);
  2779. bool HasSubscribedToEvent(const String&);
  2780. bool Load(File, bool = false);
  2781. bool Load(VectorBuffer&, bool = false);
  2782. bool LoadJSON(const JSONValue&, bool = false);
  2783. bool LoadXML(const XMLElement&, bool = false);
  2784. void MarkNetworkUpdate() const;
  2785. void Remove();
  2786. void RemoveAttributeAnimation(const String&);
  2787. void RemoveInstanceDefault();
  2788. void RemoveObjectAnimation();
  2789. void ResetToDefault();
  2790. bool Save(File) const;
  2791. bool Save(VectorBuffer&) const;
  2792. bool SaveJSON(JSONValue&) const;
  2793. bool SaveXML(XMLElement&) const;
  2794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2795. void SetAnimationTime(float);
  2796. bool SetAttribute(const String&, const Variant&);
  2797. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2798. void SetAttributeAnimationSpeed(const String&, float);
  2799. void SetAttributeAnimationTime(const String&, float);
  2800. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2801. void SetInterceptNetworkUpdate(const String&, bool);
  2802. // Properties:
  2803. bool animationEnabled;
  2804. /* readonly */
  2805. Array<Variant> attributeDefaults;
  2806. /* readonly */
  2807. Array<AttributeInfo> attributeInfos;
  2808. Array<Variant> attributes;
  2809. /* readonly */
  2810. String category;
  2811. bool collideConnected;
  2812. float dampingRatio;
  2813. bool enabled;
  2814. /* readonly */
  2815. bool enabledEffective;
  2816. float frequencyHz;
  2817. /* readonly */
  2818. uint id;
  2819. float maxForce;
  2820. /* readonly */
  2821. Node node;
  2822. /* readonly */
  2823. uint numAttributes;
  2824. ObjectAnimation objectAnimation;
  2825. RigidBody2D otherBody;
  2826. /* readonly */
  2827. RigidBody2D ownerBody;
  2828. /* readonly */
  2829. int refs;
  2830. Vector2 target;
  2831. bool temporary;
  2832. /* readonly */
  2833. StringHash type;
  2834. /* readonly */
  2835. String typeName;
  2836. /* readonly */
  2837. int weakRefs;
  2838. };
  2839. class ConstraintPrismatic2D
  2840. {
  2841. // Methods:
  2842. void ApplyAttributes();
  2843. void DrawDebugGeometry(DebugRenderer, bool);
  2844. Variant GetAttribute(const String&) const;
  2845. ValueAnimation GetAttributeAnimation(const String&) const;
  2846. float GetAttributeAnimationSpeed(const String&) const;
  2847. float GetAttributeAnimationTime(const String&) const;
  2848. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2849. Variant GetAttributeDefault(const String&) const;
  2850. bool GetInterceptNetworkUpdate(const String&) const;
  2851. bool HasSubscribedToEvent(Object, const String&);
  2852. bool HasSubscribedToEvent(const String&);
  2853. bool Load(File, bool = false);
  2854. bool Load(VectorBuffer&, bool = false);
  2855. bool LoadJSON(const JSONValue&, bool = false);
  2856. bool LoadXML(const XMLElement&, bool = false);
  2857. void MarkNetworkUpdate() const;
  2858. void Remove();
  2859. void RemoveAttributeAnimation(const String&);
  2860. void RemoveInstanceDefault();
  2861. void RemoveObjectAnimation();
  2862. void ResetToDefault();
  2863. bool Save(File) const;
  2864. bool Save(VectorBuffer&) const;
  2865. bool SaveJSON(JSONValue&) const;
  2866. bool SaveXML(XMLElement&) const;
  2867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2868. void SetAnimationTime(float);
  2869. bool SetAttribute(const String&, const Variant&);
  2870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2871. void SetAttributeAnimationSpeed(const String&, float);
  2872. void SetAttributeAnimationTime(const String&, float);
  2873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2874. void SetInterceptNetworkUpdate(const String&, bool);
  2875. // Properties:
  2876. Vector2 anchor;
  2877. bool animationEnabled;
  2878. /* readonly */
  2879. Array<Variant> attributeDefaults;
  2880. /* readonly */
  2881. Array<AttributeInfo> attributeInfos;
  2882. Array<Variant> attributes;
  2883. Vector2 axis;
  2884. /* readonly */
  2885. String category;
  2886. bool collideConnected;
  2887. bool enableLimit;
  2888. bool enableMotor;
  2889. bool enabled;
  2890. /* readonly */
  2891. bool enabledEffective;
  2892. /* readonly */
  2893. uint id;
  2894. float lowerTranslation;
  2895. float maxMotorForce;
  2896. float motorSpeed;
  2897. /* readonly */
  2898. Node node;
  2899. /* readonly */
  2900. uint numAttributes;
  2901. ObjectAnimation objectAnimation;
  2902. RigidBody2D otherBody;
  2903. /* readonly */
  2904. RigidBody2D ownerBody;
  2905. /* readonly */
  2906. int refs;
  2907. bool temporary;
  2908. /* readonly */
  2909. StringHash type;
  2910. /* readonly */
  2911. String typeName;
  2912. float upperTranslation;
  2913. /* readonly */
  2914. int weakRefs;
  2915. };
  2916. class ConstraintPulley2D
  2917. {
  2918. // Methods:
  2919. void ApplyAttributes();
  2920. void DrawDebugGeometry(DebugRenderer, bool);
  2921. Variant GetAttribute(const String&) const;
  2922. ValueAnimation GetAttributeAnimation(const String&) const;
  2923. float GetAttributeAnimationSpeed(const String&) const;
  2924. float GetAttributeAnimationTime(const String&) const;
  2925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2926. Variant GetAttributeDefault(const String&) const;
  2927. bool GetInterceptNetworkUpdate(const String&) const;
  2928. bool HasSubscribedToEvent(Object, const String&);
  2929. bool HasSubscribedToEvent(const String&);
  2930. bool Load(File, bool = false);
  2931. bool Load(VectorBuffer&, bool = false);
  2932. bool LoadJSON(const JSONValue&, bool = false);
  2933. bool LoadXML(const XMLElement&, bool = false);
  2934. void MarkNetworkUpdate() const;
  2935. void Remove();
  2936. void RemoveAttributeAnimation(const String&);
  2937. void RemoveInstanceDefault();
  2938. void RemoveObjectAnimation();
  2939. void ResetToDefault();
  2940. bool Save(File) const;
  2941. bool Save(VectorBuffer&) const;
  2942. bool SaveJSON(JSONValue&) const;
  2943. bool SaveXML(XMLElement&) const;
  2944. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2945. void SetAnimationTime(float);
  2946. bool SetAttribute(const String&, const Variant&);
  2947. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2948. void SetAttributeAnimationSpeed(const String&, float);
  2949. void SetAttributeAnimationTime(const String&, float);
  2950. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2951. void SetInterceptNetworkUpdate(const String&, bool);
  2952. // Properties:
  2953. bool animationEnabled;
  2954. /* readonly */
  2955. Array<Variant> attributeDefaults;
  2956. /* readonly */
  2957. Array<AttributeInfo> attributeInfos;
  2958. Array<Variant> attributes;
  2959. /* readonly */
  2960. String category;
  2961. bool collideConnected;
  2962. bool enabled;
  2963. /* readonly */
  2964. bool enabledEffective;
  2965. /* readonly */
  2966. uint id;
  2967. /* readonly */
  2968. Node node;
  2969. /* readonly */
  2970. uint numAttributes;
  2971. ObjectAnimation objectAnimation;
  2972. RigidBody2D otherBody;
  2973. Vector2 otherBodyAnchor;
  2974. Vector2 otherBodyGroundAnchor;
  2975. /* readonly */
  2976. RigidBody2D ownerBody;
  2977. Vector2 ownerBodyAnchor;
  2978. Vector2 ownerBodyGroundAnchor;
  2979. float ratio;
  2980. /* readonly */
  2981. int refs;
  2982. bool temporary;
  2983. /* readonly */
  2984. StringHash type;
  2985. /* readonly */
  2986. String typeName;
  2987. /* readonly */
  2988. int weakRefs;
  2989. };
  2990. class ConstraintRevolute2D
  2991. {
  2992. // Methods:
  2993. void ApplyAttributes();
  2994. void DrawDebugGeometry(DebugRenderer, bool);
  2995. Variant GetAttribute(const String&) const;
  2996. ValueAnimation GetAttributeAnimation(const String&) const;
  2997. float GetAttributeAnimationSpeed(const String&) const;
  2998. float GetAttributeAnimationTime(const String&) const;
  2999. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3000. Variant GetAttributeDefault(const String&) const;
  3001. bool GetInterceptNetworkUpdate(const String&) const;
  3002. bool HasSubscribedToEvent(Object, const String&);
  3003. bool HasSubscribedToEvent(const String&);
  3004. bool Load(File, bool = false);
  3005. bool Load(VectorBuffer&, bool = false);
  3006. bool LoadJSON(const JSONValue&, bool = false);
  3007. bool LoadXML(const XMLElement&, bool = false);
  3008. void MarkNetworkUpdate() const;
  3009. void Remove();
  3010. void RemoveAttributeAnimation(const String&);
  3011. void RemoveInstanceDefault();
  3012. void RemoveObjectAnimation();
  3013. void ResetToDefault();
  3014. bool Save(File) const;
  3015. bool Save(VectorBuffer&) const;
  3016. bool SaveJSON(JSONValue&) const;
  3017. bool SaveXML(XMLElement&) const;
  3018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3019. void SetAnimationTime(float);
  3020. bool SetAttribute(const String&, const Variant&);
  3021. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3022. void SetAttributeAnimationSpeed(const String&, float);
  3023. void SetAttributeAnimationTime(const String&, float);
  3024. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3025. void SetInterceptNetworkUpdate(const String&, bool);
  3026. // Properties:
  3027. Vector2 anchor;
  3028. bool animationEnabled;
  3029. /* readonly */
  3030. Array<Variant> attributeDefaults;
  3031. /* readonly */
  3032. Array<AttributeInfo> attributeInfos;
  3033. Array<Variant> attributes;
  3034. /* readonly */
  3035. String category;
  3036. bool collideConnected;
  3037. bool enableLimit;
  3038. bool enableMotor;
  3039. bool enabled;
  3040. /* readonly */
  3041. bool enabledEffective;
  3042. /* readonly */
  3043. uint id;
  3044. float lowerAngle;
  3045. float maxMotorTorque;
  3046. float motorSpeed;
  3047. /* readonly */
  3048. Node node;
  3049. /* readonly */
  3050. uint numAttributes;
  3051. ObjectAnimation objectAnimation;
  3052. RigidBody2D otherBody;
  3053. /* readonly */
  3054. RigidBody2D ownerBody;
  3055. /* readonly */
  3056. int refs;
  3057. bool temporary;
  3058. /* readonly */
  3059. StringHash type;
  3060. /* readonly */
  3061. String typeName;
  3062. float upperAngle;
  3063. /* readonly */
  3064. int weakRefs;
  3065. };
  3066. class ConstraintRope2D
  3067. {
  3068. // Methods:
  3069. void ApplyAttributes();
  3070. void DrawDebugGeometry(DebugRenderer, bool);
  3071. Variant GetAttribute(const String&) const;
  3072. ValueAnimation GetAttributeAnimation(const String&) const;
  3073. float GetAttributeAnimationSpeed(const String&) const;
  3074. float GetAttributeAnimationTime(const String&) const;
  3075. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3076. Variant GetAttributeDefault(const String&) const;
  3077. bool GetInterceptNetworkUpdate(const String&) const;
  3078. bool HasSubscribedToEvent(Object, const String&);
  3079. bool HasSubscribedToEvent(const String&);
  3080. bool Load(File, bool = false);
  3081. bool Load(VectorBuffer&, bool = false);
  3082. bool LoadJSON(const JSONValue&, bool = false);
  3083. bool LoadXML(const XMLElement&, bool = false);
  3084. void MarkNetworkUpdate() const;
  3085. void Remove();
  3086. void RemoveAttributeAnimation(const String&);
  3087. void RemoveInstanceDefault();
  3088. void RemoveObjectAnimation();
  3089. void ResetToDefault();
  3090. bool Save(File) const;
  3091. bool Save(VectorBuffer&) const;
  3092. bool SaveJSON(JSONValue&) const;
  3093. bool SaveXML(XMLElement&) const;
  3094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3095. void SetAnimationTime(float);
  3096. bool SetAttribute(const String&, const Variant&);
  3097. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3098. void SetAttributeAnimationSpeed(const String&, float);
  3099. void SetAttributeAnimationTime(const String&, float);
  3100. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3101. void SetInterceptNetworkUpdate(const String&, bool);
  3102. // Properties:
  3103. bool animationEnabled;
  3104. /* readonly */
  3105. Array<Variant> attributeDefaults;
  3106. /* readonly */
  3107. Array<AttributeInfo> attributeInfos;
  3108. Array<Variant> attributes;
  3109. /* readonly */
  3110. String category;
  3111. bool collideConnected;
  3112. bool enabled;
  3113. /* readonly */
  3114. bool enabledEffective;
  3115. /* readonly */
  3116. uint id;
  3117. float maxLength;
  3118. /* readonly */
  3119. Node node;
  3120. /* readonly */
  3121. uint numAttributes;
  3122. ObjectAnimation objectAnimation;
  3123. RigidBody2D otherBody;
  3124. Vector2 otherBodyAnchor;
  3125. /* readonly */
  3126. RigidBody2D ownerBody;
  3127. Vector2 ownerBodyAnchor;
  3128. /* readonly */
  3129. int refs;
  3130. bool temporary;
  3131. /* readonly */
  3132. StringHash type;
  3133. /* readonly */
  3134. String typeName;
  3135. /* readonly */
  3136. int weakRefs;
  3137. };
  3138. class ConstraintWeld2D
  3139. {
  3140. // Methods:
  3141. void ApplyAttributes();
  3142. void DrawDebugGeometry(DebugRenderer, bool);
  3143. Variant GetAttribute(const String&) const;
  3144. ValueAnimation GetAttributeAnimation(const String&) const;
  3145. float GetAttributeAnimationSpeed(const String&) const;
  3146. float GetAttributeAnimationTime(const String&) const;
  3147. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3148. Variant GetAttributeDefault(const String&) const;
  3149. bool GetInterceptNetworkUpdate(const String&) const;
  3150. bool HasSubscribedToEvent(Object, const String&);
  3151. bool HasSubscribedToEvent(const String&);
  3152. bool Load(File, bool = false);
  3153. bool Load(VectorBuffer&, bool = false);
  3154. bool LoadJSON(const JSONValue&, bool = false);
  3155. bool LoadXML(const XMLElement&, bool = false);
  3156. void MarkNetworkUpdate() const;
  3157. void Remove();
  3158. void RemoveAttributeAnimation(const String&);
  3159. void RemoveInstanceDefault();
  3160. void RemoveObjectAnimation();
  3161. void ResetToDefault();
  3162. bool Save(File) const;
  3163. bool Save(VectorBuffer&) const;
  3164. bool SaveJSON(JSONValue&) const;
  3165. bool SaveXML(XMLElement&) const;
  3166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3167. void SetAnimationTime(float);
  3168. bool SetAttribute(const String&, const Variant&);
  3169. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3170. void SetAttributeAnimationSpeed(const String&, float);
  3171. void SetAttributeAnimationTime(const String&, float);
  3172. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3173. void SetInterceptNetworkUpdate(const String&, bool);
  3174. // Properties:
  3175. Vector2 anchor;
  3176. bool animationEnabled;
  3177. /* readonly */
  3178. Array<Variant> attributeDefaults;
  3179. /* readonly */
  3180. Array<AttributeInfo> attributeInfos;
  3181. Array<Variant> attributes;
  3182. /* readonly */
  3183. String category;
  3184. bool collideConnected;
  3185. float dampingRatio;
  3186. bool enabled;
  3187. /* readonly */
  3188. bool enabledEffective;
  3189. float frequencyHz;
  3190. /* readonly */
  3191. uint id;
  3192. /* readonly */
  3193. Node node;
  3194. /* readonly */
  3195. uint numAttributes;
  3196. ObjectAnimation objectAnimation;
  3197. RigidBody2D otherBody;
  3198. /* readonly */
  3199. RigidBody2D ownerBody;
  3200. /* readonly */
  3201. int refs;
  3202. bool temporary;
  3203. /* readonly */
  3204. StringHash type;
  3205. /* readonly */
  3206. String typeName;
  3207. /* readonly */
  3208. int weakRefs;
  3209. };
  3210. class ConstraintWheel2D
  3211. {
  3212. // Methods:
  3213. void ApplyAttributes();
  3214. void DrawDebugGeometry(DebugRenderer, bool);
  3215. Variant GetAttribute(const String&) const;
  3216. ValueAnimation GetAttributeAnimation(const String&) const;
  3217. float GetAttributeAnimationSpeed(const String&) const;
  3218. float GetAttributeAnimationTime(const String&) const;
  3219. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3220. Variant GetAttributeDefault(const String&) const;
  3221. bool GetInterceptNetworkUpdate(const String&) const;
  3222. bool HasSubscribedToEvent(Object, const String&);
  3223. bool HasSubscribedToEvent(const String&);
  3224. bool Load(File, bool = false);
  3225. bool Load(VectorBuffer&, bool = false);
  3226. bool LoadJSON(const JSONValue&, bool = false);
  3227. bool LoadXML(const XMLElement&, bool = false);
  3228. void MarkNetworkUpdate() const;
  3229. void Remove();
  3230. void RemoveAttributeAnimation(const String&);
  3231. void RemoveInstanceDefault();
  3232. void RemoveObjectAnimation();
  3233. void ResetToDefault();
  3234. bool Save(File) const;
  3235. bool Save(VectorBuffer&) const;
  3236. bool SaveJSON(JSONValue&) const;
  3237. bool SaveXML(XMLElement&) const;
  3238. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3239. void SetAnimationTime(float);
  3240. bool SetAttribute(const String&, const Variant&);
  3241. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3242. void SetAttributeAnimationSpeed(const String&, float);
  3243. void SetAttributeAnimationTime(const String&, float);
  3244. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3245. void SetInterceptNetworkUpdate(const String&, bool);
  3246. // Properties:
  3247. Vector2 anchor;
  3248. bool animationEnabled;
  3249. /* readonly */
  3250. Array<Variant> attributeDefaults;
  3251. /* readonly */
  3252. Array<AttributeInfo> attributeInfos;
  3253. Array<Variant> attributes;
  3254. Vector2 axis;
  3255. /* readonly */
  3256. String category;
  3257. bool collideConnected;
  3258. float dampingRatio;
  3259. bool enableMotor;
  3260. bool enabled;
  3261. /* readonly */
  3262. bool enabledEffective;
  3263. float frequencyHz;
  3264. /* readonly */
  3265. uint id;
  3266. float maxMotorTorque;
  3267. float motorSpeed;
  3268. /* readonly */
  3269. Node node;
  3270. /* readonly */
  3271. uint numAttributes;
  3272. ObjectAnimation objectAnimation;
  3273. RigidBody2D otherBody;
  3274. /* readonly */
  3275. RigidBody2D ownerBody;
  3276. /* readonly */
  3277. int refs;
  3278. bool temporary;
  3279. /* readonly */
  3280. StringHash type;
  3281. /* readonly */
  3282. String typeName;
  3283. /* readonly */
  3284. int weakRefs;
  3285. };
  3286. class Controls
  3287. {
  3288. // Methods:
  3289. bool IsDown(uint) const;
  3290. bool IsPressed(uint, const Controls&) const;
  3291. void Reset();
  3292. void Set(uint, bool);
  3293. // Properties:
  3294. uint buttons;
  3295. VariantMap extraData;
  3296. float pitch;
  3297. float yaw;
  3298. };
  3299. class CrowdAgent
  3300. {
  3301. // Methods:
  3302. void ApplyAttributes();
  3303. void DrawDebugGeometry(DebugRenderer, bool);
  3304. void DrawDebugGeometry(bool);
  3305. Variant GetAttribute(const String&) const;
  3306. ValueAnimation GetAttributeAnimation(const String&) const;
  3307. float GetAttributeAnimationSpeed(const String&) const;
  3308. float GetAttributeAnimationTime(const String&) const;
  3309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3310. Variant GetAttributeDefault(const String&) const;
  3311. bool GetInterceptNetworkUpdate(const String&) const;
  3312. bool HasSubscribedToEvent(Object, const String&);
  3313. bool HasSubscribedToEvent(const String&);
  3314. bool Load(File, bool = false);
  3315. bool Load(VectorBuffer&, bool = false);
  3316. bool LoadJSON(const JSONValue&, bool = false);
  3317. bool LoadXML(const XMLElement&, bool = false);
  3318. void MarkNetworkUpdate() const;
  3319. void Remove();
  3320. void RemoveAttributeAnimation(const String&);
  3321. void RemoveInstanceDefault();
  3322. void RemoveObjectAnimation();
  3323. void ResetTarget();
  3324. void ResetToDefault();
  3325. bool Save(File) const;
  3326. bool Save(VectorBuffer&) const;
  3327. bool SaveJSON(JSONValue&) const;
  3328. bool SaveXML(XMLElement&) const;
  3329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3330. void SetAnimationTime(float);
  3331. bool SetAttribute(const String&, const Variant&);
  3332. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3333. void SetAttributeAnimationSpeed(const String&, float);
  3334. void SetAttributeAnimationTime(const String&, float);
  3335. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3336. void SetInterceptNetworkUpdate(const String&, bool);
  3337. // Properties:
  3338. /* readonly */
  3339. Vector3 actualVelocity;
  3340. /* readonly */
  3341. CrowdAgentState agentState;
  3342. bool animationEnabled;
  3343. /* readonly */
  3344. bool arrived;
  3345. /* readonly */
  3346. Array<Variant> attributeDefaults;
  3347. /* readonly */
  3348. Array<AttributeInfo> attributeInfos;
  3349. Array<Variant> attributes;
  3350. /* readonly */
  3351. String category;
  3352. /* readonly */
  3353. Vector3 desiredVelocity;
  3354. bool enabled;
  3355. /* readonly */
  3356. bool enabledEffective;
  3357. float height;
  3358. /* readonly */
  3359. uint id;
  3360. /* readonly */
  3361. bool inCrowd;
  3362. float maxAccel;
  3363. float maxSpeed;
  3364. NavigationPushiness navigationPushiness;
  3365. NavigationQuality navigationQuality;
  3366. /* readonly */
  3367. Node node;
  3368. /* readonly */
  3369. uint numAttributes;
  3370. ObjectAnimation objectAnimation;
  3371. uint obstacleAvoidanceType;
  3372. /* readonly */
  3373. Vector3 position;
  3374. uint queryFilterType;
  3375. float radius;
  3376. /* readonly */
  3377. int refs;
  3378. /* readonly */
  3379. bool requestedTarget;
  3380. /* readonly */
  3381. CrowdAgentRequestedTarget requestedTargetType;
  3382. Vector3 targetPosition;
  3383. /* readonly */
  3384. CrowdAgentTargetState targetState;
  3385. Vector3 targetVelocity;
  3386. bool temporary;
  3387. /* readonly */
  3388. StringHash type;
  3389. /* readonly */
  3390. String typeName;
  3391. bool updateNodePosition;
  3392. /* readonly */
  3393. int weakRefs;
  3394. };
  3395. class CrowdManager
  3396. {
  3397. // Methods:
  3398. void ApplyAttributes();
  3399. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3400. void DrawDebugGeometry(DebugRenderer, bool);
  3401. void DrawDebugGeometry(bool);
  3402. Vector3 FindNearestPoint(const Vector3&, int);
  3403. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3404. float GetAreaCost(uint, uint);
  3405. Variant GetAttribute(const String&) const;
  3406. ValueAnimation GetAttributeAnimation(const String&) const;
  3407. float GetAttributeAnimationSpeed(const String&) const;
  3408. float GetAttributeAnimationTime(const String&) const;
  3409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3410. Variant GetAttributeDefault(const String&) const;
  3411. float GetDistanceToWall(const Vector3&, float, int);
  3412. uint16 GetExcludeFlags(uint);
  3413. uint16 GetIncludeFlags(uint);
  3414. bool GetInterceptNetworkUpdate(const String&) const;
  3415. Vector3 GetRandomPoint(int);
  3416. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3417. bool HasSubscribedToEvent(Object, const String&);
  3418. bool HasSubscribedToEvent(const String&);
  3419. bool Load(File, bool = false);
  3420. bool Load(VectorBuffer&, bool = false);
  3421. bool LoadJSON(const JSONValue&, bool = false);
  3422. bool LoadXML(const XMLElement&, bool = false);
  3423. void MarkNetworkUpdate() const;
  3424. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3425. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3426. void Remove();
  3427. void RemoveAttributeAnimation(const String&);
  3428. void RemoveInstanceDefault();
  3429. void RemoveObjectAnimation();
  3430. void ResetCrowdTarget(Node = null);
  3431. void ResetToDefault();
  3432. bool Save(File) const;
  3433. bool Save(VectorBuffer&) const;
  3434. bool SaveJSON(JSONValue&) const;
  3435. bool SaveXML(XMLElement&) const;
  3436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3437. void SetAnimationTime(float);
  3438. void SetAreaCost(uint, uint, float);
  3439. bool SetAttribute(const String&, const Variant&);
  3440. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3441. void SetAttributeAnimationSpeed(const String&, float);
  3442. void SetAttributeAnimationTime(const String&, float);
  3443. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3444. void SetCrowdTarget(const Vector3&, Node = null);
  3445. void SetCrowdVelocity(const Vector3&, Node = null);
  3446. void SetExcludeFlags(uint, uint16);
  3447. void SetIncludeFlags(uint, uint16);
  3448. void SetInterceptNetworkUpdate(const String&, bool);
  3449. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3450. // Properties:
  3451. bool animationEnabled;
  3452. /* readonly */
  3453. Array<Variant> attributeDefaults;
  3454. /* readonly */
  3455. Array<AttributeInfo> attributeInfos;
  3456. Array<Variant> attributes;
  3457. /* readonly */
  3458. String category;
  3459. bool enabled;
  3460. /* readonly */
  3461. bool enabledEffective;
  3462. /* readonly */
  3463. uint id;
  3464. float maxAgentRadius;
  3465. int maxAgents;
  3466. NavigationMesh navMesh;
  3467. /* readonly */
  3468. Node node;
  3469. /* readonly */
  3470. Array<uint> numAreas;
  3471. /* readonly */
  3472. uint numAttributes;
  3473. /* readonly */
  3474. uint numObstacleAvoidanceTypes;
  3475. /* readonly */
  3476. uint numQueryFilterTypes;
  3477. ObjectAnimation objectAnimation;
  3478. /* readonly */
  3479. int refs;
  3480. bool temporary;
  3481. /* readonly */
  3482. StringHash type;
  3483. /* readonly */
  3484. String typeName;
  3485. /* readonly */
  3486. int weakRefs;
  3487. };
  3488. class CrowdObstacleAvoidanceParams
  3489. {
  3490. // Properties:
  3491. uint8 adaptiveDepth;
  3492. uint8 adaptiveDivs;
  3493. uint8 adaptiveRings;
  3494. uint8 gridSize;
  3495. float horizTime;
  3496. float velBias;
  3497. float weightCurVel;
  3498. float weightDesVel;
  3499. float weightSide;
  3500. float weightToi;
  3501. };
  3502. class Cursor
  3503. {
  3504. // Methods:
  3505. void AddChild(UIElement);
  3506. void AddTag(const String&);
  3507. void AddTags(const String&, int8 = ';');
  3508. void ApplyAttributes();
  3509. void BringToFront();
  3510. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3511. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3512. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3513. void DisableLayoutUpdate();
  3514. IntVector2 ElementToScreen(const IntVector2&);
  3515. void EnableLayoutUpdate();
  3516. uint FindChild(UIElement) const;
  3517. Variant GetAttribute(const String&) const;
  3518. ValueAnimation GetAttributeAnimation(const String&) const;
  3519. float GetAttributeAnimationSpeed(const String&) const;
  3520. float GetAttributeAnimationTime(const String&) const;
  3521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3522. Variant GetAttributeDefault(const String&) const;
  3523. UIElement GetChild(const String&, bool = false) const;
  3524. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3525. Array<UIElement> GetChildren(bool = false) const;
  3526. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3527. UIElement GetElementEventSender() const;
  3528. bool GetInterceptNetworkUpdate(const String&) const;
  3529. uint GetNumChildren(bool) const;
  3530. bool HasSubscribedToEvent(Object, const String&);
  3531. bool HasSubscribedToEvent(const String&);
  3532. bool HasTag(const String&) const;
  3533. void InsertChild(uint, UIElement);
  3534. bool IsInside(IntVector2, bool);
  3535. bool IsInsideCombined(IntVector2, bool);
  3536. bool Load(File, bool = false);
  3537. bool Load(VectorBuffer&, bool = false);
  3538. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3539. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3540. bool LoadJSON(const JSONValue&, bool = false);
  3541. bool LoadXML(File);
  3542. bool LoadXML(VectorBuffer&);
  3543. bool LoadXML(XMLFile, XMLFile);
  3544. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3545. bool LoadXML(const XMLElement&, bool = false);
  3546. void MarkNetworkUpdate() const;
  3547. void Remove();
  3548. void RemoveAllChildren();
  3549. void RemoveAllTags();
  3550. void RemoveAttributeAnimation(const String&);
  3551. void RemoveChild(UIElement, uint = 0);
  3552. void RemoveChild(uint);
  3553. void RemoveInstanceDefault();
  3554. void RemoveObjectAnimation();
  3555. bool RemoveTag(const String&);
  3556. void ResetDeepEnabled();
  3557. void ResetToDefault();
  3558. bool Save(File) const;
  3559. bool Save(VectorBuffer&) const;
  3560. bool SaveJSON(JSONValue&) const;
  3561. bool SaveXML(File, const String& = "\t");
  3562. bool SaveXML(VectorBuffer&, const String& = "\t");
  3563. bool SaveXML(XMLElement&) const;
  3564. IntVector2 ScreenToElement(const IntVector2&);
  3565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3566. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3567. void SetAnimationTime(float);
  3568. bool SetAttribute(const String&, const Variant&);
  3569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3570. void SetAttributeAnimationSpeed(const String&, float);
  3571. void SetAttributeAnimationTime(const String&, float);
  3572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3573. void SetDeepEnabled(bool);
  3574. void SetEnabledRecursive(bool);
  3575. void SetFixedHeight(int);
  3576. void SetFixedSize(int, int);
  3577. void SetFixedWidth(int);
  3578. void SetFullImageRect();
  3579. void SetHoverOffset(int, int);
  3580. void SetInterceptNetworkUpdate(const String&, bool);
  3581. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3582. void SetMaxAnchor(float, float);
  3583. void SetMaxSize(int, int);
  3584. void SetMinAnchor(float, float);
  3585. void SetMinSize(int, int);
  3586. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3587. void SetPivot(float, float);
  3588. void SetPosition(int, int);
  3589. void SetShape(CursorShape);
  3590. void SetShape(const String&);
  3591. void SetSize(int, int);
  3592. bool SetStyle(const String&, XMLFile = null);
  3593. bool SetStyle(const XMLElement&);
  3594. bool SetStyleAuto(XMLFile = null);
  3595. void UpdateLayout();
  3596. const Variant& GetVar(const StringHash&);
  3597. // Properties:
  3598. bool animationEnabled;
  3599. /* readonly */
  3600. Array<Variant> attributeDefaults;
  3601. /* readonly */
  3602. Array<AttributeInfo> attributeInfos;
  3603. Array<Variant> attributes;
  3604. BlendMode blendMode;
  3605. IntRect border;
  3606. bool bringToBack;
  3607. bool bringToFront;
  3608. /* readonly */
  3609. String category;
  3610. /* readonly */
  3611. IntVector2 childOffset;
  3612. /* readonly */
  3613. Array<UIElement> children;
  3614. IntRect clipBorder;
  3615. bool clipChildren;
  3616. /* writeonly */
  3617. Color color;
  3618. /* readonly */
  3619. bool colorGradient;
  3620. Array<Color> colors;
  3621. /* readonly */
  3622. IntRect combinedScreenRect;
  3623. XMLFile defaultStyle;
  3624. /* readonly */
  3625. float derivedOpacity;
  3626. /* readonly */
  3627. uint dragButtonCombo;
  3628. /* readonly */
  3629. int dragButtonCount;
  3630. uint dragDropMode;
  3631. bool editable;
  3632. bool elementEventSender;
  3633. bool enableAnchor;
  3634. bool enabled;
  3635. /* readonly */
  3636. bool enabledSelf;
  3637. /* readonly */
  3638. bool fixedHeight;
  3639. /* readonly */
  3640. bool fixedSize;
  3641. /* readonly */
  3642. bool fixedWidth;
  3643. bool focus;
  3644. FocusMode focusMode;
  3645. int height;
  3646. HorizontalAlignment horizontalAlignment;
  3647. IntVector2 hoverOffset;
  3648. /* readonly */
  3649. bool hovering;
  3650. IntRect imageBorder;
  3651. IntRect imageRect;
  3652. int indent;
  3653. int indentSpacing;
  3654. /* readonly */
  3655. int indentWidth;
  3656. bool internal;
  3657. IntRect layoutBorder;
  3658. Vector2 layoutFlexScale;
  3659. LayoutMode layoutMode;
  3660. int layoutSpacing;
  3661. Vector2 maxAnchor;
  3662. int maxHeight;
  3663. IntVector2 maxOffset;
  3664. IntVector2 maxSize;
  3665. int maxWidth;
  3666. Vector2 minAnchor;
  3667. int minHeight;
  3668. IntVector2 minOffset;
  3669. IntVector2 minSize;
  3670. int minWidth;
  3671. String name;
  3672. /* readonly */
  3673. uint numAllChildren;
  3674. /* readonly */
  3675. uint numAttributes;
  3676. /* readonly */
  3677. uint numChildren;
  3678. ObjectAnimation objectAnimation;
  3679. float opacity;
  3680. UIElement parent;
  3681. Vector2 pivot;
  3682. IntVector2 position;
  3683. int priority;
  3684. /* readonly */
  3685. int refs;
  3686. /* readonly */
  3687. UIElement root;
  3688. /* readonly */
  3689. IntVector2 screenPosition;
  3690. bool selected;
  3691. String shape;
  3692. IntVector2 size;
  3693. bool sortChildren;
  3694. String style;
  3695. /* readonly */
  3696. Array<String> tags;
  3697. bool temporary;
  3698. Texture texture;
  3699. bool tiled;
  3700. TraversalMode traversalMode;
  3701. /* readonly */
  3702. StringHash type;
  3703. /* readonly */
  3704. String typeName;
  3705. bool useDerivedOpacity;
  3706. bool useSystemShapes;
  3707. /* readonly */
  3708. VariantMap vars;
  3709. VerticalAlignment verticalAlignment;
  3710. bool visible;
  3711. /* readonly */
  3712. bool visibleEffective;
  3713. /* readonly */
  3714. int weakRefs;
  3715. int width;
  3716. };
  3717. class CustomGeometry
  3718. {
  3719. // Methods:
  3720. void ApplyAttributes();
  3721. void BeginGeometry(uint, PrimitiveType);
  3722. void Clear();
  3723. void Commit();
  3724. void DefineColor(const Color&);
  3725. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3726. void DefineNormal(const Vector3&);
  3727. void DefineTangent(const Vector4&);
  3728. void DefineTexCoord(const Vector2&);
  3729. void DefineVertex(const Vector3&);
  3730. void DrawDebugGeometry(DebugRenderer, bool);
  3731. Variant GetAttribute(const String&) const;
  3732. ValueAnimation GetAttributeAnimation(const String&) const;
  3733. float GetAttributeAnimationSpeed(const String&) const;
  3734. float GetAttributeAnimationTime(const String&) const;
  3735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3736. Variant GetAttributeDefault(const String&) const;
  3737. bool GetInterceptNetworkUpdate(const String&) const;
  3738. CustomGeometryVertex GetVertex(uint, uint);
  3739. bool HasSubscribedToEvent(Object, const String&);
  3740. bool HasSubscribedToEvent(const String&);
  3741. bool IsInView(Camera) const;
  3742. bool Load(File, bool = false);
  3743. bool Load(VectorBuffer&, bool = false);
  3744. bool LoadJSON(const JSONValue&, bool = false);
  3745. bool LoadXML(const XMLElement&, bool = false);
  3746. void MarkNetworkUpdate() const;
  3747. void Remove();
  3748. void RemoveAttributeAnimation(const String&);
  3749. void RemoveInstanceDefault();
  3750. void RemoveObjectAnimation();
  3751. void ResetToDefault();
  3752. bool Save(File) const;
  3753. bool Save(VectorBuffer&) const;
  3754. bool SaveJSON(JSONValue&) const;
  3755. bool SaveXML(XMLElement&) const;
  3756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3757. void SetAnimationTime(float);
  3758. bool SetAttribute(const String&, const Variant&);
  3759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3760. void SetAttributeAnimationSpeed(const String&, float);
  3761. void SetAttributeAnimationTime(const String&, float);
  3762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3763. void SetInterceptNetworkUpdate(const String&, bool);
  3764. // Properties:
  3765. bool animationEnabled;
  3766. /* readonly */
  3767. Array<Variant> attributeDefaults;
  3768. /* readonly */
  3769. Array<AttributeInfo> attributeInfos;
  3770. Array<Variant> attributes;
  3771. /* readonly */
  3772. BoundingBox boundingBox;
  3773. bool castShadows;
  3774. /* readonly */
  3775. String category;
  3776. float drawDistance;
  3777. bool dynamic;
  3778. bool enabled;
  3779. /* readonly */
  3780. bool enabledEffective;
  3781. /* readonly */
  3782. uint id;
  3783. /* readonly */
  3784. bool inView;
  3785. uint lightMask;
  3786. float lodBias;
  3787. /* writeonly */
  3788. Material material;
  3789. Array<Material> materials;
  3790. uint maxLights;
  3791. /* readonly */
  3792. Node node;
  3793. /* readonly */
  3794. uint numAttributes;
  3795. uint numGeometries;
  3796. /* readonly */
  3797. Array<uint> numVertices;
  3798. ObjectAnimation objectAnimation;
  3799. bool occludee;
  3800. bool occluder;
  3801. /* readonly */
  3802. int refs;
  3803. float shadowDistance;
  3804. uint shadowMask;
  3805. bool temporary;
  3806. /* readonly */
  3807. StringHash type;
  3808. /* readonly */
  3809. String typeName;
  3810. uint viewMask;
  3811. /* readonly */
  3812. int weakRefs;
  3813. /* readonly */
  3814. BoundingBox worldBoundingBox;
  3815. /* readonly */
  3816. Zone zone;
  3817. uint zoneMask;
  3818. };
  3819. class CustomGeometryVertex
  3820. {
  3821. // Properties:
  3822. uint color;
  3823. Vector3 normal;
  3824. Vector3 position;
  3825. Vector4 tangent;
  3826. Vector2 texCoord;
  3827. };
  3828. class Database
  3829. {
  3830. // Methods:
  3831. DbConnection Connect(const String&);
  3832. void Disconnect(DbConnection);
  3833. bool HasSubscribedToEvent(Object, const String&);
  3834. bool HasSubscribedToEvent(const String&);
  3835. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3836. // Properties:
  3837. /* readonly */
  3838. String category;
  3839. uint poolSize;
  3840. /* readonly */
  3841. bool pooling;
  3842. /* readonly */
  3843. int refs;
  3844. /* readonly */
  3845. StringHash type;
  3846. /* readonly */
  3847. String typeName;
  3848. /* readonly */
  3849. int weakRefs;
  3850. };
  3851. class DbConnection
  3852. {
  3853. // Methods:
  3854. DbResult Execute(const String&, bool = false);
  3855. bool HasSubscribedToEvent(Object, const String&);
  3856. bool HasSubscribedToEvent(const String&);
  3857. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3858. // Properties:
  3859. /* readonly */
  3860. String category;
  3861. /* readonly */
  3862. bool connected;
  3863. /* readonly */
  3864. String connectionString;
  3865. /* readonly */
  3866. int refs;
  3867. /* readonly */
  3868. StringHash type;
  3869. /* readonly */
  3870. String typeName;
  3871. /* readonly */
  3872. int weakRefs;
  3873. };
  3874. class DbResult
  3875. {
  3876. // Properties:
  3877. /* readonly */
  3878. Array<String> columns;
  3879. /* readonly */
  3880. int64 numAffectedRows;
  3881. /* readonly */
  3882. uint numColumns;
  3883. /* readonly */
  3884. uint numRows;
  3885. /* readonly */
  3886. Array<Array<Variant>> row;
  3887. };
  3888. class DebugHud
  3889. {
  3890. // Methods:
  3891. void ClearAppStats();
  3892. bool HasSubscribedToEvent(Object, const String&);
  3893. bool HasSubscribedToEvent(const String&);
  3894. void ResetAppStats(const String&);
  3895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3896. void SetAppStats(const String&, const String&);
  3897. void SetAppStats(const String&, const Variant&);
  3898. void Toggle(uint);
  3899. void ToggleAll();
  3900. void Update();
  3901. // Properties:
  3902. /* readonly */
  3903. String category;
  3904. XMLFile defaultStyle;
  3905. /* readonly */
  3906. Text memoryText;
  3907. uint mode;
  3908. /* readonly */
  3909. Text modeText;
  3910. float profilerInterval;
  3911. uint profilerMaxDepth;
  3912. /* readonly */
  3913. Text profilerText;
  3914. /* readonly */
  3915. int refs;
  3916. /* readonly */
  3917. Text statsText;
  3918. /* readonly */
  3919. StringHash type;
  3920. /* readonly */
  3921. String typeName;
  3922. bool useRendererStats;
  3923. /* readonly */
  3924. int weakRefs;
  3925. };
  3926. class DebugRenderer
  3927. {
  3928. // Methods:
  3929. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  3930. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3931. void AddCross(const Vector3&, float, const Color&, bool = true);
  3932. void AddFrustum(const Frustum&, const Color&, bool = true);
  3933. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3934. void AddNode(Node, float = 1.0, bool = true);
  3935. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3936. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3937. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3938. void AddSkeleton(Skeleton, const Color&, bool = true);
  3939. void AddSphere(const Sphere&, const Color&, bool = true);
  3940. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3941. void ApplyAttributes();
  3942. void DrawDebugGeometry(DebugRenderer, bool);
  3943. Variant GetAttribute(const String&) const;
  3944. ValueAnimation GetAttributeAnimation(const String&) const;
  3945. float GetAttributeAnimationSpeed(const String&) const;
  3946. float GetAttributeAnimationTime(const String&) const;
  3947. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3948. Variant GetAttributeDefault(const String&) const;
  3949. bool GetInterceptNetworkUpdate(const String&) const;
  3950. bool HasSubscribedToEvent(Object, const String&);
  3951. bool HasSubscribedToEvent(const String&);
  3952. bool Load(File, bool = false);
  3953. bool Load(VectorBuffer&, bool = false);
  3954. bool LoadJSON(const JSONValue&, bool = false);
  3955. bool LoadXML(const XMLElement&, bool = false);
  3956. void MarkNetworkUpdate() const;
  3957. void Remove();
  3958. void RemoveAttributeAnimation(const String&);
  3959. void RemoveInstanceDefault();
  3960. void RemoveObjectAnimation();
  3961. void ResetToDefault();
  3962. bool Save(File) const;
  3963. bool Save(VectorBuffer&) const;
  3964. bool SaveJSON(JSONValue&) const;
  3965. bool SaveXML(XMLElement&) const;
  3966. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3967. void SetAnimationTime(float);
  3968. bool SetAttribute(const String&, const Variant&);
  3969. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3970. void SetAttributeAnimationSpeed(const String&, float);
  3971. void SetAttributeAnimationTime(const String&, float);
  3972. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3973. void SetInterceptNetworkUpdate(const String&, bool);
  3974. // Properties:
  3975. bool animationEnabled;
  3976. /* readonly */
  3977. Array<Variant> attributeDefaults;
  3978. /* readonly */
  3979. Array<AttributeInfo> attributeInfos;
  3980. Array<Variant> attributes;
  3981. /* readonly */
  3982. String category;
  3983. bool enabled;
  3984. /* readonly */
  3985. bool enabledEffective;
  3986. /* readonly */
  3987. uint id;
  3988. bool lineAntiAlias;
  3989. /* readonly */
  3990. Node node;
  3991. /* readonly */
  3992. uint numAttributes;
  3993. ObjectAnimation objectAnimation;
  3994. /* readonly */
  3995. int refs;
  3996. bool temporary;
  3997. /* readonly */
  3998. StringHash type;
  3999. /* readonly */
  4000. String typeName;
  4001. /* readonly */
  4002. int weakRefs;
  4003. };
  4004. class DecalSet
  4005. {
  4006. // Methods:
  4007. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4008. void ApplyAttributes();
  4009. void DrawDebugGeometry(DebugRenderer, bool);
  4010. Variant GetAttribute(const String&) const;
  4011. ValueAnimation GetAttributeAnimation(const String&) const;
  4012. float GetAttributeAnimationSpeed(const String&) const;
  4013. float GetAttributeAnimationTime(const String&) const;
  4014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4015. Variant GetAttributeDefault(const String&) const;
  4016. bool GetInterceptNetworkUpdate(const String&) const;
  4017. bool HasSubscribedToEvent(Object, const String&);
  4018. bool HasSubscribedToEvent(const String&);
  4019. bool IsInView(Camera) const;
  4020. bool Load(File, bool = false);
  4021. bool Load(VectorBuffer&, bool = false);
  4022. bool LoadJSON(const JSONValue&, bool = false);
  4023. bool LoadXML(const XMLElement&, bool = false);
  4024. void MarkNetworkUpdate() const;
  4025. void Remove();
  4026. void RemoveAllDecals();
  4027. void RemoveAttributeAnimation(const String&);
  4028. void RemoveDecals(uint);
  4029. void RemoveInstanceDefault();
  4030. void RemoveObjectAnimation();
  4031. void ResetToDefault();
  4032. bool Save(File) const;
  4033. bool Save(VectorBuffer&) const;
  4034. bool SaveJSON(JSONValue&) const;
  4035. bool SaveXML(XMLElement&) const;
  4036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4037. void SetAnimationTime(float);
  4038. bool SetAttribute(const String&, const Variant&);
  4039. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4040. void SetAttributeAnimationSpeed(const String&, float);
  4041. void SetAttributeAnimationTime(const String&, float);
  4042. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4043. void SetInterceptNetworkUpdate(const String&, bool);
  4044. // Properties:
  4045. bool animationEnabled;
  4046. /* readonly */
  4047. Array<Variant> attributeDefaults;
  4048. /* readonly */
  4049. Array<AttributeInfo> attributeInfos;
  4050. Array<Variant> attributes;
  4051. /* readonly */
  4052. BoundingBox boundingBox;
  4053. bool castShadows;
  4054. /* readonly */
  4055. String category;
  4056. float drawDistance;
  4057. bool enabled;
  4058. /* readonly */
  4059. bool enabledEffective;
  4060. /* readonly */
  4061. uint id;
  4062. /* readonly */
  4063. bool inView;
  4064. uint lightMask;
  4065. float lodBias;
  4066. Material material;
  4067. uint maxIndices;
  4068. uint maxLights;
  4069. uint maxVertices;
  4070. /* readonly */
  4071. Node node;
  4072. /* readonly */
  4073. uint numAttributes;
  4074. /* readonly */
  4075. uint numDecals;
  4076. /* readonly */
  4077. uint numIndices;
  4078. /* readonly */
  4079. uint numVertices;
  4080. ObjectAnimation objectAnimation;
  4081. bool occludee;
  4082. bool occluder;
  4083. bool optimizeBufferSize;
  4084. /* readonly */
  4085. int refs;
  4086. float shadowDistance;
  4087. uint shadowMask;
  4088. bool temporary;
  4089. /* readonly */
  4090. StringHash type;
  4091. /* readonly */
  4092. String typeName;
  4093. uint viewMask;
  4094. /* readonly */
  4095. int weakRefs;
  4096. /* readonly */
  4097. BoundingBox worldBoundingBox;
  4098. /* readonly */
  4099. Zone zone;
  4100. uint zoneMask;
  4101. };
  4102. class Deserializer
  4103. {
  4104. // Methods:
  4105. Array<uint8> Read(uint);
  4106. bool ReadBool();
  4107. BoundingBox ReadBoundingBox();
  4108. int8 ReadByte();
  4109. Color ReadColor();
  4110. double ReadDouble();
  4111. String ReadFileID();
  4112. float ReadFloat();
  4113. int ReadInt();
  4114. int64 ReadInt64();
  4115. IntRect ReadIntRect();
  4116. IntVector2 ReadIntVector2();
  4117. String ReadLine();
  4118. Matrix3 ReadMatrix3();
  4119. Matrix3x4 ReadMatrix3x4();
  4120. Matrix4 ReadMatrix4();
  4121. uint ReadNetID();
  4122. Quaternion ReadPackedQuaternion();
  4123. Vector3 ReadPackedVector3(float);
  4124. Quaternion ReadQuaternion();
  4125. int16 ReadShort();
  4126. String ReadString();
  4127. StringHash ReadStringHash();
  4128. uint8 ReadUByte();
  4129. uint ReadUInt();
  4130. uint64 ReadUInt64();
  4131. uint16 ReadUShort();
  4132. uint ReadVLE();
  4133. Variant ReadVariant();
  4134. VariantMap ReadVariantMap();
  4135. Vector2 ReadVector2();
  4136. Vector3 ReadVector3();
  4137. Vector4 ReadVector4();
  4138. VectorBuffer ReadVectorBuffer(uint);
  4139. uint Seek(uint);
  4140. // Properties:
  4141. /* readonly */
  4142. uint checksum;
  4143. /* readonly */
  4144. bool eof;
  4145. /* readonly */
  4146. String name;
  4147. /* readonly */
  4148. uint position;
  4149. /* readonly */
  4150. uint size;
  4151. };
  4152. class Dictionary
  4153. {
  4154. // Methods:
  4155. void Clear();
  4156. void Erase(const String&);
  4157. bool Exists(const String&) const;
  4158. bool Get(const String&, void*) const;
  4159. bool Get(const String&, double&) const;
  4160. bool Get(const String&, int64&) const;
  4161. void Set(const String&, const void*);
  4162. void Set(const String&, const double&);
  4163. void Set(const String&, const int64&);
  4164. // Properties:
  4165. /* readonly */
  4166. bool empty;
  4167. /* readonly */
  4168. Array<String> keys;
  4169. /* readonly */
  4170. uint length;
  4171. };
  4172. class DictionaryValue
  4173. {
  4174. };
  4175. class Drawable
  4176. {
  4177. // Methods:
  4178. void ApplyAttributes();
  4179. void DrawDebugGeometry(DebugRenderer, bool);
  4180. Variant GetAttribute(const String&) const;
  4181. ValueAnimation GetAttributeAnimation(const String&) const;
  4182. float GetAttributeAnimationSpeed(const String&) const;
  4183. float GetAttributeAnimationTime(const String&) const;
  4184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4185. Variant GetAttributeDefault(const String&) const;
  4186. bool GetInterceptNetworkUpdate(const String&) const;
  4187. bool HasSubscribedToEvent(Object, const String&);
  4188. bool HasSubscribedToEvent(const String&);
  4189. bool IsInView(Camera) const;
  4190. bool Load(File, bool = false);
  4191. bool Load(VectorBuffer&, bool = false);
  4192. bool LoadJSON(const JSONValue&, bool = false);
  4193. bool LoadXML(const XMLElement&, bool = false);
  4194. void MarkNetworkUpdate() const;
  4195. void Remove();
  4196. void RemoveAttributeAnimation(const String&);
  4197. void RemoveInstanceDefault();
  4198. void RemoveObjectAnimation();
  4199. void ResetToDefault();
  4200. bool Save(File) const;
  4201. bool Save(VectorBuffer&) const;
  4202. bool SaveJSON(JSONValue&) const;
  4203. bool SaveXML(XMLElement&) const;
  4204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4205. void SetAnimationTime(float);
  4206. bool SetAttribute(const String&, const Variant&);
  4207. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4208. void SetAttributeAnimationSpeed(const String&, float);
  4209. void SetAttributeAnimationTime(const String&, float);
  4210. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4211. void SetInterceptNetworkUpdate(const String&, bool);
  4212. // Properties:
  4213. bool animationEnabled;
  4214. /* readonly */
  4215. Array<Variant> attributeDefaults;
  4216. /* readonly */
  4217. Array<AttributeInfo> attributeInfos;
  4218. Array<Variant> attributes;
  4219. /* readonly */
  4220. BoundingBox boundingBox;
  4221. bool castShadows;
  4222. /* readonly */
  4223. String category;
  4224. float drawDistance;
  4225. bool enabled;
  4226. /* readonly */
  4227. bool enabledEffective;
  4228. /* readonly */
  4229. uint id;
  4230. /* readonly */
  4231. bool inView;
  4232. uint lightMask;
  4233. float lodBias;
  4234. uint maxLights;
  4235. /* readonly */
  4236. Node node;
  4237. /* readonly */
  4238. uint numAttributes;
  4239. ObjectAnimation objectAnimation;
  4240. bool occludee;
  4241. bool occluder;
  4242. /* readonly */
  4243. int refs;
  4244. float shadowDistance;
  4245. uint shadowMask;
  4246. bool temporary;
  4247. /* readonly */
  4248. StringHash type;
  4249. /* readonly */
  4250. String typeName;
  4251. uint viewMask;
  4252. /* readonly */
  4253. int weakRefs;
  4254. /* readonly */
  4255. BoundingBox worldBoundingBox;
  4256. uint zoneMask;
  4257. };
  4258. class Drawable2D
  4259. {
  4260. // Methods:
  4261. void ApplyAttributes();
  4262. void DrawDebugGeometry(DebugRenderer, bool);
  4263. Variant GetAttribute(const String&) const;
  4264. ValueAnimation GetAttributeAnimation(const String&) const;
  4265. float GetAttributeAnimationSpeed(const String&) const;
  4266. float GetAttributeAnimationTime(const String&) const;
  4267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4268. Variant GetAttributeDefault(const String&) const;
  4269. bool GetInterceptNetworkUpdate(const String&) const;
  4270. bool HasSubscribedToEvent(Object, const String&);
  4271. bool HasSubscribedToEvent(const String&);
  4272. bool IsInView(Camera) const;
  4273. bool Load(File, bool = false);
  4274. bool Load(VectorBuffer&, bool = false);
  4275. bool LoadJSON(const JSONValue&, bool = false);
  4276. bool LoadXML(const XMLElement&, bool = false);
  4277. void MarkNetworkUpdate() const;
  4278. void Remove();
  4279. void RemoveAttributeAnimation(const String&);
  4280. void RemoveInstanceDefault();
  4281. void RemoveObjectAnimation();
  4282. void ResetToDefault();
  4283. bool Save(File) const;
  4284. bool Save(VectorBuffer&) const;
  4285. bool SaveJSON(JSONValue&) const;
  4286. bool SaveXML(XMLElement&) const;
  4287. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4288. void SetAnimationTime(float);
  4289. bool SetAttribute(const String&, const Variant&);
  4290. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4291. void SetAttributeAnimationSpeed(const String&, float);
  4292. void SetAttributeAnimationTime(const String&, float);
  4293. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4294. void SetInterceptNetworkUpdate(const String&, bool);
  4295. // Properties:
  4296. bool animationEnabled;
  4297. /* readonly */
  4298. Array<Variant> attributeDefaults;
  4299. /* readonly */
  4300. Array<AttributeInfo> attributeInfos;
  4301. Array<Variant> attributes;
  4302. /* readonly */
  4303. BoundingBox boundingBox;
  4304. bool castShadows;
  4305. /* readonly */
  4306. String category;
  4307. float drawDistance;
  4308. bool enabled;
  4309. /* readonly */
  4310. bool enabledEffective;
  4311. /* readonly */
  4312. uint id;
  4313. /* readonly */
  4314. bool inView;
  4315. int layer;
  4316. uint lightMask;
  4317. float lodBias;
  4318. uint maxLights;
  4319. /* readonly */
  4320. Node node;
  4321. /* readonly */
  4322. uint numAttributes;
  4323. ObjectAnimation objectAnimation;
  4324. bool occludee;
  4325. bool occluder;
  4326. int orderInLayer;
  4327. /* readonly */
  4328. int refs;
  4329. float shadowDistance;
  4330. uint shadowMask;
  4331. bool temporary;
  4332. /* readonly */
  4333. StringHash type;
  4334. /* readonly */
  4335. String typeName;
  4336. uint viewMask;
  4337. /* readonly */
  4338. int weakRefs;
  4339. /* readonly */
  4340. BoundingBox worldBoundingBox;
  4341. uint zoneMask;
  4342. };
  4343. class DropDownList
  4344. {
  4345. // Methods:
  4346. void AddChild(UIElement);
  4347. void AddItem(UIElement);
  4348. void AddTag(const String&);
  4349. void AddTags(const String&, int8 = ';');
  4350. void ApplyAttributes();
  4351. void BringToFront();
  4352. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4353. void DisableLayoutUpdate();
  4354. IntVector2 ElementToScreen(const IntVector2&);
  4355. void EnableLayoutUpdate();
  4356. uint FindChild(UIElement) const;
  4357. Variant GetAttribute(const String&) const;
  4358. ValueAnimation GetAttributeAnimation(const String&) const;
  4359. float GetAttributeAnimationSpeed(const String&) const;
  4360. float GetAttributeAnimationTime(const String&) const;
  4361. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4362. Variant GetAttributeDefault(const String&) const;
  4363. UIElement GetChild(const String&, bool = false) const;
  4364. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4365. Array<UIElement> GetChildren(bool = false) const;
  4366. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4367. UIElement GetElementEventSender() const;
  4368. bool GetInterceptNetworkUpdate(const String&) const;
  4369. Array<UIElement> GetItems() const;
  4370. uint GetNumChildren(bool) const;
  4371. bool HasSubscribedToEvent(Object, const String&);
  4372. bool HasSubscribedToEvent(const String&);
  4373. bool HasTag(const String&) const;
  4374. void InsertChild(uint, UIElement);
  4375. void InsertItem(uint, UIElement);
  4376. bool IsInside(IntVector2, bool);
  4377. bool IsInsideCombined(IntVector2, bool);
  4378. bool Load(File, bool = false);
  4379. bool Load(VectorBuffer&, bool = false);
  4380. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4381. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4382. bool LoadJSON(const JSONValue&, bool = false);
  4383. bool LoadXML(File);
  4384. bool LoadXML(VectorBuffer&);
  4385. bool LoadXML(XMLFile, XMLFile);
  4386. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4387. bool LoadXML(const XMLElement&, bool = false);
  4388. void MarkNetworkUpdate() const;
  4389. void Remove();
  4390. void RemoveAllChildren();
  4391. void RemoveAllItems();
  4392. void RemoveAllTags();
  4393. void RemoveAttributeAnimation(const String&);
  4394. void RemoveChild(UIElement, uint = 0);
  4395. void RemoveChild(uint);
  4396. void RemoveInstanceDefault();
  4397. void RemoveItem(UIElement);
  4398. void RemoveItem(uint);
  4399. void RemoveObjectAnimation();
  4400. bool RemoveTag(const String&);
  4401. void ResetDeepEnabled();
  4402. void ResetToDefault();
  4403. bool Save(File) const;
  4404. bool Save(VectorBuffer&) const;
  4405. bool SaveJSON(JSONValue&) const;
  4406. bool SaveXML(File, const String& = "\t");
  4407. bool SaveXML(VectorBuffer&, const String& = "\t");
  4408. bool SaveXML(XMLElement&) const;
  4409. IntVector2 ScreenToElement(const IntVector2&);
  4410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4411. void SetAccelerator(int, int);
  4412. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4413. void SetAnimationTime(float);
  4414. bool SetAttribute(const String&, const Variant&);
  4415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4416. void SetAttributeAnimationSpeed(const String&, float);
  4417. void SetAttributeAnimationTime(const String&, float);
  4418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4419. void SetDeepEnabled(bool);
  4420. void SetEnabledRecursive(bool);
  4421. void SetFixedHeight(int);
  4422. void SetFixedSize(int, int);
  4423. void SetFixedWidth(int);
  4424. void SetFullImageRect();
  4425. void SetHoverOffset(int, int);
  4426. void SetInterceptNetworkUpdate(const String&, bool);
  4427. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4428. void SetMaxAnchor(float, float);
  4429. void SetMaxSize(int, int);
  4430. void SetMinAnchor(float, float);
  4431. void SetMinSize(int, int);
  4432. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4433. void SetPivot(float, float);
  4434. void SetPosition(int, int);
  4435. void SetPressedChildOffset(int, int);
  4436. void SetPressedOffset(int, int);
  4437. void SetRepeat(float, float);
  4438. void SetSize(int, int);
  4439. bool SetStyle(const String&, XMLFile = null);
  4440. bool SetStyle(const XMLElement&);
  4441. bool SetStyleAuto(XMLFile = null);
  4442. void UpdateLayout();
  4443. const Variant& GetVar(const StringHash&);
  4444. UIElement getPopup() const;
  4445. // Properties:
  4446. /* readonly */
  4447. int acceleratorKey;
  4448. /* readonly */
  4449. int acceleratorQualifiers;
  4450. bool animationEnabled;
  4451. /* readonly */
  4452. Array<Variant> attributeDefaults;
  4453. /* readonly */
  4454. Array<AttributeInfo> attributeInfos;
  4455. Array<Variant> attributes;
  4456. BlendMode blendMode;
  4457. IntRect border;
  4458. bool bringToBack;
  4459. bool bringToFront;
  4460. /* readonly */
  4461. String category;
  4462. /* readonly */
  4463. IntVector2 childOffset;
  4464. /* readonly */
  4465. Array<UIElement> children;
  4466. IntRect clipBorder;
  4467. bool clipChildren;
  4468. /* writeonly */
  4469. Color color;
  4470. /* readonly */
  4471. bool colorGradient;
  4472. Array<Color> colors;
  4473. /* readonly */
  4474. IntRect combinedScreenRect;
  4475. XMLFile defaultStyle;
  4476. /* readonly */
  4477. float derivedOpacity;
  4478. /* readonly */
  4479. uint dragButtonCombo;
  4480. /* readonly */
  4481. int dragButtonCount;
  4482. uint dragDropMode;
  4483. bool editable;
  4484. bool elementEventSender;
  4485. bool enableAnchor;
  4486. bool enabled;
  4487. /* readonly */
  4488. bool enabledSelf;
  4489. /* readonly */
  4490. bool fixedHeight;
  4491. /* readonly */
  4492. bool fixedSize;
  4493. /* readonly */
  4494. bool fixedWidth;
  4495. bool focus;
  4496. FocusMode focusMode;
  4497. int height;
  4498. HorizontalAlignment horizontalAlignment;
  4499. IntVector2 hoverOffset;
  4500. /* readonly */
  4501. bool hovering;
  4502. IntRect imageBorder;
  4503. IntRect imageRect;
  4504. int indent;
  4505. int indentSpacing;
  4506. /* readonly */
  4507. int indentWidth;
  4508. bool internal;
  4509. /* readonly */
  4510. Array<UIElement> items;
  4511. IntRect layoutBorder;
  4512. Vector2 layoutFlexScale;
  4513. LayoutMode layoutMode;
  4514. int layoutSpacing;
  4515. /* readonly */
  4516. ListView listView;
  4517. Vector2 maxAnchor;
  4518. int maxHeight;
  4519. IntVector2 maxOffset;
  4520. IntVector2 maxSize;
  4521. int maxWidth;
  4522. Vector2 minAnchor;
  4523. int minHeight;
  4524. IntVector2 minOffset;
  4525. IntVector2 minSize;
  4526. int minWidth;
  4527. String name;
  4528. /* readonly */
  4529. uint numAllChildren;
  4530. /* readonly */
  4531. uint numAttributes;
  4532. /* readonly */
  4533. uint numChildren;
  4534. /* readonly */
  4535. uint numItems;
  4536. ObjectAnimation objectAnimation;
  4537. float opacity;
  4538. UIElement parent;
  4539. Vector2 pivot;
  4540. /* readonly */
  4541. UIElement placeholder;
  4542. String placeholderText;
  4543. IntVector2 position;
  4544. /* readonly */
  4545. bool pressed;
  4546. IntVector2 pressedChildOffset;
  4547. IntVector2 pressedOffset;
  4548. int priority;
  4549. /* readonly */
  4550. int refs;
  4551. float repeatDelay;
  4552. float repeatRate;
  4553. bool resizePopup;
  4554. /* readonly */
  4555. UIElement root;
  4556. /* readonly */
  4557. IntVector2 screenPosition;
  4558. bool selected;
  4559. /* readonly */
  4560. UIElement selectedItem;
  4561. uint selection;
  4562. bool showPopup;
  4563. IntVector2 size;
  4564. bool sortChildren;
  4565. String style;
  4566. /* readonly */
  4567. Array<String> tags;
  4568. bool temporary;
  4569. Texture texture;
  4570. bool tiled;
  4571. TraversalMode traversalMode;
  4572. /* readonly */
  4573. StringHash type;
  4574. /* readonly */
  4575. String typeName;
  4576. bool useDerivedOpacity;
  4577. /* readonly */
  4578. VariantMap vars;
  4579. VerticalAlignment verticalAlignment;
  4580. bool visible;
  4581. /* readonly */
  4582. bool visibleEffective;
  4583. /* readonly */
  4584. int weakRefs;
  4585. int width;
  4586. };
  4587. class DynamicNavigationMesh
  4588. {
  4589. // Methods:
  4590. void ApplyAttributes();
  4591. bool Build();
  4592. bool Build(const BoundingBox&);
  4593. void DrawDebugGeometry(DebugRenderer, bool);
  4594. void DrawDebugGeometry(bool);
  4595. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4596. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4597. float GetAreaCost(uint) const;
  4598. Variant GetAttribute(const String&) const;
  4599. ValueAnimation GetAttributeAnimation(const String&) const;
  4600. float GetAttributeAnimationSpeed(const String&) const;
  4601. float GetAttributeAnimationTime(const String&) const;
  4602. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4603. Variant GetAttributeDefault(const String&) const;
  4604. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4605. bool GetInterceptNetworkUpdate(const String&) const;
  4606. Vector3 GetRandomPoint();
  4607. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4608. bool HasSubscribedToEvent(Object, const String&);
  4609. bool HasSubscribedToEvent(const String&);
  4610. bool Load(File, bool = false);
  4611. bool Load(VectorBuffer&, bool = false);
  4612. bool LoadJSON(const JSONValue&, bool = false);
  4613. bool LoadXML(const XMLElement&, bool = false);
  4614. void MarkNetworkUpdate() const;
  4615. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4616. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4617. void Remove();
  4618. void RemoveAttributeAnimation(const String&);
  4619. void RemoveInstanceDefault();
  4620. void RemoveObjectAnimation();
  4621. void ResetToDefault();
  4622. bool Save(File) const;
  4623. bool Save(VectorBuffer&) const;
  4624. bool SaveJSON(JSONValue&) const;
  4625. bool SaveXML(XMLElement&) const;
  4626. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4627. void SetAnimationTime(float);
  4628. void SetAreaCost(uint, float);
  4629. bool SetAttribute(const String&, const Variant&);
  4630. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4631. void SetAttributeAnimationSpeed(const String&, float);
  4632. void SetAttributeAnimationTime(const String&, float);
  4633. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4634. void SetInterceptNetworkUpdate(const String&, bool);
  4635. // Properties:
  4636. float agentHeight;
  4637. float agentMaxClimb;
  4638. float agentMaxSlope;
  4639. float agentRadius;
  4640. bool animationEnabled;
  4641. /* readonly */
  4642. Array<Variant> attributeDefaults;
  4643. /* readonly */
  4644. Array<AttributeInfo> attributeInfos;
  4645. Array<Variant> attributes;
  4646. /* readonly */
  4647. BoundingBox boundingBox;
  4648. /* readonly */
  4649. String category;
  4650. float cellHeight;
  4651. float cellSize;
  4652. float detailSampleDistance;
  4653. float detailSampleMaxError;
  4654. bool drawNavAreas;
  4655. bool drawObstacles;
  4656. bool drawOffMeshConnections;
  4657. float edgeMaxError;
  4658. float edgeMaxLength;
  4659. bool enabled;
  4660. /* readonly */
  4661. bool enabledEffective;
  4662. /* readonly */
  4663. uint id;
  4664. /* readonly */
  4665. bool initialized;
  4666. bool maxLayers;
  4667. uint maxObstacles;
  4668. /* readonly */
  4669. Node node;
  4670. /* readonly */
  4671. uint numAttributes;
  4672. /* readonly */
  4673. IntVector2 numTiles;
  4674. ObjectAnimation objectAnimation;
  4675. Vector3 padding;
  4676. NavmeshPartitionType partitionType;
  4677. /* readonly */
  4678. int refs;
  4679. float regionMergeSize;
  4680. float regionMinSize;
  4681. bool temporary;
  4682. int tileSize;
  4683. /* readonly */
  4684. StringHash type;
  4685. /* readonly */
  4686. String typeName;
  4687. /* readonly */
  4688. int weakRefs;
  4689. /* readonly */
  4690. BoundingBox worldBoundingBox;
  4691. };
  4692. class Engine
  4693. {
  4694. // Methods:
  4695. Console CreateConsole();
  4696. DebugHud CreateDebugHud();
  4697. void DumpMemory();
  4698. void DumpProfiler();
  4699. void DumpResources(bool = false);
  4700. void Exit();
  4701. bool HasSubscribedToEvent(Object, const String&);
  4702. bool HasSubscribedToEvent(const String&);
  4703. void RunFrame();
  4704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4705. // Properties:
  4706. bool autoExit;
  4707. /* readonly */
  4708. String category;
  4709. /* readonly */
  4710. bool exiting;
  4711. /* readonly */
  4712. bool headless;
  4713. /* readonly */
  4714. bool initialized;
  4715. int maxFps;
  4716. int maxInactiveFps;
  4717. int minFps;
  4718. bool pauseMinimized;
  4719. /* readonly */
  4720. int refs;
  4721. int timeStepSmoothing;
  4722. /* readonly */
  4723. StringHash type;
  4724. /* readonly */
  4725. String typeName;
  4726. /* readonly */
  4727. int weakRefs;
  4728. };
  4729. class File
  4730. {
  4731. // Methods:
  4732. void Close();
  4733. bool HasSubscribedToEvent(Object, const String&);
  4734. bool HasSubscribedToEvent(const String&);
  4735. bool Open(const String&, FileMode = FILE_READ);
  4736. Array<uint8> Read(uint);
  4737. bool ReadBool();
  4738. BoundingBox ReadBoundingBox();
  4739. int8 ReadByte();
  4740. Color ReadColor();
  4741. double ReadDouble();
  4742. String ReadFileID();
  4743. float ReadFloat();
  4744. int ReadInt();
  4745. int64 ReadInt64();
  4746. IntRect ReadIntRect();
  4747. IntVector2 ReadIntVector2();
  4748. String ReadLine();
  4749. Matrix3 ReadMatrix3();
  4750. Matrix3x4 ReadMatrix3x4();
  4751. Matrix4 ReadMatrix4();
  4752. uint ReadNetID();
  4753. Quaternion ReadPackedQuaternion();
  4754. Vector3 ReadPackedVector3(float);
  4755. Quaternion ReadQuaternion();
  4756. int16 ReadShort();
  4757. String ReadString();
  4758. StringHash ReadStringHash();
  4759. uint8 ReadUByte();
  4760. uint ReadUInt();
  4761. uint64 ReadUInt64();
  4762. uint16 ReadUShort();
  4763. uint ReadVLE();
  4764. Variant ReadVariant();
  4765. VariantMap ReadVariantMap();
  4766. Vector2 ReadVector2();
  4767. Vector3 ReadVector3();
  4768. Vector4 ReadVector4();
  4769. VectorBuffer ReadVectorBuffer(uint);
  4770. uint Seek(uint);
  4771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4772. uint Write(Array<uint8>);
  4773. bool WriteBool(bool);
  4774. bool WriteBoundingBox(const BoundingBox&);
  4775. bool WriteByte(int8);
  4776. bool WriteColor(const Color&);
  4777. bool WriteDouble(double);
  4778. bool WriteFileID(const String&);
  4779. bool WriteFloat(float);
  4780. bool WriteInt(int);
  4781. bool WriteInt64(int64);
  4782. bool WriteIntRect(const IntRect&);
  4783. bool WriteIntVector2(const IntVector2&);
  4784. bool WriteLine(const String&);
  4785. bool WriteMatrix3(const Matrix3&);
  4786. bool WriteMatrix3x4(const Matrix3x4&);
  4787. bool WriteMatrix4(const Matrix4&);
  4788. bool WriteNetID(uint);
  4789. bool WritePackedQuaternion(const Quaternion&);
  4790. bool WritePackedVector3(const Vector3&, float);
  4791. bool WriteQuaternion(const Quaternion&);
  4792. bool WriteShort(int16);
  4793. bool WriteString(const String&);
  4794. bool WriteStringHash(const StringHash&);
  4795. bool WriteUByte(uint8);
  4796. bool WriteUInt(uint);
  4797. bool WriteUInt64(uint64);
  4798. bool WriteUShort(uint16);
  4799. bool WriteVLE(uint);
  4800. bool WriteVariant(const Variant&);
  4801. bool WriteVariantMap(const VariantMap&);
  4802. bool WriteVector2(const Vector2&);
  4803. bool WriteVector3(const Vector3&);
  4804. bool WriteVector4(const Vector4&);
  4805. bool WriteVectorBuffer(const VectorBuffer&);
  4806. // Properties:
  4807. /* readonly */
  4808. String category;
  4809. /* readonly */
  4810. uint checksum;
  4811. /* readonly */
  4812. bool eof;
  4813. /* readonly */
  4814. FileMode mode;
  4815. /* readonly */
  4816. String name;
  4817. /* readonly */
  4818. bool open;
  4819. /* readonly */
  4820. bool packaged;
  4821. /* readonly */
  4822. uint position;
  4823. /* readonly */
  4824. int refs;
  4825. /* readonly */
  4826. uint size;
  4827. /* readonly */
  4828. StringHash type;
  4829. /* readonly */
  4830. String typeName;
  4831. /* readonly */
  4832. int weakRefs;
  4833. };
  4834. class FileSelector
  4835. {
  4836. // Methods:
  4837. bool HasSubscribedToEvent(Object, const String&);
  4838. bool HasSubscribedToEvent(const String&);
  4839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4840. void SetButtonTexts(const String&, const String&);
  4841. void SetFilters(Array<String>, uint);
  4842. void UpdateElements();
  4843. // Properties:
  4844. /* readonly */
  4845. Button cancelButton;
  4846. /* readonly */
  4847. String category;
  4848. XMLFile defaultStyle;
  4849. bool directoryMode;
  4850. /* readonly */
  4851. ListView fileList;
  4852. String fileName;
  4853. /* readonly */
  4854. LineEdit fileNameEdit;
  4855. /* readonly */
  4856. String filter;
  4857. /* readonly */
  4858. uint filterIndex;
  4859. /* readonly */
  4860. DropDownList filterList;
  4861. /* readonly */
  4862. Button okButton;
  4863. String path;
  4864. /* readonly */
  4865. LineEdit pathEdit;
  4866. /* readonly */
  4867. int refs;
  4868. String title;
  4869. /* readonly */
  4870. Text titleText;
  4871. /* readonly */
  4872. StringHash type;
  4873. /* readonly */
  4874. String typeName;
  4875. /* readonly */
  4876. int weakRefs;
  4877. /* readonly */
  4878. Window window;
  4879. };
  4880. class FileSystem
  4881. {
  4882. // Methods:
  4883. bool Copy(const String&, const String&);
  4884. bool CreateDir(const String&);
  4885. bool Delete(const String&);
  4886. bool DirExists(const String&) const;
  4887. bool FileExists(const String&) const;
  4888. String GetAppPreferencesDir(const String&, const String&) const;
  4889. uint GetLastModifiedTime(const String&) const;
  4890. bool HasSubscribedToEvent(Object, const String&);
  4891. bool HasSubscribedToEvent(const String&);
  4892. bool Rename(const String&, const String&);
  4893. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4895. bool SetLastModifiedTime(const String&, uint);
  4896. int SystemCommand(const String&, bool = false);
  4897. uint SystemCommandAsync(const String&);
  4898. bool SystemOpen(const String&, const String&);
  4899. int SystemRun(const String&, Array<String>);
  4900. uint SystemRunAsync(const String&, Array<String>);
  4901. // Properties:
  4902. /* readonly */
  4903. String category;
  4904. String currentDir;
  4905. bool executeConsoleCommands;
  4906. /* readonly */
  4907. String programDir;
  4908. /* readonly */
  4909. int refs;
  4910. /* readonly */
  4911. StringHash type;
  4912. /* readonly */
  4913. String typeName;
  4914. /* readonly */
  4915. String userDocumentsDir;
  4916. /* readonly */
  4917. int weakRefs;
  4918. };
  4919. class FocusParameters
  4920. {
  4921. // Properties:
  4922. bool autoSize;
  4923. bool focus;
  4924. float minView;
  4925. bool nonUniform;
  4926. float quantize;
  4927. };
  4928. class Font
  4929. {
  4930. // Methods:
  4931. IntVector2 GetTotalGlyphOffset(int) const;
  4932. bool HasSubscribedToEvent(Object, const String&);
  4933. bool HasSubscribedToEvent(const String&);
  4934. bool Load(File);
  4935. bool Load(VectorBuffer&);
  4936. bool Load(const String&);
  4937. bool Save(File) const;
  4938. bool Save(VectorBuffer&) const;
  4939. bool Save(const String&) const;
  4940. bool SaveXML(File, int, bool = false, const String& = "\t");
  4941. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4942. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4944. // Properties:
  4945. IntVector2 absoluteGlyphOffset;
  4946. /* readonly */
  4947. String category;
  4948. /* readonly */
  4949. uint memoryUse;
  4950. String name;
  4951. /* readonly */
  4952. int refs;
  4953. Vector2 scaledGlyphOffset;
  4954. /* readonly */
  4955. StringHash type;
  4956. /* readonly */
  4957. String typeName;
  4958. /* readonly */
  4959. uint useTimer;
  4960. /* readonly */
  4961. int weakRefs;
  4962. };
  4963. class Frustum
  4964. {
  4965. // Methods:
  4966. void Define(const BoundingBox&, const Matrix3x4&);
  4967. void Define(const Matrix4&);
  4968. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4969. void Define(float, float, float, float, float, const Matrix3x4&);
  4970. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4971. void DefineSplit(const Matrix4&, float, float);
  4972. float Distance(const Vector3&) const;
  4973. Intersection IsInside(const BoundingBox&);
  4974. Intersection IsInside(const Sphere&);
  4975. Intersection IsInside(const Vector3&);
  4976. Intersection IsInsideFast(const BoundingBox&) const;
  4977. Intersection IsInsideFast(const Sphere&) const;
  4978. void Transform(const Matrix3&);
  4979. void Transform(const Matrix3x4&);
  4980. Frustum Transformed(const Matrix3&) const;
  4981. Frustum Transformed(const Matrix3x4&) const;
  4982. // Properties:
  4983. /* readonly */
  4984. Array<Vector3> vertices;
  4985. };
  4986. class Geometry
  4987. {
  4988. // Methods:
  4989. bool HasSubscribedToEvent(Object, const String&);
  4990. bool HasSubscribedToEvent(const String&);
  4991. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4992. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4993. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4994. void SetIndexBuffer(IndexBuffer);
  4995. bool SetVertexBuffer(uint, VertexBuffer);
  4996. // Properties:
  4997. /* readonly */
  4998. String category;
  4999. /* readonly */
  5000. bool empty;
  5001. IndexBuffer indexBuffer;
  5002. /* readonly */
  5003. uint indexCount;
  5004. /* readonly */
  5005. uint indexStart;
  5006. float lodDistance;
  5007. uint numVertexBuffers;
  5008. /* readonly */
  5009. PrimitiveType primitiveType;
  5010. /* readonly */
  5011. int refs;
  5012. /* readonly */
  5013. StringHash type;
  5014. /* readonly */
  5015. String typeName;
  5016. /* readonly */
  5017. Array<VertexBuffer> vertexBuffers;
  5018. /* readonly */
  5019. uint vertexCount;
  5020. /* readonly */
  5021. uint vertexStart;
  5022. /* readonly */
  5023. int weakRefs;
  5024. };
  5025. class Graphics
  5026. {
  5027. // Methods:
  5028. void BeginDumpShaders(const String&);
  5029. void Close();
  5030. void EndDumpShaders();
  5031. bool HasSubscribedToEvent(Object, const String&);
  5032. bool HasSubscribedToEvent(const String&);
  5033. void Maximize();
  5034. void Minimize();
  5035. void PrecacheShaders(File);
  5036. void PrecacheShaders(VectorBuffer&);
  5037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5038. bool SetMode(int, int);
  5039. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  5040. void SetWindowPosition(int, int);
  5041. bool TakeScreenShot(Image);
  5042. bool ToggleFullscreen();
  5043. // Properties:
  5044. /* readonly */
  5045. String apiName;
  5046. /* readonly */
  5047. bool borderless;
  5048. /* readonly */
  5049. String category;
  5050. /* readonly */
  5051. bool deferredSupport;
  5052. /* readonly */
  5053. IntVector2 desktopResolution;
  5054. /* readonly */
  5055. bool deviceLost;
  5056. bool dither;
  5057. bool flushGPU;
  5058. /* readonly */
  5059. bool fullscreen;
  5060. /* readonly */
  5061. bool hardwareShadowSupport;
  5062. /* readonly */
  5063. int height;
  5064. /* readonly */
  5065. bool initialized;
  5066. /* readonly */
  5067. bool instancingSupport;
  5068. /* readonly */
  5069. bool lightPrepassSupport;
  5070. /* readonly */
  5071. int multiSample;
  5072. /* readonly */
  5073. Array<int> multiSampleLevels;
  5074. /* readonly */
  5075. uint numBatches;
  5076. /* readonly */
  5077. uint numPrimitives;
  5078. String orientations;
  5079. /* readonly */
  5080. bool readableDepthSupport;
  5081. /* readonly */
  5082. int refs;
  5083. /* readonly */
  5084. bool resizable;
  5085. /* readonly */
  5086. Array<IntVector2> resolutions;
  5087. bool sRGB;
  5088. /* readonly */
  5089. bool sRGBSupport;
  5090. /* readonly */
  5091. bool sRGBWriteSupport;
  5092. String shaderCacheDir;
  5093. /* readonly */
  5094. bool tripleBuffer;
  5095. /* readonly */
  5096. StringHash type;
  5097. /* readonly */
  5098. String typeName;
  5099. /* readonly */
  5100. bool vsync;
  5101. /* readonly */
  5102. int weakRefs;
  5103. /* readonly */
  5104. int width;
  5105. /* writeonly */
  5106. Image windowIcon;
  5107. IntVector2 windowPosition;
  5108. String windowTitle;
  5109. };
  5110. class HttpRequest
  5111. {
  5112. // Methods:
  5113. Array<uint8> Read(uint);
  5114. bool ReadBool();
  5115. BoundingBox ReadBoundingBox();
  5116. int8 ReadByte();
  5117. Color ReadColor();
  5118. double ReadDouble();
  5119. String ReadFileID();
  5120. float ReadFloat();
  5121. int ReadInt();
  5122. int64 ReadInt64();
  5123. IntRect ReadIntRect();
  5124. IntVector2 ReadIntVector2();
  5125. String ReadLine();
  5126. Matrix3 ReadMatrix3();
  5127. Matrix3x4 ReadMatrix3x4();
  5128. Matrix4 ReadMatrix4();
  5129. uint ReadNetID();
  5130. Quaternion ReadPackedQuaternion();
  5131. Vector3 ReadPackedVector3(float);
  5132. Quaternion ReadQuaternion();
  5133. int16 ReadShort();
  5134. String ReadString();
  5135. StringHash ReadStringHash();
  5136. uint8 ReadUByte();
  5137. uint ReadUInt();
  5138. uint64 ReadUInt64();
  5139. uint16 ReadUShort();
  5140. uint ReadVLE();
  5141. Variant ReadVariant();
  5142. VariantMap ReadVariantMap();
  5143. Vector2 ReadVector2();
  5144. Vector3 ReadVector3();
  5145. Vector4 ReadVector4();
  5146. VectorBuffer ReadVectorBuffer(uint);
  5147. uint Seek(uint);
  5148. // Properties:
  5149. /* readonly */
  5150. uint availableSize;
  5151. /* readonly */
  5152. uint checksum;
  5153. /* readonly */
  5154. bool eof;
  5155. /* readonly */
  5156. String error;
  5157. /* readonly */
  5158. String name;
  5159. /* readonly */
  5160. bool open;
  5161. /* readonly */
  5162. uint position;
  5163. /* readonly */
  5164. int refs;
  5165. /* readonly */
  5166. uint size;
  5167. /* readonly */
  5168. HttpRequestState state;
  5169. /* readonly */
  5170. String url;
  5171. /* readonly */
  5172. String verb;
  5173. /* readonly */
  5174. int weakRefs;
  5175. };
  5176. class Image
  5177. {
  5178. // Methods:
  5179. void Clear(const Color&);
  5180. void ClearInt(uint);
  5181. bool FlipHorizontal();
  5182. bool FlipVertical();
  5183. Color GetPixel(int, int) const;
  5184. Color GetPixel(int, int, int) const;
  5185. Color GetPixelBilinear(float, float) const;
  5186. uint GetPixelInt(int, int) const;
  5187. uint GetPixelInt(int, int, int) const;
  5188. Color GetPixelTrilinear(float, float, float) const;
  5189. Image GetSubimage(const IntRect&) const;
  5190. bool HasSubscribedToEvent(Object, const String&);
  5191. bool HasSubscribedToEvent(const String&);
  5192. bool Load(File);
  5193. bool Load(VectorBuffer&);
  5194. bool Load(const String&);
  5195. bool LoadColorLUT(File);
  5196. bool LoadColorLUT(VectorBuffer&);
  5197. bool Resize(int, int);
  5198. bool Save(File) const;
  5199. bool Save(VectorBuffer&) const;
  5200. bool Save(const String&) const;
  5201. bool SaveBMP(const String&) const;
  5202. bool SaveDDS(const String&) const;
  5203. bool SaveJPG(const String&, int) const;
  5204. bool SavePNG(const String&) const;
  5205. bool SaveTGA(const String&) const;
  5206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5207. void SetPixel(int, int, const Color&);
  5208. void SetPixel(int, int, int, const Color&);
  5209. void SetPixelInt(int, int, int, uint);
  5210. void SetPixelInt(int, int, uint);
  5211. bool SetSize(int, int, int, uint);
  5212. bool SetSize(int, int, uint);
  5213. // Properties:
  5214. /* readonly */
  5215. bool array;
  5216. /* readonly */
  5217. String category;
  5218. /* readonly */
  5219. uint components;
  5220. /* readonly */
  5221. bool compressed;
  5222. /* readonly */
  5223. CompressedFormat compressedFormat;
  5224. /* readonly */
  5225. bool cubemap;
  5226. /* readonly */
  5227. int depth;
  5228. /* readonly */
  5229. int height;
  5230. /* readonly */
  5231. uint memoryUse;
  5232. String name;
  5233. /* readonly */
  5234. uint numCompressedLevels;
  5235. /* readonly */
  5236. int refs;
  5237. /* readonly */
  5238. bool sRGB;
  5239. /* readonly */
  5240. StringHash type;
  5241. /* readonly */
  5242. String typeName;
  5243. /* readonly */
  5244. uint useTimer;
  5245. /* readonly */
  5246. int weakRefs;
  5247. /* readonly */
  5248. int width;
  5249. };
  5250. class IndexBuffer
  5251. {
  5252. // Methods:
  5253. VectorBuffer GetData();
  5254. bool HasSubscribedToEvent(Object, const String&);
  5255. bool HasSubscribedToEvent(const String&);
  5256. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5257. bool SetData(VectorBuffer&);
  5258. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5259. void SetSize(uint, bool, bool = false);
  5260. // Properties:
  5261. /* readonly */
  5262. String category;
  5263. /* readonly */
  5264. bool dynamic;
  5265. /* readonly */
  5266. uint indexCount;
  5267. /* readonly */
  5268. uint indexSize;
  5269. /* readonly */
  5270. int refs;
  5271. bool shadowed;
  5272. /* readonly */
  5273. StringHash type;
  5274. /* readonly */
  5275. String typeName;
  5276. /* readonly */
  5277. int weakRefs;
  5278. };
  5279. class Input
  5280. {
  5281. // Methods:
  5282. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5283. void CenterMousePosition();
  5284. int GetKeyFromName(const String&) const;
  5285. int GetKeyFromScancode(int) const;
  5286. String GetKeyName(int) const;
  5287. int GetScancodeFromKey(int) const;
  5288. int GetScancodeFromName(const String&) const;
  5289. String GetScancodeName(int) const;
  5290. bool HasSubscribedToEvent(Object, const String&);
  5291. bool HasSubscribedToEvent(const String&);
  5292. uint LoadGestures(File);
  5293. uint LoadGestures(VectorBuffer&);
  5294. bool RecordGesture();
  5295. void RemoveAllGestures();
  5296. bool RemoveGesture(uint);
  5297. bool RemoveScreenJoystick(int);
  5298. void ResetMouseGrabbed();
  5299. void ResetMouseMode();
  5300. void ResetMouseVisible();
  5301. bool SaveGesture(File, uint);
  5302. bool SaveGesture(VectorBuffer&, uint);
  5303. bool SaveGestures(File);
  5304. bool SaveGestures(VectorBuffer&);
  5305. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5306. void SetMouseGrabbed(bool, bool = false);
  5307. void SetMouseMode(MouseMode, bool = false);
  5308. void SetMouseVisible(bool, bool = false);
  5309. // Properties:
  5310. /* readonly */
  5311. String category;
  5312. /* readonly */
  5313. bool focus;
  5314. /* readonly */
  5315. Array<JoystickState> joysticks;
  5316. /* readonly */
  5317. Array<JoystickState> joysticksByIndex;
  5318. /* readonly */
  5319. Array<JoystickState> joysticksByName;
  5320. /* readonly */
  5321. Array<bool> keyDown;
  5322. /* readonly */
  5323. Array<bool> keyPress;
  5324. /* readonly */
  5325. bool minimized;
  5326. /* readonly */
  5327. Array<bool> mouseButtonDown;
  5328. /* readonly */
  5329. Array<bool> mouseButtonPress;
  5330. bool mouseGrabbed;
  5331. /* readonly */
  5332. bool mouseLocked;
  5333. MouseMode mouseMode;
  5334. /* readonly */
  5335. IntVector2 mouseMove;
  5336. /* readonly */
  5337. int mouseMoveWheel;
  5338. /* readonly */
  5339. int mouseMoveX;
  5340. /* readonly */
  5341. int mouseMoveY;
  5342. IntVector2 mousePosition;
  5343. bool mouseVisible;
  5344. /* readonly */
  5345. uint numJoysticks;
  5346. /* readonly */
  5347. uint numTouches;
  5348. /* readonly */
  5349. Array<bool> qualifierDown;
  5350. /* readonly */
  5351. Array<bool> qualifierPress;
  5352. /* readonly */
  5353. int qualifiers;
  5354. /* readonly */
  5355. int refs;
  5356. /* readonly */
  5357. Array<bool> scancodeDown;
  5358. /* readonly */
  5359. Array<bool> scancodePress;
  5360. Array<bool> screenJoystickVisible;
  5361. /* readonly */
  5362. bool screenKeyboardSupport;
  5363. bool screenKeyboardVisible;
  5364. bool toggleFullscreen;
  5365. bool touchEmulation;
  5366. /* readonly */
  5367. Array<TouchState> touches;
  5368. /* readonly */
  5369. StringHash type;
  5370. /* readonly */
  5371. String typeName;
  5372. /* readonly */
  5373. int weakRefs;
  5374. };
  5375. class IntRect
  5376. {
  5377. // Methods:
  5378. Intersection IsInside(const IntVector2&) const;
  5379. // Properties:
  5380. int bottom;
  5381. /* readonly */
  5382. Array<int> data;
  5383. /* readonly */
  5384. int height;
  5385. int left;
  5386. int right;
  5387. /* readonly */
  5388. IntVector2 size;
  5389. int top;
  5390. /* readonly */
  5391. int width;
  5392. };
  5393. class IntVector2
  5394. {
  5395. // Methods:
  5396. float Length() const;
  5397. uint ToHash() const;
  5398. String ToString() const;
  5399. // Properties:
  5400. /* readonly */
  5401. Array<int> data;
  5402. int x;
  5403. int y;
  5404. };
  5405. class JSONFile
  5406. {
  5407. // Methods:
  5408. bool FromString(const String&);
  5409. JSONValue& GetRoot();
  5410. bool HasSubscribedToEvent(Object, const String&);
  5411. bool HasSubscribedToEvent(const String&);
  5412. bool Load(File);
  5413. bool Load(VectorBuffer&);
  5414. bool Load(const String&);
  5415. bool Save(File) const;
  5416. bool Save(File, const String&) const;
  5417. bool Save(VectorBuffer&) const;
  5418. bool Save(const String&) const;
  5419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5420. // Properties:
  5421. /* readonly */
  5422. String category;
  5423. /* readonly */
  5424. uint memoryUse;
  5425. String name;
  5426. /* readonly */
  5427. int refs;
  5428. /* readonly */
  5429. JSONValue root;
  5430. /* readonly */
  5431. StringHash type;
  5432. /* readonly */
  5433. String typeName;
  5434. /* readonly */
  5435. uint useTimer;
  5436. /* readonly */
  5437. int weakRefs;
  5438. };
  5439. class JSONValue
  5440. {
  5441. // Methods:
  5442. void Clear();
  5443. bool Contains(const String&) const;
  5444. void Erase(const String&);
  5445. void Erase(uint, uint = 1);
  5446. bool GetBool() const;
  5447. double GetDouble() const;
  5448. float GetFloat() const;
  5449. int GetInt() const;
  5450. uint GetUInt() const;
  5451. void Insert(uint, const JSONValue&);
  5452. const JSONValue& Get(const String&) const;
  5453. void Pop();
  5454. void Push(const JSONValue&);
  5455. void Resize(uint);
  5456. void Set(const String&, const JSONValue&);
  5457. const String& GetString() const;
  5458. // Properties:
  5459. /* readonly */
  5460. bool isArray;
  5461. /* readonly */
  5462. bool isBool;
  5463. /* readonly */
  5464. bool isNull;
  5465. /* readonly */
  5466. bool isNumber;
  5467. /* readonly */
  5468. bool isObject;
  5469. /* readonly */
  5470. bool isString;
  5471. /* readonly */
  5472. JSONNumberType numberType;
  5473. /* readonly */
  5474. String numberTypeName;
  5475. /* readonly */
  5476. uint size;
  5477. /* readonly */
  5478. JSONValueType valueType;
  5479. /* readonly */
  5480. String valueTypeName;
  5481. };
  5482. class JoystickState
  5483. {
  5484. // Properties:
  5485. /* readonly */
  5486. Array<float> axisPosition;
  5487. /* readonly */
  5488. Array<bool> buttonDown;
  5489. /* readonly */
  5490. Array<bool> buttonPress;
  5491. /* readonly */
  5492. bool controller;
  5493. /* readonly */
  5494. Array<int> hatPosition;
  5495. int joystickID;
  5496. String name;
  5497. /* readonly */
  5498. uint numAxes;
  5499. /* readonly */
  5500. uint numButtons;
  5501. /* readonly */
  5502. uint numHats;
  5503. };
  5504. class Light
  5505. {
  5506. // Methods:
  5507. void ApplyAttributes();
  5508. void DrawDebugGeometry(DebugRenderer, bool);
  5509. Variant GetAttribute(const String&) const;
  5510. ValueAnimation GetAttributeAnimation(const String&) const;
  5511. float GetAttributeAnimationSpeed(const String&) const;
  5512. float GetAttributeAnimationTime(const String&) const;
  5513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5514. Variant GetAttributeDefault(const String&) const;
  5515. bool GetInterceptNetworkUpdate(const String&) const;
  5516. bool HasSubscribedToEvent(Object, const String&);
  5517. bool HasSubscribedToEvent(const String&);
  5518. bool IsInView(Camera) const;
  5519. bool Load(File, bool = false);
  5520. bool Load(VectorBuffer&, bool = false);
  5521. bool LoadJSON(const JSONValue&, bool = false);
  5522. bool LoadXML(const XMLElement&, bool = false);
  5523. void MarkNetworkUpdate() const;
  5524. void Remove();
  5525. void RemoveAttributeAnimation(const String&);
  5526. void RemoveInstanceDefault();
  5527. void RemoveObjectAnimation();
  5528. void ResetToDefault();
  5529. bool Save(File) const;
  5530. bool Save(VectorBuffer&) const;
  5531. bool SaveJSON(JSONValue&) const;
  5532. bool SaveXML(XMLElement&) const;
  5533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5534. void SetAnimationTime(float);
  5535. bool SetAttribute(const String&, const Variant&);
  5536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5537. void SetAttributeAnimationSpeed(const String&, float);
  5538. void SetAttributeAnimationTime(const String&, float);
  5539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5540. void SetInterceptNetworkUpdate(const String&, bool);
  5541. // Properties:
  5542. bool animationEnabled;
  5543. float aspectRatio;
  5544. /* readonly */
  5545. Array<Variant> attributeDefaults;
  5546. /* readonly */
  5547. Array<AttributeInfo> attributeInfos;
  5548. Array<Variant> attributes;
  5549. /* readonly */
  5550. BoundingBox boundingBox;
  5551. float brightness;
  5552. bool castShadows;
  5553. /* readonly */
  5554. String category;
  5555. Color color;
  5556. /* readonly */
  5557. Color colorFromTemperature;
  5558. float drawDistance;
  5559. /* readonly */
  5560. Color effectiveColor;
  5561. /* readonly */
  5562. float effectiveSpecularIntensity;
  5563. bool enabled;
  5564. /* readonly */
  5565. bool enabledEffective;
  5566. float fadeDistance;
  5567. float fov;
  5568. /* readonly */
  5569. Frustum frustum;
  5570. /* readonly */
  5571. uint id;
  5572. /* readonly */
  5573. bool inView;
  5574. float length;
  5575. uint lightMask;
  5576. LightType lightType;
  5577. float lodBias;
  5578. uint maxLights;
  5579. /* readonly */
  5580. bool negative;
  5581. /* readonly */
  5582. Node node;
  5583. /* readonly */
  5584. uint numAttributes;
  5585. /* readonly */
  5586. int numShadowSplits;
  5587. ObjectAnimation objectAnimation;
  5588. bool occludee;
  5589. bool occluder;
  5590. bool perVertex;
  5591. float radius;
  5592. Texture rampTexture;
  5593. float range;
  5594. /* readonly */
  5595. int refs;
  5596. BiasParameters shadowBias;
  5597. CascadeParameters shadowCascade;
  5598. float shadowDistance;
  5599. float shadowFadeDistance;
  5600. FocusParameters shadowFocus;
  5601. float shadowIntensity;
  5602. uint shadowMask;
  5603. float shadowMaxExtrusion;
  5604. float shadowNearFarRatio;
  5605. float shadowResolution;
  5606. Texture shapeTexture;
  5607. float specularIntensity;
  5608. float temperature;
  5609. bool temporary;
  5610. /* readonly */
  5611. StringHash type;
  5612. /* readonly */
  5613. String typeName;
  5614. bool usePhysicalValues;
  5615. uint viewMask;
  5616. /* readonly */
  5617. int weakRefs;
  5618. /* readonly */
  5619. BoundingBox worldBoundingBox;
  5620. uint zoneMask;
  5621. };
  5622. class LineEdit
  5623. {
  5624. // Methods:
  5625. void AddChild(UIElement);
  5626. void AddTag(const String&);
  5627. void AddTags(const String&, int8 = ';');
  5628. void ApplyAttributes();
  5629. void BringToFront();
  5630. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5631. void DisableLayoutUpdate();
  5632. IntVector2 ElementToScreen(const IntVector2&);
  5633. void EnableLayoutUpdate();
  5634. uint FindChild(UIElement) const;
  5635. Variant GetAttribute(const String&) const;
  5636. ValueAnimation GetAttributeAnimation(const String&) const;
  5637. float GetAttributeAnimationSpeed(const String&) const;
  5638. float GetAttributeAnimationTime(const String&) const;
  5639. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5640. Variant GetAttributeDefault(const String&) const;
  5641. UIElement GetChild(const String&, bool = false) const;
  5642. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5643. Array<UIElement> GetChildren(bool = false) const;
  5644. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5645. UIElement GetElementEventSender() const;
  5646. bool GetInterceptNetworkUpdate(const String&) const;
  5647. uint GetNumChildren(bool) const;
  5648. bool HasSubscribedToEvent(Object, const String&);
  5649. bool HasSubscribedToEvent(const String&);
  5650. bool HasTag(const String&) const;
  5651. void InsertChild(uint, UIElement);
  5652. bool IsInside(IntVector2, bool);
  5653. bool IsInsideCombined(IntVector2, bool);
  5654. bool Load(File, bool = false);
  5655. bool Load(VectorBuffer&, bool = false);
  5656. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5657. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5658. bool LoadJSON(const JSONValue&, bool = false);
  5659. bool LoadXML(File);
  5660. bool LoadXML(VectorBuffer&);
  5661. bool LoadXML(XMLFile, XMLFile);
  5662. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5663. bool LoadXML(const XMLElement&, bool = false);
  5664. void MarkNetworkUpdate() const;
  5665. void Remove();
  5666. void RemoveAllChildren();
  5667. void RemoveAllTags();
  5668. void RemoveAttributeAnimation(const String&);
  5669. void RemoveChild(UIElement, uint = 0);
  5670. void RemoveChild(uint);
  5671. void RemoveInstanceDefault();
  5672. void RemoveObjectAnimation();
  5673. bool RemoveTag(const String&);
  5674. void ResetDeepEnabled();
  5675. void ResetToDefault();
  5676. bool Save(File) const;
  5677. bool Save(VectorBuffer&) const;
  5678. bool SaveJSON(JSONValue&) const;
  5679. bool SaveXML(File, const String& = "\t");
  5680. bool SaveXML(VectorBuffer&, const String& = "\t");
  5681. bool SaveXML(XMLElement&) const;
  5682. IntVector2 ScreenToElement(const IntVector2&);
  5683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5684. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5685. void SetAnimationTime(float);
  5686. bool SetAttribute(const String&, const Variant&);
  5687. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5688. void SetAttributeAnimationSpeed(const String&, float);
  5689. void SetAttributeAnimationTime(const String&, float);
  5690. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5691. void SetDeepEnabled(bool);
  5692. void SetEnabledRecursive(bool);
  5693. void SetFixedHeight(int);
  5694. void SetFixedSize(int, int);
  5695. void SetFixedWidth(int);
  5696. void SetFullImageRect();
  5697. void SetHoverOffset(int, int);
  5698. void SetInterceptNetworkUpdate(const String&, bool);
  5699. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5700. void SetMaxAnchor(float, float);
  5701. void SetMaxSize(int, int);
  5702. void SetMinAnchor(float, float);
  5703. void SetMinSize(int, int);
  5704. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5705. void SetPivot(float, float);
  5706. void SetPosition(int, int);
  5707. void SetSize(int, int);
  5708. bool SetStyle(const String&, XMLFile = null);
  5709. bool SetStyle(const XMLElement&);
  5710. bool SetStyleAuto(XMLFile = null);
  5711. void UpdateLayout();
  5712. const Variant& GetVar(const StringHash&);
  5713. // Properties:
  5714. bool animationEnabled;
  5715. /* readonly */
  5716. Array<Variant> attributeDefaults;
  5717. /* readonly */
  5718. Array<AttributeInfo> attributeInfos;
  5719. Array<Variant> attributes;
  5720. BlendMode blendMode;
  5721. IntRect border;
  5722. bool bringToBack;
  5723. bool bringToFront;
  5724. /* readonly */
  5725. String category;
  5726. /* readonly */
  5727. IntVector2 childOffset;
  5728. /* readonly */
  5729. Array<UIElement> children;
  5730. IntRect clipBorder;
  5731. bool clipChildren;
  5732. /* writeonly */
  5733. Color color;
  5734. /* readonly */
  5735. bool colorGradient;
  5736. Array<Color> colors;
  5737. /* readonly */
  5738. IntRect combinedScreenRect;
  5739. /* readonly */
  5740. BorderImage cursor;
  5741. float cursorBlinkRate;
  5742. bool cursorMovable;
  5743. uint cursorPosition;
  5744. XMLFile defaultStyle;
  5745. /* readonly */
  5746. float derivedOpacity;
  5747. /* readonly */
  5748. uint dragButtonCombo;
  5749. /* readonly */
  5750. int dragButtonCount;
  5751. uint dragDropMode;
  5752. uint echoCharacter;
  5753. bool editable;
  5754. bool elementEventSender;
  5755. bool enableAnchor;
  5756. bool enabled;
  5757. /* readonly */
  5758. bool enabledSelf;
  5759. /* readonly */
  5760. bool fixedHeight;
  5761. /* readonly */
  5762. bool fixedSize;
  5763. /* readonly */
  5764. bool fixedWidth;
  5765. bool focus;
  5766. FocusMode focusMode;
  5767. int height;
  5768. HorizontalAlignment horizontalAlignment;
  5769. IntVector2 hoverOffset;
  5770. /* readonly */
  5771. bool hovering;
  5772. IntRect imageBorder;
  5773. IntRect imageRect;
  5774. int indent;
  5775. int indentSpacing;
  5776. /* readonly */
  5777. int indentWidth;
  5778. bool internal;
  5779. IntRect layoutBorder;
  5780. Vector2 layoutFlexScale;
  5781. LayoutMode layoutMode;
  5782. int layoutSpacing;
  5783. Vector2 maxAnchor;
  5784. int maxHeight;
  5785. uint maxLength;
  5786. IntVector2 maxOffset;
  5787. IntVector2 maxSize;
  5788. int maxWidth;
  5789. Vector2 minAnchor;
  5790. int minHeight;
  5791. IntVector2 minOffset;
  5792. IntVector2 minSize;
  5793. int minWidth;
  5794. String name;
  5795. /* readonly */
  5796. uint numAllChildren;
  5797. /* readonly */
  5798. uint numAttributes;
  5799. /* readonly */
  5800. uint numChildren;
  5801. ObjectAnimation objectAnimation;
  5802. float opacity;
  5803. UIElement parent;
  5804. Vector2 pivot;
  5805. IntVector2 position;
  5806. int priority;
  5807. /* readonly */
  5808. int refs;
  5809. /* readonly */
  5810. UIElement root;
  5811. /* readonly */
  5812. IntVector2 screenPosition;
  5813. bool selected;
  5814. IntVector2 size;
  5815. bool sortChildren;
  5816. String style;
  5817. /* readonly */
  5818. Array<String> tags;
  5819. bool temporary;
  5820. String text;
  5821. bool textCopyable;
  5822. /* readonly */
  5823. Text textElement;
  5824. bool textSelectable;
  5825. Texture texture;
  5826. bool tiled;
  5827. TraversalMode traversalMode;
  5828. /* readonly */
  5829. StringHash type;
  5830. /* readonly */
  5831. String typeName;
  5832. bool useDerivedOpacity;
  5833. /* readonly */
  5834. VariantMap vars;
  5835. VerticalAlignment verticalAlignment;
  5836. bool visible;
  5837. /* readonly */
  5838. bool visibleEffective;
  5839. /* readonly */
  5840. int weakRefs;
  5841. int width;
  5842. };
  5843. class ListView
  5844. {
  5845. // Methods:
  5846. void AddChild(UIElement);
  5847. void AddItem(UIElement);
  5848. void AddSelection(uint);
  5849. void AddTag(const String&);
  5850. void AddTags(const String&, int8 = ';');
  5851. void ApplyAttributes();
  5852. void BringToFront();
  5853. void ChangeSelection(int, bool);
  5854. void ClearSelection();
  5855. void CopySelectedItemsToClipboard();
  5856. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5857. void DisableLayoutUpdate();
  5858. IntVector2 ElementToScreen(const IntVector2&);
  5859. void EnableLayoutUpdate();
  5860. void Expand(uint, bool, bool = false);
  5861. uint FindChild(UIElement) const;
  5862. uint FindItem(UIElement);
  5863. Variant GetAttribute(const String&) const;
  5864. ValueAnimation GetAttributeAnimation(const String&) const;
  5865. float GetAttributeAnimationSpeed(const String&) const;
  5866. float GetAttributeAnimationTime(const String&) const;
  5867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5868. Variant GetAttributeDefault(const String&) const;
  5869. UIElement GetChild(const String&, bool = false) const;
  5870. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5871. Array<UIElement> GetChildren(bool = false) const;
  5872. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5873. UIElement GetElementEventSender() const;
  5874. bool GetInterceptNetworkUpdate(const String&) const;
  5875. Array<UIElement> GetItems() const;
  5876. uint GetNumChildren(bool) const;
  5877. bool HasSubscribedToEvent(Object, const String&);
  5878. bool HasSubscribedToEvent(const String&);
  5879. bool HasTag(const String&) const;
  5880. void InsertChild(uint, UIElement);
  5881. void InsertItem(uint, UIElement, UIElement = null);
  5882. bool IsExpanded(uint) const;
  5883. bool IsInside(IntVector2, bool);
  5884. bool IsInsideCombined(IntVector2, bool);
  5885. bool IsSelected(uint) const;
  5886. bool Load(File, bool = false);
  5887. bool Load(VectorBuffer&, bool = false);
  5888. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5889. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5890. bool LoadJSON(const JSONValue&, bool = false);
  5891. bool LoadXML(File);
  5892. bool LoadXML(VectorBuffer&);
  5893. bool LoadXML(XMLFile, XMLFile);
  5894. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5895. bool LoadXML(const XMLElement&, bool = false);
  5896. void MarkNetworkUpdate() const;
  5897. void Remove();
  5898. void RemoveAllChildren();
  5899. void RemoveAllItems();
  5900. void RemoveAllTags();
  5901. void RemoveAttributeAnimation(const String&);
  5902. void RemoveChild(UIElement, uint = 0);
  5903. void RemoveChild(uint);
  5904. void RemoveInstanceDefault();
  5905. void RemoveItem(UIElement, uint = 0);
  5906. void RemoveItem(uint);
  5907. void RemoveObjectAnimation();
  5908. void RemoveSelection(uint);
  5909. bool RemoveTag(const String&);
  5910. void ResetDeepEnabled();
  5911. void ResetToDefault();
  5912. bool Save(File) const;
  5913. bool Save(VectorBuffer&) const;
  5914. bool SaveJSON(JSONValue&) const;
  5915. bool SaveXML(File, const String& = "\t");
  5916. bool SaveXML(VectorBuffer&, const String& = "\t");
  5917. bool SaveXML(XMLElement&) const;
  5918. IntVector2 ScreenToElement(const IntVector2&);
  5919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5920. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5921. void SetAnimationTime(float);
  5922. bool SetAttribute(const String&, const Variant&);
  5923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5924. void SetAttributeAnimationSpeed(const String&, float);
  5925. void SetAttributeAnimationTime(const String&, float);
  5926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5927. void SetDeepEnabled(bool);
  5928. void SetEnabledRecursive(bool);
  5929. void SetFixedHeight(int);
  5930. void SetFixedSize(int, int);
  5931. void SetFixedWidth(int);
  5932. void SetInterceptNetworkUpdate(const String&, bool);
  5933. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5934. void SetMaxAnchor(float, float);
  5935. void SetMaxSize(int, int);
  5936. void SetMinAnchor(float, float);
  5937. void SetMinSize(int, int);
  5938. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5939. void SetPivot(float, float);
  5940. void SetPosition(int, int);
  5941. void SetScrollBarsVisible(bool, bool);
  5942. void SetSelections(Array<uint>);
  5943. void SetSize(int, int);
  5944. bool SetStyle(const String&, XMLFile = null);
  5945. bool SetStyle(const XMLElement&);
  5946. bool SetStyleAuto(XMLFile = null);
  5947. void SetViewPosition(int, int);
  5948. void ToggleExpand(uint, bool = false);
  5949. void ToggleSelection(uint);
  5950. void UpdateLayout();
  5951. const Variant& GetVar(const StringHash&);
  5952. // Properties:
  5953. bool animationEnabled;
  5954. /* readonly */
  5955. Array<Variant> attributeDefaults;
  5956. /* readonly */
  5957. Array<AttributeInfo> attributeInfos;
  5958. Array<Variant> attributes;
  5959. bool autoDisableChildren;
  5960. float autoDisableThreshold;
  5961. int baseIndent;
  5962. bool bringToBack;
  5963. bool bringToFront;
  5964. /* readonly */
  5965. String category;
  5966. /* readonly */
  5967. IntVector2 childOffset;
  5968. /* readonly */
  5969. Array<UIElement> children;
  5970. bool clearSelectionOnDefocus;
  5971. IntRect clipBorder;
  5972. bool clipChildren;
  5973. /* writeonly */
  5974. Color color;
  5975. /* readonly */
  5976. bool colorGradient;
  5977. Array<Color> colors;
  5978. /* readonly */
  5979. IntRect combinedScreenRect;
  5980. /* readonly */
  5981. UIElement contentElement;
  5982. XMLFile defaultStyle;
  5983. /* readonly */
  5984. float derivedOpacity;
  5985. /* readonly */
  5986. uint dragButtonCombo;
  5987. /* readonly */
  5988. int dragButtonCount;
  5989. uint dragDropMode;
  5990. bool editable;
  5991. bool elementEventSender;
  5992. bool enableAnchor;
  5993. bool enabled;
  5994. /* readonly */
  5995. bool enabledSelf;
  5996. /* readonly */
  5997. bool fixedHeight;
  5998. /* readonly */
  5999. bool fixedSize;
  6000. /* readonly */
  6001. bool fixedWidth;
  6002. bool focus;
  6003. FocusMode focusMode;
  6004. int height;
  6005. bool hierarchyMode;
  6006. HighlightMode highlightMode;
  6007. HorizontalAlignment horizontalAlignment;
  6008. /* readonly */
  6009. ScrollBar horizontalScrollBar;
  6010. /* readonly */
  6011. bool hovering;
  6012. int indent;
  6013. int indentSpacing;
  6014. /* readonly */
  6015. int indentWidth;
  6016. bool internal;
  6017. /* readonly */
  6018. Array<UIElement> items;
  6019. IntRect layoutBorder;
  6020. Vector2 layoutFlexScale;
  6021. LayoutMode layoutMode;
  6022. int layoutSpacing;
  6023. Vector2 maxAnchor;
  6024. int maxHeight;
  6025. IntVector2 maxOffset;
  6026. IntVector2 maxSize;
  6027. int maxWidth;
  6028. Vector2 minAnchor;
  6029. int minHeight;
  6030. IntVector2 minOffset;
  6031. IntVector2 minSize;
  6032. int minWidth;
  6033. bool multiselect;
  6034. String name;
  6035. /* readonly */
  6036. uint numAllChildren;
  6037. /* readonly */
  6038. uint numAttributes;
  6039. /* readonly */
  6040. uint numChildren;
  6041. /* readonly */
  6042. uint numItems;
  6043. ObjectAnimation objectAnimation;
  6044. float opacity;
  6045. float pageStep;
  6046. UIElement parent;
  6047. Vector2 pivot;
  6048. IntVector2 position;
  6049. int priority;
  6050. /* readonly */
  6051. int refs;
  6052. /* readonly */
  6053. UIElement root;
  6054. /* readonly */
  6055. IntVector2 screenPosition;
  6056. bool scrollBarsAutoVisible;
  6057. float scrollDeceleration;
  6058. /* readonly */
  6059. BorderImage scrollPanel;
  6060. float scrollSnapEpsilon;
  6061. float scrollStep;
  6062. bool selectOnClickEnd;
  6063. bool selected;
  6064. /* readonly */
  6065. UIElement selectedItem;
  6066. /* readonly */
  6067. Array<UIElement> selectedItems;
  6068. uint selection;
  6069. /* readonly */
  6070. Array<uint> selections;
  6071. IntVector2 size;
  6072. bool sortChildren;
  6073. String style;
  6074. /* readonly */
  6075. Array<String> tags;
  6076. bool temporary;
  6077. TraversalMode traversalMode;
  6078. /* readonly */
  6079. StringHash type;
  6080. /* readonly */
  6081. String typeName;
  6082. bool useDerivedOpacity;
  6083. /* readonly */
  6084. VariantMap vars;
  6085. VerticalAlignment verticalAlignment;
  6086. /* readonly */
  6087. ScrollBar verticalScrollBar;
  6088. IntVector2 viewPosition;
  6089. bool visible;
  6090. /* readonly */
  6091. bool visibleEffective;
  6092. /* readonly */
  6093. int weakRefs;
  6094. int width;
  6095. };
  6096. class Localization
  6097. {
  6098. // Methods:
  6099. String Get(const String&);
  6100. String GetLanguage(int);
  6101. int GetLanguageIndex(const String&);
  6102. bool HasSubscribedToEvent(Object, const String&);
  6103. bool HasSubscribedToEvent(const String&);
  6104. void LoadJSON(const JSONValue&);
  6105. void LoadJSONFile(const String&);
  6106. void Reset();
  6107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6108. void SetLanguage(const String&);
  6109. void SetLanguage(int);
  6110. // Properties:
  6111. /* readonly */
  6112. String category;
  6113. /* readonly */
  6114. String language;
  6115. /* readonly */
  6116. int languageIndex;
  6117. /* readonly */
  6118. int numLanguages;
  6119. /* readonly */
  6120. int refs;
  6121. /* readonly */
  6122. StringHash type;
  6123. /* readonly */
  6124. String typeName;
  6125. /* readonly */
  6126. int weakRefs;
  6127. };
  6128. class Log
  6129. {
  6130. // Methods:
  6131. void Close();
  6132. void Debug(const String&);
  6133. void Error(const String&);
  6134. bool HasSubscribedToEvent(Object, const String&);
  6135. bool HasSubscribedToEvent(const String&);
  6136. void Info(const String&);
  6137. void Open(const String&);
  6138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6139. void Warning(const String&);
  6140. void Write(const String&, bool = false);
  6141. // Properties:
  6142. /* readonly */
  6143. String category;
  6144. /* readonly */
  6145. String lastMessage;
  6146. int level;
  6147. bool quiet;
  6148. /* readonly */
  6149. int refs;
  6150. bool timeStamp;
  6151. /* readonly */
  6152. StringHash type;
  6153. /* readonly */
  6154. String typeName;
  6155. /* readonly */
  6156. int weakRefs;
  6157. };
  6158. class Material
  6159. {
  6160. // Methods:
  6161. Material Clone(const String& = String ( )) const;
  6162. Pass GetPass(uint, const String&);
  6163. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6164. float GetShaderParameterAnimationSpeed(const String&) const;
  6165. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6166. bool HasSubscribedToEvent(Object, const String&);
  6167. bool HasSubscribedToEvent(const String&);
  6168. bool Load(File);
  6169. bool Load(VectorBuffer&);
  6170. bool Load(const JSONValue&);
  6171. bool Load(const String&);
  6172. bool Load(const XMLElement&);
  6173. void RemoveShaderParameter(const String&);
  6174. bool Save(File) const;
  6175. bool Save(JSONValue&) const;
  6176. bool Save(VectorBuffer&) const;
  6177. bool Save(XMLElement&) const;
  6178. bool Save(const String&) const;
  6179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6180. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6181. void SetShaderParameterAnimationSpeed(const String&, float);
  6182. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6183. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6184. void SetUVTransform(const Vector2&, float, const Vector2&);
  6185. void SetUVTransform(const Vector2&, float, float);
  6186. void SortTechniques();
  6187. // Properties:
  6188. bool alphaToCoverage;
  6189. /* readonly */
  6190. String category;
  6191. CullMode cullMode;
  6192. BiasParameters depthBias;
  6193. FillMode fillMode;
  6194. bool lineAntiAlias;
  6195. /* readonly */
  6196. uint memoryUse;
  6197. String name;
  6198. uint numTechniques;
  6199. bool occlusion;
  6200. String pixelShaderDefines;
  6201. /* readonly */
  6202. int refs;
  6203. uint8 renderOrder;
  6204. Scene scene;
  6205. /* readonly */
  6206. Array<String> shaderParameterNames;
  6207. Array<Variant> shaderParameters;
  6208. CullMode shadowCullMode;
  6209. /* readonly */
  6210. Array<TechniqueEntry> techniqueEntries;
  6211. /* readonly */
  6212. Array<Technique> techniques;
  6213. Array<Texture> textures;
  6214. /* readonly */
  6215. StringHash type;
  6216. /* readonly */
  6217. String typeName;
  6218. /* readonly */
  6219. uint useTimer;
  6220. String vertexShaderDefines;
  6221. /* readonly */
  6222. int weakRefs;
  6223. };
  6224. class Matrix2
  6225. {
  6226. // Methods:
  6227. bool Equals(const Matrix2&) const;
  6228. Matrix2 Inverse() const;
  6229. Vector2 Scale() const;
  6230. Matrix2 Scaled(const Vector2&) const;
  6231. void SetScale(const Vector2&);
  6232. void SetScale(float);
  6233. String ToString() const;
  6234. Matrix2 Transpose() const;
  6235. // Properties:
  6236. float m00;
  6237. float m01;
  6238. float m10;
  6239. float m11;
  6240. };
  6241. class Matrix3
  6242. {
  6243. // Methods:
  6244. bool Equals(const Matrix3&) const;
  6245. Matrix3 Inverse() const;
  6246. Vector3 Scale() const;
  6247. Matrix3 Scaled(const Vector3&) const;
  6248. void SetScale(const Vector3&);
  6249. void SetScale(float);
  6250. String ToString() const;
  6251. Matrix3 Transpose() const;
  6252. // Properties:
  6253. float m00;
  6254. float m01;
  6255. float m02;
  6256. float m10;
  6257. float m11;
  6258. float m12;
  6259. float m20;
  6260. float m21;
  6261. float m22;
  6262. };
  6263. class Matrix3x4
  6264. {
  6265. // Methods:
  6266. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6267. bool Equals(const Matrix3x4&) const;
  6268. Matrix3x4 Inverse() const;
  6269. Quaternion Rotation() const;
  6270. Matrix3 RotationMatrix() const;
  6271. Vector3 Scale() const;
  6272. void SetRotation(const Matrix3&);
  6273. void SetScale(const Vector3&);
  6274. void SetScale(float);
  6275. void SetTranslation(const Vector3&);
  6276. Matrix3 ToMatrix3() const;
  6277. Matrix4 ToMatrix4() const;
  6278. String ToString() const;
  6279. Vector3 Translation() const;
  6280. // Properties:
  6281. float m00;
  6282. float m01;
  6283. float m02;
  6284. float m03;
  6285. float m10;
  6286. float m11;
  6287. float m12;
  6288. float m13;
  6289. float m20;
  6290. float m21;
  6291. float m22;
  6292. float m23;
  6293. };
  6294. class Matrix4
  6295. {
  6296. // Methods:
  6297. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6298. bool Equals(const Matrix4&) const;
  6299. Matrix4 Inverse() const;
  6300. Quaternion Rotation() const;
  6301. Matrix3 RotationMatrix() const;
  6302. Vector3 Scale() const;
  6303. void SetRotation(const Matrix3&);
  6304. void SetScale(const Vector3&);
  6305. void SetScale(float);
  6306. void SetTranslation(const Vector3&);
  6307. Matrix3 ToMatrix3() const;
  6308. String ToString() const;
  6309. Vector3 Translation() const;
  6310. Matrix4 Transpose() const;
  6311. // Properties:
  6312. float m00;
  6313. float m01;
  6314. float m02;
  6315. float m03;
  6316. float m10;
  6317. float m11;
  6318. float m12;
  6319. float m13;
  6320. float m20;
  6321. float m21;
  6322. float m22;
  6323. float m23;
  6324. float m30;
  6325. float m31;
  6326. float m32;
  6327. float m33;
  6328. };
  6329. class Menu
  6330. {
  6331. // Methods:
  6332. void AddChild(UIElement);
  6333. void AddTag(const String&);
  6334. void AddTags(const String&, int8 = ';');
  6335. void ApplyAttributes();
  6336. void BringToFront();
  6337. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6338. void DisableLayoutUpdate();
  6339. IntVector2 ElementToScreen(const IntVector2&);
  6340. void EnableLayoutUpdate();
  6341. uint FindChild(UIElement) const;
  6342. Variant GetAttribute(const String&) const;
  6343. ValueAnimation GetAttributeAnimation(const String&) const;
  6344. float GetAttributeAnimationSpeed(const String&) const;
  6345. float GetAttributeAnimationTime(const String&) const;
  6346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6347. Variant GetAttributeDefault(const String&) const;
  6348. UIElement GetChild(const String&, bool = false) const;
  6349. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6350. Array<UIElement> GetChildren(bool = false) const;
  6351. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6352. UIElement GetElementEventSender() const;
  6353. bool GetInterceptNetworkUpdate(const String&) const;
  6354. uint GetNumChildren(bool) const;
  6355. bool HasSubscribedToEvent(Object, const String&);
  6356. bool HasSubscribedToEvent(const String&);
  6357. bool HasTag(const String&) const;
  6358. void InsertChild(uint, UIElement);
  6359. bool IsInside(IntVector2, bool);
  6360. bool IsInsideCombined(IntVector2, bool);
  6361. bool Load(File, bool = false);
  6362. bool Load(VectorBuffer&, bool = false);
  6363. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6364. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6365. bool LoadJSON(const JSONValue&, bool = false);
  6366. bool LoadXML(File);
  6367. bool LoadXML(VectorBuffer&);
  6368. bool LoadXML(XMLFile, XMLFile);
  6369. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6370. bool LoadXML(const XMLElement&, bool = false);
  6371. void MarkNetworkUpdate() const;
  6372. void Remove();
  6373. void RemoveAllChildren();
  6374. void RemoveAllTags();
  6375. void RemoveAttributeAnimation(const String&);
  6376. void RemoveChild(UIElement, uint = 0);
  6377. void RemoveChild(uint);
  6378. void RemoveInstanceDefault();
  6379. void RemoveObjectAnimation();
  6380. bool RemoveTag(const String&);
  6381. void ResetDeepEnabled();
  6382. void ResetToDefault();
  6383. bool Save(File) const;
  6384. bool Save(VectorBuffer&) const;
  6385. bool SaveJSON(JSONValue&) const;
  6386. bool SaveXML(File, const String& = "\t");
  6387. bool SaveXML(VectorBuffer&, const String& = "\t");
  6388. bool SaveXML(XMLElement&) const;
  6389. IntVector2 ScreenToElement(const IntVector2&);
  6390. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6391. void SetAccelerator(int, int);
  6392. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6393. void SetAnimationTime(float);
  6394. bool SetAttribute(const String&, const Variant&);
  6395. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6396. void SetAttributeAnimationSpeed(const String&, float);
  6397. void SetAttributeAnimationTime(const String&, float);
  6398. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6399. void SetDeepEnabled(bool);
  6400. void SetEnabledRecursive(bool);
  6401. void SetFixedHeight(int);
  6402. void SetFixedSize(int, int);
  6403. void SetFixedWidth(int);
  6404. void SetFullImageRect();
  6405. void SetHoverOffset(int, int);
  6406. void SetInterceptNetworkUpdate(const String&, bool);
  6407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6408. void SetMaxAnchor(float, float);
  6409. void SetMaxSize(int, int);
  6410. void SetMinAnchor(float, float);
  6411. void SetMinSize(int, int);
  6412. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6413. void SetPivot(float, float);
  6414. void SetPopupOffset(int, int);
  6415. void SetPosition(int, int);
  6416. void SetPressedChildOffset(int, int);
  6417. void SetPressedOffset(int, int);
  6418. void SetRepeat(float, float);
  6419. void SetSize(int, int);
  6420. bool SetStyle(const String&, XMLFile = null);
  6421. bool SetStyle(const XMLElement&);
  6422. bool SetStyleAuto(XMLFile = null);
  6423. void UpdateLayout();
  6424. const Variant& GetVar(const StringHash&);
  6425. // Properties:
  6426. /* readonly */
  6427. int acceleratorKey;
  6428. /* readonly */
  6429. int acceleratorQualifiers;
  6430. bool animationEnabled;
  6431. /* readonly */
  6432. Array<Variant> attributeDefaults;
  6433. /* readonly */
  6434. Array<AttributeInfo> attributeInfos;
  6435. Array<Variant> attributes;
  6436. BlendMode blendMode;
  6437. IntRect border;
  6438. bool bringToBack;
  6439. bool bringToFront;
  6440. /* readonly */
  6441. String category;
  6442. /* readonly */
  6443. IntVector2 childOffset;
  6444. /* readonly */
  6445. Array<UIElement> children;
  6446. IntRect clipBorder;
  6447. bool clipChildren;
  6448. /* writeonly */
  6449. Color color;
  6450. /* readonly */
  6451. bool colorGradient;
  6452. Array<Color> colors;
  6453. /* readonly */
  6454. IntRect combinedScreenRect;
  6455. XMLFile defaultStyle;
  6456. /* readonly */
  6457. float derivedOpacity;
  6458. /* readonly */
  6459. uint dragButtonCombo;
  6460. /* readonly */
  6461. int dragButtonCount;
  6462. uint dragDropMode;
  6463. bool editable;
  6464. bool elementEventSender;
  6465. bool enableAnchor;
  6466. bool enabled;
  6467. /* readonly */
  6468. bool enabledSelf;
  6469. /* readonly */
  6470. bool fixedHeight;
  6471. /* readonly */
  6472. bool fixedSize;
  6473. /* readonly */
  6474. bool fixedWidth;
  6475. bool focus;
  6476. FocusMode focusMode;
  6477. int height;
  6478. HorizontalAlignment horizontalAlignment;
  6479. IntVector2 hoverOffset;
  6480. /* readonly */
  6481. bool hovering;
  6482. IntRect imageBorder;
  6483. IntRect imageRect;
  6484. int indent;
  6485. int indentSpacing;
  6486. /* readonly */
  6487. int indentWidth;
  6488. bool internal;
  6489. IntRect layoutBorder;
  6490. Vector2 layoutFlexScale;
  6491. LayoutMode layoutMode;
  6492. int layoutSpacing;
  6493. Vector2 maxAnchor;
  6494. int maxHeight;
  6495. IntVector2 maxOffset;
  6496. IntVector2 maxSize;
  6497. int maxWidth;
  6498. Vector2 minAnchor;
  6499. int minHeight;
  6500. IntVector2 minOffset;
  6501. IntVector2 minSize;
  6502. int minWidth;
  6503. String name;
  6504. /* readonly */
  6505. uint numAllChildren;
  6506. /* readonly */
  6507. uint numAttributes;
  6508. /* readonly */
  6509. uint numChildren;
  6510. ObjectAnimation objectAnimation;
  6511. float opacity;
  6512. UIElement parent;
  6513. Vector2 pivot;
  6514. UIElement popup;
  6515. IntVector2 popupOffset;
  6516. IntVector2 position;
  6517. /* readonly */
  6518. bool pressed;
  6519. IntVector2 pressedChildOffset;
  6520. IntVector2 pressedOffset;
  6521. int priority;
  6522. /* readonly */
  6523. int refs;
  6524. float repeatDelay;
  6525. float repeatRate;
  6526. /* readonly */
  6527. UIElement root;
  6528. /* readonly */
  6529. IntVector2 screenPosition;
  6530. bool selected;
  6531. bool showPopup;
  6532. IntVector2 size;
  6533. bool sortChildren;
  6534. String style;
  6535. /* readonly */
  6536. Array<String> tags;
  6537. bool temporary;
  6538. Texture texture;
  6539. bool tiled;
  6540. TraversalMode traversalMode;
  6541. /* readonly */
  6542. StringHash type;
  6543. /* readonly */
  6544. String typeName;
  6545. bool useDerivedOpacity;
  6546. /* readonly */
  6547. VariantMap vars;
  6548. VerticalAlignment verticalAlignment;
  6549. bool visible;
  6550. /* readonly */
  6551. bool visibleEffective;
  6552. /* readonly */
  6553. int weakRefs;
  6554. int width;
  6555. };
  6556. class MessageBox
  6557. {
  6558. // Methods:
  6559. bool HasSubscribedToEvent(Object, const String&);
  6560. bool HasSubscribedToEvent(const String&);
  6561. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6562. // Properties:
  6563. /* readonly */
  6564. String category;
  6565. String message;
  6566. /* readonly */
  6567. int refs;
  6568. String title;
  6569. /* readonly */
  6570. StringHash type;
  6571. /* readonly */
  6572. String typeName;
  6573. /* readonly */
  6574. int weakRefs;
  6575. /* readonly */
  6576. UIElement window;
  6577. };
  6578. class Model
  6579. {
  6580. // Methods:
  6581. Model Clone(const String& = String ( )) const;
  6582. Geometry GetGeometry(uint, uint) const;
  6583. bool HasSubscribedToEvent(Object, const String&);
  6584. bool HasSubscribedToEvent(const String&);
  6585. bool Load(File);
  6586. bool Load(VectorBuffer&);
  6587. bool Load(const String&);
  6588. bool Save(File) const;
  6589. bool Save(VectorBuffer&) const;
  6590. bool Save(const String&) const;
  6591. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6592. bool SetGeometry(uint, uint, Geometry);
  6593. bool SetIndexBuffers(Array<IndexBuffer>);
  6594. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  6595. // Properties:
  6596. BoundingBox boundingBox;
  6597. /* readonly */
  6598. String category;
  6599. Array<Vector3> geometryCenters;
  6600. /* readonly */
  6601. uint memoryUse;
  6602. String name;
  6603. uint numGeometries;
  6604. Array<uint> numGeometryLodLevels;
  6605. /* readonly */
  6606. uint numMorphs;
  6607. /* readonly */
  6608. int refs;
  6609. /* readonly */
  6610. Skeleton skeleton;
  6611. /* readonly */
  6612. StringHash type;
  6613. /* readonly */
  6614. String typeName;
  6615. /* readonly */
  6616. uint useTimer;
  6617. /* readonly */
  6618. int weakRefs;
  6619. };
  6620. class NamedPipe
  6621. {
  6622. // Methods:
  6623. void Close();
  6624. bool HasSubscribedToEvent(Object, const String&);
  6625. bool HasSubscribedToEvent(const String&);
  6626. bool Open(const String&, bool);
  6627. Array<uint8> Read(uint);
  6628. bool ReadBool();
  6629. BoundingBox ReadBoundingBox();
  6630. int8 ReadByte();
  6631. Color ReadColor();
  6632. double ReadDouble();
  6633. String ReadFileID();
  6634. float ReadFloat();
  6635. int ReadInt();
  6636. int64 ReadInt64();
  6637. IntRect ReadIntRect();
  6638. IntVector2 ReadIntVector2();
  6639. String ReadLine();
  6640. Matrix3 ReadMatrix3();
  6641. Matrix3x4 ReadMatrix3x4();
  6642. Matrix4 ReadMatrix4();
  6643. uint ReadNetID();
  6644. Quaternion ReadPackedQuaternion();
  6645. Vector3 ReadPackedVector3(float);
  6646. Quaternion ReadQuaternion();
  6647. int16 ReadShort();
  6648. String ReadString();
  6649. StringHash ReadStringHash();
  6650. uint8 ReadUByte();
  6651. uint ReadUInt();
  6652. uint64 ReadUInt64();
  6653. uint16 ReadUShort();
  6654. uint ReadVLE();
  6655. Variant ReadVariant();
  6656. VariantMap ReadVariantMap();
  6657. Vector2 ReadVector2();
  6658. Vector3 ReadVector3();
  6659. Vector4 ReadVector4();
  6660. VectorBuffer ReadVectorBuffer(uint);
  6661. uint Seek(uint);
  6662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6663. uint Write(Array<uint8>);
  6664. bool WriteBool(bool);
  6665. bool WriteBoundingBox(const BoundingBox&);
  6666. bool WriteByte(int8);
  6667. bool WriteColor(const Color&);
  6668. bool WriteDouble(double);
  6669. bool WriteFileID(const String&);
  6670. bool WriteFloat(float);
  6671. bool WriteInt(int);
  6672. bool WriteInt64(int64);
  6673. bool WriteIntRect(const IntRect&);
  6674. bool WriteIntVector2(const IntVector2&);
  6675. bool WriteLine(const String&);
  6676. bool WriteMatrix3(const Matrix3&);
  6677. bool WriteMatrix3x4(const Matrix3x4&);
  6678. bool WriteMatrix4(const Matrix4&);
  6679. bool WriteNetID(uint);
  6680. bool WritePackedQuaternion(const Quaternion&);
  6681. bool WritePackedVector3(const Vector3&, float);
  6682. bool WriteQuaternion(const Quaternion&);
  6683. bool WriteShort(int16);
  6684. bool WriteString(const String&);
  6685. bool WriteStringHash(const StringHash&);
  6686. bool WriteUByte(uint8);
  6687. bool WriteUInt(uint);
  6688. bool WriteUInt64(uint64);
  6689. bool WriteUShort(uint16);
  6690. bool WriteVLE(uint);
  6691. bool WriteVariant(const Variant&);
  6692. bool WriteVariantMap(const VariantMap&);
  6693. bool WriteVector2(const Vector2&);
  6694. bool WriteVector3(const Vector3&);
  6695. bool WriteVector4(const Vector4&);
  6696. bool WriteVectorBuffer(const VectorBuffer&);
  6697. // Properties:
  6698. /* readonly */
  6699. String category;
  6700. /* readonly */
  6701. uint checksum;
  6702. /* readonly */
  6703. bool eof;
  6704. /* readonly */
  6705. String name;
  6706. /* readonly */
  6707. bool open;
  6708. /* readonly */
  6709. uint position;
  6710. /* readonly */
  6711. int refs;
  6712. /* readonly */
  6713. bool server;
  6714. /* readonly */
  6715. uint size;
  6716. /* readonly */
  6717. StringHash type;
  6718. /* readonly */
  6719. String typeName;
  6720. /* readonly */
  6721. int weakRefs;
  6722. };
  6723. class NavArea
  6724. {
  6725. // Methods:
  6726. void ApplyAttributes();
  6727. void DrawDebugGeometry(DebugRenderer, bool);
  6728. Variant GetAttribute(const String&) const;
  6729. ValueAnimation GetAttributeAnimation(const String&) const;
  6730. float GetAttributeAnimationSpeed(const String&) const;
  6731. float GetAttributeAnimationTime(const String&) const;
  6732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6733. Variant GetAttributeDefault(const String&) const;
  6734. bool GetInterceptNetworkUpdate(const String&) const;
  6735. bool HasSubscribedToEvent(Object, const String&);
  6736. bool HasSubscribedToEvent(const String&);
  6737. bool Load(File, bool = false);
  6738. bool Load(VectorBuffer&, bool = false);
  6739. bool LoadJSON(const JSONValue&, bool = false);
  6740. bool LoadXML(const XMLElement&, bool = false);
  6741. void MarkNetworkUpdate() const;
  6742. void Remove();
  6743. void RemoveAttributeAnimation(const String&);
  6744. void RemoveInstanceDefault();
  6745. void RemoveObjectAnimation();
  6746. void ResetToDefault();
  6747. bool Save(File) const;
  6748. bool Save(VectorBuffer&) const;
  6749. bool SaveJSON(JSONValue&) const;
  6750. bool SaveXML(XMLElement&) const;
  6751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6752. void SetAnimationTime(float);
  6753. bool SetAttribute(const String&, const Variant&);
  6754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6755. void SetAttributeAnimationSpeed(const String&, float);
  6756. void SetAttributeAnimationTime(const String&, float);
  6757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6758. void SetInterceptNetworkUpdate(const String&, bool);
  6759. // Properties:
  6760. bool animationEnabled;
  6761. uint areaID;
  6762. /* readonly */
  6763. Array<Variant> attributeDefaults;
  6764. /* readonly */
  6765. Array<AttributeInfo> attributeInfos;
  6766. Array<Variant> attributes;
  6767. BoundingBox boundingBox;
  6768. /* readonly */
  6769. String category;
  6770. bool enabled;
  6771. /* readonly */
  6772. bool enabledEffective;
  6773. /* readonly */
  6774. uint id;
  6775. /* readonly */
  6776. Node node;
  6777. /* readonly */
  6778. uint numAttributes;
  6779. ObjectAnimation objectAnimation;
  6780. /* readonly */
  6781. int refs;
  6782. bool temporary;
  6783. /* readonly */
  6784. StringHash type;
  6785. /* readonly */
  6786. String typeName;
  6787. /* readonly */
  6788. int weakRefs;
  6789. /* readonly */
  6790. BoundingBox worldBoundingBox;
  6791. };
  6792. class Navigable
  6793. {
  6794. // Methods:
  6795. void ApplyAttributes();
  6796. void DrawDebugGeometry(DebugRenderer, bool);
  6797. Variant GetAttribute(const String&) const;
  6798. ValueAnimation GetAttributeAnimation(const String&) const;
  6799. float GetAttributeAnimationSpeed(const String&) const;
  6800. float GetAttributeAnimationTime(const String&) const;
  6801. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6802. Variant GetAttributeDefault(const String&) const;
  6803. bool GetInterceptNetworkUpdate(const String&) const;
  6804. bool HasSubscribedToEvent(Object, const String&);
  6805. bool HasSubscribedToEvent(const String&);
  6806. bool Load(File, bool = false);
  6807. bool Load(VectorBuffer&, bool = false);
  6808. bool LoadJSON(const JSONValue&, bool = false);
  6809. bool LoadXML(const XMLElement&, bool = false);
  6810. void MarkNetworkUpdate() const;
  6811. void Remove();
  6812. void RemoveAttributeAnimation(const String&);
  6813. void RemoveInstanceDefault();
  6814. void RemoveObjectAnimation();
  6815. void ResetToDefault();
  6816. bool Save(File) const;
  6817. bool Save(VectorBuffer&) const;
  6818. bool SaveJSON(JSONValue&) const;
  6819. bool SaveXML(XMLElement&) const;
  6820. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6821. void SetAnimationTime(float);
  6822. bool SetAttribute(const String&, const Variant&);
  6823. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6824. void SetAttributeAnimationSpeed(const String&, float);
  6825. void SetAttributeAnimationTime(const String&, float);
  6826. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6827. void SetInterceptNetworkUpdate(const String&, bool);
  6828. // Properties:
  6829. bool animationEnabled;
  6830. /* readonly */
  6831. Array<Variant> attributeDefaults;
  6832. /* readonly */
  6833. Array<AttributeInfo> attributeInfos;
  6834. Array<Variant> attributes;
  6835. /* readonly */
  6836. String category;
  6837. bool enabled;
  6838. /* readonly */
  6839. bool enabledEffective;
  6840. /* readonly */
  6841. uint id;
  6842. /* readonly */
  6843. Node node;
  6844. /* readonly */
  6845. uint numAttributes;
  6846. ObjectAnimation objectAnimation;
  6847. bool recursive;
  6848. /* readonly */
  6849. int refs;
  6850. bool temporary;
  6851. /* readonly */
  6852. StringHash type;
  6853. /* readonly */
  6854. String typeName;
  6855. /* readonly */
  6856. int weakRefs;
  6857. };
  6858. class NavigationMesh
  6859. {
  6860. // Methods:
  6861. void ApplyAttributes();
  6862. bool Build();
  6863. bool Build(const BoundingBox&);
  6864. void DrawDebugGeometry(DebugRenderer, bool);
  6865. void DrawDebugGeometry(bool);
  6866. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6867. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6868. float GetAreaCost(uint) const;
  6869. Variant GetAttribute(const String&) const;
  6870. ValueAnimation GetAttributeAnimation(const String&) const;
  6871. float GetAttributeAnimationSpeed(const String&) const;
  6872. float GetAttributeAnimationTime(const String&) const;
  6873. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6874. Variant GetAttributeDefault(const String&) const;
  6875. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6876. bool GetInterceptNetworkUpdate(const String&) const;
  6877. Vector3 GetRandomPoint();
  6878. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6879. bool HasSubscribedToEvent(Object, const String&);
  6880. bool HasSubscribedToEvent(const String&);
  6881. bool Load(File, bool = false);
  6882. bool Load(VectorBuffer&, bool = false);
  6883. bool LoadJSON(const JSONValue&, bool = false);
  6884. bool LoadXML(const XMLElement&, bool = false);
  6885. void MarkNetworkUpdate() const;
  6886. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6887. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6888. void Remove();
  6889. void RemoveAttributeAnimation(const String&);
  6890. void RemoveInstanceDefault();
  6891. void RemoveObjectAnimation();
  6892. void ResetToDefault();
  6893. bool Save(File) const;
  6894. bool Save(VectorBuffer&) const;
  6895. bool SaveJSON(JSONValue&) const;
  6896. bool SaveXML(XMLElement&) const;
  6897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6898. void SetAnimationTime(float);
  6899. void SetAreaCost(uint, float);
  6900. bool SetAttribute(const String&, const Variant&);
  6901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6902. void SetAttributeAnimationSpeed(const String&, float);
  6903. void SetAttributeAnimationTime(const String&, float);
  6904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6905. void SetInterceptNetworkUpdate(const String&, bool);
  6906. // Properties:
  6907. float agentHeight;
  6908. float agentMaxClimb;
  6909. float agentMaxSlope;
  6910. float agentRadius;
  6911. bool animationEnabled;
  6912. /* readonly */
  6913. Array<Variant> attributeDefaults;
  6914. /* readonly */
  6915. Array<AttributeInfo> attributeInfos;
  6916. Array<Variant> attributes;
  6917. /* readonly */
  6918. BoundingBox boundingBox;
  6919. /* readonly */
  6920. String category;
  6921. float cellHeight;
  6922. float cellSize;
  6923. float detailSampleDistance;
  6924. float detailSampleMaxError;
  6925. bool drawNavAreas;
  6926. bool drawOffMeshConnections;
  6927. float edgeMaxError;
  6928. float edgeMaxLength;
  6929. bool enabled;
  6930. /* readonly */
  6931. bool enabledEffective;
  6932. /* readonly */
  6933. uint id;
  6934. /* readonly */
  6935. bool initialized;
  6936. /* readonly */
  6937. Node node;
  6938. /* readonly */
  6939. uint numAttributes;
  6940. /* readonly */
  6941. IntVector2 numTiles;
  6942. ObjectAnimation objectAnimation;
  6943. Vector3 padding;
  6944. NavmeshPartitionType partitionType;
  6945. /* readonly */
  6946. int refs;
  6947. float regionMergeSize;
  6948. float regionMinSize;
  6949. bool temporary;
  6950. int tileSize;
  6951. /* readonly */
  6952. StringHash type;
  6953. /* readonly */
  6954. String typeName;
  6955. /* readonly */
  6956. int weakRefs;
  6957. /* readonly */
  6958. BoundingBox worldBoundingBox;
  6959. };
  6960. class Network
  6961. {
  6962. // Methods:
  6963. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6964. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6965. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6966. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6967. bool CheckRemoteEvent(const String&) const;
  6968. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6969. void Disconnect(int = 0);
  6970. bool HasSubscribedToEvent(Object, const String&);
  6971. bool HasSubscribedToEvent(const String&);
  6972. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6973. void RegisterRemoteEvent(const String&) const;
  6974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6975. void SendPackageToClients(Scene, PackageFile);
  6976. bool StartServer(uint16);
  6977. void StopServer();
  6978. void UnregisterAllRemoteEvents();
  6979. void UnregisterRemoteEvent(const String&) const;
  6980. // Properties:
  6981. /* readonly */
  6982. String category;
  6983. /* readonly */
  6984. Array<Connection> clientConnections;
  6985. String packageCacheDir;
  6986. /* readonly */
  6987. int refs;
  6988. /* readonly */
  6989. Connection serverConnection;
  6990. /* readonly */
  6991. bool serverRunning;
  6992. int simulatedLatency;
  6993. float simulatedPacketLoss;
  6994. /* readonly */
  6995. StringHash type;
  6996. /* readonly */
  6997. String typeName;
  6998. int updateFps;
  6999. /* readonly */
  7000. int weakRefs;
  7001. };
  7002. class NetworkPriority
  7003. {
  7004. // Methods:
  7005. void ApplyAttributes();
  7006. void DrawDebugGeometry(DebugRenderer, bool);
  7007. Variant GetAttribute(const String&) const;
  7008. ValueAnimation GetAttributeAnimation(const String&) const;
  7009. float GetAttributeAnimationSpeed(const String&) const;
  7010. float GetAttributeAnimationTime(const String&) const;
  7011. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7012. Variant GetAttributeDefault(const String&) const;
  7013. bool GetInterceptNetworkUpdate(const String&) const;
  7014. bool HasSubscribedToEvent(Object, const String&);
  7015. bool HasSubscribedToEvent(const String&);
  7016. bool Load(File, bool = false);
  7017. bool Load(VectorBuffer&, bool = false);
  7018. bool LoadJSON(const JSONValue&, bool = false);
  7019. bool LoadXML(const XMLElement&, bool = false);
  7020. void MarkNetworkUpdate() const;
  7021. void Remove();
  7022. void RemoveAttributeAnimation(const String&);
  7023. void RemoveInstanceDefault();
  7024. void RemoveObjectAnimation();
  7025. void ResetToDefault();
  7026. bool Save(File) const;
  7027. bool Save(VectorBuffer&) const;
  7028. bool SaveJSON(JSONValue&) const;
  7029. bool SaveXML(XMLElement&) const;
  7030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7031. void SetAnimationTime(float);
  7032. bool SetAttribute(const String&, const Variant&);
  7033. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7034. void SetAttributeAnimationSpeed(const String&, float);
  7035. void SetAttributeAnimationTime(const String&, float);
  7036. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7037. void SetInterceptNetworkUpdate(const String&, bool);
  7038. // Properties:
  7039. bool alwaysUpdateOwner;
  7040. bool animationEnabled;
  7041. /* readonly */
  7042. Array<Variant> attributeDefaults;
  7043. /* readonly */
  7044. Array<AttributeInfo> attributeInfos;
  7045. Array<Variant> attributes;
  7046. float basePriority;
  7047. /* readonly */
  7048. String category;
  7049. float distanceFactor;
  7050. bool enabled;
  7051. /* readonly */
  7052. bool enabledEffective;
  7053. /* readonly */
  7054. uint id;
  7055. float minPriority;
  7056. /* readonly */
  7057. Node node;
  7058. /* readonly */
  7059. uint numAttributes;
  7060. ObjectAnimation objectAnimation;
  7061. /* readonly */
  7062. int refs;
  7063. bool temporary;
  7064. /* readonly */
  7065. StringHash type;
  7066. /* readonly */
  7067. String typeName;
  7068. /* readonly */
  7069. int weakRefs;
  7070. };
  7071. class Node
  7072. {
  7073. // Methods:
  7074. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7075. void AddTag(const String&);
  7076. void AddTags(const String&, int8 = ';');
  7077. void ApplyAttributes();
  7078. Node Clone(CreateMode = REPLICATED);
  7079. Component CloneComponent(Component, CreateMode, uint = 0);
  7080. Component CloneComponent(Component, uint = 0);
  7081. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7082. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7083. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7084. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7085. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7086. Variant GetAttribute(const String&) const;
  7087. ValueAnimation GetAttributeAnimation(const String&) const;
  7088. float GetAttributeAnimationSpeed(const String&) const;
  7089. float GetAttributeAnimationTime(const String&) const;
  7090. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7091. Variant GetAttributeDefault(const String&) const;
  7092. Node GetChild(const String&, bool = false) const;
  7093. Array<Node> GetChildren(bool = false) const;
  7094. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7095. Array<Node> GetChildrenWithScript(bool = false) const;
  7096. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7097. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7098. Component GetComponent(const String&, bool = false) const;
  7099. Array<Component> GetComponents() const;
  7100. Array<Component> GetComponents(const String&, bool = false) const;
  7101. bool GetInterceptNetworkUpdate(const String&) const;
  7102. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7103. Component GetParentComponent(const String&, bool = false) const;
  7104. ScriptObject GetScriptObject() const;
  7105. ScriptObject GetScriptObject(const String&) const;
  7106. bool HasComponent(const String&) const;
  7107. bool HasSubscribedToEvent(Object, const String&);
  7108. bool HasSubscribedToEvent(const String&);
  7109. bool HasTag(const String&);
  7110. bool Load(File, bool = false);
  7111. bool Load(VectorBuffer&, bool = false);
  7112. bool LoadJSON(const JSONValue&, bool = false);
  7113. bool LoadXML(const XMLElement&, bool = false);
  7114. Vector3 LocalToWorld(const Vector3&) const;
  7115. Vector3 LocalToWorld(const Vector4&) const;
  7116. Vector2 LocalToWorld2D(const Vector2&) const;
  7117. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7118. void MarkDirty();
  7119. void MarkNetworkUpdate() const;
  7120. void Pitch(float, TransformSpace = TS_LOCAL);
  7121. void Remove();
  7122. void RemoveAllChildren();
  7123. void RemoveAllComponents();
  7124. void RemoveAllTags();
  7125. void RemoveAttributeAnimation(const String&);
  7126. void RemoveChild(Node);
  7127. void RemoveChildren(bool, bool, bool);
  7128. void RemoveComponent(Component);
  7129. void RemoveComponent(const String&);
  7130. void RemoveComponents(bool, bool);
  7131. void RemoveComponents(const String&);
  7132. void RemoveInstanceDefault();
  7133. void RemoveObjectAnimation();
  7134. bool RemoveTag(const String&);
  7135. void ReorderComponent(Component, uint);
  7136. void ResetDeepEnabled();
  7137. void ResetToDefault();
  7138. void Roll(float, TransformSpace = TS_LOCAL);
  7139. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7140. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7141. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7142. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7143. bool Save(File) const;
  7144. bool Save(VectorBuffer&) const;
  7145. bool SaveJSON(File);
  7146. bool SaveJSON(JSONValue&) const;
  7147. bool SaveJSON(VectorBuffer&);
  7148. bool SaveXML(File, const String& = "\t");
  7149. bool SaveXML(VectorBuffer&, const String& = "\t");
  7150. bool SaveXML(XMLElement&) const;
  7151. void Scale(const Vector3&);
  7152. void Scale(float);
  7153. void Scale2D(const Vector2&);
  7154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7155. void SetAnimationTime(float);
  7156. bool SetAttribute(const String&, const Variant&);
  7157. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7158. void SetAttributeAnimationSpeed(const String&, float);
  7159. void SetAttributeAnimationTime(const String&, float);
  7160. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7161. void SetDeepEnabled(bool);
  7162. void SetEnabledRecursive(bool);
  7163. void SetInterceptNetworkUpdate(const String&, bool);
  7164. void SetPosition2D(float, float);
  7165. void SetScale(float);
  7166. void SetScale2D(float, float);
  7167. void SetTransform(const Matrix3x4&);
  7168. void SetTransform(const Vector3&, const Quaternion&);
  7169. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7170. void SetTransform(const Vector3&, const Quaternion&, float);
  7171. void SetTransform2D(const Vector2&, float);
  7172. void SetTransform2D(const Vector2&, float, const Vector2&);
  7173. void SetTransform2D(const Vector2&, float, float);
  7174. void SetWorldTransform(const Vector3&, const Quaternion&);
  7175. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7176. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7177. void SetWorldTransform2D(const Vector2&, float);
  7178. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7179. void SetWorldTransform2D(const Vector2&, float, float);
  7180. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7181. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7182. Vector3 WorldToLocal(const Vector3&) const;
  7183. Vector3 WorldToLocal(const Vector4&) const;
  7184. Vector2 WorldToLocal2D(const Vector2&) const;
  7185. void Yaw(float, TransformSpace = TS_LOCAL);
  7186. // Properties:
  7187. bool animationEnabled;
  7188. /* readonly */
  7189. Array<Variant> attributeDefaults;
  7190. /* readonly */
  7191. Array<AttributeInfo> attributeInfos;
  7192. Array<Variant> attributes;
  7193. /* readonly */
  7194. String category;
  7195. /* readonly */
  7196. Array<Node> children;
  7197. /* readonly */
  7198. Array<Component> components;
  7199. Vector3 direction;
  7200. bool enabled;
  7201. /* readonly */
  7202. bool enabledSelf;
  7203. uint id;
  7204. String name;
  7205. /* readonly */
  7206. uint numAllChildren;
  7207. /* readonly */
  7208. uint numAttributes;
  7209. /* readonly */
  7210. uint numChildren;
  7211. /* readonly */
  7212. uint numComponents;
  7213. ObjectAnimation objectAnimation;
  7214. Connection owner;
  7215. Node parent;
  7216. Vector3 position;
  7217. Vector2 position2D;
  7218. /* readonly */
  7219. int refs;
  7220. /* readonly */
  7221. Vector3 right;
  7222. Quaternion rotation;
  7223. float rotation2D;
  7224. Vector3 scale;
  7225. Vector2 scale2D;
  7226. /* readonly */
  7227. Scene scene;
  7228. /* readonly */
  7229. ScriptObject scriptObject;
  7230. /* readonly */
  7231. Array<String> tags;
  7232. bool temporary;
  7233. /* readonly */
  7234. Matrix3x4 transform;
  7235. /* readonly */
  7236. StringHash type;
  7237. /* readonly */
  7238. String typeName;
  7239. /* readonly */
  7240. Vector3 up;
  7241. /* readonly */
  7242. VariantMap vars;
  7243. /* readonly */
  7244. int weakRefs;
  7245. Vector3 worldDirection;
  7246. Vector3 worldPosition;
  7247. Vector2 worldPosition2D;
  7248. /* readonly */
  7249. Vector3 worldRight;
  7250. Quaternion worldRotation;
  7251. float worldRotation2D;
  7252. Vector3 worldScale;
  7253. Vector2 worldScale2D;
  7254. /* readonly */
  7255. Matrix3x4 worldTransform;
  7256. /* readonly */
  7257. Vector3 worldUp;
  7258. };
  7259. class Object
  7260. {
  7261. // Methods:
  7262. bool HasSubscribedToEvent(Object, const String&);
  7263. bool HasSubscribedToEvent(const String&);
  7264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7265. // Properties:
  7266. /* readonly */
  7267. String category;
  7268. /* readonly */
  7269. int refs;
  7270. /* readonly */
  7271. StringHash type;
  7272. /* readonly */
  7273. String typeName;
  7274. /* readonly */
  7275. int weakRefs;
  7276. };
  7277. class ObjectAnimation
  7278. {
  7279. // Methods:
  7280. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7281. ValueAnimation GetAttributeAnimation(const String&) const;
  7282. float GetAttributeAnimationSpeed(const String&) const;
  7283. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7284. bool HasSubscribedToEvent(Object, const String&);
  7285. bool HasSubscribedToEvent(const String&);
  7286. bool Load(File);
  7287. bool Load(VectorBuffer&);
  7288. bool Load(const String&);
  7289. void RemoveAttributeAnimation(ValueAnimation);
  7290. void RemoveAttributeAnimation(const String&);
  7291. bool Save(File) const;
  7292. bool Save(VectorBuffer&) const;
  7293. bool Save(const String&) const;
  7294. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7295. // Properties:
  7296. /* readonly */
  7297. Array<Variant> attributeAnimations;
  7298. /* readonly */
  7299. String category;
  7300. /* readonly */
  7301. uint memoryUse;
  7302. String name;
  7303. /* readonly */
  7304. int refs;
  7305. /* readonly */
  7306. Array<Variant> speeds;
  7307. /* readonly */
  7308. StringHash type;
  7309. /* readonly */
  7310. String typeName;
  7311. /* readonly */
  7312. uint useTimer;
  7313. /* readonly */
  7314. int weakRefs;
  7315. /* readonly */
  7316. Array<Variant> wrapModes;
  7317. };
  7318. class Obstacle
  7319. {
  7320. // Methods:
  7321. void ApplyAttributes();
  7322. void DrawDebugGeometry(DebugRenderer, bool);
  7323. void DrawDebugGeometry(bool);
  7324. Variant GetAttribute(const String&) const;
  7325. ValueAnimation GetAttributeAnimation(const String&) const;
  7326. float GetAttributeAnimationSpeed(const String&) const;
  7327. float GetAttributeAnimationTime(const String&) const;
  7328. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7329. Variant GetAttributeDefault(const String&) const;
  7330. bool GetInterceptNetworkUpdate(const String&) const;
  7331. bool HasSubscribedToEvent(Object, const String&);
  7332. bool HasSubscribedToEvent(const String&);
  7333. bool Load(File, bool = false);
  7334. bool Load(VectorBuffer&, bool = false);
  7335. bool LoadJSON(const JSONValue&, bool = false);
  7336. bool LoadXML(const XMLElement&, bool = false);
  7337. void MarkNetworkUpdate() const;
  7338. void Remove();
  7339. void RemoveAttributeAnimation(const String&);
  7340. void RemoveInstanceDefault();
  7341. void RemoveObjectAnimation();
  7342. void ResetToDefault();
  7343. bool Save(File) const;
  7344. bool Save(VectorBuffer&) const;
  7345. bool SaveJSON(JSONValue&) const;
  7346. bool SaveXML(XMLElement&) const;
  7347. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7348. void SetAnimationTime(float);
  7349. bool SetAttribute(const String&, const Variant&);
  7350. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7351. void SetAttributeAnimationSpeed(const String&, float);
  7352. void SetAttributeAnimationTime(const String&, float);
  7353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7354. void SetInterceptNetworkUpdate(const String&, bool);
  7355. // Properties:
  7356. bool animationEnabled;
  7357. /* readonly */
  7358. Array<Variant> attributeDefaults;
  7359. /* readonly */
  7360. Array<AttributeInfo> attributeInfos;
  7361. Array<Variant> attributes;
  7362. /* readonly */
  7363. String category;
  7364. bool enabled;
  7365. /* readonly */
  7366. bool enabledEffective;
  7367. float height;
  7368. /* readonly */
  7369. uint id;
  7370. /* readonly */
  7371. Node node;
  7372. /* readonly */
  7373. uint numAttributes;
  7374. ObjectAnimation objectAnimation;
  7375. /* readonly */
  7376. uint obstacleId;
  7377. float radius;
  7378. /* readonly */
  7379. int refs;
  7380. bool temporary;
  7381. /* readonly */
  7382. StringHash type;
  7383. /* readonly */
  7384. String typeName;
  7385. /* readonly */
  7386. int weakRefs;
  7387. };
  7388. class Octree
  7389. {
  7390. // Methods:
  7391. void AddManualDrawable(Drawable);
  7392. void ApplyAttributes();
  7393. void DrawDebugGeometry(DebugRenderer, bool);
  7394. void DrawDebugGeometry(bool) const;
  7395. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7396. Variant GetAttribute(const String&) const;
  7397. ValueAnimation GetAttributeAnimation(const String&) const;
  7398. float GetAttributeAnimationSpeed(const String&) const;
  7399. float GetAttributeAnimationTime(const String&) const;
  7400. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7401. Variant GetAttributeDefault(const String&) const;
  7402. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7403. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7404. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7405. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7406. bool GetInterceptNetworkUpdate(const String&) const;
  7407. bool HasSubscribedToEvent(Object, const String&);
  7408. bool HasSubscribedToEvent(const String&);
  7409. bool Load(File, bool = false);
  7410. bool Load(VectorBuffer&, bool = false);
  7411. bool LoadJSON(const JSONValue&, bool = false);
  7412. bool LoadXML(const XMLElement&, bool = false);
  7413. void MarkNetworkUpdate() const;
  7414. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7415. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7416. void Remove();
  7417. void RemoveAttributeAnimation(const String&);
  7418. void RemoveInstanceDefault();
  7419. void RemoveManualDrawable(Drawable);
  7420. void RemoveObjectAnimation();
  7421. void ResetToDefault();
  7422. bool Save(File) const;
  7423. bool Save(VectorBuffer&) const;
  7424. bool SaveJSON(JSONValue&) const;
  7425. bool SaveXML(XMLElement&) const;
  7426. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7427. void SetAnimationTime(float);
  7428. bool SetAttribute(const String&, const Variant&);
  7429. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7430. void SetAttributeAnimationSpeed(const String&, float);
  7431. void SetAttributeAnimationTime(const String&, float);
  7432. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7433. void SetInterceptNetworkUpdate(const String&, bool);
  7434. void SetSize(const BoundingBox&, uint);
  7435. // Properties:
  7436. bool animationEnabled;
  7437. /* readonly */
  7438. Array<Variant> attributeDefaults;
  7439. /* readonly */
  7440. Array<AttributeInfo> attributeInfos;
  7441. Array<Variant> attributes;
  7442. /* readonly */
  7443. String category;
  7444. bool enabled;
  7445. /* readonly */
  7446. bool enabledEffective;
  7447. /* readonly */
  7448. uint id;
  7449. /* readonly */
  7450. Node node;
  7451. /* readonly */
  7452. uint numAttributes;
  7453. /* readonly */
  7454. uint numLevels;
  7455. ObjectAnimation objectAnimation;
  7456. /* readonly */
  7457. int refs;
  7458. bool temporary;
  7459. /* readonly */
  7460. StringHash type;
  7461. /* readonly */
  7462. String typeName;
  7463. /* readonly */
  7464. int weakRefs;
  7465. /* readonly */
  7466. BoundingBox worldBoundingBox;
  7467. };
  7468. class OffMeshConnection
  7469. {
  7470. // Methods:
  7471. void ApplyAttributes();
  7472. void DrawDebugGeometry(DebugRenderer, bool);
  7473. Variant GetAttribute(const String&) const;
  7474. ValueAnimation GetAttributeAnimation(const String&) const;
  7475. float GetAttributeAnimationSpeed(const String&) const;
  7476. float GetAttributeAnimationTime(const String&) const;
  7477. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7478. Variant GetAttributeDefault(const String&) const;
  7479. bool GetInterceptNetworkUpdate(const String&) const;
  7480. bool HasSubscribedToEvent(Object, const String&);
  7481. bool HasSubscribedToEvent(const String&);
  7482. bool Load(File, bool = false);
  7483. bool Load(VectorBuffer&, bool = false);
  7484. bool LoadJSON(const JSONValue&, bool = false);
  7485. bool LoadXML(const XMLElement&, bool = false);
  7486. void MarkNetworkUpdate() const;
  7487. void Remove();
  7488. void RemoveAttributeAnimation(const String&);
  7489. void RemoveInstanceDefault();
  7490. void RemoveObjectAnimation();
  7491. void ResetToDefault();
  7492. bool Save(File) const;
  7493. bool Save(VectorBuffer&) const;
  7494. bool SaveJSON(JSONValue&) const;
  7495. bool SaveXML(XMLElement&) const;
  7496. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7497. void SetAnimationTime(float);
  7498. bool SetAttribute(const String&, const Variant&);
  7499. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7500. void SetAttributeAnimationSpeed(const String&, float);
  7501. void SetAttributeAnimationTime(const String&, float);
  7502. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7503. void SetInterceptNetworkUpdate(const String&, bool);
  7504. // Properties:
  7505. bool animationEnabled;
  7506. uint areaID;
  7507. /* readonly */
  7508. Array<Variant> attributeDefaults;
  7509. /* readonly */
  7510. Array<AttributeInfo> attributeInfos;
  7511. Array<Variant> attributes;
  7512. bool bidirectional;
  7513. /* readonly */
  7514. String category;
  7515. bool enabled;
  7516. /* readonly */
  7517. bool enabledEffective;
  7518. Node endPoint;
  7519. /* readonly */
  7520. uint id;
  7521. uint mask;
  7522. /* readonly */
  7523. Node node;
  7524. /* readonly */
  7525. uint numAttributes;
  7526. ObjectAnimation objectAnimation;
  7527. float radius;
  7528. /* readonly */
  7529. int refs;
  7530. bool temporary;
  7531. /* readonly */
  7532. StringHash type;
  7533. /* readonly */
  7534. String typeName;
  7535. /* readonly */
  7536. int weakRefs;
  7537. };
  7538. class PackageFile
  7539. {
  7540. // Methods:
  7541. bool Exists(const String&) const;
  7542. Array<String> GetEntryNames() const;
  7543. bool HasSubscribedToEvent(Object, const String&);
  7544. bool HasSubscribedToEvent(const String&);
  7545. bool Open(const String&, uint = 0) const;
  7546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7547. bool compressed() const;
  7548. // Properties:
  7549. /* readonly */
  7550. String category;
  7551. /* readonly */
  7552. uint checksum;
  7553. /* readonly */
  7554. String name;
  7555. /* readonly */
  7556. uint numFiles;
  7557. /* readonly */
  7558. int refs;
  7559. /* readonly */
  7560. uint totalDataSize;
  7561. /* readonly */
  7562. uint totalSize;
  7563. /* readonly */
  7564. StringHash type;
  7565. /* readonly */
  7566. String typeName;
  7567. /* readonly */
  7568. int weakRefs;
  7569. };
  7570. class ParticleEffect
  7571. {
  7572. // Methods:
  7573. void AddColorFrame(ColorFrame);
  7574. void AddColorTime(Color&, float);
  7575. void AddTextureFrame(TextureFrame);
  7576. void AddTextureTime(Rect&, float);
  7577. ParticleEffect Clone(const String& = String ( )) const;
  7578. ColorFrame GetColorFrame(uint) const;
  7579. TextureFrame GetTextureFrame(uint) const;
  7580. bool HasSubscribedToEvent(Object, const String&);
  7581. bool HasSubscribedToEvent(const String&);
  7582. bool Load(File);
  7583. bool Load(VectorBuffer&);
  7584. bool Load(const String&);
  7585. bool Load(const XMLElement&);
  7586. void RemoveColorFrame(uint);
  7587. void RemoveTextureFrame(uint);
  7588. bool Save(File) const;
  7589. bool Save(VectorBuffer&) const;
  7590. bool Save(XMLElement&) const;
  7591. bool Save(const String&) const;
  7592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7593. void SetColorFrame(uint, ColorFrame);
  7594. void SetTextureFrame(uint, TextureFrame);
  7595. void SortColorFrames();
  7596. void SortTextureFrames();
  7597. // Properties:
  7598. float activeTime;
  7599. float animationLodBias;
  7600. /* readonly */
  7601. String category;
  7602. Vector3 constantForce;
  7603. float dampingForce;
  7604. Vector3 emitterSize;
  7605. EmitterType emitterType;
  7606. FaceCameraMode faceCameraMode;
  7607. bool fixedScreenSize;
  7608. float inactiveTime;
  7609. Material material;
  7610. Vector3 maxDirection;
  7611. float maxEmissionRate;
  7612. Vector2 maxParticleSize;
  7613. float maxRotation;
  7614. float maxRotationSpeed;
  7615. float maxTimeToLive;
  7616. float maxVelocity;
  7617. /* readonly */
  7618. uint memoryUse;
  7619. Vector3 minDirection;
  7620. float minEmissionRate;
  7621. Vector2 minParticleSize;
  7622. float minRotation;
  7623. float minRotationSpeed;
  7624. float minTimeToLive;
  7625. float minVelocity;
  7626. String name;
  7627. uint numColorFrames;
  7628. uint numParticles;
  7629. uint numTextureFrames;
  7630. /* readonly */
  7631. int refs;
  7632. bool relative;
  7633. bool scaled;
  7634. float sizeAdd;
  7635. float sizeMul;
  7636. bool sorted;
  7637. /* readonly */
  7638. StringHash type;
  7639. /* readonly */
  7640. String typeName;
  7641. bool updateInvisible;
  7642. /* readonly */
  7643. uint useTimer;
  7644. /* readonly */
  7645. int weakRefs;
  7646. };
  7647. class ParticleEffect2D
  7648. {
  7649. // Methods:
  7650. ParticleEffect2D Clone(const String& = String ( )) const;
  7651. bool HasSubscribedToEvent(Object, const String&);
  7652. bool HasSubscribedToEvent(const String&);
  7653. bool Load(File);
  7654. bool Load(VectorBuffer&);
  7655. bool Load(const String&);
  7656. bool Save(File) const;
  7657. bool Save(VectorBuffer&) const;
  7658. bool Save(const String&) const;
  7659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7660. // Properties:
  7661. /* readonly */
  7662. String category;
  7663. /* readonly */
  7664. uint memoryUse;
  7665. String name;
  7666. /* readonly */
  7667. int refs;
  7668. /* readonly */
  7669. StringHash type;
  7670. /* readonly */
  7671. String typeName;
  7672. /* readonly */
  7673. uint useTimer;
  7674. /* readonly */
  7675. int weakRefs;
  7676. };
  7677. class ParticleEmitter
  7678. {
  7679. // Methods:
  7680. void ApplyAttributes();
  7681. void ApplyEffect();
  7682. void Commit();
  7683. void DrawDebugGeometry(DebugRenderer, bool);
  7684. Variant GetAttribute(const String&) const;
  7685. ValueAnimation GetAttributeAnimation(const String&) const;
  7686. float GetAttributeAnimationSpeed(const String&) const;
  7687. float GetAttributeAnimationTime(const String&) const;
  7688. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7689. Variant GetAttributeDefault(const String&) const;
  7690. bool GetInterceptNetworkUpdate(const String&) const;
  7691. bool HasSubscribedToEvent(Object, const String&);
  7692. bool HasSubscribedToEvent(const String&);
  7693. bool IsInView(Camera) const;
  7694. bool Load(File, bool = false);
  7695. bool Load(VectorBuffer&, bool = false);
  7696. bool LoadJSON(const JSONValue&, bool = false);
  7697. bool LoadXML(const XMLElement&, bool = false);
  7698. void MarkNetworkUpdate() const;
  7699. void Remove();
  7700. void RemoveAllParticles();
  7701. void RemoveAttributeAnimation(const String&);
  7702. void RemoveInstanceDefault();
  7703. void RemoveObjectAnimation();
  7704. void Reset();
  7705. void ResetEmissionTimer();
  7706. void ResetToDefault();
  7707. bool Save(File) const;
  7708. bool Save(VectorBuffer&) const;
  7709. bool SaveJSON(JSONValue&) const;
  7710. bool SaveXML(XMLElement&) const;
  7711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7712. void SetAnimationTime(float);
  7713. bool SetAttribute(const String&, const Variant&);
  7714. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7715. void SetAttributeAnimationSpeed(const String&, float);
  7716. void SetAttributeAnimationTime(const String&, float);
  7717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7718. void SetInterceptNetworkUpdate(const String&, bool);
  7719. // Properties:
  7720. bool animationEnabled;
  7721. float animationLodBias;
  7722. /* readonly */
  7723. Array<Variant> attributeDefaults;
  7724. /* readonly */
  7725. Array<AttributeInfo> attributeInfos;
  7726. Array<Variant> attributes;
  7727. AutoRemoveMode autoRemoveMode;
  7728. /* readonly */
  7729. Array<Billboard> billboards;
  7730. /* readonly */
  7731. BoundingBox boundingBox;
  7732. bool castShadows;
  7733. /* readonly */
  7734. String category;
  7735. float drawDistance;
  7736. ParticleEffect effect;
  7737. bool emitting;
  7738. bool enabled;
  7739. /* readonly */
  7740. bool enabledEffective;
  7741. FaceCameraMode faceCameraMode;
  7742. bool fixedScreenSize;
  7743. /* readonly */
  7744. uint id;
  7745. /* readonly */
  7746. bool inView;
  7747. uint lightMask;
  7748. float lodBias;
  7749. Material material;
  7750. uint maxLights;
  7751. /* readonly */
  7752. Node node;
  7753. /* readonly */
  7754. uint numAttributes;
  7755. uint numBillboards;
  7756. uint numParticles;
  7757. ObjectAnimation objectAnimation;
  7758. bool occludee;
  7759. bool occluder;
  7760. /* readonly */
  7761. int refs;
  7762. bool relative;
  7763. bool scaled;
  7764. bool serializeParticles;
  7765. float shadowDistance;
  7766. uint shadowMask;
  7767. bool sorted;
  7768. bool temporary;
  7769. /* readonly */
  7770. StringHash type;
  7771. /* readonly */
  7772. String typeName;
  7773. uint viewMask;
  7774. /* readonly */
  7775. int weakRefs;
  7776. /* readonly */
  7777. BoundingBox worldBoundingBox;
  7778. /* readonly */
  7779. Zone zone;
  7780. uint zoneMask;
  7781. };
  7782. class ParticleEmitter2D
  7783. {
  7784. // Methods:
  7785. void ApplyAttributes();
  7786. void DrawDebugGeometry(DebugRenderer, bool);
  7787. Variant GetAttribute(const String&) const;
  7788. ValueAnimation GetAttributeAnimation(const String&) const;
  7789. float GetAttributeAnimationSpeed(const String&) const;
  7790. float GetAttributeAnimationTime(const String&) const;
  7791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7792. Variant GetAttributeDefault(const String&) const;
  7793. bool GetInterceptNetworkUpdate(const String&) const;
  7794. bool HasSubscribedToEvent(Object, const String&);
  7795. bool HasSubscribedToEvent(const String&);
  7796. bool IsInView(Camera) const;
  7797. bool Load(File, bool = false);
  7798. bool Load(VectorBuffer&, bool = false);
  7799. bool LoadJSON(const JSONValue&, bool = false);
  7800. bool LoadXML(const XMLElement&, bool = false);
  7801. void MarkNetworkUpdate() const;
  7802. void Remove();
  7803. void RemoveAttributeAnimation(const String&);
  7804. void RemoveInstanceDefault();
  7805. void RemoveObjectAnimation();
  7806. void ResetToDefault();
  7807. bool Save(File) const;
  7808. bool Save(VectorBuffer&) const;
  7809. bool SaveJSON(JSONValue&) const;
  7810. bool SaveXML(XMLElement&) const;
  7811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7812. void SetAnimationTime(float);
  7813. bool SetAttribute(const String&, const Variant&);
  7814. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7815. void SetAttributeAnimationSpeed(const String&, float);
  7816. void SetAttributeAnimationTime(const String&, float);
  7817. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7818. void SetInterceptNetworkUpdate(const String&, bool);
  7819. // Properties:
  7820. bool animationEnabled;
  7821. /* readonly */
  7822. Array<Variant> attributeDefaults;
  7823. /* readonly */
  7824. Array<AttributeInfo> attributeInfos;
  7825. Array<Variant> attributes;
  7826. BlendMode blendMode;
  7827. /* readonly */
  7828. BoundingBox boundingBox;
  7829. bool castShadows;
  7830. /* readonly */
  7831. String category;
  7832. float drawDistance;
  7833. ParticleEffect2D effect;
  7834. bool enabled;
  7835. /* readonly */
  7836. bool enabledEffective;
  7837. /* readonly */
  7838. uint id;
  7839. /* readonly */
  7840. bool inView;
  7841. int layer;
  7842. uint lightMask;
  7843. float lodBias;
  7844. uint maxLights;
  7845. /* readonly */
  7846. Node node;
  7847. /* readonly */
  7848. uint numAttributes;
  7849. ObjectAnimation objectAnimation;
  7850. bool occludee;
  7851. bool occluder;
  7852. int orderInLayer;
  7853. /* readonly */
  7854. int refs;
  7855. float shadowDistance;
  7856. uint shadowMask;
  7857. Sprite2D sprite;
  7858. bool temporary;
  7859. /* readonly */
  7860. StringHash type;
  7861. /* readonly */
  7862. String typeName;
  7863. uint viewMask;
  7864. /* readonly */
  7865. int weakRefs;
  7866. /* readonly */
  7867. BoundingBox worldBoundingBox;
  7868. uint zoneMask;
  7869. };
  7870. class Pass
  7871. {
  7872. // Properties:
  7873. bool alphaToCoverage;
  7874. BlendMode blendMode;
  7875. CullMode cullMode;
  7876. CompareMode depthTestMode;
  7877. bool depthWrite;
  7878. bool desktop;
  7879. PassLightingMode lightingMode;
  7880. String pixelShader;
  7881. String pixelShaderDefineExcludes;
  7882. String pixelShaderDefines;
  7883. /* readonly */
  7884. int refs;
  7885. String vertexShader;
  7886. String vertexShaderDefineExcludes;
  7887. String vertexShaderDefines;
  7888. /* readonly */
  7889. int weakRefs;
  7890. };
  7891. class PhysicsRaycastResult
  7892. {
  7893. // Properties:
  7894. /* readonly */
  7895. RigidBody body;
  7896. float distance;
  7897. float hitFraction;
  7898. Vector3 normal;
  7899. Vector3 position;
  7900. };
  7901. class PhysicsRaycastResult2D
  7902. {
  7903. // Properties:
  7904. /* readonly */
  7905. RigidBody2D body;
  7906. float distance;
  7907. Vector2 normal;
  7908. Vector2 position;
  7909. };
  7910. class PhysicsWorld
  7911. {
  7912. // Methods:
  7913. void ApplyAttributes();
  7914. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7915. void DrawDebugGeometry(DebugRenderer, bool);
  7916. void DrawDebugGeometry(bool);
  7917. Variant GetAttribute(const String&) const;
  7918. ValueAnimation GetAttributeAnimation(const String&) const;
  7919. float GetAttributeAnimationSpeed(const String&) const;
  7920. float GetAttributeAnimationTime(const String&) const;
  7921. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7922. Variant GetAttributeDefault(const String&) const;
  7923. Array<RigidBody> GetCollidingBodies(RigidBody);
  7924. bool GetInterceptNetworkUpdate(const String&) const;
  7925. Array<RigidBody> GetRigidBodies(RigidBody);
  7926. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7927. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7928. bool HasSubscribedToEvent(Object, const String&);
  7929. bool HasSubscribedToEvent(const String&);
  7930. bool Load(File, bool = false);
  7931. bool Load(VectorBuffer&, bool = false);
  7932. bool LoadJSON(const JSONValue&, bool = false);
  7933. bool LoadXML(const XMLElement&, bool = false);
  7934. void MarkNetworkUpdate() const;
  7935. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7936. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7937. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7938. void Remove();
  7939. void RemoveAttributeAnimation(const String&);
  7940. void RemoveCachedGeometry(Model);
  7941. void RemoveInstanceDefault();
  7942. void RemoveObjectAnimation();
  7943. void ResetToDefault();
  7944. bool Save(File) const;
  7945. bool Save(VectorBuffer&) const;
  7946. bool SaveJSON(JSONValue&) const;
  7947. bool SaveXML(XMLElement&) const;
  7948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7949. void SetAnimationTime(float);
  7950. bool SetAttribute(const String&, const Variant&);
  7951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7952. void SetAttributeAnimationSpeed(const String&, float);
  7953. void SetAttributeAnimationTime(const String&, float);
  7954. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7955. void SetInterceptNetworkUpdate(const String&, bool);
  7956. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7957. void Update(float);
  7958. void UpdateCollisions();
  7959. // Properties:
  7960. bool animationEnabled;
  7961. /* readonly */
  7962. Array<Variant> attributeDefaults;
  7963. /* readonly */
  7964. Array<AttributeInfo> attributeInfos;
  7965. Array<Variant> attributes;
  7966. /* readonly */
  7967. String category;
  7968. bool enabled;
  7969. /* readonly */
  7970. bool enabledEffective;
  7971. int fps;
  7972. Vector3 gravity;
  7973. /* readonly */
  7974. uint id;
  7975. bool internalEdge;
  7976. bool interpolation;
  7977. int maxSubSteps;
  7978. /* readonly */
  7979. Node node;
  7980. /* readonly */
  7981. uint numAttributes;
  7982. int numIterations;
  7983. ObjectAnimation objectAnimation;
  7984. /* readonly */
  7985. int refs;
  7986. bool splitImpulse;
  7987. bool temporary;
  7988. /* readonly */
  7989. StringHash type;
  7990. /* readonly */
  7991. String typeName;
  7992. bool updateEnabled;
  7993. /* readonly */
  7994. int weakRefs;
  7995. };
  7996. class PhysicsWorld2D
  7997. {
  7998. // Methods:
  7999. void ApplyAttributes();
  8000. void DrawDebugGeometry() const;
  8001. void DrawDebugGeometry(DebugRenderer, bool);
  8002. Variant GetAttribute(const String&) const;
  8003. ValueAnimation GetAttributeAnimation(const String&) const;
  8004. float GetAttributeAnimationSpeed(const String&) const;
  8005. float GetAttributeAnimationTime(const String&) const;
  8006. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8007. Variant GetAttributeDefault(const String&) const;
  8008. bool GetInterceptNetworkUpdate(const String&) const;
  8009. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8010. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8011. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8012. bool HasSubscribedToEvent(Object, const String&);
  8013. bool HasSubscribedToEvent(const String&);
  8014. bool Load(File, bool = false);
  8015. bool Load(VectorBuffer&, bool = false);
  8016. bool LoadJSON(const JSONValue&, bool = false);
  8017. bool LoadXML(const XMLElement&, bool = false);
  8018. void MarkNetworkUpdate() const;
  8019. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8020. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8021. void Remove();
  8022. void RemoveAttributeAnimation(const String&);
  8023. void RemoveInstanceDefault();
  8024. void RemoveObjectAnimation();
  8025. void ResetToDefault();
  8026. bool Save(File) const;
  8027. bool Save(VectorBuffer&) const;
  8028. bool SaveJSON(JSONValue&) const;
  8029. bool SaveXML(XMLElement&) const;
  8030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8031. void SetAnimationTime(float);
  8032. bool SetAttribute(const String&, const Variant&);
  8033. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8034. void SetAttributeAnimationSpeed(const String&, float);
  8035. void SetAttributeAnimationTime(const String&, float);
  8036. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8037. void SetInterceptNetworkUpdate(const String&, bool);
  8038. // Properties:
  8039. bool allowSleeping;
  8040. bool animationEnabled;
  8041. /* readonly */
  8042. Array<Variant> attributeDefaults;
  8043. /* readonly */
  8044. Array<AttributeInfo> attributeInfos;
  8045. Array<Variant> attributes;
  8046. bool autoClearForces;
  8047. /* readonly */
  8048. String category;
  8049. bool continuousPhysics;
  8050. bool drawAabb;
  8051. bool drawCenterOfMass;
  8052. bool drawJoint;
  8053. bool drawPair;
  8054. bool drawShape;
  8055. bool enabled;
  8056. /* readonly */
  8057. bool enabledEffective;
  8058. Vector2 gravity;
  8059. /* readonly */
  8060. uint id;
  8061. /* readonly */
  8062. Node node;
  8063. /* readonly */
  8064. uint numAttributes;
  8065. ObjectAnimation objectAnimation;
  8066. uint positionIterations;
  8067. /* readonly */
  8068. int refs;
  8069. bool subStepping;
  8070. bool temporary;
  8071. /* readonly */
  8072. StringHash type;
  8073. /* readonly */
  8074. String typeName;
  8075. bool updateEnabled;
  8076. uint velocityIterations;
  8077. bool warmStarting;
  8078. /* readonly */
  8079. int weakRefs;
  8080. };
  8081. class Plane
  8082. {
  8083. // Methods:
  8084. void Define(const Vector3&, const Vector3&);
  8085. void Define(const Vector3&, const Vector3&, const Vector3&);
  8086. void Define(const Vector4&);
  8087. float Distance(const Vector3&) const;
  8088. Vector3 Project(const Vector3&) const;
  8089. Vector3 Reflect(const Vector3&) const;
  8090. Vector4 ToVector4() const;
  8091. void Transform(const Matrix3&);
  8092. void Transform(const Matrix3x4&);
  8093. void Transform(const Matrix4&);
  8094. Plane Transformed(const Matrix3&) const;
  8095. Plane Transformed(const Matrix3x4&) const;
  8096. Plane Transformed(const Matrix4&) const;
  8097. // Properties:
  8098. Vector3 absNormal;
  8099. float d;
  8100. Vector3 normal;
  8101. /* readonly */
  8102. Matrix3x4 reflectionMatrix;
  8103. };
  8104. class Polyhedron
  8105. {
  8106. // Methods:
  8107. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8108. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8109. void AddFace(const Array<Vector3>);
  8110. void Clear();
  8111. void Clip(const BoundingBox&);
  8112. void Clip(const Frustum&);
  8113. void Define(const BoundingBox&);
  8114. void Define(const Frustum&);
  8115. void Transform(const Matrix3&);
  8116. void Transform(const Matrix3x4&);
  8117. Polyhedron Transformed(const Matrix3&) const;
  8118. Polyhedron Transformed(const Matrix3x4&) const;
  8119. // Properties:
  8120. /* readonly */
  8121. Array<Array<Vector3>> face;
  8122. /* readonly */
  8123. uint numFaces;
  8124. };
  8125. class ProgressBar
  8126. {
  8127. // Methods:
  8128. void ChangeValue(float);
  8129. bool HasSubscribedToEvent(Object, const String&);
  8130. bool HasSubscribedToEvent(const String&);
  8131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8132. void SetLoadingPercentStyle(const String&);
  8133. // Properties:
  8134. /* readonly */
  8135. String category;
  8136. /* readonly */
  8137. BorderImage knob;
  8138. Orientation orientation;
  8139. float range;
  8140. /* readonly */
  8141. int refs;
  8142. bool showPercentText;
  8143. /* readonly */
  8144. StringHash type;
  8145. /* readonly */
  8146. String typeName;
  8147. float value;
  8148. /* readonly */
  8149. int weakRefs;
  8150. };
  8151. class PropertySet2D
  8152. {
  8153. // Methods:
  8154. bool HasProperty(const String&) const;
  8155. const String& GetProperty(const String&) const;
  8156. // Properties:
  8157. /* readonly */
  8158. int refs;
  8159. /* readonly */
  8160. int weakRefs;
  8161. };
  8162. class Quaternion
  8163. {
  8164. // Methods:
  8165. Quaternion Conjugate() const;
  8166. float DotProduct(const Quaternion&) const;
  8167. bool Equals(const Quaternion&) const;
  8168. void FromAngleAxis(float, const Vector3&);
  8169. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8170. void FromEulerAngles(float, float, float);
  8171. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8172. void FromRotationMatrix(const Matrix3&);
  8173. void FromRotationTo(const Vector3&, const Vector3&);
  8174. Quaternion Inverse() const;
  8175. bool IsNaN() const;
  8176. float LengthSquared() const;
  8177. Quaternion Nlerp(Quaternion, float, bool) const;
  8178. void Normalize();
  8179. Quaternion Normalized() const;
  8180. Quaternion Slerp(Quaternion, float) const;
  8181. String ToString() const;
  8182. // Properties:
  8183. /* readonly */
  8184. Vector3 eulerAngles;
  8185. /* readonly */
  8186. float pitch;
  8187. /* readonly */
  8188. float roll;
  8189. /* readonly */
  8190. Matrix3 rotationMatrix;
  8191. float w;
  8192. float x;
  8193. float y;
  8194. /* readonly */
  8195. float yaw;
  8196. float z;
  8197. };
  8198. class Ray
  8199. {
  8200. // Methods:
  8201. Vector3 ClosestPoint(const Ray&) const;
  8202. void Define(const Vector3&, const Vector3&);
  8203. float Distance(const Vector3&) const;
  8204. float HitDistance(const BoundingBox&) const;
  8205. float HitDistance(const Frustum&, bool = true) const;
  8206. float HitDistance(const Plane&) const;
  8207. float HitDistance(const Sphere&) const;
  8208. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8209. Vector3 Project(const Vector3&) const;
  8210. Ray Transformed(const Matrix3x4&) const;
  8211. // Properties:
  8212. Vector3 direction;
  8213. Vector3 origin;
  8214. };
  8215. class RayQueryResult
  8216. {
  8217. // Properties:
  8218. float distance;
  8219. /* readonly */
  8220. Drawable drawable;
  8221. /* readonly */
  8222. Node node;
  8223. Vector3 normal;
  8224. Vector3 position;
  8225. uint subObject;
  8226. Vector2 textureUV;
  8227. };
  8228. class Rect
  8229. {
  8230. // Methods:
  8231. void Clear();
  8232. void Clip(const Rect&);
  8233. void Define(const Vector2&);
  8234. void Define(const Vector2&, const Vector2&);
  8235. bool Defined() const;
  8236. bool Equals(const Rect&) const;
  8237. Intersection IsInside(const Rect&) const;
  8238. Intersection IsInside(const Vector2&) const;
  8239. void Merge(const Rect&);
  8240. void Merge(const Vector2&);
  8241. Vector4 ToVector4() const;
  8242. // Properties:
  8243. float bottom;
  8244. /* readonly */
  8245. Vector2 center;
  8246. /* readonly */
  8247. Vector2 halfSize;
  8248. float left;
  8249. Vector2 max;
  8250. Vector2 min;
  8251. float right;
  8252. /* readonly */
  8253. Vector2 size;
  8254. float top;
  8255. };
  8256. class RefCounted
  8257. {
  8258. // Properties:
  8259. /* readonly */
  8260. int refs;
  8261. /* readonly */
  8262. int weakRefs;
  8263. };
  8264. class RenderPath
  8265. {
  8266. // Methods:
  8267. void AddCommand(const RenderPathCommand&);
  8268. void AddRenderTarget(const RenderTargetInfo&);
  8269. bool Append(XMLFile);
  8270. RenderPath Clone();
  8271. void InsertCommand(uint, const RenderPathCommand&);
  8272. bool Load(XMLFile);
  8273. void RemoveCommand(uint);
  8274. void RemoveCommands(const String&);
  8275. void RemoveRenderTarget(const String&);
  8276. void RemoveRenderTarget(uint);
  8277. void RemoveRenderTargts(const String&);
  8278. void SetEnabled(const String&, bool);
  8279. void ToggleEnabled(const String&);
  8280. // Properties:
  8281. Array<RenderPathCommand> commands;
  8282. /* readonly */
  8283. uint numCommands;
  8284. /* readonly */
  8285. uint numRenderTargets;
  8286. /* readonly */
  8287. int refs;
  8288. Array<RenderTargetInfo> renderTargets;
  8289. Array<Variant> shaderParameters;
  8290. /* readonly */
  8291. int weakRefs;
  8292. };
  8293. class RenderPathCommand
  8294. {
  8295. // Methods:
  8296. void RemoveShaderParameter(const String&);
  8297. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8298. // Properties:
  8299. BlendMode blendMode;
  8300. Color clearColor;
  8301. float clearDepth;
  8302. uint clearFlags;
  8303. uint clearStencil;
  8304. String depthStencilName;
  8305. bool enabled;
  8306. String eventName;
  8307. bool markToStencil;
  8308. String metadata;
  8309. uint numOutputs;
  8310. Array<CubeMapFace> outputFaces;
  8311. Array<String> outputNames;
  8312. String pass;
  8313. String pixelShaderDefines;
  8314. String pixelShaderName;
  8315. Array<Variant> shaderParameters;
  8316. RenderCommandSortMode sortMode;
  8317. String tag;
  8318. Array<String> textureNames;
  8319. RenderCommandType type;
  8320. bool useFogColor;
  8321. bool useLitBase;
  8322. bool vertexLights;
  8323. String vertexShaderDefines;
  8324. String vertexShaderName;
  8325. };
  8326. class RenderSurface
  8327. {
  8328. // Methods:
  8329. void QueueUpdate();
  8330. // Properties:
  8331. /* readonly */
  8332. int height;
  8333. RenderSurface linkedDepthStencil;
  8334. RenderSurface linkedRenderTarget;
  8335. uint numViewports;
  8336. /* readonly */
  8337. Texture parentTexture;
  8338. /* readonly */
  8339. bool resolveDirty;
  8340. RenderSurfaceUpdateMode updateMode;
  8341. /* readonly */
  8342. TextureUsage usage;
  8343. Array<Viewport> viewports;
  8344. /* readonly */
  8345. int width;
  8346. };
  8347. class RenderTargetInfo
  8348. {
  8349. // Properties:
  8350. bool autoResolve;
  8351. bool cubemap;
  8352. bool enabled;
  8353. bool filtered;
  8354. uint format;
  8355. int multiSample;
  8356. String name;
  8357. bool persistent;
  8358. bool sRGB;
  8359. Vector2 size;
  8360. RenderTargetSizeMode sizeMode;
  8361. String tag;
  8362. };
  8363. class Renderer
  8364. {
  8365. // Methods:
  8366. void DrawDebugGeometry(bool) const;
  8367. bool HasSubscribedToEvent(Object, const String&);
  8368. bool HasSubscribedToEvent(const String&);
  8369. void ReloadShaders() const;
  8370. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8371. void SetDefaultRenderPath(XMLFile);
  8372. void SetVSMShadowParameters(float, float);
  8373. // Properties:
  8374. /* readonly */
  8375. String category;
  8376. /* readonly */
  8377. Material defaultLightRamp;
  8378. /* readonly */
  8379. Material defaultLightSpot;
  8380. /* readonly */
  8381. Material defaultMaterial;
  8382. RenderPath defaultRenderPath;
  8383. Technique defaultTechnique;
  8384. /* readonly */
  8385. Zone defaultZone;
  8386. bool drawShadows;
  8387. bool dynamicInstancing;
  8388. bool hdrRendering;
  8389. int materialQuality;
  8390. int maxOccluderTriangles;
  8391. int maxShadowMaps;
  8392. int maxSortedInstances;
  8393. int minInstances;
  8394. float mobileNormalOffsetMul;
  8395. float mobileShadowBiasAdd;
  8396. float mobileShadowBiasMul;
  8397. /* readonly */
  8398. uint numBatches;
  8399. int numExtraInstancingBufferElements;
  8400. /* readonly */
  8401. Array<uint> numGeometries;
  8402. /* readonly */
  8403. Array<uint> numLights;
  8404. /* readonly */
  8405. Array<uint> numOccluders;
  8406. /* readonly */
  8407. uint numPrimitives;
  8408. /* readonly */
  8409. Array<uint> numShadowMaps;
  8410. uint numViewports;
  8411. /* readonly */
  8412. uint numViews;
  8413. float occluderSizeThreshold;
  8414. int occlusionBufferSize;
  8415. /* readonly */
  8416. int refs;
  8417. bool reuseShadowMaps;
  8418. int shadowMapSize;
  8419. ShadowQuality shadowQuality;
  8420. float shadowSoftness;
  8421. bool specularLighting;
  8422. int textureAnisotropy;
  8423. TextureFilterMode textureFilterMode;
  8424. int textureQuality;
  8425. bool threadedOcclusion;
  8426. /* readonly */
  8427. StringHash type;
  8428. /* readonly */
  8429. String typeName;
  8430. Array<Viewport> viewports;
  8431. int vsmMultiSample;
  8432. Vector2 vsmShadowParameters;
  8433. /* readonly */
  8434. int weakRefs;
  8435. };
  8436. class Resource
  8437. {
  8438. // Methods:
  8439. bool HasSubscribedToEvent(Object, const String&);
  8440. bool HasSubscribedToEvent(const String&);
  8441. bool Load(File);
  8442. bool Load(VectorBuffer&);
  8443. bool Load(const String&);
  8444. bool Save(File) const;
  8445. bool Save(VectorBuffer&) const;
  8446. bool Save(const String&) const;
  8447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8448. // Properties:
  8449. /* readonly */
  8450. String category;
  8451. /* readonly */
  8452. uint memoryUse;
  8453. String name;
  8454. /* readonly */
  8455. int refs;
  8456. /* readonly */
  8457. StringHash type;
  8458. /* readonly */
  8459. String typeName;
  8460. /* readonly */
  8461. uint useTimer;
  8462. /* readonly */
  8463. int weakRefs;
  8464. };
  8465. class ResourceCache
  8466. {
  8467. // Methods:
  8468. bool AddManualResource(Resource);
  8469. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8470. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8471. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8472. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8473. bool Exists(const String&) const;
  8474. Resource GetExistingResource(StringHash, const String&);
  8475. Resource GetExistingResource(const String&, const String&);
  8476. File GetFile(const String&);
  8477. String GetPreferredResourceDir(const String&) const;
  8478. Resource GetResource(StringHash, const String&, bool = true);
  8479. Resource GetResource(const String&, const String&, bool = true);
  8480. String GetResourceFileName(const String&) const;
  8481. bool HasSubscribedToEvent(Object, const String&);
  8482. bool HasSubscribedToEvent(const String&);
  8483. void ReleaseAllResources(bool = false);
  8484. void ReleaseResource(const String&, const String&, bool = false);
  8485. void ReleaseResources(StringHash, bool = false);
  8486. void ReleaseResources(const String&, bool = false);
  8487. void ReleaseResources(const String&, const String&, bool = false);
  8488. bool ReloadResource(Resource);
  8489. void ReloadResourceWithDependencies(const String&);
  8490. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8491. void RemovePackageFile(const String&, bool = true, bool = false);
  8492. void RemoveResourceDir(const String&);
  8493. String SanitateResourceDirName(const String&) const;
  8494. String SanitateResourceName(const String&) const;
  8495. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8496. // Properties:
  8497. bool autoReloadResources;
  8498. /* readonly */
  8499. String category;
  8500. int finishBackgroundResourcesMs;
  8501. Array<uint64> memoryBudget;
  8502. /* readonly */
  8503. Array<uint64> memoryUse;
  8504. /* readonly */
  8505. uint numBackgroundLoadResources;
  8506. /* readonly */
  8507. Array<PackageFile> packageFiles;
  8508. /* readonly */
  8509. int refs;
  8510. /* readonly */
  8511. Array<String> resourceDirs;
  8512. bool returnFailedResources;
  8513. /* readonly */
  8514. bool seachPackagesFirst;
  8515. /* writeonly */
  8516. bool searchPackagesFirst;
  8517. /* readonly */
  8518. uint64 totalMemoryUse;
  8519. /* readonly */
  8520. StringHash type;
  8521. /* readonly */
  8522. String typeName;
  8523. /* readonly */
  8524. int weakRefs;
  8525. };
  8526. class ResourceRef
  8527. {
  8528. // Properties:
  8529. String name;
  8530. StringHash type;
  8531. };
  8532. class ResourceRefList
  8533. {
  8534. // Methods:
  8535. void Resize(uint);
  8536. // Properties:
  8537. /* readonly */
  8538. bool empty;
  8539. /* readonly */
  8540. uint length;
  8541. Array<String> names;
  8542. StringHash type;
  8543. };
  8544. class RibbonTrail
  8545. {
  8546. // Methods:
  8547. void ApplyAttributes();
  8548. void Commit();
  8549. void DrawDebugGeometry(DebugRenderer, bool);
  8550. Variant GetAttribute(const String&) const;
  8551. ValueAnimation GetAttributeAnimation(const String&) const;
  8552. float GetAttributeAnimationSpeed(const String&) const;
  8553. float GetAttributeAnimationTime(const String&) const;
  8554. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8555. Variant GetAttributeDefault(const String&) const;
  8556. bool GetInterceptNetworkUpdate(const String&) const;
  8557. bool HasSubscribedToEvent(Object, const String&);
  8558. bool HasSubscribedToEvent(const String&);
  8559. bool IsInView(Camera) const;
  8560. bool Load(File, bool = false);
  8561. bool Load(VectorBuffer&, bool = false);
  8562. bool LoadJSON(const JSONValue&, bool = false);
  8563. bool LoadXML(const XMLElement&, bool = false);
  8564. void MarkNetworkUpdate() const;
  8565. void Remove();
  8566. void RemoveAttributeAnimation(const String&);
  8567. void RemoveInstanceDefault();
  8568. void RemoveObjectAnimation();
  8569. void ResetToDefault();
  8570. bool Save(File) const;
  8571. bool Save(VectorBuffer&) const;
  8572. bool SaveJSON(JSONValue&) const;
  8573. bool SaveXML(XMLElement&) const;
  8574. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8575. void SetAnimationTime(float);
  8576. bool SetAttribute(const String&, const Variant&);
  8577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8578. void SetAttributeAnimationSpeed(const String&, float);
  8579. void SetAttributeAnimationTime(const String&, float);
  8580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8581. void SetInterceptNetworkUpdate(const String&, bool);
  8582. // Properties:
  8583. bool animationEnabled;
  8584. float animationLodBias;
  8585. /* readonly */
  8586. Array<Variant> attributeDefaults;
  8587. /* readonly */
  8588. Array<AttributeInfo> attributeInfos;
  8589. Array<Variant> attributes;
  8590. /* readonly */
  8591. BoundingBox boundingBox;
  8592. bool castShadows;
  8593. /* readonly */
  8594. String category;
  8595. float drawDistance;
  8596. bool emitting;
  8597. bool enabled;
  8598. /* readonly */
  8599. bool enabledEffective;
  8600. Color endColor;
  8601. float endScale;
  8602. /* readonly */
  8603. uint id;
  8604. /* readonly */
  8605. bool inView;
  8606. float lifetime;
  8607. uint lightMask;
  8608. float lodBias;
  8609. Material material;
  8610. uint maxLights;
  8611. /* readonly */
  8612. Node node;
  8613. /* readonly */
  8614. uint numAttributes;
  8615. ObjectAnimation objectAnimation;
  8616. bool occludee;
  8617. bool occluder;
  8618. /* readonly */
  8619. int refs;
  8620. float shadowDistance;
  8621. uint shadowMask;
  8622. bool sorted;
  8623. Color startColor;
  8624. float startScale;
  8625. uint tailColumn;
  8626. bool temporary;
  8627. TrailType trailType;
  8628. /* readonly */
  8629. StringHash type;
  8630. /* readonly */
  8631. String typeName;
  8632. bool updateInvisible;
  8633. float vertexDistance;
  8634. uint viewMask;
  8635. /* readonly */
  8636. int weakRefs;
  8637. float width;
  8638. /* readonly */
  8639. BoundingBox worldBoundingBox;
  8640. /* readonly */
  8641. Zone zone;
  8642. uint zoneMask;
  8643. };
  8644. class RigidBody
  8645. {
  8646. // Methods:
  8647. void Activate();
  8648. void ApplyAttributes();
  8649. void ApplyForce(const Vector3&);
  8650. void ApplyForce(const Vector3&, const Vector3&);
  8651. void ApplyImpulse(const Vector3&);
  8652. void ApplyImpulse(const Vector3&, const Vector3&);
  8653. void ApplyTorque(const Vector3&);
  8654. void ApplyTorqueImpulse(const Vector3&);
  8655. void DisableMassUpdate();
  8656. void DrawDebugGeometry(DebugRenderer, bool);
  8657. void EnableMassUpdate();
  8658. Variant GetAttribute(const String&) const;
  8659. ValueAnimation GetAttributeAnimation(const String&) const;
  8660. float GetAttributeAnimationSpeed(const String&) const;
  8661. float GetAttributeAnimationTime(const String&) const;
  8662. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8663. Variant GetAttributeDefault(const String&) const;
  8664. bool GetInterceptNetworkUpdate(const String&) const;
  8665. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8666. bool HasSubscribedToEvent(Object, const String&);
  8667. bool HasSubscribedToEvent(const String&);
  8668. bool Load(File, bool = false);
  8669. bool Load(VectorBuffer&, bool = false);
  8670. bool LoadJSON(const JSONValue&, bool = false);
  8671. bool LoadXML(const XMLElement&, bool = false);
  8672. void MarkNetworkUpdate() const;
  8673. void ReAddBodyToWorld();
  8674. void Remove();
  8675. void RemoveAttributeAnimation(const String&);
  8676. void RemoveInstanceDefault();
  8677. void RemoveObjectAnimation();
  8678. void ResetForces();
  8679. void ResetToDefault();
  8680. bool Save(File) const;
  8681. bool Save(VectorBuffer&) const;
  8682. bool SaveJSON(JSONValue&) const;
  8683. bool SaveXML(XMLElement&) const;
  8684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8685. void SetAnimationTime(float);
  8686. bool SetAttribute(const String&, const Variant&);
  8687. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8688. void SetAttributeAnimationSpeed(const String&, float);
  8689. void SetAttributeAnimationTime(const String&, float);
  8690. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8691. void SetCollisionLayerAndMask(uint, uint);
  8692. void SetInterceptNetworkUpdate(const String&, bool);
  8693. void SetTransform(const Vector3&, const Quaternion&);
  8694. // Properties:
  8695. /* readonly */
  8696. bool active;
  8697. float angularDamping;
  8698. Vector3 angularFactor;
  8699. float angularRestThreshold;
  8700. Vector3 angularVelocity;
  8701. bool animationEnabled;
  8702. Vector3 anisotropicFriction;
  8703. /* readonly */
  8704. Array<Variant> attributeDefaults;
  8705. /* readonly */
  8706. Array<AttributeInfo> attributeInfos;
  8707. Array<Variant> attributes;
  8708. /* readonly */
  8709. String category;
  8710. float ccdMotionThreshold;
  8711. float ccdRadius;
  8712. /* readonly */
  8713. Vector3 centerOfMass;
  8714. /* readonly */
  8715. Array<RigidBody> collidingBodies;
  8716. CollisionEventMode collisionEventMode;
  8717. uint collisionLayer;
  8718. uint collisionMask;
  8719. float contactProcessingThreshold;
  8720. bool enabled;
  8721. /* readonly */
  8722. bool enabledEffective;
  8723. float friction;
  8724. Vector3 gravityOverride;
  8725. /* readonly */
  8726. uint id;
  8727. bool kinematic;
  8728. float linearDamping;
  8729. Vector3 linearFactor;
  8730. float linearRestThreshold;
  8731. Vector3 linearVelocity;
  8732. float mass;
  8733. /* readonly */
  8734. Node node;
  8735. /* readonly */
  8736. uint numAttributes;
  8737. ObjectAnimation objectAnimation;
  8738. Vector3 position;
  8739. /* readonly */
  8740. int refs;
  8741. float restitution;
  8742. float rollingFriction;
  8743. Quaternion rotation;
  8744. bool temporary;
  8745. bool trigger;
  8746. /* readonly */
  8747. StringHash type;
  8748. /* readonly */
  8749. String typeName;
  8750. bool useGravity;
  8751. /* readonly */
  8752. int weakRefs;
  8753. };
  8754. class RigidBody2D
  8755. {
  8756. // Methods:
  8757. void ApplyAngularImpulse(float, bool);
  8758. void ApplyAttributes();
  8759. void ApplyForce(const Vector2&, const Vector2&, bool);
  8760. void ApplyForceToCenter(const Vector2&, bool);
  8761. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8762. void ApplyTorque(float, bool);
  8763. void DrawDebugGeometry(DebugRenderer, bool);
  8764. Variant GetAttribute(const String&) const;
  8765. ValueAnimation GetAttributeAnimation(const String&) const;
  8766. float GetAttributeAnimationSpeed(const String&) const;
  8767. float GetAttributeAnimationTime(const String&) const;
  8768. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8769. Variant GetAttributeDefault(const String&) const;
  8770. bool GetInterceptNetworkUpdate(const String&) const;
  8771. bool HasSubscribedToEvent(Object, const String&);
  8772. bool HasSubscribedToEvent(const String&);
  8773. bool Load(File, bool = false);
  8774. bool Load(VectorBuffer&, bool = false);
  8775. bool LoadJSON(const JSONValue&, bool = false);
  8776. bool LoadXML(const XMLElement&, bool = false);
  8777. void MarkNetworkUpdate() const;
  8778. void Remove();
  8779. void RemoveAttributeAnimation(const String&);
  8780. void RemoveInstanceDefault();
  8781. void RemoveObjectAnimation();
  8782. void ResetToDefault();
  8783. bool Save(File) const;
  8784. bool Save(VectorBuffer&) const;
  8785. bool SaveJSON(JSONValue&) const;
  8786. bool SaveXML(XMLElement&) const;
  8787. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8788. void SetAnimationTime(float);
  8789. bool SetAttribute(const String&, const Variant&);
  8790. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8791. void SetAttributeAnimationSpeed(const String&, float);
  8792. void SetAttributeAnimationTime(const String&, float);
  8793. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8794. void SetInterceptNetworkUpdate(const String&, bool);
  8795. // Properties:
  8796. bool allowSleep;
  8797. float angularDamping;
  8798. bool animationEnabled;
  8799. /* readonly */
  8800. Array<Variant> attributeDefaults;
  8801. /* readonly */
  8802. Array<AttributeInfo> attributeInfos;
  8803. Array<Variant> attributes;
  8804. bool awake;
  8805. BodyType2D bodyType;
  8806. bool bullet;
  8807. /* readonly */
  8808. String category;
  8809. bool enabled;
  8810. /* readonly */
  8811. bool enabledEffective;
  8812. bool fixedRotation;
  8813. float gravityScale;
  8814. /* readonly */
  8815. uint id;
  8816. float inertia;
  8817. float linearDamping;
  8818. Vector2 linearVelocity;
  8819. float mass;
  8820. Vector2 massCenter;
  8821. /* readonly */
  8822. Node node;
  8823. /* readonly */
  8824. uint numAttributes;
  8825. ObjectAnimation objectAnimation;
  8826. /* readonly */
  8827. int refs;
  8828. bool temporary;
  8829. /* readonly */
  8830. StringHash type;
  8831. /* readonly */
  8832. String typeName;
  8833. bool useFixtureMass;
  8834. /* readonly */
  8835. int weakRefs;
  8836. };
  8837. class Scene
  8838. {
  8839. // Methods:
  8840. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8841. void AddRequiredPackageFile(PackageFile);
  8842. void AddTag(const String&);
  8843. void AddTags(const String&, int8 = ';');
  8844. void ApplyAttributes();
  8845. void Clear(bool = true, bool = true);
  8846. void ClearRequiredPackageFiles();
  8847. Component CloneComponent(Component, CreateMode, uint = 0);
  8848. Component CloneComponent(Component, uint = 0);
  8849. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  8850. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8851. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8852. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8853. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8854. Variant GetAttribute(const String&) const;
  8855. ValueAnimation GetAttributeAnimation(const String&) const;
  8856. float GetAttributeAnimationSpeed(const String&) const;
  8857. float GetAttributeAnimationTime(const String&) const;
  8858. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8859. Variant GetAttributeDefault(const String&) const;
  8860. Node GetChild(const String&, bool = false) const;
  8861. Array<Node> GetChildren(bool = false) const;
  8862. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8863. Array<Node> GetChildrenWithScript(bool = false) const;
  8864. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8865. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8866. Component GetComponent(const String&, bool = false) const;
  8867. Component GetComponent(uint) const;
  8868. Array<Component> GetComponents() const;
  8869. Array<Component> GetComponents(const String&, bool = false) const;
  8870. bool GetInterceptNetworkUpdate(const String&) const;
  8871. Node GetNode(uint) const;
  8872. Array<Node> GetNodesWithTag(const String&) const;
  8873. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8874. Component GetParentComponent(const String&, bool = false) const;
  8875. ScriptObject GetScriptObject() const;
  8876. ScriptObject GetScriptObject(const String&) const;
  8877. bool HasComponent(const String&) const;
  8878. bool HasSubscribedToEvent(Object, const String&);
  8879. bool HasSubscribedToEvent(const String&);
  8880. bool HasTag(const String&);
  8881. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8882. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8883. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8884. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8885. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8886. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8887. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8888. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8889. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8890. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8891. bool Load(File, bool = false);
  8892. bool Load(VectorBuffer&, bool = false);
  8893. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8894. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8895. bool LoadJSON(File);
  8896. bool LoadJSON(VectorBuffer&);
  8897. bool LoadJSON(const JSONValue&, bool = false);
  8898. bool LoadXML(File);
  8899. bool LoadXML(VectorBuffer&);
  8900. bool LoadXML(const XMLElement&, bool = false);
  8901. Vector3 LocalToWorld(const Vector3&) const;
  8902. Vector3 LocalToWorld(const Vector4&) const;
  8903. Vector2 LocalToWorld2D(const Vector2&) const;
  8904. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8905. void MarkNetworkUpdate() const;
  8906. void Pitch(float, TransformSpace = TS_LOCAL);
  8907. void RegisterVar(const String&);
  8908. void Remove();
  8909. void RemoveAllChildren();
  8910. void RemoveAllComponents();
  8911. void RemoveAllTags();
  8912. void RemoveAttributeAnimation(const String&);
  8913. void RemoveChild(Node);
  8914. void RemoveChildren(bool, bool, bool);
  8915. void RemoveComponent(Component);
  8916. void RemoveComponent(const String&);
  8917. void RemoveComponents(bool, bool);
  8918. void RemoveComponents(const String&);
  8919. void RemoveInstanceDefault();
  8920. void RemoveObjectAnimation();
  8921. bool RemoveTag(const String&);
  8922. void ReorderComponent(Component, uint);
  8923. void ResetToDefault();
  8924. void Roll(float, TransformSpace = TS_LOCAL);
  8925. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8926. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8927. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8928. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8929. bool Save(File) const;
  8930. bool Save(VectorBuffer&) const;
  8931. bool SaveJSON(File, const String& = "\t");
  8932. bool SaveJSON(JSONValue&) const;
  8933. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8934. bool SaveXML(File, const String& = "\t");
  8935. bool SaveXML(VectorBuffer&, const String& = "\t");
  8936. bool SaveXML(XMLElement&) const;
  8937. void Scale(const Vector3&);
  8938. void Scale(float);
  8939. void Scale2D(const Vector2&);
  8940. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8941. void SetAnimationTime(float);
  8942. bool SetAttribute(const String&, const Variant&);
  8943. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8944. void SetAttributeAnimationSpeed(const String&, float);
  8945. void SetAttributeAnimationTime(const String&, float);
  8946. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8947. void SetInterceptNetworkUpdate(const String&, bool);
  8948. void SetPosition2D(float, float);
  8949. void SetScale(float);
  8950. void SetScale2D(float, float);
  8951. void SetTransform(const Matrix3x4&);
  8952. void SetTransform(const Vector3&, const Quaternion&);
  8953. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8954. void SetTransform(const Vector3&, const Quaternion&, float);
  8955. void SetTransform2D(const Vector2&, float);
  8956. void SetTransform2D(const Vector2&, float, const Vector2&);
  8957. void SetTransform2D(const Vector2&, float, float);
  8958. void SetWorldTransform(const Vector3&, const Quaternion&);
  8959. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8960. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8961. void SetWorldTransform2D(const Vector2&, float);
  8962. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8963. void SetWorldTransform2D(const Vector2&, float, float);
  8964. void StopAsyncLoading();
  8965. const String& GetVarName(StringHash) const;
  8966. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8967. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8968. void UnregisterAllVars(const String&);
  8969. void UnregisterVar(const String&);
  8970. void Update(float);
  8971. Vector3 WorldToLocal(const Vector3&) const;
  8972. Vector3 WorldToLocal(const Vector4&) const;
  8973. Vector2 WorldToLocal2D(const Vector2&) const;
  8974. void Yaw(float, TransformSpace = TS_LOCAL);
  8975. // Properties:
  8976. bool animationEnabled;
  8977. /* readonly */
  8978. LoadMode asyncLoadMode;
  8979. /* readonly */
  8980. bool asyncLoading;
  8981. int asyncLoadingMs;
  8982. /* readonly */
  8983. float asyncProgress;
  8984. /* readonly */
  8985. Array<Variant> attributeDefaults;
  8986. /* readonly */
  8987. Array<AttributeInfo> attributeInfos;
  8988. Array<Variant> attributes;
  8989. /* readonly */
  8990. String category;
  8991. /* readonly */
  8992. uint checksum;
  8993. /* readonly */
  8994. Array<Node> children;
  8995. /* readonly */
  8996. Array<Component> components;
  8997. /* readonly */
  8998. DebugRenderer debugRenderer;
  8999. Vector3 direction;
  9000. float elapsedTime;
  9001. /* readonly */
  9002. String fileName;
  9003. uint id;
  9004. String name;
  9005. /* readonly */
  9006. uint numAllChildren;
  9007. /* readonly */
  9008. uint numAttributes;
  9009. /* readonly */
  9010. uint numChildren;
  9011. /* readonly */
  9012. uint numComponents;
  9013. ObjectAnimation objectAnimation;
  9014. /* readonly */
  9015. Octree octree;
  9016. Node parent;
  9017. /* readonly */
  9018. PhysicsWorld physicsWorld;
  9019. /* readonly */
  9020. PhysicsWorld2D physicsWorld2D;
  9021. Vector3 position;
  9022. Vector2 position2D;
  9023. /* readonly */
  9024. int refs;
  9025. /* readonly */
  9026. Array<PackageFile> requiredPackageFiles;
  9027. /* readonly */
  9028. Vector3 right;
  9029. Quaternion rotation;
  9030. float rotation2D;
  9031. Vector3 scale;
  9032. Vector2 scale2D;
  9033. /* readonly */
  9034. ScriptObject scriptObject;
  9035. float smoothingConstant;
  9036. float snapThreshold;
  9037. /* readonly */
  9038. Array<String> tags;
  9039. bool temporary;
  9040. float timeScale;
  9041. /* readonly */
  9042. Matrix3x4 transform;
  9043. /* readonly */
  9044. StringHash type;
  9045. /* readonly */
  9046. String typeName;
  9047. /* readonly */
  9048. Vector3 up;
  9049. bool updateEnabled;
  9050. /* readonly */
  9051. VariantMap vars;
  9052. /* readonly */
  9053. int weakRefs;
  9054. Vector3 worldDirection;
  9055. Vector3 worldPosition;
  9056. Vector2 worldPosition2D;
  9057. /* readonly */
  9058. Vector3 worldRight;
  9059. Quaternion worldRotation;
  9060. float worldRotation2D;
  9061. Vector3 worldScale;
  9062. Vector2 worldScale2D;
  9063. /* readonly */
  9064. Matrix3x4 worldTransform;
  9065. /* readonly */
  9066. Vector3 worldUp;
  9067. };
  9068. class Script
  9069. {
  9070. // Methods:
  9071. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9072. bool Execute(const String&);
  9073. bool HasSubscribedToEvent(Object, const String&);
  9074. bool HasSubscribedToEvent(const String&);
  9075. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9076. // Properties:
  9077. /* readonly */
  9078. String category;
  9079. Scene defaultScene;
  9080. ScriptFile defaultScriptFile;
  9081. bool executeConsoleCommands;
  9082. /* readonly */
  9083. int refs;
  9084. /* readonly */
  9085. StringHash type;
  9086. /* readonly */
  9087. String typeName;
  9088. /* readonly */
  9089. int weakRefs;
  9090. };
  9091. class ScriptFile
  9092. {
  9093. // Methods:
  9094. void ClearDelayedExecute(const String& = String ( ));
  9095. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9096. bool Execute(const String&, const Array<Variant> = null);
  9097. bool HasSubscribedToEvent(Object, const String&);
  9098. bool HasSubscribedToEvent(const String&);
  9099. bool Load(File);
  9100. bool Load(VectorBuffer&);
  9101. bool Load(const String&);
  9102. bool Save(File) const;
  9103. bool Save(VectorBuffer&) const;
  9104. bool Save(const String&) const;
  9105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9106. // Properties:
  9107. /* readonly */
  9108. String category;
  9109. /* readonly */
  9110. bool compiled;
  9111. /* readonly */
  9112. uint memoryUse;
  9113. String name;
  9114. /* readonly */
  9115. int refs;
  9116. /* readonly */
  9117. StringHash type;
  9118. /* readonly */
  9119. String typeName;
  9120. /* readonly */
  9121. uint useTimer;
  9122. /* readonly */
  9123. int weakRefs;
  9124. };
  9125. class ScriptInstance
  9126. {
  9127. // Methods:
  9128. void ApplyAttributes();
  9129. void ClearDelayedExecute(const String& = String ( ));
  9130. bool CreateObject(ScriptFile, const String&);
  9131. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9132. void DrawDebugGeometry(DebugRenderer, bool);
  9133. bool Execute(const String&, const Array<Variant> = null);
  9134. Variant GetAttribute(const String&) const;
  9135. ValueAnimation GetAttributeAnimation(const String&) const;
  9136. float GetAttributeAnimationSpeed(const String&) const;
  9137. float GetAttributeAnimationTime(const String&) const;
  9138. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9139. Variant GetAttributeDefault(const String&) const;
  9140. bool GetInterceptNetworkUpdate(const String&) const;
  9141. bool HasMethod(const String&) const;
  9142. bool HasSubscribedToEvent(Object, const String&);
  9143. bool HasSubscribedToEvent(const String&);
  9144. bool IsA(const String&) const;
  9145. bool Load(File, bool = false);
  9146. bool Load(VectorBuffer&, bool = false);
  9147. bool LoadJSON(const JSONValue&, bool = false);
  9148. bool LoadXML(const XMLElement&, bool = false);
  9149. void MarkNetworkUpdate() const;
  9150. void Remove();
  9151. void RemoveAttributeAnimation(const String&);
  9152. void RemoveInstanceDefault();
  9153. void RemoveObjectAnimation();
  9154. void ResetToDefault();
  9155. bool Save(File) const;
  9156. bool Save(VectorBuffer&) const;
  9157. bool SaveJSON(JSONValue&) const;
  9158. bool SaveXML(XMLElement&) const;
  9159. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9160. void SetAnimationTime(float);
  9161. bool SetAttribute(const String&, const Variant&);
  9162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9163. void SetAttributeAnimationSpeed(const String&, float);
  9164. void SetAttributeAnimationTime(const String&, float);
  9165. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9166. void SetInterceptNetworkUpdate(const String&, bool);
  9167. // Properties:
  9168. bool animationEnabled;
  9169. /* readonly */
  9170. Array<Variant> attributeDefaults;
  9171. /* readonly */
  9172. Array<AttributeInfo> attributeInfos;
  9173. Array<Variant> attributes;
  9174. /* readonly */
  9175. String category;
  9176. String className;
  9177. bool enabled;
  9178. /* readonly */
  9179. bool enabledEffective;
  9180. /* readonly */
  9181. uint id;
  9182. /* readonly */
  9183. Node node;
  9184. /* readonly */
  9185. uint numAttributes;
  9186. ObjectAnimation objectAnimation;
  9187. /* readonly */
  9188. int refs;
  9189. ScriptFile scriptFile;
  9190. /* readonly */
  9191. ScriptObject scriptObject;
  9192. bool temporary;
  9193. /* readonly */
  9194. StringHash type;
  9195. /* readonly */
  9196. String typeName;
  9197. /* readonly */
  9198. int weakRefs;
  9199. };
  9200. class ScriptObject
  9201. {
  9202. };
  9203. class ScrollBar
  9204. {
  9205. // Methods:
  9206. void AddChild(UIElement);
  9207. void AddTag(const String&);
  9208. void AddTags(const String&, int8 = ';');
  9209. void ApplyAttributes();
  9210. void BringToFront();
  9211. void ChangeValue(float);
  9212. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9213. void DisableLayoutUpdate();
  9214. IntVector2 ElementToScreen(const IntVector2&);
  9215. void EnableLayoutUpdate();
  9216. uint FindChild(UIElement) const;
  9217. Variant GetAttribute(const String&) const;
  9218. ValueAnimation GetAttributeAnimation(const String&) const;
  9219. float GetAttributeAnimationSpeed(const String&) const;
  9220. float GetAttributeAnimationTime(const String&) const;
  9221. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9222. Variant GetAttributeDefault(const String&) const;
  9223. UIElement GetChild(const String&, bool = false) const;
  9224. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9225. Array<UIElement> GetChildren(bool = false) const;
  9226. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9227. UIElement GetElementEventSender() const;
  9228. bool GetInterceptNetworkUpdate(const String&) const;
  9229. uint GetNumChildren(bool) const;
  9230. bool HasSubscribedToEvent(Object, const String&);
  9231. bool HasSubscribedToEvent(const String&);
  9232. bool HasTag(const String&) const;
  9233. void InsertChild(uint, UIElement);
  9234. bool IsInside(IntVector2, bool);
  9235. bool IsInsideCombined(IntVector2, bool);
  9236. bool Load(File, bool = false);
  9237. bool Load(VectorBuffer&, bool = false);
  9238. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9239. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9240. bool LoadJSON(const JSONValue&, bool = false);
  9241. bool LoadXML(File);
  9242. bool LoadXML(VectorBuffer&);
  9243. bool LoadXML(XMLFile, XMLFile);
  9244. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9245. bool LoadXML(const XMLElement&, bool = false);
  9246. void MarkNetworkUpdate() const;
  9247. void Remove();
  9248. void RemoveAllChildren();
  9249. void RemoveAllTags();
  9250. void RemoveAttributeAnimation(const String&);
  9251. void RemoveChild(UIElement, uint = 0);
  9252. void RemoveChild(uint);
  9253. void RemoveInstanceDefault();
  9254. void RemoveObjectAnimation();
  9255. bool RemoveTag(const String&);
  9256. void ResetDeepEnabled();
  9257. void ResetToDefault();
  9258. bool Save(File) const;
  9259. bool Save(VectorBuffer&) const;
  9260. bool SaveJSON(JSONValue&) const;
  9261. bool SaveXML(File, const String& = "\t");
  9262. bool SaveXML(VectorBuffer&, const String& = "\t");
  9263. bool SaveXML(XMLElement&) const;
  9264. IntVector2 ScreenToElement(const IntVector2&);
  9265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9266. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9267. void SetAnimationTime(float);
  9268. bool SetAttribute(const String&, const Variant&);
  9269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9270. void SetAttributeAnimationSpeed(const String&, float);
  9271. void SetAttributeAnimationTime(const String&, float);
  9272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9273. void SetDeepEnabled(bool);
  9274. void SetEnabledRecursive(bool);
  9275. void SetFixedHeight(int);
  9276. void SetFixedSize(int, int);
  9277. void SetFixedWidth(int);
  9278. void SetInterceptNetworkUpdate(const String&, bool);
  9279. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9280. void SetMaxAnchor(float, float);
  9281. void SetMaxSize(int, int);
  9282. void SetMinAnchor(float, float);
  9283. void SetMinSize(int, int);
  9284. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9285. void SetPivot(float, float);
  9286. void SetPosition(int, int);
  9287. void SetSize(int, int);
  9288. bool SetStyle(const String&, XMLFile = null);
  9289. bool SetStyle(const XMLElement&);
  9290. bool SetStyleAuto(XMLFile = null);
  9291. void StepBack();
  9292. void StepForward();
  9293. void UpdateLayout();
  9294. const Variant& GetVar(const StringHash&);
  9295. // Properties:
  9296. bool animationEnabled;
  9297. /* readonly */
  9298. Array<Variant> attributeDefaults;
  9299. /* readonly */
  9300. Array<AttributeInfo> attributeInfos;
  9301. Array<Variant> attributes;
  9302. /* readonly */
  9303. Button backButton;
  9304. bool bringToBack;
  9305. bool bringToFront;
  9306. /* readonly */
  9307. String category;
  9308. /* readonly */
  9309. IntVector2 childOffset;
  9310. /* readonly */
  9311. Array<UIElement> children;
  9312. IntRect clipBorder;
  9313. bool clipChildren;
  9314. /* writeonly */
  9315. Color color;
  9316. /* readonly */
  9317. bool colorGradient;
  9318. Array<Color> colors;
  9319. /* readonly */
  9320. IntRect combinedScreenRect;
  9321. XMLFile defaultStyle;
  9322. /* readonly */
  9323. float derivedOpacity;
  9324. /* readonly */
  9325. uint dragButtonCombo;
  9326. /* readonly */
  9327. int dragButtonCount;
  9328. uint dragDropMode;
  9329. bool editable;
  9330. /* readonly */
  9331. float effectiveScrollStep;
  9332. bool elementEventSender;
  9333. bool enableAnchor;
  9334. bool enabled;
  9335. /* readonly */
  9336. bool enabledSelf;
  9337. /* readonly */
  9338. bool fixedHeight;
  9339. /* readonly */
  9340. bool fixedSize;
  9341. /* readonly */
  9342. bool fixedWidth;
  9343. bool focus;
  9344. FocusMode focusMode;
  9345. /* readonly */
  9346. Button forwardButton;
  9347. int height;
  9348. HorizontalAlignment horizontalAlignment;
  9349. /* readonly */
  9350. bool hovering;
  9351. int indent;
  9352. int indentSpacing;
  9353. /* readonly */
  9354. int indentWidth;
  9355. bool internal;
  9356. IntRect layoutBorder;
  9357. Vector2 layoutFlexScale;
  9358. LayoutMode layoutMode;
  9359. int layoutSpacing;
  9360. Vector2 maxAnchor;
  9361. int maxHeight;
  9362. IntVector2 maxOffset;
  9363. IntVector2 maxSize;
  9364. int maxWidth;
  9365. Vector2 minAnchor;
  9366. int minHeight;
  9367. IntVector2 minOffset;
  9368. IntVector2 minSize;
  9369. int minWidth;
  9370. String name;
  9371. /* readonly */
  9372. uint numAllChildren;
  9373. /* readonly */
  9374. uint numAttributes;
  9375. /* readonly */
  9376. uint numChildren;
  9377. ObjectAnimation objectAnimation;
  9378. float opacity;
  9379. Orientation orientation;
  9380. UIElement parent;
  9381. Vector2 pivot;
  9382. IntVector2 position;
  9383. int priority;
  9384. float range;
  9385. /* readonly */
  9386. int refs;
  9387. /* readonly */
  9388. UIElement root;
  9389. /* readonly */
  9390. IntVector2 screenPosition;
  9391. float scrollStep;
  9392. bool selected;
  9393. IntVector2 size;
  9394. /* readonly */
  9395. Slider slider;
  9396. bool sortChildren;
  9397. float stepFactor;
  9398. String style;
  9399. /* readonly */
  9400. Array<String> tags;
  9401. bool temporary;
  9402. TraversalMode traversalMode;
  9403. /* readonly */
  9404. StringHash type;
  9405. /* readonly */
  9406. String typeName;
  9407. bool useDerivedOpacity;
  9408. float value;
  9409. /* readonly */
  9410. VariantMap vars;
  9411. VerticalAlignment verticalAlignment;
  9412. bool visible;
  9413. /* readonly */
  9414. bool visibleEffective;
  9415. /* readonly */
  9416. int weakRefs;
  9417. int width;
  9418. };
  9419. class ScrollView
  9420. {
  9421. // Methods:
  9422. void AddChild(UIElement);
  9423. void AddTag(const String&);
  9424. void AddTags(const String&, int8 = ';');
  9425. void ApplyAttributes();
  9426. void BringToFront();
  9427. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9428. void DisableLayoutUpdate();
  9429. IntVector2 ElementToScreen(const IntVector2&);
  9430. void EnableLayoutUpdate();
  9431. uint FindChild(UIElement) const;
  9432. Variant GetAttribute(const String&) const;
  9433. ValueAnimation GetAttributeAnimation(const String&) const;
  9434. float GetAttributeAnimationSpeed(const String&) const;
  9435. float GetAttributeAnimationTime(const String&) const;
  9436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9437. Variant GetAttributeDefault(const String&) const;
  9438. UIElement GetChild(const String&, bool = false) const;
  9439. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9440. Array<UIElement> GetChildren(bool = false) const;
  9441. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9442. UIElement GetElementEventSender() const;
  9443. bool GetInterceptNetworkUpdate(const String&) const;
  9444. uint GetNumChildren(bool) const;
  9445. bool HasSubscribedToEvent(Object, const String&);
  9446. bool HasSubscribedToEvent(const String&);
  9447. bool HasTag(const String&) const;
  9448. void InsertChild(uint, UIElement);
  9449. bool IsInside(IntVector2, bool);
  9450. bool IsInsideCombined(IntVector2, bool);
  9451. bool Load(File, bool = false);
  9452. bool Load(VectorBuffer&, bool = false);
  9453. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9454. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9455. bool LoadJSON(const JSONValue&, bool = false);
  9456. bool LoadXML(File);
  9457. bool LoadXML(VectorBuffer&);
  9458. bool LoadXML(XMLFile, XMLFile);
  9459. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9460. bool LoadXML(const XMLElement&, bool = false);
  9461. void MarkNetworkUpdate() const;
  9462. void Remove();
  9463. void RemoveAllChildren();
  9464. void RemoveAllTags();
  9465. void RemoveAttributeAnimation(const String&);
  9466. void RemoveChild(UIElement, uint = 0);
  9467. void RemoveChild(uint);
  9468. void RemoveInstanceDefault();
  9469. void RemoveObjectAnimation();
  9470. bool RemoveTag(const String&);
  9471. void ResetDeepEnabled();
  9472. void ResetToDefault();
  9473. bool Save(File) const;
  9474. bool Save(VectorBuffer&) const;
  9475. bool SaveJSON(JSONValue&) const;
  9476. bool SaveXML(File, const String& = "\t");
  9477. bool SaveXML(VectorBuffer&, const String& = "\t");
  9478. bool SaveXML(XMLElement&) const;
  9479. IntVector2 ScreenToElement(const IntVector2&);
  9480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9481. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9482. void SetAnimationTime(float);
  9483. bool SetAttribute(const String&, const Variant&);
  9484. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9485. void SetAttributeAnimationSpeed(const String&, float);
  9486. void SetAttributeAnimationTime(const String&, float);
  9487. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9488. void SetDeepEnabled(bool);
  9489. void SetEnabledRecursive(bool);
  9490. void SetFixedHeight(int);
  9491. void SetFixedSize(int, int);
  9492. void SetFixedWidth(int);
  9493. void SetInterceptNetworkUpdate(const String&, bool);
  9494. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9495. void SetMaxAnchor(float, float);
  9496. void SetMaxSize(int, int);
  9497. void SetMinAnchor(float, float);
  9498. void SetMinSize(int, int);
  9499. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9500. void SetPivot(float, float);
  9501. void SetPosition(int, int);
  9502. void SetScrollBarsVisible(bool, bool);
  9503. void SetSize(int, int);
  9504. bool SetStyle(const String&, XMLFile = null);
  9505. bool SetStyle(const XMLElement&);
  9506. bool SetStyleAuto(XMLFile = null);
  9507. void SetViewPosition(int, int);
  9508. void UpdateLayout();
  9509. const Variant& GetVar(const StringHash&);
  9510. // Properties:
  9511. bool animationEnabled;
  9512. /* readonly */
  9513. Array<Variant> attributeDefaults;
  9514. /* readonly */
  9515. Array<AttributeInfo> attributeInfos;
  9516. Array<Variant> attributes;
  9517. bool autoDisableChildren;
  9518. float autoDisableThreshold;
  9519. bool bringToBack;
  9520. bool bringToFront;
  9521. /* readonly */
  9522. String category;
  9523. /* readonly */
  9524. IntVector2 childOffset;
  9525. /* readonly */
  9526. Array<UIElement> children;
  9527. IntRect clipBorder;
  9528. bool clipChildren;
  9529. /* writeonly */
  9530. Color color;
  9531. /* readonly */
  9532. bool colorGradient;
  9533. Array<Color> colors;
  9534. /* readonly */
  9535. IntRect combinedScreenRect;
  9536. UIElement contentElement;
  9537. XMLFile defaultStyle;
  9538. /* readonly */
  9539. float derivedOpacity;
  9540. /* readonly */
  9541. uint dragButtonCombo;
  9542. /* readonly */
  9543. int dragButtonCount;
  9544. uint dragDropMode;
  9545. bool editable;
  9546. bool elementEventSender;
  9547. bool enableAnchor;
  9548. bool enabled;
  9549. /* readonly */
  9550. bool enabledSelf;
  9551. /* readonly */
  9552. bool fixedHeight;
  9553. /* readonly */
  9554. bool fixedSize;
  9555. /* readonly */
  9556. bool fixedWidth;
  9557. bool focus;
  9558. FocusMode focusMode;
  9559. int height;
  9560. HorizontalAlignment horizontalAlignment;
  9561. /* readonly */
  9562. ScrollBar horizontalScrollBar;
  9563. /* readonly */
  9564. bool hovering;
  9565. int indent;
  9566. int indentSpacing;
  9567. /* readonly */
  9568. int indentWidth;
  9569. bool internal;
  9570. IntRect layoutBorder;
  9571. Vector2 layoutFlexScale;
  9572. LayoutMode layoutMode;
  9573. int layoutSpacing;
  9574. Vector2 maxAnchor;
  9575. int maxHeight;
  9576. IntVector2 maxOffset;
  9577. IntVector2 maxSize;
  9578. int maxWidth;
  9579. Vector2 minAnchor;
  9580. int minHeight;
  9581. IntVector2 minOffset;
  9582. IntVector2 minSize;
  9583. int minWidth;
  9584. String name;
  9585. /* readonly */
  9586. uint numAllChildren;
  9587. /* readonly */
  9588. uint numAttributes;
  9589. /* readonly */
  9590. uint numChildren;
  9591. ObjectAnimation objectAnimation;
  9592. float opacity;
  9593. float pageStep;
  9594. UIElement parent;
  9595. Vector2 pivot;
  9596. IntVector2 position;
  9597. int priority;
  9598. /* readonly */
  9599. int refs;
  9600. /* readonly */
  9601. UIElement root;
  9602. /* readonly */
  9603. IntVector2 screenPosition;
  9604. bool scrollBarsAutoVisible;
  9605. float scrollDeceleration;
  9606. /* readonly */
  9607. BorderImage scrollPanel;
  9608. float scrollSnapEpsilon;
  9609. float scrollStep;
  9610. bool selected;
  9611. IntVector2 size;
  9612. bool sortChildren;
  9613. String style;
  9614. /* readonly */
  9615. Array<String> tags;
  9616. bool temporary;
  9617. TraversalMode traversalMode;
  9618. /* readonly */
  9619. StringHash type;
  9620. /* readonly */
  9621. String typeName;
  9622. bool useDerivedOpacity;
  9623. /* readonly */
  9624. VariantMap vars;
  9625. VerticalAlignment verticalAlignment;
  9626. /* readonly */
  9627. ScrollBar verticalScrollBar;
  9628. IntVector2 viewPosition;
  9629. bool visible;
  9630. /* readonly */
  9631. bool visibleEffective;
  9632. /* readonly */
  9633. int weakRefs;
  9634. int width;
  9635. };
  9636. class Serializable
  9637. {
  9638. // Methods:
  9639. void ApplyAttributes();
  9640. Variant GetAttribute(const String&) const;
  9641. Variant GetAttributeDefault(const String&) const;
  9642. bool GetInterceptNetworkUpdate(const String&) const;
  9643. bool HasSubscribedToEvent(Object, const String&);
  9644. bool HasSubscribedToEvent(const String&);
  9645. bool Load(File, bool = false);
  9646. bool Load(VectorBuffer&, bool = false);
  9647. bool LoadJSON(const JSONValue&, bool = false);
  9648. bool LoadXML(const XMLElement&, bool = false);
  9649. void MarkNetworkUpdate() const;
  9650. void RemoveInstanceDefault();
  9651. void ResetToDefault();
  9652. bool Save(File) const;
  9653. bool Save(VectorBuffer&) const;
  9654. bool SaveJSON(JSONValue&) const;
  9655. bool SaveXML(XMLElement&) const;
  9656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9657. bool SetAttribute(const String&, const Variant&);
  9658. void SetInterceptNetworkUpdate(const String&, bool);
  9659. // Properties:
  9660. /* readonly */
  9661. Array<Variant> attributeDefaults;
  9662. /* readonly */
  9663. Array<AttributeInfo> attributeInfos;
  9664. Array<Variant> attributes;
  9665. /* readonly */
  9666. String category;
  9667. /* readonly */
  9668. uint numAttributes;
  9669. /* readonly */
  9670. int refs;
  9671. bool temporary;
  9672. /* readonly */
  9673. StringHash type;
  9674. /* readonly */
  9675. String typeName;
  9676. /* readonly */
  9677. int weakRefs;
  9678. };
  9679. class Serializer
  9680. {
  9681. // Methods:
  9682. uint Write(Array<uint8>);
  9683. bool WriteBool(bool);
  9684. bool WriteBoundingBox(const BoundingBox&);
  9685. bool WriteByte(int8);
  9686. bool WriteColor(const Color&);
  9687. bool WriteDouble(double);
  9688. bool WriteFileID(const String&);
  9689. bool WriteFloat(float);
  9690. bool WriteInt(int);
  9691. bool WriteInt64(int64);
  9692. bool WriteIntRect(const IntRect&);
  9693. bool WriteIntVector2(const IntVector2&);
  9694. bool WriteLine(const String&);
  9695. bool WriteMatrix3(const Matrix3&);
  9696. bool WriteMatrix3x4(const Matrix3x4&);
  9697. bool WriteMatrix4(const Matrix4&);
  9698. bool WriteNetID(uint);
  9699. bool WritePackedQuaternion(const Quaternion&);
  9700. bool WritePackedVector3(const Vector3&, float);
  9701. bool WriteQuaternion(const Quaternion&);
  9702. bool WriteShort(int16);
  9703. bool WriteString(const String&);
  9704. bool WriteStringHash(const StringHash&);
  9705. bool WriteUByte(uint8);
  9706. bool WriteUInt(uint);
  9707. bool WriteUInt64(uint64);
  9708. bool WriteUShort(uint16);
  9709. bool WriteVLE(uint);
  9710. bool WriteVariant(const Variant&);
  9711. bool WriteVariantMap(const VariantMap&);
  9712. bool WriteVector2(const Vector2&);
  9713. bool WriteVector3(const Vector3&);
  9714. bool WriteVector4(const Vector4&);
  9715. bool WriteVectorBuffer(const VectorBuffer&);
  9716. };
  9717. class Skeleton
  9718. {
  9719. // Methods:
  9720. Bone GetBone(const String&) const;
  9721. void Reset();
  9722. // Properties:
  9723. /* readonly */
  9724. Array<Bone> bones;
  9725. /* readonly */
  9726. uint numBones;
  9727. /* readonly */
  9728. Bone rootBone;
  9729. };
  9730. class Skybox
  9731. {
  9732. // Methods:
  9733. void ApplyAttributes();
  9734. void ApplyMaterialList(const String& = String ( ));
  9735. void DrawDebugGeometry(DebugRenderer, bool);
  9736. Variant GetAttribute(const String&) const;
  9737. ValueAnimation GetAttributeAnimation(const String&) const;
  9738. float GetAttributeAnimationSpeed(const String&) const;
  9739. float GetAttributeAnimationTime(const String&) const;
  9740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9741. Variant GetAttributeDefault(const String&) const;
  9742. bool GetInterceptNetworkUpdate(const String&) const;
  9743. bool HasSubscribedToEvent(Object, const String&);
  9744. bool HasSubscribedToEvent(const String&);
  9745. bool IsInView(Camera) const;
  9746. bool Load(File, bool = false);
  9747. bool Load(VectorBuffer&, bool = false);
  9748. bool LoadJSON(const JSONValue&, bool = false);
  9749. bool LoadXML(const XMLElement&, bool = false);
  9750. void MarkNetworkUpdate() const;
  9751. void Remove();
  9752. void RemoveAttributeAnimation(const String&);
  9753. void RemoveInstanceDefault();
  9754. void RemoveObjectAnimation();
  9755. void ResetToDefault();
  9756. bool Save(File) const;
  9757. bool Save(VectorBuffer&) const;
  9758. bool SaveJSON(JSONValue&) const;
  9759. bool SaveXML(XMLElement&) const;
  9760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9761. void SetAnimationTime(float);
  9762. bool SetAttribute(const String&, const Variant&);
  9763. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9764. void SetAttributeAnimationSpeed(const String&, float);
  9765. void SetAttributeAnimationTime(const String&, float);
  9766. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9767. void SetInterceptNetworkUpdate(const String&, bool);
  9768. // Properties:
  9769. bool animationEnabled;
  9770. /* readonly */
  9771. Array<Variant> attributeDefaults;
  9772. /* readonly */
  9773. Array<AttributeInfo> attributeInfos;
  9774. Array<Variant> attributes;
  9775. /* readonly */
  9776. BoundingBox boundingBox;
  9777. bool castShadows;
  9778. /* readonly */
  9779. String category;
  9780. float drawDistance;
  9781. bool enabled;
  9782. /* readonly */
  9783. bool enabledEffective;
  9784. /* readonly */
  9785. uint id;
  9786. /* readonly */
  9787. bool inView;
  9788. uint lightMask;
  9789. float lodBias;
  9790. /* writeonly */
  9791. Material material;
  9792. Array<Material> materials;
  9793. uint maxLights;
  9794. Model model;
  9795. /* readonly */
  9796. Node node;
  9797. /* readonly */
  9798. uint numAttributes;
  9799. /* readonly */
  9800. uint numGeometries;
  9801. ObjectAnimation objectAnimation;
  9802. bool occludee;
  9803. bool occluder;
  9804. /* readonly */
  9805. int refs;
  9806. float shadowDistance;
  9807. uint shadowMask;
  9808. bool temporary;
  9809. /* readonly */
  9810. StringHash type;
  9811. /* readonly */
  9812. String typeName;
  9813. uint viewMask;
  9814. /* readonly */
  9815. int weakRefs;
  9816. /* readonly */
  9817. BoundingBox worldBoundingBox;
  9818. /* readonly */
  9819. Zone zone;
  9820. uint zoneMask;
  9821. };
  9822. class Slider
  9823. {
  9824. // Methods:
  9825. void AddChild(UIElement);
  9826. void AddTag(const String&);
  9827. void AddTags(const String&, int8 = ';');
  9828. void ApplyAttributes();
  9829. void BringToFront();
  9830. void ChangeValue(float);
  9831. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9832. void DisableLayoutUpdate();
  9833. IntVector2 ElementToScreen(const IntVector2&);
  9834. void EnableLayoutUpdate();
  9835. uint FindChild(UIElement) const;
  9836. Variant GetAttribute(const String&) const;
  9837. ValueAnimation GetAttributeAnimation(const String&) const;
  9838. float GetAttributeAnimationSpeed(const String&) const;
  9839. float GetAttributeAnimationTime(const String&) const;
  9840. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9841. Variant GetAttributeDefault(const String&) const;
  9842. UIElement GetChild(const String&, bool = false) const;
  9843. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9844. Array<UIElement> GetChildren(bool = false) const;
  9845. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9846. UIElement GetElementEventSender() const;
  9847. bool GetInterceptNetworkUpdate(const String&) const;
  9848. uint GetNumChildren(bool) const;
  9849. bool HasSubscribedToEvent(Object, const String&);
  9850. bool HasSubscribedToEvent(const String&);
  9851. bool HasTag(const String&) const;
  9852. void InsertChild(uint, UIElement);
  9853. bool IsInside(IntVector2, bool);
  9854. bool IsInsideCombined(IntVector2, bool);
  9855. bool Load(File, bool = false);
  9856. bool Load(VectorBuffer&, bool = false);
  9857. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9858. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9859. bool LoadJSON(const JSONValue&, bool = false);
  9860. bool LoadXML(File);
  9861. bool LoadXML(VectorBuffer&);
  9862. bool LoadXML(XMLFile, XMLFile);
  9863. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9864. bool LoadXML(const XMLElement&, bool = false);
  9865. void MarkNetworkUpdate() const;
  9866. void Remove();
  9867. void RemoveAllChildren();
  9868. void RemoveAllTags();
  9869. void RemoveAttributeAnimation(const String&);
  9870. void RemoveChild(UIElement, uint = 0);
  9871. void RemoveChild(uint);
  9872. void RemoveInstanceDefault();
  9873. void RemoveObjectAnimation();
  9874. bool RemoveTag(const String&);
  9875. void ResetDeepEnabled();
  9876. void ResetToDefault();
  9877. bool Save(File) const;
  9878. bool Save(VectorBuffer&) const;
  9879. bool SaveJSON(JSONValue&) const;
  9880. bool SaveXML(File, const String& = "\t");
  9881. bool SaveXML(VectorBuffer&, const String& = "\t");
  9882. bool SaveXML(XMLElement&) const;
  9883. IntVector2 ScreenToElement(const IntVector2&);
  9884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9885. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9886. void SetAnimationTime(float);
  9887. bool SetAttribute(const String&, const Variant&);
  9888. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9889. void SetAttributeAnimationSpeed(const String&, float);
  9890. void SetAttributeAnimationTime(const String&, float);
  9891. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9892. void SetDeepEnabled(bool);
  9893. void SetEnabledRecursive(bool);
  9894. void SetFixedHeight(int);
  9895. void SetFixedSize(int, int);
  9896. void SetFixedWidth(int);
  9897. void SetFullImageRect();
  9898. void SetHoverOffset(int, int);
  9899. void SetInterceptNetworkUpdate(const String&, bool);
  9900. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9901. void SetMaxAnchor(float, float);
  9902. void SetMaxSize(int, int);
  9903. void SetMinAnchor(float, float);
  9904. void SetMinSize(int, int);
  9905. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9906. void SetPivot(float, float);
  9907. void SetPosition(int, int);
  9908. void SetSize(int, int);
  9909. bool SetStyle(const String&, XMLFile = null);
  9910. bool SetStyle(const XMLElement&);
  9911. bool SetStyleAuto(XMLFile = null);
  9912. void UpdateLayout();
  9913. const Variant& GetVar(const StringHash&);
  9914. // Properties:
  9915. bool animationEnabled;
  9916. /* readonly */
  9917. Array<Variant> attributeDefaults;
  9918. /* readonly */
  9919. Array<AttributeInfo> attributeInfos;
  9920. Array<Variant> attributes;
  9921. BlendMode blendMode;
  9922. IntRect border;
  9923. bool bringToBack;
  9924. bool bringToFront;
  9925. /* readonly */
  9926. String category;
  9927. /* readonly */
  9928. IntVector2 childOffset;
  9929. /* readonly */
  9930. Array<UIElement> children;
  9931. IntRect clipBorder;
  9932. bool clipChildren;
  9933. /* writeonly */
  9934. Color color;
  9935. /* readonly */
  9936. bool colorGradient;
  9937. Array<Color> colors;
  9938. /* readonly */
  9939. IntRect combinedScreenRect;
  9940. XMLFile defaultStyle;
  9941. /* readonly */
  9942. float derivedOpacity;
  9943. /* readonly */
  9944. uint dragButtonCombo;
  9945. /* readonly */
  9946. int dragButtonCount;
  9947. uint dragDropMode;
  9948. bool editable;
  9949. bool elementEventSender;
  9950. bool enableAnchor;
  9951. bool enabled;
  9952. /* readonly */
  9953. bool enabledSelf;
  9954. /* readonly */
  9955. bool fixedHeight;
  9956. /* readonly */
  9957. bool fixedSize;
  9958. /* readonly */
  9959. bool fixedWidth;
  9960. bool focus;
  9961. FocusMode focusMode;
  9962. int height;
  9963. HorizontalAlignment horizontalAlignment;
  9964. IntVector2 hoverOffset;
  9965. /* readonly */
  9966. bool hovering;
  9967. IntRect imageBorder;
  9968. IntRect imageRect;
  9969. int indent;
  9970. int indentSpacing;
  9971. /* readonly */
  9972. int indentWidth;
  9973. bool internal;
  9974. /* readonly */
  9975. BorderImage knob;
  9976. IntRect layoutBorder;
  9977. Vector2 layoutFlexScale;
  9978. LayoutMode layoutMode;
  9979. int layoutSpacing;
  9980. Vector2 maxAnchor;
  9981. int maxHeight;
  9982. IntVector2 maxOffset;
  9983. IntVector2 maxSize;
  9984. int maxWidth;
  9985. Vector2 minAnchor;
  9986. int minHeight;
  9987. IntVector2 minOffset;
  9988. IntVector2 minSize;
  9989. int minWidth;
  9990. String name;
  9991. /* readonly */
  9992. uint numAllChildren;
  9993. /* readonly */
  9994. uint numAttributes;
  9995. /* readonly */
  9996. uint numChildren;
  9997. ObjectAnimation objectAnimation;
  9998. float opacity;
  9999. Orientation orientation;
  10000. UIElement parent;
  10001. Vector2 pivot;
  10002. IntVector2 position;
  10003. int priority;
  10004. float range;
  10005. /* readonly */
  10006. int refs;
  10007. float repeatRate;
  10008. /* readonly */
  10009. UIElement root;
  10010. /* readonly */
  10011. IntVector2 screenPosition;
  10012. bool selected;
  10013. IntVector2 size;
  10014. bool sortChildren;
  10015. String style;
  10016. /* readonly */
  10017. Array<String> tags;
  10018. bool temporary;
  10019. Texture texture;
  10020. bool tiled;
  10021. TraversalMode traversalMode;
  10022. /* readonly */
  10023. StringHash type;
  10024. /* readonly */
  10025. String typeName;
  10026. bool useDerivedOpacity;
  10027. float value;
  10028. /* readonly */
  10029. VariantMap vars;
  10030. VerticalAlignment verticalAlignment;
  10031. bool visible;
  10032. /* readonly */
  10033. bool visibleEffective;
  10034. /* readonly */
  10035. int weakRefs;
  10036. int width;
  10037. };
  10038. class SmoothedTransform
  10039. {
  10040. // Methods:
  10041. void ApplyAttributes();
  10042. void DrawDebugGeometry(DebugRenderer, bool);
  10043. Variant GetAttribute(const String&) const;
  10044. ValueAnimation GetAttributeAnimation(const String&) const;
  10045. float GetAttributeAnimationSpeed(const String&) const;
  10046. float GetAttributeAnimationTime(const String&) const;
  10047. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10048. Variant GetAttributeDefault(const String&) const;
  10049. bool GetInterceptNetworkUpdate(const String&) const;
  10050. bool HasSubscribedToEvent(Object, const String&);
  10051. bool HasSubscribedToEvent(const String&);
  10052. bool Load(File, bool = false);
  10053. bool Load(VectorBuffer&, bool = false);
  10054. bool LoadJSON(const JSONValue&, bool = false);
  10055. bool LoadXML(const XMLElement&, bool = false);
  10056. void MarkNetworkUpdate() const;
  10057. void Remove();
  10058. void RemoveAttributeAnimation(const String&);
  10059. void RemoveInstanceDefault();
  10060. void RemoveObjectAnimation();
  10061. void ResetToDefault();
  10062. bool Save(File) const;
  10063. bool Save(VectorBuffer&) const;
  10064. bool SaveJSON(JSONValue&) const;
  10065. bool SaveXML(XMLElement&) const;
  10066. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10067. void SetAnimationTime(float);
  10068. bool SetAttribute(const String&, const Variant&);
  10069. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10070. void SetAttributeAnimationSpeed(const String&, float);
  10071. void SetAttributeAnimationTime(const String&, float);
  10072. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10073. void SetInterceptNetworkUpdate(const String&, bool);
  10074. void Update(float, float);
  10075. // Properties:
  10076. bool animationEnabled;
  10077. /* readonly */
  10078. Array<Variant> attributeDefaults;
  10079. /* readonly */
  10080. Array<AttributeInfo> attributeInfos;
  10081. Array<Variant> attributes;
  10082. /* readonly */
  10083. String category;
  10084. bool enabled;
  10085. /* readonly */
  10086. bool enabledEffective;
  10087. /* readonly */
  10088. uint id;
  10089. /* readonly */
  10090. bool inProgress;
  10091. /* readonly */
  10092. Node node;
  10093. /* readonly */
  10094. uint numAttributes;
  10095. ObjectAnimation objectAnimation;
  10096. /* readonly */
  10097. int refs;
  10098. Vector3 targetPosition;
  10099. Quaternion targetRotation;
  10100. Vector3 targetWorldPosition;
  10101. Quaternion targetWorldRotation;
  10102. bool temporary;
  10103. /* readonly */
  10104. StringHash type;
  10105. /* readonly */
  10106. String typeName;
  10107. /* readonly */
  10108. int weakRefs;
  10109. };
  10110. class Sound
  10111. {
  10112. // Methods:
  10113. bool HasSubscribedToEvent(Object, const String&);
  10114. bool HasSubscribedToEvent(const String&);
  10115. bool Load(File);
  10116. bool Load(VectorBuffer&);
  10117. bool Load(const String&);
  10118. bool Save(File) const;
  10119. bool Save(VectorBuffer&) const;
  10120. bool Save(const String&) const;
  10121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10122. // Properties:
  10123. /* readonly */
  10124. String category;
  10125. /* readonly */
  10126. bool compressed;
  10127. /* readonly */
  10128. float frequency;
  10129. /* readonly */
  10130. float length;
  10131. bool looped;
  10132. /* readonly */
  10133. uint memoryUse;
  10134. String name;
  10135. /* readonly */
  10136. int refs;
  10137. /* readonly */
  10138. uint sampleSize;
  10139. /* readonly */
  10140. bool sixteenBit;
  10141. /* readonly */
  10142. bool stereo;
  10143. /* readonly */
  10144. StringHash type;
  10145. /* readonly */
  10146. String typeName;
  10147. /* readonly */
  10148. uint useTimer;
  10149. /* readonly */
  10150. int weakRefs;
  10151. };
  10152. class SoundListener
  10153. {
  10154. // Methods:
  10155. void ApplyAttributes();
  10156. void DrawDebugGeometry(DebugRenderer, bool);
  10157. Variant GetAttribute(const String&) const;
  10158. ValueAnimation GetAttributeAnimation(const String&) const;
  10159. float GetAttributeAnimationSpeed(const String&) const;
  10160. float GetAttributeAnimationTime(const String&) const;
  10161. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10162. Variant GetAttributeDefault(const String&) const;
  10163. bool GetInterceptNetworkUpdate(const String&) const;
  10164. bool HasSubscribedToEvent(Object, const String&);
  10165. bool HasSubscribedToEvent(const String&);
  10166. bool Load(File, bool = false);
  10167. bool Load(VectorBuffer&, bool = false);
  10168. bool LoadJSON(const JSONValue&, bool = false);
  10169. bool LoadXML(const XMLElement&, bool = false);
  10170. void MarkNetworkUpdate() const;
  10171. void Remove();
  10172. void RemoveAttributeAnimation(const String&);
  10173. void RemoveInstanceDefault();
  10174. void RemoveObjectAnimation();
  10175. void ResetToDefault();
  10176. bool Save(File) const;
  10177. bool Save(VectorBuffer&) const;
  10178. bool SaveJSON(JSONValue&) const;
  10179. bool SaveXML(XMLElement&) const;
  10180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10181. void SetAnimationTime(float);
  10182. bool SetAttribute(const String&, const Variant&);
  10183. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10184. void SetAttributeAnimationSpeed(const String&, float);
  10185. void SetAttributeAnimationTime(const String&, float);
  10186. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10187. void SetInterceptNetworkUpdate(const String&, bool);
  10188. // Properties:
  10189. bool animationEnabled;
  10190. /* readonly */
  10191. Array<Variant> attributeDefaults;
  10192. /* readonly */
  10193. Array<AttributeInfo> attributeInfos;
  10194. Array<Variant> attributes;
  10195. /* readonly */
  10196. String category;
  10197. bool enabled;
  10198. /* readonly */
  10199. bool enabledEffective;
  10200. /* readonly */
  10201. uint id;
  10202. /* readonly */
  10203. Node node;
  10204. /* readonly */
  10205. uint numAttributes;
  10206. ObjectAnimation objectAnimation;
  10207. /* readonly */
  10208. int refs;
  10209. bool temporary;
  10210. /* readonly */
  10211. StringHash type;
  10212. /* readonly */
  10213. String typeName;
  10214. /* readonly */
  10215. int weakRefs;
  10216. };
  10217. class SoundSource
  10218. {
  10219. // Methods:
  10220. void ApplyAttributes();
  10221. void DrawDebugGeometry(DebugRenderer, bool);
  10222. Variant GetAttribute(const String&) const;
  10223. ValueAnimation GetAttributeAnimation(const String&) const;
  10224. float GetAttributeAnimationSpeed(const String&) const;
  10225. float GetAttributeAnimationTime(const String&) const;
  10226. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10227. Variant GetAttributeDefault(const String&) const;
  10228. bool GetInterceptNetworkUpdate(const String&) const;
  10229. bool HasSubscribedToEvent(Object, const String&);
  10230. bool HasSubscribedToEvent(const String&);
  10231. bool Load(File, bool = false);
  10232. bool Load(VectorBuffer&, bool = false);
  10233. bool LoadJSON(const JSONValue&, bool = false);
  10234. bool LoadXML(const XMLElement&, bool = false);
  10235. void MarkNetworkUpdate() const;
  10236. void Play(Sound);
  10237. void Play(Sound, float);
  10238. void Play(Sound, float, float);
  10239. void Play(Sound, float, float, float);
  10240. void Remove();
  10241. void RemoveAttributeAnimation(const String&);
  10242. void RemoveInstanceDefault();
  10243. void RemoveObjectAnimation();
  10244. void ResetToDefault();
  10245. bool Save(File) const;
  10246. bool Save(VectorBuffer&) const;
  10247. bool SaveJSON(JSONValue&) const;
  10248. bool SaveXML(XMLElement&) const;
  10249. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10250. void SetAnimationTime(float);
  10251. bool SetAttribute(const String&, const Variant&);
  10252. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10253. void SetAttributeAnimationSpeed(const String&, float);
  10254. void SetAttributeAnimationTime(const String&, float);
  10255. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10256. void SetInterceptNetworkUpdate(const String&, bool);
  10257. void Stop();
  10258. // Properties:
  10259. bool animationEnabled;
  10260. /* readonly */
  10261. float attenuation;
  10262. /* readonly */
  10263. Array<Variant> attributeDefaults;
  10264. /* readonly */
  10265. Array<AttributeInfo> attributeInfos;
  10266. Array<Variant> attributes;
  10267. AutoRemoveMode autoRemoveMode;
  10268. /* readonly */
  10269. String category;
  10270. bool enabled;
  10271. /* readonly */
  10272. bool enabledEffective;
  10273. float frequency;
  10274. float gain;
  10275. /* readonly */
  10276. uint id;
  10277. /* readonly */
  10278. Node node;
  10279. /* readonly */
  10280. uint numAttributes;
  10281. ObjectAnimation objectAnimation;
  10282. float panning;
  10283. /* readonly */
  10284. bool playing;
  10285. /* readonly */
  10286. int refs;
  10287. /* readonly */
  10288. Sound sound;
  10289. String soundType;
  10290. bool temporary;
  10291. /* readonly */
  10292. float timePosition;
  10293. /* readonly */
  10294. StringHash type;
  10295. /* readonly */
  10296. String typeName;
  10297. /* readonly */
  10298. int weakRefs;
  10299. };
  10300. class SoundSource3D
  10301. {
  10302. // Methods:
  10303. void ApplyAttributes();
  10304. void DrawDebugGeometry(DebugRenderer, bool);
  10305. Variant GetAttribute(const String&) const;
  10306. ValueAnimation GetAttributeAnimation(const String&) const;
  10307. float GetAttributeAnimationSpeed(const String&) const;
  10308. float GetAttributeAnimationTime(const String&) const;
  10309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10310. Variant GetAttributeDefault(const String&) const;
  10311. bool GetInterceptNetworkUpdate(const String&) const;
  10312. bool HasSubscribedToEvent(Object, const String&);
  10313. bool HasSubscribedToEvent(const String&);
  10314. bool Load(File, bool = false);
  10315. bool Load(VectorBuffer&, bool = false);
  10316. bool LoadJSON(const JSONValue&, bool = false);
  10317. bool LoadXML(const XMLElement&, bool = false);
  10318. void MarkNetworkUpdate() const;
  10319. void Play(Sound);
  10320. void Play(Sound, float);
  10321. void Play(Sound, float, float);
  10322. void Play(Sound, float, float, float);
  10323. void Remove();
  10324. void RemoveAttributeAnimation(const String&);
  10325. void RemoveInstanceDefault();
  10326. void RemoveObjectAnimation();
  10327. void ResetToDefault();
  10328. bool Save(File) const;
  10329. bool Save(VectorBuffer&) const;
  10330. bool SaveJSON(JSONValue&) const;
  10331. bool SaveXML(XMLElement&) const;
  10332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10333. void SetAngleAttenuation(float, float);
  10334. void SetAnimationTime(float);
  10335. bool SetAttribute(const String&, const Variant&);
  10336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10337. void SetAttributeAnimationSpeed(const String&, float);
  10338. void SetAttributeAnimationTime(const String&, float);
  10339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10340. void SetDistanceAttenuation(float, float, float);
  10341. void SetInterceptNetworkUpdate(const String&, bool);
  10342. void Stop();
  10343. // Properties:
  10344. bool animationEnabled;
  10345. /* readonly */
  10346. float attenuation;
  10347. /* readonly */
  10348. Array<Variant> attributeDefaults;
  10349. /* readonly */
  10350. Array<AttributeInfo> attributeInfos;
  10351. Array<Variant> attributes;
  10352. AutoRemoveMode autoRemoveMode;
  10353. /* readonly */
  10354. String category;
  10355. bool enabled;
  10356. /* readonly */
  10357. bool enabledEffective;
  10358. float farDistance;
  10359. float frequency;
  10360. float gain;
  10361. /* readonly */
  10362. uint id;
  10363. float innerAngle;
  10364. float nearDistance;
  10365. /* readonly */
  10366. Node node;
  10367. /* readonly */
  10368. uint numAttributes;
  10369. ObjectAnimation objectAnimation;
  10370. float outerAngle;
  10371. float panning;
  10372. /* readonly */
  10373. bool playing;
  10374. /* readonly */
  10375. int refs;
  10376. float rolloffFactor;
  10377. /* readonly */
  10378. Sound sound;
  10379. String soundType;
  10380. bool temporary;
  10381. /* readonly */
  10382. float timePosition;
  10383. /* readonly */
  10384. StringHash type;
  10385. /* readonly */
  10386. String typeName;
  10387. /* readonly */
  10388. int weakRefs;
  10389. };
  10390. class Sphere
  10391. {
  10392. // Methods:
  10393. void Clear();
  10394. void Define(const BoundingBox&);
  10395. void Define(const Frustum&);
  10396. void Define(const Polyhedron&);
  10397. void Define(const Sphere&);
  10398. void Define(const Vector3&, float);
  10399. bool Defined() const;
  10400. float Distance(const Vector3&) const;
  10401. Intersection IsInside(const BoundingBox&) const;
  10402. Intersection IsInside(const Sphere&) const;
  10403. Intersection IsInside(const Vector3&) const;
  10404. Intersection IsInsideFast(const BoundingBox&) const;
  10405. Intersection IsInsideFast(const Sphere&) const;
  10406. void Merge(const BoundingBox&);
  10407. void Merge(const Frustum&);
  10408. void Merge(const Sphere&);
  10409. void Merge(const Vector3&);
  10410. // Properties:
  10411. Vector3 center;
  10412. float radius;
  10413. };
  10414. class Spline
  10415. {
  10416. // Methods:
  10417. void AddKnot(const Variant&);
  10418. void AddKnot(const Variant&, uint);
  10419. void Clear();
  10420. Variant GetPoint(float);
  10421. void RemoveKnot();
  10422. void RemoveKnot(uint);
  10423. // Properties:
  10424. InterpolationMode interpolationMode;
  10425. Array<Variant> knot;
  10426. Array<Variant> knots;
  10427. };
  10428. class SplinePath
  10429. {
  10430. // Methods:
  10431. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10432. void ApplyAttributes();
  10433. void ClearControlPoints();
  10434. void DrawDebugGeometry(DebugRenderer, bool);
  10435. Variant GetAttribute(const String&) const;
  10436. ValueAnimation GetAttributeAnimation(const String&) const;
  10437. float GetAttributeAnimationSpeed(const String&) const;
  10438. float GetAttributeAnimationTime(const String&) const;
  10439. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10440. Variant GetAttributeDefault(const String&) const;
  10441. bool GetInterceptNetworkUpdate(const String&) const;
  10442. Vector3 GetPoint(float) const;
  10443. Vector3 GetPosition() const;
  10444. bool HasSubscribedToEvent(Object, const String&);
  10445. bool HasSubscribedToEvent(const String&);
  10446. bool Load(File, bool = false);
  10447. bool Load(VectorBuffer&, bool = false);
  10448. bool LoadJSON(const JSONValue&, bool = false);
  10449. bool LoadXML(const XMLElement&, bool = false);
  10450. void MarkNetworkUpdate() const;
  10451. void Move(float);
  10452. void Remove();
  10453. void RemoveAttributeAnimation(const String&);
  10454. void RemoveControlPoint(Node);
  10455. void RemoveInstanceDefault();
  10456. void RemoveObjectAnimation();
  10457. void Reset();
  10458. void ResetToDefault();
  10459. bool Save(File) const;
  10460. bool Save(VectorBuffer&) const;
  10461. bool SaveJSON(JSONValue&) const;
  10462. bool SaveXML(XMLElement&) const;
  10463. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10464. void SetAnimationTime(float);
  10465. bool SetAttribute(const String&, const Variant&);
  10466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10467. void SetAttributeAnimationSpeed(const String&, float);
  10468. void SetAttributeAnimationTime(const String&, float);
  10469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10470. void SetInterceptNetworkUpdate(const String&, bool);
  10471. void SetPosition(float);
  10472. // Properties:
  10473. bool animationEnabled;
  10474. /* readonly */
  10475. Array<Variant> attributeDefaults;
  10476. /* readonly */
  10477. Array<AttributeInfo> attributeInfos;
  10478. Array<Variant> attributes;
  10479. /* readonly */
  10480. String category;
  10481. Node controlledNode;
  10482. bool enabled;
  10483. /* readonly */
  10484. bool enabledEffective;
  10485. /* readonly */
  10486. uint id;
  10487. InterpolationMode interpolationMode;
  10488. /* readonly */
  10489. bool isFinished;
  10490. /* readonly */
  10491. float length;
  10492. /* readonly */
  10493. Node node;
  10494. /* readonly */
  10495. uint numAttributes;
  10496. ObjectAnimation objectAnimation;
  10497. /* readonly */
  10498. int refs;
  10499. float speed;
  10500. bool temporary;
  10501. /* readonly */
  10502. StringHash type;
  10503. /* readonly */
  10504. String typeName;
  10505. /* readonly */
  10506. int weakRefs;
  10507. };
  10508. class Sprite
  10509. {
  10510. // Methods:
  10511. void AddChild(UIElement);
  10512. void AddTag(const String&);
  10513. void AddTags(const String&, int8 = ';');
  10514. void ApplyAttributes();
  10515. void BringToFront();
  10516. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10517. void DisableLayoutUpdate();
  10518. IntVector2 ElementToScreen(const IntVector2&);
  10519. void EnableLayoutUpdate();
  10520. uint FindChild(UIElement) const;
  10521. Variant GetAttribute(const String&) const;
  10522. ValueAnimation GetAttributeAnimation(const String&) const;
  10523. float GetAttributeAnimationSpeed(const String&) const;
  10524. float GetAttributeAnimationTime(const String&) const;
  10525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10526. Variant GetAttributeDefault(const String&) const;
  10527. UIElement GetChild(const String&, bool = false) const;
  10528. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10529. Array<UIElement> GetChildren(bool = false) const;
  10530. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10531. UIElement GetElementEventSender() const;
  10532. bool GetInterceptNetworkUpdate(const String&) const;
  10533. uint GetNumChildren(bool) const;
  10534. bool HasSubscribedToEvent(Object, const String&);
  10535. bool HasSubscribedToEvent(const String&);
  10536. bool HasTag(const String&) const;
  10537. void InsertChild(uint, UIElement);
  10538. bool IsInside(IntVector2, bool);
  10539. bool IsInsideCombined(IntVector2, bool);
  10540. bool Load(File, bool = false);
  10541. bool Load(VectorBuffer&, bool = false);
  10542. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10543. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10544. bool LoadJSON(const JSONValue&, bool = false);
  10545. bool LoadXML(File);
  10546. bool LoadXML(VectorBuffer&);
  10547. bool LoadXML(XMLFile, XMLFile);
  10548. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10549. bool LoadXML(const XMLElement&, bool = false);
  10550. void MarkNetworkUpdate() const;
  10551. void Remove();
  10552. void RemoveAllChildren();
  10553. void RemoveAllTags();
  10554. void RemoveAttributeAnimation(const String&);
  10555. void RemoveChild(UIElement, uint = 0);
  10556. void RemoveChild(uint);
  10557. void RemoveInstanceDefault();
  10558. void RemoveObjectAnimation();
  10559. bool RemoveTag(const String&);
  10560. void ResetDeepEnabled();
  10561. void ResetToDefault();
  10562. bool Save(File) const;
  10563. bool Save(VectorBuffer&) const;
  10564. bool SaveJSON(JSONValue&) const;
  10565. bool SaveXML(File, const String& = "\t");
  10566. bool SaveXML(VectorBuffer&, const String& = "\t");
  10567. bool SaveXML(XMLElement&) const;
  10568. IntVector2 ScreenToElement(const IntVector2&);
  10569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10570. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10571. void SetAnimationTime(float);
  10572. bool SetAttribute(const String&, const Variant&);
  10573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10574. void SetAttributeAnimationSpeed(const String&, float);
  10575. void SetAttributeAnimationTime(const String&, float);
  10576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10577. void SetDeepEnabled(bool);
  10578. void SetEnabledRecursive(bool);
  10579. void SetFixedHeight(int);
  10580. void SetFixedSize(int, int);
  10581. void SetFixedWidth(int);
  10582. void SetFullImageRect();
  10583. void SetHotSpot(int, int);
  10584. void SetInterceptNetworkUpdate(const String&, bool);
  10585. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10586. void SetMaxAnchor(float, float);
  10587. void SetMaxSize(int, int);
  10588. void SetMinAnchor(float, float);
  10589. void SetMinSize(int, int);
  10590. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10591. void SetPivot(float, float);
  10592. void SetPosition(float, float);
  10593. void SetScale(float);
  10594. void SetScale(float, float);
  10595. void SetSize(int, int);
  10596. bool SetStyle(const String&, XMLFile = null);
  10597. bool SetStyle(const XMLElement&);
  10598. bool SetStyleAuto(XMLFile = null);
  10599. void UpdateLayout();
  10600. const Variant& GetVar(const StringHash&);
  10601. // Properties:
  10602. bool animationEnabled;
  10603. /* readonly */
  10604. Array<Variant> attributeDefaults;
  10605. /* readonly */
  10606. Array<AttributeInfo> attributeInfos;
  10607. Array<Variant> attributes;
  10608. BlendMode blendMode;
  10609. bool bringToBack;
  10610. bool bringToFront;
  10611. /* readonly */
  10612. String category;
  10613. /* readonly */
  10614. IntVector2 childOffset;
  10615. /* readonly */
  10616. Array<UIElement> children;
  10617. IntRect clipBorder;
  10618. bool clipChildren;
  10619. /* writeonly */
  10620. Color color;
  10621. /* readonly */
  10622. bool colorGradient;
  10623. Array<Color> colors;
  10624. /* readonly */
  10625. IntRect combinedScreenRect;
  10626. XMLFile defaultStyle;
  10627. /* readonly */
  10628. float derivedOpacity;
  10629. /* readonly */
  10630. uint dragButtonCombo;
  10631. /* readonly */
  10632. int dragButtonCount;
  10633. uint dragDropMode;
  10634. bool editable;
  10635. bool elementEventSender;
  10636. bool enableAnchor;
  10637. bool enabled;
  10638. /* readonly */
  10639. bool enabledSelf;
  10640. /* readonly */
  10641. bool fixedHeight;
  10642. /* readonly */
  10643. bool fixedSize;
  10644. /* readonly */
  10645. bool fixedWidth;
  10646. bool focus;
  10647. FocusMode focusMode;
  10648. int height;
  10649. HorizontalAlignment horizontalAlignment;
  10650. IntVector2 hotSpot;
  10651. /* readonly */
  10652. bool hovering;
  10653. IntRect imageRect;
  10654. int indent;
  10655. int indentSpacing;
  10656. /* readonly */
  10657. int indentWidth;
  10658. bool internal;
  10659. IntRect layoutBorder;
  10660. Vector2 layoutFlexScale;
  10661. LayoutMode layoutMode;
  10662. int layoutSpacing;
  10663. Vector2 maxAnchor;
  10664. int maxHeight;
  10665. IntVector2 maxOffset;
  10666. IntVector2 maxSize;
  10667. int maxWidth;
  10668. Vector2 minAnchor;
  10669. int minHeight;
  10670. IntVector2 minOffset;
  10671. IntVector2 minSize;
  10672. int minWidth;
  10673. String name;
  10674. /* readonly */
  10675. uint numAllChildren;
  10676. /* readonly */
  10677. uint numAttributes;
  10678. /* readonly */
  10679. uint numChildren;
  10680. ObjectAnimation objectAnimation;
  10681. float opacity;
  10682. UIElement parent;
  10683. Vector2 pivot;
  10684. Vector2 position;
  10685. int priority;
  10686. /* readonly */
  10687. int refs;
  10688. /* readonly */
  10689. UIElement root;
  10690. float rotation;
  10691. Vector2 scale;
  10692. /* readonly */
  10693. IntVector2 screenPosition;
  10694. bool selected;
  10695. IntVector2 size;
  10696. bool sortChildren;
  10697. String style;
  10698. /* readonly */
  10699. Array<String> tags;
  10700. bool temporary;
  10701. Texture texture;
  10702. TraversalMode traversalMode;
  10703. /* readonly */
  10704. StringHash type;
  10705. /* readonly */
  10706. String typeName;
  10707. bool useDerivedOpacity;
  10708. /* readonly */
  10709. VariantMap vars;
  10710. VerticalAlignment verticalAlignment;
  10711. bool visible;
  10712. /* readonly */
  10713. bool visibleEffective;
  10714. /* readonly */
  10715. int weakRefs;
  10716. int width;
  10717. };
  10718. class Sprite2D
  10719. {
  10720. // Methods:
  10721. bool HasSubscribedToEvent(Object, const String&);
  10722. bool HasSubscribedToEvent(const String&);
  10723. bool Load(File);
  10724. bool Load(VectorBuffer&);
  10725. bool Load(const String&);
  10726. bool Save(File) const;
  10727. bool Save(VectorBuffer&) const;
  10728. bool Save(const String&) const;
  10729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10730. // Properties:
  10731. /* readonly */
  10732. String category;
  10733. Vector2 hotSpot;
  10734. /* readonly */
  10735. uint memoryUse;
  10736. String name;
  10737. IntVector2 offset;
  10738. IntRect rectangle;
  10739. /* readonly */
  10740. int refs;
  10741. Texture2D texture;
  10742. float textureEdgeOffset;
  10743. /* readonly */
  10744. StringHash type;
  10745. /* readonly */
  10746. String typeName;
  10747. /* readonly */
  10748. uint useTimer;
  10749. /* readonly */
  10750. int weakRefs;
  10751. };
  10752. class SpriteSheet2D
  10753. {
  10754. // Methods:
  10755. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10756. Sprite2D GetSprite(const String&);
  10757. bool HasSubscribedToEvent(Object, const String&);
  10758. bool HasSubscribedToEvent(const String&);
  10759. bool Load(File);
  10760. bool Load(VectorBuffer&);
  10761. bool Load(const String&);
  10762. bool Save(File) const;
  10763. bool Save(VectorBuffer&) const;
  10764. bool Save(const String&) const;
  10765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10766. // Properties:
  10767. /* readonly */
  10768. String category;
  10769. /* readonly */
  10770. uint memoryUse;
  10771. String name;
  10772. /* readonly */
  10773. int refs;
  10774. Texture2D texture;
  10775. /* readonly */
  10776. StringHash type;
  10777. /* readonly */
  10778. String typeName;
  10779. /* readonly */
  10780. uint useTimer;
  10781. /* readonly */
  10782. int weakRefs;
  10783. };
  10784. class StaticModel
  10785. {
  10786. // Methods:
  10787. void ApplyAttributes();
  10788. void ApplyMaterialList(const String& = String ( ));
  10789. void DrawDebugGeometry(DebugRenderer, bool);
  10790. Variant GetAttribute(const String&) const;
  10791. ValueAnimation GetAttributeAnimation(const String&) const;
  10792. float GetAttributeAnimationSpeed(const String&) const;
  10793. float GetAttributeAnimationTime(const String&) const;
  10794. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10795. Variant GetAttributeDefault(const String&) const;
  10796. bool GetInterceptNetworkUpdate(const String&) const;
  10797. bool HasSubscribedToEvent(Object, const String&);
  10798. bool HasSubscribedToEvent(const String&);
  10799. bool IsInView(Camera) const;
  10800. bool IsInside(const Vector3&) const;
  10801. bool IsInsideLocal(const Vector3&) const;
  10802. bool Load(File, bool = false);
  10803. bool Load(VectorBuffer&, bool = false);
  10804. bool LoadJSON(const JSONValue&, bool = false);
  10805. bool LoadXML(const XMLElement&, bool = false);
  10806. void MarkNetworkUpdate() const;
  10807. void Remove();
  10808. void RemoveAttributeAnimation(const String&);
  10809. void RemoveInstanceDefault();
  10810. void RemoveObjectAnimation();
  10811. void ResetToDefault();
  10812. bool Save(File) const;
  10813. bool Save(VectorBuffer&) const;
  10814. bool SaveJSON(JSONValue&) const;
  10815. bool SaveXML(XMLElement&) const;
  10816. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10817. void SetAnimationTime(float);
  10818. bool SetAttribute(const String&, const Variant&);
  10819. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10820. void SetAttributeAnimationSpeed(const String&, float);
  10821. void SetAttributeAnimationTime(const String&, float);
  10822. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10823. void SetInterceptNetworkUpdate(const String&, bool);
  10824. // Properties:
  10825. bool animationEnabled;
  10826. /* readonly */
  10827. Array<Variant> attributeDefaults;
  10828. /* readonly */
  10829. Array<AttributeInfo> attributeInfos;
  10830. Array<Variant> attributes;
  10831. /* readonly */
  10832. BoundingBox boundingBox;
  10833. bool castShadows;
  10834. /* readonly */
  10835. String category;
  10836. float drawDistance;
  10837. bool enabled;
  10838. /* readonly */
  10839. bool enabledEffective;
  10840. /* readonly */
  10841. uint id;
  10842. /* readonly */
  10843. bool inView;
  10844. uint lightMask;
  10845. float lodBias;
  10846. /* writeonly */
  10847. Material material;
  10848. Array<Material> materials;
  10849. uint maxLights;
  10850. Model model;
  10851. /* readonly */
  10852. Node node;
  10853. /* readonly */
  10854. uint numAttributes;
  10855. /* readonly */
  10856. uint numGeometries;
  10857. ObjectAnimation objectAnimation;
  10858. bool occludee;
  10859. bool occluder;
  10860. uint occlusionLodLevel;
  10861. /* readonly */
  10862. int refs;
  10863. float shadowDistance;
  10864. uint shadowMask;
  10865. bool temporary;
  10866. /* readonly */
  10867. StringHash type;
  10868. /* readonly */
  10869. String typeName;
  10870. uint viewMask;
  10871. /* readonly */
  10872. int weakRefs;
  10873. /* readonly */
  10874. BoundingBox worldBoundingBox;
  10875. uint zoneMask;
  10876. };
  10877. class StaticModelGroup
  10878. {
  10879. // Methods:
  10880. void AddInstanceNode(Node);
  10881. void ApplyAttributes();
  10882. void ApplyMaterialList(const String& = String ( ));
  10883. void DrawDebugGeometry(DebugRenderer, bool);
  10884. Variant GetAttribute(const String&) const;
  10885. ValueAnimation GetAttributeAnimation(const String&) const;
  10886. float GetAttributeAnimationSpeed(const String&) const;
  10887. float GetAttributeAnimationTime(const String&) const;
  10888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10889. Variant GetAttributeDefault(const String&) const;
  10890. bool GetInterceptNetworkUpdate(const String&) const;
  10891. bool HasSubscribedToEvent(Object, const String&);
  10892. bool HasSubscribedToEvent(const String&);
  10893. bool IsInView(Camera) const;
  10894. bool Load(File, bool = false);
  10895. bool Load(VectorBuffer&, bool = false);
  10896. bool LoadJSON(const JSONValue&, bool = false);
  10897. bool LoadXML(const XMLElement&, bool = false);
  10898. void MarkNetworkUpdate() const;
  10899. void Remove();
  10900. void RemoveAllInstanceNodes();
  10901. void RemoveAttributeAnimation(const String&);
  10902. void RemoveInstanceDefault();
  10903. void RemoveInstanceNode(Node);
  10904. void RemoveObjectAnimation();
  10905. void ResetToDefault();
  10906. bool Save(File) const;
  10907. bool Save(VectorBuffer&) const;
  10908. bool SaveJSON(JSONValue&) const;
  10909. bool SaveXML(XMLElement&) const;
  10910. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10911. void SetAnimationTime(float);
  10912. bool SetAttribute(const String&, const Variant&);
  10913. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10914. void SetAttributeAnimationSpeed(const String&, float);
  10915. void SetAttributeAnimationTime(const String&, float);
  10916. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10917. void SetInterceptNetworkUpdate(const String&, bool);
  10918. // Properties:
  10919. bool animationEnabled;
  10920. /* readonly */
  10921. Array<Variant> attributeDefaults;
  10922. /* readonly */
  10923. Array<AttributeInfo> attributeInfos;
  10924. Array<Variant> attributes;
  10925. /* readonly */
  10926. BoundingBox boundingBox;
  10927. bool castShadows;
  10928. /* readonly */
  10929. String category;
  10930. float drawDistance;
  10931. bool enabled;
  10932. /* readonly */
  10933. bool enabledEffective;
  10934. /* readonly */
  10935. uint id;
  10936. /* readonly */
  10937. bool inView;
  10938. /* readonly */
  10939. Array<Node> instanceNodes;
  10940. uint lightMask;
  10941. float lodBias;
  10942. /* writeonly */
  10943. Material material;
  10944. Array<Material> materials;
  10945. uint maxLights;
  10946. Model model;
  10947. /* readonly */
  10948. Node node;
  10949. /* readonly */
  10950. uint numAttributes;
  10951. /* readonly */
  10952. uint numGeometries;
  10953. /* readonly */
  10954. uint numInstanceNodes;
  10955. ObjectAnimation objectAnimation;
  10956. bool occludee;
  10957. bool occluder;
  10958. uint occlusionLodLevel;
  10959. /* readonly */
  10960. int refs;
  10961. float shadowDistance;
  10962. uint shadowMask;
  10963. bool temporary;
  10964. /* readonly */
  10965. StringHash type;
  10966. /* readonly */
  10967. String typeName;
  10968. uint viewMask;
  10969. /* readonly */
  10970. int weakRefs;
  10971. /* readonly */
  10972. BoundingBox worldBoundingBox;
  10973. /* readonly */
  10974. Zone zone;
  10975. uint zoneMask;
  10976. };
  10977. class StaticSprite2D
  10978. {
  10979. // Methods:
  10980. void ApplyAttributes();
  10981. void DrawDebugGeometry(DebugRenderer, bool);
  10982. Variant GetAttribute(const String&) const;
  10983. ValueAnimation GetAttributeAnimation(const String&) const;
  10984. float GetAttributeAnimationSpeed(const String&) const;
  10985. float GetAttributeAnimationTime(const String&) const;
  10986. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10987. Variant GetAttributeDefault(const String&) const;
  10988. bool GetInterceptNetworkUpdate(const String&) const;
  10989. bool HasSubscribedToEvent(Object, const String&);
  10990. bool HasSubscribedToEvent(const String&);
  10991. bool IsInView(Camera) const;
  10992. bool Load(File, bool = false);
  10993. bool Load(VectorBuffer&, bool = false);
  10994. bool LoadJSON(const JSONValue&, bool = false);
  10995. bool LoadXML(const XMLElement&, bool = false);
  10996. void MarkNetworkUpdate() const;
  10997. void Remove();
  10998. void RemoveAttributeAnimation(const String&);
  10999. void RemoveInstanceDefault();
  11000. void RemoveObjectAnimation();
  11001. void ResetToDefault();
  11002. bool Save(File) const;
  11003. bool Save(VectorBuffer&) const;
  11004. bool SaveJSON(JSONValue&) const;
  11005. bool SaveXML(XMLElement&) const;
  11006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11007. void SetAnimationTime(float);
  11008. bool SetAttribute(const String&, const Variant&);
  11009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11010. void SetAttributeAnimationSpeed(const String&, float);
  11011. void SetAttributeAnimationTime(const String&, float);
  11012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11013. void SetFlip(bool, bool);
  11014. void SetInterceptNetworkUpdate(const String&, bool);
  11015. // Properties:
  11016. float alpha;
  11017. bool animationEnabled;
  11018. /* readonly */
  11019. Array<Variant> attributeDefaults;
  11020. /* readonly */
  11021. Array<AttributeInfo> attributeInfos;
  11022. Array<Variant> attributes;
  11023. BlendMode blendMode;
  11024. /* readonly */
  11025. BoundingBox boundingBox;
  11026. bool castShadows;
  11027. /* readonly */
  11028. String category;
  11029. Color color;
  11030. Material customMaterial;
  11031. float drawDistance;
  11032. Rect drawRect;
  11033. bool enabled;
  11034. /* readonly */
  11035. bool enabledEffective;
  11036. bool flipX;
  11037. bool flipY;
  11038. Vector2 hotSpot;
  11039. /* readonly */
  11040. uint id;
  11041. /* readonly */
  11042. bool inView;
  11043. int layer;
  11044. uint lightMask;
  11045. float lodBias;
  11046. uint maxLights;
  11047. /* readonly */
  11048. Node node;
  11049. /* readonly */
  11050. uint numAttributes;
  11051. ObjectAnimation objectAnimation;
  11052. bool occludee;
  11053. bool occluder;
  11054. int orderInLayer;
  11055. /* readonly */
  11056. int refs;
  11057. float shadowDistance;
  11058. uint shadowMask;
  11059. Sprite2D sprite;
  11060. bool temporary;
  11061. Rect textureRect;
  11062. /* readonly */
  11063. StringHash type;
  11064. /* readonly */
  11065. String typeName;
  11066. bool useDrawRect;
  11067. bool useHotSpot;
  11068. bool useTextureRect;
  11069. uint viewMask;
  11070. /* readonly */
  11071. int weakRefs;
  11072. /* readonly */
  11073. BoundingBox worldBoundingBox;
  11074. uint zoneMask;
  11075. };
  11076. class String
  11077. {
  11078. // Methods:
  11079. void AppendUTF8(uint);
  11080. uint AtUTF8(uint) const;
  11081. uint ByteOffsetUTF8(uint) const;
  11082. void Clear();
  11083. int Compare(const String&, bool = true) const;
  11084. bool Contains(const String&, bool = true) const;
  11085. bool Contains(uint8, bool = true) const;
  11086. bool EndsWith(const String&, bool = true) const;
  11087. uint Find(const String&, uint = 0, bool = true) const;
  11088. uint Find(uint8, uint = 0, bool = true) const;
  11089. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11090. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11091. void Join(Array<String>&, const String&);
  11092. uint NextUTF8Char(uint&) const;
  11093. void Replace(const String&, const String&, bool = true);
  11094. void Replace(uint8, uint8, bool = true);
  11095. void ReplaceUTF8(uint, uint);
  11096. String Replaced(const String&, const String&, bool = true) const;
  11097. String Replaced(uint8, uint8, bool = true) const;
  11098. void Resize(uint);
  11099. void SetUTF8FromLatin1(const String&);
  11100. Array<String> Split(uint8, bool = false) const;
  11101. bool StartsWith(const String&, bool = true) const;
  11102. String Substring(uint) const;
  11103. String Substring(uint, uint) const;
  11104. String SubstringUTF8(uint) const;
  11105. String SubstringUTF8(uint, uint) const;
  11106. bool ToBool() const;
  11107. Color ToColor() const;
  11108. double ToDouble() const;
  11109. float ToFloat() const;
  11110. int ToInt(int = 10) const;
  11111. IntRect ToIntRect() const;
  11112. IntVector2 ToIntVector2() const;
  11113. String ToLower() const;
  11114. Matrix3 ToMatrix3() const;
  11115. Matrix3x4 ToMatrix3x4() const;
  11116. Matrix4 ToMatrix4() const;
  11117. Quaternion ToQuaternion() const;
  11118. uint ToUInt(int = 10) const;
  11119. String ToUpper() const;
  11120. Vector2 ToVector2() const;
  11121. Vector3 ToVector3() const;
  11122. Vector4 ToVector4(bool = false) const;
  11123. Variant ToVectorVariant() const;
  11124. String Trimmed() const;
  11125. // Properties:
  11126. /* readonly */
  11127. bool empty;
  11128. /* readonly */
  11129. uint length;
  11130. /* readonly */
  11131. uint utf8Length;
  11132. };
  11133. class StringHash
  11134. {
  11135. // Methods:
  11136. String ToString() const;
  11137. // Properties:
  11138. /* readonly */
  11139. uint value;
  11140. };
  11141. class Technique
  11142. {
  11143. // Methods:
  11144. Technique Clone(const String& = String ( )) const;
  11145. Pass CreatePass(const String&);
  11146. Pass GetPass(const String&);
  11147. Pass GetSupportedPass(const String&);
  11148. bool HasPass(const String&) const;
  11149. bool HasSubscribedToEvent(Object, const String&);
  11150. bool HasSubscribedToEvent(const String&);
  11151. bool Load(File);
  11152. bool Load(VectorBuffer&);
  11153. bool Load(const String&);
  11154. void RemovePass(const String&);
  11155. bool Save(File) const;
  11156. bool Save(VectorBuffer&) const;
  11157. bool Save(const String&) const;
  11158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11159. // Properties:
  11160. /* readonly */
  11161. String category;
  11162. bool desktop;
  11163. /* readonly */
  11164. uint memoryUse;
  11165. String name;
  11166. /* readonly */
  11167. uint numPasses;
  11168. /* readonly */
  11169. Array<String> passNames;
  11170. /* readonly */
  11171. Array<Pass> passes;
  11172. /* readonly */
  11173. int refs;
  11174. /* readonly */
  11175. bool supported;
  11176. /* readonly */
  11177. StringHash type;
  11178. /* readonly */
  11179. String typeName;
  11180. /* readonly */
  11181. uint useTimer;
  11182. /* readonly */
  11183. int weakRefs;
  11184. };
  11185. class TechniqueEntry
  11186. {
  11187. // Properties:
  11188. float lodDistance;
  11189. int qualityLevel;
  11190. Technique technique;
  11191. };
  11192. class Terrain
  11193. {
  11194. // Methods:
  11195. void ApplyAttributes();
  11196. void ApplyHeightMap();
  11197. void DrawDebugGeometry(DebugRenderer, bool);
  11198. Variant GetAttribute(const String&) const;
  11199. ValueAnimation GetAttributeAnimation(const String&) const;
  11200. float GetAttributeAnimationSpeed(const String&) const;
  11201. float GetAttributeAnimationTime(const String&) const;
  11202. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11203. Variant GetAttributeDefault(const String&) const;
  11204. float GetHeight(const Vector3&) const;
  11205. bool GetInterceptNetworkUpdate(const String&) const;
  11206. TerrainPatch GetNeighborPatch(int, int) const;
  11207. Vector3 GetNormal(const Vector3&) const;
  11208. TerrainPatch GetPatch(int, int) const;
  11209. bool HasSubscribedToEvent(Object, const String&);
  11210. bool HasSubscribedToEvent(const String&);
  11211. bool Load(File, bool = false);
  11212. bool Load(VectorBuffer&, bool = false);
  11213. bool LoadJSON(const JSONValue&, bool = false);
  11214. bool LoadXML(const XMLElement&, bool = false);
  11215. void MarkNetworkUpdate() const;
  11216. void Remove();
  11217. void RemoveAttributeAnimation(const String&);
  11218. void RemoveInstanceDefault();
  11219. void RemoveObjectAnimation();
  11220. void ResetToDefault();
  11221. bool Save(File) const;
  11222. bool Save(VectorBuffer&) const;
  11223. bool SaveJSON(JSONValue&) const;
  11224. bool SaveXML(XMLElement&) const;
  11225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11226. void SetAnimationTime(float);
  11227. bool SetAttribute(const String&, const Variant&);
  11228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11229. void SetAttributeAnimationSpeed(const String&, float);
  11230. void SetAttributeAnimationTime(const String&, float);
  11231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11232. void SetInterceptNetworkUpdate(const String&, bool);
  11233. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11234. IntVector2 WorldToHeightMap(const Vector3&) const;
  11235. // Properties:
  11236. bool animationEnabled;
  11237. /* readonly */
  11238. Array<Variant> attributeDefaults;
  11239. /* readonly */
  11240. Array<AttributeInfo> attributeInfos;
  11241. Array<Variant> attributes;
  11242. bool castShadows;
  11243. /* readonly */
  11244. String category;
  11245. float drawDistance;
  11246. Terrain eastNeighbor;
  11247. bool enabled;
  11248. /* readonly */
  11249. bool enabledEffective;
  11250. Image heightMap;
  11251. /* readonly */
  11252. uint id;
  11253. uint lightMask;
  11254. float lodBias;
  11255. Material material;
  11256. uint maxLights;
  11257. uint maxLodLevels;
  11258. /* readonly */
  11259. Node node;
  11260. Terrain northNeighbor;
  11261. /* readonly */
  11262. uint numAttributes;
  11263. /* readonly */
  11264. IntVector2 numPatches;
  11265. /* readonly */
  11266. IntVector2 numVertices;
  11267. ObjectAnimation objectAnimation;
  11268. bool occludee;
  11269. bool occluder;
  11270. uint occlusionLodLevel;
  11271. int patchSize;
  11272. /* readonly */
  11273. Array<TerrainPatch> patches;
  11274. /* readonly */
  11275. int refs;
  11276. float shadowDistance;
  11277. uint shadowMask;
  11278. bool smoothing;
  11279. Terrain southNeighbor;
  11280. Vector3 spacing;
  11281. bool temporary;
  11282. /* readonly */
  11283. StringHash type;
  11284. /* readonly */
  11285. String typeName;
  11286. uint viewMask;
  11287. /* readonly */
  11288. int weakRefs;
  11289. Terrain westNeighbor;
  11290. uint zoneMask;
  11291. };
  11292. class TerrainPatch
  11293. {
  11294. // Methods:
  11295. void ApplyAttributes();
  11296. void DrawDebugGeometry(DebugRenderer, bool);
  11297. Variant GetAttribute(const String&) const;
  11298. ValueAnimation GetAttributeAnimation(const String&) const;
  11299. float GetAttributeAnimationSpeed(const String&) const;
  11300. float GetAttributeAnimationTime(const String&) const;
  11301. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11302. Variant GetAttributeDefault(const String&) const;
  11303. bool GetInterceptNetworkUpdate(const String&) const;
  11304. bool HasSubscribedToEvent(Object, const String&);
  11305. bool HasSubscribedToEvent(const String&);
  11306. bool IsInView(Camera) const;
  11307. bool Load(File, bool = false);
  11308. bool Load(VectorBuffer&, bool = false);
  11309. bool LoadJSON(const JSONValue&, bool = false);
  11310. bool LoadXML(const XMLElement&, bool = false);
  11311. void MarkNetworkUpdate() const;
  11312. void Remove();
  11313. void RemoveAttributeAnimation(const String&);
  11314. void RemoveInstanceDefault();
  11315. void RemoveObjectAnimation();
  11316. void ResetToDefault();
  11317. bool Save(File) const;
  11318. bool Save(VectorBuffer&) const;
  11319. bool SaveJSON(JSONValue&) const;
  11320. bool SaveXML(XMLElement&) const;
  11321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11322. void SetAnimationTime(float);
  11323. bool SetAttribute(const String&, const Variant&);
  11324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11325. void SetAttributeAnimationSpeed(const String&, float);
  11326. void SetAttributeAnimationTime(const String&, float);
  11327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11328. void SetInterceptNetworkUpdate(const String&, bool);
  11329. // Properties:
  11330. bool animationEnabled;
  11331. /* readonly */
  11332. Array<Variant> attributeDefaults;
  11333. /* readonly */
  11334. Array<AttributeInfo> attributeInfos;
  11335. Array<Variant> attributes;
  11336. /* readonly */
  11337. BoundingBox boundingBox;
  11338. bool castShadows;
  11339. /* readonly */
  11340. String category;
  11341. float drawDistance;
  11342. bool enabled;
  11343. /* readonly */
  11344. bool enabledEffective;
  11345. /* readonly */
  11346. uint id;
  11347. /* readonly */
  11348. bool inView;
  11349. uint lightMask;
  11350. float lodBias;
  11351. uint maxLights;
  11352. /* readonly */
  11353. Node node;
  11354. /* readonly */
  11355. uint numAttributes;
  11356. ObjectAnimation objectAnimation;
  11357. bool occludee;
  11358. bool occluder;
  11359. /* readonly */
  11360. int refs;
  11361. float shadowDistance;
  11362. uint shadowMask;
  11363. bool temporary;
  11364. /* readonly */
  11365. StringHash type;
  11366. /* readonly */
  11367. String typeName;
  11368. uint viewMask;
  11369. /* readonly */
  11370. int weakRefs;
  11371. /* readonly */
  11372. BoundingBox worldBoundingBox;
  11373. uint zoneMask;
  11374. };
  11375. class Text
  11376. {
  11377. // Methods:
  11378. void AddChild(UIElement);
  11379. void AddTag(const String&);
  11380. void AddTags(const String&, int8 = ';');
  11381. void ApplyAttributes();
  11382. void BringToFront();
  11383. void ClearSelection();
  11384. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11385. void DisableLayoutUpdate();
  11386. IntVector2 ElementToScreen(const IntVector2&);
  11387. void EnableLayoutUpdate();
  11388. uint FindChild(UIElement) const;
  11389. Variant GetAttribute(const String&) const;
  11390. ValueAnimation GetAttributeAnimation(const String&) const;
  11391. float GetAttributeAnimationSpeed(const String&) const;
  11392. float GetAttributeAnimationTime(const String&) const;
  11393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11394. Variant GetAttributeDefault(const String&) const;
  11395. UIElement GetChild(const String&, bool = false) const;
  11396. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11397. Array<UIElement> GetChildren(bool = false) const;
  11398. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11399. UIElement GetElementEventSender() const;
  11400. bool GetInterceptNetworkUpdate(const String&) const;
  11401. uint GetNumChildren(bool) const;
  11402. bool HasSubscribedToEvent(Object, const String&);
  11403. bool HasSubscribedToEvent(const String&);
  11404. bool HasTag(const String&) const;
  11405. void InsertChild(uint, UIElement);
  11406. bool IsInside(IntVector2, bool);
  11407. bool IsInsideCombined(IntVector2, bool);
  11408. bool Load(File, bool = false);
  11409. bool Load(VectorBuffer&, bool = false);
  11410. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11411. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11412. bool LoadJSON(const JSONValue&, bool = false);
  11413. bool LoadXML(File);
  11414. bool LoadXML(VectorBuffer&);
  11415. bool LoadXML(XMLFile, XMLFile);
  11416. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11417. bool LoadXML(const XMLElement&, bool = false);
  11418. void MarkNetworkUpdate() const;
  11419. void Remove();
  11420. void RemoveAllChildren();
  11421. void RemoveAllTags();
  11422. void RemoveAttributeAnimation(const String&);
  11423. void RemoveChild(UIElement, uint = 0);
  11424. void RemoveChild(uint);
  11425. void RemoveInstanceDefault();
  11426. void RemoveObjectAnimation();
  11427. bool RemoveTag(const String&);
  11428. void ResetDeepEnabled();
  11429. void ResetToDefault();
  11430. bool Save(File) const;
  11431. bool Save(VectorBuffer&) const;
  11432. bool SaveJSON(JSONValue&) const;
  11433. bool SaveXML(File, const String& = "\t");
  11434. bool SaveXML(VectorBuffer&, const String& = "\t");
  11435. bool SaveXML(XMLElement&) const;
  11436. IntVector2 ScreenToElement(const IntVector2&);
  11437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11438. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11439. void SetAnimationTime(float);
  11440. bool SetAttribute(const String&, const Variant&);
  11441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11442. void SetAttributeAnimationSpeed(const String&, float);
  11443. void SetAttributeAnimationTime(const String&, float);
  11444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11445. void SetDeepEnabled(bool);
  11446. void SetEnabledRecursive(bool);
  11447. void SetFixedHeight(int);
  11448. void SetFixedSize(int, int);
  11449. void SetFixedWidth(int);
  11450. bool SetFont(Font, int);
  11451. bool SetFont(const String&, int);
  11452. void SetInterceptNetworkUpdate(const String&, bool);
  11453. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11454. void SetMaxAnchor(float, float);
  11455. void SetMaxSize(int, int);
  11456. void SetMinAnchor(float, float);
  11457. void SetMinSize(int, int);
  11458. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11459. void SetPivot(float, float);
  11460. void SetPosition(int, int);
  11461. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11462. void SetSize(int, int);
  11463. bool SetStyle(const String&, XMLFile = null);
  11464. bool SetStyle(const XMLElement&);
  11465. bool SetStyleAuto(XMLFile = null);
  11466. void UpdateLayout();
  11467. const Variant& GetVar(const StringHash&);
  11468. // Properties:
  11469. bool animationEnabled;
  11470. /* readonly */
  11471. Array<Variant> attributeDefaults;
  11472. /* readonly */
  11473. Array<AttributeInfo> attributeInfos;
  11474. Array<Variant> attributes;
  11475. bool autoLocalizable;
  11476. bool bringToBack;
  11477. bool bringToFront;
  11478. /* readonly */
  11479. String category;
  11480. /* readonly */
  11481. Array<IntVector2> charPositions;
  11482. /* readonly */
  11483. Array<IntVector2> charSizes;
  11484. /* readonly */
  11485. IntVector2 childOffset;
  11486. /* readonly */
  11487. Array<UIElement> children;
  11488. IntRect clipBorder;
  11489. bool clipChildren;
  11490. /* writeonly */
  11491. Color color;
  11492. /* readonly */
  11493. bool colorGradient;
  11494. Array<Color> colors;
  11495. /* readonly */
  11496. IntRect combinedScreenRect;
  11497. XMLFile defaultStyle;
  11498. /* readonly */
  11499. float derivedOpacity;
  11500. /* readonly */
  11501. uint dragButtonCombo;
  11502. /* readonly */
  11503. int dragButtonCount;
  11504. uint dragDropMode;
  11505. bool editable;
  11506. Color effectColor;
  11507. bool effectRoundStroke;
  11508. IntVector2 effectShadowOffset;
  11509. int effectStrokeThickness;
  11510. bool elementEventSender;
  11511. bool enableAnchor;
  11512. bool enabled;
  11513. /* readonly */
  11514. bool enabledSelf;
  11515. /* readonly */
  11516. bool fixedHeight;
  11517. /* readonly */
  11518. bool fixedSize;
  11519. /* readonly */
  11520. bool fixedWidth;
  11521. bool focus;
  11522. FocusMode focusMode;
  11523. /* readonly */
  11524. Font font;
  11525. int fontSize;
  11526. int height;
  11527. HorizontalAlignment horizontalAlignment;
  11528. Color hoverColor;
  11529. /* readonly */
  11530. bool hovering;
  11531. int indent;
  11532. int indentSpacing;
  11533. /* readonly */
  11534. int indentWidth;
  11535. bool internal;
  11536. IntRect layoutBorder;
  11537. Vector2 layoutFlexScale;
  11538. LayoutMode layoutMode;
  11539. int layoutSpacing;
  11540. Vector2 maxAnchor;
  11541. int maxHeight;
  11542. IntVector2 maxOffset;
  11543. IntVector2 maxSize;
  11544. int maxWidth;
  11545. Vector2 minAnchor;
  11546. int minHeight;
  11547. IntVector2 minOffset;
  11548. IntVector2 minSize;
  11549. int minWidth;
  11550. String name;
  11551. /* readonly */
  11552. uint numAllChildren;
  11553. /* readonly */
  11554. uint numAttributes;
  11555. /* readonly */
  11556. uint numChars;
  11557. /* readonly */
  11558. uint numChildren;
  11559. /* readonly */
  11560. uint numRows;
  11561. ObjectAnimation objectAnimation;
  11562. float opacity;
  11563. UIElement parent;
  11564. Vector2 pivot;
  11565. IntVector2 position;
  11566. int priority;
  11567. /* readonly */
  11568. int refs;
  11569. /* readonly */
  11570. UIElement root;
  11571. /* readonly */
  11572. int rowHeight;
  11573. float rowSpacing;
  11574. /* readonly */
  11575. Array<int> rowWidths;
  11576. /* readonly */
  11577. IntVector2 screenPosition;
  11578. bool selected;
  11579. Color selectionColor;
  11580. /* readonly */
  11581. uint selectionLength;
  11582. /* readonly */
  11583. uint selectionStart;
  11584. IntVector2 size;
  11585. bool sortChildren;
  11586. String style;
  11587. /* readonly */
  11588. Array<String> tags;
  11589. bool temporary;
  11590. String text;
  11591. HorizontalAlignment textAlignment;
  11592. TextEffect textEffect;
  11593. TraversalMode traversalMode;
  11594. /* readonly */
  11595. StringHash type;
  11596. /* readonly */
  11597. String typeName;
  11598. bool useDerivedOpacity;
  11599. /* readonly */
  11600. VariantMap vars;
  11601. VerticalAlignment verticalAlignment;
  11602. bool visible;
  11603. /* readonly */
  11604. bool visibleEffective;
  11605. /* readonly */
  11606. int weakRefs;
  11607. int width;
  11608. bool wordwrap;
  11609. };
  11610. class Text3D
  11611. {
  11612. // Methods:
  11613. void ApplyAttributes();
  11614. void DrawDebugGeometry(DebugRenderer, bool);
  11615. Variant GetAttribute(const String&) const;
  11616. ValueAnimation GetAttributeAnimation(const String&) const;
  11617. float GetAttributeAnimationSpeed(const String&) const;
  11618. float GetAttributeAnimationTime(const String&) const;
  11619. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11620. Variant GetAttributeDefault(const String&) const;
  11621. bool GetInterceptNetworkUpdate(const String&) const;
  11622. bool HasSubscribedToEvent(Object, const String&);
  11623. bool HasSubscribedToEvent(const String&);
  11624. bool IsInView(Camera) const;
  11625. bool Load(File, bool = false);
  11626. bool Load(VectorBuffer&, bool = false);
  11627. bool LoadJSON(const JSONValue&, bool = false);
  11628. bool LoadXML(const XMLElement&, bool = false);
  11629. void MarkNetworkUpdate() const;
  11630. void Remove();
  11631. void RemoveAttributeAnimation(const String&);
  11632. void RemoveInstanceDefault();
  11633. void RemoveObjectAnimation();
  11634. void ResetToDefault();
  11635. bool Save(File) const;
  11636. bool Save(VectorBuffer&) const;
  11637. bool SaveJSON(JSONValue&) const;
  11638. bool SaveXML(XMLElement&) const;
  11639. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11640. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11641. void SetAnimationTime(float);
  11642. bool SetAttribute(const String&, const Variant&);
  11643. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11644. void SetAttributeAnimationSpeed(const String&, float);
  11645. void SetAttributeAnimationTime(const String&, float);
  11646. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11647. bool SetFont(Font, int);
  11648. bool SetFont(const String&, int);
  11649. void SetInterceptNetworkUpdate(const String&, bool);
  11650. // Properties:
  11651. bool animationEnabled;
  11652. /* readonly */
  11653. Array<Variant> attributeDefaults;
  11654. /* readonly */
  11655. Array<AttributeInfo> attributeInfos;
  11656. Array<Variant> attributes;
  11657. /* readonly */
  11658. BoundingBox boundingBox;
  11659. bool castShadows;
  11660. /* readonly */
  11661. String category;
  11662. /* readonly */
  11663. Array<IntVector2> charPositions;
  11664. /* readonly */
  11665. Array<IntVector2> charSizes;
  11666. /* writeonly */
  11667. Color color;
  11668. Array<Color> colors;
  11669. float drawDistance;
  11670. Color effectColor;
  11671. float effectDepthBias;
  11672. bool effectRoundStroke;
  11673. IntVector2 effectShadowOffset;
  11674. int effectStrokeThickness;
  11675. bool enabled;
  11676. /* readonly */
  11677. bool enabledEffective;
  11678. FaceCameraMode faceCameraMode;
  11679. bool fixedScreenSize;
  11680. /* readonly */
  11681. Font font;
  11682. int fontSize;
  11683. /* readonly */
  11684. int height;
  11685. HorizontalAlignment horizontalAlignment;
  11686. /* readonly */
  11687. uint id;
  11688. /* readonly */
  11689. bool inView;
  11690. uint lightMask;
  11691. float lodBias;
  11692. Material material;
  11693. uint maxLights;
  11694. /* readonly */
  11695. Node node;
  11696. /* readonly */
  11697. uint numAttributes;
  11698. /* readonly */
  11699. uint numChars;
  11700. /* readonly */
  11701. uint numRows;
  11702. ObjectAnimation objectAnimation;
  11703. bool occludee;
  11704. bool occluder;
  11705. float opacity;
  11706. /* readonly */
  11707. int refs;
  11708. /* readonly */
  11709. int rowHeight;
  11710. float rowSpacing;
  11711. /* readonly */
  11712. Array<int> rowWidths;
  11713. float shadowDistance;
  11714. uint shadowMask;
  11715. bool temporary;
  11716. String text;
  11717. HorizontalAlignment textAlignment;
  11718. TextEffect textEffect;
  11719. /* readonly */
  11720. StringHash type;
  11721. /* readonly */
  11722. String typeName;
  11723. VerticalAlignment verticalAlignment;
  11724. uint viewMask;
  11725. /* readonly */
  11726. int weakRefs;
  11727. int width;
  11728. bool wordwrap;
  11729. /* readonly */
  11730. BoundingBox worldBoundingBox;
  11731. uint zoneMask;
  11732. };
  11733. class Texture
  11734. {
  11735. // Methods:
  11736. void ClearDataLost();
  11737. bool HasSubscribedToEvent(Object, const String&);
  11738. bool HasSubscribedToEvent(const String&);
  11739. bool Load(File);
  11740. bool Load(VectorBuffer&);
  11741. bool Load(const String&);
  11742. bool Save(File) const;
  11743. bool Save(VectorBuffer&) const;
  11744. bool Save(const String&) const;
  11745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11746. void SetNumLevels(uint);
  11747. // Properties:
  11748. Array<TextureAddressMode> addressMode;
  11749. uint anisotropy;
  11750. /* readonly */
  11751. bool autoResolve;
  11752. Texture backupTexture;
  11753. Color borderColor;
  11754. /* readonly */
  11755. String category;
  11756. /* readonly */
  11757. uint components;
  11758. /* readonly */
  11759. bool compressed;
  11760. /* readonly */
  11761. bool dataLost;
  11762. TextureFilterMode filterMode;
  11763. /* readonly */
  11764. uint format;
  11765. /* readonly */
  11766. int height;
  11767. /* readonly */
  11768. Array<int> levelHeight;
  11769. /* readonly */
  11770. Array<int> levelWidth;
  11771. /* readonly */
  11772. uint levels;
  11773. /* readonly */
  11774. bool levelsDirty;
  11775. /* readonly */
  11776. uint memoryUse;
  11777. Array<int> mipsToSkip;
  11778. /* readonly */
  11779. int multiSample;
  11780. String name;
  11781. /* readonly */
  11782. int refs;
  11783. /* readonly */
  11784. bool resolveDirty;
  11785. bool sRGB;
  11786. /* readonly */
  11787. StringHash type;
  11788. /* readonly */
  11789. String typeName;
  11790. /* readonly */
  11791. TextureUsage usage;
  11792. /* readonly */
  11793. uint useTimer;
  11794. /* readonly */
  11795. int weakRefs;
  11796. /* readonly */
  11797. int width;
  11798. };
  11799. class Texture2D
  11800. {
  11801. // Methods:
  11802. void ClearDataLost();
  11803. Image GetImage() const;
  11804. bool HasSubscribedToEvent(Object, const String&);
  11805. bool HasSubscribedToEvent(const String&);
  11806. bool Load(File);
  11807. bool Load(VectorBuffer&);
  11808. bool Load(const String&);
  11809. bool Save(File) const;
  11810. bool Save(VectorBuffer&) const;
  11811. bool Save(const String&) const;
  11812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11813. bool SetData(Image, bool = false);
  11814. void SetNumLevels(uint);
  11815. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11816. // Properties:
  11817. Array<TextureAddressMode> addressMode;
  11818. uint anisotropy;
  11819. /* readonly */
  11820. bool autoResolve;
  11821. Texture backupTexture;
  11822. Color borderColor;
  11823. /* readonly */
  11824. String category;
  11825. /* readonly */
  11826. uint components;
  11827. /* readonly */
  11828. bool compressed;
  11829. /* readonly */
  11830. bool dataLost;
  11831. TextureFilterMode filterMode;
  11832. /* readonly */
  11833. uint format;
  11834. /* readonly */
  11835. int height;
  11836. /* readonly */
  11837. Array<int> levelHeight;
  11838. /* readonly */
  11839. Array<int> levelWidth;
  11840. /* readonly */
  11841. uint levels;
  11842. /* readonly */
  11843. bool levelsDirty;
  11844. /* readonly */
  11845. uint memoryUse;
  11846. Array<int> mipsToSkip;
  11847. /* readonly */
  11848. int multiSample;
  11849. String name;
  11850. /* readonly */
  11851. int refs;
  11852. /* readonly */
  11853. RenderSurface renderSurface;
  11854. /* readonly */
  11855. bool resolveDirty;
  11856. bool sRGB;
  11857. /* readonly */
  11858. StringHash type;
  11859. /* readonly */
  11860. String typeName;
  11861. /* readonly */
  11862. TextureUsage usage;
  11863. /* readonly */
  11864. uint useTimer;
  11865. /* readonly */
  11866. int weakRefs;
  11867. /* readonly */
  11868. int width;
  11869. };
  11870. class Texture2DArray
  11871. {
  11872. // Methods:
  11873. void ClearDataLost();
  11874. bool HasSubscribedToEvent(Object, const String&);
  11875. bool HasSubscribedToEvent(const String&);
  11876. bool Load(File);
  11877. bool Load(VectorBuffer&);
  11878. bool Load(const String&);
  11879. bool Save(File) const;
  11880. bool Save(VectorBuffer&) const;
  11881. bool Save(const String&) const;
  11882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11883. bool SetData(uint, Image, bool = false);
  11884. void SetNumLevels(uint);
  11885. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11886. // Properties:
  11887. Array<TextureAddressMode> addressMode;
  11888. uint anisotropy;
  11889. /* readonly */
  11890. bool autoResolve;
  11891. Texture backupTexture;
  11892. Color borderColor;
  11893. /* readonly */
  11894. String category;
  11895. /* readonly */
  11896. uint components;
  11897. /* readonly */
  11898. bool compressed;
  11899. /* readonly */
  11900. bool dataLost;
  11901. TextureFilterMode filterMode;
  11902. /* readonly */
  11903. uint format;
  11904. /* readonly */
  11905. int height;
  11906. uint layers;
  11907. /* readonly */
  11908. Array<int> levelHeight;
  11909. /* readonly */
  11910. Array<int> levelWidth;
  11911. /* readonly */
  11912. uint levels;
  11913. /* readonly */
  11914. bool levelsDirty;
  11915. /* readonly */
  11916. uint memoryUse;
  11917. Array<int> mipsToSkip;
  11918. /* readonly */
  11919. int multiSample;
  11920. String name;
  11921. /* readonly */
  11922. int refs;
  11923. /* readonly */
  11924. RenderSurface renderSurface;
  11925. /* readonly */
  11926. bool resolveDirty;
  11927. bool sRGB;
  11928. /* readonly */
  11929. StringHash type;
  11930. /* readonly */
  11931. String typeName;
  11932. /* readonly */
  11933. TextureUsage usage;
  11934. /* readonly */
  11935. uint useTimer;
  11936. /* readonly */
  11937. int weakRefs;
  11938. /* readonly */
  11939. int width;
  11940. };
  11941. class Texture3D
  11942. {
  11943. // Methods:
  11944. void ClearDataLost();
  11945. bool HasSubscribedToEvent(Object, const String&);
  11946. bool HasSubscribedToEvent(const String&);
  11947. bool Load(File);
  11948. bool Load(VectorBuffer&);
  11949. bool Load(const String&);
  11950. bool Save(File) const;
  11951. bool Save(VectorBuffer&) const;
  11952. bool Save(const String&) const;
  11953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11954. bool SetData(Image, bool = false);
  11955. void SetNumLevels(uint);
  11956. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11957. // Properties:
  11958. Array<TextureAddressMode> addressMode;
  11959. uint anisotropy;
  11960. /* readonly */
  11961. bool autoResolve;
  11962. Texture backupTexture;
  11963. Color borderColor;
  11964. /* readonly */
  11965. String category;
  11966. /* readonly */
  11967. uint components;
  11968. /* readonly */
  11969. bool compressed;
  11970. /* readonly */
  11971. bool dataLost;
  11972. TextureFilterMode filterMode;
  11973. /* readonly */
  11974. uint format;
  11975. /* readonly */
  11976. int height;
  11977. /* readonly */
  11978. Array<int> levelHeight;
  11979. /* readonly */
  11980. Array<int> levelWidth;
  11981. /* readonly */
  11982. uint levels;
  11983. /* readonly */
  11984. bool levelsDirty;
  11985. /* readonly */
  11986. uint memoryUse;
  11987. Array<int> mipsToSkip;
  11988. /* readonly */
  11989. int multiSample;
  11990. String name;
  11991. /* readonly */
  11992. int refs;
  11993. /* readonly */
  11994. bool resolveDirty;
  11995. bool sRGB;
  11996. /* readonly */
  11997. StringHash type;
  11998. /* readonly */
  11999. String typeName;
  12000. /* readonly */
  12001. TextureUsage usage;
  12002. /* readonly */
  12003. uint useTimer;
  12004. /* readonly */
  12005. int weakRefs;
  12006. /* readonly */
  12007. int width;
  12008. };
  12009. class TextureCube
  12010. {
  12011. // Methods:
  12012. void ClearDataLost();
  12013. Image GetImage(CubeMapFace) const;
  12014. bool HasSubscribedToEvent(Object, const String&);
  12015. bool HasSubscribedToEvent(const String&);
  12016. bool Load(File);
  12017. bool Load(VectorBuffer&);
  12018. bool Load(const String&);
  12019. bool Save(File) const;
  12020. bool Save(VectorBuffer&) const;
  12021. bool Save(const String&) const;
  12022. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12023. bool SetData(CubeMapFace, Image, bool = false);
  12024. void SetNumLevels(uint);
  12025. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12026. // Properties:
  12027. Array<TextureAddressMode> addressMode;
  12028. uint anisotropy;
  12029. /* readonly */
  12030. bool autoResolve;
  12031. Texture backupTexture;
  12032. Color borderColor;
  12033. /* readonly */
  12034. String category;
  12035. /* readonly */
  12036. uint components;
  12037. /* readonly */
  12038. bool compressed;
  12039. /* readonly */
  12040. bool dataLost;
  12041. TextureFilterMode filterMode;
  12042. /* readonly */
  12043. uint format;
  12044. /* readonly */
  12045. int height;
  12046. /* readonly */
  12047. Array<int> levelHeight;
  12048. /* readonly */
  12049. Array<int> levelWidth;
  12050. /* readonly */
  12051. uint levels;
  12052. /* readonly */
  12053. bool levelsDirty;
  12054. /* readonly */
  12055. uint memoryUse;
  12056. Array<int> mipsToSkip;
  12057. /* readonly */
  12058. int multiSample;
  12059. String name;
  12060. /* readonly */
  12061. int refs;
  12062. /* readonly */
  12063. Array<RenderSurface> renderSurfaces;
  12064. /* readonly */
  12065. bool resolveDirty;
  12066. bool sRGB;
  12067. /* readonly */
  12068. StringHash type;
  12069. /* readonly */
  12070. String typeName;
  12071. /* readonly */
  12072. TextureUsage usage;
  12073. /* readonly */
  12074. uint useTimer;
  12075. /* readonly */
  12076. int weakRefs;
  12077. /* readonly */
  12078. int width;
  12079. };
  12080. class TextureFrame
  12081. {
  12082. // Properties:
  12083. float time;
  12084. Rect uv;
  12085. };
  12086. class Tile2D
  12087. {
  12088. // Methods:
  12089. bool HasProperty(const String&) const;
  12090. const String& GetProperty(const String&) const;
  12091. // Properties:
  12092. /* readonly */
  12093. int gid;
  12094. /* readonly */
  12095. int refs;
  12096. /* readonly */
  12097. Sprite2D sprite;
  12098. /* readonly */
  12099. int weakRefs;
  12100. };
  12101. class TileMap2D
  12102. {
  12103. // Methods:
  12104. void ApplyAttributes();
  12105. void DrawDebugGeometry(DebugRenderer, bool);
  12106. Variant GetAttribute(const String&) const;
  12107. ValueAnimation GetAttributeAnimation(const String&) const;
  12108. float GetAttributeAnimationSpeed(const String&) const;
  12109. float GetAttributeAnimationTime(const String&) const;
  12110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12111. Variant GetAttributeDefault(const String&) const;
  12112. bool GetInterceptNetworkUpdate(const String&) const;
  12113. TileMapLayer2D GetLayer(uint) const;
  12114. bool HasSubscribedToEvent(Object, const String&);
  12115. bool HasSubscribedToEvent(const String&);
  12116. bool Load(File, bool = false);
  12117. bool Load(VectorBuffer&, bool = false);
  12118. bool LoadJSON(const JSONValue&, bool = false);
  12119. bool LoadXML(const XMLElement&, bool = false);
  12120. void MarkNetworkUpdate() const;
  12121. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12122. void Remove();
  12123. void RemoveAttributeAnimation(const String&);
  12124. void RemoveInstanceDefault();
  12125. void RemoveObjectAnimation();
  12126. void ResetToDefault();
  12127. bool Save(File) const;
  12128. bool Save(VectorBuffer&) const;
  12129. bool SaveJSON(JSONValue&) const;
  12130. bool SaveXML(XMLElement&) const;
  12131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12132. void SetAnimationTime(float);
  12133. bool SetAttribute(const String&, const Variant&);
  12134. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12135. void SetAttributeAnimationSpeed(const String&, float);
  12136. void SetAttributeAnimationTime(const String&, float);
  12137. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12138. void SetInterceptNetworkUpdate(const String&, bool);
  12139. Vector2 TileIndexToPosition(int, int) const;
  12140. // Properties:
  12141. bool animationEnabled;
  12142. /* readonly */
  12143. Array<Variant> attributeDefaults;
  12144. /* readonly */
  12145. Array<AttributeInfo> attributeInfos;
  12146. Array<Variant> attributes;
  12147. /* readonly */
  12148. String category;
  12149. bool enabled;
  12150. /* readonly */
  12151. bool enabledEffective;
  12152. /* readonly */
  12153. uint id;
  12154. /* readonly */
  12155. TileMapInfo2D info;
  12156. /* readonly */
  12157. Node node;
  12158. /* readonly */
  12159. uint numAttributes;
  12160. /* readonly */
  12161. uint numLayers;
  12162. ObjectAnimation objectAnimation;
  12163. /* readonly */
  12164. int refs;
  12165. bool temporary;
  12166. TmxFile2D tmxFile;
  12167. /* readonly */
  12168. StringHash type;
  12169. /* readonly */
  12170. String typeName;
  12171. /* readonly */
  12172. int weakRefs;
  12173. };
  12174. class TileMapInfo2D
  12175. {
  12176. // Properties:
  12177. int height;
  12178. /* readonly */
  12179. float mapHeight;
  12180. /* readonly */
  12181. float mapWidth;
  12182. Orientation2D orientation;
  12183. float tileHeight;
  12184. float tileWidth;
  12185. int width;
  12186. };
  12187. class TileMapLayer2D
  12188. {
  12189. // Methods:
  12190. void ApplyAttributes();
  12191. void DrawDebugGeometry(DebugRenderer, bool);
  12192. Variant GetAttribute(const String&) const;
  12193. ValueAnimation GetAttributeAnimation(const String&) const;
  12194. float GetAttributeAnimationSpeed(const String&) const;
  12195. float GetAttributeAnimationTime(const String&) const;
  12196. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12197. Variant GetAttributeDefault(const String&) const;
  12198. bool GetInterceptNetworkUpdate(const String&) const;
  12199. TileMapObject2D GetObject(uint) const;
  12200. Node GetObjectNode(uint) const;
  12201. Tile2D GetTile(int, int) const;
  12202. Node GetTileNode(int, int) const;
  12203. bool HasProperty(const String&) const;
  12204. bool HasSubscribedToEvent(Object, const String&);
  12205. bool HasSubscribedToEvent(const String&);
  12206. bool Load(File, bool = false);
  12207. bool Load(VectorBuffer&, bool = false);
  12208. bool LoadJSON(const JSONValue&, bool = false);
  12209. bool LoadXML(const XMLElement&, bool = false);
  12210. void MarkNetworkUpdate() const;
  12211. void Remove();
  12212. void RemoveAttributeAnimation(const String&);
  12213. void RemoveInstanceDefault();
  12214. void RemoveObjectAnimation();
  12215. void ResetToDefault();
  12216. bool Save(File) const;
  12217. bool Save(VectorBuffer&) const;
  12218. bool SaveJSON(JSONValue&) const;
  12219. bool SaveXML(XMLElement&) const;
  12220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12221. void SetAnimationTime(float);
  12222. bool SetAttribute(const String&, const Variant&);
  12223. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12224. void SetAttributeAnimationSpeed(const String&, float);
  12225. void SetAttributeAnimationTime(const String&, float);
  12226. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12227. void SetInterceptNetworkUpdate(const String&, bool);
  12228. const String& GetProperty(const String&) const;
  12229. // Properties:
  12230. bool animationEnabled;
  12231. /* readonly */
  12232. Array<Variant> attributeDefaults;
  12233. /* readonly */
  12234. Array<AttributeInfo> attributeInfos;
  12235. Array<Variant> attributes;
  12236. /* readonly */
  12237. String category;
  12238. int drawOrder;
  12239. bool enabled;
  12240. /* readonly */
  12241. bool enabledEffective;
  12242. /* readonly */
  12243. int height;
  12244. /* readonly */
  12245. uint id;
  12246. /* readonly */
  12247. Node imageNode;
  12248. /* readonly */
  12249. TileMapLayerType2D layerType;
  12250. /* readonly */
  12251. Node node;
  12252. /* readonly */
  12253. uint numAttributes;
  12254. /* readonly */
  12255. uint numObjects;
  12256. ObjectAnimation objectAnimation;
  12257. /* readonly */
  12258. int refs;
  12259. bool temporary;
  12260. /* readonly */
  12261. StringHash type;
  12262. /* readonly */
  12263. String typeName;
  12264. bool visible;
  12265. /* readonly */
  12266. int weakRefs;
  12267. /* readonly */
  12268. int width;
  12269. };
  12270. class TileMapObject2D
  12271. {
  12272. // Methods:
  12273. bool HasProperty(const String&) const;
  12274. const String& GetProperty(const String&) const;
  12275. const Vector2& GetPoint(uint) const;
  12276. // Properties:
  12277. /* readonly */
  12278. String name;
  12279. /* readonly */
  12280. uint numPoints;
  12281. /* readonly */
  12282. TileObjectType2D objectType;
  12283. /* readonly */
  12284. Vector2 position;
  12285. /* readonly */
  12286. int refs;
  12287. /* readonly */
  12288. Vector2 size;
  12289. /* readonly */
  12290. int tileGid;
  12291. /* readonly */
  12292. Sprite2D tileSprite;
  12293. /* readonly */
  12294. String type;
  12295. /* readonly */
  12296. int weakRefs;
  12297. };
  12298. class Time
  12299. {
  12300. // Methods:
  12301. bool HasSubscribedToEvent(Object, const String&);
  12302. bool HasSubscribedToEvent(const String&);
  12303. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12304. // Properties:
  12305. /* readonly */
  12306. String category;
  12307. /* readonly */
  12308. float elapsedTime;
  12309. /* readonly */
  12310. uint frameNumber;
  12311. /* readonly */
  12312. int refs;
  12313. /* readonly */
  12314. uint systemTime;
  12315. /* readonly */
  12316. uint timeSinceEpoch;
  12317. /* readonly */
  12318. String timeStamp;
  12319. /* readonly */
  12320. float timeStep;
  12321. /* readonly */
  12322. StringHash type;
  12323. /* readonly */
  12324. String typeName;
  12325. /* readonly */
  12326. int weakRefs;
  12327. };
  12328. class Timer
  12329. {
  12330. // Methods:
  12331. uint GetMSec(bool);
  12332. void Reset();
  12333. };
  12334. class TmxFile2D
  12335. {
  12336. // Methods:
  12337. bool HasSubscribedToEvent(Object, const String&);
  12338. bool HasSubscribedToEvent(const String&);
  12339. bool Load(File);
  12340. bool Load(VectorBuffer&);
  12341. bool Load(const String&);
  12342. bool Save(File) const;
  12343. bool Save(VectorBuffer&) const;
  12344. bool Save(const String&) const;
  12345. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12346. // Properties:
  12347. /* readonly */
  12348. String category;
  12349. /* readonly */
  12350. uint memoryUse;
  12351. String name;
  12352. /* readonly */
  12353. int refs;
  12354. /* readonly */
  12355. StringHash type;
  12356. /* readonly */
  12357. String typeName;
  12358. /* readonly */
  12359. uint useTimer;
  12360. /* readonly */
  12361. int weakRefs;
  12362. };
  12363. class ToolTip
  12364. {
  12365. // Methods:
  12366. void AddChild(UIElement);
  12367. void AddTag(const String&);
  12368. void AddTags(const String&, int8 = ';');
  12369. void ApplyAttributes();
  12370. void BringToFront();
  12371. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12372. void DisableLayoutUpdate();
  12373. IntVector2 ElementToScreen(const IntVector2&);
  12374. void EnableLayoutUpdate();
  12375. uint FindChild(UIElement) const;
  12376. Variant GetAttribute(const String&) const;
  12377. ValueAnimation GetAttributeAnimation(const String&) const;
  12378. float GetAttributeAnimationSpeed(const String&) const;
  12379. float GetAttributeAnimationTime(const String&) const;
  12380. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12381. Variant GetAttributeDefault(const String&) const;
  12382. UIElement GetChild(const String&, bool = false) const;
  12383. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12384. Array<UIElement> GetChildren(bool = false) const;
  12385. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12386. UIElement GetElementEventSender() const;
  12387. bool GetInterceptNetworkUpdate(const String&) const;
  12388. uint GetNumChildren(bool) const;
  12389. bool HasSubscribedToEvent(Object, const String&);
  12390. bool HasSubscribedToEvent(const String&);
  12391. bool HasTag(const String&) const;
  12392. void InsertChild(uint, UIElement);
  12393. bool IsInside(IntVector2, bool);
  12394. bool IsInsideCombined(IntVector2, bool);
  12395. bool Load(File, bool = false);
  12396. bool Load(VectorBuffer&, bool = false);
  12397. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12398. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12399. bool LoadJSON(const JSONValue&, bool = false);
  12400. bool LoadXML(File);
  12401. bool LoadXML(VectorBuffer&);
  12402. bool LoadXML(XMLFile, XMLFile);
  12403. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12404. bool LoadXML(const XMLElement&, bool = false);
  12405. void MarkNetworkUpdate() const;
  12406. void Remove();
  12407. void RemoveAllChildren();
  12408. void RemoveAllTags();
  12409. void RemoveAttributeAnimation(const String&);
  12410. void RemoveChild(UIElement, uint = 0);
  12411. void RemoveChild(uint);
  12412. void RemoveInstanceDefault();
  12413. void RemoveObjectAnimation();
  12414. bool RemoveTag(const String&);
  12415. void ResetDeepEnabled();
  12416. void ResetToDefault();
  12417. bool Save(File) const;
  12418. bool Save(VectorBuffer&) const;
  12419. bool SaveJSON(JSONValue&) const;
  12420. bool SaveXML(File, const String& = "\t");
  12421. bool SaveXML(VectorBuffer&, const String& = "\t");
  12422. bool SaveXML(XMLElement&) const;
  12423. IntVector2 ScreenToElement(const IntVector2&);
  12424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12425. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12426. void SetAnimationTime(float);
  12427. bool SetAttribute(const String&, const Variant&);
  12428. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12429. void SetAttributeAnimationSpeed(const String&, float);
  12430. void SetAttributeAnimationTime(const String&, float);
  12431. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12432. void SetDeepEnabled(bool);
  12433. void SetEnabledRecursive(bool);
  12434. void SetFixedHeight(int);
  12435. void SetFixedSize(int, int);
  12436. void SetFixedWidth(int);
  12437. void SetInterceptNetworkUpdate(const String&, bool);
  12438. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12439. void SetMaxAnchor(float, float);
  12440. void SetMaxSize(int, int);
  12441. void SetMinAnchor(float, float);
  12442. void SetMinSize(int, int);
  12443. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12444. void SetPivot(float, float);
  12445. void SetPosition(int, int);
  12446. void SetSize(int, int);
  12447. bool SetStyle(const String&, XMLFile = null);
  12448. bool SetStyle(const XMLElement&);
  12449. bool SetStyleAuto(XMLFile = null);
  12450. void UpdateLayout();
  12451. const Variant& GetVar(const StringHash&);
  12452. // Properties:
  12453. bool animationEnabled;
  12454. /* readonly */
  12455. Array<Variant> attributeDefaults;
  12456. /* readonly */
  12457. Array<AttributeInfo> attributeInfos;
  12458. Array<Variant> attributes;
  12459. bool bringToBack;
  12460. bool bringToFront;
  12461. /* readonly */
  12462. String category;
  12463. /* readonly */
  12464. IntVector2 childOffset;
  12465. /* readonly */
  12466. Array<UIElement> children;
  12467. IntRect clipBorder;
  12468. bool clipChildren;
  12469. /* writeonly */
  12470. Color color;
  12471. /* readonly */
  12472. bool colorGradient;
  12473. Array<Color> colors;
  12474. /* readonly */
  12475. IntRect combinedScreenRect;
  12476. XMLFile defaultStyle;
  12477. float delay;
  12478. /* readonly */
  12479. float derivedOpacity;
  12480. /* readonly */
  12481. uint dragButtonCombo;
  12482. /* readonly */
  12483. int dragButtonCount;
  12484. uint dragDropMode;
  12485. bool editable;
  12486. bool elementEventSender;
  12487. bool enableAnchor;
  12488. bool enabled;
  12489. /* readonly */
  12490. bool enabledSelf;
  12491. /* readonly */
  12492. bool fixedHeight;
  12493. /* readonly */
  12494. bool fixedSize;
  12495. /* readonly */
  12496. bool fixedWidth;
  12497. bool focus;
  12498. FocusMode focusMode;
  12499. int height;
  12500. HorizontalAlignment horizontalAlignment;
  12501. /* readonly */
  12502. bool hovering;
  12503. int indent;
  12504. int indentSpacing;
  12505. /* readonly */
  12506. int indentWidth;
  12507. bool internal;
  12508. IntRect layoutBorder;
  12509. Vector2 layoutFlexScale;
  12510. LayoutMode layoutMode;
  12511. int layoutSpacing;
  12512. Vector2 maxAnchor;
  12513. int maxHeight;
  12514. IntVector2 maxOffset;
  12515. IntVector2 maxSize;
  12516. int maxWidth;
  12517. Vector2 minAnchor;
  12518. int minHeight;
  12519. IntVector2 minOffset;
  12520. IntVector2 minSize;
  12521. int minWidth;
  12522. String name;
  12523. /* readonly */
  12524. uint numAllChildren;
  12525. /* readonly */
  12526. uint numAttributes;
  12527. /* readonly */
  12528. uint numChildren;
  12529. ObjectAnimation objectAnimation;
  12530. float opacity;
  12531. UIElement parent;
  12532. Vector2 pivot;
  12533. IntVector2 position;
  12534. int priority;
  12535. /* readonly */
  12536. int refs;
  12537. /* readonly */
  12538. UIElement root;
  12539. /* readonly */
  12540. IntVector2 screenPosition;
  12541. bool selected;
  12542. IntVector2 size;
  12543. bool sortChildren;
  12544. String style;
  12545. /* readonly */
  12546. Array<String> tags;
  12547. bool temporary;
  12548. TraversalMode traversalMode;
  12549. /* readonly */
  12550. StringHash type;
  12551. /* readonly */
  12552. String typeName;
  12553. bool useDerivedOpacity;
  12554. /* readonly */
  12555. VariantMap vars;
  12556. VerticalAlignment verticalAlignment;
  12557. bool visible;
  12558. /* readonly */
  12559. bool visibleEffective;
  12560. /* readonly */
  12561. int weakRefs;
  12562. int width;
  12563. };
  12564. class TouchState
  12565. {
  12566. // Properties:
  12567. IntVector2 delta;
  12568. IntVector2 lastPosition;
  12569. IntVector2 position;
  12570. float pressure;
  12571. int touchID;
  12572. /* readonly */
  12573. UIElement touchedElement;
  12574. };
  12575. class UI
  12576. {
  12577. // Methods:
  12578. void Clear();
  12579. void DebugDraw(UIElement);
  12580. UIElement GetElementAt(const IntVector2&, bool = true);
  12581. UIElement GetElementAt(int, int, bool = true);
  12582. bool HasModalElement() const;
  12583. bool HasSubscribedToEvent(Object, const String&);
  12584. bool HasSubscribedToEvent(const String&);
  12585. bool IsDragging() const;
  12586. UIElement LoadLayout(File);
  12587. UIElement LoadLayout(File, XMLFile);
  12588. UIElement LoadLayout(VectorBuffer&);
  12589. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12590. UIElement LoadLayout(XMLFile);
  12591. UIElement LoadLayout(XMLFile, XMLFile);
  12592. bool SaveLayout(File, UIElement);
  12593. bool SaveLayout(VectorBuffer&, UIElement);
  12594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12595. void SetCustomSize(int, int);
  12596. void SetFocusElement(UIElement, bool = false);
  12597. void SetHeight(float);
  12598. void SetWidth(float);
  12599. const Array<UIElement> GetDragElements();
  12600. // Properties:
  12601. /* readonly */
  12602. String category;
  12603. String clipBoardText;
  12604. Cursor cursor;
  12605. /* readonly */
  12606. IntVector2 cursorPosition;
  12607. IntVector2 customSize;
  12608. float defaultToolTipDelay;
  12609. float doubleClickInterval;
  12610. int dragBeginDistance;
  12611. float dragBeginInterval;
  12612. UIElement focusElement;
  12613. bool forceAutoHint;
  12614. /* readonly */
  12615. UIElement frontElement;
  12616. int maxFontTextureSize;
  12617. /* readonly */
  12618. UIElement modalRoot;
  12619. bool nonFocusedMouseWheel;
  12620. /* readonly */
  12621. int refs;
  12622. /* readonly */
  12623. UIElement root;
  12624. float scale;
  12625. /* readonly */
  12626. StringHash type;
  12627. /* readonly */
  12628. String typeName;
  12629. bool useMutableGlyphs;
  12630. bool useScreenKeyboard;
  12631. bool useSystemClipboard;
  12632. /* readonly */
  12633. int weakRefs;
  12634. };
  12635. class UIElement
  12636. {
  12637. // Methods:
  12638. void AddChild(UIElement);
  12639. void AddTag(const String&);
  12640. void AddTags(const String&, int8 = ';');
  12641. void ApplyAttributes();
  12642. void BringToFront();
  12643. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12644. void DisableLayoutUpdate();
  12645. IntVector2 ElementToScreen(const IntVector2&);
  12646. void EnableLayoutUpdate();
  12647. uint FindChild(UIElement) const;
  12648. Variant GetAttribute(const String&) const;
  12649. ValueAnimation GetAttributeAnimation(const String&) const;
  12650. float GetAttributeAnimationSpeed(const String&) const;
  12651. float GetAttributeAnimationTime(const String&) const;
  12652. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12653. Variant GetAttributeDefault(const String&) const;
  12654. UIElement GetChild(const String&, bool = false) const;
  12655. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12656. Array<UIElement> GetChildren(bool = false) const;
  12657. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12658. UIElement GetElementEventSender() const;
  12659. bool GetInterceptNetworkUpdate(const String&) const;
  12660. uint GetNumChildren(bool) const;
  12661. bool HasSubscribedToEvent(Object, const String&);
  12662. bool HasSubscribedToEvent(const String&);
  12663. bool HasTag(const String&) const;
  12664. void InsertChild(uint, UIElement);
  12665. bool IsInside(IntVector2, bool);
  12666. bool IsInsideCombined(IntVector2, bool);
  12667. bool Load(File, bool = false);
  12668. bool Load(VectorBuffer&, bool = false);
  12669. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12670. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12671. bool LoadJSON(const JSONValue&, bool = false);
  12672. bool LoadXML(File);
  12673. bool LoadXML(VectorBuffer&);
  12674. bool LoadXML(XMLFile, XMLFile);
  12675. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12676. bool LoadXML(const XMLElement&, bool = false);
  12677. void MarkNetworkUpdate() const;
  12678. void Remove();
  12679. void RemoveAllChildren();
  12680. void RemoveAllTags();
  12681. void RemoveAttributeAnimation(const String&);
  12682. void RemoveChild(UIElement, uint = 0);
  12683. void RemoveChild(uint);
  12684. void RemoveInstanceDefault();
  12685. void RemoveObjectAnimation();
  12686. bool RemoveTag(const String&);
  12687. void ResetDeepEnabled();
  12688. void ResetToDefault();
  12689. bool Save(File) const;
  12690. bool Save(VectorBuffer&) const;
  12691. bool SaveJSON(JSONValue&) const;
  12692. bool SaveXML(File, const String& = "\t");
  12693. bool SaveXML(VectorBuffer&, const String& = "\t");
  12694. bool SaveXML(XMLElement&) const;
  12695. IntVector2 ScreenToElement(const IntVector2&);
  12696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12697. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12698. void SetAnimationTime(float);
  12699. bool SetAttribute(const String&, const Variant&);
  12700. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12701. void SetAttributeAnimationSpeed(const String&, float);
  12702. void SetAttributeAnimationTime(const String&, float);
  12703. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12704. void SetDeepEnabled(bool);
  12705. void SetEnabledRecursive(bool);
  12706. void SetFixedHeight(int);
  12707. void SetFixedSize(int, int);
  12708. void SetFixedWidth(int);
  12709. void SetInterceptNetworkUpdate(const String&, bool);
  12710. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12711. void SetMaxAnchor(float, float);
  12712. void SetMaxSize(int, int);
  12713. void SetMinAnchor(float, float);
  12714. void SetMinSize(int, int);
  12715. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12716. void SetPivot(float, float);
  12717. void SetPosition(int, int);
  12718. void SetSize(int, int);
  12719. bool SetStyle(const String&, XMLFile = null);
  12720. bool SetStyle(const XMLElement&);
  12721. bool SetStyleAuto(XMLFile = null);
  12722. void UpdateLayout();
  12723. const Variant& GetVar(const StringHash&);
  12724. // Properties:
  12725. bool animationEnabled;
  12726. /* readonly */
  12727. Array<Variant> attributeDefaults;
  12728. /* readonly */
  12729. Array<AttributeInfo> attributeInfos;
  12730. Array<Variant> attributes;
  12731. bool bringToBack;
  12732. bool bringToFront;
  12733. /* readonly */
  12734. String category;
  12735. /* readonly */
  12736. IntVector2 childOffset;
  12737. /* readonly */
  12738. Array<UIElement> children;
  12739. IntRect clipBorder;
  12740. bool clipChildren;
  12741. /* writeonly */
  12742. Color color;
  12743. /* readonly */
  12744. bool colorGradient;
  12745. Array<Color> colors;
  12746. /* readonly */
  12747. IntRect combinedScreenRect;
  12748. XMLFile defaultStyle;
  12749. /* readonly */
  12750. float derivedOpacity;
  12751. /* readonly */
  12752. uint dragButtonCombo;
  12753. /* readonly */
  12754. int dragButtonCount;
  12755. uint dragDropMode;
  12756. bool editable;
  12757. bool elementEventSender;
  12758. bool enableAnchor;
  12759. bool enabled;
  12760. /* readonly */
  12761. bool enabledSelf;
  12762. /* readonly */
  12763. bool fixedHeight;
  12764. /* readonly */
  12765. bool fixedSize;
  12766. /* readonly */
  12767. bool fixedWidth;
  12768. bool focus;
  12769. FocusMode focusMode;
  12770. int height;
  12771. HorizontalAlignment horizontalAlignment;
  12772. /* readonly */
  12773. bool hovering;
  12774. int indent;
  12775. int indentSpacing;
  12776. /* readonly */
  12777. int indentWidth;
  12778. bool internal;
  12779. IntRect layoutBorder;
  12780. Vector2 layoutFlexScale;
  12781. LayoutMode layoutMode;
  12782. int layoutSpacing;
  12783. Vector2 maxAnchor;
  12784. int maxHeight;
  12785. IntVector2 maxOffset;
  12786. IntVector2 maxSize;
  12787. int maxWidth;
  12788. Vector2 minAnchor;
  12789. int minHeight;
  12790. IntVector2 minOffset;
  12791. IntVector2 minSize;
  12792. int minWidth;
  12793. String name;
  12794. /* readonly */
  12795. uint numAllChildren;
  12796. /* readonly */
  12797. uint numAttributes;
  12798. /* readonly */
  12799. uint numChildren;
  12800. ObjectAnimation objectAnimation;
  12801. float opacity;
  12802. UIElement parent;
  12803. Vector2 pivot;
  12804. IntVector2 position;
  12805. int priority;
  12806. /* readonly */
  12807. int refs;
  12808. /* readonly */
  12809. UIElement root;
  12810. /* readonly */
  12811. IntVector2 screenPosition;
  12812. bool selected;
  12813. IntVector2 size;
  12814. bool sortChildren;
  12815. String style;
  12816. /* readonly */
  12817. Array<String> tags;
  12818. bool temporary;
  12819. TraversalMode traversalMode;
  12820. /* readonly */
  12821. StringHash type;
  12822. /* readonly */
  12823. String typeName;
  12824. bool useDerivedOpacity;
  12825. /* readonly */
  12826. VariantMap vars;
  12827. VerticalAlignment verticalAlignment;
  12828. bool visible;
  12829. /* readonly */
  12830. bool visibleEffective;
  12831. /* readonly */
  12832. int weakRefs;
  12833. int width;
  12834. };
  12835. class ValueAnimation
  12836. {
  12837. // Methods:
  12838. bool HasSubscribedToEvent(Object, const String&);
  12839. bool HasSubscribedToEvent(const String&);
  12840. bool Load(File);
  12841. bool Load(VectorBuffer&);
  12842. bool Load(const String&);
  12843. bool Save(File) const;
  12844. bool Save(VectorBuffer&) const;
  12845. bool Save(const String&) const;
  12846. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12847. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12848. void SetKeyFrame(float, const Variant&);
  12849. // Properties:
  12850. /* readonly */
  12851. String category;
  12852. InterpMethod interpolationMethod;
  12853. /* readonly */
  12854. uint memoryUse;
  12855. String name;
  12856. /* readonly */
  12857. int refs;
  12858. float splineTension;
  12859. /* readonly */
  12860. StringHash type;
  12861. /* readonly */
  12862. String typeName;
  12863. /* readonly */
  12864. uint useTimer;
  12865. VariantType valueType;
  12866. /* readonly */
  12867. int weakRefs;
  12868. };
  12869. class Variant
  12870. {
  12871. // Methods:
  12872. void Clear();
  12873. const Color& GetColor() const;
  12874. void FromString(VariantType, const String&);
  12875. void FromString(const String&, const String&);
  12876. bool GetBool() const;
  12877. VectorBuffer GetBuffer() const;
  12878. double GetDouble() const;
  12879. float GetFloat() const;
  12880. int GetInt() const;
  12881. RefCounted GetPtr() const;
  12882. ScriptObject GetScriptObject() const;
  12883. StringHash GetStringHash() const;
  12884. Array<String> GetStringVector() const;
  12885. uint GetUInt() const;
  12886. Array<Variant> GetVariantVector() const;
  12887. const IntRect& GetIntRect() const;
  12888. const IntVector2& GetIntVector2() const;
  12889. const Matrix3& GetMatrix3() const;
  12890. const Matrix3x4& GetMatrix3x4() const;
  12891. const Matrix4& GetMatrix4() const;
  12892. const Quaternion& GetQuaternion() const;
  12893. const Rect& GetRect() const;
  12894. const ResourceRef& GetResourceRef() const;
  12895. const ResourceRefList& GetResourceRefList() const;
  12896. const String& GetString() const;
  12897. String ToString() const;
  12898. const VariantMap& GetVariantMap() const;
  12899. const Vector2& GetVector2() const;
  12900. const Vector3& GetVector3() const;
  12901. const Vector4& GetVector4() const;
  12902. // Properties:
  12903. /* readonly */
  12904. bool empty;
  12905. /* readonly */
  12906. VariantType type;
  12907. /* readonly */
  12908. String typeName;
  12909. /* readonly */
  12910. bool zero;
  12911. };
  12912. class VariantMap
  12913. {
  12914. // Methods:
  12915. void Clear();
  12916. bool Contains(StringHash) const;
  12917. bool Contains(const String&) const;
  12918. bool Erase(StringHash);
  12919. bool Erase(const String&);
  12920. // Properties:
  12921. /* readonly */
  12922. Array<StringHash> keys;
  12923. /* readonly */
  12924. uint length;
  12925. /* readonly */
  12926. Array<Variant> values;
  12927. };
  12928. class Vector2
  12929. {
  12930. // Methods:
  12931. Vector2 Abs() const;
  12932. float AbsDotProduct(const Vector2&) const;
  12933. float Angle(const Vector2&) const;
  12934. float DotProduct(const Vector2&) const;
  12935. bool Equals(const Vector2&) const;
  12936. bool IsNaN() const;
  12937. Vector2 Lerp(const Vector2&, float) const;
  12938. void Normalize();
  12939. Vector2 Normalized() const;
  12940. float ProjectOntoAxis(const Vector2&) const;
  12941. String ToString() const;
  12942. // Properties:
  12943. /* readonly */
  12944. Array<float> data;
  12945. /* readonly */
  12946. float length;
  12947. /* readonly */
  12948. float lengthSquared;
  12949. float x;
  12950. float y;
  12951. };
  12952. class Vector3
  12953. {
  12954. // Methods:
  12955. Vector3 Abs() const;
  12956. float AbsDotProduct(const Vector3&) const;
  12957. float Angle(const Vector3&) const;
  12958. Vector3 CrossProduct(const Vector3&) const;
  12959. float DotProduct(const Vector3&) const;
  12960. bool Equals(const Vector3&) const;
  12961. bool IsNaN() const;
  12962. Vector3 Lerp(const Vector3&, float) const;
  12963. void Normalize();
  12964. Vector3 Normalized() const;
  12965. float ProjectOntoAxis(const Vector3&) const;
  12966. String ToString() const;
  12967. // Properties:
  12968. /* readonly */
  12969. Array<float> data;
  12970. /* readonly */
  12971. float length;
  12972. /* readonly */
  12973. float lengthSquared;
  12974. float x;
  12975. float y;
  12976. float z;
  12977. };
  12978. class Vector4
  12979. {
  12980. // Methods:
  12981. Vector4 Abs() const;
  12982. float AbsDotProduct(const Vector4&) const;
  12983. float DotProduct(const Vector4&) const;
  12984. bool Equals(const Vector4&) const;
  12985. bool IsNaN() const;
  12986. Vector4 Lerp(const Vector4&, float) const;
  12987. float ProjectOntoAxis(const Vector3&) const;
  12988. String ToString() const;
  12989. // Properties:
  12990. /* readonly */
  12991. Array<float> data;
  12992. float w;
  12993. float x;
  12994. float y;
  12995. float z;
  12996. };
  12997. class VectorBuffer
  12998. {
  12999. // Methods:
  13000. void Clear();
  13001. Array<uint8> Read(uint);
  13002. bool ReadBool();
  13003. BoundingBox ReadBoundingBox();
  13004. int8 ReadByte();
  13005. Color ReadColor();
  13006. double ReadDouble();
  13007. String ReadFileID();
  13008. float ReadFloat();
  13009. int ReadInt();
  13010. int64 ReadInt64();
  13011. IntRect ReadIntRect();
  13012. IntVector2 ReadIntVector2();
  13013. String ReadLine();
  13014. Matrix3 ReadMatrix3();
  13015. Matrix3x4 ReadMatrix3x4();
  13016. Matrix4 ReadMatrix4();
  13017. uint ReadNetID();
  13018. Quaternion ReadPackedQuaternion();
  13019. Vector3 ReadPackedVector3(float);
  13020. Quaternion ReadQuaternion();
  13021. int16 ReadShort();
  13022. String ReadString();
  13023. StringHash ReadStringHash();
  13024. uint8 ReadUByte();
  13025. uint ReadUInt();
  13026. uint64 ReadUInt64();
  13027. uint16 ReadUShort();
  13028. uint ReadVLE();
  13029. Variant ReadVariant();
  13030. VariantMap ReadVariantMap();
  13031. Vector2 ReadVector2();
  13032. Vector3 ReadVector3();
  13033. Vector4 ReadVector4();
  13034. VectorBuffer ReadVectorBuffer(uint);
  13035. void Resize(uint);
  13036. uint Seek(uint);
  13037. void SetData(Deserializer, uint);
  13038. uint Write(Array<uint8>);
  13039. bool WriteBool(bool);
  13040. bool WriteBoundingBox(const BoundingBox&);
  13041. bool WriteByte(int8);
  13042. bool WriteColor(const Color&);
  13043. bool WriteDouble(double);
  13044. bool WriteFileID(const String&);
  13045. bool WriteFloat(float);
  13046. bool WriteInt(int);
  13047. bool WriteInt64(int64);
  13048. bool WriteIntRect(const IntRect&);
  13049. bool WriteIntVector2(const IntVector2&);
  13050. bool WriteLine(const String&);
  13051. bool WriteMatrix3(const Matrix3&);
  13052. bool WriteMatrix3x4(const Matrix3x4&);
  13053. bool WriteMatrix4(const Matrix4&);
  13054. bool WriteNetID(uint);
  13055. bool WritePackedQuaternion(const Quaternion&);
  13056. bool WritePackedVector3(const Vector3&, float);
  13057. bool WriteQuaternion(const Quaternion&);
  13058. bool WriteShort(int16);
  13059. bool WriteString(const String&);
  13060. bool WriteStringHash(const StringHash&);
  13061. bool WriteUByte(uint8);
  13062. bool WriteUInt(uint);
  13063. bool WriteUInt64(uint64);
  13064. bool WriteUShort(uint16);
  13065. bool WriteVLE(uint);
  13066. bool WriteVariant(const Variant&);
  13067. bool WriteVariantMap(const VariantMap&);
  13068. bool WriteVector2(const Vector2&);
  13069. bool WriteVector3(const Vector3&);
  13070. bool WriteVector4(const Vector4&);
  13071. bool WriteVectorBuffer(const VectorBuffer&);
  13072. // Properties:
  13073. /* readonly */
  13074. uint checksum;
  13075. /* readonly */
  13076. bool eof;
  13077. /* readonly */
  13078. String name;
  13079. /* readonly */
  13080. uint position;
  13081. /* readonly */
  13082. uint size;
  13083. };
  13084. class VertexBuffer
  13085. {
  13086. // Methods:
  13087. VectorBuffer GetData() const;
  13088. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13089. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13090. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13091. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13092. bool HasSubscribedToEvent(Object, const String&);
  13093. bool HasSubscribedToEvent(const String&);
  13094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13095. bool SetData(VectorBuffer&);
  13096. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13097. void SetSize(uint, Array<VertexElement>, bool = false);
  13098. void SetSize(uint, uint, bool = false);
  13099. // Properties:
  13100. /* readonly */
  13101. String category;
  13102. /* readonly */
  13103. bool dynamic;
  13104. /* readonly */
  13105. uint elementMask;
  13106. /* readonly */
  13107. Array<VertexElement> elements;
  13108. /* readonly */
  13109. int refs;
  13110. bool shadowed;
  13111. /* readonly */
  13112. StringHash type;
  13113. /* readonly */
  13114. String typeName;
  13115. /* readonly */
  13116. uint vertexCount;
  13117. /* readonly */
  13118. uint vertexSize;
  13119. /* readonly */
  13120. int weakRefs;
  13121. };
  13122. class VertexElement
  13123. {
  13124. // Properties:
  13125. uint8 index;
  13126. uint offset;
  13127. bool perInstance;
  13128. VertexElementSemantic semantic;
  13129. VertexElementType type;
  13130. };
  13131. class View3D
  13132. {
  13133. // Methods:
  13134. void AddChild(UIElement);
  13135. void AddTag(const String&);
  13136. void AddTags(const String&, int8 = ';');
  13137. void ApplyAttributes();
  13138. void BringToFront();
  13139. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13140. void DisableLayoutUpdate();
  13141. IntVector2 ElementToScreen(const IntVector2&);
  13142. void EnableLayoutUpdate();
  13143. uint FindChild(UIElement) const;
  13144. Variant GetAttribute(const String&) const;
  13145. ValueAnimation GetAttributeAnimation(const String&) const;
  13146. float GetAttributeAnimationSpeed(const String&) const;
  13147. float GetAttributeAnimationTime(const String&) const;
  13148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13149. Variant GetAttributeDefault(const String&) const;
  13150. UIElement GetChild(const String&, bool = false) const;
  13151. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13152. Array<UIElement> GetChildren(bool = false) const;
  13153. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13154. UIElement GetElementEventSender() const;
  13155. bool GetInterceptNetworkUpdate(const String&) const;
  13156. uint GetNumChildren(bool) const;
  13157. bool HasSubscribedToEvent(Object, const String&);
  13158. bool HasSubscribedToEvent(const String&);
  13159. bool HasTag(const String&) const;
  13160. void InsertChild(uint, UIElement);
  13161. bool IsInside(IntVector2, bool);
  13162. bool IsInsideCombined(IntVector2, bool);
  13163. bool Load(File, bool = false);
  13164. bool Load(VectorBuffer&, bool = false);
  13165. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13166. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13167. bool LoadJSON(const JSONValue&, bool = false);
  13168. bool LoadXML(File);
  13169. bool LoadXML(VectorBuffer&);
  13170. bool LoadXML(XMLFile, XMLFile);
  13171. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13172. bool LoadXML(const XMLElement&, bool = false);
  13173. void MarkNetworkUpdate() const;
  13174. void QueueUpdate();
  13175. void Remove();
  13176. void RemoveAllChildren();
  13177. void RemoveAllTags();
  13178. void RemoveAttributeAnimation(const String&);
  13179. void RemoveChild(UIElement, uint = 0);
  13180. void RemoveChild(uint);
  13181. void RemoveInstanceDefault();
  13182. void RemoveObjectAnimation();
  13183. bool RemoveTag(const String&);
  13184. void ResetDeepEnabled();
  13185. void ResetToDefault();
  13186. bool Save(File) const;
  13187. bool Save(VectorBuffer&) const;
  13188. bool SaveJSON(JSONValue&) const;
  13189. bool SaveXML(File, const String& = "\t");
  13190. bool SaveXML(VectorBuffer&, const String& = "\t");
  13191. bool SaveXML(XMLElement&) const;
  13192. IntVector2 ScreenToElement(const IntVector2&);
  13193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13194. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13195. void SetAnimationTime(float);
  13196. bool SetAttribute(const String&, const Variant&);
  13197. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13198. void SetAttributeAnimationSpeed(const String&, float);
  13199. void SetAttributeAnimationTime(const String&, float);
  13200. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13201. void SetDeepEnabled(bool);
  13202. void SetEnabledRecursive(bool);
  13203. void SetFixedHeight(int);
  13204. void SetFixedSize(int, int);
  13205. void SetFixedWidth(int);
  13206. void SetFullImageRect();
  13207. void SetHoverOffset(int, int);
  13208. void SetInterceptNetworkUpdate(const String&, bool);
  13209. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13210. void SetMaxAnchor(float, float);
  13211. void SetMaxSize(int, int);
  13212. void SetMinAnchor(float, float);
  13213. void SetMinSize(int, int);
  13214. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13215. void SetPivot(float, float);
  13216. void SetPosition(int, int);
  13217. void SetSize(int, int);
  13218. bool SetStyle(const String&, XMLFile = null);
  13219. bool SetStyle(const XMLElement&);
  13220. bool SetStyleAuto(XMLFile = null);
  13221. void SetView(Scene, Camera, bool = true);
  13222. void UpdateLayout();
  13223. const Variant& GetVar(const StringHash&);
  13224. // Properties:
  13225. bool animationEnabled;
  13226. /* readonly */
  13227. Array<Variant> attributeDefaults;
  13228. /* readonly */
  13229. Array<AttributeInfo> attributeInfos;
  13230. Array<Variant> attributes;
  13231. bool autoUpdate;
  13232. BlendMode blendMode;
  13233. IntRect border;
  13234. bool bringToBack;
  13235. bool bringToFront;
  13236. /* readonly */
  13237. Node cameraNode;
  13238. /* readonly */
  13239. String category;
  13240. /* readonly */
  13241. IntVector2 childOffset;
  13242. /* readonly */
  13243. Array<UIElement> children;
  13244. IntRect clipBorder;
  13245. bool clipChildren;
  13246. /* writeonly */
  13247. Color color;
  13248. /* readonly */
  13249. bool colorGradient;
  13250. Array<Color> colors;
  13251. /* readonly */
  13252. IntRect combinedScreenRect;
  13253. XMLFile defaultStyle;
  13254. /* readonly */
  13255. Texture2D depthTexture;
  13256. /* readonly */
  13257. float derivedOpacity;
  13258. /* readonly */
  13259. uint dragButtonCombo;
  13260. /* readonly */
  13261. int dragButtonCount;
  13262. uint dragDropMode;
  13263. bool editable;
  13264. bool elementEventSender;
  13265. bool enableAnchor;
  13266. bool enabled;
  13267. /* readonly */
  13268. bool enabledSelf;
  13269. /* readonly */
  13270. bool fixedHeight;
  13271. bool fixedHeightResizing;
  13272. /* readonly */
  13273. bool fixedSize;
  13274. /* readonly */
  13275. bool fixedWidth;
  13276. bool fixedWidthResizing;
  13277. bool focus;
  13278. FocusMode focusMode;
  13279. uint format;
  13280. int height;
  13281. HorizontalAlignment horizontalAlignment;
  13282. IntVector2 hoverOffset;
  13283. /* readonly */
  13284. bool hovering;
  13285. IntRect imageBorder;
  13286. IntRect imageRect;
  13287. int indent;
  13288. int indentSpacing;
  13289. /* readonly */
  13290. int indentWidth;
  13291. bool internal;
  13292. IntRect layoutBorder;
  13293. Vector2 layoutFlexScale;
  13294. LayoutMode layoutMode;
  13295. int layoutSpacing;
  13296. Vector2 maxAnchor;
  13297. int maxHeight;
  13298. IntVector2 maxOffset;
  13299. IntVector2 maxSize;
  13300. int maxWidth;
  13301. Vector2 minAnchor;
  13302. int minHeight;
  13303. IntVector2 minOffset;
  13304. IntVector2 minSize;
  13305. int minWidth;
  13306. bool modal;
  13307. bool modalAutoDismiss;
  13308. Color modalFrameColor;
  13309. IntVector2 modalFrameSize;
  13310. Color modalShadeColor;
  13311. bool movable;
  13312. String name;
  13313. /* readonly */
  13314. uint numAllChildren;
  13315. /* readonly */
  13316. uint numAttributes;
  13317. /* readonly */
  13318. uint numChildren;
  13319. ObjectAnimation objectAnimation;
  13320. float opacity;
  13321. UIElement parent;
  13322. Vector2 pivot;
  13323. IntVector2 position;
  13324. int priority;
  13325. /* readonly */
  13326. int refs;
  13327. /* readonly */
  13328. Texture2D renderTexture;
  13329. bool resizable;
  13330. IntRect resizeBorder;
  13331. /* readonly */
  13332. UIElement root;
  13333. /* readonly */
  13334. Scene scene;
  13335. /* readonly */
  13336. IntVector2 screenPosition;
  13337. bool selected;
  13338. IntVector2 size;
  13339. bool sortChildren;
  13340. String style;
  13341. /* readonly */
  13342. Array<String> tags;
  13343. bool temporary;
  13344. Texture texture;
  13345. bool tiled;
  13346. TraversalMode traversalMode;
  13347. /* readonly */
  13348. StringHash type;
  13349. /* readonly */
  13350. String typeName;
  13351. bool useDerivedOpacity;
  13352. /* readonly */
  13353. VariantMap vars;
  13354. VerticalAlignment verticalAlignment;
  13355. /* readonly */
  13356. Viewport viewport;
  13357. bool visible;
  13358. /* readonly */
  13359. bool visibleEffective;
  13360. /* readonly */
  13361. int weakRefs;
  13362. int width;
  13363. };
  13364. class Viewport
  13365. {
  13366. // Methods:
  13367. Ray GetScreenRay(int, int) const;
  13368. bool HasSubscribedToEvent(Object, const String&);
  13369. bool HasSubscribedToEvent(const String&);
  13370. Vector3 ScreenToWorldPoint(int, int, float) const;
  13371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13372. void SetRenderPath(XMLFile);
  13373. IntVector2 WorldToScreenPoint(const Vector3&) const;
  13374. // Properties:
  13375. Camera camera;
  13376. /* readonly */
  13377. String category;
  13378. Camera cullCamera;
  13379. bool drawDebug;
  13380. IntRect rect;
  13381. /* readonly */
  13382. int refs;
  13383. RenderPath renderPath;
  13384. Scene scene;
  13385. /* readonly */
  13386. StringHash type;
  13387. /* readonly */
  13388. String typeName;
  13389. /* readonly */
  13390. int weakRefs;
  13391. };
  13392. class WeakHandle
  13393. {
  13394. // Methods:
  13395. RefCounted Get() const;
  13396. // Properties:
  13397. /* readonly */
  13398. bool expired;
  13399. /* readonly */
  13400. int refs;
  13401. /* readonly */
  13402. int weakRefs;
  13403. };
  13404. class Window
  13405. {
  13406. // Methods:
  13407. void AddChild(UIElement);
  13408. void AddTag(const String&);
  13409. void AddTags(const String&, int8 = ';');
  13410. void ApplyAttributes();
  13411. void BringToFront();
  13412. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13413. void DisableLayoutUpdate();
  13414. IntVector2 ElementToScreen(const IntVector2&);
  13415. void EnableLayoutUpdate();
  13416. uint FindChild(UIElement) const;
  13417. Variant GetAttribute(const String&) const;
  13418. ValueAnimation GetAttributeAnimation(const String&) const;
  13419. float GetAttributeAnimationSpeed(const String&) const;
  13420. float GetAttributeAnimationTime(const String&) const;
  13421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13422. Variant GetAttributeDefault(const String&) const;
  13423. UIElement GetChild(const String&, bool = false) const;
  13424. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13425. Array<UIElement> GetChildren(bool = false) const;
  13426. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13427. UIElement GetElementEventSender() const;
  13428. bool GetInterceptNetworkUpdate(const String&) const;
  13429. uint GetNumChildren(bool) const;
  13430. bool HasSubscribedToEvent(Object, const String&);
  13431. bool HasSubscribedToEvent(const String&);
  13432. bool HasTag(const String&) const;
  13433. void InsertChild(uint, UIElement);
  13434. bool IsInside(IntVector2, bool);
  13435. bool IsInsideCombined(IntVector2, bool);
  13436. bool Load(File, bool = false);
  13437. bool Load(VectorBuffer&, bool = false);
  13438. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13439. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13440. bool LoadJSON(const JSONValue&, bool = false);
  13441. bool LoadXML(File);
  13442. bool LoadXML(VectorBuffer&);
  13443. bool LoadXML(XMLFile, XMLFile);
  13444. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13445. bool LoadXML(const XMLElement&, bool = false);
  13446. void MarkNetworkUpdate() const;
  13447. void Remove();
  13448. void RemoveAllChildren();
  13449. void RemoveAllTags();
  13450. void RemoveAttributeAnimation(const String&);
  13451. void RemoveChild(UIElement, uint = 0);
  13452. void RemoveChild(uint);
  13453. void RemoveInstanceDefault();
  13454. void RemoveObjectAnimation();
  13455. bool RemoveTag(const String&);
  13456. void ResetDeepEnabled();
  13457. void ResetToDefault();
  13458. bool Save(File) const;
  13459. bool Save(VectorBuffer&) const;
  13460. bool SaveJSON(JSONValue&) const;
  13461. bool SaveXML(File, const String& = "\t");
  13462. bool SaveXML(VectorBuffer&, const String& = "\t");
  13463. bool SaveXML(XMLElement&) const;
  13464. IntVector2 ScreenToElement(const IntVector2&);
  13465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13466. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13467. void SetAnimationTime(float);
  13468. bool SetAttribute(const String&, const Variant&);
  13469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13470. void SetAttributeAnimationSpeed(const String&, float);
  13471. void SetAttributeAnimationTime(const String&, float);
  13472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13473. void SetDeepEnabled(bool);
  13474. void SetEnabledRecursive(bool);
  13475. void SetFixedHeight(int);
  13476. void SetFixedSize(int, int);
  13477. void SetFixedWidth(int);
  13478. void SetFullImageRect();
  13479. void SetHoverOffset(int, int);
  13480. void SetInterceptNetworkUpdate(const String&, bool);
  13481. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13482. void SetMaxAnchor(float, float);
  13483. void SetMaxSize(int, int);
  13484. void SetMinAnchor(float, float);
  13485. void SetMinSize(int, int);
  13486. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13487. void SetPivot(float, float);
  13488. void SetPosition(int, int);
  13489. void SetSize(int, int);
  13490. bool SetStyle(const String&, XMLFile = null);
  13491. bool SetStyle(const XMLElement&);
  13492. bool SetStyleAuto(XMLFile = null);
  13493. void UpdateLayout();
  13494. const Variant& GetVar(const StringHash&);
  13495. // Properties:
  13496. bool animationEnabled;
  13497. /* readonly */
  13498. Array<Variant> attributeDefaults;
  13499. /* readonly */
  13500. Array<AttributeInfo> attributeInfos;
  13501. Array<Variant> attributes;
  13502. BlendMode blendMode;
  13503. IntRect border;
  13504. bool bringToBack;
  13505. bool bringToFront;
  13506. /* readonly */
  13507. String category;
  13508. /* readonly */
  13509. IntVector2 childOffset;
  13510. /* readonly */
  13511. Array<UIElement> children;
  13512. IntRect clipBorder;
  13513. bool clipChildren;
  13514. /* writeonly */
  13515. Color color;
  13516. /* readonly */
  13517. bool colorGradient;
  13518. Array<Color> colors;
  13519. /* readonly */
  13520. IntRect combinedScreenRect;
  13521. XMLFile defaultStyle;
  13522. /* readonly */
  13523. float derivedOpacity;
  13524. /* readonly */
  13525. uint dragButtonCombo;
  13526. /* readonly */
  13527. int dragButtonCount;
  13528. uint dragDropMode;
  13529. bool editable;
  13530. bool elementEventSender;
  13531. bool enableAnchor;
  13532. bool enabled;
  13533. /* readonly */
  13534. bool enabledSelf;
  13535. /* readonly */
  13536. bool fixedHeight;
  13537. bool fixedHeightResizing;
  13538. /* readonly */
  13539. bool fixedSize;
  13540. /* readonly */
  13541. bool fixedWidth;
  13542. bool fixedWidthResizing;
  13543. bool focus;
  13544. FocusMode focusMode;
  13545. int height;
  13546. HorizontalAlignment horizontalAlignment;
  13547. IntVector2 hoverOffset;
  13548. /* readonly */
  13549. bool hovering;
  13550. IntRect imageBorder;
  13551. IntRect imageRect;
  13552. int indent;
  13553. int indentSpacing;
  13554. /* readonly */
  13555. int indentWidth;
  13556. bool internal;
  13557. IntRect layoutBorder;
  13558. Vector2 layoutFlexScale;
  13559. LayoutMode layoutMode;
  13560. int layoutSpacing;
  13561. Vector2 maxAnchor;
  13562. int maxHeight;
  13563. IntVector2 maxOffset;
  13564. IntVector2 maxSize;
  13565. int maxWidth;
  13566. Vector2 minAnchor;
  13567. int minHeight;
  13568. IntVector2 minOffset;
  13569. IntVector2 minSize;
  13570. int minWidth;
  13571. bool modal;
  13572. bool modalAutoDismiss;
  13573. Color modalFrameColor;
  13574. IntVector2 modalFrameSize;
  13575. Color modalShadeColor;
  13576. bool movable;
  13577. String name;
  13578. /* readonly */
  13579. uint numAllChildren;
  13580. /* readonly */
  13581. uint numAttributes;
  13582. /* readonly */
  13583. uint numChildren;
  13584. ObjectAnimation objectAnimation;
  13585. float opacity;
  13586. UIElement parent;
  13587. Vector2 pivot;
  13588. IntVector2 position;
  13589. int priority;
  13590. /* readonly */
  13591. int refs;
  13592. bool resizable;
  13593. IntRect resizeBorder;
  13594. /* readonly */
  13595. UIElement root;
  13596. /* readonly */
  13597. IntVector2 screenPosition;
  13598. bool selected;
  13599. IntVector2 size;
  13600. bool sortChildren;
  13601. String style;
  13602. /* readonly */
  13603. Array<String> tags;
  13604. bool temporary;
  13605. Texture texture;
  13606. bool tiled;
  13607. TraversalMode traversalMode;
  13608. /* readonly */
  13609. StringHash type;
  13610. /* readonly */
  13611. String typeName;
  13612. bool useDerivedOpacity;
  13613. /* readonly */
  13614. VariantMap vars;
  13615. VerticalAlignment verticalAlignment;
  13616. bool visible;
  13617. /* readonly */
  13618. bool visibleEffective;
  13619. /* readonly */
  13620. int weakRefs;
  13621. int width;
  13622. };
  13623. class XMLElement
  13624. {
  13625. // Methods:
  13626. XMLElement CreateChild(const String&);
  13627. String GetAttribute(const String& = String ( )) const;
  13628. String GetAttributeLower(const String&) const;
  13629. Array<String> GetAttributeNames() const;
  13630. String GetAttributeUpper(const String&) const;
  13631. bool GetBool(const String&) const;
  13632. BoundingBox GetBoundingBox() const;
  13633. XMLElement GetChild(const String& = String ( )) const;
  13634. Color GetColor(const String&) const;
  13635. double GetDouble(const String&) const;
  13636. float GetFloat(const String&) const;
  13637. int GetInt(const String&) const;
  13638. IntRect GetIntRect(const String&) const;
  13639. IntVector2 GetIntVector2(const String&) const;
  13640. Matrix3 GetMatrix3(const String&) const;
  13641. Matrix3x4 GetMatrix3x4(const String&) const;
  13642. Matrix4 GetMatrix4(const String&) const;
  13643. XMLElement GetNext(const String& = String ( )) const;
  13644. Quaternion GetQuaternion(const String&) const;
  13645. ResourceRef GetResourceRef() const;
  13646. ResourceRefList GetResourceRefList() const;
  13647. uint GetUInt(const String&) const;
  13648. String GetValue() const;
  13649. Variant GetVariant() const;
  13650. VariantMap GetVariantMap() const;
  13651. Array<Variant> GetVariantVector() const;
  13652. Vector2 GetVector2(const String&) const;
  13653. Vector3 GetVector3(const String&) const;
  13654. Vector4 GetVector4(const String&) const;
  13655. Variant GetVectorVariant(const String&) const;
  13656. bool HasAttribute(const String&) const;
  13657. bool HasChild(const String&) const;
  13658. bool RemoveAttribute(const String& = String ( ));
  13659. bool RemoveChild(const String&);
  13660. bool RemoveChild(const XMLElement&);
  13661. bool RemoveChildren(const String& = String ( ));
  13662. XPathResultSet Select(const String&);
  13663. XPathResultSet SelectPrepared(const XPathQuery&);
  13664. XMLElement SelectSingle(const String&);
  13665. XMLElement SelectSinglePrepared(const XPathQuery&);
  13666. bool SetAttribute(const String&);
  13667. bool SetAttribute(const String&, const String&);
  13668. bool SetBool(const String&, bool);
  13669. bool SetBoundingBox(const BoundingBox&);
  13670. bool SetColor(const String&, const Color&);
  13671. bool SetDouble(const String&, double);
  13672. bool SetFloat(const String&, float);
  13673. bool SetInt(const String&, int);
  13674. bool SetIntRect(const String&, const IntRect&);
  13675. bool SetIntVector2(const String&, const IntVector2&);
  13676. bool SetMatrix3(const String&, const Matrix3&);
  13677. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13678. bool SetMatrix4(const String&, const Matrix4&);
  13679. bool SetQuaternion(const String&, const Quaternion&);
  13680. bool SetResourceRef(const String&, const ResourceRef&);
  13681. bool SetResourceRefList(const String&, const ResourceRefList&);
  13682. bool SetUInt(const String&, uint);
  13683. bool SetValue(const String&);
  13684. bool SetVariant(const Variant&);
  13685. bool SetVariantMap(const VariantMap&);
  13686. bool SetVariantVector(Array<Variant>);
  13687. bool SetVector2(const String&, const Vector2&);
  13688. bool SetVector3(const String&, const Vector3&);
  13689. bool SetVector4(const String&, const Vector4&);
  13690. bool SetVectorVariant(const String&, const Variant&);
  13691. // Properties:
  13692. /* readonly */
  13693. XMLFile file;
  13694. /* readonly */
  13695. bool isNull;
  13696. /* readonly */
  13697. String name;
  13698. /* readonly */
  13699. XMLElement nextResult;
  13700. /* readonly */
  13701. bool notNull;
  13702. /* readonly */
  13703. uint numAttributes;
  13704. /* readonly */
  13705. XMLElement parent;
  13706. String value;
  13707. };
  13708. class XMLFile
  13709. {
  13710. // Methods:
  13711. XMLElement CreateRoot(const String&);
  13712. bool FromString(const String&);
  13713. XMLElement GetRoot(const String& = String ( ));
  13714. bool HasSubscribedToEvent(Object, const String&);
  13715. bool HasSubscribedToEvent(const String&);
  13716. bool Load(File);
  13717. bool Load(VectorBuffer&);
  13718. bool Load(const String&);
  13719. void Patch(XMLElement);
  13720. void Patch(XMLFile);
  13721. bool Save(File) const;
  13722. bool Save(File, const String&) const;
  13723. bool Save(VectorBuffer&) const;
  13724. bool Save(const String&) const;
  13725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13726. String ToString(const String& = String ( "\t" )) const;
  13727. // Properties:
  13728. /* readonly */
  13729. String category;
  13730. /* readonly */
  13731. uint memoryUse;
  13732. String name;
  13733. /* readonly */
  13734. int refs;
  13735. /* readonly */
  13736. XMLElement root;
  13737. /* readonly */
  13738. StringHash type;
  13739. /* readonly */
  13740. String typeName;
  13741. /* readonly */
  13742. uint useTimer;
  13743. /* readonly */
  13744. int weakRefs;
  13745. };
  13746. class XPathQuery
  13747. {
  13748. // Methods:
  13749. void Bind();
  13750. void Clear();
  13751. XPathResultSet Evaluate(XMLElement);
  13752. bool EvaluateToBool(XMLElement);
  13753. float EvaluateToFloat(XMLElement);
  13754. String EvaluateToString(XMLElement);
  13755. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13756. bool SetVariable(const String&, bool);
  13757. bool SetVariable(const String&, const String&);
  13758. bool SetVariable(const String&, const XPathResultSet&);
  13759. bool SetVariable(const String&, float);
  13760. // Properties:
  13761. String query;
  13762. };
  13763. class XPathResultSet
  13764. {
  13765. // Properties:
  13766. /* readonly */
  13767. bool empty;
  13768. /* readonly */
  13769. XMLElement firstResult;
  13770. /* readonly */
  13771. uint size;
  13772. };
  13773. class Zone
  13774. {
  13775. // Methods:
  13776. void ApplyAttributes();
  13777. void DrawDebugGeometry(DebugRenderer, bool);
  13778. Variant GetAttribute(const String&) const;
  13779. ValueAnimation GetAttributeAnimation(const String&) const;
  13780. float GetAttributeAnimationSpeed(const String&) const;
  13781. float GetAttributeAnimationTime(const String&) const;
  13782. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13783. Variant GetAttributeDefault(const String&) const;
  13784. bool GetInterceptNetworkUpdate(const String&) const;
  13785. bool HasSubscribedToEvent(Object, const String&);
  13786. bool HasSubscribedToEvent(const String&);
  13787. bool IsInView(Camera) const;
  13788. bool Load(File, bool = false);
  13789. bool Load(VectorBuffer&, bool = false);
  13790. bool LoadJSON(const JSONValue&, bool = false);
  13791. bool LoadXML(const XMLElement&, bool = false);
  13792. void MarkNetworkUpdate() const;
  13793. void Remove();
  13794. void RemoveAttributeAnimation(const String&);
  13795. void RemoveInstanceDefault();
  13796. void RemoveObjectAnimation();
  13797. void ResetToDefault();
  13798. bool Save(File) const;
  13799. bool Save(VectorBuffer&) const;
  13800. bool SaveJSON(JSONValue&) const;
  13801. bool SaveXML(XMLElement&) const;
  13802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13803. void SetAnimationTime(float);
  13804. bool SetAttribute(const String&, const Variant&);
  13805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13806. void SetAttributeAnimationSpeed(const String&, float);
  13807. void SetAttributeAnimationTime(const String&, float);
  13808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13809. void SetInterceptNetworkUpdate(const String&, bool);
  13810. // Properties:
  13811. Color ambientColor;
  13812. /* readonly */
  13813. Color ambientEndColor;
  13814. bool ambientGradient;
  13815. /* readonly */
  13816. Color ambientStartColor;
  13817. bool animationEnabled;
  13818. /* readonly */
  13819. Array<Variant> attributeDefaults;
  13820. /* readonly */
  13821. Array<AttributeInfo> attributeInfos;
  13822. Array<Variant> attributes;
  13823. BoundingBox boundingBox;
  13824. bool castShadows;
  13825. /* readonly */
  13826. String category;
  13827. float drawDistance;
  13828. bool enabled;
  13829. /* readonly */
  13830. bool enabledEffective;
  13831. Color fogColor;
  13832. float fogEnd;
  13833. float fogHeight;
  13834. float fogHeightScale;
  13835. float fogStart;
  13836. bool heightFog;
  13837. /* readonly */
  13838. uint id;
  13839. /* readonly */
  13840. bool inView;
  13841. /* readonly */
  13842. Matrix3x4 inverseWorldTransform;
  13843. uint lightMask;
  13844. float lodBias;
  13845. uint maxLights;
  13846. /* readonly */
  13847. Node node;
  13848. /* readonly */
  13849. uint numAttributes;
  13850. ObjectAnimation objectAnimation;
  13851. bool occludee;
  13852. bool occluder;
  13853. bool override;
  13854. int priority;
  13855. /* readonly */
  13856. int refs;
  13857. float shadowDistance;
  13858. uint shadowMask;
  13859. bool temporary;
  13860. /* readonly */
  13861. StringHash type;
  13862. /* readonly */
  13863. String typeName;
  13864. uint viewMask;
  13865. /* readonly */
  13866. int weakRefs;
  13867. /* readonly */
  13868. BoundingBox worldBoundingBox;
  13869. uint zoneMask;
  13870. Texture zoneTexture;
  13871. };
  13872. // Enumerations
  13873. enum AnimationBlendMode
  13874. {
  13875. ABM_LERP,
  13876. ABM_ADDITIVE,
  13877. };
  13878. enum AutoRemoveMode
  13879. {
  13880. REMOVE_DISABLED,
  13881. REMOVE_COMPONENT,
  13882. REMOVE_NODE,
  13883. };
  13884. enum BlendMode
  13885. {
  13886. BLEND_REPLACE,
  13887. BLEND_ADD,
  13888. BLEND_MULTIPLY,
  13889. BLEND_ALPHA,
  13890. BLEND_ADDALPHA,
  13891. BLEND_PREMULALPHA,
  13892. BLEND_INVDESTALPHA,
  13893. BLEND_SUBTRACT,
  13894. BLEND_SUBTRACTALPHA,
  13895. };
  13896. enum BodyType2D
  13897. {
  13898. BT_STATIC,
  13899. BT_KINEMATIC,
  13900. BT_DYNAMIC,
  13901. };
  13902. enum CollisionEventMode
  13903. {
  13904. COLLISION_NEVER,
  13905. COLLISION_ACTIVE,
  13906. COLLISION_ALWAYS,
  13907. };
  13908. enum CompareMode
  13909. {
  13910. CMP_ALWAYS,
  13911. CMP_EQUAL,
  13912. CMP_NOTEQUAL,
  13913. CMP_LESS,
  13914. CMP_LESSEQUAL,
  13915. CMP_GREATER,
  13916. CMP_GREATEREQUAL,
  13917. };
  13918. enum CompressedFormat
  13919. {
  13920. CF_NONE,
  13921. CF_RGBA,
  13922. CF_DXT1,
  13923. CF_DXT3,
  13924. CF_DXT5,
  13925. CF_ETC1,
  13926. CF_PVRTC_RGB_2BPP,
  13927. CF_PVRTC_RGBA_2BPP,
  13928. CF_PVRTC_RGB_4BPP,
  13929. CF_PVRTC_RGBA_4BPP,
  13930. };
  13931. enum ConstraintType
  13932. {
  13933. CONSTRAINT_POINT,
  13934. CONSTRAINT_HINGE,
  13935. CONSTRAINT_SLIDER,
  13936. CONSTRAINT_CONETWIST,
  13937. };
  13938. enum Corner
  13939. {
  13940. C_TOPLEFT,
  13941. C_TOPRIGHT,
  13942. C_BOTTOMLEFT,
  13943. C_BOTTOMRIGHT,
  13944. };
  13945. enum CreateMode
  13946. {
  13947. REPLICATED,
  13948. LOCAL,
  13949. };
  13950. enum CrowdAgentRequestedTarget
  13951. {
  13952. CA_REQUESTEDTARGET_NONE,
  13953. CA_REQUESTEDTARGET_POSITION,
  13954. CA_REQUESTEDTARGET_VELOCITY,
  13955. };
  13956. enum CrowdAgentState
  13957. {
  13958. CA_STATE_INVALID,
  13959. CA_STATE_WALKING,
  13960. CA_STATE_OFFMESH,
  13961. };
  13962. enum CrowdAgentTargetState
  13963. {
  13964. CA_TARGET_NONE,
  13965. CA_TARGET_FAILED,
  13966. CA_TARGET_VALID,
  13967. CA_TARGET_REQUESTING,
  13968. CA_TARGET_WAITINGFORQUEUE,
  13969. CA_TARGET_WAITINGFORPATH,
  13970. CA_TARGET_VELOCITY,
  13971. };
  13972. enum CubeMapFace
  13973. {
  13974. FACE_POSITIVE_X,
  13975. FACE_NEGATIVE_X,
  13976. FACE_POSITIVE_Y,
  13977. FACE_NEGATIVE_Y,
  13978. FACE_POSITIVE_Z,
  13979. FACE_NEGATIVE_Z,
  13980. };
  13981. enum CullMode
  13982. {
  13983. CULL_NONE,
  13984. CULL_CCW,
  13985. CULL_CW,
  13986. };
  13987. enum CursorShape
  13988. {
  13989. CS_NORMAL,
  13990. CS_IBEAM,
  13991. CS_CROSS,
  13992. CS_RESIZEVERTICAL,
  13993. CS_RESIZEDIAGONAL_TOPRIGHT,
  13994. CS_RESIZEHORIZONTAL,
  13995. CS_RESIZEDIAGONAL_TOPLEFT,
  13996. CS_RESIZE_ALL,
  13997. CS_ACCEPTDROP,
  13998. CS_REJECTDROP,
  13999. CS_BUSY,
  14000. CS_BUSY_ARROW,
  14001. };
  14002. enum DBAPI
  14003. {
  14004. DBAPI_SQLITE,
  14005. DBAPI_ODBC,
  14006. };
  14007. enum DumpMode
  14008. {
  14009. DOXYGEN,
  14010. C_HEADER,
  14011. };
  14012. enum EmitterType
  14013. {
  14014. EMITTER_SPHERE,
  14015. EMITTER_BOX,
  14016. };
  14017. enum EmitterType2D
  14018. {
  14019. EMITTER_TYPE_GRAVITY,
  14020. EMITTER_TYPE_RADIAL,
  14021. };
  14022. enum FaceCameraMode
  14023. {
  14024. FC_NONE,
  14025. FC_ROTATE_XYZ,
  14026. FC_ROTATE_Y,
  14027. FC_LOOKAT_XYZ,
  14028. FC_LOOKAT_Y,
  14029. FC_LOOKAT_MIXED,
  14030. FC_DIRECTION,
  14031. };
  14032. enum FileMode
  14033. {
  14034. FILE_READ,
  14035. FILE_WRITE,
  14036. FILE_READWRITE,
  14037. };
  14038. enum FillMode
  14039. {
  14040. FILL_SOLID,
  14041. FILL_WIREFRAME,
  14042. FILL_POINT,
  14043. };
  14044. enum FocusMode
  14045. {
  14046. FM_NOTFOCUSABLE,
  14047. FM_RESETFOCUS,
  14048. FM_FOCUSABLE,
  14049. FM_FOCUSABLE_DEFOCUSABLE,
  14050. };
  14051. enum HighlightMode
  14052. {
  14053. HM_NEVER,
  14054. HM_FOCUS,
  14055. HM_ALWAYS,
  14056. };
  14057. enum HorizontalAlignment
  14058. {
  14059. HA_LEFT,
  14060. HA_CENTER,
  14061. HA_RIGHT,
  14062. HA_CUSTOM,
  14063. };
  14064. enum HttpRequestState
  14065. {
  14066. HTTP_INITIALIZING,
  14067. HTTP_ERROR,
  14068. HTTP_OPEN,
  14069. HTTP_CLOSED,
  14070. };
  14071. enum InterpMethod
  14072. {
  14073. IM_NONE,
  14074. IM_LINEAR,
  14075. IM_SPLINE,
  14076. };
  14077. enum InterpolationMode
  14078. {
  14079. BEZIER_CURVE,
  14080. CATMULL_ROM_CURVE,
  14081. LINEAR_CURVE,
  14082. CATMULL_ROM_FULL_CURVE,
  14083. };
  14084. enum Intersection
  14085. {
  14086. OUTSIDE,
  14087. INTERSECTS,
  14088. INSIDE,
  14089. };
  14090. enum JSONNumberType
  14091. {
  14092. JSONNT_NAN,
  14093. JSONNT_INT,
  14094. JSONNT_UINT,
  14095. JSONNT_FLOAT_DOUBLE,
  14096. };
  14097. enum JSONValueType
  14098. {
  14099. JSON_NULL,
  14100. JSON_BOOL,
  14101. JSON_NUMBER,
  14102. JSON_STRING,
  14103. JSON_ARRAY,
  14104. JSON_OBJECT,
  14105. };
  14106. enum LayoutMode
  14107. {
  14108. LM_FREE,
  14109. LM_HORIZONTAL,
  14110. LM_VERTICAL,
  14111. };
  14112. enum LightType
  14113. {
  14114. LIGHT_DIRECTIONAL,
  14115. LIGHT_SPOT,
  14116. LIGHT_POINT,
  14117. };
  14118. enum LoadMode
  14119. {
  14120. LOAD_RESOURCES_ONLY,
  14121. LOAD_SCENE,
  14122. LOAD_SCENE_AND_RESOURCES,
  14123. };
  14124. enum LoopMode2D
  14125. {
  14126. LM_DEFAULT,
  14127. LM_FORCE_LOOPED,
  14128. LM_FORCE_CLAMPED,
  14129. };
  14130. enum MouseMode
  14131. {
  14132. MM_ABSOLUTE,
  14133. MM_RELATIVE,
  14134. MM_WRAP,
  14135. MM_FREE,
  14136. };
  14137. enum NavigationPushiness
  14138. {
  14139. NAVIGATIONPUSHINESS_LOW,
  14140. NAVIGATIONPUSHINESS_MEDIUM,
  14141. NAVIGATIONPUSHINESS_HIGH,
  14142. NAVIGATIONPUSHINESS_NONE,
  14143. };
  14144. enum NavigationQuality
  14145. {
  14146. NAVIGATIONQUALITY_LOW,
  14147. NAVIGATIONQUALITY_MEDIUM,
  14148. NAVIGATIONQUALITY_HIGH,
  14149. };
  14150. enum NavmeshPartitionType
  14151. {
  14152. NAVMESH_PARTITION_WATERSHED,
  14153. NAVMESH_PARTITION_MONOTONE,
  14154. };
  14155. enum Orientation
  14156. {
  14157. O_HORIZONTAL,
  14158. O_VERTICAL,
  14159. };
  14160. enum Orientation2D
  14161. {
  14162. O_ORTHOGONAL,
  14163. O_ISOMETRIC,
  14164. O_STAGGERED,
  14165. O_HEXAGONAL,
  14166. };
  14167. enum PassLightingMode
  14168. {
  14169. LIGHTING_UNLIT,
  14170. LIGHTING_PERVERTEX,
  14171. LIGHTING_PERPIXEL,
  14172. };
  14173. enum PrimitiveType
  14174. {
  14175. TRIANGLE_LIST,
  14176. LINE_LIST,
  14177. POINT_LIST,
  14178. TRIANGLE_STRIP,
  14179. LINE_STRIP,
  14180. TRIANGLE_FAN,
  14181. };
  14182. enum RayQueryLevel
  14183. {
  14184. RAY_AABB,
  14185. RAY_OBB,
  14186. RAY_TRIANGLE,
  14187. RAY_TRIANGLE_UV,
  14188. };
  14189. enum RenderCommandSortMode
  14190. {
  14191. SORT_FRONTTOBACK,
  14192. SORT_BACKTOFRONT,
  14193. };
  14194. enum RenderCommandType
  14195. {
  14196. CMD_NONE,
  14197. CMD_CLEAR,
  14198. CMD_SCENEPASS,
  14199. CMD_QUAD,
  14200. CMD_FORWARDLIGHTS,
  14201. CMD_LIGHTVOLUMES,
  14202. CMD_RENDERUI,
  14203. CMD_SENDEVENT,
  14204. };
  14205. enum RenderSurfaceUpdateMode
  14206. {
  14207. SURFACE_MANUALUPDATE,
  14208. SURFACE_UPDATEVISIBLE,
  14209. SURFACE_UPDATEALWAYS,
  14210. };
  14211. enum RenderTargetSizeMode
  14212. {
  14213. SIZE_ABSOLUTE,
  14214. SIZE_VIEWPORTDIVISOR,
  14215. SIZE_VIEWPORTMULTIPLIER,
  14216. };
  14217. enum ShadowQuality
  14218. {
  14219. SHADOWQUALITY_SIMPLE_16BIT,
  14220. SHADOWQUALITY_SIMPLE_24BIT,
  14221. SHADOWQUALITY_PCF_16BIT,
  14222. SHADOWQUALITY_PCF_24BIT,
  14223. SHADOWQUALITY_VSM,
  14224. SHADOWQUALITY_BLUR_VSM,
  14225. };
  14226. enum ShapeType
  14227. {
  14228. SHAPE_BOX,
  14229. SHAPE_SPHERE,
  14230. SHAPE_STATICPLANE,
  14231. SHAPE_CYLINDER,
  14232. SHAPE_CAPSULE,
  14233. SHAPE_CONE,
  14234. SHAPE_TRIANGLEMESH,
  14235. SHAPE_CONVEXHULL,
  14236. SHAPE_TERRAIN,
  14237. };
  14238. enum TextEffect
  14239. {
  14240. TE_NONE,
  14241. TE_SHADOW,
  14242. TE_STROKE,
  14243. };
  14244. enum TextureAddressMode
  14245. {
  14246. ADDRESS_WRAP,
  14247. ADDRESS_MIRROR,
  14248. ADDRESS_CLAMP,
  14249. ADDRESS_BORDER,
  14250. };
  14251. enum TextureCoordinate
  14252. {
  14253. COORD_U,
  14254. COORD_V,
  14255. COORD_W,
  14256. };
  14257. enum TextureFilterMode
  14258. {
  14259. FILTER_NEAREST,
  14260. FILTER_BILINEAR,
  14261. FILTER_TRILINEAR,
  14262. FILTER_ANISOTROPIC,
  14263. FILTER_NEAREST_ANISOTROPIC,
  14264. FILTER_DEFAULT,
  14265. };
  14266. enum TextureUnit
  14267. {
  14268. TU_DIFFUSE,
  14269. TU_ALBEDOBUFFER,
  14270. TU_NORMAL,
  14271. TU_NORMALBUFFER,
  14272. TU_SPECULAR,
  14273. TU_EMISSIVE,
  14274. TU_ENVIRONMENT,
  14275. TU_LIGHTRAMP,
  14276. TU_LIGHTSHAPE,
  14277. TU_SHADOWMAP,
  14278. TU_CUSTOM1,
  14279. TU_CUSTOM2,
  14280. TU_VOLUMEMAP,
  14281. TU_FACESELECT,
  14282. TU_INDIRECTION,
  14283. TU_DEPTHBUFFER,
  14284. TU_LIGHTBUFFER,
  14285. TU_ZONE,
  14286. MAX_MATERIAL_TEXTURE_UNITS,
  14287. MAX_TEXTURE_UNITS,
  14288. };
  14289. enum TextureUsage
  14290. {
  14291. TEXTURE_STATIC,
  14292. TEXTURE_DYNAMIC,
  14293. TEXTURE_RENDERTARGET,
  14294. TEXTURE_DEPTHSTENCIL,
  14295. };
  14296. enum TileMapLayerType2D
  14297. {
  14298. LT_TILE_LAYER,
  14299. LT_OBJECT_GROUP,
  14300. LT_IMAGE_LAYER,
  14301. LT_INVALID,
  14302. };
  14303. enum TileObjectType2D
  14304. {
  14305. OT_RECTANGLE,
  14306. OT_ELLIPSE,
  14307. OT_POLYGON,
  14308. OT_POLYLINE,
  14309. OT_TILE,
  14310. OT_INVALID,
  14311. };
  14312. enum TrailType
  14313. {
  14314. TT_FACE_CAMERA,
  14315. TT_BONE,
  14316. };
  14317. enum TransformSpace
  14318. {
  14319. TS_LOCAL,
  14320. TS_PARENT,
  14321. TS_WORLD,
  14322. };
  14323. enum TraversalMode
  14324. {
  14325. TM_BREADTH_FIRST,
  14326. TM_DEPTH_FIRST,
  14327. };
  14328. enum VariantType
  14329. {
  14330. VAR_NONE,
  14331. VAR_INT,
  14332. VAR_BOOL,
  14333. VAR_FLOAT,
  14334. VAR_VECTOR2,
  14335. VAR_VECTOR3,
  14336. VAR_VECTOR4,
  14337. VAR_QUATERNION,
  14338. VAR_COLOR,
  14339. VAR_STRING,
  14340. VAR_BUFFER,
  14341. VAR_VOIDPTR,
  14342. VAR_RESOURCEREF,
  14343. VAR_RESOURCEREFLIST,
  14344. VAR_VARIANTVECTOR,
  14345. VAR_VARIANTMAP,
  14346. VAR_INTRECT,
  14347. VAR_INTVECTOR2,
  14348. VAR_PTR,
  14349. VAR_MATRIX3,
  14350. VAR_MATRIX3X4,
  14351. VAR_MATRIX4,
  14352. VAR_DOUBLE,
  14353. VAR_STRINGVECTOR,
  14354. VAR_RECT,
  14355. };
  14356. enum VertexElementSemantic
  14357. {
  14358. SEM_POSITION,
  14359. SEM_NORMAL,
  14360. SEM_BINORMAL,
  14361. SEM_TANGENT,
  14362. SEM_TEXCOORD,
  14363. SEM_COLOR,
  14364. SEM_BLENDWEIGHTS,
  14365. SEM_BLENDINDICES,
  14366. SEM_OBJECTINDEX,
  14367. MAX_VERTEX_ELEMENT_SEMANTICS,
  14368. };
  14369. enum VertexElementType
  14370. {
  14371. TYPE_INT,
  14372. TYPE_FLOAT,
  14373. TYPE_VECTOR2,
  14374. TYPE_VECTOR3,
  14375. TYPE_VECTOR4,
  14376. TYPE_UBYTE4,
  14377. TYPE_UBYTE4_NORM,
  14378. MAX_VERTEX_ELEMENT_TYPES,
  14379. };
  14380. enum VerticalAlignment
  14381. {
  14382. VA_TOP,
  14383. VA_CENTER,
  14384. VA_BOTTOM,
  14385. VA_CUSTOM,
  14386. };
  14387. enum WrapMode
  14388. {
  14389. WM_LOOP,
  14390. WM_ONCE,
  14391. WM_CLAMP,
  14392. };
  14393. // Global functions
  14394. float Abs(float);
  14395. float Acos(float);
  14396. String AddTrailingSlash(const String&);
  14397. float Asin(float);
  14398. float Atan(float);
  14399. float Atan2(float, float);
  14400. float Ceil(float);
  14401. int CeilToInt(float);
  14402. float Clamp(float, float, float);
  14403. int Clamp(int, int, int);
  14404. void ClearDelayedExecute(const String& = String ( ));
  14405. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14406. float Cos(float);
  14407. uint CountSetBits(uint);
  14408. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14409. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14410. bool Equals(float, float);
  14411. void ErrorDialog(const String&, const String&);
  14412. float Floor(float);
  14413. int FloorToInt(float);
  14414. float Fract(float);
  14415. uint GetAlphaFormat();
  14416. Array<String> GetArguments();
  14417. String GetConsoleInput();
  14418. uint GetDepthStencilFormat();
  14419. Object GetEventSender();
  14420. String GetExtension(const String&, bool = true);
  14421. String GetFileName(const String&);
  14422. String GetFileNameAndExtension(const String&, bool = false);
  14423. String GetFileSizeString(uint64);
  14424. uint GetFloat16Format();
  14425. uint GetFloat32Format();
  14426. uint GetFormat(const String&);
  14427. Variant GetGlobalVar(const String&);
  14428. String GetInternalPath(const String&);
  14429. uint GetLinearDepthFormat();
  14430. uint GetLuminanceAlphaFormat();
  14431. uint GetLuminanceFormat();
  14432. uint GetMaxBones();
  14433. String GetMiniDumpDir();
  14434. uint GetNumLogicalCPUs();
  14435. uint GetNumPhysicalCPUs();
  14436. Array<String> GetObjectCategories();
  14437. Array<String> GetObjectsByCategory(const String&);
  14438. String GetParentPath(const String&);
  14439. String GetPath(const String&);
  14440. String GetPlatform();
  14441. uint GetRG16Format();
  14442. uint GetRGBA16Format();
  14443. uint GetRGBAFloat16Format();
  14444. uint GetRGBAFloat32Format();
  14445. uint GetRGBAFormat();
  14446. uint GetRGBFormat();
  14447. uint GetRGFloat16Format();
  14448. uint GetRGFloat32Format();
  14449. uint GetRandomSeed();
  14450. uint GetReadableDepthFormat();
  14451. String GetTextureUnitName(TextureUnit);
  14452. VariantType GetVariantTypeFromName(const String&);
  14453. String GetVariantTypeName(VariantType);
  14454. bool HasSubscribedToEvent(Object, const String&);
  14455. bool HasSubscribedToEvent(const String&);
  14456. float InverseLerp(float, float, float);
  14457. bool IsAbsolutePath(const String&);
  14458. bool IsAlpha(uint);
  14459. bool IsDigit(uint);
  14460. bool IsNaN(float);
  14461. bool IsPowerOfTwo(uint);
  14462. String Join(Array<String>&, const String&);
  14463. float Lerp(float, float, float);
  14464. float Ln(float);
  14465. void MarkNetworkUpdate();
  14466. float Max(float, float);
  14467. int Max(int, int);
  14468. float Min(float, float);
  14469. int Min(int, int);
  14470. float Mod(float, float);
  14471. uint NextPowerOfTwo(uint);
  14472. void OpenConsoleWindow();
  14473. float Pow(float, float);
  14474. void Print(bool, bool = false);
  14475. void Print(const String&, bool = false);
  14476. void Print(const Variant&, bool = false);
  14477. void Print(float, bool = false);
  14478. void Print(int, bool = false);
  14479. void Print(uint, bool = false);
  14480. void PrintCallStack(bool = false);
  14481. float Random();
  14482. float Random(float);
  14483. float Random(float, float);
  14484. int RandomInt();
  14485. int RandomInt(int);
  14486. int RandomInt(int, int);
  14487. float RandomNormal(float, float);
  14488. void RegisterEventName(const String&);
  14489. void Remove();
  14490. String RemoveTrailingSlash(const String&);
  14491. String ReplaceExtension(const String&, const String&);
  14492. float Round(float);
  14493. int RoundToInt(float);
  14494. uint SDBMHash(uint, uint8);
  14495. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14496. void SetGlobalVar(const String&, Variant&);
  14497. void SetMiniDumpDir(const String&);
  14498. void SetRandomSeed(uint);
  14499. float Sign(float);
  14500. float Sin(float);
  14501. float SmoothStep(float, float, float);
  14502. float Sqrt(float);
  14503. float StableRandom(const Vector2&);
  14504. float StableRandom(const Vector3&);
  14505. float StableRandom(float);
  14506. const String& GetTypeName(StringHash);
  14507. void SubscribeToEvent(Object, const String&, const String&);
  14508. void SubscribeToEvent(const String&, const String&);
  14509. float Tan(float);
  14510. uint ToLower(uint);
  14511. String ToStringHex(int);
  14512. uint ToUpper(uint);
  14513. void UnsubscribeFromAllEvents();
  14514. void UnsubscribeFromAllEventsExcept(Array<String>);
  14515. void UnsubscribeFromEvent(Object, const String&);
  14516. void UnsubscribeFromEvent(const String&);
  14517. void UnsubscribeFromEvents(Object);
  14518. Vector2 VectorCeil(const Vector2&);
  14519. Vector3 VectorCeil(const Vector3&);
  14520. Vector4 VectorCeil(const Vector4&);
  14521. IntVector2 VectorCeilToInt(const Vector2&);
  14522. Vector2 VectorFloor(const Vector2&);
  14523. Vector3 VectorFloor(const Vector3&);
  14524. Vector4 VectorFloor(const Vector4&);
  14525. IntVector2 VectorFloorToInt(const Vector2&);
  14526. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  14527. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  14528. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  14529. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  14530. Vector2 VectorMax(const Vector2&, const Vector2&);
  14531. Vector3 VectorMax(const Vector3&, const Vector3&);
  14532. Vector4 VectorMax(const Vector4&, const Vector4&);
  14533. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  14534. Vector2 VectorMin(const Vector2&, const Vector2&);
  14535. Vector3 VectorMin(const Vector3&, const Vector3&);
  14536. Vector4 VectorMin(const Vector4&, const Vector4&);
  14537. Vector2 VectorRound(const Vector2&);
  14538. Vector3 VectorRound(const Vector3&);
  14539. Vector4 VectorRound(const Vector4&);
  14540. IntVector2 VectorRoundToInt(const Vector2&);
  14541. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14542. // Global properties
  14543. DBAPI DBAPI;
  14544. Audio audio;
  14545. ResourceCache cache;
  14546. Console console;
  14547. Database database;
  14548. DebugHud debugHud;
  14549. DebugRenderer debugRenderer;
  14550. Engine engine;
  14551. FileSystem fileSystem;
  14552. VariantMap globalVars;
  14553. Graphics graphics;
  14554. Input input;
  14555. Localization localization;
  14556. Log log;
  14557. Network network;
  14558. Node node;
  14559. Octree octree;
  14560. PhysicsWorld physicsWorld;
  14561. PhysicsWorld2D physicsWorld2D;
  14562. Renderer renderer;
  14563. ResourceCache resourceCache;
  14564. Scene scene;
  14565. Script script;
  14566. ScriptFile scriptFile;
  14567. ScriptInstance self;
  14568. Time time;
  14569. UI ui;
  14570. // Global constants
  14571. uint AM_COMPONENTID;
  14572. uint AM_DEFAULT;
  14573. uint AM_FILE;
  14574. uint AM_FILEREADONLY;
  14575. uint AM_LATESTDATA;
  14576. uint AM_NET;
  14577. uint AM_NODEID;
  14578. uint AM_NODEIDVECTOR;
  14579. uint AM_NOEDIT;
  14580. Color BLACK;
  14581. Color BLUE;
  14582. uint8 CHANNEL_POSITION;
  14583. uint8 CHANNEL_ROTATION;
  14584. uint8 CHANNEL_SCALE;
  14585. uint CLEAR_COLOR;
  14586. uint CLEAR_DEPTH;
  14587. uint CLEAR_STENCIL;
  14588. int CONTROLLER_AXIS_LEFTX;
  14589. int CONTROLLER_AXIS_LEFTY;
  14590. int CONTROLLER_AXIS_RIGHTX;
  14591. int CONTROLLER_AXIS_RIGHTY;
  14592. int CONTROLLER_AXIS_TRIGGERLEFT;
  14593. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14594. int CONTROLLER_BUTTON_A;
  14595. int CONTROLLER_BUTTON_B;
  14596. int CONTROLLER_BUTTON_BACK;
  14597. int CONTROLLER_BUTTON_DPAD_DOWN;
  14598. int CONTROLLER_BUTTON_DPAD_LEFT;
  14599. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14600. int CONTROLLER_BUTTON_DPAD_UP;
  14601. int CONTROLLER_BUTTON_GUIDE;
  14602. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14603. int CONTROLLER_BUTTON_LEFTSTICK;
  14604. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14605. int CONTROLLER_BUTTON_RIGHTSTICK;
  14606. int CONTROLLER_BUTTON_START;
  14607. int CONTROLLER_BUTTON_X;
  14608. int CONTROLLER_BUTTON_Y;
  14609. Color CYAN;
  14610. uint DD_DISABLED;
  14611. uint DD_SOURCE;
  14612. uint DD_SOURCE_AND_TARGET;
  14613. uint DD_TARGET;
  14614. uint DEBUGHUD_SHOW_ALL;
  14615. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14616. uint DEBUGHUD_SHOW_MEMORY;
  14617. uint DEBUGHUD_SHOW_MODE;
  14618. uint DEBUGHUD_SHOW_NONE;
  14619. uint DEBUGHUD_SHOW_PROFILER;
  14620. uint DEBUGHUD_SHOW_STATS;
  14621. uint DEFAULT_LIGHTMASK;
  14622. uint DEFAULT_VIEWMASK;
  14623. uint DRAWABLE_ANY;
  14624. uint DRAWABLE_GEOMETRY;
  14625. uint DRAWABLE_GEOMETRY2D;
  14626. uint DRAWABLE_LIGHT;
  14627. uint DRAWABLE_ZONE;
  14628. uint FIRST_LOCAL_ID;
  14629. uint FIRST_REPLICATED_ID;
  14630. Color GRAY;
  14631. Color GREEN;
  14632. int HAT_CENTER;
  14633. int HAT_DOWN;
  14634. int HAT_LEFT;
  14635. int HAT_RIGHT;
  14636. int HAT_UP;
  14637. int KEY_0;
  14638. int KEY_1;
  14639. int KEY_2;
  14640. int KEY_3;
  14641. int KEY_4;
  14642. int KEY_5;
  14643. int KEY_6;
  14644. int KEY_7;
  14645. int KEY_8;
  14646. int KEY_9;
  14647. int KEY_A;
  14648. int KEY_ALT;
  14649. int KEY_APPLICATION;
  14650. int KEY_B;
  14651. int KEY_BACKSPACE;
  14652. int KEY_C;
  14653. int KEY_CAPSLOCK;
  14654. int KEY_CTRL;
  14655. int KEY_D;
  14656. int KEY_DELETE;
  14657. int KEY_DOWN;
  14658. int KEY_E;
  14659. int KEY_END;
  14660. int KEY_ESCAPE;
  14661. int KEY_F;
  14662. int KEY_F1;
  14663. int KEY_F10;
  14664. int KEY_F11;
  14665. int KEY_F12;
  14666. int KEY_F13;
  14667. int KEY_F14;
  14668. int KEY_F15;
  14669. int KEY_F16;
  14670. int KEY_F17;
  14671. int KEY_F18;
  14672. int KEY_F19;
  14673. int KEY_F2;
  14674. int KEY_F20;
  14675. int KEY_F21;
  14676. int KEY_F22;
  14677. int KEY_F23;
  14678. int KEY_F24;
  14679. int KEY_F3;
  14680. int KEY_F4;
  14681. int KEY_F5;
  14682. int KEY_F6;
  14683. int KEY_F7;
  14684. int KEY_F8;
  14685. int KEY_F9;
  14686. int KEY_G;
  14687. int KEY_GUI;
  14688. int KEY_H;
  14689. int KEY_HOME;
  14690. int KEY_I;
  14691. int KEY_INSERT;
  14692. int KEY_J;
  14693. int KEY_K;
  14694. int KEY_KP_0;
  14695. int KEY_KP_1;
  14696. int KEY_KP_2;
  14697. int KEY_KP_3;
  14698. int KEY_KP_4;
  14699. int KEY_KP_5;
  14700. int KEY_KP_6;
  14701. int KEY_KP_7;
  14702. int KEY_KP_8;
  14703. int KEY_KP_9;
  14704. int KEY_KP_DIVIDE;
  14705. int KEY_KP_ENTER;
  14706. int KEY_KP_MINUS;
  14707. int KEY_KP_MULTIPLY;
  14708. int KEY_KP_PERIOD;
  14709. int KEY_KP_PLUS;
  14710. int KEY_L;
  14711. int KEY_LALT;
  14712. int KEY_LCTRL;
  14713. int KEY_LEFT;
  14714. int KEY_LGUI;
  14715. int KEY_LSHIFT;
  14716. int KEY_M;
  14717. int KEY_N;
  14718. int KEY_NUMLOCKCLEAR;
  14719. int KEY_O;
  14720. int KEY_P;
  14721. int KEY_PAGEDOWN;
  14722. int KEY_PAGEUP;
  14723. int KEY_PAUSE;
  14724. int KEY_PRINTSCREEN;
  14725. int KEY_Q;
  14726. int KEY_R;
  14727. int KEY_RALT;
  14728. int KEY_RCTRL;
  14729. int KEY_RETURN;
  14730. int KEY_RETURN2;
  14731. int KEY_RGUI;
  14732. int KEY_RIGHT;
  14733. int KEY_RSHIFT;
  14734. int KEY_S;
  14735. int KEY_SCROLLLOCK;
  14736. int KEY_SELECT;
  14737. int KEY_SHIFT;
  14738. int KEY_SPACE;
  14739. int KEY_T;
  14740. int KEY_TAB;
  14741. int KEY_U;
  14742. int KEY_UNKNOWN;
  14743. int KEY_UP;
  14744. int KEY_V;
  14745. int KEY_W;
  14746. int KEY_X;
  14747. int KEY_Y;
  14748. int KEY_Z;
  14749. uint LAST_LOCAL_ID;
  14750. uint LAST_REPLICATED_ID;
  14751. int LOG_DEBUG;
  14752. int LOG_ERROR;
  14753. int LOG_INFO;
  14754. int LOG_NONE;
  14755. int LOG_WARNING;
  14756. Color MAGENTA;
  14757. uint MASK_BLENDINDICES;
  14758. uint MASK_BLENDWEIGHTS;
  14759. uint MASK_COLOR;
  14760. uint MASK_CUBETEXCOORD1;
  14761. uint MASK_CUBETEXCOORD2;
  14762. uint MASK_INSTANCEMATRIX1;
  14763. uint MASK_INSTANCEMATRIX2;
  14764. uint MASK_INSTANCEMATRIX3;
  14765. uint MASK_NONE;
  14766. uint MASK_NORMAL;
  14767. uint MASK_OBJECTINDEX;
  14768. uint MASK_POSITION;
  14769. uint MASK_TANGENT;
  14770. uint MASK_TEXCOORD1;
  14771. uint MASK_TEXCOORD2;
  14772. int MOUSEB_LEFT;
  14773. int MOUSEB_MIDDLE;
  14774. int MOUSEB_RIGHT;
  14775. float M_DEGTORAD;
  14776. float M_DEGTORAD_2;
  14777. float M_EPSILON;
  14778. float M_HALF_PI;
  14779. float M_INFINITY;
  14780. float M_LARGE_EPSILON;
  14781. float M_LARGE_VALUE;
  14782. int M_MAX_INT;
  14783. uint M_MAX_UNSIGNED;
  14784. int M_MIN_INT;
  14785. uint M_MIN_UNSIGNED;
  14786. float M_PI;
  14787. float M_RADTODEG;
  14788. uint NPOS;
  14789. float PIXEL_SIZE;
  14790. int QUALITY_HIGH;
  14791. int QUALITY_LOW;
  14792. int QUALITY_MAX;
  14793. int QUALITY_MEDIUM;
  14794. int QUAL_ALT;
  14795. int QUAL_ANY;
  14796. int QUAL_CTRL;
  14797. int QUAL_SHIFT;
  14798. Color RED;
  14799. int SCANCODE_0;
  14800. int SCANCODE_1;
  14801. int SCANCODE_2;
  14802. int SCANCODE_3;
  14803. int SCANCODE_4;
  14804. int SCANCODE_5;
  14805. int SCANCODE_6;
  14806. int SCANCODE_7;
  14807. int SCANCODE_8;
  14808. int SCANCODE_9;
  14809. int SCANCODE_A;
  14810. int SCANCODE_AC_BACK;
  14811. int SCANCODE_AC_BOOKMARKS;
  14812. int SCANCODE_AC_FORWARD;
  14813. int SCANCODE_AC_HOME;
  14814. int SCANCODE_AC_REFRESH;
  14815. int SCANCODE_AC_SEARCH;
  14816. int SCANCODE_AC_STOP;
  14817. int SCANCODE_AGAIN;
  14818. int SCANCODE_ALT;
  14819. int SCANCODE_ALTERASE;
  14820. int SCANCODE_APOSTROPHE;
  14821. int SCANCODE_APP1;
  14822. int SCANCODE_APP2;
  14823. int SCANCODE_APPLICATION;
  14824. int SCANCODE_AUDIOMUTE;
  14825. int SCANCODE_AUDIONEXT;
  14826. int SCANCODE_AUDIOPLAY;
  14827. int SCANCODE_AUDIOPREV;
  14828. int SCANCODE_AUDIOSTOP;
  14829. int SCANCODE_B;
  14830. int SCANCODE_BACKSLASH;
  14831. int SCANCODE_BACKSPACE;
  14832. int SCANCODE_BRIGHTNESSDOWN;
  14833. int SCANCODE_BRIGHTNESSUP;
  14834. int SCANCODE_C;
  14835. int SCANCODE_CALCULATOR;
  14836. int SCANCODE_CANCEL;
  14837. int SCANCODE_CAPSLOCK;
  14838. int SCANCODE_CLEAR;
  14839. int SCANCODE_CLEARAGAIN;
  14840. int SCANCODE_COMMA;
  14841. int SCANCODE_COMPUTER;
  14842. int SCANCODE_COPY;
  14843. int SCANCODE_CRSEL;
  14844. int SCANCODE_CTRL;
  14845. int SCANCODE_CURRENCYSUBUNIT;
  14846. int SCANCODE_CURRENCYUNIT;
  14847. int SCANCODE_CUT;
  14848. int SCANCODE_D;
  14849. int SCANCODE_DECIMALSEPARATOR;
  14850. int SCANCODE_DELETE;
  14851. int SCANCODE_DISPLAYSWITCH;
  14852. int SCANCODE_DOWN;
  14853. int SCANCODE_E;
  14854. int SCANCODE_EJECT;
  14855. int SCANCODE_END;
  14856. int SCANCODE_EQUALS;
  14857. int SCANCODE_ESCAPE;
  14858. int SCANCODE_EXECUTE;
  14859. int SCANCODE_EXSEL;
  14860. int SCANCODE_F;
  14861. int SCANCODE_F1;
  14862. int SCANCODE_F10;
  14863. int SCANCODE_F11;
  14864. int SCANCODE_F12;
  14865. int SCANCODE_F13;
  14866. int SCANCODE_F14;
  14867. int SCANCODE_F15;
  14868. int SCANCODE_F16;
  14869. int SCANCODE_F17;
  14870. int SCANCODE_F18;
  14871. int SCANCODE_F19;
  14872. int SCANCODE_F2;
  14873. int SCANCODE_F20;
  14874. int SCANCODE_F21;
  14875. int SCANCODE_F22;
  14876. int SCANCODE_F23;
  14877. int SCANCODE_F24;
  14878. int SCANCODE_F3;
  14879. int SCANCODE_F4;
  14880. int SCANCODE_F5;
  14881. int SCANCODE_F6;
  14882. int SCANCODE_F7;
  14883. int SCANCODE_F8;
  14884. int SCANCODE_F9;
  14885. int SCANCODE_FIND;
  14886. int SCANCODE_G;
  14887. int SCANCODE_GRAVE;
  14888. int SCANCODE_GUI;
  14889. int SCANCODE_H;
  14890. int SCANCODE_HELP;
  14891. int SCANCODE_HOME;
  14892. int SCANCODE_I;
  14893. int SCANCODE_INSERT;
  14894. int SCANCODE_INTERNATIONAL1;
  14895. int SCANCODE_INTERNATIONAL2;
  14896. int SCANCODE_INTERNATIONAL3;
  14897. int SCANCODE_INTERNATIONAL4;
  14898. int SCANCODE_INTERNATIONAL5;
  14899. int SCANCODE_INTERNATIONAL6;
  14900. int SCANCODE_INTERNATIONAL7;
  14901. int SCANCODE_INTERNATIONAL8;
  14902. int SCANCODE_INTERNATIONAL9;
  14903. int SCANCODE_J;
  14904. int SCANCODE_K;
  14905. int SCANCODE_KBDILLUMDOWN;
  14906. int SCANCODE_KBDILLUMTOGGLE;
  14907. int SCANCODE_KBDILLUMUP;
  14908. int SCANCODE_KP_0;
  14909. int SCANCODE_KP_00;
  14910. int SCANCODE_KP_000;
  14911. int SCANCODE_KP_1;
  14912. int SCANCODE_KP_2;
  14913. int SCANCODE_KP_3;
  14914. int SCANCODE_KP_4;
  14915. int SCANCODE_KP_5;
  14916. int SCANCODE_KP_6;
  14917. int SCANCODE_KP_7;
  14918. int SCANCODE_KP_8;
  14919. int SCANCODE_KP_9;
  14920. int SCANCODE_KP_A;
  14921. int SCANCODE_KP_AMPERSAND;
  14922. int SCANCODE_KP_AT;
  14923. int SCANCODE_KP_B;
  14924. int SCANCODE_KP_BACKSPACE;
  14925. int SCANCODE_KP_BINARY;
  14926. int SCANCODE_KP_C;
  14927. int SCANCODE_KP_CLEAR;
  14928. int SCANCODE_KP_CLEARENTRY;
  14929. int SCANCODE_KP_COLON;
  14930. int SCANCODE_KP_COMMA;
  14931. int SCANCODE_KP_D;
  14932. int SCANCODE_KP_DBLAMPERSAND;
  14933. int SCANCODE_KP_DBLVERTICALBAR;
  14934. int SCANCODE_KP_DECIMAL;
  14935. int SCANCODE_KP_DIVIDE;
  14936. int SCANCODE_KP_E;
  14937. int SCANCODE_KP_ENTER;
  14938. int SCANCODE_KP_EQUALS;
  14939. int SCANCODE_KP_EQUALSAS400;
  14940. int SCANCODE_KP_EXCLAM;
  14941. int SCANCODE_KP_F;
  14942. int SCANCODE_KP_GREATER;
  14943. int SCANCODE_KP_HASH;
  14944. int SCANCODE_KP_HEXADECIMAL;
  14945. int SCANCODE_KP_LEFTBRACE;
  14946. int SCANCODE_KP_LEFTPAREN;
  14947. int SCANCODE_KP_LESS;
  14948. int SCANCODE_KP_MEMADD;
  14949. int SCANCODE_KP_MEMCLEAR;
  14950. int SCANCODE_KP_MEMDIVIDE;
  14951. int SCANCODE_KP_MEMMULTIPLY;
  14952. int SCANCODE_KP_MEMRECALL;
  14953. int SCANCODE_KP_MEMSTORE;
  14954. int SCANCODE_KP_MEMSUBTRACT;
  14955. int SCANCODE_KP_MINUS;
  14956. int SCANCODE_KP_MULTIPLY;
  14957. int SCANCODE_KP_OCTAL;
  14958. int SCANCODE_KP_PERCENT;
  14959. int SCANCODE_KP_PERIOD;
  14960. int SCANCODE_KP_PLUS;
  14961. int SCANCODE_KP_PLUSMINUS;
  14962. int SCANCODE_KP_POWER;
  14963. int SCANCODE_KP_RIGHTBRACE;
  14964. int SCANCODE_KP_RIGHTPAREN;
  14965. int SCANCODE_KP_SPACE;
  14966. int SCANCODE_KP_TAB;
  14967. int SCANCODE_KP_VERTICALBAR;
  14968. int SCANCODE_KP_XOR;
  14969. int SCANCODE_L;
  14970. int SCANCODE_LALT;
  14971. int SCANCODE_LANG1;
  14972. int SCANCODE_LANG2;
  14973. int SCANCODE_LANG3;
  14974. int SCANCODE_LANG4;
  14975. int SCANCODE_LANG5;
  14976. int SCANCODE_LANG6;
  14977. int SCANCODE_LANG7;
  14978. int SCANCODE_LANG8;
  14979. int SCANCODE_LANG9;
  14980. int SCANCODE_LCTRL;
  14981. int SCANCODE_LEFT;
  14982. int SCANCODE_LEFTBRACKET;
  14983. int SCANCODE_LGUI;
  14984. int SCANCODE_LSHIFT;
  14985. int SCANCODE_M;
  14986. int SCANCODE_MAIL;
  14987. int SCANCODE_MEDIASELECT;
  14988. int SCANCODE_MENU;
  14989. int SCANCODE_MINUS;
  14990. int SCANCODE_MODE;
  14991. int SCANCODE_MUTE;
  14992. int SCANCODE_N;
  14993. int SCANCODE_NONUSBACKSLASH;
  14994. int SCANCODE_NONUSHASH;
  14995. int SCANCODE_NUMLOCKCLEAR;
  14996. int SCANCODE_O;
  14997. int SCANCODE_OPER;
  14998. int SCANCODE_OUT;
  14999. int SCANCODE_P;
  15000. int SCANCODE_PAGEDOWN;
  15001. int SCANCODE_PAGEUP;
  15002. int SCANCODE_PASTE;
  15003. int SCANCODE_PAUSE;
  15004. int SCANCODE_PERIOD;
  15005. int SCANCODE_POWER;
  15006. int SCANCODE_PRINTSCREEN;
  15007. int SCANCODE_PRIOR;
  15008. int SCANCODE_Q;
  15009. int SCANCODE_R;
  15010. int SCANCODE_RALT;
  15011. int SCANCODE_RCTRL;
  15012. int SCANCODE_RETURN;
  15013. int SCANCODE_RETURN2;
  15014. int SCANCODE_RGUI;
  15015. int SCANCODE_RIGHT;
  15016. int SCANCODE_RIGHTBRACKET;
  15017. int SCANCODE_RSHIFT;
  15018. int SCANCODE_S;
  15019. int SCANCODE_SCROLLLOCK;
  15020. int SCANCODE_SELECT;
  15021. int SCANCODE_SEMICOLON;
  15022. int SCANCODE_SEPARATOR;
  15023. int SCANCODE_SHIFT;
  15024. int SCANCODE_SLASH;
  15025. int SCANCODE_SLEEP;
  15026. int SCANCODE_SPACE;
  15027. int SCANCODE_STOP;
  15028. int SCANCODE_SYSREQ;
  15029. int SCANCODE_T;
  15030. int SCANCODE_TAB;
  15031. int SCANCODE_THOUSANDSSEPARATOR;
  15032. int SCANCODE_U;
  15033. int SCANCODE_UNDO;
  15034. int SCANCODE_UNKNOWN;
  15035. int SCANCODE_UP;
  15036. int SCANCODE_V;
  15037. int SCANCODE_VOLUMEDOWN;
  15038. int SCANCODE_VOLUMEUP;
  15039. int SCANCODE_W;
  15040. int SCANCODE_WWW;
  15041. int SCANCODE_X;
  15042. int SCANCODE_Y;
  15043. int SCANCODE_Z;
  15044. uint SCAN_DIRS;
  15045. uint SCAN_FILES;
  15046. uint SCAN_HIDDEN;
  15047. String SOUND_AMBIENT;
  15048. String SOUND_EFFECT;
  15049. String SOUND_MASTER;
  15050. String SOUND_MUSIC;
  15051. String SOUND_VOICE;
  15052. Color TRANSPARENT;
  15053. uint VO_DISABLE_OCCLUSION;
  15054. uint VO_DISABLE_SHADOWS;
  15055. uint VO_LOW_MATERIAL_QUALITY;
  15056. uint VO_NONE;
  15057. Color WHITE;
  15058. Color YELLOW;