AngelScriptAPI.h 385 KB

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