AngelScriptAPI.h 385 KB

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