AngelScriptAPI.h 385 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546
  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. HorizontalAlignment horizontalAlignment;
  11682. /* readonly */
  11683. uint id;
  11684. /* readonly */
  11685. bool inView;
  11686. uint lightMask;
  11687. float lodBias;
  11688. Material material;
  11689. uint maxLights;
  11690. /* readonly */
  11691. Node node;
  11692. /* readonly */
  11693. uint numAttributes;
  11694. /* readonly */
  11695. uint numChars;
  11696. /* readonly */
  11697. uint numRows;
  11698. ObjectAnimation objectAnimation;
  11699. bool occludee;
  11700. bool occluder;
  11701. float opacity;
  11702. /* readonly */
  11703. int refs;
  11704. /* readonly */
  11705. int rowHeight;
  11706. float rowSpacing;
  11707. /* readonly */
  11708. Array<int> rowWidths;
  11709. float shadowDistance;
  11710. uint shadowMask;
  11711. bool temporary;
  11712. String text;
  11713. HorizontalAlignment textAlignment;
  11714. TextEffect textEffect;
  11715. /* readonly */
  11716. StringHash type;
  11717. /* readonly */
  11718. String typeName;
  11719. VerticalAlignment verticalAlignment;
  11720. uint viewMask;
  11721. /* readonly */
  11722. int weakRefs;
  11723. int width;
  11724. bool wordwrap;
  11725. /* readonly */
  11726. BoundingBox worldBoundingBox;
  11727. uint zoneMask;
  11728. };
  11729. class Texture
  11730. {
  11731. // Methods:
  11732. void ClearDataLost();
  11733. bool HasSubscribedToEvent(Object, const String&);
  11734. bool HasSubscribedToEvent(const String&);
  11735. bool Load(File);
  11736. bool Load(VectorBuffer&);
  11737. bool Load(const String&);
  11738. bool Save(File) const;
  11739. bool Save(VectorBuffer&) const;
  11740. bool Save(const String&) const;
  11741. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11742. void SetNumLevels(uint);
  11743. // Properties:
  11744. Array<TextureAddressMode> addressMode;
  11745. uint anisotropy;
  11746. /* readonly */
  11747. bool autoResolve;
  11748. Texture backupTexture;
  11749. Color borderColor;
  11750. /* readonly */
  11751. String category;
  11752. /* readonly */
  11753. uint components;
  11754. /* readonly */
  11755. bool compressed;
  11756. /* readonly */
  11757. bool dataLost;
  11758. TextureFilterMode filterMode;
  11759. /* readonly */
  11760. uint format;
  11761. /* readonly */
  11762. int height;
  11763. /* readonly */
  11764. Array<int> levelHeight;
  11765. /* readonly */
  11766. Array<int> levelWidth;
  11767. /* readonly */
  11768. uint levels;
  11769. /* readonly */
  11770. bool levelsDirty;
  11771. /* readonly */
  11772. uint memoryUse;
  11773. Array<int> mipsToSkip;
  11774. /* readonly */
  11775. int multiSample;
  11776. String name;
  11777. /* readonly */
  11778. int refs;
  11779. /* readonly */
  11780. bool resolveDirty;
  11781. bool sRGB;
  11782. /* readonly */
  11783. StringHash type;
  11784. /* readonly */
  11785. String typeName;
  11786. /* readonly */
  11787. TextureUsage usage;
  11788. /* readonly */
  11789. uint useTimer;
  11790. /* readonly */
  11791. int weakRefs;
  11792. /* readonly */
  11793. int width;
  11794. };
  11795. class Texture2D
  11796. {
  11797. // Methods:
  11798. void ClearDataLost();
  11799. Image GetImage() const;
  11800. bool HasSubscribedToEvent(Object, const String&);
  11801. bool HasSubscribedToEvent(const String&);
  11802. bool Load(File);
  11803. bool Load(VectorBuffer&);
  11804. bool Load(const String&);
  11805. bool Save(File) const;
  11806. bool Save(VectorBuffer&) const;
  11807. bool Save(const String&) const;
  11808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11809. bool SetData(Image, bool = false);
  11810. void SetNumLevels(uint);
  11811. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11812. // Properties:
  11813. Array<TextureAddressMode> addressMode;
  11814. uint anisotropy;
  11815. /* readonly */
  11816. bool autoResolve;
  11817. Texture backupTexture;
  11818. Color borderColor;
  11819. /* readonly */
  11820. String category;
  11821. /* readonly */
  11822. uint components;
  11823. /* readonly */
  11824. bool compressed;
  11825. /* readonly */
  11826. bool dataLost;
  11827. TextureFilterMode filterMode;
  11828. /* readonly */
  11829. uint format;
  11830. /* readonly */
  11831. int height;
  11832. /* readonly */
  11833. Array<int> levelHeight;
  11834. /* readonly */
  11835. Array<int> levelWidth;
  11836. /* readonly */
  11837. uint levels;
  11838. /* readonly */
  11839. bool levelsDirty;
  11840. /* readonly */
  11841. uint memoryUse;
  11842. Array<int> mipsToSkip;
  11843. /* readonly */
  11844. int multiSample;
  11845. String name;
  11846. /* readonly */
  11847. int refs;
  11848. /* readonly */
  11849. RenderSurface renderSurface;
  11850. /* readonly */
  11851. bool resolveDirty;
  11852. bool sRGB;
  11853. /* readonly */
  11854. StringHash type;
  11855. /* readonly */
  11856. String typeName;
  11857. /* readonly */
  11858. TextureUsage usage;
  11859. /* readonly */
  11860. uint useTimer;
  11861. /* readonly */
  11862. int weakRefs;
  11863. /* readonly */
  11864. int width;
  11865. };
  11866. class Texture2DArray
  11867. {
  11868. // Methods:
  11869. void ClearDataLost();
  11870. bool HasSubscribedToEvent(Object, const String&);
  11871. bool HasSubscribedToEvent(const String&);
  11872. bool Load(File);
  11873. bool Load(VectorBuffer&);
  11874. bool Load(const String&);
  11875. bool Save(File) const;
  11876. bool Save(VectorBuffer&) const;
  11877. bool Save(const String&) const;
  11878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11879. bool SetData(uint, Image, bool = false);
  11880. void SetNumLevels(uint);
  11881. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11882. // Properties:
  11883. Array<TextureAddressMode> addressMode;
  11884. uint anisotropy;
  11885. /* readonly */
  11886. bool autoResolve;
  11887. Texture backupTexture;
  11888. Color borderColor;
  11889. /* readonly */
  11890. String category;
  11891. /* readonly */
  11892. uint components;
  11893. /* readonly */
  11894. bool compressed;
  11895. /* readonly */
  11896. bool dataLost;
  11897. TextureFilterMode filterMode;
  11898. /* readonly */
  11899. uint format;
  11900. /* readonly */
  11901. int height;
  11902. uint layers;
  11903. /* readonly */
  11904. Array<int> levelHeight;
  11905. /* readonly */
  11906. Array<int> levelWidth;
  11907. /* readonly */
  11908. uint levels;
  11909. /* readonly */
  11910. bool levelsDirty;
  11911. /* readonly */
  11912. uint memoryUse;
  11913. Array<int> mipsToSkip;
  11914. /* readonly */
  11915. int multiSample;
  11916. String name;
  11917. /* readonly */
  11918. int refs;
  11919. /* readonly */
  11920. RenderSurface renderSurface;
  11921. /* readonly */
  11922. bool resolveDirty;
  11923. bool sRGB;
  11924. /* readonly */
  11925. StringHash type;
  11926. /* readonly */
  11927. String typeName;
  11928. /* readonly */
  11929. TextureUsage usage;
  11930. /* readonly */
  11931. uint useTimer;
  11932. /* readonly */
  11933. int weakRefs;
  11934. /* readonly */
  11935. int width;
  11936. };
  11937. class Texture3D
  11938. {
  11939. // Methods:
  11940. void ClearDataLost();
  11941. bool HasSubscribedToEvent(Object, const String&);
  11942. bool HasSubscribedToEvent(const String&);
  11943. bool Load(File);
  11944. bool Load(VectorBuffer&);
  11945. bool Load(const String&);
  11946. bool Save(File) const;
  11947. bool Save(VectorBuffer&) const;
  11948. bool Save(const String&) const;
  11949. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11950. bool SetData(Image, bool = false);
  11951. void SetNumLevels(uint);
  11952. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11953. // Properties:
  11954. Array<TextureAddressMode> addressMode;
  11955. uint anisotropy;
  11956. /* readonly */
  11957. bool autoResolve;
  11958. Texture backupTexture;
  11959. Color borderColor;
  11960. /* readonly */
  11961. String category;
  11962. /* readonly */
  11963. uint components;
  11964. /* readonly */
  11965. bool compressed;
  11966. /* readonly */
  11967. bool dataLost;
  11968. TextureFilterMode filterMode;
  11969. /* readonly */
  11970. uint format;
  11971. /* readonly */
  11972. int height;
  11973. /* readonly */
  11974. Array<int> levelHeight;
  11975. /* readonly */
  11976. Array<int> levelWidth;
  11977. /* readonly */
  11978. uint levels;
  11979. /* readonly */
  11980. bool levelsDirty;
  11981. /* readonly */
  11982. uint memoryUse;
  11983. Array<int> mipsToSkip;
  11984. /* readonly */
  11985. int multiSample;
  11986. String name;
  11987. /* readonly */
  11988. int refs;
  11989. /* readonly */
  11990. bool resolveDirty;
  11991. bool sRGB;
  11992. /* readonly */
  11993. StringHash type;
  11994. /* readonly */
  11995. String typeName;
  11996. /* readonly */
  11997. TextureUsage usage;
  11998. /* readonly */
  11999. uint useTimer;
  12000. /* readonly */
  12001. int weakRefs;
  12002. /* readonly */
  12003. int width;
  12004. };
  12005. class TextureCube
  12006. {
  12007. // Methods:
  12008. void ClearDataLost();
  12009. Image GetImage(CubeMapFace) const;
  12010. bool HasSubscribedToEvent(Object, const String&);
  12011. bool HasSubscribedToEvent(const String&);
  12012. bool Load(File);
  12013. bool Load(VectorBuffer&);
  12014. bool Load(const String&);
  12015. bool Save(File) const;
  12016. bool Save(VectorBuffer&) const;
  12017. bool Save(const String&) const;
  12018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12019. bool SetData(CubeMapFace, Image, bool = false);
  12020. void SetNumLevels(uint);
  12021. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12022. // Properties:
  12023. Array<TextureAddressMode> addressMode;
  12024. uint anisotropy;
  12025. /* readonly */
  12026. bool autoResolve;
  12027. Texture backupTexture;
  12028. Color borderColor;
  12029. /* readonly */
  12030. String category;
  12031. /* readonly */
  12032. uint components;
  12033. /* readonly */
  12034. bool compressed;
  12035. /* readonly */
  12036. bool dataLost;
  12037. TextureFilterMode filterMode;
  12038. /* readonly */
  12039. uint format;
  12040. /* readonly */
  12041. int height;
  12042. /* readonly */
  12043. Array<int> levelHeight;
  12044. /* readonly */
  12045. Array<int> levelWidth;
  12046. /* readonly */
  12047. uint levels;
  12048. /* readonly */
  12049. bool levelsDirty;
  12050. /* readonly */
  12051. uint memoryUse;
  12052. Array<int> mipsToSkip;
  12053. /* readonly */
  12054. int multiSample;
  12055. String name;
  12056. /* readonly */
  12057. int refs;
  12058. /* readonly */
  12059. Array<RenderSurface> renderSurfaces;
  12060. /* readonly */
  12061. bool resolveDirty;
  12062. bool sRGB;
  12063. /* readonly */
  12064. StringHash type;
  12065. /* readonly */
  12066. String typeName;
  12067. /* readonly */
  12068. TextureUsage usage;
  12069. /* readonly */
  12070. uint useTimer;
  12071. /* readonly */
  12072. int weakRefs;
  12073. /* readonly */
  12074. int width;
  12075. };
  12076. class TextureFrame
  12077. {
  12078. // Properties:
  12079. float time;
  12080. Rect uv;
  12081. };
  12082. class Tile2D
  12083. {
  12084. // Methods:
  12085. bool HasProperty(const String&) const;
  12086. const String& GetProperty(const String&) const;
  12087. // Properties:
  12088. /* readonly */
  12089. int gid;
  12090. /* readonly */
  12091. int refs;
  12092. /* readonly */
  12093. Sprite2D sprite;
  12094. /* readonly */
  12095. int weakRefs;
  12096. };
  12097. class TileMap2D
  12098. {
  12099. // Methods:
  12100. void ApplyAttributes();
  12101. void DrawDebugGeometry(DebugRenderer, bool);
  12102. Variant GetAttribute(const String&) const;
  12103. ValueAnimation GetAttributeAnimation(const String&) const;
  12104. float GetAttributeAnimationSpeed(const String&) const;
  12105. float GetAttributeAnimationTime(const String&) const;
  12106. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12107. Variant GetAttributeDefault(const String&) const;
  12108. bool GetInterceptNetworkUpdate(const String&) const;
  12109. TileMapLayer2D GetLayer(uint) const;
  12110. bool HasSubscribedToEvent(Object, const String&);
  12111. bool HasSubscribedToEvent(const String&);
  12112. bool Load(File, bool = false);
  12113. bool Load(VectorBuffer&, bool = false);
  12114. bool LoadJSON(const JSONValue&, bool = false);
  12115. bool LoadXML(const XMLElement&, bool = false);
  12116. void MarkNetworkUpdate() const;
  12117. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12118. void Remove();
  12119. void RemoveAttributeAnimation(const String&);
  12120. void RemoveInstanceDefault();
  12121. void RemoveObjectAnimation();
  12122. void ResetToDefault();
  12123. bool Save(File) const;
  12124. bool Save(VectorBuffer&) const;
  12125. bool SaveJSON(JSONValue&) const;
  12126. bool SaveXML(XMLElement&) const;
  12127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12128. void SetAnimationTime(float);
  12129. bool SetAttribute(const String&, const Variant&);
  12130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12131. void SetAttributeAnimationSpeed(const String&, float);
  12132. void SetAttributeAnimationTime(const String&, float);
  12133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12134. void SetInterceptNetworkUpdate(const String&, bool);
  12135. Vector2 TileIndexToPosition(int, int) const;
  12136. // Properties:
  12137. bool animationEnabled;
  12138. /* readonly */
  12139. Array<Variant> attributeDefaults;
  12140. /* readonly */
  12141. Array<AttributeInfo> attributeInfos;
  12142. Array<Variant> attributes;
  12143. /* readonly */
  12144. String category;
  12145. bool enabled;
  12146. /* readonly */
  12147. bool enabledEffective;
  12148. /* readonly */
  12149. uint id;
  12150. /* readonly */
  12151. TileMapInfo2D info;
  12152. /* readonly */
  12153. Node node;
  12154. /* readonly */
  12155. uint numAttributes;
  12156. /* readonly */
  12157. uint numLayers;
  12158. ObjectAnimation objectAnimation;
  12159. /* readonly */
  12160. int refs;
  12161. bool temporary;
  12162. TmxFile2D tmxFile;
  12163. /* readonly */
  12164. StringHash type;
  12165. /* readonly */
  12166. String typeName;
  12167. /* readonly */
  12168. int weakRefs;
  12169. };
  12170. class TileMapInfo2D
  12171. {
  12172. // Properties:
  12173. int height;
  12174. /* readonly */
  12175. float mapHeight;
  12176. /* readonly */
  12177. float mapWidth;
  12178. Orientation2D orientation;
  12179. float tileHeight;
  12180. float tileWidth;
  12181. int width;
  12182. };
  12183. class TileMapLayer2D
  12184. {
  12185. // Methods:
  12186. void ApplyAttributes();
  12187. void DrawDebugGeometry(DebugRenderer, bool);
  12188. Variant GetAttribute(const String&) const;
  12189. ValueAnimation GetAttributeAnimation(const String&) const;
  12190. float GetAttributeAnimationSpeed(const String&) const;
  12191. float GetAttributeAnimationTime(const String&) const;
  12192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12193. Variant GetAttributeDefault(const String&) const;
  12194. bool GetInterceptNetworkUpdate(const String&) const;
  12195. TileMapObject2D GetObject(uint) const;
  12196. Node GetObjectNode(uint) const;
  12197. Tile2D GetTile(int, int) const;
  12198. Node GetTileNode(int, int) const;
  12199. bool HasProperty(const String&) const;
  12200. bool HasSubscribedToEvent(Object, const String&);
  12201. bool HasSubscribedToEvent(const String&);
  12202. bool Load(File, bool = false);
  12203. bool Load(VectorBuffer&, bool = false);
  12204. bool LoadJSON(const JSONValue&, bool = false);
  12205. bool LoadXML(const XMLElement&, bool = false);
  12206. void MarkNetworkUpdate() const;
  12207. void Remove();
  12208. void RemoveAttributeAnimation(const String&);
  12209. void RemoveInstanceDefault();
  12210. void RemoveObjectAnimation();
  12211. void ResetToDefault();
  12212. bool Save(File) const;
  12213. bool Save(VectorBuffer&) const;
  12214. bool SaveJSON(JSONValue&) const;
  12215. bool SaveXML(XMLElement&) const;
  12216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12217. void SetAnimationTime(float);
  12218. bool SetAttribute(const String&, const Variant&);
  12219. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12220. void SetAttributeAnimationSpeed(const String&, float);
  12221. void SetAttributeAnimationTime(const String&, float);
  12222. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12223. void SetInterceptNetworkUpdate(const String&, bool);
  12224. const String& GetProperty(const String&) const;
  12225. // Properties:
  12226. bool animationEnabled;
  12227. /* readonly */
  12228. Array<Variant> attributeDefaults;
  12229. /* readonly */
  12230. Array<AttributeInfo> attributeInfos;
  12231. Array<Variant> attributes;
  12232. /* readonly */
  12233. String category;
  12234. int drawOrder;
  12235. bool enabled;
  12236. /* readonly */
  12237. bool enabledEffective;
  12238. /* readonly */
  12239. int height;
  12240. /* readonly */
  12241. uint id;
  12242. /* readonly */
  12243. Node imageNode;
  12244. /* readonly */
  12245. TileMapLayerType2D layerType;
  12246. /* readonly */
  12247. Node node;
  12248. /* readonly */
  12249. uint numAttributes;
  12250. /* readonly */
  12251. uint numObjects;
  12252. ObjectAnimation objectAnimation;
  12253. /* readonly */
  12254. int refs;
  12255. bool temporary;
  12256. /* readonly */
  12257. StringHash type;
  12258. /* readonly */
  12259. String typeName;
  12260. bool visible;
  12261. /* readonly */
  12262. int weakRefs;
  12263. /* readonly */
  12264. int width;
  12265. };
  12266. class TileMapObject2D
  12267. {
  12268. // Methods:
  12269. bool HasProperty(const String&) const;
  12270. const String& GetProperty(const String&) const;
  12271. const Vector2& GetPoint(uint) const;
  12272. // Properties:
  12273. /* readonly */
  12274. String name;
  12275. /* readonly */
  12276. uint numPoints;
  12277. /* readonly */
  12278. TileObjectType2D objectType;
  12279. /* readonly */
  12280. Vector2 position;
  12281. /* readonly */
  12282. int refs;
  12283. /* readonly */
  12284. Vector2 size;
  12285. /* readonly */
  12286. int tileGid;
  12287. /* readonly */
  12288. Sprite2D tileSprite;
  12289. /* readonly */
  12290. String type;
  12291. /* readonly */
  12292. int weakRefs;
  12293. };
  12294. class Time
  12295. {
  12296. // Methods:
  12297. bool HasSubscribedToEvent(Object, const String&);
  12298. bool HasSubscribedToEvent(const String&);
  12299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12300. // Properties:
  12301. /* readonly */
  12302. String category;
  12303. /* readonly */
  12304. float elapsedTime;
  12305. /* readonly */
  12306. uint frameNumber;
  12307. /* readonly */
  12308. int refs;
  12309. /* readonly */
  12310. uint systemTime;
  12311. /* readonly */
  12312. uint timeSinceEpoch;
  12313. /* readonly */
  12314. String timeStamp;
  12315. /* readonly */
  12316. float timeStep;
  12317. /* readonly */
  12318. StringHash type;
  12319. /* readonly */
  12320. String typeName;
  12321. /* readonly */
  12322. int weakRefs;
  12323. };
  12324. class Timer
  12325. {
  12326. // Methods:
  12327. uint GetMSec(bool);
  12328. void Reset();
  12329. };
  12330. class TmxFile2D
  12331. {
  12332. // Methods:
  12333. bool HasSubscribedToEvent(Object, const String&);
  12334. bool HasSubscribedToEvent(const String&);
  12335. bool Load(File);
  12336. bool Load(VectorBuffer&);
  12337. bool Load(const String&);
  12338. bool Save(File) const;
  12339. bool Save(VectorBuffer&) const;
  12340. bool Save(const String&) const;
  12341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12342. // Properties:
  12343. /* readonly */
  12344. String category;
  12345. /* readonly */
  12346. uint memoryUse;
  12347. String name;
  12348. /* readonly */
  12349. int refs;
  12350. /* readonly */
  12351. StringHash type;
  12352. /* readonly */
  12353. String typeName;
  12354. /* readonly */
  12355. uint useTimer;
  12356. /* readonly */
  12357. int weakRefs;
  12358. };
  12359. class ToolTip
  12360. {
  12361. // Methods:
  12362. void AddChild(UIElement);
  12363. void AddTag(const String&);
  12364. void AddTags(const String&, int8 = ';');
  12365. void ApplyAttributes();
  12366. void BringToFront();
  12367. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12368. void DisableLayoutUpdate();
  12369. IntVector2 ElementToScreen(const IntVector2&);
  12370. void EnableLayoutUpdate();
  12371. uint FindChild(UIElement) const;
  12372. Variant GetAttribute(const String&) const;
  12373. ValueAnimation GetAttributeAnimation(const String&) const;
  12374. float GetAttributeAnimationSpeed(const String&) const;
  12375. float GetAttributeAnimationTime(const String&) const;
  12376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12377. Variant GetAttributeDefault(const String&) const;
  12378. UIElement GetChild(const String&, bool = false) const;
  12379. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12380. Array<UIElement> GetChildren(bool = false) const;
  12381. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12382. UIElement GetElementEventSender() const;
  12383. bool GetInterceptNetworkUpdate(const String&) const;
  12384. uint GetNumChildren(bool) const;
  12385. bool HasSubscribedToEvent(Object, const String&);
  12386. bool HasSubscribedToEvent(const String&);
  12387. bool HasTag(const String&) const;
  12388. void InsertChild(uint, UIElement);
  12389. bool IsInside(IntVector2, bool);
  12390. bool IsInsideCombined(IntVector2, bool);
  12391. bool Load(File, bool = false);
  12392. bool Load(VectorBuffer&, bool = false);
  12393. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12394. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12395. bool LoadJSON(const JSONValue&, bool = false);
  12396. bool LoadXML(File);
  12397. bool LoadXML(VectorBuffer&);
  12398. bool LoadXML(XMLFile, XMLFile);
  12399. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12400. bool LoadXML(const XMLElement&, bool = false);
  12401. void MarkNetworkUpdate() const;
  12402. void Remove();
  12403. void RemoveAllChildren();
  12404. void RemoveAllTags();
  12405. void RemoveAttributeAnimation(const String&);
  12406. void RemoveChild(UIElement, uint = 0);
  12407. void RemoveChild(uint);
  12408. void RemoveInstanceDefault();
  12409. void RemoveObjectAnimation();
  12410. bool RemoveTag(const String&);
  12411. void ResetDeepEnabled();
  12412. void ResetToDefault();
  12413. bool Save(File) const;
  12414. bool Save(VectorBuffer&) const;
  12415. bool SaveJSON(JSONValue&) const;
  12416. bool SaveXML(File, const String& = "\t");
  12417. bool SaveXML(VectorBuffer&, const String& = "\t");
  12418. bool SaveXML(XMLElement&) const;
  12419. IntVector2 ScreenToElement(const IntVector2&);
  12420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12421. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12422. void SetAnimationTime(float);
  12423. bool SetAttribute(const String&, const Variant&);
  12424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12425. void SetAttributeAnimationSpeed(const String&, float);
  12426. void SetAttributeAnimationTime(const String&, float);
  12427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12428. void SetDeepEnabled(bool);
  12429. void SetEnabledRecursive(bool);
  12430. void SetFixedHeight(int);
  12431. void SetFixedSize(int, int);
  12432. void SetFixedWidth(int);
  12433. void SetInterceptNetworkUpdate(const String&, bool);
  12434. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12435. void SetMaxAnchor(float, float);
  12436. void SetMaxSize(int, int);
  12437. void SetMinAnchor(float, float);
  12438. void SetMinSize(int, int);
  12439. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12440. void SetPivot(float, float);
  12441. void SetPosition(int, int);
  12442. void SetSize(int, int);
  12443. bool SetStyle(const String&, XMLFile = null);
  12444. bool SetStyle(const XMLElement&);
  12445. bool SetStyleAuto(XMLFile = null);
  12446. void UpdateLayout();
  12447. const Variant& GetVar(const StringHash&);
  12448. // Properties:
  12449. bool animationEnabled;
  12450. /* readonly */
  12451. Array<Variant> attributeDefaults;
  12452. /* readonly */
  12453. Array<AttributeInfo> attributeInfos;
  12454. Array<Variant> attributes;
  12455. bool bringToBack;
  12456. bool bringToFront;
  12457. /* readonly */
  12458. String category;
  12459. /* readonly */
  12460. IntVector2 childOffset;
  12461. /* readonly */
  12462. Array<UIElement> children;
  12463. IntRect clipBorder;
  12464. bool clipChildren;
  12465. /* writeonly */
  12466. Color color;
  12467. /* readonly */
  12468. bool colorGradient;
  12469. Array<Color> colors;
  12470. /* readonly */
  12471. IntRect combinedScreenRect;
  12472. XMLFile defaultStyle;
  12473. float delay;
  12474. /* readonly */
  12475. float derivedOpacity;
  12476. /* readonly */
  12477. uint dragButtonCombo;
  12478. /* readonly */
  12479. int dragButtonCount;
  12480. uint dragDropMode;
  12481. bool editable;
  12482. bool elementEventSender;
  12483. bool enableAnchor;
  12484. bool enabled;
  12485. /* readonly */
  12486. bool enabledSelf;
  12487. /* readonly */
  12488. bool fixedHeight;
  12489. /* readonly */
  12490. bool fixedSize;
  12491. /* readonly */
  12492. bool fixedWidth;
  12493. bool focus;
  12494. FocusMode focusMode;
  12495. int height;
  12496. HorizontalAlignment horizontalAlignment;
  12497. /* readonly */
  12498. bool hovering;
  12499. int indent;
  12500. int indentSpacing;
  12501. /* readonly */
  12502. int indentWidth;
  12503. bool internal;
  12504. IntRect layoutBorder;
  12505. Vector2 layoutFlexScale;
  12506. LayoutMode layoutMode;
  12507. int layoutSpacing;
  12508. Vector2 maxAnchor;
  12509. int maxHeight;
  12510. IntVector2 maxOffset;
  12511. IntVector2 maxSize;
  12512. int maxWidth;
  12513. Vector2 minAnchor;
  12514. int minHeight;
  12515. IntVector2 minOffset;
  12516. IntVector2 minSize;
  12517. int minWidth;
  12518. String name;
  12519. /* readonly */
  12520. uint numAllChildren;
  12521. /* readonly */
  12522. uint numAttributes;
  12523. /* readonly */
  12524. uint numChildren;
  12525. ObjectAnimation objectAnimation;
  12526. float opacity;
  12527. UIElement parent;
  12528. Vector2 pivot;
  12529. IntVector2 position;
  12530. int priority;
  12531. /* readonly */
  12532. int refs;
  12533. /* readonly */
  12534. UIElement root;
  12535. /* readonly */
  12536. IntVector2 screenPosition;
  12537. bool selected;
  12538. IntVector2 size;
  12539. bool sortChildren;
  12540. String style;
  12541. /* readonly */
  12542. Array<String> tags;
  12543. bool temporary;
  12544. TraversalMode traversalMode;
  12545. /* readonly */
  12546. StringHash type;
  12547. /* readonly */
  12548. String typeName;
  12549. bool useDerivedOpacity;
  12550. /* readonly */
  12551. VariantMap vars;
  12552. VerticalAlignment verticalAlignment;
  12553. bool visible;
  12554. /* readonly */
  12555. bool visibleEffective;
  12556. /* readonly */
  12557. int weakRefs;
  12558. int width;
  12559. };
  12560. class TouchState
  12561. {
  12562. // Properties:
  12563. IntVector2 delta;
  12564. IntVector2 lastPosition;
  12565. IntVector2 position;
  12566. float pressure;
  12567. int touchID;
  12568. /* readonly */
  12569. UIElement touchedElement;
  12570. };
  12571. class UI
  12572. {
  12573. // Methods:
  12574. void Clear();
  12575. void DebugDraw(UIElement);
  12576. UIElement GetElementAt(const IntVector2&, bool = true);
  12577. UIElement GetElementAt(int, int, bool = true);
  12578. bool HasModalElement() const;
  12579. bool HasSubscribedToEvent(Object, const String&);
  12580. bool HasSubscribedToEvent(const String&);
  12581. bool IsDragging() const;
  12582. UIElement LoadLayout(File);
  12583. UIElement LoadLayout(File, XMLFile);
  12584. UIElement LoadLayout(VectorBuffer&);
  12585. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12586. UIElement LoadLayout(XMLFile);
  12587. UIElement LoadLayout(XMLFile, XMLFile);
  12588. bool SaveLayout(File, UIElement);
  12589. bool SaveLayout(VectorBuffer&, UIElement);
  12590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12591. void SetCustomSize(int, int);
  12592. void SetFocusElement(UIElement, bool = false);
  12593. void SetHeight(float);
  12594. void SetWidth(float);
  12595. const Array<UIElement> GetDragElements();
  12596. // Properties:
  12597. /* readonly */
  12598. String category;
  12599. String clipBoardText;
  12600. Cursor cursor;
  12601. /* readonly */
  12602. IntVector2 cursorPosition;
  12603. IntVector2 customSize;
  12604. float defaultToolTipDelay;
  12605. float doubleClickInterval;
  12606. int dragBeginDistance;
  12607. float dragBeginInterval;
  12608. UIElement focusElement;
  12609. bool forceAutoHint;
  12610. /* readonly */
  12611. UIElement frontElement;
  12612. int maxFontTextureSize;
  12613. /* readonly */
  12614. UIElement modalRoot;
  12615. bool nonFocusedMouseWheel;
  12616. /* readonly */
  12617. int refs;
  12618. /* readonly */
  12619. UIElement root;
  12620. float scale;
  12621. /* readonly */
  12622. StringHash type;
  12623. /* readonly */
  12624. String typeName;
  12625. bool useMutableGlyphs;
  12626. bool useScreenKeyboard;
  12627. bool useSystemClipboard;
  12628. /* readonly */
  12629. int weakRefs;
  12630. };
  12631. class UIElement
  12632. {
  12633. // Methods:
  12634. void AddChild(UIElement);
  12635. void AddTag(const String&);
  12636. void AddTags(const String&, int8 = ';');
  12637. void ApplyAttributes();
  12638. void BringToFront();
  12639. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12640. void DisableLayoutUpdate();
  12641. IntVector2 ElementToScreen(const IntVector2&);
  12642. void EnableLayoutUpdate();
  12643. uint FindChild(UIElement) const;
  12644. Variant GetAttribute(const String&) const;
  12645. ValueAnimation GetAttributeAnimation(const String&) const;
  12646. float GetAttributeAnimationSpeed(const String&) const;
  12647. float GetAttributeAnimationTime(const String&) const;
  12648. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12649. Variant GetAttributeDefault(const String&) const;
  12650. UIElement GetChild(const String&, bool = false) const;
  12651. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12652. Array<UIElement> GetChildren(bool = false) const;
  12653. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12654. UIElement GetElementEventSender() const;
  12655. bool GetInterceptNetworkUpdate(const String&) const;
  12656. uint GetNumChildren(bool) const;
  12657. bool HasSubscribedToEvent(Object, const String&);
  12658. bool HasSubscribedToEvent(const String&);
  12659. bool HasTag(const String&) const;
  12660. void InsertChild(uint, UIElement);
  12661. bool IsInside(IntVector2, bool);
  12662. bool IsInsideCombined(IntVector2, bool);
  12663. bool Load(File, bool = false);
  12664. bool Load(VectorBuffer&, bool = false);
  12665. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12666. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12667. bool LoadJSON(const JSONValue&, bool = false);
  12668. bool LoadXML(File);
  12669. bool LoadXML(VectorBuffer&);
  12670. bool LoadXML(XMLFile, XMLFile);
  12671. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12672. bool LoadXML(const XMLElement&, bool = false);
  12673. void MarkNetworkUpdate() const;
  12674. void Remove();
  12675. void RemoveAllChildren();
  12676. void RemoveAllTags();
  12677. void RemoveAttributeAnimation(const String&);
  12678. void RemoveChild(UIElement, uint = 0);
  12679. void RemoveChild(uint);
  12680. void RemoveInstanceDefault();
  12681. void RemoveObjectAnimation();
  12682. bool RemoveTag(const String&);
  12683. void ResetDeepEnabled();
  12684. void ResetToDefault();
  12685. bool Save(File) const;
  12686. bool Save(VectorBuffer&) const;
  12687. bool SaveJSON(JSONValue&) const;
  12688. bool SaveXML(File, const String& = "\t");
  12689. bool SaveXML(VectorBuffer&, const String& = "\t");
  12690. bool SaveXML(XMLElement&) const;
  12691. IntVector2 ScreenToElement(const IntVector2&);
  12692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12693. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12694. void SetAnimationTime(float);
  12695. bool SetAttribute(const String&, const Variant&);
  12696. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12697. void SetAttributeAnimationSpeed(const String&, float);
  12698. void SetAttributeAnimationTime(const String&, float);
  12699. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12700. void SetDeepEnabled(bool);
  12701. void SetEnabledRecursive(bool);
  12702. void SetFixedHeight(int);
  12703. void SetFixedSize(int, int);
  12704. void SetFixedWidth(int);
  12705. void SetInterceptNetworkUpdate(const String&, bool);
  12706. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12707. void SetMaxAnchor(float, float);
  12708. void SetMaxSize(int, int);
  12709. void SetMinAnchor(float, float);
  12710. void SetMinSize(int, int);
  12711. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12712. void SetPivot(float, float);
  12713. void SetPosition(int, int);
  12714. void SetSize(int, int);
  12715. bool SetStyle(const String&, XMLFile = null);
  12716. bool SetStyle(const XMLElement&);
  12717. bool SetStyleAuto(XMLFile = null);
  12718. void UpdateLayout();
  12719. const Variant& GetVar(const StringHash&);
  12720. // Properties:
  12721. bool animationEnabled;
  12722. /* readonly */
  12723. Array<Variant> attributeDefaults;
  12724. /* readonly */
  12725. Array<AttributeInfo> attributeInfos;
  12726. Array<Variant> attributes;
  12727. bool bringToBack;
  12728. bool bringToFront;
  12729. /* readonly */
  12730. String category;
  12731. /* readonly */
  12732. IntVector2 childOffset;
  12733. /* readonly */
  12734. Array<UIElement> children;
  12735. IntRect clipBorder;
  12736. bool clipChildren;
  12737. /* writeonly */
  12738. Color color;
  12739. /* readonly */
  12740. bool colorGradient;
  12741. Array<Color> colors;
  12742. /* readonly */
  12743. IntRect combinedScreenRect;
  12744. XMLFile defaultStyle;
  12745. /* readonly */
  12746. float derivedOpacity;
  12747. /* readonly */
  12748. uint dragButtonCombo;
  12749. /* readonly */
  12750. int dragButtonCount;
  12751. uint dragDropMode;
  12752. bool editable;
  12753. bool elementEventSender;
  12754. bool enableAnchor;
  12755. bool enabled;
  12756. /* readonly */
  12757. bool enabledSelf;
  12758. /* readonly */
  12759. bool fixedHeight;
  12760. /* readonly */
  12761. bool fixedSize;
  12762. /* readonly */
  12763. bool fixedWidth;
  12764. bool focus;
  12765. FocusMode focusMode;
  12766. int height;
  12767. HorizontalAlignment horizontalAlignment;
  12768. /* readonly */
  12769. bool hovering;
  12770. int indent;
  12771. int indentSpacing;
  12772. /* readonly */
  12773. int indentWidth;
  12774. bool internal;
  12775. IntRect layoutBorder;
  12776. Vector2 layoutFlexScale;
  12777. LayoutMode layoutMode;
  12778. int layoutSpacing;
  12779. Vector2 maxAnchor;
  12780. int maxHeight;
  12781. IntVector2 maxOffset;
  12782. IntVector2 maxSize;
  12783. int maxWidth;
  12784. Vector2 minAnchor;
  12785. int minHeight;
  12786. IntVector2 minOffset;
  12787. IntVector2 minSize;
  12788. int minWidth;
  12789. String name;
  12790. /* readonly */
  12791. uint numAllChildren;
  12792. /* readonly */
  12793. uint numAttributes;
  12794. /* readonly */
  12795. uint numChildren;
  12796. ObjectAnimation objectAnimation;
  12797. float opacity;
  12798. UIElement parent;
  12799. Vector2 pivot;
  12800. IntVector2 position;
  12801. int priority;
  12802. /* readonly */
  12803. int refs;
  12804. /* readonly */
  12805. UIElement root;
  12806. /* readonly */
  12807. IntVector2 screenPosition;
  12808. bool selected;
  12809. IntVector2 size;
  12810. bool sortChildren;
  12811. String style;
  12812. /* readonly */
  12813. Array<String> tags;
  12814. bool temporary;
  12815. TraversalMode traversalMode;
  12816. /* readonly */
  12817. StringHash type;
  12818. /* readonly */
  12819. String typeName;
  12820. bool useDerivedOpacity;
  12821. /* readonly */
  12822. VariantMap vars;
  12823. VerticalAlignment verticalAlignment;
  12824. bool visible;
  12825. /* readonly */
  12826. bool visibleEffective;
  12827. /* readonly */
  12828. int weakRefs;
  12829. int width;
  12830. };
  12831. class ValueAnimation
  12832. {
  12833. // Methods:
  12834. bool HasSubscribedToEvent(Object, const String&);
  12835. bool HasSubscribedToEvent(const String&);
  12836. bool Load(File);
  12837. bool Load(VectorBuffer&);
  12838. bool Load(const String&);
  12839. bool Save(File) const;
  12840. bool Save(VectorBuffer&) const;
  12841. bool Save(const String&) const;
  12842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12843. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12844. void SetKeyFrame(float, const Variant&);
  12845. // Properties:
  12846. /* readonly */
  12847. String category;
  12848. InterpMethod interpolationMethod;
  12849. /* readonly */
  12850. uint memoryUse;
  12851. String name;
  12852. /* readonly */
  12853. int refs;
  12854. float splineTension;
  12855. /* readonly */
  12856. StringHash type;
  12857. /* readonly */
  12858. String typeName;
  12859. /* readonly */
  12860. uint useTimer;
  12861. VariantType valueType;
  12862. /* readonly */
  12863. int weakRefs;
  12864. };
  12865. class Variant
  12866. {
  12867. // Methods:
  12868. void Clear();
  12869. const Color& GetColor() const;
  12870. void FromString(VariantType, const String&);
  12871. void FromString(const String&, const String&);
  12872. bool GetBool() const;
  12873. VectorBuffer GetBuffer() const;
  12874. double GetDouble() const;
  12875. float GetFloat() const;
  12876. int GetInt() const;
  12877. RefCounted GetPtr() const;
  12878. ScriptObject GetScriptObject() const;
  12879. StringHash GetStringHash() const;
  12880. Array<String> GetStringVector() const;
  12881. uint GetUInt() const;
  12882. Array<Variant> GetVariantVector() const;
  12883. const IntRect& GetIntRect() const;
  12884. const IntVector2& GetIntVector2() const;
  12885. const Matrix3& GetMatrix3() const;
  12886. const Matrix3x4& GetMatrix3x4() const;
  12887. const Matrix4& GetMatrix4() const;
  12888. const Quaternion& GetQuaternion() const;
  12889. const Rect& GetRect() const;
  12890. const ResourceRef& GetResourceRef() const;
  12891. const ResourceRefList& GetResourceRefList() const;
  12892. const String& GetString() const;
  12893. String ToString() const;
  12894. const VariantMap& GetVariantMap() const;
  12895. const Vector2& GetVector2() const;
  12896. const Vector3& GetVector3() const;
  12897. const Vector4& GetVector4() const;
  12898. // Properties:
  12899. /* readonly */
  12900. bool empty;
  12901. /* readonly */
  12902. VariantType type;
  12903. /* readonly */
  12904. String typeName;
  12905. /* readonly */
  12906. bool zero;
  12907. };
  12908. class VariantMap
  12909. {
  12910. // Methods:
  12911. void Clear();
  12912. bool Contains(StringHash) const;
  12913. bool Contains(const String&) const;
  12914. bool Erase(StringHash);
  12915. bool Erase(const String&);
  12916. // Properties:
  12917. /* readonly */
  12918. Array<StringHash> keys;
  12919. /* readonly */
  12920. uint length;
  12921. /* readonly */
  12922. Array<Variant> values;
  12923. };
  12924. class Vector2
  12925. {
  12926. // Methods:
  12927. Vector2 Abs() const;
  12928. float AbsDotProduct(const Vector2&) const;
  12929. float Angle(const Vector2&) const;
  12930. float DotProduct(const Vector2&) const;
  12931. bool Equals(const Vector2&) const;
  12932. bool IsNaN() const;
  12933. Vector2 Lerp(const Vector2&, float) const;
  12934. void Normalize();
  12935. Vector2 Normalized() const;
  12936. float ProjectOntoAxis(const Vector2&) const;
  12937. String ToString() const;
  12938. // Properties:
  12939. /* readonly */
  12940. Array<float> data;
  12941. /* readonly */
  12942. float length;
  12943. /* readonly */
  12944. float lengthSquared;
  12945. float x;
  12946. float y;
  12947. };
  12948. class Vector3
  12949. {
  12950. // Methods:
  12951. Vector3 Abs() const;
  12952. float AbsDotProduct(const Vector3&) const;
  12953. float Angle(const Vector3&) const;
  12954. Vector3 CrossProduct(const Vector3&) const;
  12955. float DotProduct(const Vector3&) const;
  12956. bool Equals(const Vector3&) const;
  12957. bool IsNaN() const;
  12958. Vector3 Lerp(const Vector3&, float) const;
  12959. void Normalize();
  12960. Vector3 Normalized() const;
  12961. float ProjectOntoAxis(const Vector3&) const;
  12962. String ToString() const;
  12963. // Properties:
  12964. /* readonly */
  12965. Array<float> data;
  12966. /* readonly */
  12967. float length;
  12968. /* readonly */
  12969. float lengthSquared;
  12970. float x;
  12971. float y;
  12972. float z;
  12973. };
  12974. class Vector4
  12975. {
  12976. // Methods:
  12977. Vector4 Abs() const;
  12978. float AbsDotProduct(const Vector4&) const;
  12979. float DotProduct(const Vector4&) const;
  12980. bool Equals(const Vector4&) const;
  12981. bool IsNaN() const;
  12982. Vector4 Lerp(const Vector4&, float) const;
  12983. float ProjectOntoAxis(const Vector3&) const;
  12984. String ToString() const;
  12985. // Properties:
  12986. /* readonly */
  12987. Array<float> data;
  12988. float w;
  12989. float x;
  12990. float y;
  12991. float z;
  12992. };
  12993. class VectorBuffer
  12994. {
  12995. // Methods:
  12996. void Clear();
  12997. Array<uint8> Read(uint);
  12998. bool ReadBool();
  12999. BoundingBox ReadBoundingBox();
  13000. int8 ReadByte();
  13001. Color ReadColor();
  13002. double ReadDouble();
  13003. String ReadFileID();
  13004. float ReadFloat();
  13005. int ReadInt();
  13006. int64 ReadInt64();
  13007. IntRect ReadIntRect();
  13008. IntVector2 ReadIntVector2();
  13009. String ReadLine();
  13010. Matrix3 ReadMatrix3();
  13011. Matrix3x4 ReadMatrix3x4();
  13012. Matrix4 ReadMatrix4();
  13013. uint ReadNetID();
  13014. Quaternion ReadPackedQuaternion();
  13015. Vector3 ReadPackedVector3(float);
  13016. Quaternion ReadQuaternion();
  13017. int16 ReadShort();
  13018. String ReadString();
  13019. StringHash ReadStringHash();
  13020. uint8 ReadUByte();
  13021. uint ReadUInt();
  13022. uint64 ReadUInt64();
  13023. uint16 ReadUShort();
  13024. uint ReadVLE();
  13025. Variant ReadVariant();
  13026. VariantMap ReadVariantMap();
  13027. Vector2 ReadVector2();
  13028. Vector3 ReadVector3();
  13029. Vector4 ReadVector4();
  13030. VectorBuffer ReadVectorBuffer(uint);
  13031. void Resize(uint);
  13032. uint Seek(uint);
  13033. void SetData(Deserializer, uint);
  13034. uint Write(Array<uint8>);
  13035. bool WriteBool(bool);
  13036. bool WriteBoundingBox(const BoundingBox&);
  13037. bool WriteByte(int8);
  13038. bool WriteColor(const Color&);
  13039. bool WriteDouble(double);
  13040. bool WriteFileID(const String&);
  13041. bool WriteFloat(float);
  13042. bool WriteInt(int);
  13043. bool WriteInt64(int64);
  13044. bool WriteIntRect(const IntRect&);
  13045. bool WriteIntVector2(const IntVector2&);
  13046. bool WriteLine(const String&);
  13047. bool WriteMatrix3(const Matrix3&);
  13048. bool WriteMatrix3x4(const Matrix3x4&);
  13049. bool WriteMatrix4(const Matrix4&);
  13050. bool WriteNetID(uint);
  13051. bool WritePackedQuaternion(const Quaternion&);
  13052. bool WritePackedVector3(const Vector3&, float);
  13053. bool WriteQuaternion(const Quaternion&);
  13054. bool WriteShort(int16);
  13055. bool WriteString(const String&);
  13056. bool WriteStringHash(const StringHash&);
  13057. bool WriteUByte(uint8);
  13058. bool WriteUInt(uint);
  13059. bool WriteUInt64(uint64);
  13060. bool WriteUShort(uint16);
  13061. bool WriteVLE(uint);
  13062. bool WriteVariant(const Variant&);
  13063. bool WriteVariantMap(const VariantMap&);
  13064. bool WriteVector2(const Vector2&);
  13065. bool WriteVector3(const Vector3&);
  13066. bool WriteVector4(const Vector4&);
  13067. bool WriteVectorBuffer(const VectorBuffer&);
  13068. // Properties:
  13069. /* readonly */
  13070. uint checksum;
  13071. /* readonly */
  13072. bool eof;
  13073. /* readonly */
  13074. String name;
  13075. /* readonly */
  13076. uint position;
  13077. /* readonly */
  13078. uint size;
  13079. };
  13080. class VertexBuffer
  13081. {
  13082. // Methods:
  13083. VectorBuffer GetData() const;
  13084. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13085. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13086. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13087. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13088. bool HasSubscribedToEvent(Object, const String&);
  13089. bool HasSubscribedToEvent(const String&);
  13090. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13091. bool SetData(VectorBuffer&);
  13092. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13093. void SetSize(uint, Array<VertexElement>, bool = false);
  13094. void SetSize(uint, uint, bool = false);
  13095. // Properties:
  13096. /* readonly */
  13097. String category;
  13098. /* readonly */
  13099. bool dynamic;
  13100. /* readonly */
  13101. uint elementMask;
  13102. /* readonly */
  13103. Array<VertexElement> elements;
  13104. /* readonly */
  13105. int refs;
  13106. bool shadowed;
  13107. /* readonly */
  13108. StringHash type;
  13109. /* readonly */
  13110. String typeName;
  13111. /* readonly */
  13112. uint vertexCount;
  13113. /* readonly */
  13114. uint vertexSize;
  13115. /* readonly */
  13116. int weakRefs;
  13117. };
  13118. class VertexElement
  13119. {
  13120. // Properties:
  13121. uint8 index;
  13122. uint offset;
  13123. bool perInstance;
  13124. VertexElementSemantic semantic;
  13125. VertexElementType type;
  13126. };
  13127. class View3D
  13128. {
  13129. // Methods:
  13130. void AddChild(UIElement);
  13131. void AddTag(const String&);
  13132. void AddTags(const String&, int8 = ';');
  13133. void ApplyAttributes();
  13134. void BringToFront();
  13135. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13136. void DisableLayoutUpdate();
  13137. IntVector2 ElementToScreen(const IntVector2&);
  13138. void EnableLayoutUpdate();
  13139. uint FindChild(UIElement) const;
  13140. Variant GetAttribute(const String&) const;
  13141. ValueAnimation GetAttributeAnimation(const String&) const;
  13142. float GetAttributeAnimationSpeed(const String&) const;
  13143. float GetAttributeAnimationTime(const String&) const;
  13144. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13145. Variant GetAttributeDefault(const String&) const;
  13146. UIElement GetChild(const String&, bool = false) const;
  13147. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13148. Array<UIElement> GetChildren(bool = false) const;
  13149. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13150. UIElement GetElementEventSender() const;
  13151. bool GetInterceptNetworkUpdate(const String&) const;
  13152. uint GetNumChildren(bool) const;
  13153. bool HasSubscribedToEvent(Object, const String&);
  13154. bool HasSubscribedToEvent(const String&);
  13155. bool HasTag(const String&) const;
  13156. void InsertChild(uint, UIElement);
  13157. bool IsInside(IntVector2, bool);
  13158. bool IsInsideCombined(IntVector2, bool);
  13159. bool Load(File, bool = false);
  13160. bool Load(VectorBuffer&, bool = false);
  13161. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13162. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13163. bool LoadJSON(const JSONValue&, bool = false);
  13164. bool LoadXML(File);
  13165. bool LoadXML(VectorBuffer&);
  13166. bool LoadXML(XMLFile, XMLFile);
  13167. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13168. bool LoadXML(const XMLElement&, bool = false);
  13169. void MarkNetworkUpdate() const;
  13170. void QueueUpdate();
  13171. void Remove();
  13172. void RemoveAllChildren();
  13173. void RemoveAllTags();
  13174. void RemoveAttributeAnimation(const String&);
  13175. void RemoveChild(UIElement, uint = 0);
  13176. void RemoveChild(uint);
  13177. void RemoveInstanceDefault();
  13178. void RemoveObjectAnimation();
  13179. bool RemoveTag(const String&);
  13180. void ResetDeepEnabled();
  13181. void ResetToDefault();
  13182. bool Save(File) const;
  13183. bool Save(VectorBuffer&) const;
  13184. bool SaveJSON(JSONValue&) const;
  13185. bool SaveXML(File, const String& = "\t");
  13186. bool SaveXML(VectorBuffer&, const String& = "\t");
  13187. bool SaveXML(XMLElement&) const;
  13188. IntVector2 ScreenToElement(const IntVector2&);
  13189. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13190. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13191. void SetAnimationTime(float);
  13192. bool SetAttribute(const String&, const Variant&);
  13193. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13194. void SetAttributeAnimationSpeed(const String&, float);
  13195. void SetAttributeAnimationTime(const String&, float);
  13196. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13197. void SetDeepEnabled(bool);
  13198. void SetEnabledRecursive(bool);
  13199. void SetFixedHeight(int);
  13200. void SetFixedSize(int, int);
  13201. void SetFixedWidth(int);
  13202. void SetFullImageRect();
  13203. void SetHoverOffset(int, int);
  13204. void SetInterceptNetworkUpdate(const String&, bool);
  13205. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13206. void SetMaxAnchor(float, float);
  13207. void SetMaxSize(int, int);
  13208. void SetMinAnchor(float, float);
  13209. void SetMinSize(int, int);
  13210. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13211. void SetPivot(float, float);
  13212. void SetPosition(int, int);
  13213. void SetSize(int, int);
  13214. bool SetStyle(const String&, XMLFile = null);
  13215. bool SetStyle(const XMLElement&);
  13216. bool SetStyleAuto(XMLFile = null);
  13217. void SetView(Scene, Camera, bool = true);
  13218. void UpdateLayout();
  13219. const Variant& GetVar(const StringHash&);
  13220. // Properties:
  13221. bool animationEnabled;
  13222. /* readonly */
  13223. Array<Variant> attributeDefaults;
  13224. /* readonly */
  13225. Array<AttributeInfo> attributeInfos;
  13226. Array<Variant> attributes;
  13227. bool autoUpdate;
  13228. BlendMode blendMode;
  13229. IntRect border;
  13230. bool bringToBack;
  13231. bool bringToFront;
  13232. /* readonly */
  13233. Node cameraNode;
  13234. /* readonly */
  13235. String category;
  13236. /* readonly */
  13237. IntVector2 childOffset;
  13238. /* readonly */
  13239. Array<UIElement> children;
  13240. IntRect clipBorder;
  13241. bool clipChildren;
  13242. /* writeonly */
  13243. Color color;
  13244. /* readonly */
  13245. bool colorGradient;
  13246. Array<Color> colors;
  13247. /* readonly */
  13248. IntRect combinedScreenRect;
  13249. XMLFile defaultStyle;
  13250. /* readonly */
  13251. Texture2D depthTexture;
  13252. /* readonly */
  13253. float derivedOpacity;
  13254. /* readonly */
  13255. uint dragButtonCombo;
  13256. /* readonly */
  13257. int dragButtonCount;
  13258. uint dragDropMode;
  13259. bool editable;
  13260. bool elementEventSender;
  13261. bool enableAnchor;
  13262. bool enabled;
  13263. /* readonly */
  13264. bool enabledSelf;
  13265. /* readonly */
  13266. bool fixedHeight;
  13267. bool fixedHeightResizing;
  13268. /* readonly */
  13269. bool fixedSize;
  13270. /* readonly */
  13271. bool fixedWidth;
  13272. bool fixedWidthResizing;
  13273. bool focus;
  13274. FocusMode focusMode;
  13275. uint format;
  13276. int height;
  13277. HorizontalAlignment horizontalAlignment;
  13278. IntVector2 hoverOffset;
  13279. /* readonly */
  13280. bool hovering;
  13281. IntRect imageBorder;
  13282. IntRect imageRect;
  13283. int indent;
  13284. int indentSpacing;
  13285. /* readonly */
  13286. int indentWidth;
  13287. bool internal;
  13288. IntRect layoutBorder;
  13289. Vector2 layoutFlexScale;
  13290. LayoutMode layoutMode;
  13291. int layoutSpacing;
  13292. Vector2 maxAnchor;
  13293. int maxHeight;
  13294. IntVector2 maxOffset;
  13295. IntVector2 maxSize;
  13296. int maxWidth;
  13297. Vector2 minAnchor;
  13298. int minHeight;
  13299. IntVector2 minOffset;
  13300. IntVector2 minSize;
  13301. int minWidth;
  13302. bool modal;
  13303. bool modalAutoDismiss;
  13304. Color modalFrameColor;
  13305. IntVector2 modalFrameSize;
  13306. Color modalShadeColor;
  13307. bool movable;
  13308. String name;
  13309. /* readonly */
  13310. uint numAllChildren;
  13311. /* readonly */
  13312. uint numAttributes;
  13313. /* readonly */
  13314. uint numChildren;
  13315. ObjectAnimation objectAnimation;
  13316. float opacity;
  13317. UIElement parent;
  13318. Vector2 pivot;
  13319. IntVector2 position;
  13320. int priority;
  13321. /* readonly */
  13322. int refs;
  13323. /* readonly */
  13324. Texture2D renderTexture;
  13325. bool resizable;
  13326. IntRect resizeBorder;
  13327. /* readonly */
  13328. UIElement root;
  13329. /* readonly */
  13330. Scene scene;
  13331. /* readonly */
  13332. IntVector2 screenPosition;
  13333. bool selected;
  13334. IntVector2 size;
  13335. bool sortChildren;
  13336. String style;
  13337. /* readonly */
  13338. Array<String> tags;
  13339. bool temporary;
  13340. Texture texture;
  13341. bool tiled;
  13342. TraversalMode traversalMode;
  13343. /* readonly */
  13344. StringHash type;
  13345. /* readonly */
  13346. String typeName;
  13347. bool useDerivedOpacity;
  13348. /* readonly */
  13349. VariantMap vars;
  13350. VerticalAlignment verticalAlignment;
  13351. /* readonly */
  13352. Viewport viewport;
  13353. bool visible;
  13354. /* readonly */
  13355. bool visibleEffective;
  13356. /* readonly */
  13357. int weakRefs;
  13358. int width;
  13359. };
  13360. class Viewport
  13361. {
  13362. // Methods:
  13363. Ray GetScreenRay(int, int) const;
  13364. bool HasSubscribedToEvent(Object, const String&);
  13365. bool HasSubscribedToEvent(const String&);
  13366. Vector3 ScreenToWorldPoint(int, int, float) const;
  13367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13368. void SetRenderPath(XMLFile);
  13369. IntVector2 WorldToScreenPoint(const Vector3&) const;
  13370. // Properties:
  13371. Camera camera;
  13372. /* readonly */
  13373. String category;
  13374. Camera cullCamera;
  13375. bool drawDebug;
  13376. IntRect rect;
  13377. /* readonly */
  13378. int refs;
  13379. RenderPath renderPath;
  13380. Scene scene;
  13381. /* readonly */
  13382. StringHash type;
  13383. /* readonly */
  13384. String typeName;
  13385. /* readonly */
  13386. int weakRefs;
  13387. };
  13388. class WeakHandle
  13389. {
  13390. // Methods:
  13391. RefCounted Get() const;
  13392. // Properties:
  13393. /* readonly */
  13394. bool expired;
  13395. /* readonly */
  13396. int refs;
  13397. /* readonly */
  13398. int weakRefs;
  13399. };
  13400. class Window
  13401. {
  13402. // Methods:
  13403. void AddChild(UIElement);
  13404. void AddTag(const String&);
  13405. void AddTags(const String&, int8 = ';');
  13406. void ApplyAttributes();
  13407. void BringToFront();
  13408. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13409. void DisableLayoutUpdate();
  13410. IntVector2 ElementToScreen(const IntVector2&);
  13411. void EnableLayoutUpdate();
  13412. uint FindChild(UIElement) const;
  13413. Variant GetAttribute(const String&) const;
  13414. ValueAnimation GetAttributeAnimation(const String&) const;
  13415. float GetAttributeAnimationSpeed(const String&) const;
  13416. float GetAttributeAnimationTime(const String&) const;
  13417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13418. Variant GetAttributeDefault(const String&) const;
  13419. UIElement GetChild(const String&, bool = false) const;
  13420. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13421. Array<UIElement> GetChildren(bool = false) const;
  13422. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13423. UIElement GetElementEventSender() const;
  13424. bool GetInterceptNetworkUpdate(const String&) const;
  13425. uint GetNumChildren(bool) const;
  13426. bool HasSubscribedToEvent(Object, const String&);
  13427. bool HasSubscribedToEvent(const String&);
  13428. bool HasTag(const String&) const;
  13429. void InsertChild(uint, UIElement);
  13430. bool IsInside(IntVector2, bool);
  13431. bool IsInsideCombined(IntVector2, bool);
  13432. bool Load(File, bool = false);
  13433. bool Load(VectorBuffer&, bool = false);
  13434. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13435. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13436. bool LoadJSON(const JSONValue&, bool = false);
  13437. bool LoadXML(File);
  13438. bool LoadXML(VectorBuffer&);
  13439. bool LoadXML(XMLFile, XMLFile);
  13440. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13441. bool LoadXML(const XMLElement&, bool = false);
  13442. void MarkNetworkUpdate() const;
  13443. void Remove();
  13444. void RemoveAllChildren();
  13445. void RemoveAllTags();
  13446. void RemoveAttributeAnimation(const String&);
  13447. void RemoveChild(UIElement, uint = 0);
  13448. void RemoveChild(uint);
  13449. void RemoveInstanceDefault();
  13450. void RemoveObjectAnimation();
  13451. bool RemoveTag(const String&);
  13452. void ResetDeepEnabled();
  13453. void ResetToDefault();
  13454. bool Save(File) const;
  13455. bool Save(VectorBuffer&) const;
  13456. bool SaveJSON(JSONValue&) const;
  13457. bool SaveXML(File, const String& = "\t");
  13458. bool SaveXML(VectorBuffer&, const String& = "\t");
  13459. bool SaveXML(XMLElement&) const;
  13460. IntVector2 ScreenToElement(const IntVector2&);
  13461. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13462. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13463. void SetAnimationTime(float);
  13464. bool SetAttribute(const String&, const Variant&);
  13465. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13466. void SetAttributeAnimationSpeed(const String&, float);
  13467. void SetAttributeAnimationTime(const String&, float);
  13468. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13469. void SetDeepEnabled(bool);
  13470. void SetEnabledRecursive(bool);
  13471. void SetFixedHeight(int);
  13472. void SetFixedSize(int, int);
  13473. void SetFixedWidth(int);
  13474. void SetFullImageRect();
  13475. void SetHoverOffset(int, int);
  13476. void SetInterceptNetworkUpdate(const String&, bool);
  13477. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13478. void SetMaxAnchor(float, float);
  13479. void SetMaxSize(int, int);
  13480. void SetMinAnchor(float, float);
  13481. void SetMinSize(int, int);
  13482. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13483. void SetPivot(float, float);
  13484. void SetPosition(int, int);
  13485. void SetSize(int, int);
  13486. bool SetStyle(const String&, XMLFile = null);
  13487. bool SetStyle(const XMLElement&);
  13488. bool SetStyleAuto(XMLFile = null);
  13489. void UpdateLayout();
  13490. const Variant& GetVar(const StringHash&);
  13491. // Properties:
  13492. bool animationEnabled;
  13493. /* readonly */
  13494. Array<Variant> attributeDefaults;
  13495. /* readonly */
  13496. Array<AttributeInfo> attributeInfos;
  13497. Array<Variant> attributes;
  13498. BlendMode blendMode;
  13499. IntRect border;
  13500. bool bringToBack;
  13501. bool bringToFront;
  13502. /* readonly */
  13503. String category;
  13504. /* readonly */
  13505. IntVector2 childOffset;
  13506. /* readonly */
  13507. Array<UIElement> children;
  13508. IntRect clipBorder;
  13509. bool clipChildren;
  13510. /* writeonly */
  13511. Color color;
  13512. /* readonly */
  13513. bool colorGradient;
  13514. Array<Color> colors;
  13515. /* readonly */
  13516. IntRect combinedScreenRect;
  13517. XMLFile defaultStyle;
  13518. /* readonly */
  13519. float derivedOpacity;
  13520. /* readonly */
  13521. uint dragButtonCombo;
  13522. /* readonly */
  13523. int dragButtonCount;
  13524. uint dragDropMode;
  13525. bool editable;
  13526. bool elementEventSender;
  13527. bool enableAnchor;
  13528. bool enabled;
  13529. /* readonly */
  13530. bool enabledSelf;
  13531. /* readonly */
  13532. bool fixedHeight;
  13533. bool fixedHeightResizing;
  13534. /* readonly */
  13535. bool fixedSize;
  13536. /* readonly */
  13537. bool fixedWidth;
  13538. bool fixedWidthResizing;
  13539. bool focus;
  13540. FocusMode focusMode;
  13541. int height;
  13542. HorizontalAlignment horizontalAlignment;
  13543. IntVector2 hoverOffset;
  13544. /* readonly */
  13545. bool hovering;
  13546. IntRect imageBorder;
  13547. IntRect imageRect;
  13548. int indent;
  13549. int indentSpacing;
  13550. /* readonly */
  13551. int indentWidth;
  13552. bool internal;
  13553. IntRect layoutBorder;
  13554. Vector2 layoutFlexScale;
  13555. LayoutMode layoutMode;
  13556. int layoutSpacing;
  13557. Vector2 maxAnchor;
  13558. int maxHeight;
  13559. IntVector2 maxOffset;
  13560. IntVector2 maxSize;
  13561. int maxWidth;
  13562. Vector2 minAnchor;
  13563. int minHeight;
  13564. IntVector2 minOffset;
  13565. IntVector2 minSize;
  13566. int minWidth;
  13567. bool modal;
  13568. bool modalAutoDismiss;
  13569. Color modalFrameColor;
  13570. IntVector2 modalFrameSize;
  13571. Color modalShadeColor;
  13572. bool movable;
  13573. String name;
  13574. /* readonly */
  13575. uint numAllChildren;
  13576. /* readonly */
  13577. uint numAttributes;
  13578. /* readonly */
  13579. uint numChildren;
  13580. ObjectAnimation objectAnimation;
  13581. float opacity;
  13582. UIElement parent;
  13583. Vector2 pivot;
  13584. IntVector2 position;
  13585. int priority;
  13586. /* readonly */
  13587. int refs;
  13588. bool resizable;
  13589. IntRect resizeBorder;
  13590. /* readonly */
  13591. UIElement root;
  13592. /* readonly */
  13593. IntVector2 screenPosition;
  13594. bool selected;
  13595. IntVector2 size;
  13596. bool sortChildren;
  13597. String style;
  13598. /* readonly */
  13599. Array<String> tags;
  13600. bool temporary;
  13601. Texture texture;
  13602. bool tiled;
  13603. TraversalMode traversalMode;
  13604. /* readonly */
  13605. StringHash type;
  13606. /* readonly */
  13607. String typeName;
  13608. bool useDerivedOpacity;
  13609. /* readonly */
  13610. VariantMap vars;
  13611. VerticalAlignment verticalAlignment;
  13612. bool visible;
  13613. /* readonly */
  13614. bool visibleEffective;
  13615. /* readonly */
  13616. int weakRefs;
  13617. int width;
  13618. };
  13619. class XMLElement
  13620. {
  13621. // Methods:
  13622. XMLElement CreateChild(const String&);
  13623. String GetAttribute(const String& = String ( )) const;
  13624. String GetAttributeLower(const String&) const;
  13625. Array<String> GetAttributeNames() const;
  13626. String GetAttributeUpper(const String&) const;
  13627. bool GetBool(const String&) const;
  13628. BoundingBox GetBoundingBox() const;
  13629. XMLElement GetChild(const String& = String ( )) const;
  13630. Color GetColor(const String&) const;
  13631. double GetDouble(const String&) const;
  13632. float GetFloat(const String&) const;
  13633. int GetInt(const String&) const;
  13634. IntRect GetIntRect(const String&) const;
  13635. IntVector2 GetIntVector2(const String&) const;
  13636. Matrix3 GetMatrix3(const String&) const;
  13637. Matrix3x4 GetMatrix3x4(const String&) const;
  13638. Matrix4 GetMatrix4(const String&) const;
  13639. XMLElement GetNext(const String& = String ( )) const;
  13640. Quaternion GetQuaternion(const String&) const;
  13641. ResourceRef GetResourceRef() const;
  13642. ResourceRefList GetResourceRefList() const;
  13643. uint GetUInt(const String&) const;
  13644. String GetValue() const;
  13645. Variant GetVariant() const;
  13646. VariantMap GetVariantMap() const;
  13647. Array<Variant> GetVariantVector() const;
  13648. Vector2 GetVector2(const String&) const;
  13649. Vector3 GetVector3(const String&) const;
  13650. Vector4 GetVector4(const String&) const;
  13651. Variant GetVectorVariant(const String&) const;
  13652. bool HasAttribute(const String&) const;
  13653. bool HasChild(const String&) const;
  13654. bool RemoveAttribute(const String& = String ( ));
  13655. bool RemoveChild(const String&);
  13656. bool RemoveChild(const XMLElement&);
  13657. bool RemoveChildren(const String& = String ( ));
  13658. XPathResultSet Select(const String&);
  13659. XPathResultSet SelectPrepared(const XPathQuery&);
  13660. XMLElement SelectSingle(const String&);
  13661. XMLElement SelectSinglePrepared(const XPathQuery&);
  13662. bool SetAttribute(const String&);
  13663. bool SetAttribute(const String&, const String&);
  13664. bool SetBool(const String&, bool);
  13665. bool SetBoundingBox(const BoundingBox&);
  13666. bool SetColor(const String&, const Color&);
  13667. bool SetDouble(const String&, double);
  13668. bool SetFloat(const String&, float);
  13669. bool SetInt(const String&, int);
  13670. bool SetIntRect(const String&, const IntRect&);
  13671. bool SetIntVector2(const String&, const IntVector2&);
  13672. bool SetMatrix3(const String&, const Matrix3&);
  13673. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13674. bool SetMatrix4(const String&, const Matrix4&);
  13675. bool SetQuaternion(const String&, const Quaternion&);
  13676. bool SetResourceRef(const String&, const ResourceRef&);
  13677. bool SetResourceRefList(const String&, const ResourceRefList&);
  13678. bool SetUInt(const String&, uint);
  13679. bool SetValue(const String&);
  13680. bool SetVariant(const Variant&);
  13681. bool SetVariantMap(const VariantMap&);
  13682. bool SetVariantVector(Array<Variant>);
  13683. bool SetVector2(const String&, const Vector2&);
  13684. bool SetVector3(const String&, const Vector3&);
  13685. bool SetVector4(const String&, const Vector4&);
  13686. bool SetVectorVariant(const String&, const Variant&);
  13687. // Properties:
  13688. /* readonly */
  13689. XMLFile file;
  13690. /* readonly */
  13691. bool isNull;
  13692. /* readonly */
  13693. String name;
  13694. /* readonly */
  13695. XMLElement nextResult;
  13696. /* readonly */
  13697. bool notNull;
  13698. /* readonly */
  13699. uint numAttributes;
  13700. /* readonly */
  13701. XMLElement parent;
  13702. String value;
  13703. };
  13704. class XMLFile
  13705. {
  13706. // Methods:
  13707. XMLElement CreateRoot(const String&);
  13708. bool FromString(const String&);
  13709. XMLElement GetRoot(const String& = String ( ));
  13710. bool HasSubscribedToEvent(Object, const String&);
  13711. bool HasSubscribedToEvent(const String&);
  13712. bool Load(File);
  13713. bool Load(VectorBuffer&);
  13714. bool Load(const String&);
  13715. void Patch(XMLElement);
  13716. void Patch(XMLFile);
  13717. bool Save(File) const;
  13718. bool Save(File, const String&) const;
  13719. bool Save(VectorBuffer&) const;
  13720. bool Save(const String&) const;
  13721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13722. String ToString(const String& = String ( "\t" )) const;
  13723. // Properties:
  13724. /* readonly */
  13725. String category;
  13726. /* readonly */
  13727. uint memoryUse;
  13728. String name;
  13729. /* readonly */
  13730. int refs;
  13731. /* readonly */
  13732. XMLElement root;
  13733. /* readonly */
  13734. StringHash type;
  13735. /* readonly */
  13736. String typeName;
  13737. /* readonly */
  13738. uint useTimer;
  13739. /* readonly */
  13740. int weakRefs;
  13741. };
  13742. class XPathQuery
  13743. {
  13744. // Methods:
  13745. void Bind();
  13746. void Clear();
  13747. XPathResultSet Evaluate(XMLElement);
  13748. bool EvaluateToBool(XMLElement);
  13749. float EvaluateToFloat(XMLElement);
  13750. String EvaluateToString(XMLElement);
  13751. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13752. bool SetVariable(const String&, bool);
  13753. bool SetVariable(const String&, const String&);
  13754. bool SetVariable(const String&, const XPathResultSet&);
  13755. bool SetVariable(const String&, float);
  13756. // Properties:
  13757. String query;
  13758. };
  13759. class XPathResultSet
  13760. {
  13761. // Properties:
  13762. /* readonly */
  13763. bool empty;
  13764. /* readonly */
  13765. XMLElement firstResult;
  13766. /* readonly */
  13767. uint size;
  13768. };
  13769. class Zone
  13770. {
  13771. // Methods:
  13772. void ApplyAttributes();
  13773. void DrawDebugGeometry(DebugRenderer, bool);
  13774. Variant GetAttribute(const String&) const;
  13775. ValueAnimation GetAttributeAnimation(const String&) const;
  13776. float GetAttributeAnimationSpeed(const String&) const;
  13777. float GetAttributeAnimationTime(const String&) const;
  13778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13779. Variant GetAttributeDefault(const String&) const;
  13780. bool GetInterceptNetworkUpdate(const String&) const;
  13781. bool HasSubscribedToEvent(Object, const String&);
  13782. bool HasSubscribedToEvent(const String&);
  13783. bool IsInView(Camera) const;
  13784. bool Load(File, bool = false);
  13785. bool Load(VectorBuffer&, bool = false);
  13786. bool LoadJSON(const JSONValue&, bool = false);
  13787. bool LoadXML(const XMLElement&, bool = false);
  13788. void MarkNetworkUpdate() const;
  13789. void Remove();
  13790. void RemoveAttributeAnimation(const String&);
  13791. void RemoveInstanceDefault();
  13792. void RemoveObjectAnimation();
  13793. void ResetToDefault();
  13794. bool Save(File) const;
  13795. bool Save(VectorBuffer&) const;
  13796. bool SaveJSON(JSONValue&) const;
  13797. bool SaveXML(XMLElement&) const;
  13798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13799. void SetAnimationTime(float);
  13800. bool SetAttribute(const String&, const Variant&);
  13801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13802. void SetAttributeAnimationSpeed(const String&, float);
  13803. void SetAttributeAnimationTime(const String&, float);
  13804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13805. void SetInterceptNetworkUpdate(const String&, bool);
  13806. // Properties:
  13807. Color ambientColor;
  13808. /* readonly */
  13809. Color ambientEndColor;
  13810. bool ambientGradient;
  13811. /* readonly */
  13812. Color ambientStartColor;
  13813. bool animationEnabled;
  13814. /* readonly */
  13815. Array<Variant> attributeDefaults;
  13816. /* readonly */
  13817. Array<AttributeInfo> attributeInfos;
  13818. Array<Variant> attributes;
  13819. BoundingBox boundingBox;
  13820. bool castShadows;
  13821. /* readonly */
  13822. String category;
  13823. float drawDistance;
  13824. bool enabled;
  13825. /* readonly */
  13826. bool enabledEffective;
  13827. Color fogColor;
  13828. float fogEnd;
  13829. float fogHeight;
  13830. float fogHeightScale;
  13831. float fogStart;
  13832. bool heightFog;
  13833. /* readonly */
  13834. uint id;
  13835. /* readonly */
  13836. bool inView;
  13837. /* readonly */
  13838. Matrix3x4 inverseWorldTransform;
  13839. uint lightMask;
  13840. float lodBias;
  13841. uint maxLights;
  13842. /* readonly */
  13843. Node node;
  13844. /* readonly */
  13845. uint numAttributes;
  13846. ObjectAnimation objectAnimation;
  13847. bool occludee;
  13848. bool occluder;
  13849. bool override;
  13850. int priority;
  13851. /* readonly */
  13852. int refs;
  13853. float shadowDistance;
  13854. uint shadowMask;
  13855. bool temporary;
  13856. /* readonly */
  13857. StringHash type;
  13858. /* readonly */
  13859. String typeName;
  13860. uint viewMask;
  13861. /* readonly */
  13862. int weakRefs;
  13863. /* readonly */
  13864. BoundingBox worldBoundingBox;
  13865. uint zoneMask;
  13866. Texture zoneTexture;
  13867. };
  13868. // Enumerations
  13869. enum AnimationBlendMode
  13870. {
  13871. ABM_LERP,
  13872. ABM_ADDITIVE,
  13873. };
  13874. enum AutoRemoveMode
  13875. {
  13876. REMOVE_DISABLED,
  13877. REMOVE_COMPONENT,
  13878. REMOVE_NODE,
  13879. };
  13880. enum BlendMode
  13881. {
  13882. BLEND_REPLACE,
  13883. BLEND_ADD,
  13884. BLEND_MULTIPLY,
  13885. BLEND_ALPHA,
  13886. BLEND_ADDALPHA,
  13887. BLEND_PREMULALPHA,
  13888. BLEND_INVDESTALPHA,
  13889. BLEND_SUBTRACT,
  13890. BLEND_SUBTRACTALPHA,
  13891. };
  13892. enum BodyType2D
  13893. {
  13894. BT_STATIC,
  13895. BT_KINEMATIC,
  13896. BT_DYNAMIC,
  13897. };
  13898. enum CollisionEventMode
  13899. {
  13900. COLLISION_NEVER,
  13901. COLLISION_ACTIVE,
  13902. COLLISION_ALWAYS,
  13903. };
  13904. enum CompareMode
  13905. {
  13906. CMP_ALWAYS,
  13907. CMP_EQUAL,
  13908. CMP_NOTEQUAL,
  13909. CMP_LESS,
  13910. CMP_LESSEQUAL,
  13911. CMP_GREATER,
  13912. CMP_GREATEREQUAL,
  13913. };
  13914. enum CompressedFormat
  13915. {
  13916. CF_NONE,
  13917. CF_RGBA,
  13918. CF_DXT1,
  13919. CF_DXT3,
  13920. CF_DXT5,
  13921. CF_ETC1,
  13922. CF_PVRTC_RGB_2BPP,
  13923. CF_PVRTC_RGBA_2BPP,
  13924. CF_PVRTC_RGB_4BPP,
  13925. CF_PVRTC_RGBA_4BPP,
  13926. };
  13927. enum ConstraintType
  13928. {
  13929. CONSTRAINT_POINT,
  13930. CONSTRAINT_HINGE,
  13931. CONSTRAINT_SLIDER,
  13932. CONSTRAINT_CONETWIST,
  13933. };
  13934. enum Corner
  13935. {
  13936. C_TOPLEFT,
  13937. C_TOPRIGHT,
  13938. C_BOTTOMLEFT,
  13939. C_BOTTOMRIGHT,
  13940. };
  13941. enum CreateMode
  13942. {
  13943. REPLICATED,
  13944. LOCAL,
  13945. };
  13946. enum CrowdAgentRequestedTarget
  13947. {
  13948. CA_REQUESTEDTARGET_NONE,
  13949. CA_REQUESTEDTARGET_POSITION,
  13950. CA_REQUESTEDTARGET_VELOCITY,
  13951. };
  13952. enum CrowdAgentState
  13953. {
  13954. CA_STATE_INVALID,
  13955. CA_STATE_WALKING,
  13956. CA_STATE_OFFMESH,
  13957. };
  13958. enum CrowdAgentTargetState
  13959. {
  13960. CA_TARGET_NONE,
  13961. CA_TARGET_FAILED,
  13962. CA_TARGET_VALID,
  13963. CA_TARGET_REQUESTING,
  13964. CA_TARGET_WAITINGFORQUEUE,
  13965. CA_TARGET_WAITINGFORPATH,
  13966. CA_TARGET_VELOCITY,
  13967. };
  13968. enum CubeMapFace
  13969. {
  13970. FACE_POSITIVE_X,
  13971. FACE_NEGATIVE_X,
  13972. FACE_POSITIVE_Y,
  13973. FACE_NEGATIVE_Y,
  13974. FACE_POSITIVE_Z,
  13975. FACE_NEGATIVE_Z,
  13976. };
  13977. enum CullMode
  13978. {
  13979. CULL_NONE,
  13980. CULL_CCW,
  13981. CULL_CW,
  13982. };
  13983. enum CursorShape
  13984. {
  13985. CS_NORMAL,
  13986. CS_IBEAM,
  13987. CS_CROSS,
  13988. CS_RESIZEVERTICAL,
  13989. CS_RESIZEDIAGONAL_TOPRIGHT,
  13990. CS_RESIZEHORIZONTAL,
  13991. CS_RESIZEDIAGONAL_TOPLEFT,
  13992. CS_RESIZE_ALL,
  13993. CS_ACCEPTDROP,
  13994. CS_REJECTDROP,
  13995. CS_BUSY,
  13996. CS_BUSY_ARROW,
  13997. };
  13998. enum DBAPI
  13999. {
  14000. DBAPI_SQLITE,
  14001. DBAPI_ODBC,
  14002. };
  14003. enum DumpMode
  14004. {
  14005. DOXYGEN,
  14006. C_HEADER,
  14007. };
  14008. enum EmitterType
  14009. {
  14010. EMITTER_SPHERE,
  14011. EMITTER_BOX,
  14012. };
  14013. enum EmitterType2D
  14014. {
  14015. EMITTER_TYPE_GRAVITY,
  14016. EMITTER_TYPE_RADIAL,
  14017. };
  14018. enum FaceCameraMode
  14019. {
  14020. FC_NONE,
  14021. FC_ROTATE_XYZ,
  14022. FC_ROTATE_Y,
  14023. FC_LOOKAT_XYZ,
  14024. FC_LOOKAT_Y,
  14025. FC_LOOKAT_MIXED,
  14026. FC_DIRECTION,
  14027. };
  14028. enum FileMode
  14029. {
  14030. FILE_READ,
  14031. FILE_WRITE,
  14032. FILE_READWRITE,
  14033. };
  14034. enum FillMode
  14035. {
  14036. FILL_SOLID,
  14037. FILL_WIREFRAME,
  14038. FILL_POINT,
  14039. };
  14040. enum FocusMode
  14041. {
  14042. FM_NOTFOCUSABLE,
  14043. FM_RESETFOCUS,
  14044. FM_FOCUSABLE,
  14045. FM_FOCUSABLE_DEFOCUSABLE,
  14046. };
  14047. enum HighlightMode
  14048. {
  14049. HM_NEVER,
  14050. HM_FOCUS,
  14051. HM_ALWAYS,
  14052. };
  14053. enum HorizontalAlignment
  14054. {
  14055. HA_LEFT,
  14056. HA_CENTER,
  14057. HA_RIGHT,
  14058. HA_CUSTOM,
  14059. };
  14060. enum HttpRequestState
  14061. {
  14062. HTTP_INITIALIZING,
  14063. HTTP_ERROR,
  14064. HTTP_OPEN,
  14065. HTTP_CLOSED,
  14066. };
  14067. enum InterpMethod
  14068. {
  14069. IM_NONE,
  14070. IM_LINEAR,
  14071. IM_SPLINE,
  14072. };
  14073. enum InterpolationMode
  14074. {
  14075. BEZIER_CURVE,
  14076. CATMULL_ROM_CURVE,
  14077. LINEAR_CURVE,
  14078. CATMULL_ROM_FULL_CURVE,
  14079. };
  14080. enum Intersection
  14081. {
  14082. OUTSIDE,
  14083. INTERSECTS,
  14084. INSIDE,
  14085. };
  14086. enum JSONNumberType
  14087. {
  14088. JSONNT_NAN,
  14089. JSONNT_INT,
  14090. JSONNT_UINT,
  14091. JSONNT_FLOAT_DOUBLE,
  14092. };
  14093. enum JSONValueType
  14094. {
  14095. JSON_NULL,
  14096. JSON_BOOL,
  14097. JSON_NUMBER,
  14098. JSON_STRING,
  14099. JSON_ARRAY,
  14100. JSON_OBJECT,
  14101. };
  14102. enum LayoutMode
  14103. {
  14104. LM_FREE,
  14105. LM_HORIZONTAL,
  14106. LM_VERTICAL,
  14107. };
  14108. enum LightType
  14109. {
  14110. LIGHT_DIRECTIONAL,
  14111. LIGHT_SPOT,
  14112. LIGHT_POINT,
  14113. };
  14114. enum LoadMode
  14115. {
  14116. LOAD_RESOURCES_ONLY,
  14117. LOAD_SCENE,
  14118. LOAD_SCENE_AND_RESOURCES,
  14119. };
  14120. enum LoopMode2D
  14121. {
  14122. LM_DEFAULT,
  14123. LM_FORCE_LOOPED,
  14124. LM_FORCE_CLAMPED,
  14125. };
  14126. enum MouseMode
  14127. {
  14128. MM_ABSOLUTE,
  14129. MM_RELATIVE,
  14130. MM_WRAP,
  14131. MM_FREE,
  14132. };
  14133. enum NavigationPushiness
  14134. {
  14135. NAVIGATIONPUSHINESS_LOW,
  14136. NAVIGATIONPUSHINESS_MEDIUM,
  14137. NAVIGATIONPUSHINESS_HIGH,
  14138. NAVIGATIONPUSHINESS_NONE,
  14139. };
  14140. enum NavigationQuality
  14141. {
  14142. NAVIGATIONQUALITY_LOW,
  14143. NAVIGATIONQUALITY_MEDIUM,
  14144. NAVIGATIONQUALITY_HIGH,
  14145. };
  14146. enum NavmeshPartitionType
  14147. {
  14148. NAVMESH_PARTITION_WATERSHED,
  14149. NAVMESH_PARTITION_MONOTONE,
  14150. };
  14151. enum Orientation
  14152. {
  14153. O_HORIZONTAL,
  14154. O_VERTICAL,
  14155. };
  14156. enum Orientation2D
  14157. {
  14158. O_ORTHOGONAL,
  14159. O_ISOMETRIC,
  14160. O_STAGGERED,
  14161. O_HEXAGONAL,
  14162. };
  14163. enum PassLightingMode
  14164. {
  14165. LIGHTING_UNLIT,
  14166. LIGHTING_PERVERTEX,
  14167. LIGHTING_PERPIXEL,
  14168. };
  14169. enum PrimitiveType
  14170. {
  14171. TRIANGLE_LIST,
  14172. LINE_LIST,
  14173. POINT_LIST,
  14174. TRIANGLE_STRIP,
  14175. LINE_STRIP,
  14176. TRIANGLE_FAN,
  14177. };
  14178. enum RayQueryLevel
  14179. {
  14180. RAY_AABB,
  14181. RAY_OBB,
  14182. RAY_TRIANGLE,
  14183. RAY_TRIANGLE_UV,
  14184. };
  14185. enum RenderCommandSortMode
  14186. {
  14187. SORT_FRONTTOBACK,
  14188. SORT_BACKTOFRONT,
  14189. };
  14190. enum RenderCommandType
  14191. {
  14192. CMD_NONE,
  14193. CMD_CLEAR,
  14194. CMD_SCENEPASS,
  14195. CMD_QUAD,
  14196. CMD_FORWARDLIGHTS,
  14197. CMD_LIGHTVOLUMES,
  14198. CMD_RENDERUI,
  14199. CMD_SENDEVENT,
  14200. };
  14201. enum RenderSurfaceUpdateMode
  14202. {
  14203. SURFACE_MANUALUPDATE,
  14204. SURFACE_UPDATEVISIBLE,
  14205. SURFACE_UPDATEALWAYS,
  14206. };
  14207. enum RenderTargetSizeMode
  14208. {
  14209. SIZE_ABSOLUTE,
  14210. SIZE_VIEWPORTDIVISOR,
  14211. SIZE_VIEWPORTMULTIPLIER,
  14212. };
  14213. enum ShadowQuality
  14214. {
  14215. SHADOWQUALITY_SIMPLE_16BIT,
  14216. SHADOWQUALITY_SIMPLE_24BIT,
  14217. SHADOWQUALITY_PCF_16BIT,
  14218. SHADOWQUALITY_PCF_24BIT,
  14219. SHADOWQUALITY_VSM,
  14220. SHADOWQUALITY_BLUR_VSM,
  14221. };
  14222. enum ShapeType
  14223. {
  14224. SHAPE_BOX,
  14225. SHAPE_SPHERE,
  14226. SHAPE_STATICPLANE,
  14227. SHAPE_CYLINDER,
  14228. SHAPE_CAPSULE,
  14229. SHAPE_CONE,
  14230. SHAPE_TRIANGLEMESH,
  14231. SHAPE_CONVEXHULL,
  14232. SHAPE_TERRAIN,
  14233. };
  14234. enum TextEffect
  14235. {
  14236. TE_NONE,
  14237. TE_SHADOW,
  14238. TE_STROKE,
  14239. };
  14240. enum TextureAddressMode
  14241. {
  14242. ADDRESS_WRAP,
  14243. ADDRESS_MIRROR,
  14244. ADDRESS_CLAMP,
  14245. ADDRESS_BORDER,
  14246. };
  14247. enum TextureCoordinate
  14248. {
  14249. COORD_U,
  14250. COORD_V,
  14251. COORD_W,
  14252. };
  14253. enum TextureFilterMode
  14254. {
  14255. FILTER_NEAREST,
  14256. FILTER_BILINEAR,
  14257. FILTER_TRILINEAR,
  14258. FILTER_ANISOTROPIC,
  14259. FILTER_DEFAULT,
  14260. };
  14261. enum TextureUnit
  14262. {
  14263. TU_DIFFUSE,
  14264. TU_ALBEDOBUFFER,
  14265. TU_NORMAL,
  14266. TU_NORMALBUFFER,
  14267. TU_SPECULAR,
  14268. TU_EMISSIVE,
  14269. TU_ENVIRONMENT,
  14270. TU_LIGHTRAMP,
  14271. TU_LIGHTSHAPE,
  14272. TU_SHADOWMAP,
  14273. TU_CUSTOM1,
  14274. TU_CUSTOM2,
  14275. TU_VOLUMEMAP,
  14276. TU_FACESELECT,
  14277. TU_INDIRECTION,
  14278. TU_DEPTHBUFFER,
  14279. TU_LIGHTBUFFER,
  14280. TU_ZONE,
  14281. MAX_MATERIAL_TEXTURE_UNITS,
  14282. MAX_TEXTURE_UNITS,
  14283. };
  14284. enum TextureUsage
  14285. {
  14286. TEXTURE_STATIC,
  14287. TEXTURE_DYNAMIC,
  14288. TEXTURE_RENDERTARGET,
  14289. TEXTURE_DEPTHSTENCIL,
  14290. };
  14291. enum TileMapLayerType2D
  14292. {
  14293. LT_TILE_LAYER,
  14294. LT_OBJECT_GROUP,
  14295. LT_IMAGE_LAYER,
  14296. LT_INVALID,
  14297. };
  14298. enum TileObjectType2D
  14299. {
  14300. OT_RECTANGLE,
  14301. OT_ELLIPSE,
  14302. OT_POLYGON,
  14303. OT_POLYLINE,
  14304. OT_TILE,
  14305. OT_INVALID,
  14306. };
  14307. enum TrailType
  14308. {
  14309. TT_FACE_CAMERA,
  14310. TT_BONE,
  14311. };
  14312. enum TransformSpace
  14313. {
  14314. TS_LOCAL,
  14315. TS_PARENT,
  14316. TS_WORLD,
  14317. };
  14318. enum TraversalMode
  14319. {
  14320. TM_BREADTH_FIRST,
  14321. TM_DEPTH_FIRST,
  14322. };
  14323. enum VariantType
  14324. {
  14325. VAR_NONE,
  14326. VAR_INT,
  14327. VAR_BOOL,
  14328. VAR_FLOAT,
  14329. VAR_VECTOR2,
  14330. VAR_VECTOR3,
  14331. VAR_VECTOR4,
  14332. VAR_QUATERNION,
  14333. VAR_COLOR,
  14334. VAR_STRING,
  14335. VAR_BUFFER,
  14336. VAR_VOIDPTR,
  14337. VAR_RESOURCEREF,
  14338. VAR_RESOURCEREFLIST,
  14339. VAR_VARIANTVECTOR,
  14340. VAR_VARIANTMAP,
  14341. VAR_INTRECT,
  14342. VAR_INTVECTOR2,
  14343. VAR_PTR,
  14344. VAR_MATRIX3,
  14345. VAR_MATRIX3X4,
  14346. VAR_MATRIX4,
  14347. VAR_DOUBLE,
  14348. VAR_STRINGVECTOR,
  14349. VAR_RECT,
  14350. };
  14351. enum VertexElementSemantic
  14352. {
  14353. SEM_POSITION,
  14354. SEM_NORMAL,
  14355. SEM_BINORMAL,
  14356. SEM_TANGENT,
  14357. SEM_TEXCOORD,
  14358. SEM_COLOR,
  14359. SEM_BLENDWEIGHTS,
  14360. SEM_BLENDINDICES,
  14361. SEM_OBJECTINDEX,
  14362. MAX_VERTEX_ELEMENT_SEMANTICS,
  14363. };
  14364. enum VertexElementType
  14365. {
  14366. TYPE_INT,
  14367. TYPE_FLOAT,
  14368. TYPE_VECTOR2,
  14369. TYPE_VECTOR3,
  14370. TYPE_VECTOR4,
  14371. TYPE_UBYTE4,
  14372. TYPE_UBYTE4_NORM,
  14373. MAX_VERTEX_ELEMENT_TYPES,
  14374. };
  14375. enum VerticalAlignment
  14376. {
  14377. VA_TOP,
  14378. VA_CENTER,
  14379. VA_BOTTOM,
  14380. VA_CUSTOM,
  14381. };
  14382. enum WrapMode
  14383. {
  14384. WM_LOOP,
  14385. WM_ONCE,
  14386. WM_CLAMP,
  14387. };
  14388. // Global functions
  14389. float Abs(float);
  14390. float Acos(float);
  14391. String AddTrailingSlash(const String&);
  14392. float Asin(float);
  14393. float Atan(float);
  14394. float Atan2(float, float);
  14395. float Ceil(float);
  14396. int CeilToInt(float);
  14397. float Clamp(float, float, float);
  14398. int Clamp(int, int, int);
  14399. void ClearDelayedExecute(const String& = String ( ));
  14400. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14401. float Cos(float);
  14402. uint CountSetBits(uint);
  14403. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14404. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14405. bool Equals(float, float);
  14406. void ErrorDialog(const String&, const String&);
  14407. float Floor(float);
  14408. int FloorToInt(float);
  14409. float Fract(float);
  14410. uint GetAlphaFormat();
  14411. Array<String> GetArguments();
  14412. String GetConsoleInput();
  14413. uint GetDepthStencilFormat();
  14414. Object GetEventSender();
  14415. String GetExtension(const String&, bool = true);
  14416. String GetFileName(const String&);
  14417. String GetFileNameAndExtension(const String&, bool = false);
  14418. String GetFileSizeString(uint64);
  14419. uint GetFloat16Format();
  14420. uint GetFloat32Format();
  14421. uint GetFormat(const String&);
  14422. Variant GetGlobalVar(const String&);
  14423. String GetInternalPath(const String&);
  14424. uint GetLinearDepthFormat();
  14425. uint GetLuminanceAlphaFormat();
  14426. uint GetLuminanceFormat();
  14427. uint GetMaxBones();
  14428. String GetMiniDumpDir();
  14429. uint GetNumLogicalCPUs();
  14430. uint GetNumPhysicalCPUs();
  14431. Array<String> GetObjectCategories();
  14432. Array<String> GetObjectsByCategory(const String&);
  14433. String GetParentPath(const String&);
  14434. String GetPath(const String&);
  14435. String GetPlatform();
  14436. uint GetRG16Format();
  14437. uint GetRGBA16Format();
  14438. uint GetRGBAFloat16Format();
  14439. uint GetRGBAFloat32Format();
  14440. uint GetRGBAFormat();
  14441. uint GetRGBFormat();
  14442. uint GetRGFloat16Format();
  14443. uint GetRGFloat32Format();
  14444. uint GetRandomSeed();
  14445. uint GetReadableDepthFormat();
  14446. String GetTextureUnitName(TextureUnit);
  14447. bool HasSubscribedToEvent(Object, const String&);
  14448. bool HasSubscribedToEvent(const String&);
  14449. float InverseLerp(float, float, float);
  14450. bool IsAbsolutePath(const String&);
  14451. bool IsAlpha(uint);
  14452. bool IsDigit(uint);
  14453. bool IsNaN(float);
  14454. bool IsPowerOfTwo(uint);
  14455. String Join(Array<String>&, const String&);
  14456. float Lerp(float, float, float);
  14457. float Ln(float);
  14458. void MarkNetworkUpdate();
  14459. float Max(float, float);
  14460. int Max(int, int);
  14461. float Min(float, float);
  14462. int Min(int, int);
  14463. float Mod(float, float);
  14464. uint NextPowerOfTwo(uint);
  14465. void OpenConsoleWindow();
  14466. float Pow(float, float);
  14467. void Print(bool, bool = false);
  14468. void Print(const String&, bool = false);
  14469. void Print(const Variant&, bool = false);
  14470. void Print(float, bool = false);
  14471. void Print(int, bool = false);
  14472. void Print(uint, bool = false);
  14473. void PrintCallStack(bool = false);
  14474. float Random();
  14475. float Random(float);
  14476. float Random(float, float);
  14477. int RandomInt();
  14478. int RandomInt(int);
  14479. int RandomInt(int, int);
  14480. float RandomNormal(float, float);
  14481. void RegisterEventName(const String&);
  14482. void Remove();
  14483. String RemoveTrailingSlash(const String&);
  14484. String ReplaceExtension(const String&, const String&);
  14485. float Round(float);
  14486. int RoundToInt(float);
  14487. uint SDBMHash(uint, uint8);
  14488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14489. void SetGlobalVar(const String&, Variant&);
  14490. void SetMiniDumpDir(const String&);
  14491. void SetRandomSeed(uint);
  14492. float Sign(float);
  14493. float Sin(float);
  14494. float SmoothStep(float, float, float);
  14495. float Sqrt(float);
  14496. float StableRandom(const Vector2&);
  14497. float StableRandom(const Vector3&);
  14498. float StableRandom(float);
  14499. const String& GetTypeName(StringHash);
  14500. void SubscribeToEvent(Object, const String&, const String&);
  14501. void SubscribeToEvent(const String&, const String&);
  14502. float Tan(float);
  14503. uint ToLower(uint);
  14504. String ToStringHex(int);
  14505. uint ToUpper(uint);
  14506. void UnsubscribeFromAllEvents();
  14507. void UnsubscribeFromAllEventsExcept(Array<String>);
  14508. void UnsubscribeFromEvent(Object, const String&);
  14509. void UnsubscribeFromEvent(const String&);
  14510. void UnsubscribeFromEvents(Object);
  14511. Vector2 VectorCeil(const Vector2&);
  14512. Vector3 VectorCeil(const Vector3&);
  14513. Vector4 VectorCeil(const Vector4&);
  14514. IntVector2 VectorCeilToInt(const Vector2&);
  14515. Vector2 VectorFloor(const Vector2&);
  14516. Vector3 VectorFloor(const Vector3&);
  14517. Vector4 VectorFloor(const Vector4&);
  14518. IntVector2 VectorFloorToInt(const Vector2&);
  14519. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  14520. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  14521. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  14522. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  14523. Vector2 VectorMax(const Vector2&, const Vector2&);
  14524. Vector3 VectorMax(const Vector3&, const Vector3&);
  14525. Vector4 VectorMax(const Vector4&, const Vector4&);
  14526. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  14527. Vector2 VectorMin(const Vector2&, const Vector2&);
  14528. Vector3 VectorMin(const Vector3&, const Vector3&);
  14529. Vector4 VectorMin(const Vector4&, const Vector4&);
  14530. Vector2 VectorRound(const Vector2&);
  14531. Vector3 VectorRound(const Vector3&);
  14532. Vector4 VectorRound(const Vector4&);
  14533. IntVector2 VectorRoundToInt(const Vector2&);
  14534. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14535. // Global properties
  14536. DBAPI DBAPI;
  14537. Audio audio;
  14538. ResourceCache cache;
  14539. Console console;
  14540. Database database;
  14541. DebugHud debugHud;
  14542. DebugRenderer debugRenderer;
  14543. Engine engine;
  14544. FileSystem fileSystem;
  14545. VariantMap globalVars;
  14546. Graphics graphics;
  14547. Input input;
  14548. Localization localization;
  14549. Log log;
  14550. Network network;
  14551. Node node;
  14552. Octree octree;
  14553. PhysicsWorld physicsWorld;
  14554. PhysicsWorld2D physicsWorld2D;
  14555. Renderer renderer;
  14556. ResourceCache resourceCache;
  14557. Scene scene;
  14558. Script script;
  14559. ScriptFile scriptFile;
  14560. ScriptInstance self;
  14561. Time time;
  14562. UI ui;
  14563. // Global constants
  14564. uint AM_COMPONENTID;
  14565. uint AM_DEFAULT;
  14566. uint AM_FILE;
  14567. uint AM_FILEREADONLY;
  14568. uint AM_LATESTDATA;
  14569. uint AM_NET;
  14570. uint AM_NODEID;
  14571. uint AM_NODEIDVECTOR;
  14572. uint AM_NOEDIT;
  14573. Color BLACK;
  14574. Color BLUE;
  14575. uint8 CHANNEL_POSITION;
  14576. uint8 CHANNEL_ROTATION;
  14577. uint8 CHANNEL_SCALE;
  14578. uint CLEAR_COLOR;
  14579. uint CLEAR_DEPTH;
  14580. uint CLEAR_STENCIL;
  14581. int CONTROLLER_AXIS_LEFTX;
  14582. int CONTROLLER_AXIS_LEFTY;
  14583. int CONTROLLER_AXIS_RIGHTX;
  14584. int CONTROLLER_AXIS_RIGHTY;
  14585. int CONTROLLER_AXIS_TRIGGERLEFT;
  14586. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14587. int CONTROLLER_BUTTON_A;
  14588. int CONTROLLER_BUTTON_B;
  14589. int CONTROLLER_BUTTON_BACK;
  14590. int CONTROLLER_BUTTON_DPAD_DOWN;
  14591. int CONTROLLER_BUTTON_DPAD_LEFT;
  14592. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14593. int CONTROLLER_BUTTON_DPAD_UP;
  14594. int CONTROLLER_BUTTON_GUIDE;
  14595. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14596. int CONTROLLER_BUTTON_LEFTSTICK;
  14597. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14598. int CONTROLLER_BUTTON_RIGHTSTICK;
  14599. int CONTROLLER_BUTTON_START;
  14600. int CONTROLLER_BUTTON_X;
  14601. int CONTROLLER_BUTTON_Y;
  14602. Color CYAN;
  14603. uint DD_DISABLED;
  14604. uint DD_SOURCE;
  14605. uint DD_SOURCE_AND_TARGET;
  14606. uint DD_TARGET;
  14607. uint DEBUGHUD_SHOW_ALL;
  14608. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14609. uint DEBUGHUD_SHOW_MEMORY;
  14610. uint DEBUGHUD_SHOW_MODE;
  14611. uint DEBUGHUD_SHOW_NONE;
  14612. uint DEBUGHUD_SHOW_PROFILER;
  14613. uint DEBUGHUD_SHOW_STATS;
  14614. uint DEFAULT_LIGHTMASK;
  14615. uint DEFAULT_VIEWMASK;
  14616. uint DRAWABLE_ANY;
  14617. uint DRAWABLE_GEOMETRY;
  14618. uint DRAWABLE_GEOMETRY2D;
  14619. uint DRAWABLE_LIGHT;
  14620. uint DRAWABLE_ZONE;
  14621. uint FIRST_LOCAL_ID;
  14622. uint FIRST_REPLICATED_ID;
  14623. Color GRAY;
  14624. Color GREEN;
  14625. int HAT_CENTER;
  14626. int HAT_DOWN;
  14627. int HAT_LEFT;
  14628. int HAT_RIGHT;
  14629. int HAT_UP;
  14630. int KEY_0;
  14631. int KEY_1;
  14632. int KEY_2;
  14633. int KEY_3;
  14634. int KEY_4;
  14635. int KEY_5;
  14636. int KEY_6;
  14637. int KEY_7;
  14638. int KEY_8;
  14639. int KEY_9;
  14640. int KEY_A;
  14641. int KEY_ALT;
  14642. int KEY_APPLICATION;
  14643. int KEY_B;
  14644. int KEY_BACKSPACE;
  14645. int KEY_C;
  14646. int KEY_CAPSLOCK;
  14647. int KEY_CTRL;
  14648. int KEY_D;
  14649. int KEY_DELETE;
  14650. int KEY_DOWN;
  14651. int KEY_E;
  14652. int KEY_END;
  14653. int KEY_ESCAPE;
  14654. int KEY_F;
  14655. int KEY_F1;
  14656. int KEY_F10;
  14657. int KEY_F11;
  14658. int KEY_F12;
  14659. int KEY_F13;
  14660. int KEY_F14;
  14661. int KEY_F15;
  14662. int KEY_F16;
  14663. int KEY_F17;
  14664. int KEY_F18;
  14665. int KEY_F19;
  14666. int KEY_F2;
  14667. int KEY_F20;
  14668. int KEY_F21;
  14669. int KEY_F22;
  14670. int KEY_F23;
  14671. int KEY_F24;
  14672. int KEY_F3;
  14673. int KEY_F4;
  14674. int KEY_F5;
  14675. int KEY_F6;
  14676. int KEY_F7;
  14677. int KEY_F8;
  14678. int KEY_F9;
  14679. int KEY_G;
  14680. int KEY_GUI;
  14681. int KEY_H;
  14682. int KEY_HOME;
  14683. int KEY_I;
  14684. int KEY_INSERT;
  14685. int KEY_J;
  14686. int KEY_K;
  14687. int KEY_KP_0;
  14688. int KEY_KP_1;
  14689. int KEY_KP_2;
  14690. int KEY_KP_3;
  14691. int KEY_KP_4;
  14692. int KEY_KP_5;
  14693. int KEY_KP_6;
  14694. int KEY_KP_7;
  14695. int KEY_KP_8;
  14696. int KEY_KP_9;
  14697. int KEY_KP_DIVIDE;
  14698. int KEY_KP_ENTER;
  14699. int KEY_KP_MINUS;
  14700. int KEY_KP_MULTIPLY;
  14701. int KEY_KP_PERIOD;
  14702. int KEY_KP_PLUS;
  14703. int KEY_L;
  14704. int KEY_LALT;
  14705. int KEY_LCTRL;
  14706. int KEY_LEFT;
  14707. int KEY_LGUI;
  14708. int KEY_LSHIFT;
  14709. int KEY_M;
  14710. int KEY_N;
  14711. int KEY_NUMLOCKCLEAR;
  14712. int KEY_O;
  14713. int KEY_P;
  14714. int KEY_PAGEDOWN;
  14715. int KEY_PAGEUP;
  14716. int KEY_PAUSE;
  14717. int KEY_PRINTSCREEN;
  14718. int KEY_Q;
  14719. int KEY_R;
  14720. int KEY_RALT;
  14721. int KEY_RCTRL;
  14722. int KEY_RETURN;
  14723. int KEY_RETURN2;
  14724. int KEY_RGUI;
  14725. int KEY_RIGHT;
  14726. int KEY_RSHIFT;
  14727. int KEY_S;
  14728. int KEY_SCROLLLOCK;
  14729. int KEY_SELECT;
  14730. int KEY_SHIFT;
  14731. int KEY_SPACE;
  14732. int KEY_T;
  14733. int KEY_TAB;
  14734. int KEY_U;
  14735. int KEY_UNKNOWN;
  14736. int KEY_UP;
  14737. int KEY_V;
  14738. int KEY_W;
  14739. int KEY_X;
  14740. int KEY_Y;
  14741. int KEY_Z;
  14742. uint LAST_LOCAL_ID;
  14743. uint LAST_REPLICATED_ID;
  14744. int LOG_DEBUG;
  14745. int LOG_ERROR;
  14746. int LOG_INFO;
  14747. int LOG_NONE;
  14748. int LOG_WARNING;
  14749. Color MAGENTA;
  14750. uint MASK_BLENDINDICES;
  14751. uint MASK_BLENDWEIGHTS;
  14752. uint MASK_COLOR;
  14753. uint MASK_CUBETEXCOORD1;
  14754. uint MASK_CUBETEXCOORD2;
  14755. uint MASK_INSTANCEMATRIX1;
  14756. uint MASK_INSTANCEMATRIX2;
  14757. uint MASK_INSTANCEMATRIX3;
  14758. uint MASK_NONE;
  14759. uint MASK_NORMAL;
  14760. uint MASK_OBJECTINDEX;
  14761. uint MASK_POSITION;
  14762. uint MASK_TANGENT;
  14763. uint MASK_TEXCOORD1;
  14764. uint MASK_TEXCOORD2;
  14765. int MOUSEB_LEFT;
  14766. int MOUSEB_MIDDLE;
  14767. int MOUSEB_RIGHT;
  14768. float M_DEGTORAD;
  14769. float M_DEGTORAD_2;
  14770. float M_EPSILON;
  14771. float M_HALF_PI;
  14772. float M_INFINITY;
  14773. float M_LARGE_EPSILON;
  14774. float M_LARGE_VALUE;
  14775. int M_MAX_INT;
  14776. uint M_MAX_UNSIGNED;
  14777. int M_MIN_INT;
  14778. uint M_MIN_UNSIGNED;
  14779. float M_PI;
  14780. float M_RADTODEG;
  14781. uint NPOS;
  14782. float PIXEL_SIZE;
  14783. int QUALITY_HIGH;
  14784. int QUALITY_LOW;
  14785. int QUALITY_MAX;
  14786. int QUALITY_MEDIUM;
  14787. int QUAL_ALT;
  14788. int QUAL_ANY;
  14789. int QUAL_CTRL;
  14790. int QUAL_SHIFT;
  14791. Color RED;
  14792. int SCANCODE_0;
  14793. int SCANCODE_1;
  14794. int SCANCODE_2;
  14795. int SCANCODE_3;
  14796. int SCANCODE_4;
  14797. int SCANCODE_5;
  14798. int SCANCODE_6;
  14799. int SCANCODE_7;
  14800. int SCANCODE_8;
  14801. int SCANCODE_9;
  14802. int SCANCODE_A;
  14803. int SCANCODE_AC_BACK;
  14804. int SCANCODE_AC_BOOKMARKS;
  14805. int SCANCODE_AC_FORWARD;
  14806. int SCANCODE_AC_HOME;
  14807. int SCANCODE_AC_REFRESH;
  14808. int SCANCODE_AC_SEARCH;
  14809. int SCANCODE_AC_STOP;
  14810. int SCANCODE_AGAIN;
  14811. int SCANCODE_ALT;
  14812. int SCANCODE_ALTERASE;
  14813. int SCANCODE_APOSTROPHE;
  14814. int SCANCODE_APP1;
  14815. int SCANCODE_APP2;
  14816. int SCANCODE_APPLICATION;
  14817. int SCANCODE_AUDIOMUTE;
  14818. int SCANCODE_AUDIONEXT;
  14819. int SCANCODE_AUDIOPLAY;
  14820. int SCANCODE_AUDIOPREV;
  14821. int SCANCODE_AUDIOSTOP;
  14822. int SCANCODE_B;
  14823. int SCANCODE_BACKSLASH;
  14824. int SCANCODE_BACKSPACE;
  14825. int SCANCODE_BRIGHTNESSDOWN;
  14826. int SCANCODE_BRIGHTNESSUP;
  14827. int SCANCODE_C;
  14828. int SCANCODE_CALCULATOR;
  14829. int SCANCODE_CANCEL;
  14830. int SCANCODE_CAPSLOCK;
  14831. int SCANCODE_CLEAR;
  14832. int SCANCODE_CLEARAGAIN;
  14833. int SCANCODE_COMMA;
  14834. int SCANCODE_COMPUTER;
  14835. int SCANCODE_COPY;
  14836. int SCANCODE_CRSEL;
  14837. int SCANCODE_CTRL;
  14838. int SCANCODE_CURRENCYSUBUNIT;
  14839. int SCANCODE_CURRENCYUNIT;
  14840. int SCANCODE_CUT;
  14841. int SCANCODE_D;
  14842. int SCANCODE_DECIMALSEPARATOR;
  14843. int SCANCODE_DELETE;
  14844. int SCANCODE_DISPLAYSWITCH;
  14845. int SCANCODE_DOWN;
  14846. int SCANCODE_E;
  14847. int SCANCODE_EJECT;
  14848. int SCANCODE_END;
  14849. int SCANCODE_EQUALS;
  14850. int SCANCODE_ESCAPE;
  14851. int SCANCODE_EXECUTE;
  14852. int SCANCODE_EXSEL;
  14853. int SCANCODE_F;
  14854. int SCANCODE_F1;
  14855. int SCANCODE_F10;
  14856. int SCANCODE_F11;
  14857. int SCANCODE_F12;
  14858. int SCANCODE_F13;
  14859. int SCANCODE_F14;
  14860. int SCANCODE_F15;
  14861. int SCANCODE_F16;
  14862. int SCANCODE_F17;
  14863. int SCANCODE_F18;
  14864. int SCANCODE_F19;
  14865. int SCANCODE_F2;
  14866. int SCANCODE_F20;
  14867. int SCANCODE_F21;
  14868. int SCANCODE_F22;
  14869. int SCANCODE_F23;
  14870. int SCANCODE_F24;
  14871. int SCANCODE_F3;
  14872. int SCANCODE_F4;
  14873. int SCANCODE_F5;
  14874. int SCANCODE_F6;
  14875. int SCANCODE_F7;
  14876. int SCANCODE_F8;
  14877. int SCANCODE_F9;
  14878. int SCANCODE_FIND;
  14879. int SCANCODE_G;
  14880. int SCANCODE_GRAVE;
  14881. int SCANCODE_GUI;
  14882. int SCANCODE_H;
  14883. int SCANCODE_HELP;
  14884. int SCANCODE_HOME;
  14885. int SCANCODE_I;
  14886. int SCANCODE_INSERT;
  14887. int SCANCODE_INTERNATIONAL1;
  14888. int SCANCODE_INTERNATIONAL2;
  14889. int SCANCODE_INTERNATIONAL3;
  14890. int SCANCODE_INTERNATIONAL4;
  14891. int SCANCODE_INTERNATIONAL5;
  14892. int SCANCODE_INTERNATIONAL6;
  14893. int SCANCODE_INTERNATIONAL7;
  14894. int SCANCODE_INTERNATIONAL8;
  14895. int SCANCODE_INTERNATIONAL9;
  14896. int SCANCODE_J;
  14897. int SCANCODE_K;
  14898. int SCANCODE_KBDILLUMDOWN;
  14899. int SCANCODE_KBDILLUMTOGGLE;
  14900. int SCANCODE_KBDILLUMUP;
  14901. int SCANCODE_KP_0;
  14902. int SCANCODE_KP_00;
  14903. int SCANCODE_KP_000;
  14904. int SCANCODE_KP_1;
  14905. int SCANCODE_KP_2;
  14906. int SCANCODE_KP_3;
  14907. int SCANCODE_KP_4;
  14908. int SCANCODE_KP_5;
  14909. int SCANCODE_KP_6;
  14910. int SCANCODE_KP_7;
  14911. int SCANCODE_KP_8;
  14912. int SCANCODE_KP_9;
  14913. int SCANCODE_KP_A;
  14914. int SCANCODE_KP_AMPERSAND;
  14915. int SCANCODE_KP_AT;
  14916. int SCANCODE_KP_B;
  14917. int SCANCODE_KP_BACKSPACE;
  14918. int SCANCODE_KP_BINARY;
  14919. int SCANCODE_KP_C;
  14920. int SCANCODE_KP_CLEAR;
  14921. int SCANCODE_KP_CLEARENTRY;
  14922. int SCANCODE_KP_COLON;
  14923. int SCANCODE_KP_COMMA;
  14924. int SCANCODE_KP_D;
  14925. int SCANCODE_KP_DBLAMPERSAND;
  14926. int SCANCODE_KP_DBLVERTICALBAR;
  14927. int SCANCODE_KP_DECIMAL;
  14928. int SCANCODE_KP_DIVIDE;
  14929. int SCANCODE_KP_E;
  14930. int SCANCODE_KP_ENTER;
  14931. int SCANCODE_KP_EQUALS;
  14932. int SCANCODE_KP_EQUALSAS400;
  14933. int SCANCODE_KP_EXCLAM;
  14934. int SCANCODE_KP_F;
  14935. int SCANCODE_KP_GREATER;
  14936. int SCANCODE_KP_HASH;
  14937. int SCANCODE_KP_HEXADECIMAL;
  14938. int SCANCODE_KP_LEFTBRACE;
  14939. int SCANCODE_KP_LEFTPAREN;
  14940. int SCANCODE_KP_LESS;
  14941. int SCANCODE_KP_MEMADD;
  14942. int SCANCODE_KP_MEMCLEAR;
  14943. int SCANCODE_KP_MEMDIVIDE;
  14944. int SCANCODE_KP_MEMMULTIPLY;
  14945. int SCANCODE_KP_MEMRECALL;
  14946. int SCANCODE_KP_MEMSTORE;
  14947. int SCANCODE_KP_MEMSUBTRACT;
  14948. int SCANCODE_KP_MINUS;
  14949. int SCANCODE_KP_MULTIPLY;
  14950. int SCANCODE_KP_OCTAL;
  14951. int SCANCODE_KP_PERCENT;
  14952. int SCANCODE_KP_PERIOD;
  14953. int SCANCODE_KP_PLUS;
  14954. int SCANCODE_KP_PLUSMINUS;
  14955. int SCANCODE_KP_POWER;
  14956. int SCANCODE_KP_RIGHTBRACE;
  14957. int SCANCODE_KP_RIGHTPAREN;
  14958. int SCANCODE_KP_SPACE;
  14959. int SCANCODE_KP_TAB;
  14960. int SCANCODE_KP_VERTICALBAR;
  14961. int SCANCODE_KP_XOR;
  14962. int SCANCODE_L;
  14963. int SCANCODE_LALT;
  14964. int SCANCODE_LANG1;
  14965. int SCANCODE_LANG2;
  14966. int SCANCODE_LANG3;
  14967. int SCANCODE_LANG4;
  14968. int SCANCODE_LANG5;
  14969. int SCANCODE_LANG6;
  14970. int SCANCODE_LANG7;
  14971. int SCANCODE_LANG8;
  14972. int SCANCODE_LANG9;
  14973. int SCANCODE_LCTRL;
  14974. int SCANCODE_LEFT;
  14975. int SCANCODE_LEFTBRACKET;
  14976. int SCANCODE_LGUI;
  14977. int SCANCODE_LSHIFT;
  14978. int SCANCODE_M;
  14979. int SCANCODE_MAIL;
  14980. int SCANCODE_MEDIASELECT;
  14981. int SCANCODE_MENU;
  14982. int SCANCODE_MINUS;
  14983. int SCANCODE_MODE;
  14984. int SCANCODE_MUTE;
  14985. int SCANCODE_N;
  14986. int SCANCODE_NONUSBACKSLASH;
  14987. int SCANCODE_NONUSHASH;
  14988. int SCANCODE_NUMLOCKCLEAR;
  14989. int SCANCODE_O;
  14990. int SCANCODE_OPER;
  14991. int SCANCODE_OUT;
  14992. int SCANCODE_P;
  14993. int SCANCODE_PAGEDOWN;
  14994. int SCANCODE_PAGEUP;
  14995. int SCANCODE_PASTE;
  14996. int SCANCODE_PAUSE;
  14997. int SCANCODE_PERIOD;
  14998. int SCANCODE_POWER;
  14999. int SCANCODE_PRINTSCREEN;
  15000. int SCANCODE_PRIOR;
  15001. int SCANCODE_Q;
  15002. int SCANCODE_R;
  15003. int SCANCODE_RALT;
  15004. int SCANCODE_RCTRL;
  15005. int SCANCODE_RETURN;
  15006. int SCANCODE_RETURN2;
  15007. int SCANCODE_RGUI;
  15008. int SCANCODE_RIGHT;
  15009. int SCANCODE_RIGHTBRACKET;
  15010. int SCANCODE_RSHIFT;
  15011. int SCANCODE_S;
  15012. int SCANCODE_SCROLLLOCK;
  15013. int SCANCODE_SELECT;
  15014. int SCANCODE_SEMICOLON;
  15015. int SCANCODE_SEPARATOR;
  15016. int SCANCODE_SHIFT;
  15017. int SCANCODE_SLASH;
  15018. int SCANCODE_SLEEP;
  15019. int SCANCODE_SPACE;
  15020. int SCANCODE_STOP;
  15021. int SCANCODE_SYSREQ;
  15022. int SCANCODE_T;
  15023. int SCANCODE_TAB;
  15024. int SCANCODE_THOUSANDSSEPARATOR;
  15025. int SCANCODE_U;
  15026. int SCANCODE_UNDO;
  15027. int SCANCODE_UNKNOWN;
  15028. int SCANCODE_UP;
  15029. int SCANCODE_V;
  15030. int SCANCODE_VOLUMEDOWN;
  15031. int SCANCODE_VOLUMEUP;
  15032. int SCANCODE_W;
  15033. int SCANCODE_WWW;
  15034. int SCANCODE_X;
  15035. int SCANCODE_Y;
  15036. int SCANCODE_Z;
  15037. uint SCAN_DIRS;
  15038. uint SCAN_FILES;
  15039. uint SCAN_HIDDEN;
  15040. String SOUND_AMBIENT;
  15041. String SOUND_EFFECT;
  15042. String SOUND_MASTER;
  15043. String SOUND_MUSIC;
  15044. String SOUND_VOICE;
  15045. Color TRANSPARENT;
  15046. uint VO_DISABLE_OCCLUSION;
  15047. uint VO_DISABLE_SHADOWS;
  15048. uint VO_LOW_MATERIAL_QUALITY;
  15049. uint VO_NONE;
  15050. Color WHITE;
  15051. Color YELLOW;