AngelScriptAPI.h 360 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526
  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. // Properties:
  116. bool animationEnabled;
  117. float animationLodBias;
  118. /* readonly */
  119. Array<AnimationState> animationStates;
  120. /* readonly */
  121. Array<Variant> attributeDefaults;
  122. /* readonly */
  123. Array<AttributeInfo> attributeInfos;
  124. Array<Variant> attributes;
  125. /* readonly */
  126. BoundingBox boundingBox;
  127. bool castShadows;
  128. /* readonly */
  129. String category;
  130. float drawDistance;
  131. bool enabled;
  132. /* readonly */
  133. bool enabledEffective;
  134. /* readonly */
  135. uint id;
  136. /* readonly */
  137. bool inView;
  138. uint lightMask;
  139. float lodBias;
  140. /* writeonly */
  141. Material material;
  142. Array<Material> materials;
  143. uint maxLights;
  144. Model model;
  145. /* readonly */
  146. Array<String> morphNames;
  147. Array<float> morphWeights;
  148. /* readonly */
  149. Node node;
  150. /* readonly */
  151. uint numAnimationStates;
  152. /* readonly */
  153. uint numAttributes;
  154. /* readonly */
  155. uint numGeometries;
  156. /* readonly */
  157. uint numMorphs;
  158. ObjectAnimation objectAnimation;
  159. bool occludee;
  160. bool occluder;
  161. /* readonly */
  162. int refs;
  163. float shadowDistance;
  164. uint shadowMask;
  165. /* readonly */
  166. Skeleton skeleton;
  167. bool temporary;
  168. /* readonly */
  169. StringHash type;
  170. /* readonly */
  171. String typeName;
  172. bool updateInvisible;
  173. uint viewMask;
  174. /* readonly */
  175. int weakRefs;
  176. /* readonly */
  177. BoundingBox worldBoundingBox;
  178. /* readonly */
  179. Zone zone;
  180. uint zoneMask;
  181. };
  182. class AnimatedSprite2D
  183. {
  184. // Methods:
  185. void ApplyAttributes();
  186. void DrawDebugGeometry(DebugRenderer, bool);
  187. Variant GetAttribute(const String&) const;
  188. ValueAnimation GetAttributeAnimation(const String&) const;
  189. float GetAttributeAnimationSpeed(const String&) const;
  190. float GetAttributeAnimationTime(const String&) const;
  191. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  192. Variant GetAttributeDefault(const String&) const;
  193. bool GetInterceptNetworkUpdate(const String&) const;
  194. bool HasSubscribedToEvent(Object, const String&);
  195. bool HasSubscribedToEvent(const String&);
  196. bool IsInView(Camera) const;
  197. bool Load(File, bool = false);
  198. bool Load(VectorBuffer&, bool = false);
  199. bool LoadJSON(const JSONValue&, bool = false);
  200. bool LoadXML(const XMLElement&, bool = false);
  201. void MarkNetworkUpdate() const;
  202. void Remove();
  203. void RemoveAttributeAnimation(const String&);
  204. void RemoveInstanceDefault();
  205. void RemoveObjectAnimation();
  206. void ResetToDefault();
  207. bool Save(File) const;
  208. bool Save(VectorBuffer&) const;
  209. bool SaveJSON(JSONValue&) const;
  210. bool SaveXML(XMLElement&) const;
  211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  212. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  213. void SetAnimationTime(float);
  214. bool SetAttribute(const String&, const Variant&);
  215. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  216. void SetAttributeAnimationSpeed(const String&, float);
  217. void SetAttributeAnimationTime(const String&, float);
  218. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  219. void SetFlip(bool, bool);
  220. void SetInterceptNetworkUpdate(const String&, bool);
  221. // Properties:
  222. float alpha;
  223. String animation;
  224. bool animationEnabled;
  225. AnimationSet2D animationSet;
  226. /* readonly */
  227. Array<Variant> attributeDefaults;
  228. /* readonly */
  229. Array<AttributeInfo> attributeInfos;
  230. Array<Variant> attributes;
  231. BlendMode blendMode;
  232. /* readonly */
  233. BoundingBox boundingBox;
  234. bool castShadows;
  235. /* readonly */
  236. String category;
  237. Color color;
  238. Material customMaterial;
  239. float drawDistance;
  240. bool enabled;
  241. /* readonly */
  242. bool enabledEffective;
  243. String entity;
  244. bool flipX;
  245. bool flipY;
  246. Vector2 hotSpot;
  247. /* readonly */
  248. uint id;
  249. /* readonly */
  250. bool inView;
  251. int layer;
  252. uint lightMask;
  253. float lodBias;
  254. LoopMode2D loopMode;
  255. uint maxLights;
  256. /* readonly */
  257. Node node;
  258. /* readonly */
  259. uint numAttributes;
  260. ObjectAnimation objectAnimation;
  261. bool occludee;
  262. bool occluder;
  263. int orderInLayer;
  264. /* readonly */
  265. int refs;
  266. float shadowDistance;
  267. uint shadowMask;
  268. float speed;
  269. Sprite2D sprite;
  270. bool temporary;
  271. /* readonly */
  272. StringHash type;
  273. /* readonly */
  274. String typeName;
  275. bool useHotSpot;
  276. uint viewMask;
  277. /* readonly */
  278. int weakRefs;
  279. /* readonly */
  280. BoundingBox worldBoundingBox;
  281. uint zoneMask;
  282. };
  283. class Animation
  284. {
  285. // Methods:
  286. void AddTrigger(const AnimationTriggerPoint&);
  287. void AddTrigger(float, bool, const Variant&);
  288. AnimationTrack CreateTrack(const String&);
  289. bool HasSubscribedToEvent(Object, const String&);
  290. bool HasSubscribedToEvent(const String&);
  291. bool Load(File);
  292. bool Load(VectorBuffer&);
  293. bool RemoveAllTracks();
  294. void RemoveAllTriggers();
  295. bool RemoveTrack(const String&);
  296. void RemoveTrigger(uint);
  297. bool Save(File) const;
  298. bool Save(VectorBuffer&) const;
  299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  300. // Properties:
  301. String animationName;
  302. /* readonly */
  303. String category;
  304. float length;
  305. /* readonly */
  306. uint memoryUse;
  307. String name;
  308. /* readonly */
  309. uint numTracks;
  310. uint numTriggers;
  311. /* readonly */
  312. int refs;
  313. /* readonly */
  314. Array<AnimationTrack> tracks;
  315. Array<AnimationTriggerPoint> triggers;
  316. /* readonly */
  317. StringHash type;
  318. /* readonly */
  319. String typeName;
  320. /* readonly */
  321. uint useTimer;
  322. /* readonly */
  323. int weakRefs;
  324. };
  325. class AnimationController
  326. {
  327. // Methods:
  328. void ApplyAttributes();
  329. void DrawDebugGeometry(DebugRenderer, bool);
  330. bool Fade(const String&, float, float);
  331. bool FadeOthers(const String&, float, float);
  332. AnimationState GetAnimationState(StringHash) const;
  333. AnimationState GetAnimationState(const String&) const;
  334. Variant GetAttribute(const String&) const;
  335. ValueAnimation GetAttributeAnimation(const String&) const;
  336. float GetAttributeAnimationSpeed(const String&) const;
  337. float GetAttributeAnimationTime(const String&) const;
  338. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  339. Variant GetAttributeDefault(const String&) const;
  340. float GetAutoFade(const String&) const;
  341. float GetFadeTarget(const String&) const;
  342. float GetFadeTime(const String&) const;
  343. bool GetInterceptNetworkUpdate(const String&) const;
  344. uint8 GetLayer(const String&) const;
  345. float GetLength(const String&) const;
  346. bool GetLooped(const String&) const;
  347. bool GetRemoveOnCompletion(const String&);
  348. float GetSpeed(const String&) const;
  349. float GetTime(const String&) const;
  350. float GetWeight(const String&) const;
  351. bool HasSubscribedToEvent(Object, const String&);
  352. bool HasSubscribedToEvent(const String&);
  353. bool IsAtEnd(const String&) const;
  354. bool IsFadingIn(const String&) const;
  355. bool IsFadingOut(const String&) const;
  356. bool IsPlaying(const String&) const;
  357. bool Load(File, bool = false);
  358. bool Load(VectorBuffer&, bool = false);
  359. bool LoadJSON(const JSONValue&, bool = false);
  360. bool LoadXML(const XMLElement&, bool = false);
  361. void MarkNetworkUpdate() const;
  362. bool Play(const String&, uint8, bool, float = 0.0f);
  363. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  364. void Remove();
  365. void RemoveAttributeAnimation(const String&);
  366. void RemoveInstanceDefault();
  367. void RemoveObjectAnimation();
  368. void ResetToDefault();
  369. bool Save(File) const;
  370. bool Save(VectorBuffer&) const;
  371. bool SaveJSON(JSONValue&) const;
  372. bool SaveXML(XMLElement&) const;
  373. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  374. void SetAnimationTime(float);
  375. bool SetAttribute(const String&, const Variant&);
  376. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  377. void SetAttributeAnimationSpeed(const String&, float);
  378. void SetAttributeAnimationTime(const String&, float);
  379. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  380. bool SetAutoFade(const String&, float);
  381. void SetInterceptNetworkUpdate(const String&, bool);
  382. bool SetLayer(const String&, uint8);
  383. bool SetLooped(const String&, bool);
  384. bool SetRemoveOnCompletion(const String&, bool);
  385. bool SetSpeed(const String&, float);
  386. bool SetStartBone(const String&, const String&);
  387. bool SetTime(const String&, float);
  388. bool SetWeight(const String&, float);
  389. void Stop(const String&, float = 0.0f);
  390. void StopAll(float = 0.0f);
  391. void StopLayer(uint8, float = 0.0f);
  392. const String& GetStartBone(const String&) const;
  393. // Properties:
  394. bool animationEnabled;
  395. /* readonly */
  396. Array<Variant> attributeDefaults;
  397. /* readonly */
  398. Array<AttributeInfo> attributeInfos;
  399. Array<Variant> attributes;
  400. /* readonly */
  401. String category;
  402. bool enabled;
  403. /* readonly */
  404. bool enabledEffective;
  405. /* readonly */
  406. uint id;
  407. /* readonly */
  408. Node node;
  409. /* readonly */
  410. uint numAttributes;
  411. ObjectAnimation objectAnimation;
  412. /* readonly */
  413. int refs;
  414. bool temporary;
  415. /* readonly */
  416. StringHash type;
  417. /* readonly */
  418. String typeName;
  419. /* readonly */
  420. int weakRefs;
  421. };
  422. class AnimationKeyFrame
  423. {
  424. // Properties:
  425. Vector3 position;
  426. Quaternion rotation;
  427. Vector3 scale;
  428. float time;
  429. };
  430. class AnimationSet2D
  431. {
  432. // Methods:
  433. String GetAnimation(uint) const;
  434. bool HasSubscribedToEvent(Object, const String&);
  435. bool HasSubscribedToEvent(const String&);
  436. bool Load(File);
  437. bool Load(VectorBuffer&);
  438. bool Save(File) const;
  439. bool Save(VectorBuffer&) const;
  440. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  441. // Properties:
  442. /* readonly */
  443. String category;
  444. /* readonly */
  445. uint memoryUse;
  446. String name;
  447. /* readonly */
  448. uint numAnimations;
  449. /* readonly */
  450. int refs;
  451. /* readonly */
  452. StringHash type;
  453. /* readonly */
  454. String typeName;
  455. /* readonly */
  456. uint useTimer;
  457. /* readonly */
  458. int weakRefs;
  459. };
  460. class AnimationState
  461. {
  462. // Methods:
  463. void AddTime(float);
  464. void AddWeight(float);
  465. void Apply();
  466. float GetBoneWeight(StringHash) const;
  467. float GetBoneWeight(uint) const;
  468. uint GetTrackIndex(StringHash) const;
  469. uint GetTrackIndex(const String&) const;
  470. void SetBoneWeight(StringHash, float, bool = false);
  471. void SetBoneWeight(const String&, float, bool = false);
  472. void SetBoneWeight(uint, float, bool = false);
  473. // Properties:
  474. /* readonly */
  475. Animation animation;
  476. Array<float> boneWeights;
  477. /* readonly */
  478. bool enabled;
  479. uint8 layer;
  480. /* readonly */
  481. float length;
  482. bool looped;
  483. /* readonly */
  484. AnimatedModel model;
  485. /* readonly */
  486. Node node;
  487. /* readonly */
  488. int refs;
  489. Bone startBone;
  490. float time;
  491. /* readonly */
  492. int weakRefs;
  493. float weight;
  494. };
  495. class AnimationTrack
  496. {
  497. // Methods:
  498. void AddKeyFrame(const AnimationKeyFrame&);
  499. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  500. void RemoveAllKeyFrames();
  501. void RemoveKeyFrame(uint);
  502. // Properties:
  503. uint8 channelMask;
  504. Array<AnimationKeyFrame> keyFrames;
  505. String name;
  506. StringHash nameHash;
  507. /* readonly */
  508. uint numKeyFrames;
  509. };
  510. class AnimationTriggerPoint
  511. {
  512. // Properties:
  513. Variant data;
  514. float time;
  515. };
  516. template <class T> class Array
  517. {
  518. // Methods:
  519. void Clear();
  520. void Erase(uint);
  521. int Find(const T&) const;
  522. int Find(uint, const T&) const;
  523. int FindByRef(const T&) const;
  524. int FindByRef(uint, const T&) const;
  525. void Insert(uint, const T&);
  526. void Pop();
  527. void Push(const T&);
  528. void Reserve(uint);
  529. void Resize(uint);
  530. void Reverse();
  531. void Sort();
  532. void Sort(uint, uint);
  533. void SortReverse();
  534. void SortReverse(uint, uint);
  535. // Properties:
  536. /* readonly */
  537. bool empty;
  538. uint length;
  539. };
  540. class AttributeInfo
  541. {
  542. // Properties:
  543. Variant defaultValue;
  544. /* readonly */
  545. Array<String> enumNames;
  546. uint mode;
  547. String name;
  548. VariantType type;
  549. };
  550. class Audio
  551. {
  552. // Methods:
  553. bool HasMasterGain(const String&) const;
  554. bool HasSubscribedToEvent(Object, const String&);
  555. bool HasSubscribedToEvent(const String&);
  556. bool Play();
  557. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  558. void SetMode(int, int, bool, bool = true);
  559. void Stop();
  560. // Properties:
  561. /* readonly */
  562. String category;
  563. /* readonly */
  564. bool initialized;
  565. /* readonly */
  566. bool interpolation;
  567. SoundListener listener;
  568. Array<float> masterGain;
  569. /* readonly */
  570. int mixRate;
  571. /* readonly */
  572. bool playing;
  573. /* readonly */
  574. int refs;
  575. /* readonly */
  576. uint sampleSize;
  577. /* readonly */
  578. bool stereo;
  579. /* readonly */
  580. StringHash type;
  581. /* readonly */
  582. String typeName;
  583. /* readonly */
  584. int weakRefs;
  585. };
  586. class BiasParameters
  587. {
  588. // Properties:
  589. float constantBias;
  590. float slopeScaledBias;
  591. };
  592. class Billboard
  593. {
  594. // Properties:
  595. Color color;
  596. Vector3 direction;
  597. bool enabled;
  598. Vector3 position;
  599. float rotation;
  600. Vector2 size;
  601. Rect uv;
  602. };
  603. class BillboardSet
  604. {
  605. // Methods:
  606. void ApplyAttributes();
  607. void Commit();
  608. void DrawDebugGeometry(DebugRenderer, bool);
  609. Variant GetAttribute(const String&) const;
  610. ValueAnimation GetAttributeAnimation(const String&) const;
  611. float GetAttributeAnimationSpeed(const String&) const;
  612. float GetAttributeAnimationTime(const String&) const;
  613. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  614. Variant GetAttributeDefault(const String&) const;
  615. bool GetInterceptNetworkUpdate(const String&) const;
  616. bool HasSubscribedToEvent(Object, const String&);
  617. bool HasSubscribedToEvent(const String&);
  618. bool IsInView(Camera) const;
  619. bool Load(File, bool = false);
  620. bool Load(VectorBuffer&, bool = false);
  621. bool LoadJSON(const JSONValue&, bool = false);
  622. bool LoadXML(const XMLElement&, bool = false);
  623. void MarkNetworkUpdate() const;
  624. void Remove();
  625. void RemoveAttributeAnimation(const String&);
  626. void RemoveInstanceDefault();
  627. void RemoveObjectAnimation();
  628. void ResetToDefault();
  629. bool Save(File) const;
  630. bool Save(VectorBuffer&) const;
  631. bool SaveJSON(JSONValue&) const;
  632. bool SaveXML(XMLElement&) const;
  633. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  634. void SetAnimationTime(float);
  635. bool SetAttribute(const String&, const Variant&);
  636. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  637. void SetAttributeAnimationSpeed(const String&, float);
  638. void SetAttributeAnimationTime(const String&, float);
  639. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  640. void SetInterceptNetworkUpdate(const String&, bool);
  641. // Properties:
  642. bool animationEnabled;
  643. float animationLodBias;
  644. /* readonly */
  645. Array<Variant> attributeDefaults;
  646. /* readonly */
  647. Array<AttributeInfo> attributeInfos;
  648. Array<Variant> attributes;
  649. /* readonly */
  650. Array<Billboard> billboards;
  651. /* readonly */
  652. BoundingBox boundingBox;
  653. bool castShadows;
  654. /* readonly */
  655. String category;
  656. float drawDistance;
  657. bool enabled;
  658. /* readonly */
  659. bool enabledEffective;
  660. FaceCameraMode faceCameraMode;
  661. /* readonly */
  662. uint id;
  663. /* readonly */
  664. bool inView;
  665. uint lightMask;
  666. float lodBias;
  667. Material material;
  668. uint maxLights;
  669. /* readonly */
  670. Node node;
  671. /* readonly */
  672. uint numAttributes;
  673. uint numBillboards;
  674. ObjectAnimation objectAnimation;
  675. bool occludee;
  676. bool occluder;
  677. /* readonly */
  678. int refs;
  679. bool relative;
  680. bool scaled;
  681. float shadowDistance;
  682. uint shadowMask;
  683. bool sorted;
  684. bool temporary;
  685. /* readonly */
  686. StringHash type;
  687. /* readonly */
  688. String typeName;
  689. uint viewMask;
  690. /* readonly */
  691. int weakRefs;
  692. /* readonly */
  693. BoundingBox worldBoundingBox;
  694. /* readonly */
  695. Zone zone;
  696. uint zoneMask;
  697. };
  698. class Bone
  699. {
  700. // Properties:
  701. bool animated;
  702. BoundingBox boundingBox;
  703. Vector3 initialPosition;
  704. Quaternion initialRotation;
  705. Vector3 initialScale;
  706. String name;
  707. Node node;
  708. float radius;
  709. };
  710. class BorderImage
  711. {
  712. // Methods:
  713. void AddChild(UIElement);
  714. void ApplyAttributes();
  715. void BringToFront();
  716. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  717. void DisableLayoutUpdate();
  718. IntVector2 ElementToScreen(const IntVector2&);
  719. void EnableLayoutUpdate();
  720. uint FindChild(UIElement) const;
  721. Variant GetAttribute(const String&) const;
  722. ValueAnimation GetAttributeAnimation(const String&) const;
  723. float GetAttributeAnimationSpeed(const String&) const;
  724. float GetAttributeAnimationTime(const String&) const;
  725. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  726. Variant GetAttributeDefault(const String&) const;
  727. UIElement GetChild(const String&, bool = false) const;
  728. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  729. Array<UIElement> GetChildren(bool = false) const;
  730. UIElement GetElementEventSender() const;
  731. bool GetInterceptNetworkUpdate(const String&) const;
  732. uint GetNumChildren(bool) const;
  733. bool HasSubscribedToEvent(Object, const String&);
  734. bool HasSubscribedToEvent(const String&);
  735. void InsertChild(uint, UIElement);
  736. bool IsInside(IntVector2, bool);
  737. bool IsInsideCombined(IntVector2, bool);
  738. bool Load(File, bool = false);
  739. bool Load(VectorBuffer&, bool = false);
  740. bool LoadChildXML(XMLFile, XMLFile = null);
  741. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  742. bool LoadJSON(const JSONValue&, bool = false);
  743. bool LoadXML(File);
  744. bool LoadXML(VectorBuffer&);
  745. bool LoadXML(XMLFile, XMLFile);
  746. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  747. bool LoadXML(const XMLElement&, bool = false);
  748. void MarkNetworkUpdate() const;
  749. void Remove();
  750. void RemoveAllChildren();
  751. void RemoveAttributeAnimation(const String&);
  752. void RemoveChild(UIElement, uint = 0);
  753. void RemoveChild(uint);
  754. void RemoveInstanceDefault();
  755. void RemoveObjectAnimation();
  756. void ResetDeepEnabled();
  757. void ResetToDefault();
  758. bool Save(File) const;
  759. bool Save(VectorBuffer&) const;
  760. bool SaveJSON(JSONValue&) const;
  761. bool SaveXML(File, const String& = "\t");
  762. bool SaveXML(VectorBuffer&, const String& = "\t");
  763. bool SaveXML(XMLElement&) const;
  764. IntVector2 ScreenToElement(const IntVector2&);
  765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  766. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  767. void SetAnimationTime(float);
  768. bool SetAttribute(const String&, const Variant&);
  769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  770. void SetAttributeAnimationSpeed(const String&, float);
  771. void SetAttributeAnimationTime(const String&, float);
  772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  773. void SetDeepEnabled(bool);
  774. void SetEnabledRecursive(bool);
  775. void SetFixedHeight(int);
  776. void SetFixedSize(int, int);
  777. void SetFixedWidth(int);
  778. void SetFullImageRect();
  779. void SetHoverOffset(int, int);
  780. void SetInterceptNetworkUpdate(const String&, bool);
  781. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  782. void SetMaxSize(int, int);
  783. void SetMinSize(int, int);
  784. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  785. void SetPosition(int, int);
  786. void SetSize(int, int);
  787. bool SetStyle(const String&, XMLFile = null);
  788. bool SetStyle(const XMLElement&);
  789. bool SetStyleAuto(XMLFile = null);
  790. void UpdateLayout();
  791. const Variant& GetVar(const StringHash&);
  792. // Properties:
  793. bool animationEnabled;
  794. /* readonly */
  795. Array<Variant> attributeDefaults;
  796. /* readonly */
  797. Array<AttributeInfo> attributeInfos;
  798. Array<Variant> attributes;
  799. BlendMode blendMode;
  800. IntRect border;
  801. bool bringToBack;
  802. bool bringToFront;
  803. /* readonly */
  804. String category;
  805. /* readonly */
  806. IntVector2 childOffset;
  807. /* readonly */
  808. Array<UIElement> children;
  809. IntRect clipBorder;
  810. bool clipChildren;
  811. /* writeonly */
  812. Color color;
  813. /* readonly */
  814. bool colorGradient;
  815. Array<Color> colors;
  816. /* readonly */
  817. IntRect combinedScreenRect;
  818. XMLFile defaultStyle;
  819. /* readonly */
  820. float derivedOpacity;
  821. /* readonly */
  822. uint dragButtonCombo;
  823. /* readonly */
  824. int dragButtonCount;
  825. uint dragDropMode;
  826. bool editable;
  827. bool elementEventSender;
  828. bool enabled;
  829. /* readonly */
  830. bool enabledSelf;
  831. /* readonly */
  832. bool fixedHeight;
  833. /* readonly */
  834. bool fixedSize;
  835. /* readonly */
  836. bool fixedWidth;
  837. bool focus;
  838. FocusMode focusMode;
  839. int height;
  840. HorizontalAlignment horizontalAlignment;
  841. IntVector2 hoverOffset;
  842. /* readonly */
  843. bool hovering;
  844. IntRect imageBorder;
  845. IntRect imageRect;
  846. int indent;
  847. int indentSpacing;
  848. /* readonly */
  849. int indentWidth;
  850. bool internal;
  851. IntRect layoutBorder;
  852. Vector2 layoutFlexScale;
  853. LayoutMode layoutMode;
  854. int layoutSpacing;
  855. int maxHeight;
  856. IntVector2 maxSize;
  857. int maxWidth;
  858. int minHeight;
  859. IntVector2 minSize;
  860. int minWidth;
  861. String name;
  862. /* readonly */
  863. uint numAllChildren;
  864. /* readonly */
  865. uint numAttributes;
  866. /* readonly */
  867. uint numChildren;
  868. ObjectAnimation objectAnimation;
  869. float opacity;
  870. UIElement parent;
  871. IntVector2 position;
  872. int priority;
  873. /* readonly */
  874. int refs;
  875. /* readonly */
  876. UIElement root;
  877. /* readonly */
  878. IntVector2 screenPosition;
  879. bool selected;
  880. IntVector2 size;
  881. bool sortChildren;
  882. String style;
  883. bool temporary;
  884. Texture texture;
  885. bool tiled;
  886. TraversalMode traversalMode;
  887. /* readonly */
  888. StringHash type;
  889. /* readonly */
  890. String typeName;
  891. bool useDerivedOpacity;
  892. /* readonly */
  893. VariantMap vars;
  894. VerticalAlignment verticalAlignment;
  895. bool visible;
  896. /* readonly */
  897. bool visibleEffective;
  898. /* readonly */
  899. int weakRefs;
  900. int width;
  901. };
  902. class BoundingBox
  903. {
  904. // Methods:
  905. void Clear();
  906. void Clip(const BoundingBox&);
  907. void Define(const BoundingBox&);
  908. void Define(const Frustum&);
  909. void Define(const Polyhedron&);
  910. void Define(const Sphere&);
  911. void Define(const Vector3&);
  912. void Define(const Vector3&, const Vector3&);
  913. void Define(float, float);
  914. bool Defined() const;
  915. Intersection IsInside(const BoundingBox&) const;
  916. Intersection IsInside(const Sphere&) const;
  917. Intersection IsInside(const Vector3&) const;
  918. Intersection IsInsideFast(const BoundingBox&) const;
  919. Intersection IsInsideFast(const Sphere&) const;
  920. void Merge(const BoundingBox&);
  921. void Merge(const Frustum&);
  922. void Merge(const Polyhedron&);
  923. void Merge(const Sphere&);
  924. void Merge(const Vector3&);
  925. Rect Projected(const Matrix4&) const;
  926. String ToString() const;
  927. void Transform(const Matrix3&);
  928. void Transform(const Matrix3x4&);
  929. BoundingBox Transformed(const Matrix3&) const;
  930. BoundingBox Transformed(const Matrix3x4&) const;
  931. // Properties:
  932. /* readonly */
  933. Vector3 center;
  934. /* readonly */
  935. Vector3 halfSize;
  936. Vector3 max;
  937. Vector3 min;
  938. /* readonly */
  939. Vector3 size;
  940. };
  941. class Button
  942. {
  943. // Methods:
  944. void AddChild(UIElement);
  945. void ApplyAttributes();
  946. void BringToFront();
  947. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  948. void DisableLayoutUpdate();
  949. IntVector2 ElementToScreen(const IntVector2&);
  950. void EnableLayoutUpdate();
  951. uint FindChild(UIElement) const;
  952. Variant GetAttribute(const String&) const;
  953. ValueAnimation GetAttributeAnimation(const String&) const;
  954. float GetAttributeAnimationSpeed(const String&) const;
  955. float GetAttributeAnimationTime(const String&) const;
  956. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  957. Variant GetAttributeDefault(const String&) const;
  958. UIElement GetChild(const String&, bool = false) const;
  959. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  960. Array<UIElement> GetChildren(bool = false) const;
  961. UIElement GetElementEventSender() const;
  962. bool GetInterceptNetworkUpdate(const String&) const;
  963. uint GetNumChildren(bool) const;
  964. bool HasSubscribedToEvent(Object, const String&);
  965. bool HasSubscribedToEvent(const String&);
  966. void InsertChild(uint, UIElement);
  967. bool IsInside(IntVector2, bool);
  968. bool IsInsideCombined(IntVector2, bool);
  969. bool Load(File, bool = false);
  970. bool Load(VectorBuffer&, bool = false);
  971. bool LoadChildXML(XMLFile, XMLFile = null);
  972. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  973. bool LoadJSON(const JSONValue&, bool = false);
  974. bool LoadXML(File);
  975. bool LoadXML(VectorBuffer&);
  976. bool LoadXML(XMLFile, XMLFile);
  977. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  978. bool LoadXML(const XMLElement&, bool = false);
  979. void MarkNetworkUpdate() const;
  980. void Remove();
  981. void RemoveAllChildren();
  982. void RemoveAttributeAnimation(const String&);
  983. void RemoveChild(UIElement, uint = 0);
  984. void RemoveChild(uint);
  985. void RemoveInstanceDefault();
  986. void RemoveObjectAnimation();
  987. void ResetDeepEnabled();
  988. void ResetToDefault();
  989. bool Save(File) const;
  990. bool Save(VectorBuffer&) const;
  991. bool SaveJSON(JSONValue&) const;
  992. bool SaveXML(File, const String& = "\t");
  993. bool SaveXML(VectorBuffer&, const String& = "\t");
  994. bool SaveXML(XMLElement&) const;
  995. IntVector2 ScreenToElement(const IntVector2&);
  996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  997. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  998. void SetAnimationTime(float);
  999. bool SetAttribute(const String&, const Variant&);
  1000. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1001. void SetAttributeAnimationSpeed(const String&, float);
  1002. void SetAttributeAnimationTime(const String&, float);
  1003. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1004. void SetDeepEnabled(bool);
  1005. void SetEnabledRecursive(bool);
  1006. void SetFixedHeight(int);
  1007. void SetFixedSize(int, int);
  1008. void SetFixedWidth(int);
  1009. void SetFullImageRect();
  1010. void SetHoverOffset(int, int);
  1011. void SetInterceptNetworkUpdate(const String&, bool);
  1012. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1013. void SetMaxSize(int, int);
  1014. void SetMinSize(int, int);
  1015. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1016. void SetPosition(int, int);
  1017. void SetPressedChildOffset(int, int);
  1018. void SetPressedOffset(int, int);
  1019. void SetRepeat(float, float);
  1020. void SetSize(int, int);
  1021. bool SetStyle(const String&, XMLFile = null);
  1022. bool SetStyle(const XMLElement&);
  1023. bool SetStyleAuto(XMLFile = null);
  1024. void UpdateLayout();
  1025. const Variant& GetVar(const StringHash&);
  1026. // Properties:
  1027. bool animationEnabled;
  1028. /* readonly */
  1029. Array<Variant> attributeDefaults;
  1030. /* readonly */
  1031. Array<AttributeInfo> attributeInfos;
  1032. Array<Variant> attributes;
  1033. BlendMode blendMode;
  1034. IntRect border;
  1035. bool bringToBack;
  1036. bool bringToFront;
  1037. /* readonly */
  1038. String category;
  1039. /* readonly */
  1040. IntVector2 childOffset;
  1041. /* readonly */
  1042. Array<UIElement> children;
  1043. IntRect clipBorder;
  1044. bool clipChildren;
  1045. /* writeonly */
  1046. Color color;
  1047. /* readonly */
  1048. bool colorGradient;
  1049. Array<Color> colors;
  1050. /* readonly */
  1051. IntRect combinedScreenRect;
  1052. XMLFile defaultStyle;
  1053. /* readonly */
  1054. float derivedOpacity;
  1055. /* readonly */
  1056. uint dragButtonCombo;
  1057. /* readonly */
  1058. int dragButtonCount;
  1059. uint dragDropMode;
  1060. bool editable;
  1061. bool elementEventSender;
  1062. bool enabled;
  1063. /* readonly */
  1064. bool enabledSelf;
  1065. /* readonly */
  1066. bool fixedHeight;
  1067. /* readonly */
  1068. bool fixedSize;
  1069. /* readonly */
  1070. bool fixedWidth;
  1071. bool focus;
  1072. FocusMode focusMode;
  1073. int height;
  1074. HorizontalAlignment horizontalAlignment;
  1075. IntVector2 hoverOffset;
  1076. /* readonly */
  1077. bool hovering;
  1078. IntRect imageBorder;
  1079. IntRect imageRect;
  1080. int indent;
  1081. int indentSpacing;
  1082. /* readonly */
  1083. int indentWidth;
  1084. bool internal;
  1085. IntRect layoutBorder;
  1086. Vector2 layoutFlexScale;
  1087. LayoutMode layoutMode;
  1088. int layoutSpacing;
  1089. int maxHeight;
  1090. IntVector2 maxSize;
  1091. int maxWidth;
  1092. int minHeight;
  1093. IntVector2 minSize;
  1094. int minWidth;
  1095. String name;
  1096. /* readonly */
  1097. uint numAllChildren;
  1098. /* readonly */
  1099. uint numAttributes;
  1100. /* readonly */
  1101. uint numChildren;
  1102. ObjectAnimation objectAnimation;
  1103. float opacity;
  1104. UIElement parent;
  1105. IntVector2 position;
  1106. /* readonly */
  1107. bool pressed;
  1108. IntVector2 pressedChildOffset;
  1109. IntVector2 pressedOffset;
  1110. int priority;
  1111. /* readonly */
  1112. int refs;
  1113. float repeatDelay;
  1114. float repeatRate;
  1115. /* readonly */
  1116. UIElement root;
  1117. /* readonly */
  1118. IntVector2 screenPosition;
  1119. bool selected;
  1120. IntVector2 size;
  1121. bool sortChildren;
  1122. String style;
  1123. bool temporary;
  1124. Texture texture;
  1125. bool tiled;
  1126. TraversalMode traversalMode;
  1127. /* readonly */
  1128. StringHash type;
  1129. /* readonly */
  1130. String typeName;
  1131. bool useDerivedOpacity;
  1132. /* readonly */
  1133. VariantMap vars;
  1134. VerticalAlignment verticalAlignment;
  1135. bool visible;
  1136. /* readonly */
  1137. bool visibleEffective;
  1138. /* readonly */
  1139. int weakRefs;
  1140. int width;
  1141. };
  1142. class Camera
  1143. {
  1144. // Methods:
  1145. void ApplyAttributes();
  1146. void DrawDebugGeometry(DebugRenderer, bool);
  1147. Variant GetAttribute(const String&) const;
  1148. ValueAnimation GetAttributeAnimation(const String&) const;
  1149. float GetAttributeAnimationSpeed(const String&) const;
  1150. float GetAttributeAnimationTime(const String&) const;
  1151. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1152. Variant GetAttributeDefault(const String&) const;
  1153. float GetDistance(const Vector3&) const;
  1154. float GetDistanceSquared(const Vector3&) const;
  1155. bool GetInterceptNetworkUpdate(const String&) const;
  1156. Ray GetScreenRay(float, float) const;
  1157. Frustum GetSplitFrustum(float, float) const;
  1158. bool HasSubscribedToEvent(Object, const String&);
  1159. bool HasSubscribedToEvent(const String&);
  1160. bool Load(File, bool = false);
  1161. bool Load(VectorBuffer&, bool = false);
  1162. bool LoadJSON(const JSONValue&, bool = false);
  1163. bool LoadXML(const XMLElement&, bool = false);
  1164. void MarkNetworkUpdate() const;
  1165. void Remove();
  1166. void RemoveAttributeAnimation(const String&);
  1167. void RemoveInstanceDefault();
  1168. void RemoveObjectAnimation();
  1169. void ResetToDefault();
  1170. bool Save(File) const;
  1171. bool Save(VectorBuffer&) const;
  1172. bool SaveJSON(JSONValue&) const;
  1173. bool SaveXML(XMLElement&) const;
  1174. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1176. void SetAnimationTime(float);
  1177. bool SetAttribute(const String&, const Variant&);
  1178. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1179. void SetAttributeAnimationSpeed(const String&, float);
  1180. void SetAttributeAnimationTime(const String&, float);
  1181. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1182. void SetInterceptNetworkUpdate(const String&, bool);
  1183. void SetOrthoSize(const Vector2&);
  1184. Vector2 WorldToScreenPoint(const Vector3&) const;
  1185. // Properties:
  1186. bool animationEnabled;
  1187. float aspectRatio;
  1188. /* readonly */
  1189. Array<Variant> attributeDefaults;
  1190. /* readonly */
  1191. Array<AttributeInfo> attributeInfos;
  1192. Array<Variant> attributes;
  1193. bool autoAspectRatio;
  1194. /* readonly */
  1195. String category;
  1196. Plane clipPlane;
  1197. /* readonly */
  1198. Matrix3x4 effectiveWorldTransform;
  1199. bool enabled;
  1200. /* readonly */
  1201. bool enabledEffective;
  1202. float farClip;
  1203. FillMode fillMode;
  1204. float fov;
  1205. /* readonly */
  1206. Frustum frustum;
  1207. /* readonly */
  1208. float halfViewSize;
  1209. /* readonly */
  1210. uint id;
  1211. float lodBias;
  1212. float nearClip;
  1213. /* readonly */
  1214. Node node;
  1215. /* readonly */
  1216. uint numAttributes;
  1217. ObjectAnimation objectAnimation;
  1218. float orthoSize;
  1219. bool orthographic;
  1220. /* readonly */
  1221. Matrix4 projection;
  1222. Vector2 projectionOffset;
  1223. Plane reflectionPlane;
  1224. /* readonly */
  1225. int refs;
  1226. bool temporary;
  1227. /* readonly */
  1228. StringHash type;
  1229. /* readonly */
  1230. String typeName;
  1231. bool useClipping;
  1232. bool useReflection;
  1233. /* readonly */
  1234. Matrix3x4 view;
  1235. uint viewMask;
  1236. uint viewOverrideFlags;
  1237. /* readonly */
  1238. Frustum viewSpaceFrustum;
  1239. /* readonly */
  1240. int weakRefs;
  1241. float zoom;
  1242. };
  1243. class CascadeParameters
  1244. {
  1245. // Properties:
  1246. float biasAutoAdjust;
  1247. float fadeStart;
  1248. float split1;
  1249. float split2;
  1250. float split3;
  1251. float split4;
  1252. };
  1253. class CheckBox
  1254. {
  1255. // Methods:
  1256. void AddChild(UIElement);
  1257. void ApplyAttributes();
  1258. void BringToFront();
  1259. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1260. void DisableLayoutUpdate();
  1261. IntVector2 ElementToScreen(const IntVector2&);
  1262. void EnableLayoutUpdate();
  1263. uint FindChild(UIElement) const;
  1264. Variant GetAttribute(const String&) const;
  1265. ValueAnimation GetAttributeAnimation(const String&) const;
  1266. float GetAttributeAnimationSpeed(const String&) const;
  1267. float GetAttributeAnimationTime(const String&) const;
  1268. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1269. Variant GetAttributeDefault(const String&) const;
  1270. UIElement GetChild(const String&, bool = false) const;
  1271. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1272. Array<UIElement> GetChildren(bool = false) const;
  1273. UIElement GetElementEventSender() const;
  1274. bool GetInterceptNetworkUpdate(const String&) const;
  1275. uint GetNumChildren(bool) const;
  1276. bool HasSubscribedToEvent(Object, const String&);
  1277. bool HasSubscribedToEvent(const String&);
  1278. void InsertChild(uint, UIElement);
  1279. bool IsInside(IntVector2, bool);
  1280. bool IsInsideCombined(IntVector2, bool);
  1281. bool Load(File, bool = false);
  1282. bool Load(VectorBuffer&, bool = false);
  1283. bool LoadChildXML(XMLFile, XMLFile = null);
  1284. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1285. bool LoadJSON(const JSONValue&, bool = false);
  1286. bool LoadXML(File);
  1287. bool LoadXML(VectorBuffer&);
  1288. bool LoadXML(XMLFile, XMLFile);
  1289. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1290. bool LoadXML(const XMLElement&, bool = false);
  1291. void MarkNetworkUpdate() const;
  1292. void Remove();
  1293. void RemoveAllChildren();
  1294. void RemoveAttributeAnimation(const String&);
  1295. void RemoveChild(UIElement, uint = 0);
  1296. void RemoveChild(uint);
  1297. void RemoveInstanceDefault();
  1298. void RemoveObjectAnimation();
  1299. void ResetDeepEnabled();
  1300. void ResetToDefault();
  1301. bool Save(File) const;
  1302. bool Save(VectorBuffer&) const;
  1303. bool SaveJSON(JSONValue&) const;
  1304. bool SaveXML(File, const String& = "\t");
  1305. bool SaveXML(VectorBuffer&, const String& = "\t");
  1306. bool SaveXML(XMLElement&) const;
  1307. IntVector2 ScreenToElement(const IntVector2&);
  1308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1309. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1310. void SetAnimationTime(float);
  1311. bool SetAttribute(const String&, const Variant&);
  1312. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1313. void SetAttributeAnimationSpeed(const String&, float);
  1314. void SetAttributeAnimationTime(const String&, float);
  1315. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1316. void SetCheckedOffset(int, int);
  1317. void SetDeepEnabled(bool);
  1318. void SetEnabledRecursive(bool);
  1319. void SetFixedHeight(int);
  1320. void SetFixedSize(int, int);
  1321. void SetFixedWidth(int);
  1322. void SetFullImageRect();
  1323. void SetHoverOffset(int, int);
  1324. void SetInterceptNetworkUpdate(const String&, bool);
  1325. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1326. void SetMaxSize(int, int);
  1327. void SetMinSize(int, int);
  1328. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1329. void SetPosition(int, int);
  1330. void SetSize(int, int);
  1331. bool SetStyle(const String&, XMLFile = null);
  1332. bool SetStyle(const XMLElement&);
  1333. bool SetStyleAuto(XMLFile = null);
  1334. void UpdateLayout();
  1335. const Variant& GetVar(const StringHash&);
  1336. // Properties:
  1337. bool animationEnabled;
  1338. /* readonly */
  1339. Array<Variant> attributeDefaults;
  1340. /* readonly */
  1341. Array<AttributeInfo> attributeInfos;
  1342. Array<Variant> attributes;
  1343. BlendMode blendMode;
  1344. IntRect border;
  1345. bool bringToBack;
  1346. bool bringToFront;
  1347. /* readonly */
  1348. String category;
  1349. bool checked;
  1350. IntVector2 checkedOffset;
  1351. /* readonly */
  1352. IntVector2 childOffset;
  1353. /* readonly */
  1354. Array<UIElement> children;
  1355. IntRect clipBorder;
  1356. bool clipChildren;
  1357. /* writeonly */
  1358. Color color;
  1359. /* readonly */
  1360. bool colorGradient;
  1361. Array<Color> colors;
  1362. /* readonly */
  1363. IntRect combinedScreenRect;
  1364. XMLFile defaultStyle;
  1365. /* readonly */
  1366. float derivedOpacity;
  1367. /* readonly */
  1368. uint dragButtonCombo;
  1369. /* readonly */
  1370. int dragButtonCount;
  1371. uint dragDropMode;
  1372. bool editable;
  1373. bool elementEventSender;
  1374. bool enabled;
  1375. /* readonly */
  1376. bool enabledSelf;
  1377. /* readonly */
  1378. bool fixedHeight;
  1379. /* readonly */
  1380. bool fixedSize;
  1381. /* readonly */
  1382. bool fixedWidth;
  1383. bool focus;
  1384. FocusMode focusMode;
  1385. int height;
  1386. HorizontalAlignment horizontalAlignment;
  1387. IntVector2 hoverOffset;
  1388. /* readonly */
  1389. bool hovering;
  1390. IntRect imageBorder;
  1391. IntRect imageRect;
  1392. int indent;
  1393. int indentSpacing;
  1394. /* readonly */
  1395. int indentWidth;
  1396. bool internal;
  1397. IntRect layoutBorder;
  1398. Vector2 layoutFlexScale;
  1399. LayoutMode layoutMode;
  1400. int layoutSpacing;
  1401. int maxHeight;
  1402. IntVector2 maxSize;
  1403. int maxWidth;
  1404. int minHeight;
  1405. IntVector2 minSize;
  1406. int minWidth;
  1407. String name;
  1408. /* readonly */
  1409. uint numAllChildren;
  1410. /* readonly */
  1411. uint numAttributes;
  1412. /* readonly */
  1413. uint numChildren;
  1414. ObjectAnimation objectAnimation;
  1415. float opacity;
  1416. UIElement parent;
  1417. IntVector2 position;
  1418. int priority;
  1419. /* readonly */
  1420. int refs;
  1421. /* readonly */
  1422. UIElement root;
  1423. /* readonly */
  1424. IntVector2 screenPosition;
  1425. bool selected;
  1426. IntVector2 size;
  1427. bool sortChildren;
  1428. String style;
  1429. bool temporary;
  1430. Texture texture;
  1431. bool tiled;
  1432. TraversalMode traversalMode;
  1433. /* readonly */
  1434. StringHash type;
  1435. /* readonly */
  1436. String typeName;
  1437. bool useDerivedOpacity;
  1438. /* readonly */
  1439. VariantMap vars;
  1440. VerticalAlignment verticalAlignment;
  1441. bool visible;
  1442. /* readonly */
  1443. bool visibleEffective;
  1444. /* readonly */
  1445. int weakRefs;
  1446. int width;
  1447. };
  1448. class CollisionBox2D
  1449. {
  1450. // Methods:
  1451. void ApplyAttributes();
  1452. void DrawDebugGeometry(DebugRenderer, bool);
  1453. Variant GetAttribute(const String&) const;
  1454. ValueAnimation GetAttributeAnimation(const String&) const;
  1455. float GetAttributeAnimationSpeed(const String&) const;
  1456. float GetAttributeAnimationTime(const String&) const;
  1457. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1458. Variant GetAttributeDefault(const String&) const;
  1459. bool GetInterceptNetworkUpdate(const String&) const;
  1460. bool HasSubscribedToEvent(Object, const String&);
  1461. bool HasSubscribedToEvent(const String&);
  1462. bool Load(File, bool = false);
  1463. bool Load(VectorBuffer&, bool = false);
  1464. bool LoadJSON(const JSONValue&, bool = false);
  1465. bool LoadXML(const XMLElement&, bool = false);
  1466. void MarkNetworkUpdate() const;
  1467. void Remove();
  1468. void RemoveAttributeAnimation(const String&);
  1469. void RemoveInstanceDefault();
  1470. void RemoveObjectAnimation();
  1471. void ResetToDefault();
  1472. bool Save(File) const;
  1473. bool Save(VectorBuffer&) const;
  1474. bool SaveJSON(JSONValue&) const;
  1475. bool SaveXML(XMLElement&) const;
  1476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1477. void SetAnimationTime(float);
  1478. bool SetAttribute(const String&, const Variant&);
  1479. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1480. void SetAttributeAnimationSpeed(const String&, float);
  1481. void SetAttributeAnimationTime(const String&, float);
  1482. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1483. void SetCenter(float, float);
  1484. void SetInterceptNetworkUpdate(const String&, bool);
  1485. void SetSize(float, float);
  1486. // Properties:
  1487. float angle;
  1488. bool animationEnabled;
  1489. /* readonly */
  1490. Array<Variant> attributeDefaults;
  1491. /* readonly */
  1492. Array<AttributeInfo> attributeInfos;
  1493. Array<Variant> attributes;
  1494. /* readonly */
  1495. String category;
  1496. int categoryBits;
  1497. Vector2 center;
  1498. float density;
  1499. bool enabled;
  1500. /* readonly */
  1501. bool enabledEffective;
  1502. float friction;
  1503. int groupIndex;
  1504. /* readonly */
  1505. uint id;
  1506. /* readonly */
  1507. float inertia;
  1508. int maskBits;
  1509. /* readonly */
  1510. float mass;
  1511. /* readonly */
  1512. Vector2 massCenter;
  1513. /* readonly */
  1514. Node node;
  1515. /* readonly */
  1516. uint numAttributes;
  1517. ObjectAnimation objectAnimation;
  1518. /* readonly */
  1519. int refs;
  1520. float restitution;
  1521. Vector2 size;
  1522. bool temporary;
  1523. bool trigger;
  1524. /* readonly */
  1525. StringHash type;
  1526. /* readonly */
  1527. String typeName;
  1528. /* readonly */
  1529. int weakRefs;
  1530. };
  1531. class CollisionChain2D
  1532. {
  1533. // Methods:
  1534. void ApplyAttributes();
  1535. void DrawDebugGeometry(DebugRenderer, bool);
  1536. Variant GetAttribute(const String&) const;
  1537. ValueAnimation GetAttributeAnimation(const String&) const;
  1538. float GetAttributeAnimationSpeed(const String&) const;
  1539. float GetAttributeAnimationTime(const String&) const;
  1540. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1541. Variant GetAttributeDefault(const String&) const;
  1542. bool GetInterceptNetworkUpdate(const String&) const;
  1543. Array<Vector2> GetVertices() const;
  1544. bool HasSubscribedToEvent(Object, const String&);
  1545. bool HasSubscribedToEvent(const String&);
  1546. bool Load(File, bool = false);
  1547. bool Load(VectorBuffer&, bool = false);
  1548. bool LoadJSON(const JSONValue&, bool = false);
  1549. bool LoadXML(const XMLElement&, bool = false);
  1550. void MarkNetworkUpdate() const;
  1551. void Remove();
  1552. void RemoveAttributeAnimation(const String&);
  1553. void RemoveInstanceDefault();
  1554. void RemoveObjectAnimation();
  1555. void ResetToDefault();
  1556. bool Save(File) const;
  1557. bool Save(VectorBuffer&) const;
  1558. bool SaveJSON(JSONValue&) const;
  1559. bool SaveXML(XMLElement&) const;
  1560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1561. void SetAnimationTime(float);
  1562. bool SetAttribute(const String&, const Variant&);
  1563. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1564. void SetAttributeAnimationSpeed(const String&, float);
  1565. void SetAttributeAnimationTime(const String&, float);
  1566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1567. void SetInterceptNetworkUpdate(const String&, bool);
  1568. void SetVertex(uint, const Vector2&);
  1569. void SetVertices(Array<Vector2>);
  1570. const Vector2& GetVertex(uint) const;
  1571. // Properties:
  1572. bool animationEnabled;
  1573. /* readonly */
  1574. Array<Variant> attributeDefaults;
  1575. /* readonly */
  1576. Array<AttributeInfo> attributeInfos;
  1577. Array<Variant> attributes;
  1578. /* readonly */
  1579. String category;
  1580. int categoryBits;
  1581. float density;
  1582. bool enabled;
  1583. /* readonly */
  1584. bool enabledEffective;
  1585. float friction;
  1586. int groupIndex;
  1587. /* readonly */
  1588. uint id;
  1589. /* readonly */
  1590. float inertia;
  1591. bool loop;
  1592. int maskBits;
  1593. /* readonly */
  1594. float mass;
  1595. /* readonly */
  1596. Vector2 massCenter;
  1597. /* readonly */
  1598. Node node;
  1599. /* readonly */
  1600. uint numAttributes;
  1601. ObjectAnimation objectAnimation;
  1602. /* readonly */
  1603. int refs;
  1604. float restitution;
  1605. bool temporary;
  1606. bool trigger;
  1607. /* readonly */
  1608. StringHash type;
  1609. /* readonly */
  1610. String typeName;
  1611. uint vertexCount;
  1612. /* readonly */
  1613. int weakRefs;
  1614. };
  1615. class CollisionCircle2D
  1616. {
  1617. // Methods:
  1618. void ApplyAttributes();
  1619. void DrawDebugGeometry(DebugRenderer, bool);
  1620. Variant GetAttribute(const String&) const;
  1621. ValueAnimation GetAttributeAnimation(const String&) const;
  1622. float GetAttributeAnimationSpeed(const String&) const;
  1623. float GetAttributeAnimationTime(const String&) const;
  1624. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1625. Variant GetAttributeDefault(const String&) const;
  1626. bool GetInterceptNetworkUpdate(const String&) const;
  1627. bool HasSubscribedToEvent(Object, const String&);
  1628. bool HasSubscribedToEvent(const String&);
  1629. bool Load(File, bool = false);
  1630. bool Load(VectorBuffer&, bool = false);
  1631. bool LoadJSON(const JSONValue&, bool = false);
  1632. bool LoadXML(const XMLElement&, bool = false);
  1633. void MarkNetworkUpdate() const;
  1634. void Remove();
  1635. void RemoveAttributeAnimation(const String&);
  1636. void RemoveInstanceDefault();
  1637. void RemoveObjectAnimation();
  1638. void ResetToDefault();
  1639. bool Save(File) const;
  1640. bool Save(VectorBuffer&) const;
  1641. bool SaveJSON(JSONValue&) const;
  1642. bool SaveXML(XMLElement&) const;
  1643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1644. void SetAnimationTime(float);
  1645. bool SetAttribute(const String&, const Variant&);
  1646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1647. void SetAttributeAnimationSpeed(const String&, float);
  1648. void SetAttributeAnimationTime(const String&, float);
  1649. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1650. void SetCenter(float, float);
  1651. void SetInterceptNetworkUpdate(const String&, bool);
  1652. // Properties:
  1653. bool animationEnabled;
  1654. /* readonly */
  1655. Array<Variant> attributeDefaults;
  1656. /* readonly */
  1657. Array<AttributeInfo> attributeInfos;
  1658. Array<Variant> attributes;
  1659. /* readonly */
  1660. String category;
  1661. int categoryBits;
  1662. Vector2 center;
  1663. float density;
  1664. bool enabled;
  1665. /* readonly */
  1666. bool enabledEffective;
  1667. float friction;
  1668. int groupIndex;
  1669. /* readonly */
  1670. uint id;
  1671. /* readonly */
  1672. float inertia;
  1673. int maskBits;
  1674. /* readonly */
  1675. float mass;
  1676. /* readonly */
  1677. Vector2 massCenter;
  1678. /* readonly */
  1679. Node node;
  1680. /* readonly */
  1681. uint numAttributes;
  1682. ObjectAnimation objectAnimation;
  1683. float radius;
  1684. /* readonly */
  1685. int refs;
  1686. float restitution;
  1687. bool temporary;
  1688. bool trigger;
  1689. /* readonly */
  1690. StringHash type;
  1691. /* readonly */
  1692. String typeName;
  1693. /* readonly */
  1694. int weakRefs;
  1695. };
  1696. class CollisionEdge2D
  1697. {
  1698. // Methods:
  1699. void ApplyAttributes();
  1700. void DrawDebugGeometry(DebugRenderer, bool);
  1701. Variant GetAttribute(const String&) const;
  1702. ValueAnimation GetAttributeAnimation(const String&) const;
  1703. float GetAttributeAnimationSpeed(const String&) const;
  1704. float GetAttributeAnimationTime(const String&) const;
  1705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1706. Variant GetAttributeDefault(const String&) const;
  1707. bool GetInterceptNetworkUpdate(const String&) const;
  1708. bool HasSubscribedToEvent(Object, const String&);
  1709. bool HasSubscribedToEvent(const String&);
  1710. bool Load(File, bool = false);
  1711. bool Load(VectorBuffer&, bool = false);
  1712. bool LoadJSON(const JSONValue&, bool = false);
  1713. bool LoadXML(const XMLElement&, bool = false);
  1714. void MarkNetworkUpdate() const;
  1715. void Remove();
  1716. void RemoveAttributeAnimation(const String&);
  1717. void RemoveInstanceDefault();
  1718. void RemoveObjectAnimation();
  1719. void ResetToDefault();
  1720. bool Save(File) const;
  1721. bool Save(VectorBuffer&) const;
  1722. bool SaveJSON(JSONValue&) const;
  1723. bool SaveXML(XMLElement&) const;
  1724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1725. void SetAnimationTime(float);
  1726. bool SetAttribute(const String&, const Variant&);
  1727. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1728. void SetAttributeAnimationSpeed(const String&, float);
  1729. void SetAttributeAnimationTime(const String&, float);
  1730. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1731. void SetInterceptNetworkUpdate(const String&, bool);
  1732. void SetVertices(const Vector2&, const Vector2&);
  1733. // Properties:
  1734. bool animationEnabled;
  1735. /* readonly */
  1736. Array<Variant> attributeDefaults;
  1737. /* readonly */
  1738. Array<AttributeInfo> attributeInfos;
  1739. Array<Variant> attributes;
  1740. /* readonly */
  1741. String category;
  1742. int categoryBits;
  1743. float density;
  1744. bool enabled;
  1745. /* readonly */
  1746. bool enabledEffective;
  1747. float friction;
  1748. int groupIndex;
  1749. /* readonly */
  1750. uint id;
  1751. /* readonly */
  1752. float inertia;
  1753. int maskBits;
  1754. /* readonly */
  1755. float mass;
  1756. /* readonly */
  1757. Vector2 massCenter;
  1758. /* readonly */
  1759. Node node;
  1760. /* readonly */
  1761. uint numAttributes;
  1762. ObjectAnimation objectAnimation;
  1763. /* readonly */
  1764. int refs;
  1765. float restitution;
  1766. bool temporary;
  1767. bool trigger;
  1768. /* readonly */
  1769. StringHash type;
  1770. /* readonly */
  1771. String typeName;
  1772. Vector2 vertex1;
  1773. Vector2 vertex2;
  1774. /* readonly */
  1775. int weakRefs;
  1776. };
  1777. class CollisionPolygon2D
  1778. {
  1779. // Methods:
  1780. void ApplyAttributes();
  1781. void DrawDebugGeometry(DebugRenderer, bool);
  1782. Variant GetAttribute(const String&) const;
  1783. ValueAnimation GetAttributeAnimation(const String&) const;
  1784. float GetAttributeAnimationSpeed(const String&) const;
  1785. float GetAttributeAnimationTime(const String&) const;
  1786. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1787. Variant GetAttributeDefault(const String&) const;
  1788. bool GetInterceptNetworkUpdate(const String&) const;
  1789. Array<Vector2> GetVertices() const;
  1790. bool HasSubscribedToEvent(Object, const String&);
  1791. bool HasSubscribedToEvent(const String&);
  1792. bool Load(File, bool = false);
  1793. bool Load(VectorBuffer&, bool = false);
  1794. bool LoadJSON(const JSONValue&, bool = false);
  1795. bool LoadXML(const XMLElement&, bool = false);
  1796. void MarkNetworkUpdate() const;
  1797. void Remove();
  1798. void RemoveAttributeAnimation(const String&);
  1799. void RemoveInstanceDefault();
  1800. void RemoveObjectAnimation();
  1801. void ResetToDefault();
  1802. bool Save(File) const;
  1803. bool Save(VectorBuffer&) const;
  1804. bool SaveJSON(JSONValue&) const;
  1805. bool SaveXML(XMLElement&) const;
  1806. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1807. void SetAnimationTime(float);
  1808. bool SetAttribute(const String&, const Variant&);
  1809. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1810. void SetAttributeAnimationSpeed(const String&, float);
  1811. void SetAttributeAnimationTime(const String&, float);
  1812. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1813. void SetInterceptNetworkUpdate(const String&, bool);
  1814. void SetVertex(uint, const Vector2&);
  1815. void SetVertices(Array<Vector2>);
  1816. const Vector2& GetVertex(uint) const;
  1817. // Properties:
  1818. bool animationEnabled;
  1819. /* readonly */
  1820. Array<Variant> attributeDefaults;
  1821. /* readonly */
  1822. Array<AttributeInfo> attributeInfos;
  1823. Array<Variant> attributes;
  1824. /* readonly */
  1825. String category;
  1826. int categoryBits;
  1827. float density;
  1828. bool enabled;
  1829. /* readonly */
  1830. bool enabledEffective;
  1831. float friction;
  1832. int groupIndex;
  1833. /* readonly */
  1834. uint id;
  1835. /* readonly */
  1836. float inertia;
  1837. int maskBits;
  1838. /* readonly */
  1839. float mass;
  1840. /* readonly */
  1841. Vector2 massCenter;
  1842. /* readonly */
  1843. Node node;
  1844. /* readonly */
  1845. uint numAttributes;
  1846. ObjectAnimation objectAnimation;
  1847. /* readonly */
  1848. int refs;
  1849. float restitution;
  1850. bool temporary;
  1851. bool trigger;
  1852. /* readonly */
  1853. StringHash type;
  1854. /* readonly */
  1855. String typeName;
  1856. uint vertexCount;
  1857. /* readonly */
  1858. int weakRefs;
  1859. };
  1860. class CollisionShape
  1861. {
  1862. // Methods:
  1863. void ApplyAttributes();
  1864. void DrawDebugGeometry(DebugRenderer, bool);
  1865. Variant GetAttribute(const String&) const;
  1866. ValueAnimation GetAttributeAnimation(const String&) const;
  1867. float GetAttributeAnimationSpeed(const String&) const;
  1868. float GetAttributeAnimationTime(const String&) const;
  1869. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1870. Variant GetAttributeDefault(const String&) const;
  1871. bool GetInterceptNetworkUpdate(const String&) const;
  1872. bool HasSubscribedToEvent(Object, const String&);
  1873. bool HasSubscribedToEvent(const String&);
  1874. bool Load(File, bool = false);
  1875. bool Load(VectorBuffer&, bool = false);
  1876. bool LoadJSON(const JSONValue&, bool = false);
  1877. bool LoadXML(const XMLElement&, bool = false);
  1878. void MarkNetworkUpdate() const;
  1879. void Remove();
  1880. void RemoveAttributeAnimation(const String&);
  1881. void RemoveInstanceDefault();
  1882. void RemoveObjectAnimation();
  1883. void ResetToDefault();
  1884. bool Save(File) const;
  1885. bool Save(VectorBuffer&) const;
  1886. bool SaveJSON(JSONValue&) const;
  1887. bool SaveXML(XMLElement&) const;
  1888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1889. void SetAnimationTime(float);
  1890. bool SetAttribute(const String&, const Variant&);
  1891. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1892. void SetAttributeAnimationSpeed(const String&, float);
  1893. void SetAttributeAnimationTime(const String&, float);
  1894. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1895. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1896. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1897. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1898. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1899. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1900. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1901. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1902. void SetInterceptNetworkUpdate(const String&, bool);
  1903. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1904. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1905. void SetTerrain(uint = 0);
  1906. void SetTransform(const Vector3&, const Quaternion&);
  1907. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1908. // Properties:
  1909. bool animationEnabled;
  1910. /* readonly */
  1911. Array<Variant> attributeDefaults;
  1912. /* readonly */
  1913. Array<AttributeInfo> attributeInfos;
  1914. Array<Variant> attributes;
  1915. /* readonly */
  1916. String category;
  1917. bool enabled;
  1918. /* readonly */
  1919. bool enabledEffective;
  1920. /* readonly */
  1921. uint id;
  1922. uint lodLevel;
  1923. float margin;
  1924. Model model;
  1925. /* readonly */
  1926. Node node;
  1927. /* readonly */
  1928. uint numAttributes;
  1929. ObjectAnimation objectAnimation;
  1930. Vector3 position;
  1931. /* readonly */
  1932. int refs;
  1933. Quaternion rotation;
  1934. ShapeType shapeType;
  1935. Vector3 size;
  1936. bool temporary;
  1937. /* readonly */
  1938. StringHash type;
  1939. /* readonly */
  1940. String typeName;
  1941. /* readonly */
  1942. int weakRefs;
  1943. /* readonly */
  1944. BoundingBox worldBoundingBox;
  1945. };
  1946. class CollisionShape2D
  1947. {
  1948. // Methods:
  1949. void ApplyAttributes();
  1950. void DrawDebugGeometry(DebugRenderer, bool);
  1951. Variant GetAttribute(const String&) const;
  1952. ValueAnimation GetAttributeAnimation(const String&) const;
  1953. float GetAttributeAnimationSpeed(const String&) const;
  1954. float GetAttributeAnimationTime(const String&) const;
  1955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1956. Variant GetAttributeDefault(const String&) const;
  1957. bool GetInterceptNetworkUpdate(const String&) const;
  1958. bool HasSubscribedToEvent(Object, const String&);
  1959. bool HasSubscribedToEvent(const String&);
  1960. bool Load(File, bool = false);
  1961. bool Load(VectorBuffer&, bool = false);
  1962. bool LoadJSON(const JSONValue&, bool = false);
  1963. bool LoadXML(const XMLElement&, bool = false);
  1964. void MarkNetworkUpdate() const;
  1965. void Remove();
  1966. void RemoveAttributeAnimation(const String&);
  1967. void RemoveInstanceDefault();
  1968. void RemoveObjectAnimation();
  1969. void ResetToDefault();
  1970. bool Save(File) const;
  1971. bool Save(VectorBuffer&) const;
  1972. bool SaveJSON(JSONValue&) const;
  1973. bool SaveXML(XMLElement&) const;
  1974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1975. void SetAnimationTime(float);
  1976. bool SetAttribute(const String&, const Variant&);
  1977. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1978. void SetAttributeAnimationSpeed(const String&, float);
  1979. void SetAttributeAnimationTime(const String&, float);
  1980. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1981. void SetInterceptNetworkUpdate(const String&, bool);
  1982. // Properties:
  1983. bool animationEnabled;
  1984. /* readonly */
  1985. Array<Variant> attributeDefaults;
  1986. /* readonly */
  1987. Array<AttributeInfo> attributeInfos;
  1988. Array<Variant> attributes;
  1989. /* readonly */
  1990. String category;
  1991. int categoryBits;
  1992. float density;
  1993. bool enabled;
  1994. /* readonly */
  1995. bool enabledEffective;
  1996. float friction;
  1997. int groupIndex;
  1998. /* readonly */
  1999. uint id;
  2000. /* readonly */
  2001. float inertia;
  2002. int maskBits;
  2003. /* readonly */
  2004. float mass;
  2005. /* readonly */
  2006. Vector2 massCenter;
  2007. /* readonly */
  2008. Node node;
  2009. /* readonly */
  2010. uint numAttributes;
  2011. ObjectAnimation objectAnimation;
  2012. /* readonly */
  2013. int refs;
  2014. float restitution;
  2015. bool temporary;
  2016. bool trigger;
  2017. /* readonly */
  2018. StringHash type;
  2019. /* readonly */
  2020. String typeName;
  2021. /* readonly */
  2022. int weakRefs;
  2023. };
  2024. class Color
  2025. {
  2026. // Methods:
  2027. Color Abs() const;
  2028. float Average() const;
  2029. float Chroma() const;
  2030. void Clip(bool);
  2031. bool Equals() const;
  2032. void FromHSL(float, float, float, float);
  2033. void FromHSV(float, float, float, float);
  2034. float Hue() const;
  2035. void Invert(bool);
  2036. Color Lerp(const Color&, float) const;
  2037. float Lightness() const;
  2038. float Luma() const;
  2039. float MaxRGB() const;
  2040. float MinRGB() const;
  2041. float Range() const;
  2042. float SaturationHSL() const;
  2043. float SaturationHSV() const;
  2044. float SumRGB() const;
  2045. Vector3 ToHSL() const;
  2046. Vector3 ToHSV() const;
  2047. String ToString() const;
  2048. uint ToUInt() const;
  2049. float Value() const;
  2050. // Properties:
  2051. float a;
  2052. float b;
  2053. /* readonly */
  2054. Array<float> data;
  2055. float g;
  2056. float r;
  2057. /* readonly */
  2058. Vector3 rgb;
  2059. /* readonly */
  2060. Vector4 rgba;
  2061. };
  2062. class ColorFrame
  2063. {
  2064. // Properties:
  2065. Color color;
  2066. float time;
  2067. };
  2068. class Component
  2069. {
  2070. // Methods:
  2071. void ApplyAttributes();
  2072. void DrawDebugGeometry(DebugRenderer, bool);
  2073. Variant GetAttribute(const String&) const;
  2074. ValueAnimation GetAttributeAnimation(const String&) const;
  2075. float GetAttributeAnimationSpeed(const String&) const;
  2076. float GetAttributeAnimationTime(const String&) const;
  2077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2078. Variant GetAttributeDefault(const String&) const;
  2079. bool GetInterceptNetworkUpdate(const String&) const;
  2080. bool HasSubscribedToEvent(Object, const String&);
  2081. bool HasSubscribedToEvent(const String&);
  2082. bool Load(File, bool = false);
  2083. bool Load(VectorBuffer&, bool = false);
  2084. bool LoadJSON(const JSONValue&, bool = false);
  2085. bool LoadXML(const XMLElement&, bool = false);
  2086. void MarkNetworkUpdate() const;
  2087. void Remove();
  2088. void RemoveAttributeAnimation(const String&);
  2089. void RemoveInstanceDefault();
  2090. void RemoveObjectAnimation();
  2091. void ResetToDefault();
  2092. bool Save(File) const;
  2093. bool Save(VectorBuffer&) const;
  2094. bool SaveJSON(JSONValue&) const;
  2095. bool SaveXML(XMLElement&) const;
  2096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2097. void SetAnimationTime(float);
  2098. bool SetAttribute(const String&, const Variant&);
  2099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2100. void SetAttributeAnimationSpeed(const String&, float);
  2101. void SetAttributeAnimationTime(const String&, float);
  2102. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2103. void SetInterceptNetworkUpdate(const String&, bool);
  2104. // Properties:
  2105. bool animationEnabled;
  2106. /* readonly */
  2107. Array<Variant> attributeDefaults;
  2108. /* readonly */
  2109. Array<AttributeInfo> attributeInfos;
  2110. Array<Variant> attributes;
  2111. /* readonly */
  2112. String category;
  2113. bool enabled;
  2114. /* readonly */
  2115. bool enabledEffective;
  2116. /* readonly */
  2117. uint id;
  2118. /* readonly */
  2119. Node node;
  2120. /* readonly */
  2121. uint numAttributes;
  2122. ObjectAnimation objectAnimation;
  2123. /* readonly */
  2124. int refs;
  2125. bool temporary;
  2126. /* readonly */
  2127. StringHash type;
  2128. /* readonly */
  2129. String typeName;
  2130. /* readonly */
  2131. int weakRefs;
  2132. };
  2133. class Connection
  2134. {
  2135. // Methods:
  2136. void Disconnect(int = 0);
  2137. bool HasSubscribedToEvent(Object, const String&);
  2138. bool HasSubscribedToEvent(const String&);
  2139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2140. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2141. void SendPackageToClient(PackageFile);
  2142. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2143. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2144. String ToString() const;
  2145. // Properties:
  2146. /* readonly */
  2147. String address;
  2148. /* readonly */
  2149. float bytesInPerSec;
  2150. /* readonly */
  2151. float bytesOutPerSec;
  2152. /* readonly */
  2153. String category;
  2154. /* readonly */
  2155. bool client;
  2156. /* readonly */
  2157. bool connectPending;
  2158. /* readonly */
  2159. bool connected;
  2160. Controls controls;
  2161. /* readonly */
  2162. String downloadName;
  2163. /* readonly */
  2164. float downloadProgress;
  2165. VariantMap identity;
  2166. /* readonly */
  2167. float lastHeardTime;
  2168. bool logStatistics;
  2169. /* readonly */
  2170. uint numDownloads;
  2171. /* readonly */
  2172. float packetsInPerSec;
  2173. /* readonly */
  2174. float packetsOutPerSec;
  2175. /* readonly */
  2176. uint16 port;
  2177. Vector3 position;
  2178. /* readonly */
  2179. int refs;
  2180. Quaternion rotation;
  2181. /* readonly */
  2182. float roundTripTime;
  2183. Scene scene;
  2184. /* readonly */
  2185. bool sceneLoaded;
  2186. uint8 timeStamp;
  2187. /* readonly */
  2188. StringHash type;
  2189. /* readonly */
  2190. String typeName;
  2191. /* readonly */
  2192. int weakRefs;
  2193. };
  2194. class Console
  2195. {
  2196. // Methods:
  2197. void CopySelectedRows() const;
  2198. bool HasSubscribedToEvent(Object, const String&);
  2199. bool HasSubscribedToEvent(const String&);
  2200. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2201. void Toggle();
  2202. void UpdateElements();
  2203. // Properties:
  2204. bool autoVisibleOnError;
  2205. /* readonly */
  2206. BorderImage background;
  2207. /* readonly */
  2208. String category;
  2209. /* readonly */
  2210. Button closeButton;
  2211. String commandInterpreter;
  2212. XMLFile defaultStyle;
  2213. bool focusOnShow;
  2214. /* readonly */
  2215. uint historyPosition;
  2216. /* readonly */
  2217. Array<String> historyRow;
  2218. /* readonly */
  2219. LineEdit lineEdit;
  2220. uint numBufferedRows;
  2221. uint numHistoryRows;
  2222. uint numRows;
  2223. /* readonly */
  2224. int refs;
  2225. /* readonly */
  2226. StringHash type;
  2227. /* readonly */
  2228. String typeName;
  2229. bool visible;
  2230. /* readonly */
  2231. int weakRefs;
  2232. };
  2233. class Constraint
  2234. {
  2235. // Methods:
  2236. void ApplyAttributes();
  2237. void DrawDebugGeometry(DebugRenderer, bool);
  2238. Variant GetAttribute(const String&) const;
  2239. ValueAnimation GetAttributeAnimation(const String&) const;
  2240. float GetAttributeAnimationSpeed(const String&) const;
  2241. float GetAttributeAnimationTime(const String&) const;
  2242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2243. Variant GetAttributeDefault(const String&) const;
  2244. bool GetInterceptNetworkUpdate(const String&) const;
  2245. bool HasSubscribedToEvent(Object, const String&);
  2246. bool HasSubscribedToEvent(const String&);
  2247. bool Load(File, bool = false);
  2248. bool Load(VectorBuffer&, bool = false);
  2249. bool LoadJSON(const JSONValue&, bool = false);
  2250. bool LoadXML(const XMLElement&, bool = false);
  2251. void MarkNetworkUpdate() const;
  2252. void Remove();
  2253. void RemoveAttributeAnimation(const String&);
  2254. void RemoveInstanceDefault();
  2255. void RemoveObjectAnimation();
  2256. void ResetToDefault();
  2257. bool Save(File) const;
  2258. bool Save(VectorBuffer&) const;
  2259. bool SaveJSON(JSONValue&) const;
  2260. bool SaveXML(XMLElement&) const;
  2261. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2262. void SetAnimationTime(float);
  2263. bool SetAttribute(const String&, const Variant&);
  2264. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2265. void SetAttributeAnimationSpeed(const String&, float);
  2266. void SetAttributeAnimationTime(const String&, float);
  2267. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2268. void SetInterceptNetworkUpdate(const String&, bool);
  2269. // Properties:
  2270. bool animationEnabled;
  2271. /* readonly */
  2272. Array<Variant> attributeDefaults;
  2273. /* readonly */
  2274. Array<AttributeInfo> attributeInfos;
  2275. Array<Variant> attributes;
  2276. /* writeonly */
  2277. Vector3 axis;
  2278. /* readonly */
  2279. String category;
  2280. float cfm;
  2281. ConstraintType constraintType;
  2282. bool disableCollision;
  2283. bool enabled;
  2284. /* readonly */
  2285. bool enabledEffective;
  2286. float erp;
  2287. Vector2 highLimit;
  2288. /* readonly */
  2289. uint id;
  2290. Vector2 lowLimit;
  2291. /* readonly */
  2292. Node node;
  2293. /* readonly */
  2294. uint numAttributes;
  2295. ObjectAnimation objectAnimation;
  2296. /* writeonly */
  2297. Vector3 otherAxis;
  2298. RigidBody otherBody;
  2299. Vector3 otherPosition;
  2300. Quaternion otherRotation;
  2301. /* readonly */
  2302. RigidBody ownBody;
  2303. Vector3 position;
  2304. /* readonly */
  2305. int refs;
  2306. Quaternion rotation;
  2307. bool temporary;
  2308. /* readonly */
  2309. StringHash type;
  2310. /* readonly */
  2311. String typeName;
  2312. /* readonly */
  2313. int weakRefs;
  2314. Vector3 worldPosition;
  2315. };
  2316. class Constraint2D
  2317. {
  2318. // Methods:
  2319. void ApplyAttributes();
  2320. void DrawDebugGeometry(DebugRenderer, bool);
  2321. Variant GetAttribute(const String&) const;
  2322. ValueAnimation GetAttributeAnimation(const String&) const;
  2323. float GetAttributeAnimationSpeed(const String&) const;
  2324. float GetAttributeAnimationTime(const String&) const;
  2325. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2326. Variant GetAttributeDefault(const String&) const;
  2327. bool GetInterceptNetworkUpdate(const String&) const;
  2328. bool HasSubscribedToEvent(Object, const String&);
  2329. bool HasSubscribedToEvent(const String&);
  2330. bool Load(File, bool = false);
  2331. bool Load(VectorBuffer&, bool = false);
  2332. bool LoadJSON(const JSONValue&, bool = false);
  2333. bool LoadXML(const XMLElement&, bool = false);
  2334. void MarkNetworkUpdate() const;
  2335. void Remove();
  2336. void RemoveAttributeAnimation(const String&);
  2337. void RemoveInstanceDefault();
  2338. void RemoveObjectAnimation();
  2339. void ResetToDefault();
  2340. bool Save(File) const;
  2341. bool Save(VectorBuffer&) const;
  2342. bool SaveJSON(JSONValue&) const;
  2343. bool SaveXML(XMLElement&) const;
  2344. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2345. void SetAnimationTime(float);
  2346. bool SetAttribute(const String&, const Variant&);
  2347. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2348. void SetAttributeAnimationSpeed(const String&, float);
  2349. void SetAttributeAnimationTime(const String&, float);
  2350. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2351. void SetInterceptNetworkUpdate(const String&, bool);
  2352. // Properties:
  2353. bool animationEnabled;
  2354. /* readonly */
  2355. Array<Variant> attributeDefaults;
  2356. /* readonly */
  2357. Array<AttributeInfo> attributeInfos;
  2358. Array<Variant> attributes;
  2359. /* readonly */
  2360. String category;
  2361. bool collideConnected;
  2362. bool enabled;
  2363. /* readonly */
  2364. bool enabledEffective;
  2365. /* readonly */
  2366. uint id;
  2367. /* readonly */
  2368. Node node;
  2369. /* readonly */
  2370. uint numAttributes;
  2371. ObjectAnimation objectAnimation;
  2372. RigidBody2D otherBody;
  2373. /* readonly */
  2374. RigidBody2D ownerBody;
  2375. /* readonly */
  2376. int refs;
  2377. bool temporary;
  2378. /* readonly */
  2379. StringHash type;
  2380. /* readonly */
  2381. String typeName;
  2382. /* readonly */
  2383. int weakRefs;
  2384. };
  2385. class ConstraintDistance2D
  2386. {
  2387. // Methods:
  2388. void ApplyAttributes();
  2389. void DrawDebugGeometry(DebugRenderer, bool);
  2390. Variant GetAttribute(const String&) const;
  2391. ValueAnimation GetAttributeAnimation(const String&) const;
  2392. float GetAttributeAnimationSpeed(const String&) const;
  2393. float GetAttributeAnimationTime(const String&) const;
  2394. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2395. Variant GetAttributeDefault(const String&) const;
  2396. bool GetInterceptNetworkUpdate(const String&) const;
  2397. bool HasSubscribedToEvent(Object, const String&);
  2398. bool HasSubscribedToEvent(const String&);
  2399. bool Load(File, bool = false);
  2400. bool Load(VectorBuffer&, bool = false);
  2401. bool LoadJSON(const JSONValue&, bool = false);
  2402. bool LoadXML(const XMLElement&, bool = false);
  2403. void MarkNetworkUpdate() const;
  2404. void Remove();
  2405. void RemoveAttributeAnimation(const String&);
  2406. void RemoveInstanceDefault();
  2407. void RemoveObjectAnimation();
  2408. void ResetToDefault();
  2409. bool Save(File) const;
  2410. bool Save(VectorBuffer&) const;
  2411. bool SaveJSON(JSONValue&) const;
  2412. bool SaveXML(XMLElement&) const;
  2413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2414. void SetAnimationTime(float);
  2415. bool SetAttribute(const String&, const Variant&);
  2416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2417. void SetAttributeAnimationSpeed(const String&, float);
  2418. void SetAttributeAnimationTime(const String&, float);
  2419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2420. void SetInterceptNetworkUpdate(const String&, bool);
  2421. // Properties:
  2422. bool animationEnabled;
  2423. /* readonly */
  2424. Array<Variant> attributeDefaults;
  2425. /* readonly */
  2426. Array<AttributeInfo> attributeInfos;
  2427. Array<Variant> attributes;
  2428. /* readonly */
  2429. String category;
  2430. bool collideConnected;
  2431. float dampingRatio;
  2432. bool enabled;
  2433. /* readonly */
  2434. bool enabledEffective;
  2435. float frequencyHz;
  2436. /* readonly */
  2437. uint id;
  2438. /* readonly */
  2439. Node node;
  2440. /* readonly */
  2441. uint numAttributes;
  2442. ObjectAnimation objectAnimation;
  2443. RigidBody2D otherBody;
  2444. Vector2 otherBodyAnchor;
  2445. /* readonly */
  2446. RigidBody2D ownerBody;
  2447. Vector2 ownerBodyAnchor;
  2448. /* readonly */
  2449. int refs;
  2450. bool temporary;
  2451. /* readonly */
  2452. StringHash type;
  2453. /* readonly */
  2454. String typeName;
  2455. /* readonly */
  2456. int weakRefs;
  2457. };
  2458. class ConstraintFriction2D
  2459. {
  2460. // Methods:
  2461. void ApplyAttributes();
  2462. void DrawDebugGeometry(DebugRenderer, bool);
  2463. Variant GetAttribute(const String&) const;
  2464. ValueAnimation GetAttributeAnimation(const String&) const;
  2465. float GetAttributeAnimationSpeed(const String&) const;
  2466. float GetAttributeAnimationTime(const String&) const;
  2467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2468. Variant GetAttributeDefault(const String&) const;
  2469. bool GetInterceptNetworkUpdate(const String&) const;
  2470. bool HasSubscribedToEvent(Object, const String&);
  2471. bool HasSubscribedToEvent(const String&);
  2472. bool Load(File, bool = false);
  2473. bool Load(VectorBuffer&, bool = false);
  2474. bool LoadJSON(const JSONValue&, bool = false);
  2475. bool LoadXML(const XMLElement&, bool = false);
  2476. void MarkNetworkUpdate() const;
  2477. void Remove();
  2478. void RemoveAttributeAnimation(const String&);
  2479. void RemoveInstanceDefault();
  2480. void RemoveObjectAnimation();
  2481. void ResetToDefault();
  2482. bool Save(File) const;
  2483. bool Save(VectorBuffer&) const;
  2484. bool SaveJSON(JSONValue&) const;
  2485. bool SaveXML(XMLElement&) const;
  2486. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2487. void SetAnimationTime(float);
  2488. bool SetAttribute(const String&, const Variant&);
  2489. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2490. void SetAttributeAnimationSpeed(const String&, float);
  2491. void SetAttributeAnimationTime(const String&, float);
  2492. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2493. void SetInterceptNetworkUpdate(const String&, bool);
  2494. // Properties:
  2495. Vector2 anchor;
  2496. bool animationEnabled;
  2497. /* readonly */
  2498. Array<Variant> attributeDefaults;
  2499. /* readonly */
  2500. Array<AttributeInfo> attributeInfos;
  2501. Array<Variant> attributes;
  2502. /* readonly */
  2503. String category;
  2504. bool collideConnected;
  2505. bool enabled;
  2506. /* readonly */
  2507. bool enabledEffective;
  2508. /* readonly */
  2509. uint id;
  2510. float maxForce;
  2511. float maxTorque;
  2512. /* readonly */
  2513. Node node;
  2514. /* readonly */
  2515. uint numAttributes;
  2516. ObjectAnimation objectAnimation;
  2517. RigidBody2D otherBody;
  2518. /* readonly */
  2519. RigidBody2D ownerBody;
  2520. /* readonly */
  2521. int refs;
  2522. bool temporary;
  2523. /* readonly */
  2524. StringHash type;
  2525. /* readonly */
  2526. String typeName;
  2527. /* readonly */
  2528. int weakRefs;
  2529. };
  2530. class ConstraintGear2D
  2531. {
  2532. // Methods:
  2533. void ApplyAttributes();
  2534. void DrawDebugGeometry(DebugRenderer, bool);
  2535. Variant GetAttribute(const String&) const;
  2536. ValueAnimation GetAttributeAnimation(const String&) const;
  2537. float GetAttributeAnimationSpeed(const String&) const;
  2538. float GetAttributeAnimationTime(const String&) const;
  2539. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2540. Variant GetAttributeDefault(const String&) const;
  2541. bool GetInterceptNetworkUpdate(const String&) const;
  2542. bool HasSubscribedToEvent(Object, const String&);
  2543. bool HasSubscribedToEvent(const String&);
  2544. bool Load(File, bool = false);
  2545. bool Load(VectorBuffer&, bool = false);
  2546. bool LoadJSON(const JSONValue&, bool = false);
  2547. bool LoadXML(const XMLElement&, bool = false);
  2548. void MarkNetworkUpdate() const;
  2549. void Remove();
  2550. void RemoveAttributeAnimation(const String&);
  2551. void RemoveInstanceDefault();
  2552. void RemoveObjectAnimation();
  2553. void ResetToDefault();
  2554. bool Save(File) const;
  2555. bool Save(VectorBuffer&) const;
  2556. bool SaveJSON(JSONValue&) const;
  2557. bool SaveXML(XMLElement&) const;
  2558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2559. void SetAnimationTime(float);
  2560. bool SetAttribute(const String&, const Variant&);
  2561. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2562. void SetAttributeAnimationSpeed(const String&, float);
  2563. void SetAttributeAnimationTime(const String&, float);
  2564. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2565. void SetInterceptNetworkUpdate(const String&, bool);
  2566. // Properties:
  2567. bool animationEnabled;
  2568. /* readonly */
  2569. Array<Variant> attributeDefaults;
  2570. /* readonly */
  2571. Array<AttributeInfo> attributeInfos;
  2572. Array<Variant> attributes;
  2573. /* readonly */
  2574. String category;
  2575. bool collideConnected;
  2576. bool enabled;
  2577. /* readonly */
  2578. bool enabledEffective;
  2579. /* readonly */
  2580. uint id;
  2581. /* readonly */
  2582. Node node;
  2583. /* readonly */
  2584. uint numAttributes;
  2585. ObjectAnimation objectAnimation;
  2586. RigidBody2D otherBody;
  2587. Constraint2D otherConstraint;
  2588. /* readonly */
  2589. RigidBody2D ownerBody;
  2590. Constraint2D ownerConstraint;
  2591. float ratio;
  2592. /* readonly */
  2593. int refs;
  2594. bool temporary;
  2595. /* readonly */
  2596. StringHash type;
  2597. /* readonly */
  2598. String typeName;
  2599. /* readonly */
  2600. int weakRefs;
  2601. };
  2602. class ConstraintMotor2D
  2603. {
  2604. // Methods:
  2605. void ApplyAttributes();
  2606. void DrawDebugGeometry(DebugRenderer, bool);
  2607. Variant GetAttribute(const String&) const;
  2608. ValueAnimation GetAttributeAnimation(const String&) const;
  2609. float GetAttributeAnimationSpeed(const String&) const;
  2610. float GetAttributeAnimationTime(const String&) const;
  2611. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2612. Variant GetAttributeDefault(const String&) const;
  2613. bool GetInterceptNetworkUpdate(const String&) const;
  2614. bool HasSubscribedToEvent(Object, const String&);
  2615. bool HasSubscribedToEvent(const String&);
  2616. bool Load(File, bool = false);
  2617. bool Load(VectorBuffer&, bool = false);
  2618. bool LoadJSON(const JSONValue&, bool = false);
  2619. bool LoadXML(const XMLElement&, bool = false);
  2620. void MarkNetworkUpdate() const;
  2621. void Remove();
  2622. void RemoveAttributeAnimation(const String&);
  2623. void RemoveInstanceDefault();
  2624. void RemoveObjectAnimation();
  2625. void ResetToDefault();
  2626. bool Save(File) const;
  2627. bool Save(VectorBuffer&) const;
  2628. bool SaveJSON(JSONValue&) const;
  2629. bool SaveXML(XMLElement&) const;
  2630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2631. void SetAnimationTime(float);
  2632. bool SetAttribute(const String&, const Variant&);
  2633. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2634. void SetAttributeAnimationSpeed(const String&, float);
  2635. void SetAttributeAnimationTime(const String&, float);
  2636. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2637. void SetInterceptNetworkUpdate(const String&, bool);
  2638. // Properties:
  2639. float angularOffset;
  2640. bool animationEnabled;
  2641. /* readonly */
  2642. Array<Variant> attributeDefaults;
  2643. /* readonly */
  2644. Array<AttributeInfo> attributeInfos;
  2645. Array<Variant> attributes;
  2646. /* readonly */
  2647. String category;
  2648. bool collideConnected;
  2649. float correctionFactor;
  2650. bool enabled;
  2651. /* readonly */
  2652. bool enabledEffective;
  2653. /* readonly */
  2654. uint id;
  2655. Vector2 linearOffset;
  2656. float maxForce;
  2657. float maxTorque;
  2658. /* readonly */
  2659. Node node;
  2660. /* readonly */
  2661. uint numAttributes;
  2662. ObjectAnimation objectAnimation;
  2663. RigidBody2D otherBody;
  2664. /* readonly */
  2665. RigidBody2D ownerBody;
  2666. /* readonly */
  2667. int refs;
  2668. bool temporary;
  2669. /* readonly */
  2670. StringHash type;
  2671. /* readonly */
  2672. String typeName;
  2673. /* readonly */
  2674. int weakRefs;
  2675. };
  2676. class ConstraintMouse2D
  2677. {
  2678. // Methods:
  2679. void ApplyAttributes();
  2680. void DrawDebugGeometry(DebugRenderer, bool);
  2681. Variant GetAttribute(const String&) const;
  2682. ValueAnimation GetAttributeAnimation(const String&) const;
  2683. float GetAttributeAnimationSpeed(const String&) const;
  2684. float GetAttributeAnimationTime(const String&) const;
  2685. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2686. Variant GetAttributeDefault(const String&) const;
  2687. bool GetInterceptNetworkUpdate(const String&) const;
  2688. bool HasSubscribedToEvent(Object, const String&);
  2689. bool HasSubscribedToEvent(const String&);
  2690. bool Load(File, bool = false);
  2691. bool Load(VectorBuffer&, bool = false);
  2692. bool LoadJSON(const JSONValue&, bool = false);
  2693. bool LoadXML(const XMLElement&, bool = false);
  2694. void MarkNetworkUpdate() const;
  2695. void Remove();
  2696. void RemoveAttributeAnimation(const String&);
  2697. void RemoveInstanceDefault();
  2698. void RemoveObjectAnimation();
  2699. void ResetToDefault();
  2700. bool Save(File) const;
  2701. bool Save(VectorBuffer&) const;
  2702. bool SaveJSON(JSONValue&) const;
  2703. bool SaveXML(XMLElement&) const;
  2704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2705. void SetAnimationTime(float);
  2706. bool SetAttribute(const String&, const Variant&);
  2707. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2708. void SetAttributeAnimationSpeed(const String&, float);
  2709. void SetAttributeAnimationTime(const String&, float);
  2710. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2711. void SetInterceptNetworkUpdate(const String&, bool);
  2712. // Properties:
  2713. bool animationEnabled;
  2714. /* readonly */
  2715. Array<Variant> attributeDefaults;
  2716. /* readonly */
  2717. Array<AttributeInfo> attributeInfos;
  2718. Array<Variant> attributes;
  2719. /* readonly */
  2720. String category;
  2721. bool collideConnected;
  2722. float dampingRatio;
  2723. bool enabled;
  2724. /* readonly */
  2725. bool enabledEffective;
  2726. float frequencyHz;
  2727. /* readonly */
  2728. uint id;
  2729. float maxForce;
  2730. /* readonly */
  2731. Node node;
  2732. /* readonly */
  2733. uint numAttributes;
  2734. ObjectAnimation objectAnimation;
  2735. RigidBody2D otherBody;
  2736. /* readonly */
  2737. RigidBody2D ownerBody;
  2738. /* readonly */
  2739. int refs;
  2740. Vector2 target;
  2741. bool temporary;
  2742. /* readonly */
  2743. StringHash type;
  2744. /* readonly */
  2745. String typeName;
  2746. /* readonly */
  2747. int weakRefs;
  2748. };
  2749. class ConstraintPrismatic2D
  2750. {
  2751. // Methods:
  2752. void ApplyAttributes();
  2753. void DrawDebugGeometry(DebugRenderer, bool);
  2754. Variant GetAttribute(const String&) const;
  2755. ValueAnimation GetAttributeAnimation(const String&) const;
  2756. float GetAttributeAnimationSpeed(const String&) const;
  2757. float GetAttributeAnimationTime(const String&) const;
  2758. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2759. Variant GetAttributeDefault(const String&) const;
  2760. bool GetInterceptNetworkUpdate(const String&) const;
  2761. bool HasSubscribedToEvent(Object, const String&);
  2762. bool HasSubscribedToEvent(const String&);
  2763. bool Load(File, bool = false);
  2764. bool Load(VectorBuffer&, bool = false);
  2765. bool LoadJSON(const JSONValue&, bool = false);
  2766. bool LoadXML(const XMLElement&, bool = false);
  2767. void MarkNetworkUpdate() const;
  2768. void Remove();
  2769. void RemoveAttributeAnimation(const String&);
  2770. void RemoveInstanceDefault();
  2771. void RemoveObjectAnimation();
  2772. void ResetToDefault();
  2773. bool Save(File) const;
  2774. bool Save(VectorBuffer&) const;
  2775. bool SaveJSON(JSONValue&) const;
  2776. bool SaveXML(XMLElement&) const;
  2777. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2778. void SetAnimationTime(float);
  2779. bool SetAttribute(const String&, const Variant&);
  2780. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2781. void SetAttributeAnimationSpeed(const String&, float);
  2782. void SetAttributeAnimationTime(const String&, float);
  2783. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2784. void SetInterceptNetworkUpdate(const String&, bool);
  2785. // Properties:
  2786. Vector2 anchor;
  2787. bool animationEnabled;
  2788. /* readonly */
  2789. Array<Variant> attributeDefaults;
  2790. /* readonly */
  2791. Array<AttributeInfo> attributeInfos;
  2792. Array<Variant> attributes;
  2793. Vector2 axis;
  2794. /* readonly */
  2795. String category;
  2796. bool collideConnected;
  2797. bool enableLimit;
  2798. bool enableMotor;
  2799. bool enabled;
  2800. /* readonly */
  2801. bool enabledEffective;
  2802. /* readonly */
  2803. uint id;
  2804. float lowerTranslation;
  2805. float maxMotorForce;
  2806. float motorSpeed;
  2807. /* readonly */
  2808. Node node;
  2809. /* readonly */
  2810. uint numAttributes;
  2811. ObjectAnimation objectAnimation;
  2812. RigidBody2D otherBody;
  2813. /* readonly */
  2814. RigidBody2D ownerBody;
  2815. /* readonly */
  2816. int refs;
  2817. bool temporary;
  2818. /* readonly */
  2819. StringHash type;
  2820. /* readonly */
  2821. String typeName;
  2822. float upperTranslation;
  2823. /* readonly */
  2824. int weakRefs;
  2825. };
  2826. class ConstraintPulley2D
  2827. {
  2828. // Methods:
  2829. void ApplyAttributes();
  2830. void DrawDebugGeometry(DebugRenderer, bool);
  2831. Variant GetAttribute(const String&) const;
  2832. ValueAnimation GetAttributeAnimation(const String&) const;
  2833. float GetAttributeAnimationSpeed(const String&) const;
  2834. float GetAttributeAnimationTime(const String&) const;
  2835. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2836. Variant GetAttributeDefault(const String&) const;
  2837. bool GetInterceptNetworkUpdate(const String&) const;
  2838. bool HasSubscribedToEvent(Object, const String&);
  2839. bool HasSubscribedToEvent(const String&);
  2840. bool Load(File, bool = false);
  2841. bool Load(VectorBuffer&, bool = false);
  2842. bool LoadJSON(const JSONValue&, bool = false);
  2843. bool LoadXML(const XMLElement&, bool = false);
  2844. void MarkNetworkUpdate() const;
  2845. void Remove();
  2846. void RemoveAttributeAnimation(const String&);
  2847. void RemoveInstanceDefault();
  2848. void RemoveObjectAnimation();
  2849. void ResetToDefault();
  2850. bool Save(File) const;
  2851. bool Save(VectorBuffer&) const;
  2852. bool SaveJSON(JSONValue&) const;
  2853. bool SaveXML(XMLElement&) const;
  2854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2855. void SetAnimationTime(float);
  2856. bool SetAttribute(const String&, const Variant&);
  2857. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2858. void SetAttributeAnimationSpeed(const String&, float);
  2859. void SetAttributeAnimationTime(const String&, float);
  2860. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2861. void SetInterceptNetworkUpdate(const String&, bool);
  2862. // Properties:
  2863. bool animationEnabled;
  2864. /* readonly */
  2865. Array<Variant> attributeDefaults;
  2866. /* readonly */
  2867. Array<AttributeInfo> attributeInfos;
  2868. Array<Variant> attributes;
  2869. /* readonly */
  2870. String category;
  2871. bool collideConnected;
  2872. bool enabled;
  2873. /* readonly */
  2874. bool enabledEffective;
  2875. /* readonly */
  2876. uint id;
  2877. /* readonly */
  2878. Node node;
  2879. /* readonly */
  2880. uint numAttributes;
  2881. ObjectAnimation objectAnimation;
  2882. RigidBody2D otherBody;
  2883. Vector2 otherBodyAnchor;
  2884. Vector2 otherBodyGroundAnchor;
  2885. /* readonly */
  2886. RigidBody2D ownerBody;
  2887. Vector2 ownerBodyAnchor;
  2888. Vector2 ownerBodyGroundAnchor;
  2889. float ratio;
  2890. /* readonly */
  2891. int refs;
  2892. bool temporary;
  2893. /* readonly */
  2894. StringHash type;
  2895. /* readonly */
  2896. String typeName;
  2897. /* readonly */
  2898. int weakRefs;
  2899. };
  2900. class ConstraintRevolute2D
  2901. {
  2902. // Methods:
  2903. void ApplyAttributes();
  2904. void DrawDebugGeometry(DebugRenderer, bool);
  2905. Variant GetAttribute(const String&) const;
  2906. ValueAnimation GetAttributeAnimation(const String&) const;
  2907. float GetAttributeAnimationSpeed(const String&) const;
  2908. float GetAttributeAnimationTime(const String&) const;
  2909. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2910. Variant GetAttributeDefault(const String&) const;
  2911. bool GetInterceptNetworkUpdate(const String&) const;
  2912. bool HasSubscribedToEvent(Object, const String&);
  2913. bool HasSubscribedToEvent(const String&);
  2914. bool Load(File, bool = false);
  2915. bool Load(VectorBuffer&, bool = false);
  2916. bool LoadJSON(const JSONValue&, bool = false);
  2917. bool LoadXML(const XMLElement&, bool = false);
  2918. void MarkNetworkUpdate() const;
  2919. void Remove();
  2920. void RemoveAttributeAnimation(const String&);
  2921. void RemoveInstanceDefault();
  2922. void RemoveObjectAnimation();
  2923. void ResetToDefault();
  2924. bool Save(File) const;
  2925. bool Save(VectorBuffer&) const;
  2926. bool SaveJSON(JSONValue&) const;
  2927. bool SaveXML(XMLElement&) const;
  2928. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2929. void SetAnimationTime(float);
  2930. bool SetAttribute(const String&, const Variant&);
  2931. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2932. void SetAttributeAnimationSpeed(const String&, float);
  2933. void SetAttributeAnimationTime(const String&, float);
  2934. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2935. void SetInterceptNetworkUpdate(const String&, bool);
  2936. // Properties:
  2937. Vector2 anchor;
  2938. bool animationEnabled;
  2939. /* readonly */
  2940. Array<Variant> attributeDefaults;
  2941. /* readonly */
  2942. Array<AttributeInfo> attributeInfos;
  2943. Array<Variant> attributes;
  2944. /* readonly */
  2945. String category;
  2946. bool collideConnected;
  2947. bool enableLimit;
  2948. bool enableMotor;
  2949. bool enabled;
  2950. /* readonly */
  2951. bool enabledEffective;
  2952. /* readonly */
  2953. uint id;
  2954. float lowerAngle;
  2955. float maxMotorTorque;
  2956. float motorSpeed;
  2957. /* readonly */
  2958. Node node;
  2959. /* readonly */
  2960. uint numAttributes;
  2961. ObjectAnimation objectAnimation;
  2962. RigidBody2D otherBody;
  2963. /* readonly */
  2964. RigidBody2D ownerBody;
  2965. /* readonly */
  2966. int refs;
  2967. bool temporary;
  2968. /* readonly */
  2969. StringHash type;
  2970. /* readonly */
  2971. String typeName;
  2972. float upperAngle;
  2973. /* readonly */
  2974. int weakRefs;
  2975. };
  2976. class ConstraintRope2D
  2977. {
  2978. // Methods:
  2979. void ApplyAttributes();
  2980. void DrawDebugGeometry(DebugRenderer, bool);
  2981. Variant GetAttribute(const String&) const;
  2982. ValueAnimation GetAttributeAnimation(const String&) const;
  2983. float GetAttributeAnimationSpeed(const String&) const;
  2984. float GetAttributeAnimationTime(const String&) const;
  2985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2986. Variant GetAttributeDefault(const String&) const;
  2987. bool GetInterceptNetworkUpdate(const String&) const;
  2988. bool HasSubscribedToEvent(Object, const String&);
  2989. bool HasSubscribedToEvent(const String&);
  2990. bool Load(File, bool = false);
  2991. bool Load(VectorBuffer&, bool = false);
  2992. bool LoadJSON(const JSONValue&, bool = false);
  2993. bool LoadXML(const XMLElement&, bool = false);
  2994. void MarkNetworkUpdate() const;
  2995. void Remove();
  2996. void RemoveAttributeAnimation(const String&);
  2997. void RemoveInstanceDefault();
  2998. void RemoveObjectAnimation();
  2999. void ResetToDefault();
  3000. bool Save(File) const;
  3001. bool Save(VectorBuffer&) const;
  3002. bool SaveJSON(JSONValue&) const;
  3003. bool SaveXML(XMLElement&) const;
  3004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3005. void SetAnimationTime(float);
  3006. bool SetAttribute(const String&, const Variant&);
  3007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3008. void SetAttributeAnimationSpeed(const String&, float);
  3009. void SetAttributeAnimationTime(const String&, float);
  3010. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3011. void SetInterceptNetworkUpdate(const String&, bool);
  3012. // Properties:
  3013. bool animationEnabled;
  3014. /* readonly */
  3015. Array<Variant> attributeDefaults;
  3016. /* readonly */
  3017. Array<AttributeInfo> attributeInfos;
  3018. Array<Variant> attributes;
  3019. /* readonly */
  3020. String category;
  3021. bool collideConnected;
  3022. bool enabled;
  3023. /* readonly */
  3024. bool enabledEffective;
  3025. /* readonly */
  3026. uint id;
  3027. float maxLength;
  3028. /* readonly */
  3029. Node node;
  3030. /* readonly */
  3031. uint numAttributes;
  3032. ObjectAnimation objectAnimation;
  3033. RigidBody2D otherBody;
  3034. Vector2 otherBodyAnchor;
  3035. /* readonly */
  3036. RigidBody2D ownerBody;
  3037. Vector2 ownerBodyAnchor;
  3038. /* readonly */
  3039. int refs;
  3040. bool temporary;
  3041. /* readonly */
  3042. StringHash type;
  3043. /* readonly */
  3044. String typeName;
  3045. /* readonly */
  3046. int weakRefs;
  3047. };
  3048. class ConstraintWeld2D
  3049. {
  3050. // Methods:
  3051. void ApplyAttributes();
  3052. void DrawDebugGeometry(DebugRenderer, bool);
  3053. Variant GetAttribute(const String&) const;
  3054. ValueAnimation GetAttributeAnimation(const String&) const;
  3055. float GetAttributeAnimationSpeed(const String&) const;
  3056. float GetAttributeAnimationTime(const String&) const;
  3057. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3058. Variant GetAttributeDefault(const String&) const;
  3059. bool GetInterceptNetworkUpdate(const String&) const;
  3060. bool HasSubscribedToEvent(Object, const String&);
  3061. bool HasSubscribedToEvent(const String&);
  3062. bool Load(File, bool = false);
  3063. bool Load(VectorBuffer&, bool = false);
  3064. bool LoadJSON(const JSONValue&, bool = false);
  3065. bool LoadXML(const XMLElement&, bool = false);
  3066. void MarkNetworkUpdate() const;
  3067. void Remove();
  3068. void RemoveAttributeAnimation(const String&);
  3069. void RemoveInstanceDefault();
  3070. void RemoveObjectAnimation();
  3071. void ResetToDefault();
  3072. bool Save(File) const;
  3073. bool Save(VectorBuffer&) const;
  3074. bool SaveJSON(JSONValue&) const;
  3075. bool SaveXML(XMLElement&) const;
  3076. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3077. void SetAnimationTime(float);
  3078. bool SetAttribute(const String&, const Variant&);
  3079. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3080. void SetAttributeAnimationSpeed(const String&, float);
  3081. void SetAttributeAnimationTime(const String&, float);
  3082. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3083. void SetInterceptNetworkUpdate(const String&, bool);
  3084. // Properties:
  3085. Vector2 anchor;
  3086. bool animationEnabled;
  3087. /* readonly */
  3088. Array<Variant> attributeDefaults;
  3089. /* readonly */
  3090. Array<AttributeInfo> attributeInfos;
  3091. Array<Variant> attributes;
  3092. /* readonly */
  3093. String category;
  3094. bool collideConnected;
  3095. float dampingRatio;
  3096. bool enabled;
  3097. /* readonly */
  3098. bool enabledEffective;
  3099. float frequencyHz;
  3100. /* readonly */
  3101. uint id;
  3102. /* readonly */
  3103. Node node;
  3104. /* readonly */
  3105. uint numAttributes;
  3106. ObjectAnimation objectAnimation;
  3107. RigidBody2D otherBody;
  3108. /* readonly */
  3109. RigidBody2D ownerBody;
  3110. /* readonly */
  3111. int refs;
  3112. bool temporary;
  3113. /* readonly */
  3114. StringHash type;
  3115. /* readonly */
  3116. String typeName;
  3117. /* readonly */
  3118. int weakRefs;
  3119. };
  3120. class ConstraintWheel2D
  3121. {
  3122. // Methods:
  3123. void ApplyAttributes();
  3124. void DrawDebugGeometry(DebugRenderer, bool);
  3125. Variant GetAttribute(const String&) const;
  3126. ValueAnimation GetAttributeAnimation(const String&) const;
  3127. float GetAttributeAnimationSpeed(const String&) const;
  3128. float GetAttributeAnimationTime(const String&) const;
  3129. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3130. Variant GetAttributeDefault(const String&) const;
  3131. bool GetInterceptNetworkUpdate(const String&) const;
  3132. bool HasSubscribedToEvent(Object, const String&);
  3133. bool HasSubscribedToEvent(const String&);
  3134. bool Load(File, bool = false);
  3135. bool Load(VectorBuffer&, bool = false);
  3136. bool LoadJSON(const JSONValue&, bool = false);
  3137. bool LoadXML(const XMLElement&, bool = false);
  3138. void MarkNetworkUpdate() const;
  3139. void Remove();
  3140. void RemoveAttributeAnimation(const String&);
  3141. void RemoveInstanceDefault();
  3142. void RemoveObjectAnimation();
  3143. void ResetToDefault();
  3144. bool Save(File) const;
  3145. bool Save(VectorBuffer&) const;
  3146. bool SaveJSON(JSONValue&) const;
  3147. bool SaveXML(XMLElement&) const;
  3148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3149. void SetAnimationTime(float);
  3150. bool SetAttribute(const String&, const Variant&);
  3151. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3152. void SetAttributeAnimationSpeed(const String&, float);
  3153. void SetAttributeAnimationTime(const String&, float);
  3154. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3155. void SetInterceptNetworkUpdate(const String&, bool);
  3156. // Properties:
  3157. Vector2 anchor;
  3158. bool animationEnabled;
  3159. /* readonly */
  3160. Array<Variant> attributeDefaults;
  3161. /* readonly */
  3162. Array<AttributeInfo> attributeInfos;
  3163. Array<Variant> attributes;
  3164. Vector2 axis;
  3165. /* readonly */
  3166. String category;
  3167. bool collideConnected;
  3168. float dampingRatio;
  3169. bool enableMotor;
  3170. bool enabled;
  3171. /* readonly */
  3172. bool enabledEffective;
  3173. float frequencyHz;
  3174. /* readonly */
  3175. uint id;
  3176. float maxMotorTorque;
  3177. float motorSpeed;
  3178. /* readonly */
  3179. Node node;
  3180. /* readonly */
  3181. uint numAttributes;
  3182. ObjectAnimation objectAnimation;
  3183. RigidBody2D otherBody;
  3184. /* readonly */
  3185. RigidBody2D ownerBody;
  3186. /* readonly */
  3187. int refs;
  3188. bool temporary;
  3189. /* readonly */
  3190. StringHash type;
  3191. /* readonly */
  3192. String typeName;
  3193. /* readonly */
  3194. int weakRefs;
  3195. };
  3196. class Controls
  3197. {
  3198. // Methods:
  3199. bool IsDown(uint) const;
  3200. bool IsPressed(uint, const Controls&) const;
  3201. void Reset();
  3202. void Set(uint, bool);
  3203. // Properties:
  3204. uint buttons;
  3205. VariantMap extraData;
  3206. float pitch;
  3207. float yaw;
  3208. };
  3209. class CrowdAgent
  3210. {
  3211. // Methods:
  3212. void ApplyAttributes();
  3213. void DrawDebugGeometry(DebugRenderer, bool);
  3214. void DrawDebugGeometry(bool);
  3215. Variant GetAttribute(const String&) const;
  3216. ValueAnimation GetAttributeAnimation(const String&) const;
  3217. float GetAttributeAnimationSpeed(const String&) const;
  3218. float GetAttributeAnimationTime(const String&) const;
  3219. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3220. Variant GetAttributeDefault(const String&) const;
  3221. bool GetInterceptNetworkUpdate(const String&) const;
  3222. bool HasSubscribedToEvent(Object, const String&);
  3223. bool HasSubscribedToEvent(const String&);
  3224. bool Load(File, bool = false);
  3225. bool Load(VectorBuffer&, bool = false);
  3226. bool LoadJSON(const JSONValue&, bool = false);
  3227. bool LoadXML(const XMLElement&, bool = false);
  3228. void MarkNetworkUpdate() const;
  3229. void Remove();
  3230. void RemoveAttributeAnimation(const String&);
  3231. void RemoveInstanceDefault();
  3232. void RemoveObjectAnimation();
  3233. void ResetTarget();
  3234. void ResetToDefault();
  3235. bool Save(File) const;
  3236. bool Save(VectorBuffer&) const;
  3237. bool SaveJSON(JSONValue&) const;
  3238. bool SaveXML(XMLElement&) const;
  3239. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3240. void SetAnimationTime(float);
  3241. bool SetAttribute(const String&, const Variant&);
  3242. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3243. void SetAttributeAnimationSpeed(const String&, float);
  3244. void SetAttributeAnimationTime(const String&, float);
  3245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3246. void SetInterceptNetworkUpdate(const String&, bool);
  3247. // Properties:
  3248. /* readonly */
  3249. Vector3 actualVelocity;
  3250. /* readonly */
  3251. CrowdAgentState agentState;
  3252. bool animationEnabled;
  3253. /* readonly */
  3254. bool arrived;
  3255. /* readonly */
  3256. Array<Variant> attributeDefaults;
  3257. /* readonly */
  3258. Array<AttributeInfo> attributeInfos;
  3259. Array<Variant> attributes;
  3260. /* readonly */
  3261. String category;
  3262. /* readonly */
  3263. Vector3 desiredVelocity;
  3264. bool enabled;
  3265. /* readonly */
  3266. bool enabledEffective;
  3267. float height;
  3268. /* readonly */
  3269. uint id;
  3270. /* readonly */
  3271. bool inCrowd;
  3272. float maxAccel;
  3273. float maxSpeed;
  3274. NavigationPushiness navigationPushiness;
  3275. NavigationQuality navigationQuality;
  3276. /* readonly */
  3277. Node node;
  3278. /* readonly */
  3279. uint numAttributes;
  3280. ObjectAnimation objectAnimation;
  3281. uint obstacleAvoidanceType;
  3282. /* readonly */
  3283. Vector3 position;
  3284. uint queryFilterType;
  3285. float radius;
  3286. /* readonly */
  3287. int refs;
  3288. /* readonly */
  3289. bool requestedTarget;
  3290. /* readonly */
  3291. CrowdAgentRequestedTarget requestedTargetType;
  3292. Vector3 targetPosition;
  3293. /* readonly */
  3294. CrowdAgentTargetState targetState;
  3295. Vector3 targetVelocity;
  3296. bool temporary;
  3297. /* readonly */
  3298. StringHash type;
  3299. /* readonly */
  3300. String typeName;
  3301. bool updateNodePosition;
  3302. /* readonly */
  3303. int weakRefs;
  3304. };
  3305. class CrowdManager
  3306. {
  3307. // Methods:
  3308. void ApplyAttributes();
  3309. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3310. void DrawDebugGeometry(DebugRenderer, bool);
  3311. void DrawDebugGeometry(bool);
  3312. Vector3 FindNearestPoint(const Vector3&, int);
  3313. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3314. float GetAreaCost(uint, uint);
  3315. Variant GetAttribute(const String&) const;
  3316. ValueAnimation GetAttributeAnimation(const String&) const;
  3317. float GetAttributeAnimationSpeed(const String&) const;
  3318. float GetAttributeAnimationTime(const String&) const;
  3319. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3320. Variant GetAttributeDefault(const String&) const;
  3321. float GetDistanceToWall(const Vector3&, float, int);
  3322. uint16 GetExcludeFlags(uint);
  3323. uint16 GetIncludeFlags(uint);
  3324. bool GetInterceptNetworkUpdate(const String&) const;
  3325. Vector3 GetRandomPoint(int);
  3326. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3327. bool HasSubscribedToEvent(Object, const String&);
  3328. bool HasSubscribedToEvent(const String&);
  3329. bool Load(File, bool = false);
  3330. bool Load(VectorBuffer&, bool = false);
  3331. bool LoadJSON(const JSONValue&, bool = false);
  3332. bool LoadXML(const XMLElement&, bool = false);
  3333. void MarkNetworkUpdate() const;
  3334. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3335. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3336. void Remove();
  3337. void RemoveAttributeAnimation(const String&);
  3338. void RemoveInstanceDefault();
  3339. void RemoveObjectAnimation();
  3340. void ResetCrowdTarget(Node = null);
  3341. void ResetToDefault();
  3342. bool Save(File) const;
  3343. bool Save(VectorBuffer&) const;
  3344. bool SaveJSON(JSONValue&) const;
  3345. bool SaveXML(XMLElement&) const;
  3346. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3347. void SetAnimationTime(float);
  3348. void SetAreaCost(uint, uint, float);
  3349. bool SetAttribute(const String&, const Variant&);
  3350. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3351. void SetAttributeAnimationSpeed(const String&, float);
  3352. void SetAttributeAnimationTime(const String&, float);
  3353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3354. void SetCrowdTarget(const Vector3&, Node = null);
  3355. void SetCrowdVelocity(const Vector3&, Node = null);
  3356. void SetExcludeFlags(uint, uint16);
  3357. void SetIncludeFlags(uint, uint16);
  3358. void SetInterceptNetworkUpdate(const String&, bool);
  3359. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3360. // Properties:
  3361. bool animationEnabled;
  3362. /* readonly */
  3363. Array<Variant> attributeDefaults;
  3364. /* readonly */
  3365. Array<AttributeInfo> attributeInfos;
  3366. Array<Variant> attributes;
  3367. /* readonly */
  3368. String category;
  3369. bool enabled;
  3370. /* readonly */
  3371. bool enabledEffective;
  3372. /* readonly */
  3373. uint id;
  3374. float maxAgentRadius;
  3375. int maxAgents;
  3376. NavigationMesh navMesh;
  3377. /* readonly */
  3378. Node node;
  3379. /* readonly */
  3380. Array<uint> numAreas;
  3381. /* readonly */
  3382. uint numAttributes;
  3383. /* readonly */
  3384. uint numObstacleAvoidanceTypes;
  3385. /* readonly */
  3386. uint numQueryFilterTypes;
  3387. ObjectAnimation objectAnimation;
  3388. /* readonly */
  3389. int refs;
  3390. bool temporary;
  3391. /* readonly */
  3392. StringHash type;
  3393. /* readonly */
  3394. String typeName;
  3395. /* readonly */
  3396. int weakRefs;
  3397. };
  3398. class CrowdObstacleAvoidanceParams
  3399. {
  3400. // Properties:
  3401. uint8 adaptiveDepth;
  3402. uint8 adaptiveDivs;
  3403. uint8 adaptiveRings;
  3404. uint8 gridSize;
  3405. float horizTime;
  3406. float velBias;
  3407. float weightCurVel;
  3408. float weightDesVel;
  3409. float weightSide;
  3410. float weightToi;
  3411. };
  3412. class Cursor
  3413. {
  3414. // Methods:
  3415. void AddChild(UIElement);
  3416. void ApplyAttributes();
  3417. void BringToFront();
  3418. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3419. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3420. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3421. void DisableLayoutUpdate();
  3422. IntVector2 ElementToScreen(const IntVector2&);
  3423. void EnableLayoutUpdate();
  3424. uint FindChild(UIElement) const;
  3425. Variant GetAttribute(const String&) const;
  3426. ValueAnimation GetAttributeAnimation(const String&) const;
  3427. float GetAttributeAnimationSpeed(const String&) const;
  3428. float GetAttributeAnimationTime(const String&) const;
  3429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3430. Variant GetAttributeDefault(const String&) const;
  3431. UIElement GetChild(const String&, bool = false) const;
  3432. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3433. Array<UIElement> GetChildren(bool = false) const;
  3434. UIElement GetElementEventSender() const;
  3435. bool GetInterceptNetworkUpdate(const String&) const;
  3436. uint GetNumChildren(bool) const;
  3437. bool HasSubscribedToEvent(Object, const String&);
  3438. bool HasSubscribedToEvent(const String&);
  3439. void InsertChild(uint, UIElement);
  3440. bool IsInside(IntVector2, bool);
  3441. bool IsInsideCombined(IntVector2, bool);
  3442. bool Load(File, bool = false);
  3443. bool Load(VectorBuffer&, bool = false);
  3444. bool LoadChildXML(XMLFile, XMLFile = null);
  3445. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3446. bool LoadJSON(const JSONValue&, bool = false);
  3447. bool LoadXML(File);
  3448. bool LoadXML(VectorBuffer&);
  3449. bool LoadXML(XMLFile, XMLFile);
  3450. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3451. bool LoadXML(const XMLElement&, bool = false);
  3452. void MarkNetworkUpdate() const;
  3453. void Remove();
  3454. void RemoveAllChildren();
  3455. void RemoveAttributeAnimation(const String&);
  3456. void RemoveChild(UIElement, uint = 0);
  3457. void RemoveChild(uint);
  3458. void RemoveInstanceDefault();
  3459. void RemoveObjectAnimation();
  3460. void ResetDeepEnabled();
  3461. void ResetToDefault();
  3462. bool Save(File) const;
  3463. bool Save(VectorBuffer&) const;
  3464. bool SaveJSON(JSONValue&) const;
  3465. bool SaveXML(File, const String& = "\t");
  3466. bool SaveXML(VectorBuffer&, const String& = "\t");
  3467. bool SaveXML(XMLElement&) const;
  3468. IntVector2 ScreenToElement(const IntVector2&);
  3469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3470. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3471. void SetAnimationTime(float);
  3472. bool SetAttribute(const String&, const Variant&);
  3473. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3474. void SetAttributeAnimationSpeed(const String&, float);
  3475. void SetAttributeAnimationTime(const String&, float);
  3476. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3477. void SetDeepEnabled(bool);
  3478. void SetEnabledRecursive(bool);
  3479. void SetFixedHeight(int);
  3480. void SetFixedSize(int, int);
  3481. void SetFixedWidth(int);
  3482. void SetFullImageRect();
  3483. void SetHoverOffset(int, int);
  3484. void SetInterceptNetworkUpdate(const String&, bool);
  3485. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3486. void SetMaxSize(int, int);
  3487. void SetMinSize(int, int);
  3488. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3489. void SetPosition(int, int);
  3490. void SetShape(CursorShape);
  3491. void SetShape(const String&);
  3492. void SetSize(int, int);
  3493. bool SetStyle(const String&, XMLFile = null);
  3494. bool SetStyle(const XMLElement&);
  3495. bool SetStyleAuto(XMLFile = null);
  3496. void UpdateLayout();
  3497. const Variant& GetVar(const StringHash&);
  3498. // Properties:
  3499. bool animationEnabled;
  3500. /* readonly */
  3501. Array<Variant> attributeDefaults;
  3502. /* readonly */
  3503. Array<AttributeInfo> attributeInfos;
  3504. Array<Variant> attributes;
  3505. BlendMode blendMode;
  3506. IntRect border;
  3507. bool bringToBack;
  3508. bool bringToFront;
  3509. /* readonly */
  3510. String category;
  3511. /* readonly */
  3512. IntVector2 childOffset;
  3513. /* readonly */
  3514. Array<UIElement> children;
  3515. IntRect clipBorder;
  3516. bool clipChildren;
  3517. /* writeonly */
  3518. Color color;
  3519. /* readonly */
  3520. bool colorGradient;
  3521. Array<Color> colors;
  3522. /* readonly */
  3523. IntRect combinedScreenRect;
  3524. XMLFile defaultStyle;
  3525. /* readonly */
  3526. float derivedOpacity;
  3527. /* readonly */
  3528. uint dragButtonCombo;
  3529. /* readonly */
  3530. int dragButtonCount;
  3531. uint dragDropMode;
  3532. bool editable;
  3533. bool elementEventSender;
  3534. bool enabled;
  3535. /* readonly */
  3536. bool enabledSelf;
  3537. /* readonly */
  3538. bool fixedHeight;
  3539. /* readonly */
  3540. bool fixedSize;
  3541. /* readonly */
  3542. bool fixedWidth;
  3543. bool focus;
  3544. FocusMode focusMode;
  3545. int height;
  3546. HorizontalAlignment horizontalAlignment;
  3547. IntVector2 hoverOffset;
  3548. /* readonly */
  3549. bool hovering;
  3550. IntRect imageBorder;
  3551. IntRect imageRect;
  3552. int indent;
  3553. int indentSpacing;
  3554. /* readonly */
  3555. int indentWidth;
  3556. bool internal;
  3557. IntRect layoutBorder;
  3558. Vector2 layoutFlexScale;
  3559. LayoutMode layoutMode;
  3560. int layoutSpacing;
  3561. int maxHeight;
  3562. IntVector2 maxSize;
  3563. int maxWidth;
  3564. int minHeight;
  3565. IntVector2 minSize;
  3566. int minWidth;
  3567. String name;
  3568. /* readonly */
  3569. uint numAllChildren;
  3570. /* readonly */
  3571. uint numAttributes;
  3572. /* readonly */
  3573. uint numChildren;
  3574. ObjectAnimation objectAnimation;
  3575. float opacity;
  3576. UIElement parent;
  3577. IntVector2 position;
  3578. int priority;
  3579. /* readonly */
  3580. int refs;
  3581. /* readonly */
  3582. UIElement root;
  3583. /* readonly */
  3584. IntVector2 screenPosition;
  3585. bool selected;
  3586. String shape;
  3587. IntVector2 size;
  3588. bool sortChildren;
  3589. String style;
  3590. bool temporary;
  3591. Texture texture;
  3592. bool tiled;
  3593. TraversalMode traversalMode;
  3594. /* readonly */
  3595. StringHash type;
  3596. /* readonly */
  3597. String typeName;
  3598. bool useDerivedOpacity;
  3599. bool useSystemShapes;
  3600. /* readonly */
  3601. VariantMap vars;
  3602. VerticalAlignment verticalAlignment;
  3603. bool visible;
  3604. /* readonly */
  3605. bool visibleEffective;
  3606. /* readonly */
  3607. int weakRefs;
  3608. int width;
  3609. };
  3610. class CustomGeometry
  3611. {
  3612. // Methods:
  3613. void ApplyAttributes();
  3614. void BeginGeometry(uint, PrimitiveType);
  3615. void Clear();
  3616. void Commit();
  3617. void DefineColor(const Color&);
  3618. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3619. void DefineNormal(const Vector3&);
  3620. void DefineTangent(const Vector4&);
  3621. void DefineTexCoord(const Vector2&);
  3622. void DefineVertex(const Vector3&);
  3623. void DrawDebugGeometry(DebugRenderer, bool);
  3624. Variant GetAttribute(const String&) const;
  3625. ValueAnimation GetAttributeAnimation(const String&) const;
  3626. float GetAttributeAnimationSpeed(const String&) const;
  3627. float GetAttributeAnimationTime(const String&) const;
  3628. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3629. Variant GetAttributeDefault(const String&) const;
  3630. bool GetInterceptNetworkUpdate(const String&) const;
  3631. CustomGeometryVertex GetVertex(uint, uint);
  3632. bool HasSubscribedToEvent(Object, const String&);
  3633. bool HasSubscribedToEvent(const String&);
  3634. bool IsInView(Camera) const;
  3635. bool Load(File, bool = false);
  3636. bool Load(VectorBuffer&, bool = false);
  3637. bool LoadJSON(const JSONValue&, bool = false);
  3638. bool LoadXML(const XMLElement&, bool = false);
  3639. void MarkNetworkUpdate() const;
  3640. void Remove();
  3641. void RemoveAttributeAnimation(const String&);
  3642. void RemoveInstanceDefault();
  3643. void RemoveObjectAnimation();
  3644. void ResetToDefault();
  3645. bool Save(File) const;
  3646. bool Save(VectorBuffer&) const;
  3647. bool SaveJSON(JSONValue&) const;
  3648. bool SaveXML(XMLElement&) const;
  3649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3650. void SetAnimationTime(float);
  3651. bool SetAttribute(const String&, const Variant&);
  3652. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3653. void SetAttributeAnimationSpeed(const String&, float);
  3654. void SetAttributeAnimationTime(const String&, float);
  3655. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3656. void SetInterceptNetworkUpdate(const String&, bool);
  3657. // Properties:
  3658. bool animationEnabled;
  3659. /* readonly */
  3660. Array<Variant> attributeDefaults;
  3661. /* readonly */
  3662. Array<AttributeInfo> attributeInfos;
  3663. Array<Variant> attributes;
  3664. /* readonly */
  3665. BoundingBox boundingBox;
  3666. bool castShadows;
  3667. /* readonly */
  3668. String category;
  3669. float drawDistance;
  3670. bool dynamic;
  3671. bool enabled;
  3672. /* readonly */
  3673. bool enabledEffective;
  3674. /* readonly */
  3675. uint id;
  3676. /* readonly */
  3677. bool inView;
  3678. uint lightMask;
  3679. float lodBias;
  3680. /* writeonly */
  3681. Material material;
  3682. Array<Material> materials;
  3683. uint maxLights;
  3684. /* readonly */
  3685. Node node;
  3686. /* readonly */
  3687. uint numAttributes;
  3688. uint numGeometries;
  3689. /* readonly */
  3690. Array<uint> numVertices;
  3691. ObjectAnimation objectAnimation;
  3692. bool occludee;
  3693. bool occluder;
  3694. /* readonly */
  3695. int refs;
  3696. float shadowDistance;
  3697. uint shadowMask;
  3698. bool temporary;
  3699. /* readonly */
  3700. StringHash type;
  3701. /* readonly */
  3702. String typeName;
  3703. uint viewMask;
  3704. /* readonly */
  3705. int weakRefs;
  3706. /* readonly */
  3707. BoundingBox worldBoundingBox;
  3708. /* readonly */
  3709. Zone zone;
  3710. uint zoneMask;
  3711. };
  3712. class CustomGeometryVertex
  3713. {
  3714. // Properties:
  3715. uint color;
  3716. Vector3 normal;
  3717. Vector3 position;
  3718. Vector4 tangent;
  3719. Vector2 texCoord;
  3720. };
  3721. class Database
  3722. {
  3723. // Methods:
  3724. DbConnection Connect(const String&);
  3725. void Disconnect(DbConnection);
  3726. bool HasSubscribedToEvent(Object, const String&);
  3727. bool HasSubscribedToEvent(const String&);
  3728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3729. // Properties:
  3730. /* readonly */
  3731. String category;
  3732. uint poolSize;
  3733. /* readonly */
  3734. bool pooling;
  3735. /* readonly */
  3736. int refs;
  3737. /* readonly */
  3738. StringHash type;
  3739. /* readonly */
  3740. String typeName;
  3741. /* readonly */
  3742. int weakRefs;
  3743. };
  3744. class DbConnection
  3745. {
  3746. // Methods:
  3747. DbResult Execute(const String&, bool = false);
  3748. bool HasSubscribedToEvent(Object, const String&);
  3749. bool HasSubscribedToEvent(const String&);
  3750. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3751. // Properties:
  3752. /* readonly */
  3753. String category;
  3754. /* readonly */
  3755. bool connected;
  3756. /* readonly */
  3757. String connectionString;
  3758. /* readonly */
  3759. int refs;
  3760. /* readonly */
  3761. StringHash type;
  3762. /* readonly */
  3763. String typeName;
  3764. /* readonly */
  3765. int weakRefs;
  3766. };
  3767. class DbResult
  3768. {
  3769. // Properties:
  3770. /* readonly */
  3771. Array<String> columns;
  3772. /* readonly */
  3773. int64 numAffectedRows;
  3774. /* readonly */
  3775. uint numColumns;
  3776. /* readonly */
  3777. uint numRows;
  3778. /* readonly */
  3779. Array<Array<Variant>> row;
  3780. };
  3781. class DebugHud
  3782. {
  3783. // Methods:
  3784. void ClearAppStats();
  3785. bool HasSubscribedToEvent(Object, const String&);
  3786. bool HasSubscribedToEvent(const String&);
  3787. void ResetAppStats(const String&);
  3788. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3789. void SetAppStats(const String&, const String&);
  3790. void SetAppStats(const String&, const Variant&);
  3791. void Toggle(uint);
  3792. void ToggleAll();
  3793. void Update();
  3794. // Properties:
  3795. /* readonly */
  3796. String category;
  3797. XMLFile defaultStyle;
  3798. /* readonly */
  3799. Text memoryText;
  3800. uint mode;
  3801. /* readonly */
  3802. Text modeText;
  3803. float profilerInterval;
  3804. uint profilerMaxDepth;
  3805. /* readonly */
  3806. Text profilerText;
  3807. /* readonly */
  3808. int refs;
  3809. /* readonly */
  3810. Text statsText;
  3811. /* readonly */
  3812. StringHash type;
  3813. /* readonly */
  3814. String typeName;
  3815. bool useRendererStats;
  3816. /* readonly */
  3817. int weakRefs;
  3818. };
  3819. class DebugRenderer
  3820. {
  3821. // Methods:
  3822. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3823. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3824. void AddCross(const Vector3&, float, const Color&, bool = true);
  3825. void AddFrustum(const Frustum&, const Color&, bool = true);
  3826. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3827. void AddNode(Node, float = 1.0, bool = true);
  3828. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3829. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3830. void AddSkeleton(Skeleton, const Color&, bool = true);
  3831. void AddSphere(const Sphere&, const Color&, bool = true);
  3832. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3833. void ApplyAttributes();
  3834. void DrawDebugGeometry(DebugRenderer, bool);
  3835. Variant GetAttribute(const String&) const;
  3836. ValueAnimation GetAttributeAnimation(const String&) const;
  3837. float GetAttributeAnimationSpeed(const String&) const;
  3838. float GetAttributeAnimationTime(const String&) const;
  3839. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3840. Variant GetAttributeDefault(const String&) const;
  3841. bool GetInterceptNetworkUpdate(const String&) const;
  3842. bool HasSubscribedToEvent(Object, const String&);
  3843. bool HasSubscribedToEvent(const String&);
  3844. bool Load(File, bool = false);
  3845. bool Load(VectorBuffer&, bool = false);
  3846. bool LoadJSON(const JSONValue&, bool = false);
  3847. bool LoadXML(const XMLElement&, bool = false);
  3848. void MarkNetworkUpdate() const;
  3849. void Remove();
  3850. void RemoveAttributeAnimation(const String&);
  3851. void RemoveInstanceDefault();
  3852. void RemoveObjectAnimation();
  3853. void ResetToDefault();
  3854. bool Save(File) const;
  3855. bool Save(VectorBuffer&) const;
  3856. bool SaveJSON(JSONValue&) const;
  3857. bool SaveXML(XMLElement&) const;
  3858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3859. void SetAnimationTime(float);
  3860. bool SetAttribute(const String&, const Variant&);
  3861. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3862. void SetAttributeAnimationSpeed(const String&, float);
  3863. void SetAttributeAnimationTime(const String&, float);
  3864. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3865. void SetInterceptNetworkUpdate(const String&, bool);
  3866. // Properties:
  3867. bool animationEnabled;
  3868. /* readonly */
  3869. Array<Variant> attributeDefaults;
  3870. /* readonly */
  3871. Array<AttributeInfo> attributeInfos;
  3872. Array<Variant> attributes;
  3873. /* readonly */
  3874. String category;
  3875. bool enabled;
  3876. /* readonly */
  3877. bool enabledEffective;
  3878. /* readonly */
  3879. uint id;
  3880. /* readonly */
  3881. Node node;
  3882. /* readonly */
  3883. uint numAttributes;
  3884. ObjectAnimation objectAnimation;
  3885. /* readonly */
  3886. int refs;
  3887. bool temporary;
  3888. /* readonly */
  3889. StringHash type;
  3890. /* readonly */
  3891. String typeName;
  3892. /* readonly */
  3893. int weakRefs;
  3894. };
  3895. class DecalSet
  3896. {
  3897. // Methods:
  3898. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3899. void ApplyAttributes();
  3900. void DrawDebugGeometry(DebugRenderer, bool);
  3901. Variant GetAttribute(const String&) const;
  3902. ValueAnimation GetAttributeAnimation(const String&) const;
  3903. float GetAttributeAnimationSpeed(const String&) const;
  3904. float GetAttributeAnimationTime(const String&) const;
  3905. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3906. Variant GetAttributeDefault(const String&) const;
  3907. bool GetInterceptNetworkUpdate(const String&) const;
  3908. bool HasSubscribedToEvent(Object, const String&);
  3909. bool HasSubscribedToEvent(const String&);
  3910. bool IsInView(Camera) const;
  3911. bool Load(File, bool = false);
  3912. bool Load(VectorBuffer&, bool = false);
  3913. bool LoadJSON(const JSONValue&, bool = false);
  3914. bool LoadXML(const XMLElement&, bool = false);
  3915. void MarkNetworkUpdate() const;
  3916. void Remove();
  3917. void RemoveAllDecals();
  3918. void RemoveAttributeAnimation(const String&);
  3919. void RemoveDecals(uint);
  3920. void RemoveInstanceDefault();
  3921. void RemoveObjectAnimation();
  3922. void ResetToDefault();
  3923. bool Save(File) const;
  3924. bool Save(VectorBuffer&) const;
  3925. bool SaveJSON(JSONValue&) const;
  3926. bool SaveXML(XMLElement&) const;
  3927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3928. void SetAnimationTime(float);
  3929. bool SetAttribute(const String&, const Variant&);
  3930. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3931. void SetAttributeAnimationSpeed(const String&, float);
  3932. void SetAttributeAnimationTime(const String&, float);
  3933. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3934. void SetInterceptNetworkUpdate(const String&, bool);
  3935. // Properties:
  3936. bool animationEnabled;
  3937. /* readonly */
  3938. Array<Variant> attributeDefaults;
  3939. /* readonly */
  3940. Array<AttributeInfo> attributeInfos;
  3941. Array<Variant> attributes;
  3942. /* readonly */
  3943. BoundingBox boundingBox;
  3944. bool castShadows;
  3945. /* readonly */
  3946. String category;
  3947. float drawDistance;
  3948. bool enabled;
  3949. /* readonly */
  3950. bool enabledEffective;
  3951. /* readonly */
  3952. uint id;
  3953. /* readonly */
  3954. bool inView;
  3955. uint lightMask;
  3956. float lodBias;
  3957. Material material;
  3958. uint maxIndices;
  3959. uint maxLights;
  3960. uint maxVertices;
  3961. /* readonly */
  3962. Node node;
  3963. /* readonly */
  3964. uint numAttributes;
  3965. /* readonly */
  3966. uint numDecals;
  3967. /* readonly */
  3968. uint numIndices;
  3969. /* readonly */
  3970. uint numVertices;
  3971. ObjectAnimation objectAnimation;
  3972. bool occludee;
  3973. bool occluder;
  3974. /* readonly */
  3975. int refs;
  3976. float shadowDistance;
  3977. uint shadowMask;
  3978. bool temporary;
  3979. /* readonly */
  3980. StringHash type;
  3981. /* readonly */
  3982. String typeName;
  3983. uint viewMask;
  3984. /* readonly */
  3985. int weakRefs;
  3986. /* readonly */
  3987. BoundingBox worldBoundingBox;
  3988. /* readonly */
  3989. Zone zone;
  3990. uint zoneMask;
  3991. };
  3992. class Deserializer
  3993. {
  3994. // Methods:
  3995. Array<uint8> Read(uint);
  3996. bool ReadBool();
  3997. BoundingBox ReadBoundingBox();
  3998. int8 ReadByte();
  3999. Color ReadColor();
  4000. double ReadDouble();
  4001. String ReadFileID();
  4002. float ReadFloat();
  4003. int ReadInt();
  4004. IntRect ReadIntRect();
  4005. IntVector2 ReadIntVector2();
  4006. String ReadLine();
  4007. Matrix3 ReadMatrix3();
  4008. Matrix3x4 ReadMatrix3x4();
  4009. Matrix4 ReadMatrix4();
  4010. uint ReadNetID();
  4011. Quaternion ReadPackedQuaternion();
  4012. Vector3 ReadPackedVector3(float);
  4013. Quaternion ReadQuaternion();
  4014. int16 ReadShort();
  4015. String ReadString();
  4016. StringHash ReadStringHash();
  4017. uint8 ReadUByte();
  4018. uint ReadUInt();
  4019. uint16 ReadUShort();
  4020. uint ReadVLE();
  4021. Variant ReadVariant();
  4022. VariantMap ReadVariantMap();
  4023. Vector2 ReadVector2();
  4024. Vector3 ReadVector3();
  4025. Vector4 ReadVector4();
  4026. VectorBuffer ReadVectorBuffer(uint);
  4027. uint Seek(uint);
  4028. // Properties:
  4029. /* readonly */
  4030. uint checksum;
  4031. /* readonly */
  4032. bool eof;
  4033. /* readonly */
  4034. String name;
  4035. /* readonly */
  4036. uint position;
  4037. /* readonly */
  4038. uint size;
  4039. };
  4040. class Dictionary
  4041. {
  4042. // Methods:
  4043. void Clear();
  4044. void Erase(const String&);
  4045. bool Exists(const String&) const;
  4046. bool Get(const String&, void*) const;
  4047. bool Get(const String&, double&) const;
  4048. bool Get(const String&, int64&) const;
  4049. void Set(const String&, const void*);
  4050. void Set(const String&, const double&);
  4051. void Set(const String&, const int64&);
  4052. // Properties:
  4053. /* readonly */
  4054. bool empty;
  4055. /* readonly */
  4056. Array<String> keys;
  4057. /* readonly */
  4058. uint length;
  4059. };
  4060. class DictionaryValue
  4061. {
  4062. };
  4063. class Drawable
  4064. {
  4065. // Methods:
  4066. void ApplyAttributes();
  4067. void DrawDebugGeometry(DebugRenderer, bool);
  4068. Variant GetAttribute(const String&) const;
  4069. ValueAnimation GetAttributeAnimation(const String&) const;
  4070. float GetAttributeAnimationSpeed(const String&) const;
  4071. float GetAttributeAnimationTime(const String&) const;
  4072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4073. Variant GetAttributeDefault(const String&) const;
  4074. bool GetInterceptNetworkUpdate(const String&) const;
  4075. bool HasSubscribedToEvent(Object, const String&);
  4076. bool HasSubscribedToEvent(const String&);
  4077. bool IsInView(Camera) const;
  4078. bool Load(File, bool = false);
  4079. bool Load(VectorBuffer&, bool = false);
  4080. bool LoadJSON(const JSONValue&, bool = false);
  4081. bool LoadXML(const XMLElement&, bool = false);
  4082. void MarkNetworkUpdate() const;
  4083. void Remove();
  4084. void RemoveAttributeAnimation(const String&);
  4085. void RemoveInstanceDefault();
  4086. void RemoveObjectAnimation();
  4087. void ResetToDefault();
  4088. bool Save(File) const;
  4089. bool Save(VectorBuffer&) const;
  4090. bool SaveJSON(JSONValue&) const;
  4091. bool SaveXML(XMLElement&) const;
  4092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4093. void SetAnimationTime(float);
  4094. bool SetAttribute(const String&, const Variant&);
  4095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4096. void SetAttributeAnimationSpeed(const String&, float);
  4097. void SetAttributeAnimationTime(const String&, float);
  4098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4099. void SetInterceptNetworkUpdate(const String&, bool);
  4100. // Properties:
  4101. bool animationEnabled;
  4102. /* readonly */
  4103. Array<Variant> attributeDefaults;
  4104. /* readonly */
  4105. Array<AttributeInfo> attributeInfos;
  4106. Array<Variant> attributes;
  4107. /* readonly */
  4108. BoundingBox boundingBox;
  4109. bool castShadows;
  4110. /* readonly */
  4111. String category;
  4112. float drawDistance;
  4113. bool enabled;
  4114. /* readonly */
  4115. bool enabledEffective;
  4116. /* readonly */
  4117. uint id;
  4118. /* readonly */
  4119. bool inView;
  4120. uint lightMask;
  4121. float lodBias;
  4122. uint maxLights;
  4123. /* readonly */
  4124. Node node;
  4125. /* readonly */
  4126. uint numAttributes;
  4127. ObjectAnimation objectAnimation;
  4128. bool occludee;
  4129. bool occluder;
  4130. /* readonly */
  4131. int refs;
  4132. float shadowDistance;
  4133. uint shadowMask;
  4134. bool temporary;
  4135. /* readonly */
  4136. StringHash type;
  4137. /* readonly */
  4138. String typeName;
  4139. uint viewMask;
  4140. /* readonly */
  4141. int weakRefs;
  4142. /* readonly */
  4143. BoundingBox worldBoundingBox;
  4144. uint zoneMask;
  4145. };
  4146. class Drawable2D
  4147. {
  4148. // Methods:
  4149. void ApplyAttributes();
  4150. void DrawDebugGeometry(DebugRenderer, bool);
  4151. Variant GetAttribute(const String&) const;
  4152. ValueAnimation GetAttributeAnimation(const String&) const;
  4153. float GetAttributeAnimationSpeed(const String&) const;
  4154. float GetAttributeAnimationTime(const String&) const;
  4155. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4156. Variant GetAttributeDefault(const String&) const;
  4157. bool GetInterceptNetworkUpdate(const String&) const;
  4158. bool HasSubscribedToEvent(Object, const String&);
  4159. bool HasSubscribedToEvent(const String&);
  4160. bool IsInView(Camera) const;
  4161. bool Load(File, bool = false);
  4162. bool Load(VectorBuffer&, bool = false);
  4163. bool LoadJSON(const JSONValue&, bool = false);
  4164. bool LoadXML(const XMLElement&, bool = false);
  4165. void MarkNetworkUpdate() const;
  4166. void Remove();
  4167. void RemoveAttributeAnimation(const String&);
  4168. void RemoveInstanceDefault();
  4169. void RemoveObjectAnimation();
  4170. void ResetToDefault();
  4171. bool Save(File) const;
  4172. bool Save(VectorBuffer&) const;
  4173. bool SaveJSON(JSONValue&) const;
  4174. bool SaveXML(XMLElement&) const;
  4175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4176. void SetAnimationTime(float);
  4177. bool SetAttribute(const String&, const Variant&);
  4178. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4179. void SetAttributeAnimationSpeed(const String&, float);
  4180. void SetAttributeAnimationTime(const String&, float);
  4181. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4182. void SetInterceptNetworkUpdate(const String&, bool);
  4183. // Properties:
  4184. bool animationEnabled;
  4185. /* readonly */
  4186. Array<Variant> attributeDefaults;
  4187. /* readonly */
  4188. Array<AttributeInfo> attributeInfos;
  4189. Array<Variant> attributes;
  4190. /* readonly */
  4191. BoundingBox boundingBox;
  4192. bool castShadows;
  4193. /* readonly */
  4194. String category;
  4195. float drawDistance;
  4196. bool enabled;
  4197. /* readonly */
  4198. bool enabledEffective;
  4199. /* readonly */
  4200. uint id;
  4201. /* readonly */
  4202. bool inView;
  4203. int layer;
  4204. uint lightMask;
  4205. float lodBias;
  4206. uint maxLights;
  4207. /* readonly */
  4208. Node node;
  4209. /* readonly */
  4210. uint numAttributes;
  4211. ObjectAnimation objectAnimation;
  4212. bool occludee;
  4213. bool occluder;
  4214. int orderInLayer;
  4215. /* readonly */
  4216. int refs;
  4217. float shadowDistance;
  4218. uint shadowMask;
  4219. bool temporary;
  4220. /* readonly */
  4221. StringHash type;
  4222. /* readonly */
  4223. String typeName;
  4224. uint viewMask;
  4225. /* readonly */
  4226. int weakRefs;
  4227. /* readonly */
  4228. BoundingBox worldBoundingBox;
  4229. uint zoneMask;
  4230. };
  4231. class DropDownList
  4232. {
  4233. // Methods:
  4234. void AddChild(UIElement);
  4235. void AddItem(UIElement);
  4236. void ApplyAttributes();
  4237. void BringToFront();
  4238. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4239. void DisableLayoutUpdate();
  4240. IntVector2 ElementToScreen(const IntVector2&);
  4241. void EnableLayoutUpdate();
  4242. uint FindChild(UIElement) const;
  4243. Variant GetAttribute(const String&) const;
  4244. ValueAnimation GetAttributeAnimation(const String&) const;
  4245. float GetAttributeAnimationSpeed(const String&) const;
  4246. float GetAttributeAnimationTime(const String&) const;
  4247. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4248. Variant GetAttributeDefault(const String&) const;
  4249. UIElement GetChild(const String&, bool = false) const;
  4250. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4251. Array<UIElement> GetChildren(bool = false) const;
  4252. UIElement GetElementEventSender() const;
  4253. bool GetInterceptNetworkUpdate(const String&) const;
  4254. Array<UIElement> GetItems() const;
  4255. uint GetNumChildren(bool) const;
  4256. bool HasSubscribedToEvent(Object, const String&);
  4257. bool HasSubscribedToEvent(const String&);
  4258. void InsertChild(uint, UIElement);
  4259. void InsertItem(uint, UIElement);
  4260. bool IsInside(IntVector2, bool);
  4261. bool IsInsideCombined(IntVector2, bool);
  4262. bool Load(File, bool = false);
  4263. bool Load(VectorBuffer&, bool = false);
  4264. bool LoadChildXML(XMLFile, XMLFile = null);
  4265. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4266. bool LoadJSON(const JSONValue&, bool = false);
  4267. bool LoadXML(File);
  4268. bool LoadXML(VectorBuffer&);
  4269. bool LoadXML(XMLFile, XMLFile);
  4270. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4271. bool LoadXML(const XMLElement&, bool = false);
  4272. void MarkNetworkUpdate() const;
  4273. void Remove();
  4274. void RemoveAllChildren();
  4275. void RemoveAllItems();
  4276. void RemoveAttributeAnimation(const String&);
  4277. void RemoveChild(UIElement, uint = 0);
  4278. void RemoveChild(uint);
  4279. void RemoveInstanceDefault();
  4280. void RemoveItem(UIElement);
  4281. void RemoveItem(uint);
  4282. void RemoveObjectAnimation();
  4283. void ResetDeepEnabled();
  4284. void ResetToDefault();
  4285. bool Save(File) const;
  4286. bool Save(VectorBuffer&) const;
  4287. bool SaveJSON(JSONValue&) const;
  4288. bool SaveXML(File, const String& = "\t");
  4289. bool SaveXML(VectorBuffer&, const String& = "\t");
  4290. bool SaveXML(XMLElement&) const;
  4291. IntVector2 ScreenToElement(const IntVector2&);
  4292. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4293. void SetAccelerator(int, int);
  4294. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4295. void SetAnimationTime(float);
  4296. bool SetAttribute(const String&, const Variant&);
  4297. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4298. void SetAttributeAnimationSpeed(const String&, float);
  4299. void SetAttributeAnimationTime(const String&, float);
  4300. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4301. void SetDeepEnabled(bool);
  4302. void SetEnabledRecursive(bool);
  4303. void SetFixedHeight(int);
  4304. void SetFixedSize(int, int);
  4305. void SetFixedWidth(int);
  4306. void SetFullImageRect();
  4307. void SetHoverOffset(int, int);
  4308. void SetInterceptNetworkUpdate(const String&, bool);
  4309. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4310. void SetMaxSize(int, int);
  4311. void SetMinSize(int, int);
  4312. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4313. void SetPosition(int, int);
  4314. void SetPressedChildOffset(int, int);
  4315. void SetPressedOffset(int, int);
  4316. void SetRepeat(float, float);
  4317. void SetSize(int, int);
  4318. bool SetStyle(const String&, XMLFile = null);
  4319. bool SetStyle(const XMLElement&);
  4320. bool SetStyleAuto(XMLFile = null);
  4321. void UpdateLayout();
  4322. const Variant& GetVar(const StringHash&);
  4323. UIElement getPopup() const;
  4324. // Properties:
  4325. /* readonly */
  4326. int acceleratorKey;
  4327. /* readonly */
  4328. int acceleratorQualifiers;
  4329. bool animationEnabled;
  4330. /* readonly */
  4331. Array<Variant> attributeDefaults;
  4332. /* readonly */
  4333. Array<AttributeInfo> attributeInfos;
  4334. Array<Variant> attributes;
  4335. BlendMode blendMode;
  4336. IntRect border;
  4337. bool bringToBack;
  4338. bool bringToFront;
  4339. /* readonly */
  4340. String category;
  4341. /* readonly */
  4342. IntVector2 childOffset;
  4343. /* readonly */
  4344. Array<UIElement> children;
  4345. IntRect clipBorder;
  4346. bool clipChildren;
  4347. /* writeonly */
  4348. Color color;
  4349. /* readonly */
  4350. bool colorGradient;
  4351. Array<Color> colors;
  4352. /* readonly */
  4353. IntRect combinedScreenRect;
  4354. XMLFile defaultStyle;
  4355. /* readonly */
  4356. float derivedOpacity;
  4357. /* readonly */
  4358. uint dragButtonCombo;
  4359. /* readonly */
  4360. int dragButtonCount;
  4361. uint dragDropMode;
  4362. bool editable;
  4363. bool elementEventSender;
  4364. bool enabled;
  4365. /* readonly */
  4366. bool enabledSelf;
  4367. /* readonly */
  4368. bool fixedHeight;
  4369. /* readonly */
  4370. bool fixedSize;
  4371. /* readonly */
  4372. bool fixedWidth;
  4373. bool focus;
  4374. FocusMode focusMode;
  4375. int height;
  4376. HorizontalAlignment horizontalAlignment;
  4377. IntVector2 hoverOffset;
  4378. /* readonly */
  4379. bool hovering;
  4380. IntRect imageBorder;
  4381. IntRect imageRect;
  4382. int indent;
  4383. int indentSpacing;
  4384. /* readonly */
  4385. int indentWidth;
  4386. bool internal;
  4387. /* readonly */
  4388. Array<UIElement> items;
  4389. IntRect layoutBorder;
  4390. Vector2 layoutFlexScale;
  4391. LayoutMode layoutMode;
  4392. int layoutSpacing;
  4393. /* readonly */
  4394. ListView listView;
  4395. int maxHeight;
  4396. IntVector2 maxSize;
  4397. int maxWidth;
  4398. int minHeight;
  4399. IntVector2 minSize;
  4400. int minWidth;
  4401. String name;
  4402. /* readonly */
  4403. uint numAllChildren;
  4404. /* readonly */
  4405. uint numAttributes;
  4406. /* readonly */
  4407. uint numChildren;
  4408. /* readonly */
  4409. uint numItems;
  4410. ObjectAnimation objectAnimation;
  4411. float opacity;
  4412. UIElement parent;
  4413. /* readonly */
  4414. UIElement placeholder;
  4415. String placeholderText;
  4416. IntVector2 position;
  4417. /* readonly */
  4418. bool pressed;
  4419. IntVector2 pressedChildOffset;
  4420. IntVector2 pressedOffset;
  4421. int priority;
  4422. /* readonly */
  4423. int refs;
  4424. float repeatDelay;
  4425. float repeatRate;
  4426. bool resizePopup;
  4427. /* readonly */
  4428. UIElement root;
  4429. /* readonly */
  4430. IntVector2 screenPosition;
  4431. bool selected;
  4432. /* readonly */
  4433. UIElement selectedItem;
  4434. uint selection;
  4435. bool showPopup;
  4436. IntVector2 size;
  4437. bool sortChildren;
  4438. String style;
  4439. bool temporary;
  4440. Texture texture;
  4441. bool tiled;
  4442. TraversalMode traversalMode;
  4443. /* readonly */
  4444. StringHash type;
  4445. /* readonly */
  4446. String typeName;
  4447. bool useDerivedOpacity;
  4448. /* readonly */
  4449. VariantMap vars;
  4450. VerticalAlignment verticalAlignment;
  4451. bool visible;
  4452. /* readonly */
  4453. bool visibleEffective;
  4454. /* readonly */
  4455. int weakRefs;
  4456. int width;
  4457. };
  4458. class DynamicNavigationMesh
  4459. {
  4460. // Methods:
  4461. void ApplyAttributes();
  4462. bool Build();
  4463. bool Build(const BoundingBox&);
  4464. void DrawDebugGeometry(DebugRenderer, bool);
  4465. void DrawDebugGeometry(bool);
  4466. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4467. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4468. float GetAreaCost(uint) const;
  4469. Variant GetAttribute(const String&) const;
  4470. ValueAnimation GetAttributeAnimation(const String&) const;
  4471. float GetAttributeAnimationSpeed(const String&) const;
  4472. float GetAttributeAnimationTime(const String&) const;
  4473. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4474. Variant GetAttributeDefault(const String&) const;
  4475. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4476. bool GetInterceptNetworkUpdate(const String&) const;
  4477. Vector3 GetRandomPoint();
  4478. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4479. bool HasSubscribedToEvent(Object, const String&);
  4480. bool HasSubscribedToEvent(const String&);
  4481. bool Load(File, bool = false);
  4482. bool Load(VectorBuffer&, bool = false);
  4483. bool LoadJSON(const JSONValue&, bool = false);
  4484. bool LoadXML(const XMLElement&, bool = false);
  4485. void MarkNetworkUpdate() const;
  4486. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4487. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4488. void Remove();
  4489. void RemoveAttributeAnimation(const String&);
  4490. void RemoveInstanceDefault();
  4491. void RemoveObjectAnimation();
  4492. void ResetToDefault();
  4493. bool Save(File) const;
  4494. bool Save(VectorBuffer&) const;
  4495. bool SaveJSON(JSONValue&) const;
  4496. bool SaveXML(XMLElement&) const;
  4497. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4498. void SetAnimationTime(float);
  4499. void SetAreaCost(uint, float);
  4500. bool SetAttribute(const String&, const Variant&);
  4501. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4502. void SetAttributeAnimationSpeed(const String&, float);
  4503. void SetAttributeAnimationTime(const String&, float);
  4504. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4505. void SetInterceptNetworkUpdate(const String&, bool);
  4506. // Properties:
  4507. float agentHeight;
  4508. float agentMaxClimb;
  4509. float agentMaxSlope;
  4510. float agentRadius;
  4511. bool animationEnabled;
  4512. /* readonly */
  4513. Array<Variant> attributeDefaults;
  4514. /* readonly */
  4515. Array<AttributeInfo> attributeInfos;
  4516. Array<Variant> attributes;
  4517. /* readonly */
  4518. BoundingBox boundingBox;
  4519. /* readonly */
  4520. String category;
  4521. float cellHeight;
  4522. float cellSize;
  4523. float detailSampleDistance;
  4524. float detailSampleMaxError;
  4525. bool drawNavAreas;
  4526. bool drawObstacles;
  4527. bool drawOffMeshConnections;
  4528. float edgeMaxError;
  4529. float edgeMaxLength;
  4530. bool enabled;
  4531. /* readonly */
  4532. bool enabledEffective;
  4533. /* readonly */
  4534. uint id;
  4535. /* readonly */
  4536. bool initialized;
  4537. bool maxLayers;
  4538. uint maxObstacles;
  4539. /* readonly */
  4540. Node node;
  4541. /* readonly */
  4542. uint numAttributes;
  4543. /* readonly */
  4544. IntVector2 numTiles;
  4545. ObjectAnimation objectAnimation;
  4546. Vector3 padding;
  4547. NavmeshPartitionType partitionType;
  4548. /* readonly */
  4549. int refs;
  4550. float regionMergeSize;
  4551. float regionMinSize;
  4552. bool temporary;
  4553. int tileSize;
  4554. /* readonly */
  4555. StringHash type;
  4556. /* readonly */
  4557. String typeName;
  4558. /* readonly */
  4559. int weakRefs;
  4560. /* readonly */
  4561. BoundingBox worldBoundingBox;
  4562. };
  4563. class Engine
  4564. {
  4565. // Methods:
  4566. Console CreateConsole();
  4567. DebugHud CreateDebugHud();
  4568. void DumpMemory();
  4569. void DumpProfiler();
  4570. void DumpResources(bool = false);
  4571. void Exit();
  4572. bool HasSubscribedToEvent(Object, const String&);
  4573. bool HasSubscribedToEvent(const String&);
  4574. void RunFrame();
  4575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4576. // Properties:
  4577. bool autoExit;
  4578. /* readonly */
  4579. String category;
  4580. /* readonly */
  4581. bool exiting;
  4582. /* readonly */
  4583. bool headless;
  4584. /* readonly */
  4585. bool initialized;
  4586. int maxFps;
  4587. int maxInactiveFps;
  4588. int minFps;
  4589. bool pauseMinimized;
  4590. /* readonly */
  4591. int refs;
  4592. int timeStepSmoothing;
  4593. /* readonly */
  4594. StringHash type;
  4595. /* readonly */
  4596. String typeName;
  4597. /* readonly */
  4598. int weakRefs;
  4599. };
  4600. class File
  4601. {
  4602. // Methods:
  4603. void Close();
  4604. bool HasSubscribedToEvent(Object, const String&);
  4605. bool HasSubscribedToEvent(const String&);
  4606. bool Open(const String&, FileMode = FILE_READ);
  4607. Array<uint8> Read(uint);
  4608. bool ReadBool();
  4609. BoundingBox ReadBoundingBox();
  4610. int8 ReadByte();
  4611. Color ReadColor();
  4612. double ReadDouble();
  4613. String ReadFileID();
  4614. float ReadFloat();
  4615. int ReadInt();
  4616. IntRect ReadIntRect();
  4617. IntVector2 ReadIntVector2();
  4618. String ReadLine();
  4619. Matrix3 ReadMatrix3();
  4620. Matrix3x4 ReadMatrix3x4();
  4621. Matrix4 ReadMatrix4();
  4622. uint ReadNetID();
  4623. Quaternion ReadPackedQuaternion();
  4624. Vector3 ReadPackedVector3(float);
  4625. Quaternion ReadQuaternion();
  4626. int16 ReadShort();
  4627. String ReadString();
  4628. StringHash ReadStringHash();
  4629. uint8 ReadUByte();
  4630. uint ReadUInt();
  4631. uint16 ReadUShort();
  4632. uint ReadVLE();
  4633. Variant ReadVariant();
  4634. VariantMap ReadVariantMap();
  4635. Vector2 ReadVector2();
  4636. Vector3 ReadVector3();
  4637. Vector4 ReadVector4();
  4638. VectorBuffer ReadVectorBuffer(uint);
  4639. uint Seek(uint);
  4640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4641. uint Write(Array<uint8>);
  4642. bool WriteBool(bool);
  4643. bool WriteBoundingBox(const BoundingBox&);
  4644. bool WriteByte(int8);
  4645. bool WriteColor(const Color&);
  4646. bool WriteDouble(double);
  4647. bool WriteFileID(const String&);
  4648. bool WriteFloat(float);
  4649. bool WriteInt(int);
  4650. bool WriteIntRect(const IntRect&);
  4651. bool WriteIntVector2(const IntVector2&);
  4652. bool WriteLine(const String&);
  4653. bool WriteMatrix3(const Matrix3&);
  4654. bool WriteMatrix3x4(const Matrix3x4&);
  4655. bool WriteMatrix4(const Matrix4&);
  4656. bool WriteNetID(uint);
  4657. bool WritePackedQuaternion(const Quaternion&);
  4658. bool WritePackedVector3(const Vector3&, float);
  4659. bool WriteQuaternion(const Quaternion&);
  4660. bool WriteShort(int16);
  4661. bool WriteString(const String&);
  4662. bool WriteStringHash(const StringHash&);
  4663. bool WriteUByte(uint8);
  4664. bool WriteUInt(uint);
  4665. bool WriteUShort(uint16);
  4666. bool WriteVLE(uint);
  4667. bool WriteVariant(const Variant&);
  4668. bool WriteVariantMap(const VariantMap&);
  4669. bool WriteVector2(const Vector2&);
  4670. bool WriteVector3(const Vector3&);
  4671. bool WriteVector4(const Vector4&);
  4672. bool WriteVectorBuffer(const VectorBuffer&);
  4673. // Properties:
  4674. /* readonly */
  4675. String category;
  4676. /* readonly */
  4677. uint checksum;
  4678. /* readonly */
  4679. bool eof;
  4680. /* readonly */
  4681. FileMode mode;
  4682. /* readonly */
  4683. String name;
  4684. /* readonly */
  4685. bool open;
  4686. /* readonly */
  4687. bool packaged;
  4688. /* readonly */
  4689. uint position;
  4690. /* readonly */
  4691. int refs;
  4692. /* readonly */
  4693. uint size;
  4694. /* readonly */
  4695. StringHash type;
  4696. /* readonly */
  4697. String typeName;
  4698. /* readonly */
  4699. int weakRefs;
  4700. };
  4701. class FileSelector
  4702. {
  4703. // Methods:
  4704. bool HasSubscribedToEvent(Object, const String&);
  4705. bool HasSubscribedToEvent(const String&);
  4706. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4707. void SetButtonTexts(const String&, const String&);
  4708. void SetFilters(Array<String>, uint);
  4709. void UpdateElements();
  4710. // Properties:
  4711. /* readonly */
  4712. Button cancelButton;
  4713. /* readonly */
  4714. String category;
  4715. XMLFile defaultStyle;
  4716. bool directoryMode;
  4717. /* readonly */
  4718. ListView fileList;
  4719. String fileName;
  4720. /* readonly */
  4721. LineEdit fileNameEdit;
  4722. /* readonly */
  4723. String filter;
  4724. /* readonly */
  4725. uint filterIndex;
  4726. /* readonly */
  4727. DropDownList filterList;
  4728. /* readonly */
  4729. Button okButton;
  4730. String path;
  4731. /* readonly */
  4732. LineEdit pathEdit;
  4733. /* readonly */
  4734. int refs;
  4735. String title;
  4736. /* readonly */
  4737. Text titleText;
  4738. /* readonly */
  4739. StringHash type;
  4740. /* readonly */
  4741. String typeName;
  4742. /* readonly */
  4743. int weakRefs;
  4744. /* readonly */
  4745. Window window;
  4746. };
  4747. class FileSystem
  4748. {
  4749. // Methods:
  4750. bool Copy(const String&, const String&);
  4751. bool CreateDir(const String&);
  4752. bool Delete(const String&);
  4753. bool DirExists(const String&) const;
  4754. bool FileExists(const String&) const;
  4755. String GetAppPreferencesDir(const String&, const String&) const;
  4756. uint GetLastModifiedTime(const String&) const;
  4757. bool HasSubscribedToEvent(Object, const String&);
  4758. bool HasSubscribedToEvent(const String&);
  4759. bool Rename(const String&, const String&);
  4760. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4762. bool SetLastModifiedTime(const String&, uint);
  4763. int SystemCommand(const String&, bool = false);
  4764. uint SystemCommandAsync(const String&);
  4765. bool SystemOpen(const String&, const String&);
  4766. int SystemRun(const String&, Array<String>);
  4767. uint SystemRunAsync(const String&, Array<String>);
  4768. // Properties:
  4769. /* readonly */
  4770. String category;
  4771. String currentDir;
  4772. bool executeConsoleCommands;
  4773. /* readonly */
  4774. String programDir;
  4775. /* readonly */
  4776. int refs;
  4777. /* readonly */
  4778. StringHash type;
  4779. /* readonly */
  4780. String typeName;
  4781. /* readonly */
  4782. String userDocumentsDir;
  4783. /* readonly */
  4784. int weakRefs;
  4785. };
  4786. class FocusParameters
  4787. {
  4788. // Properties:
  4789. bool autoSize;
  4790. bool focus;
  4791. float minView;
  4792. bool nonUniform;
  4793. float quantize;
  4794. };
  4795. class Font
  4796. {
  4797. // Methods:
  4798. IntVector2 GetTotalGlyphOffset(int) const;
  4799. bool HasSubscribedToEvent(Object, const String&);
  4800. bool HasSubscribedToEvent(const String&);
  4801. bool Load(File);
  4802. bool Load(VectorBuffer&);
  4803. bool Save(File) const;
  4804. bool Save(VectorBuffer&) const;
  4805. bool SaveXML(File, int, bool = false, const String& = "\t");
  4806. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4807. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4809. // Properties:
  4810. IntVector2 absoluteGlyphOffset;
  4811. /* readonly */
  4812. String category;
  4813. /* readonly */
  4814. uint memoryUse;
  4815. String name;
  4816. /* readonly */
  4817. int refs;
  4818. Vector2 scaledGlyphOffset;
  4819. /* readonly */
  4820. StringHash type;
  4821. /* readonly */
  4822. String typeName;
  4823. /* readonly */
  4824. uint useTimer;
  4825. /* readonly */
  4826. int weakRefs;
  4827. };
  4828. class Frustum
  4829. {
  4830. // Methods:
  4831. void Define(const BoundingBox&, const Matrix3x4&);
  4832. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4833. void Define(float, float, float, float, float, const Matrix3x4&);
  4834. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4835. float Distance(const Vector3&) const;
  4836. Intersection IsInside(const BoundingBox&);
  4837. Intersection IsInside(const Sphere&);
  4838. Intersection IsInside(const Vector3&);
  4839. Intersection IsInsideFast(const BoundingBox&) const;
  4840. Intersection IsInsideFast(const Sphere&) const;
  4841. void Transform(const Matrix3&);
  4842. void Transform(const Matrix3x4&);
  4843. Frustum Transformed(const Matrix3&) const;
  4844. Frustum Transformed(const Matrix3x4&) const;
  4845. // Properties:
  4846. /* readonly */
  4847. Array<Vector3> vertices;
  4848. };
  4849. class Geometry
  4850. {
  4851. // Methods:
  4852. bool HasSubscribedToEvent(Object, const String&);
  4853. bool HasSubscribedToEvent(const String&);
  4854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4855. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4856. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4857. void SetIndexBuffer(IndexBuffer);
  4858. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4859. // Properties:
  4860. /* readonly */
  4861. String category;
  4862. /* readonly */
  4863. bool empty;
  4864. IndexBuffer indexBuffer;
  4865. /* readonly */
  4866. uint indexCount;
  4867. /* readonly */
  4868. uint indexStart;
  4869. float lodDistance;
  4870. uint numVertexBuffers;
  4871. /* readonly */
  4872. PrimitiveType primitiveType;
  4873. /* readonly */
  4874. int refs;
  4875. /* readonly */
  4876. StringHash type;
  4877. /* readonly */
  4878. String typeName;
  4879. /* readonly */
  4880. Array<VertexBuffer> vertexBuffers;
  4881. /* readonly */
  4882. uint vertexCount;
  4883. /* readonly */
  4884. Array<uint> vertexElementMasks;
  4885. /* readonly */
  4886. uint vertexStart;
  4887. /* readonly */
  4888. int weakRefs;
  4889. };
  4890. class Graphics
  4891. {
  4892. // Methods:
  4893. void BeginDumpShaders(const String&);
  4894. void Close();
  4895. void EndDumpShaders();
  4896. bool HasSubscribedToEvent(Object, const String&);
  4897. bool HasSubscribedToEvent(const String&);
  4898. void Maximize();
  4899. void Minimize();
  4900. void PrecacheShaders(File);
  4901. void PrecacheShaders(VectorBuffer&);
  4902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4903. bool SetMode(int, int);
  4904. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4905. void SetWindowPosition(int, int);
  4906. bool TakeScreenShot(Image);
  4907. bool ToggleFullscreen();
  4908. // Properties:
  4909. /* readonly */
  4910. String apiName;
  4911. /* readonly */
  4912. bool borderless;
  4913. /* readonly */
  4914. String category;
  4915. /* readonly */
  4916. bool deferredSupport;
  4917. /* readonly */
  4918. IntVector2 desktopResolution;
  4919. /* readonly */
  4920. bool deviceLost;
  4921. bool flushGPU;
  4922. /* readonly */
  4923. bool fullscreen;
  4924. /* readonly */
  4925. bool hardwareShadowSupport;
  4926. /* readonly */
  4927. int height;
  4928. /* readonly */
  4929. bool initialized;
  4930. /* readonly */
  4931. bool instancingSupport;
  4932. /* readonly */
  4933. bool lightPrepassSupport;
  4934. /* readonly */
  4935. int multiSample;
  4936. /* readonly */
  4937. Array<int> multiSampleLevels;
  4938. /* readonly */
  4939. uint numBatches;
  4940. /* readonly */
  4941. uint numPrimitives;
  4942. String orientations;
  4943. /* readonly */
  4944. bool readableDepthSupport;
  4945. /* readonly */
  4946. int refs;
  4947. /* readonly */
  4948. bool resizable;
  4949. /* readonly */
  4950. Array<IntVector2> resolutions;
  4951. bool sRGB;
  4952. /* readonly */
  4953. bool sRGBSupport;
  4954. /* readonly */
  4955. bool sRGBWriteSupport;
  4956. /* readonly */
  4957. bool tripleBuffer;
  4958. /* readonly */
  4959. StringHash type;
  4960. /* readonly */
  4961. String typeName;
  4962. /* readonly */
  4963. bool vsync;
  4964. /* readonly */
  4965. int weakRefs;
  4966. /* readonly */
  4967. int width;
  4968. /* writeonly */
  4969. Image windowIcon;
  4970. IntVector2 windowPosition;
  4971. String windowTitle;
  4972. };
  4973. class HttpRequest
  4974. {
  4975. // Methods:
  4976. Array<uint8> Read(uint);
  4977. bool ReadBool();
  4978. BoundingBox ReadBoundingBox();
  4979. int8 ReadByte();
  4980. Color ReadColor();
  4981. double ReadDouble();
  4982. String ReadFileID();
  4983. float ReadFloat();
  4984. int ReadInt();
  4985. IntRect ReadIntRect();
  4986. IntVector2 ReadIntVector2();
  4987. String ReadLine();
  4988. Matrix3 ReadMatrix3();
  4989. Matrix3x4 ReadMatrix3x4();
  4990. Matrix4 ReadMatrix4();
  4991. uint ReadNetID();
  4992. Quaternion ReadPackedQuaternion();
  4993. Vector3 ReadPackedVector3(float);
  4994. Quaternion ReadQuaternion();
  4995. int16 ReadShort();
  4996. String ReadString();
  4997. StringHash ReadStringHash();
  4998. uint8 ReadUByte();
  4999. uint ReadUInt();
  5000. uint16 ReadUShort();
  5001. uint ReadVLE();
  5002. Variant ReadVariant();
  5003. VariantMap ReadVariantMap();
  5004. Vector2 ReadVector2();
  5005. Vector3 ReadVector3();
  5006. Vector4 ReadVector4();
  5007. VectorBuffer ReadVectorBuffer(uint);
  5008. uint Seek(uint);
  5009. // Properties:
  5010. /* readonly */
  5011. uint availableSize;
  5012. /* readonly */
  5013. uint checksum;
  5014. /* readonly */
  5015. bool eof;
  5016. /* readonly */
  5017. String error;
  5018. /* readonly */
  5019. String name;
  5020. /* readonly */
  5021. bool open;
  5022. /* readonly */
  5023. uint position;
  5024. /* readonly */
  5025. int refs;
  5026. /* readonly */
  5027. uint size;
  5028. /* readonly */
  5029. HttpRequestState state;
  5030. /* readonly */
  5031. String url;
  5032. /* readonly */
  5033. String verb;
  5034. /* readonly */
  5035. int weakRefs;
  5036. };
  5037. class Image
  5038. {
  5039. // Methods:
  5040. void Clear(const Color&);
  5041. void ClearInt(uint);
  5042. bool FlipHorizontal();
  5043. bool FlipVertical();
  5044. Color GetPixel(int, int) const;
  5045. Color GetPixel(int, int, int) const;
  5046. Color GetPixelBilinear(float, float) const;
  5047. uint GetPixelInt(int, int) const;
  5048. uint GetPixelInt(int, int, int) const;
  5049. Color GetPixelTrilinear(float, float, float) const;
  5050. Image GetSubimage(const IntRect&) const;
  5051. bool HasSubscribedToEvent(Object, const String&);
  5052. bool HasSubscribedToEvent(const String&);
  5053. bool Load(File);
  5054. bool Load(VectorBuffer&);
  5055. bool LoadColorLUT(File);
  5056. bool LoadColorLUT(VectorBuffer&);
  5057. bool Resize(int, int);
  5058. bool Save(File) const;
  5059. bool Save(VectorBuffer&) const;
  5060. bool SaveBMP(const String&) const;
  5061. bool SaveJPG(const String&, int) const;
  5062. bool SavePNG(const String&) const;
  5063. bool SaveTGA(const String&) const;
  5064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5065. void SetPixel(int, int, const Color&);
  5066. void SetPixel(int, int, int, const Color&);
  5067. void SetPixelInt(int, int, int, uint);
  5068. void SetPixelInt(int, int, uint);
  5069. bool SetSize(int, int, int, uint);
  5070. bool SetSize(int, int, uint);
  5071. // Properties:
  5072. /* readonly */
  5073. bool array;
  5074. /* readonly */
  5075. String category;
  5076. /* readonly */
  5077. uint components;
  5078. /* readonly */
  5079. bool compressed;
  5080. /* readonly */
  5081. CompressedFormat compressedFormat;
  5082. /* readonly */
  5083. bool cubemap;
  5084. /* readonly */
  5085. int depth;
  5086. /* readonly */
  5087. int height;
  5088. /* readonly */
  5089. uint memoryUse;
  5090. String name;
  5091. /* readonly */
  5092. uint numCompressedLevels;
  5093. /* readonly */
  5094. int refs;
  5095. /* readonly */
  5096. bool sRGB;
  5097. /* readonly */
  5098. StringHash type;
  5099. /* readonly */
  5100. String typeName;
  5101. /* readonly */
  5102. uint useTimer;
  5103. /* readonly */
  5104. int weakRefs;
  5105. /* readonly */
  5106. int width;
  5107. };
  5108. class IndexBuffer
  5109. {
  5110. // Methods:
  5111. VectorBuffer GetData();
  5112. bool HasSubscribedToEvent(Object, const String&);
  5113. bool HasSubscribedToEvent(const String&);
  5114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5115. bool SetData(VectorBuffer&);
  5116. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5117. void SetSize(uint, bool, bool = false);
  5118. // Properties:
  5119. /* readonly */
  5120. String category;
  5121. /* readonly */
  5122. bool dynamic;
  5123. /* readonly */
  5124. uint indexCount;
  5125. /* readonly */
  5126. uint indexSize;
  5127. /* readonly */
  5128. int refs;
  5129. bool shadowed;
  5130. /* readonly */
  5131. StringHash type;
  5132. /* readonly */
  5133. String typeName;
  5134. /* readonly */
  5135. int weakRefs;
  5136. };
  5137. class Input
  5138. {
  5139. // Methods:
  5140. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5141. int GetKeyFromName(const String&) const;
  5142. int GetKeyFromScancode(int) const;
  5143. String GetKeyName(int) const;
  5144. int GetScancodeFromKey(int) const;
  5145. int GetScancodeFromName(const String&) const;
  5146. String GetScancodeName(int) const;
  5147. bool HasSubscribedToEvent(Object, const String&);
  5148. bool HasSubscribedToEvent(const String&);
  5149. uint LoadGestures(File);
  5150. uint LoadGestures(VectorBuffer&);
  5151. bool RecordGesture();
  5152. void RemoveAllGestures();
  5153. bool RemoveGesture(uint);
  5154. bool RemoveScreenJoystick(int);
  5155. void ResetMouseVisible();
  5156. bool SaveGesture(File, uint);
  5157. bool SaveGesture(VectorBuffer&, uint);
  5158. bool SaveGestures(File);
  5159. bool SaveGestures(VectorBuffer&);
  5160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5161. void SetMouseVisible(bool, bool = false);
  5162. // Properties:
  5163. /* readonly */
  5164. String category;
  5165. /* readonly */
  5166. bool focus;
  5167. /* readonly */
  5168. Array<JoystickState> joysticks;
  5169. /* readonly */
  5170. Array<JoystickState> joysticksByIndex;
  5171. /* readonly */
  5172. Array<bool> keyDown;
  5173. /* readonly */
  5174. Array<bool> keyPress;
  5175. /* readonly */
  5176. bool minimized;
  5177. /* readonly */
  5178. Array<bool> mouseButtonDown;
  5179. /* readonly */
  5180. Array<bool> mouseButtonPress;
  5181. bool mouseGrabbed;
  5182. MouseMode mouseMode;
  5183. /* readonly */
  5184. IntVector2 mouseMove;
  5185. /* readonly */
  5186. int mouseMoveWheel;
  5187. /* readonly */
  5188. int mouseMoveX;
  5189. /* readonly */
  5190. int mouseMoveY;
  5191. /* readonly */
  5192. IntVector2 mousePosition;
  5193. bool mouseVisible;
  5194. /* readonly */
  5195. uint numJoysticks;
  5196. /* readonly */
  5197. uint numTouches;
  5198. /* readonly */
  5199. Array<bool> qualifierDown;
  5200. /* readonly */
  5201. Array<bool> qualifierPress;
  5202. /* readonly */
  5203. int qualifiers;
  5204. /* readonly */
  5205. int refs;
  5206. /* readonly */
  5207. Array<bool> scancodeDown;
  5208. /* readonly */
  5209. Array<bool> scancodePress;
  5210. Array<bool> screenJoystickVisible;
  5211. /* readonly */
  5212. bool screenKeyboardSupport;
  5213. bool screenKeyboardVisible;
  5214. bool toggleFullscreen;
  5215. bool touchEmulation;
  5216. /* readonly */
  5217. Array<TouchState> touches;
  5218. /* readonly */
  5219. StringHash type;
  5220. /* readonly */
  5221. String typeName;
  5222. /* readonly */
  5223. int weakRefs;
  5224. };
  5225. class IntRect
  5226. {
  5227. // Methods:
  5228. Intersection IsInside(const IntVector2&) const;
  5229. // Properties:
  5230. int bottom;
  5231. /* readonly */
  5232. Array<int> data;
  5233. /* readonly */
  5234. int height;
  5235. int left;
  5236. int right;
  5237. /* readonly */
  5238. IntVector2 size;
  5239. int top;
  5240. /* readonly */
  5241. int width;
  5242. };
  5243. class IntVector2
  5244. {
  5245. // Methods:
  5246. String ToString() const;
  5247. // Properties:
  5248. /* readonly */
  5249. Array<int> data;
  5250. int x;
  5251. int y;
  5252. };
  5253. class JSONFile
  5254. {
  5255. // Methods:
  5256. JSONValue& GetRoot();
  5257. bool HasSubscribedToEvent(Object, const String&);
  5258. bool HasSubscribedToEvent(const String&);
  5259. bool Load(File);
  5260. bool Load(VectorBuffer&);
  5261. bool Save(File) const;
  5262. bool Save(File, const String&) const;
  5263. bool Save(VectorBuffer&) const;
  5264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5265. // Properties:
  5266. /* readonly */
  5267. String category;
  5268. /* readonly */
  5269. uint memoryUse;
  5270. String name;
  5271. /* readonly */
  5272. int refs;
  5273. /* readonly */
  5274. JSONValue root;
  5275. /* readonly */
  5276. StringHash type;
  5277. /* readonly */
  5278. String typeName;
  5279. /* readonly */
  5280. uint useTimer;
  5281. /* readonly */
  5282. int weakRefs;
  5283. };
  5284. class JSONValue
  5285. {
  5286. // Methods:
  5287. void Clear();
  5288. bool Contains(const String&) const;
  5289. void Erase(const String&);
  5290. void Erase(uint, uint = 1);
  5291. bool GetBool() const;
  5292. double GetDouble() const;
  5293. float GetFloat() const;
  5294. int GetInt() const;
  5295. uint GetUInt() const;
  5296. void Insert(uint, const JSONValue&);
  5297. const JSONValue& Get(const String&) const;
  5298. void Pop();
  5299. void Push(const JSONValue&);
  5300. void Resize(uint);
  5301. void Set(const String&, const JSONValue&);
  5302. const String& GetString() const;
  5303. // Properties:
  5304. /* readonly */
  5305. bool isArray;
  5306. /* readonly */
  5307. bool isBool;
  5308. /* readonly */
  5309. bool isNull;
  5310. /* readonly */
  5311. bool isNumber;
  5312. /* readonly */
  5313. bool isObject;
  5314. /* readonly */
  5315. bool isString;
  5316. /* readonly */
  5317. uint size;
  5318. /* readonly */
  5319. JSONValueType valueType;
  5320. };
  5321. class JoystickState
  5322. {
  5323. // Properties:
  5324. /* readonly */
  5325. Array<float> axisPosition;
  5326. /* readonly */
  5327. Array<bool> buttonDown;
  5328. /* readonly */
  5329. Array<bool> buttonPress;
  5330. /* readonly */
  5331. bool controller;
  5332. /* readonly */
  5333. Array<int> hatPosition;
  5334. int joystickID;
  5335. String name;
  5336. /* readonly */
  5337. uint numAxes;
  5338. /* readonly */
  5339. uint numButtons;
  5340. /* readonly */
  5341. uint numHats;
  5342. };
  5343. class Light
  5344. {
  5345. // Methods:
  5346. void ApplyAttributes();
  5347. void DrawDebugGeometry(DebugRenderer, bool);
  5348. Variant GetAttribute(const String&) const;
  5349. ValueAnimation GetAttributeAnimation(const String&) const;
  5350. float GetAttributeAnimationSpeed(const String&) const;
  5351. float GetAttributeAnimationTime(const String&) const;
  5352. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5353. Variant GetAttributeDefault(const String&) const;
  5354. bool GetInterceptNetworkUpdate(const String&) const;
  5355. bool HasSubscribedToEvent(Object, const String&);
  5356. bool HasSubscribedToEvent(const String&);
  5357. bool IsInView(Camera) const;
  5358. bool Load(File, bool = false);
  5359. bool Load(VectorBuffer&, bool = false);
  5360. bool LoadJSON(const JSONValue&, bool = false);
  5361. bool LoadXML(const XMLElement&, bool = false);
  5362. void MarkNetworkUpdate() const;
  5363. void Remove();
  5364. void RemoveAttributeAnimation(const String&);
  5365. void RemoveInstanceDefault();
  5366. void RemoveObjectAnimation();
  5367. void ResetToDefault();
  5368. bool Save(File) const;
  5369. bool Save(VectorBuffer&) const;
  5370. bool SaveJSON(JSONValue&) const;
  5371. bool SaveXML(XMLElement&) const;
  5372. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5373. void SetAnimationTime(float);
  5374. bool SetAttribute(const String&, const Variant&);
  5375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5376. void SetAttributeAnimationSpeed(const String&, float);
  5377. void SetAttributeAnimationTime(const String&, float);
  5378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5379. void SetInterceptNetworkUpdate(const String&, bool);
  5380. // Properties:
  5381. bool animationEnabled;
  5382. float aspectRatio;
  5383. /* readonly */
  5384. Array<Variant> attributeDefaults;
  5385. /* readonly */
  5386. Array<AttributeInfo> attributeInfos;
  5387. Array<Variant> attributes;
  5388. /* readonly */
  5389. BoundingBox boundingBox;
  5390. float brightness;
  5391. bool castShadows;
  5392. /* readonly */
  5393. String category;
  5394. Color color;
  5395. float drawDistance;
  5396. /* readonly */
  5397. Color effectiveColor;
  5398. /* readonly */
  5399. float effectiveSpecularIntensity;
  5400. bool enabled;
  5401. /* readonly */
  5402. bool enabledEffective;
  5403. float fadeDistance;
  5404. float fov;
  5405. /* readonly */
  5406. Frustum frustum;
  5407. /* readonly */
  5408. uint id;
  5409. /* readonly */
  5410. bool inView;
  5411. uint lightMask;
  5412. LightType lightType;
  5413. float lodBias;
  5414. uint maxLights;
  5415. /* readonly */
  5416. bool negative;
  5417. /* readonly */
  5418. Node node;
  5419. /* readonly */
  5420. uint numAttributes;
  5421. /* readonly */
  5422. int numShadowSplits;
  5423. ObjectAnimation objectAnimation;
  5424. bool occludee;
  5425. bool occluder;
  5426. bool perVertex;
  5427. Texture rampTexture;
  5428. float range;
  5429. /* readonly */
  5430. int refs;
  5431. BiasParameters shadowBias;
  5432. CascadeParameters shadowCascade;
  5433. float shadowDistance;
  5434. float shadowFadeDistance;
  5435. FocusParameters shadowFocus;
  5436. float shadowIntensity;
  5437. uint shadowMask;
  5438. float shadowNearFarRatio;
  5439. float shadowResolution;
  5440. Texture shapeTexture;
  5441. float specularIntensity;
  5442. bool temporary;
  5443. /* readonly */
  5444. StringHash type;
  5445. /* readonly */
  5446. String typeName;
  5447. uint viewMask;
  5448. /* readonly */
  5449. int weakRefs;
  5450. /* readonly */
  5451. BoundingBox worldBoundingBox;
  5452. uint zoneMask;
  5453. };
  5454. class LineEdit
  5455. {
  5456. // Methods:
  5457. void AddChild(UIElement);
  5458. void ApplyAttributes();
  5459. void BringToFront();
  5460. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5461. void DisableLayoutUpdate();
  5462. IntVector2 ElementToScreen(const IntVector2&);
  5463. void EnableLayoutUpdate();
  5464. uint FindChild(UIElement) const;
  5465. Variant GetAttribute(const String&) const;
  5466. ValueAnimation GetAttributeAnimation(const String&) const;
  5467. float GetAttributeAnimationSpeed(const String&) const;
  5468. float GetAttributeAnimationTime(const String&) const;
  5469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5470. Variant GetAttributeDefault(const String&) const;
  5471. UIElement GetChild(const String&, bool = false) const;
  5472. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5473. Array<UIElement> GetChildren(bool = false) const;
  5474. UIElement GetElementEventSender() const;
  5475. bool GetInterceptNetworkUpdate(const String&) const;
  5476. uint GetNumChildren(bool) const;
  5477. bool HasSubscribedToEvent(Object, const String&);
  5478. bool HasSubscribedToEvent(const String&);
  5479. void InsertChild(uint, UIElement);
  5480. bool IsInside(IntVector2, bool);
  5481. bool IsInsideCombined(IntVector2, bool);
  5482. bool Load(File, bool = false);
  5483. bool Load(VectorBuffer&, bool = false);
  5484. bool LoadChildXML(XMLFile, XMLFile = null);
  5485. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5486. bool LoadJSON(const JSONValue&, bool = false);
  5487. bool LoadXML(File);
  5488. bool LoadXML(VectorBuffer&);
  5489. bool LoadXML(XMLFile, XMLFile);
  5490. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5491. bool LoadXML(const XMLElement&, bool = false);
  5492. void MarkNetworkUpdate() const;
  5493. void Remove();
  5494. void RemoveAllChildren();
  5495. void RemoveAttributeAnimation(const String&);
  5496. void RemoveChild(UIElement, uint = 0);
  5497. void RemoveChild(uint);
  5498. void RemoveInstanceDefault();
  5499. void RemoveObjectAnimation();
  5500. void ResetDeepEnabled();
  5501. void ResetToDefault();
  5502. bool Save(File) const;
  5503. bool Save(VectorBuffer&) const;
  5504. bool SaveJSON(JSONValue&) const;
  5505. bool SaveXML(File, const String& = "\t");
  5506. bool SaveXML(VectorBuffer&, const String& = "\t");
  5507. bool SaveXML(XMLElement&) const;
  5508. IntVector2 ScreenToElement(const IntVector2&);
  5509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5510. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5511. void SetAnimationTime(float);
  5512. bool SetAttribute(const String&, const Variant&);
  5513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5514. void SetAttributeAnimationSpeed(const String&, float);
  5515. void SetAttributeAnimationTime(const String&, float);
  5516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5517. void SetDeepEnabled(bool);
  5518. void SetEnabledRecursive(bool);
  5519. void SetFixedHeight(int);
  5520. void SetFixedSize(int, int);
  5521. void SetFixedWidth(int);
  5522. void SetFullImageRect();
  5523. void SetHoverOffset(int, int);
  5524. void SetInterceptNetworkUpdate(const String&, bool);
  5525. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5526. void SetMaxSize(int, int);
  5527. void SetMinSize(int, int);
  5528. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5529. void SetPosition(int, int);
  5530. void SetSize(int, int);
  5531. bool SetStyle(const String&, XMLFile = null);
  5532. bool SetStyle(const XMLElement&);
  5533. bool SetStyleAuto(XMLFile = null);
  5534. void UpdateLayout();
  5535. const Variant& GetVar(const StringHash&);
  5536. // Properties:
  5537. bool animationEnabled;
  5538. /* readonly */
  5539. Array<Variant> attributeDefaults;
  5540. /* readonly */
  5541. Array<AttributeInfo> attributeInfos;
  5542. Array<Variant> attributes;
  5543. BlendMode blendMode;
  5544. IntRect border;
  5545. bool bringToBack;
  5546. bool bringToFront;
  5547. /* readonly */
  5548. String category;
  5549. /* readonly */
  5550. IntVector2 childOffset;
  5551. /* readonly */
  5552. Array<UIElement> children;
  5553. IntRect clipBorder;
  5554. bool clipChildren;
  5555. /* writeonly */
  5556. Color color;
  5557. /* readonly */
  5558. bool colorGradient;
  5559. Array<Color> colors;
  5560. /* readonly */
  5561. IntRect combinedScreenRect;
  5562. /* readonly */
  5563. BorderImage cursor;
  5564. float cursorBlinkRate;
  5565. bool cursorMovable;
  5566. uint cursorPosition;
  5567. XMLFile defaultStyle;
  5568. /* readonly */
  5569. float derivedOpacity;
  5570. /* readonly */
  5571. uint dragButtonCombo;
  5572. /* readonly */
  5573. int dragButtonCount;
  5574. uint dragDropMode;
  5575. uint echoCharacter;
  5576. bool editable;
  5577. bool elementEventSender;
  5578. bool enabled;
  5579. /* readonly */
  5580. bool enabledSelf;
  5581. /* readonly */
  5582. bool fixedHeight;
  5583. /* readonly */
  5584. bool fixedSize;
  5585. /* readonly */
  5586. bool fixedWidth;
  5587. bool focus;
  5588. FocusMode focusMode;
  5589. int height;
  5590. HorizontalAlignment horizontalAlignment;
  5591. IntVector2 hoverOffset;
  5592. /* readonly */
  5593. bool hovering;
  5594. IntRect imageBorder;
  5595. IntRect imageRect;
  5596. int indent;
  5597. int indentSpacing;
  5598. /* readonly */
  5599. int indentWidth;
  5600. bool internal;
  5601. IntRect layoutBorder;
  5602. Vector2 layoutFlexScale;
  5603. LayoutMode layoutMode;
  5604. int layoutSpacing;
  5605. int maxHeight;
  5606. uint maxLength;
  5607. IntVector2 maxSize;
  5608. int maxWidth;
  5609. int minHeight;
  5610. IntVector2 minSize;
  5611. int minWidth;
  5612. String name;
  5613. /* readonly */
  5614. uint numAllChildren;
  5615. /* readonly */
  5616. uint numAttributes;
  5617. /* readonly */
  5618. uint numChildren;
  5619. ObjectAnimation objectAnimation;
  5620. float opacity;
  5621. UIElement parent;
  5622. IntVector2 position;
  5623. int priority;
  5624. /* readonly */
  5625. int refs;
  5626. /* readonly */
  5627. UIElement root;
  5628. /* readonly */
  5629. IntVector2 screenPosition;
  5630. bool selected;
  5631. IntVector2 size;
  5632. bool sortChildren;
  5633. String style;
  5634. bool temporary;
  5635. String text;
  5636. bool textCopyable;
  5637. /* readonly */
  5638. Text textElement;
  5639. bool textSelectable;
  5640. Texture texture;
  5641. bool tiled;
  5642. TraversalMode traversalMode;
  5643. /* readonly */
  5644. StringHash type;
  5645. /* readonly */
  5646. String typeName;
  5647. bool useDerivedOpacity;
  5648. /* readonly */
  5649. VariantMap vars;
  5650. VerticalAlignment verticalAlignment;
  5651. bool visible;
  5652. /* readonly */
  5653. bool visibleEffective;
  5654. /* readonly */
  5655. int weakRefs;
  5656. int width;
  5657. };
  5658. class ListView
  5659. {
  5660. // Methods:
  5661. void AddChild(UIElement);
  5662. void AddItem(UIElement);
  5663. void AddSelection(uint);
  5664. void ApplyAttributes();
  5665. void BringToFront();
  5666. void ChangeSelection(int, bool);
  5667. void ClearSelection();
  5668. void CopySelectedItemsToClipboard();
  5669. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5670. void DisableLayoutUpdate();
  5671. IntVector2 ElementToScreen(const IntVector2&);
  5672. void EnableLayoutUpdate();
  5673. void Expand(uint, bool, bool = false);
  5674. uint FindChild(UIElement) const;
  5675. uint FindItem(UIElement);
  5676. Variant GetAttribute(const String&) const;
  5677. ValueAnimation GetAttributeAnimation(const String&) const;
  5678. float GetAttributeAnimationSpeed(const String&) const;
  5679. float GetAttributeAnimationTime(const String&) const;
  5680. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5681. Variant GetAttributeDefault(const String&) const;
  5682. UIElement GetChild(const String&, bool = false) const;
  5683. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5684. Array<UIElement> GetChildren(bool = false) const;
  5685. UIElement GetElementEventSender() const;
  5686. bool GetInterceptNetworkUpdate(const String&) const;
  5687. Array<UIElement> GetItems() const;
  5688. uint GetNumChildren(bool) const;
  5689. bool HasSubscribedToEvent(Object, const String&);
  5690. bool HasSubscribedToEvent(const String&);
  5691. void InsertChild(uint, UIElement);
  5692. void InsertItem(uint, UIElement, UIElement = null);
  5693. bool IsExpanded(uint) const;
  5694. bool IsInside(IntVector2, bool);
  5695. bool IsInsideCombined(IntVector2, bool);
  5696. bool IsSelected(uint) const;
  5697. bool Load(File, bool = false);
  5698. bool Load(VectorBuffer&, bool = false);
  5699. bool LoadChildXML(XMLFile, XMLFile = null);
  5700. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5701. bool LoadJSON(const JSONValue&, bool = false);
  5702. bool LoadXML(File);
  5703. bool LoadXML(VectorBuffer&);
  5704. bool LoadXML(XMLFile, XMLFile);
  5705. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5706. bool LoadXML(const XMLElement&, bool = false);
  5707. void MarkNetworkUpdate() const;
  5708. void Remove();
  5709. void RemoveAllChildren();
  5710. void RemoveAllItems();
  5711. void RemoveAttributeAnimation(const String&);
  5712. void RemoveChild(UIElement, uint = 0);
  5713. void RemoveChild(uint);
  5714. void RemoveInstanceDefault();
  5715. void RemoveItem(UIElement, uint = 0);
  5716. void RemoveItem(uint);
  5717. void RemoveObjectAnimation();
  5718. void RemoveSelection(uint);
  5719. void ResetDeepEnabled();
  5720. void ResetToDefault();
  5721. bool Save(File) const;
  5722. bool Save(VectorBuffer&) const;
  5723. bool SaveJSON(JSONValue&) const;
  5724. bool SaveXML(File, const String& = "\t");
  5725. bool SaveXML(VectorBuffer&, const String& = "\t");
  5726. bool SaveXML(XMLElement&) const;
  5727. IntVector2 ScreenToElement(const IntVector2&);
  5728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5729. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5730. void SetAnimationTime(float);
  5731. bool SetAttribute(const String&, const Variant&);
  5732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5733. void SetAttributeAnimationSpeed(const String&, float);
  5734. void SetAttributeAnimationTime(const String&, float);
  5735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5736. void SetDeepEnabled(bool);
  5737. void SetEnabledRecursive(bool);
  5738. void SetFixedHeight(int);
  5739. void SetFixedSize(int, int);
  5740. void SetFixedWidth(int);
  5741. void SetInterceptNetworkUpdate(const String&, bool);
  5742. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5743. void SetMaxSize(int, int);
  5744. void SetMinSize(int, int);
  5745. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5746. void SetPosition(int, int);
  5747. void SetScrollBarsVisible(bool, bool);
  5748. void SetSelections(Array<uint>);
  5749. void SetSize(int, int);
  5750. bool SetStyle(const String&, XMLFile = null);
  5751. bool SetStyle(const XMLElement&);
  5752. bool SetStyleAuto(XMLFile = null);
  5753. void SetViewPosition(int, int);
  5754. void ToggleExpand(uint, bool = false);
  5755. void ToggleSelection(uint);
  5756. void UpdateLayout();
  5757. const Variant& GetVar(const StringHash&);
  5758. // Properties:
  5759. bool animationEnabled;
  5760. /* readonly */
  5761. Array<Variant> attributeDefaults;
  5762. /* readonly */
  5763. Array<AttributeInfo> attributeInfos;
  5764. Array<Variant> attributes;
  5765. bool autoDisableChildren;
  5766. float autoDisableThreshold;
  5767. int baseIndent;
  5768. bool bringToBack;
  5769. bool bringToFront;
  5770. /* readonly */
  5771. String category;
  5772. /* readonly */
  5773. IntVector2 childOffset;
  5774. /* readonly */
  5775. Array<UIElement> children;
  5776. bool clearSelectionOnDefocus;
  5777. IntRect clipBorder;
  5778. bool clipChildren;
  5779. /* writeonly */
  5780. Color color;
  5781. /* readonly */
  5782. bool colorGradient;
  5783. Array<Color> colors;
  5784. /* readonly */
  5785. IntRect combinedScreenRect;
  5786. /* readonly */
  5787. UIElement contentElement;
  5788. XMLFile defaultStyle;
  5789. /* readonly */
  5790. float derivedOpacity;
  5791. /* readonly */
  5792. uint dragButtonCombo;
  5793. /* readonly */
  5794. int dragButtonCount;
  5795. uint dragDropMode;
  5796. bool editable;
  5797. bool elementEventSender;
  5798. bool enabled;
  5799. /* readonly */
  5800. bool enabledSelf;
  5801. /* readonly */
  5802. bool fixedHeight;
  5803. /* readonly */
  5804. bool fixedSize;
  5805. /* readonly */
  5806. bool fixedWidth;
  5807. bool focus;
  5808. FocusMode focusMode;
  5809. int height;
  5810. bool hierarchyMode;
  5811. HighlightMode highlightMode;
  5812. HorizontalAlignment horizontalAlignment;
  5813. /* readonly */
  5814. ScrollBar horizontalScrollBar;
  5815. /* readonly */
  5816. bool hovering;
  5817. int indent;
  5818. int indentSpacing;
  5819. /* readonly */
  5820. int indentWidth;
  5821. bool internal;
  5822. /* readonly */
  5823. Array<UIElement> items;
  5824. IntRect layoutBorder;
  5825. Vector2 layoutFlexScale;
  5826. LayoutMode layoutMode;
  5827. int layoutSpacing;
  5828. int maxHeight;
  5829. IntVector2 maxSize;
  5830. int maxWidth;
  5831. int minHeight;
  5832. IntVector2 minSize;
  5833. int minWidth;
  5834. bool multiselect;
  5835. String name;
  5836. /* readonly */
  5837. uint numAllChildren;
  5838. /* readonly */
  5839. uint numAttributes;
  5840. /* readonly */
  5841. uint numChildren;
  5842. /* readonly */
  5843. uint numItems;
  5844. ObjectAnimation objectAnimation;
  5845. float opacity;
  5846. float pageStep;
  5847. UIElement parent;
  5848. IntVector2 position;
  5849. int priority;
  5850. /* readonly */
  5851. int refs;
  5852. /* readonly */
  5853. UIElement root;
  5854. /* readonly */
  5855. IntVector2 screenPosition;
  5856. bool scrollBarsAutoVisible;
  5857. float scrollDeceleration;
  5858. /* readonly */
  5859. BorderImage scrollPanel;
  5860. float scrollSnapEpsilon;
  5861. float scrollStep;
  5862. bool selectOnClickEnd;
  5863. bool selected;
  5864. /* readonly */
  5865. UIElement selectedItem;
  5866. /* readonly */
  5867. Array<UIElement> selectedItems;
  5868. uint selection;
  5869. /* readonly */
  5870. Array<uint> selections;
  5871. IntVector2 size;
  5872. bool sortChildren;
  5873. String style;
  5874. bool temporary;
  5875. TraversalMode traversalMode;
  5876. /* readonly */
  5877. StringHash type;
  5878. /* readonly */
  5879. String typeName;
  5880. bool useDerivedOpacity;
  5881. /* readonly */
  5882. VariantMap vars;
  5883. VerticalAlignment verticalAlignment;
  5884. /* readonly */
  5885. ScrollBar verticalScrollBar;
  5886. IntVector2 viewPosition;
  5887. bool visible;
  5888. /* readonly */
  5889. bool visibleEffective;
  5890. /* readonly */
  5891. int weakRefs;
  5892. int width;
  5893. };
  5894. class Localization
  5895. {
  5896. // Methods:
  5897. String Get(const String&);
  5898. String GetLanguage(int);
  5899. int GetLanguageIndex(const String&);
  5900. bool HasSubscribedToEvent(Object, const String&);
  5901. bool HasSubscribedToEvent(const String&);
  5902. void LoadJSON(const JSONValue&);
  5903. void LoadJSONFile(const String&);
  5904. void Reset();
  5905. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5906. void SetLanguage(const String&);
  5907. void SetLanguage(int);
  5908. // Properties:
  5909. /* readonly */
  5910. String category;
  5911. /* readonly */
  5912. String language;
  5913. /* readonly */
  5914. int languageIndex;
  5915. /* readonly */
  5916. int numLanguages;
  5917. /* readonly */
  5918. int refs;
  5919. /* readonly */
  5920. StringHash type;
  5921. /* readonly */
  5922. String typeName;
  5923. /* readonly */
  5924. int weakRefs;
  5925. };
  5926. class Log
  5927. {
  5928. // Methods:
  5929. void Close();
  5930. void Debug(const String&);
  5931. void Error(const String&);
  5932. bool HasSubscribedToEvent(Object, const String&);
  5933. bool HasSubscribedToEvent(const String&);
  5934. void Info(const String&);
  5935. void Open(const String&);
  5936. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5937. void Warning(const String&);
  5938. void Write(const String&, bool = false);
  5939. // Properties:
  5940. /* readonly */
  5941. String category;
  5942. /* readonly */
  5943. String lastMessage;
  5944. int level;
  5945. bool quiet;
  5946. /* readonly */
  5947. int refs;
  5948. bool timeStamp;
  5949. /* readonly */
  5950. StringHash type;
  5951. /* readonly */
  5952. String typeName;
  5953. /* readonly */
  5954. int weakRefs;
  5955. };
  5956. class Material
  5957. {
  5958. // Methods:
  5959. Material Clone(const String& = String ( )) const;
  5960. Pass GetPass(uint, const String&);
  5961. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5962. float GetShaderParameterAnimationSpeed(const String&) const;
  5963. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5964. bool HasSubscribedToEvent(Object, const String&);
  5965. bool HasSubscribedToEvent(const String&);
  5966. bool Load(File);
  5967. bool Load(VectorBuffer&);
  5968. bool Load(const JSONValue&);
  5969. bool Load(const XMLElement&);
  5970. void RemoveShaderParameter(const String&);
  5971. bool Save(File) const;
  5972. bool Save(JSONValue&) const;
  5973. bool Save(VectorBuffer&) const;
  5974. bool Save(XMLElement&) const;
  5975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5976. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5977. void SetShaderParameterAnimationSpeed(const String&, float);
  5978. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5979. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5980. void SetUVTransform(const Vector2&, float, const Vector2&);
  5981. void SetUVTransform(const Vector2&, float, float);
  5982. void SortTechniques();
  5983. // Properties:
  5984. /* readonly */
  5985. String category;
  5986. CullMode cullMode;
  5987. BiasParameters depthBias;
  5988. FillMode fillMode;
  5989. /* readonly */
  5990. uint memoryUse;
  5991. String name;
  5992. uint numTechniques;
  5993. /* readonly */
  5994. bool occlusion;
  5995. /* readonly */
  5996. int refs;
  5997. uint8 renderOrder;
  5998. Scene scene;
  5999. /* readonly */
  6000. Array<String> shaderParameterNames;
  6001. Array<Variant> shaderParameters;
  6002. CullMode shadowCullMode;
  6003. /* readonly */
  6004. Array<TechniqueEntry> techniqueEntries;
  6005. /* readonly */
  6006. Array<Technique> techniques;
  6007. Array<Texture> textures;
  6008. /* readonly */
  6009. StringHash type;
  6010. /* readonly */
  6011. String typeName;
  6012. /* readonly */
  6013. uint useTimer;
  6014. /* readonly */
  6015. int weakRefs;
  6016. };
  6017. class Matrix3
  6018. {
  6019. // Methods:
  6020. bool Equals(const Matrix3&) const;
  6021. Matrix3 Inverse() const;
  6022. Vector3 Scale() const;
  6023. Matrix3 Scaled(const Vector3&) const;
  6024. void SetScale(const Vector3&);
  6025. void SetScale(float);
  6026. String ToString() const;
  6027. Matrix3 Transpose() const;
  6028. // Properties:
  6029. float m00;
  6030. float m01;
  6031. float m02;
  6032. float m10;
  6033. float m11;
  6034. float m12;
  6035. float m20;
  6036. float m21;
  6037. float m22;
  6038. };
  6039. class Matrix3x4
  6040. {
  6041. // Methods:
  6042. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6043. bool Equals(const Matrix3x4&) const;
  6044. Matrix3x4 Inverse() const;
  6045. Quaternion Rotation() const;
  6046. Matrix3 RotationMatrix() const;
  6047. Vector3 Scale() const;
  6048. void SetRotation(const Matrix3&);
  6049. void SetScale(const Vector3&);
  6050. void SetScale(float);
  6051. void SetTranslation(const Vector3&);
  6052. Matrix3 ToMatrix3() const;
  6053. Matrix4 ToMatrix4() const;
  6054. String ToString() const;
  6055. Vector3 Translation() const;
  6056. // Properties:
  6057. float m00;
  6058. float m01;
  6059. float m02;
  6060. float m03;
  6061. float m10;
  6062. float m11;
  6063. float m12;
  6064. float m13;
  6065. float m20;
  6066. float m21;
  6067. float m22;
  6068. float m23;
  6069. };
  6070. class Matrix4
  6071. {
  6072. // Methods:
  6073. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6074. bool Equals(const Matrix4&) const;
  6075. Matrix4 Inverse() const;
  6076. Quaternion Rotation() const;
  6077. Matrix3 RotationMatrix() const;
  6078. Vector3 Scale() const;
  6079. void SetRotation(const Matrix3&);
  6080. void SetScale(const Vector3&);
  6081. void SetScale(float);
  6082. void SetTranslation(const Vector3&);
  6083. Matrix3 ToMatrix3() const;
  6084. String ToString() const;
  6085. Vector3 Translation() const;
  6086. Matrix4 Transpose() const;
  6087. // Properties:
  6088. float m00;
  6089. float m01;
  6090. float m02;
  6091. float m03;
  6092. float m10;
  6093. float m11;
  6094. float m12;
  6095. float m13;
  6096. float m20;
  6097. float m21;
  6098. float m22;
  6099. float m23;
  6100. float m30;
  6101. float m31;
  6102. float m32;
  6103. float m33;
  6104. };
  6105. class Menu
  6106. {
  6107. // Methods:
  6108. void AddChild(UIElement);
  6109. void ApplyAttributes();
  6110. void BringToFront();
  6111. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6112. void DisableLayoutUpdate();
  6113. IntVector2 ElementToScreen(const IntVector2&);
  6114. void EnableLayoutUpdate();
  6115. uint FindChild(UIElement) const;
  6116. Variant GetAttribute(const String&) const;
  6117. ValueAnimation GetAttributeAnimation(const String&) const;
  6118. float GetAttributeAnimationSpeed(const String&) const;
  6119. float GetAttributeAnimationTime(const String&) const;
  6120. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6121. Variant GetAttributeDefault(const String&) const;
  6122. UIElement GetChild(const String&, bool = false) const;
  6123. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6124. Array<UIElement> GetChildren(bool = false) const;
  6125. UIElement GetElementEventSender() const;
  6126. bool GetInterceptNetworkUpdate(const String&) const;
  6127. uint GetNumChildren(bool) const;
  6128. bool HasSubscribedToEvent(Object, const String&);
  6129. bool HasSubscribedToEvent(const String&);
  6130. void InsertChild(uint, UIElement);
  6131. bool IsInside(IntVector2, bool);
  6132. bool IsInsideCombined(IntVector2, bool);
  6133. bool Load(File, bool = false);
  6134. bool Load(VectorBuffer&, bool = false);
  6135. bool LoadChildXML(XMLFile, XMLFile = null);
  6136. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6137. bool LoadJSON(const JSONValue&, bool = false);
  6138. bool LoadXML(File);
  6139. bool LoadXML(VectorBuffer&);
  6140. bool LoadXML(XMLFile, XMLFile);
  6141. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6142. bool LoadXML(const XMLElement&, bool = false);
  6143. void MarkNetworkUpdate() const;
  6144. void Remove();
  6145. void RemoveAllChildren();
  6146. void RemoveAttributeAnimation(const String&);
  6147. void RemoveChild(UIElement, uint = 0);
  6148. void RemoveChild(uint);
  6149. void RemoveInstanceDefault();
  6150. void RemoveObjectAnimation();
  6151. void ResetDeepEnabled();
  6152. void ResetToDefault();
  6153. bool Save(File) const;
  6154. bool Save(VectorBuffer&) const;
  6155. bool SaveJSON(JSONValue&) const;
  6156. bool SaveXML(File, const String& = "\t");
  6157. bool SaveXML(VectorBuffer&, const String& = "\t");
  6158. bool SaveXML(XMLElement&) const;
  6159. IntVector2 ScreenToElement(const IntVector2&);
  6160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6161. void SetAccelerator(int, int);
  6162. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6163. void SetAnimationTime(float);
  6164. bool SetAttribute(const String&, const Variant&);
  6165. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6166. void SetAttributeAnimationSpeed(const String&, float);
  6167. void SetAttributeAnimationTime(const String&, float);
  6168. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6169. void SetDeepEnabled(bool);
  6170. void SetEnabledRecursive(bool);
  6171. void SetFixedHeight(int);
  6172. void SetFixedSize(int, int);
  6173. void SetFixedWidth(int);
  6174. void SetFullImageRect();
  6175. void SetHoverOffset(int, int);
  6176. void SetInterceptNetworkUpdate(const String&, bool);
  6177. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6178. void SetMaxSize(int, int);
  6179. void SetMinSize(int, int);
  6180. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6181. void SetPopupOffset(int, int);
  6182. void SetPosition(int, int);
  6183. void SetPressedChildOffset(int, int);
  6184. void SetPressedOffset(int, int);
  6185. void SetRepeat(float, float);
  6186. void SetSize(int, int);
  6187. bool SetStyle(const String&, XMLFile = null);
  6188. bool SetStyle(const XMLElement&);
  6189. bool SetStyleAuto(XMLFile = null);
  6190. void UpdateLayout();
  6191. const Variant& GetVar(const StringHash&);
  6192. // Properties:
  6193. /* readonly */
  6194. int acceleratorKey;
  6195. /* readonly */
  6196. int acceleratorQualifiers;
  6197. bool animationEnabled;
  6198. /* readonly */
  6199. Array<Variant> attributeDefaults;
  6200. /* readonly */
  6201. Array<AttributeInfo> attributeInfos;
  6202. Array<Variant> attributes;
  6203. BlendMode blendMode;
  6204. IntRect border;
  6205. bool bringToBack;
  6206. bool bringToFront;
  6207. /* readonly */
  6208. String category;
  6209. /* readonly */
  6210. IntVector2 childOffset;
  6211. /* readonly */
  6212. Array<UIElement> children;
  6213. IntRect clipBorder;
  6214. bool clipChildren;
  6215. /* writeonly */
  6216. Color color;
  6217. /* readonly */
  6218. bool colorGradient;
  6219. Array<Color> colors;
  6220. /* readonly */
  6221. IntRect combinedScreenRect;
  6222. XMLFile defaultStyle;
  6223. /* readonly */
  6224. float derivedOpacity;
  6225. /* readonly */
  6226. uint dragButtonCombo;
  6227. /* readonly */
  6228. int dragButtonCount;
  6229. uint dragDropMode;
  6230. bool editable;
  6231. bool elementEventSender;
  6232. bool enabled;
  6233. /* readonly */
  6234. bool enabledSelf;
  6235. /* readonly */
  6236. bool fixedHeight;
  6237. /* readonly */
  6238. bool fixedSize;
  6239. /* readonly */
  6240. bool fixedWidth;
  6241. bool focus;
  6242. FocusMode focusMode;
  6243. int height;
  6244. HorizontalAlignment horizontalAlignment;
  6245. IntVector2 hoverOffset;
  6246. /* readonly */
  6247. bool hovering;
  6248. IntRect imageBorder;
  6249. IntRect imageRect;
  6250. int indent;
  6251. int indentSpacing;
  6252. /* readonly */
  6253. int indentWidth;
  6254. bool internal;
  6255. IntRect layoutBorder;
  6256. Vector2 layoutFlexScale;
  6257. LayoutMode layoutMode;
  6258. int layoutSpacing;
  6259. int maxHeight;
  6260. IntVector2 maxSize;
  6261. int maxWidth;
  6262. int minHeight;
  6263. IntVector2 minSize;
  6264. int minWidth;
  6265. String name;
  6266. /* readonly */
  6267. uint numAllChildren;
  6268. /* readonly */
  6269. uint numAttributes;
  6270. /* readonly */
  6271. uint numChildren;
  6272. ObjectAnimation objectAnimation;
  6273. float opacity;
  6274. UIElement parent;
  6275. UIElement popup;
  6276. IntVector2 popupOffset;
  6277. IntVector2 position;
  6278. /* readonly */
  6279. bool pressed;
  6280. IntVector2 pressedChildOffset;
  6281. IntVector2 pressedOffset;
  6282. int priority;
  6283. /* readonly */
  6284. int refs;
  6285. float repeatDelay;
  6286. float repeatRate;
  6287. /* readonly */
  6288. UIElement root;
  6289. /* readonly */
  6290. IntVector2 screenPosition;
  6291. bool selected;
  6292. bool showPopup;
  6293. IntVector2 size;
  6294. bool sortChildren;
  6295. String style;
  6296. bool temporary;
  6297. Texture texture;
  6298. bool tiled;
  6299. TraversalMode traversalMode;
  6300. /* readonly */
  6301. StringHash type;
  6302. /* readonly */
  6303. String typeName;
  6304. bool useDerivedOpacity;
  6305. /* readonly */
  6306. VariantMap vars;
  6307. VerticalAlignment verticalAlignment;
  6308. bool visible;
  6309. /* readonly */
  6310. bool visibleEffective;
  6311. /* readonly */
  6312. int weakRefs;
  6313. int width;
  6314. };
  6315. class MessageBox
  6316. {
  6317. // Methods:
  6318. bool HasSubscribedToEvent(Object, const String&);
  6319. bool HasSubscribedToEvent(const String&);
  6320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6321. // Properties:
  6322. /* readonly */
  6323. String category;
  6324. String message;
  6325. /* readonly */
  6326. int refs;
  6327. String title;
  6328. /* readonly */
  6329. StringHash type;
  6330. /* readonly */
  6331. String typeName;
  6332. /* readonly */
  6333. int weakRefs;
  6334. /* readonly */
  6335. UIElement window;
  6336. };
  6337. class Model
  6338. {
  6339. // Methods:
  6340. Model Clone(const String& = String ( )) const;
  6341. Geometry GetGeometry(uint, uint) const;
  6342. bool HasSubscribedToEvent(Object, const String&);
  6343. bool HasSubscribedToEvent(const String&);
  6344. bool Load(File);
  6345. bool Load(VectorBuffer&);
  6346. bool Save(File) const;
  6347. bool Save(VectorBuffer&) const;
  6348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6349. bool SetGeometry(uint, uint, Geometry);
  6350. // Properties:
  6351. BoundingBox boundingBox;
  6352. /* readonly */
  6353. String category;
  6354. Array<Vector3> geometryCenters;
  6355. /* readonly */
  6356. uint memoryUse;
  6357. String name;
  6358. uint numGeometries;
  6359. Array<uint> numGeometryLodLevels;
  6360. /* readonly */
  6361. uint numMorphs;
  6362. /* readonly */
  6363. int refs;
  6364. /* readonly */
  6365. Skeleton skeleton;
  6366. /* readonly */
  6367. StringHash type;
  6368. /* readonly */
  6369. String typeName;
  6370. /* readonly */
  6371. uint useTimer;
  6372. /* readonly */
  6373. int weakRefs;
  6374. };
  6375. class NavArea
  6376. {
  6377. // Methods:
  6378. void ApplyAttributes();
  6379. void DrawDebugGeometry(DebugRenderer, bool);
  6380. Variant GetAttribute(const String&) const;
  6381. ValueAnimation GetAttributeAnimation(const String&) const;
  6382. float GetAttributeAnimationSpeed(const String&) const;
  6383. float GetAttributeAnimationTime(const String&) const;
  6384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6385. Variant GetAttributeDefault(const String&) const;
  6386. bool GetInterceptNetworkUpdate(const String&) const;
  6387. bool HasSubscribedToEvent(Object, const String&);
  6388. bool HasSubscribedToEvent(const String&);
  6389. bool Load(File, bool = false);
  6390. bool Load(VectorBuffer&, bool = false);
  6391. bool LoadJSON(const JSONValue&, bool = false);
  6392. bool LoadXML(const XMLElement&, bool = false);
  6393. void MarkNetworkUpdate() const;
  6394. void Remove();
  6395. void RemoveAttributeAnimation(const String&);
  6396. void RemoveInstanceDefault();
  6397. void RemoveObjectAnimation();
  6398. void ResetToDefault();
  6399. bool Save(File) const;
  6400. bool Save(VectorBuffer&) const;
  6401. bool SaveJSON(JSONValue&) const;
  6402. bool SaveXML(XMLElement&) const;
  6403. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6404. void SetAnimationTime(float);
  6405. bool SetAttribute(const String&, const Variant&);
  6406. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6407. void SetAttributeAnimationSpeed(const String&, float);
  6408. void SetAttributeAnimationTime(const String&, float);
  6409. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6410. void SetInterceptNetworkUpdate(const String&, bool);
  6411. // Properties:
  6412. bool animationEnabled;
  6413. uint areaID;
  6414. /* readonly */
  6415. Array<Variant> attributeDefaults;
  6416. /* readonly */
  6417. Array<AttributeInfo> attributeInfos;
  6418. Array<Variant> attributes;
  6419. BoundingBox boundingBox;
  6420. /* readonly */
  6421. String category;
  6422. bool enabled;
  6423. /* readonly */
  6424. bool enabledEffective;
  6425. /* readonly */
  6426. uint id;
  6427. /* readonly */
  6428. Node node;
  6429. /* readonly */
  6430. uint numAttributes;
  6431. ObjectAnimation objectAnimation;
  6432. /* readonly */
  6433. int refs;
  6434. bool temporary;
  6435. /* readonly */
  6436. StringHash type;
  6437. /* readonly */
  6438. String typeName;
  6439. /* readonly */
  6440. int weakRefs;
  6441. /* readonly */
  6442. BoundingBox worldBoundingBox;
  6443. };
  6444. class Navigable
  6445. {
  6446. // Methods:
  6447. void ApplyAttributes();
  6448. void DrawDebugGeometry(DebugRenderer, bool);
  6449. Variant GetAttribute(const String&) const;
  6450. ValueAnimation GetAttributeAnimation(const String&) const;
  6451. float GetAttributeAnimationSpeed(const String&) const;
  6452. float GetAttributeAnimationTime(const String&) const;
  6453. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6454. Variant GetAttributeDefault(const String&) const;
  6455. bool GetInterceptNetworkUpdate(const String&) const;
  6456. bool HasSubscribedToEvent(Object, const String&);
  6457. bool HasSubscribedToEvent(const String&);
  6458. bool Load(File, bool = false);
  6459. bool Load(VectorBuffer&, bool = false);
  6460. bool LoadJSON(const JSONValue&, bool = false);
  6461. bool LoadXML(const XMLElement&, bool = false);
  6462. void MarkNetworkUpdate() const;
  6463. void Remove();
  6464. void RemoveAttributeAnimation(const String&);
  6465. void RemoveInstanceDefault();
  6466. void RemoveObjectAnimation();
  6467. void ResetToDefault();
  6468. bool Save(File) const;
  6469. bool Save(VectorBuffer&) const;
  6470. bool SaveJSON(JSONValue&) const;
  6471. bool SaveXML(XMLElement&) const;
  6472. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6473. void SetAnimationTime(float);
  6474. bool SetAttribute(const String&, const Variant&);
  6475. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6476. void SetAttributeAnimationSpeed(const String&, float);
  6477. void SetAttributeAnimationTime(const String&, float);
  6478. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6479. void SetInterceptNetworkUpdate(const String&, bool);
  6480. // Properties:
  6481. bool animationEnabled;
  6482. /* readonly */
  6483. Array<Variant> attributeDefaults;
  6484. /* readonly */
  6485. Array<AttributeInfo> attributeInfos;
  6486. Array<Variant> attributes;
  6487. /* readonly */
  6488. String category;
  6489. bool enabled;
  6490. /* readonly */
  6491. bool enabledEffective;
  6492. /* readonly */
  6493. uint id;
  6494. /* readonly */
  6495. Node node;
  6496. /* readonly */
  6497. uint numAttributes;
  6498. ObjectAnimation objectAnimation;
  6499. bool recursive;
  6500. /* readonly */
  6501. int refs;
  6502. bool temporary;
  6503. /* readonly */
  6504. StringHash type;
  6505. /* readonly */
  6506. String typeName;
  6507. /* readonly */
  6508. int weakRefs;
  6509. };
  6510. class NavigationMesh
  6511. {
  6512. // Methods:
  6513. void ApplyAttributes();
  6514. bool Build();
  6515. bool Build(const BoundingBox&);
  6516. void DrawDebugGeometry(DebugRenderer, bool);
  6517. void DrawDebugGeometry(bool);
  6518. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6519. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6520. float GetAreaCost(uint) const;
  6521. Variant GetAttribute(const String&) const;
  6522. ValueAnimation GetAttributeAnimation(const String&) const;
  6523. float GetAttributeAnimationSpeed(const String&) const;
  6524. float GetAttributeAnimationTime(const String&) const;
  6525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6526. Variant GetAttributeDefault(const String&) const;
  6527. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6528. bool GetInterceptNetworkUpdate(const String&) const;
  6529. Vector3 GetRandomPoint();
  6530. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6531. bool HasSubscribedToEvent(Object, const String&);
  6532. bool HasSubscribedToEvent(const String&);
  6533. bool Load(File, bool = false);
  6534. bool Load(VectorBuffer&, bool = false);
  6535. bool LoadJSON(const JSONValue&, bool = false);
  6536. bool LoadXML(const XMLElement&, bool = false);
  6537. void MarkNetworkUpdate() const;
  6538. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6539. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6540. void Remove();
  6541. void RemoveAttributeAnimation(const String&);
  6542. void RemoveInstanceDefault();
  6543. void RemoveObjectAnimation();
  6544. void ResetToDefault();
  6545. bool Save(File) const;
  6546. bool Save(VectorBuffer&) const;
  6547. bool SaveJSON(JSONValue&) const;
  6548. bool SaveXML(XMLElement&) const;
  6549. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6550. void SetAnimationTime(float);
  6551. void SetAreaCost(uint, float);
  6552. bool SetAttribute(const String&, const Variant&);
  6553. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6554. void SetAttributeAnimationSpeed(const String&, float);
  6555. void SetAttributeAnimationTime(const String&, float);
  6556. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6557. void SetInterceptNetworkUpdate(const String&, bool);
  6558. // Properties:
  6559. float agentHeight;
  6560. float agentMaxClimb;
  6561. float agentMaxSlope;
  6562. float agentRadius;
  6563. bool animationEnabled;
  6564. /* readonly */
  6565. Array<Variant> attributeDefaults;
  6566. /* readonly */
  6567. Array<AttributeInfo> attributeInfos;
  6568. Array<Variant> attributes;
  6569. /* readonly */
  6570. BoundingBox boundingBox;
  6571. /* readonly */
  6572. String category;
  6573. float cellHeight;
  6574. float cellSize;
  6575. float detailSampleDistance;
  6576. float detailSampleMaxError;
  6577. bool drawNavAreas;
  6578. bool drawOffMeshConnections;
  6579. float edgeMaxError;
  6580. float edgeMaxLength;
  6581. bool enabled;
  6582. /* readonly */
  6583. bool enabledEffective;
  6584. /* readonly */
  6585. uint id;
  6586. /* readonly */
  6587. bool initialized;
  6588. /* readonly */
  6589. Node node;
  6590. /* readonly */
  6591. uint numAttributes;
  6592. /* readonly */
  6593. IntVector2 numTiles;
  6594. ObjectAnimation objectAnimation;
  6595. Vector3 padding;
  6596. NavmeshPartitionType partitionType;
  6597. /* readonly */
  6598. int refs;
  6599. float regionMergeSize;
  6600. float regionMinSize;
  6601. bool temporary;
  6602. int tileSize;
  6603. /* readonly */
  6604. StringHash type;
  6605. /* readonly */
  6606. String typeName;
  6607. /* readonly */
  6608. int weakRefs;
  6609. /* readonly */
  6610. BoundingBox worldBoundingBox;
  6611. };
  6612. class Network
  6613. {
  6614. // Methods:
  6615. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6616. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6617. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6618. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6619. bool CheckRemoteEvent(const String&) const;
  6620. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6621. void Disconnect(int = 0);
  6622. bool HasSubscribedToEvent(Object, const String&);
  6623. bool HasSubscribedToEvent(const String&);
  6624. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6625. void RegisterRemoteEvent(const String&) const;
  6626. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6627. void SendPackageToClients(Scene, PackageFile);
  6628. bool StartServer(uint16);
  6629. void StopServer();
  6630. void UnregisterAllRemoteEvents();
  6631. void UnregisterRemoteEvent(const String&) const;
  6632. // Properties:
  6633. /* readonly */
  6634. String category;
  6635. /* readonly */
  6636. Array<Connection> clientConnections;
  6637. String packageCacheDir;
  6638. /* readonly */
  6639. int refs;
  6640. /* readonly */
  6641. Connection serverConnection;
  6642. /* readonly */
  6643. bool serverRunning;
  6644. int simulatedLatency;
  6645. float simulatedPacketLoss;
  6646. /* readonly */
  6647. StringHash type;
  6648. /* readonly */
  6649. String typeName;
  6650. int updateFps;
  6651. /* readonly */
  6652. int weakRefs;
  6653. };
  6654. class NetworkPriority
  6655. {
  6656. // Methods:
  6657. void ApplyAttributes();
  6658. void DrawDebugGeometry(DebugRenderer, bool);
  6659. Variant GetAttribute(const String&) const;
  6660. ValueAnimation GetAttributeAnimation(const String&) const;
  6661. float GetAttributeAnimationSpeed(const String&) const;
  6662. float GetAttributeAnimationTime(const String&) const;
  6663. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6664. Variant GetAttributeDefault(const String&) const;
  6665. bool GetInterceptNetworkUpdate(const String&) const;
  6666. bool HasSubscribedToEvent(Object, const String&);
  6667. bool HasSubscribedToEvent(const String&);
  6668. bool Load(File, bool = false);
  6669. bool Load(VectorBuffer&, bool = false);
  6670. bool LoadJSON(const JSONValue&, bool = false);
  6671. bool LoadXML(const XMLElement&, bool = false);
  6672. void MarkNetworkUpdate() const;
  6673. void Remove();
  6674. void RemoveAttributeAnimation(const String&);
  6675. void RemoveInstanceDefault();
  6676. void RemoveObjectAnimation();
  6677. void ResetToDefault();
  6678. bool Save(File) const;
  6679. bool Save(VectorBuffer&) const;
  6680. bool SaveJSON(JSONValue&) const;
  6681. bool SaveXML(XMLElement&) const;
  6682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6683. void SetAnimationTime(float);
  6684. bool SetAttribute(const String&, const Variant&);
  6685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6686. void SetAttributeAnimationSpeed(const String&, float);
  6687. void SetAttributeAnimationTime(const String&, float);
  6688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6689. void SetInterceptNetworkUpdate(const String&, bool);
  6690. // Properties:
  6691. bool alwaysUpdateOwner;
  6692. bool animationEnabled;
  6693. /* readonly */
  6694. Array<Variant> attributeDefaults;
  6695. /* readonly */
  6696. Array<AttributeInfo> attributeInfos;
  6697. Array<Variant> attributes;
  6698. float basePriority;
  6699. /* readonly */
  6700. String category;
  6701. float distanceFactor;
  6702. bool enabled;
  6703. /* readonly */
  6704. bool enabledEffective;
  6705. /* readonly */
  6706. uint id;
  6707. float minPriority;
  6708. /* readonly */
  6709. Node node;
  6710. /* readonly */
  6711. uint numAttributes;
  6712. ObjectAnimation objectAnimation;
  6713. /* readonly */
  6714. int refs;
  6715. bool temporary;
  6716. /* readonly */
  6717. StringHash type;
  6718. /* readonly */
  6719. String typeName;
  6720. /* readonly */
  6721. int weakRefs;
  6722. };
  6723. class Node
  6724. {
  6725. // Methods:
  6726. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6727. void ApplyAttributes();
  6728. Node Clone(CreateMode = REPLICATED);
  6729. Component CloneComponent(Component, CreateMode, uint = 0);
  6730. Component CloneComponent(Component, uint = 0);
  6731. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6732. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6733. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6734. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6735. Variant GetAttribute(const String&) const;
  6736. ValueAnimation GetAttributeAnimation(const String&) const;
  6737. float GetAttributeAnimationSpeed(const String&) const;
  6738. float GetAttributeAnimationTime(const String&) const;
  6739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6740. Variant GetAttributeDefault(const String&) const;
  6741. Node GetChild(const String&, bool = false) const;
  6742. Array<Node> GetChildren(bool = false) const;
  6743. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6744. Array<Node> GetChildrenWithScript(bool = false) const;
  6745. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6746. Component GetComponent(const String&, bool = false) const;
  6747. Array<Component> GetComponents() const;
  6748. Array<Component> GetComponents(const String&, bool = false) const;
  6749. bool GetInterceptNetworkUpdate(const String&) const;
  6750. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6751. Component GetParentComponent(const String&, bool = false) const;
  6752. ScriptObject GetScriptObject() const;
  6753. ScriptObject GetScriptObject(const String&) const;
  6754. bool HasComponent(const String&) const;
  6755. bool HasSubscribedToEvent(Object, const String&);
  6756. bool HasSubscribedToEvent(const String&);
  6757. bool Load(File, bool = false);
  6758. bool Load(VectorBuffer&, bool = false);
  6759. bool LoadJSON(const JSONValue&, bool = false);
  6760. bool LoadXML(const XMLElement&, bool = false);
  6761. Vector3 LocalToWorld(const Vector3&) const;
  6762. Vector3 LocalToWorld(const Vector4&) const;
  6763. Vector2 LocalToWorld2D(const Vector2&) const;
  6764. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6765. void MarkDirty();
  6766. void MarkNetworkUpdate() const;
  6767. void Pitch(float, TransformSpace = TS_LOCAL);
  6768. void Remove();
  6769. void RemoveAllChildren();
  6770. void RemoveAllComponents();
  6771. void RemoveAttributeAnimation(const String&);
  6772. void RemoveChild(Node);
  6773. void RemoveChildren(bool, bool, bool);
  6774. void RemoveComponent(Component);
  6775. void RemoveComponent(const String&);
  6776. void RemoveComponents(bool, bool);
  6777. void RemoveComponents(const String&);
  6778. void RemoveInstanceDefault();
  6779. void RemoveObjectAnimation();
  6780. void ResetDeepEnabled();
  6781. void ResetToDefault();
  6782. void Roll(float, TransformSpace = TS_LOCAL);
  6783. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6784. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6785. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6786. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6787. bool Save(File) const;
  6788. bool Save(VectorBuffer&) const;
  6789. bool SaveJSON(File);
  6790. bool SaveJSON(JSONValue&) const;
  6791. bool SaveJSON(VectorBuffer&);
  6792. bool SaveXML(File, const String& = "\t");
  6793. bool SaveXML(VectorBuffer&, const String& = "\t");
  6794. bool SaveXML(XMLElement&) const;
  6795. void Scale(const Vector3&);
  6796. void Scale(float);
  6797. void Scale2D(const Vector2&);
  6798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6799. void SetAnimationTime(float);
  6800. bool SetAttribute(const String&, const Variant&);
  6801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6802. void SetAttributeAnimationSpeed(const String&, float);
  6803. void SetAttributeAnimationTime(const String&, float);
  6804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6805. void SetDeepEnabled(bool);
  6806. void SetEnabledRecursive(bool);
  6807. void SetInterceptNetworkUpdate(const String&, bool);
  6808. void SetPosition2D(float, float);
  6809. void SetScale(float);
  6810. void SetScale2D(float, float);
  6811. void SetTransform(const Vector3&, const Quaternion&);
  6812. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6813. void SetTransform(const Vector3&, const Quaternion&, float);
  6814. void SetTransform2D(const Vector2&, float);
  6815. void SetTransform2D(const Vector2&, float, const Vector2&);
  6816. void SetTransform2D(const Vector2&, float, float);
  6817. void SetWorldTransform(const Vector3&, const Quaternion&);
  6818. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6819. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6820. void SetWorldTransform2D(const Vector2&, float);
  6821. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6822. void SetWorldTransform2D(const Vector2&, float, float);
  6823. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6824. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6825. Vector3 WorldToLocal(const Vector3&) const;
  6826. Vector3 WorldToLocal(const Vector4&) const;
  6827. Vector2 WorldToLocal2D(const Vector2&) const;
  6828. void Yaw(float, TransformSpace = TS_LOCAL);
  6829. // Properties:
  6830. bool animationEnabled;
  6831. /* readonly */
  6832. Array<Variant> attributeDefaults;
  6833. /* readonly */
  6834. Array<AttributeInfo> attributeInfos;
  6835. Array<Variant> attributes;
  6836. /* readonly */
  6837. String category;
  6838. /* readonly */
  6839. Array<Node> children;
  6840. /* readonly */
  6841. Array<Component> components;
  6842. Vector3 direction;
  6843. bool enabled;
  6844. /* readonly */
  6845. bool enabledSelf;
  6846. /* readonly */
  6847. uint id;
  6848. String name;
  6849. /* readonly */
  6850. uint numAllChildren;
  6851. /* readonly */
  6852. uint numAttributes;
  6853. /* readonly */
  6854. uint numChildren;
  6855. /* readonly */
  6856. uint numComponents;
  6857. ObjectAnimation objectAnimation;
  6858. Connection owner;
  6859. Node parent;
  6860. Vector3 position;
  6861. Vector2 position2D;
  6862. /* readonly */
  6863. int refs;
  6864. /* readonly */
  6865. Vector3 right;
  6866. Quaternion rotation;
  6867. float rotation2D;
  6868. Vector3 scale;
  6869. Vector2 scale2D;
  6870. /* readonly */
  6871. Scene scene;
  6872. /* readonly */
  6873. ScriptObject scriptObject;
  6874. bool temporary;
  6875. /* readonly */
  6876. Matrix3x4 transform;
  6877. /* readonly */
  6878. StringHash type;
  6879. /* readonly */
  6880. String typeName;
  6881. /* readonly */
  6882. Vector3 up;
  6883. /* readonly */
  6884. VariantMap vars;
  6885. /* readonly */
  6886. int weakRefs;
  6887. Vector3 worldDirection;
  6888. Vector3 worldPosition;
  6889. Vector2 worldPosition2D;
  6890. /* readonly */
  6891. Vector3 worldRight;
  6892. Quaternion worldRotation;
  6893. float worldRotation2D;
  6894. Vector3 worldScale;
  6895. Vector2 worldScale2D;
  6896. /* readonly */
  6897. Matrix3x4 worldTransform;
  6898. /* readonly */
  6899. Vector3 worldUp;
  6900. };
  6901. class Object
  6902. {
  6903. // Methods:
  6904. bool HasSubscribedToEvent(Object, const String&);
  6905. bool HasSubscribedToEvent(const String&);
  6906. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6907. // Properties:
  6908. /* readonly */
  6909. String category;
  6910. /* readonly */
  6911. int refs;
  6912. /* readonly */
  6913. StringHash type;
  6914. /* readonly */
  6915. String typeName;
  6916. /* readonly */
  6917. int weakRefs;
  6918. };
  6919. class ObjectAnimation
  6920. {
  6921. // Methods:
  6922. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6923. ValueAnimation GetAttributeAnimation(const String&) const;
  6924. float GetAttributeAnimationSpeed(const String&) const;
  6925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6926. bool HasSubscribedToEvent(Object, const String&);
  6927. bool HasSubscribedToEvent(const String&);
  6928. bool Load(File);
  6929. bool Load(VectorBuffer&);
  6930. void RemoveAttributeAnimation(ValueAnimation);
  6931. void RemoveAttributeAnimation(const String&);
  6932. bool Save(File) const;
  6933. bool Save(VectorBuffer&) const;
  6934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6935. // Properties:
  6936. /* readonly */
  6937. Array<Variant> attributeAnimations;
  6938. /* readonly */
  6939. String category;
  6940. /* readonly */
  6941. uint memoryUse;
  6942. String name;
  6943. /* readonly */
  6944. int refs;
  6945. /* readonly */
  6946. Array<Variant> speeds;
  6947. /* readonly */
  6948. StringHash type;
  6949. /* readonly */
  6950. String typeName;
  6951. /* readonly */
  6952. uint useTimer;
  6953. /* readonly */
  6954. int weakRefs;
  6955. /* readonly */
  6956. Array<Variant> wrapModes;
  6957. };
  6958. class Obstacle
  6959. {
  6960. // Methods:
  6961. void ApplyAttributes();
  6962. void DrawDebugGeometry(DebugRenderer, bool);
  6963. void DrawDebugGeometry(bool);
  6964. Variant GetAttribute(const String&) const;
  6965. ValueAnimation GetAttributeAnimation(const String&) const;
  6966. float GetAttributeAnimationSpeed(const String&) const;
  6967. float GetAttributeAnimationTime(const String&) const;
  6968. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6969. Variant GetAttributeDefault(const String&) const;
  6970. bool GetInterceptNetworkUpdate(const String&) const;
  6971. bool HasSubscribedToEvent(Object, const String&);
  6972. bool HasSubscribedToEvent(const String&);
  6973. bool Load(File, bool = false);
  6974. bool Load(VectorBuffer&, bool = false);
  6975. bool LoadJSON(const JSONValue&, bool = false);
  6976. bool LoadXML(const XMLElement&, bool = false);
  6977. void MarkNetworkUpdate() const;
  6978. void Remove();
  6979. void RemoveAttributeAnimation(const String&);
  6980. void RemoveInstanceDefault();
  6981. void RemoveObjectAnimation();
  6982. void ResetToDefault();
  6983. bool Save(File) const;
  6984. bool Save(VectorBuffer&) const;
  6985. bool SaveJSON(JSONValue&) const;
  6986. bool SaveXML(XMLElement&) const;
  6987. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6988. void SetAnimationTime(float);
  6989. bool SetAttribute(const String&, const Variant&);
  6990. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6991. void SetAttributeAnimationSpeed(const String&, float);
  6992. void SetAttributeAnimationTime(const String&, float);
  6993. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6994. void SetInterceptNetworkUpdate(const String&, bool);
  6995. // Properties:
  6996. bool animationEnabled;
  6997. /* readonly */
  6998. Array<Variant> attributeDefaults;
  6999. /* readonly */
  7000. Array<AttributeInfo> attributeInfos;
  7001. Array<Variant> attributes;
  7002. /* readonly */
  7003. String category;
  7004. bool enabled;
  7005. /* readonly */
  7006. bool enabledEffective;
  7007. float height;
  7008. /* readonly */
  7009. uint id;
  7010. /* readonly */
  7011. Node node;
  7012. /* readonly */
  7013. uint numAttributes;
  7014. ObjectAnimation objectAnimation;
  7015. /* readonly */
  7016. uint obstacleId;
  7017. float radius;
  7018. /* readonly */
  7019. int refs;
  7020. bool temporary;
  7021. /* readonly */
  7022. StringHash type;
  7023. /* readonly */
  7024. String typeName;
  7025. /* readonly */
  7026. int weakRefs;
  7027. };
  7028. class Octree
  7029. {
  7030. // Methods:
  7031. void AddManualDrawable(Drawable);
  7032. void ApplyAttributes();
  7033. void DrawDebugGeometry(DebugRenderer, bool);
  7034. void DrawDebugGeometry(bool) const;
  7035. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7036. Variant GetAttribute(const String&) const;
  7037. ValueAnimation GetAttributeAnimation(const String&) const;
  7038. float GetAttributeAnimationSpeed(const String&) const;
  7039. float GetAttributeAnimationTime(const String&) const;
  7040. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7041. Variant GetAttributeDefault(const String&) const;
  7042. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7043. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7044. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7045. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7046. bool GetInterceptNetworkUpdate(const String&) const;
  7047. bool HasSubscribedToEvent(Object, const String&);
  7048. bool HasSubscribedToEvent(const String&);
  7049. bool Load(File, bool = false);
  7050. bool Load(VectorBuffer&, bool = false);
  7051. bool LoadJSON(const JSONValue&, bool = false);
  7052. bool LoadXML(const XMLElement&, bool = false);
  7053. void MarkNetworkUpdate() const;
  7054. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7055. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7056. void Remove();
  7057. void RemoveAttributeAnimation(const String&);
  7058. void RemoveInstanceDefault();
  7059. void RemoveManualDrawable(Drawable);
  7060. void RemoveObjectAnimation();
  7061. void ResetToDefault();
  7062. bool Save(File) const;
  7063. bool Save(VectorBuffer&) const;
  7064. bool SaveJSON(JSONValue&) const;
  7065. bool SaveXML(XMLElement&) const;
  7066. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7067. void SetAnimationTime(float);
  7068. bool SetAttribute(const String&, const Variant&);
  7069. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7070. void SetAttributeAnimationSpeed(const String&, float);
  7071. void SetAttributeAnimationTime(const String&, float);
  7072. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7073. void SetInterceptNetworkUpdate(const String&, bool);
  7074. void SetSize(const BoundingBox&, uint);
  7075. // Properties:
  7076. bool animationEnabled;
  7077. /* readonly */
  7078. Array<Variant> attributeDefaults;
  7079. /* readonly */
  7080. Array<AttributeInfo> attributeInfos;
  7081. Array<Variant> attributes;
  7082. /* readonly */
  7083. String category;
  7084. bool enabled;
  7085. /* readonly */
  7086. bool enabledEffective;
  7087. /* readonly */
  7088. uint id;
  7089. /* readonly */
  7090. Node node;
  7091. /* readonly */
  7092. uint numAttributes;
  7093. /* readonly */
  7094. uint numLevels;
  7095. ObjectAnimation objectAnimation;
  7096. /* readonly */
  7097. int refs;
  7098. bool temporary;
  7099. /* readonly */
  7100. StringHash type;
  7101. /* readonly */
  7102. String typeName;
  7103. /* readonly */
  7104. int weakRefs;
  7105. /* readonly */
  7106. BoundingBox worldBoundingBox;
  7107. };
  7108. class OffMeshConnection
  7109. {
  7110. // Methods:
  7111. void ApplyAttributes();
  7112. void DrawDebugGeometry(DebugRenderer, bool);
  7113. Variant GetAttribute(const String&) const;
  7114. ValueAnimation GetAttributeAnimation(const String&) const;
  7115. float GetAttributeAnimationSpeed(const String&) const;
  7116. float GetAttributeAnimationTime(const String&) const;
  7117. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7118. Variant GetAttributeDefault(const String&) const;
  7119. bool GetInterceptNetworkUpdate(const String&) const;
  7120. bool HasSubscribedToEvent(Object, const String&);
  7121. bool HasSubscribedToEvent(const String&);
  7122. bool Load(File, bool = false);
  7123. bool Load(VectorBuffer&, bool = false);
  7124. bool LoadJSON(const JSONValue&, bool = false);
  7125. bool LoadXML(const XMLElement&, bool = false);
  7126. void MarkNetworkUpdate() const;
  7127. void Remove();
  7128. void RemoveAttributeAnimation(const String&);
  7129. void RemoveInstanceDefault();
  7130. void RemoveObjectAnimation();
  7131. void ResetToDefault();
  7132. bool Save(File) const;
  7133. bool Save(VectorBuffer&) const;
  7134. bool SaveJSON(JSONValue&) const;
  7135. bool SaveXML(XMLElement&) const;
  7136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7137. void SetAnimationTime(float);
  7138. bool SetAttribute(const String&, const Variant&);
  7139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7140. void SetAttributeAnimationSpeed(const String&, float);
  7141. void SetAttributeAnimationTime(const String&, float);
  7142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7143. void SetInterceptNetworkUpdate(const String&, bool);
  7144. // Properties:
  7145. bool animationEnabled;
  7146. uint areaID;
  7147. /* readonly */
  7148. Array<Variant> attributeDefaults;
  7149. /* readonly */
  7150. Array<AttributeInfo> attributeInfos;
  7151. Array<Variant> attributes;
  7152. bool bidirectional;
  7153. /* readonly */
  7154. String category;
  7155. bool enabled;
  7156. /* readonly */
  7157. bool enabledEffective;
  7158. Node endPoint;
  7159. /* readonly */
  7160. uint id;
  7161. uint mask;
  7162. /* readonly */
  7163. Node node;
  7164. /* readonly */
  7165. uint numAttributes;
  7166. ObjectAnimation objectAnimation;
  7167. float radius;
  7168. /* readonly */
  7169. int refs;
  7170. bool temporary;
  7171. /* readonly */
  7172. StringHash type;
  7173. /* readonly */
  7174. String typeName;
  7175. /* readonly */
  7176. int weakRefs;
  7177. };
  7178. class PackageFile
  7179. {
  7180. // Methods:
  7181. bool Exists(const String&) const;
  7182. Array<String> GetEntryNames() const;
  7183. bool HasSubscribedToEvent(Object, const String&);
  7184. bool HasSubscribedToEvent(const String&);
  7185. bool Open(const String&, uint = 0) const;
  7186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7187. bool compressed() const;
  7188. // Properties:
  7189. /* readonly */
  7190. String category;
  7191. /* readonly */
  7192. uint checksum;
  7193. /* readonly */
  7194. String name;
  7195. /* readonly */
  7196. uint numFiles;
  7197. /* readonly */
  7198. int refs;
  7199. /* readonly */
  7200. uint totalSize;
  7201. /* readonly */
  7202. StringHash type;
  7203. /* readonly */
  7204. String typeName;
  7205. /* readonly */
  7206. int weakRefs;
  7207. };
  7208. class ParticleEffect
  7209. {
  7210. // Methods:
  7211. void AddColorFrame(ColorFrame);
  7212. void AddColorTime(Color&, float);
  7213. void AddTextureFrame(TextureFrame);
  7214. void AddTextureTime(Rect&, float);
  7215. ColorFrame GetColorFrame(uint) const;
  7216. TextureFrame GetTextureFrame(uint) const;
  7217. bool HasSubscribedToEvent(Object, const String&);
  7218. bool HasSubscribedToEvent(const String&);
  7219. bool Load(File);
  7220. bool Load(VectorBuffer&);
  7221. bool Load(const XMLElement&);
  7222. void RemoveColorFrame(uint);
  7223. void RemoveTextureFrame(uint);
  7224. bool Save(File) const;
  7225. bool Save(VectorBuffer&) const;
  7226. bool Save(XMLElement&) const;
  7227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7228. void SetColorFrame(uint, ColorFrame);
  7229. void SetTextureFrame(uint, TextureFrame);
  7230. void SortColorFrames();
  7231. void SortTextureFrames();
  7232. // Properties:
  7233. float activeTime;
  7234. float animationLodBias;
  7235. /* readonly */
  7236. String category;
  7237. Vector3 constantForce;
  7238. float dampingForce;
  7239. Vector3 emitterSize;
  7240. EmitterType emitterType;
  7241. FaceCameraMode faceCameraMode;
  7242. float inactiveTime;
  7243. Material material;
  7244. Vector3 maxDirection;
  7245. float maxEmissionRate;
  7246. Vector2 maxParticleSize;
  7247. float maxRotation;
  7248. float maxRotationSpeed;
  7249. float maxTimeToLive;
  7250. float maxVelocity;
  7251. /* readonly */
  7252. uint memoryUse;
  7253. Vector3 minDirection;
  7254. float minEmissionRate;
  7255. Vector2 minParticleSize;
  7256. float minRotation;
  7257. float minRotationSpeed;
  7258. float minTimeToLive;
  7259. float minVelocity;
  7260. String name;
  7261. uint numColorFrames;
  7262. uint numParticles;
  7263. uint numTextureFrames;
  7264. /* readonly */
  7265. int refs;
  7266. bool relative;
  7267. bool scaled;
  7268. float sizeAdd;
  7269. float sizeMul;
  7270. bool sorted;
  7271. /* readonly */
  7272. StringHash type;
  7273. /* readonly */
  7274. String typeName;
  7275. bool updateInvisible;
  7276. /* readonly */
  7277. uint useTimer;
  7278. /* readonly */
  7279. int weakRefs;
  7280. };
  7281. class ParticleEffect2D
  7282. {
  7283. // Methods:
  7284. bool HasSubscribedToEvent(Object, const String&);
  7285. bool HasSubscribedToEvent(const String&);
  7286. bool Load(File);
  7287. bool Load(VectorBuffer&);
  7288. bool Save(File) const;
  7289. bool Save(VectorBuffer&) const;
  7290. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7291. // Properties:
  7292. /* readonly */
  7293. String category;
  7294. /* readonly */
  7295. uint memoryUse;
  7296. String name;
  7297. /* readonly */
  7298. int refs;
  7299. /* readonly */
  7300. StringHash type;
  7301. /* readonly */
  7302. String typeName;
  7303. /* readonly */
  7304. uint useTimer;
  7305. /* readonly */
  7306. int weakRefs;
  7307. };
  7308. class ParticleEmitter
  7309. {
  7310. // Methods:
  7311. void ApplyAttributes();
  7312. void ApplyEffect();
  7313. void Commit();
  7314. void DrawDebugGeometry(DebugRenderer, bool);
  7315. Variant GetAttribute(const String&) const;
  7316. ValueAnimation GetAttributeAnimation(const String&) const;
  7317. float GetAttributeAnimationSpeed(const String&) const;
  7318. float GetAttributeAnimationTime(const String&) const;
  7319. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7320. Variant GetAttributeDefault(const String&) const;
  7321. bool GetInterceptNetworkUpdate(const String&) const;
  7322. bool HasSubscribedToEvent(Object, const String&);
  7323. bool HasSubscribedToEvent(const String&);
  7324. bool IsInView(Camera) const;
  7325. bool Load(File, bool = false);
  7326. bool Load(VectorBuffer&, bool = false);
  7327. bool LoadJSON(const JSONValue&, bool = false);
  7328. bool LoadXML(const XMLElement&, bool = false);
  7329. void MarkNetworkUpdate() const;
  7330. void Remove();
  7331. void RemoveAllParticles();
  7332. void RemoveAttributeAnimation(const String&);
  7333. void RemoveInstanceDefault();
  7334. void RemoveObjectAnimation();
  7335. void Reset();
  7336. void ResetEmissionTimer();
  7337. void ResetToDefault();
  7338. bool Save(File) const;
  7339. bool Save(VectorBuffer&) const;
  7340. bool SaveJSON(JSONValue&) const;
  7341. bool SaveXML(XMLElement&) const;
  7342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7343. void SetAnimationTime(float);
  7344. bool SetAttribute(const String&, const Variant&);
  7345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7346. void SetAttributeAnimationSpeed(const String&, float);
  7347. void SetAttributeAnimationTime(const String&, float);
  7348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7349. void SetInterceptNetworkUpdate(const String&, bool);
  7350. // Properties:
  7351. bool animationEnabled;
  7352. float animationLodBias;
  7353. /* readonly */
  7354. Array<Variant> attributeDefaults;
  7355. /* readonly */
  7356. Array<AttributeInfo> attributeInfos;
  7357. Array<Variant> attributes;
  7358. /* readonly */
  7359. Array<Billboard> billboards;
  7360. /* readonly */
  7361. BoundingBox boundingBox;
  7362. bool castShadows;
  7363. /* readonly */
  7364. String category;
  7365. float drawDistance;
  7366. ParticleEffect effect;
  7367. bool emitting;
  7368. bool enabled;
  7369. /* readonly */
  7370. bool enabledEffective;
  7371. FaceCameraMode faceCameraMode;
  7372. /* readonly */
  7373. uint id;
  7374. /* readonly */
  7375. bool inView;
  7376. uint lightMask;
  7377. float lodBias;
  7378. Material material;
  7379. uint maxLights;
  7380. /* readonly */
  7381. Node node;
  7382. /* readonly */
  7383. uint numAttributes;
  7384. uint numBillboards;
  7385. uint numParticles;
  7386. ObjectAnimation objectAnimation;
  7387. bool occludee;
  7388. bool occluder;
  7389. /* readonly */
  7390. int refs;
  7391. bool relative;
  7392. bool scaled;
  7393. bool serializeParticles;
  7394. float shadowDistance;
  7395. uint shadowMask;
  7396. bool sorted;
  7397. bool temporary;
  7398. /* readonly */
  7399. StringHash type;
  7400. /* readonly */
  7401. String typeName;
  7402. uint viewMask;
  7403. /* readonly */
  7404. int weakRefs;
  7405. /* readonly */
  7406. BoundingBox worldBoundingBox;
  7407. /* readonly */
  7408. Zone zone;
  7409. uint zoneMask;
  7410. };
  7411. class ParticleEmitter2D
  7412. {
  7413. // Methods:
  7414. void ApplyAttributes();
  7415. void DrawDebugGeometry(DebugRenderer, bool);
  7416. Variant GetAttribute(const String&) const;
  7417. ValueAnimation GetAttributeAnimation(const String&) const;
  7418. float GetAttributeAnimationSpeed(const String&) const;
  7419. float GetAttributeAnimationTime(const String&) const;
  7420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7421. Variant GetAttributeDefault(const String&) const;
  7422. bool GetInterceptNetworkUpdate(const String&) const;
  7423. bool HasSubscribedToEvent(Object, const String&);
  7424. bool HasSubscribedToEvent(const String&);
  7425. bool IsInView(Camera) const;
  7426. bool Load(File, bool = false);
  7427. bool Load(VectorBuffer&, bool = false);
  7428. bool LoadJSON(const JSONValue&, bool = false);
  7429. bool LoadXML(const XMLElement&, bool = false);
  7430. void MarkNetworkUpdate() const;
  7431. void Remove();
  7432. void RemoveAttributeAnimation(const String&);
  7433. void RemoveInstanceDefault();
  7434. void RemoveObjectAnimation();
  7435. void ResetToDefault();
  7436. bool Save(File) const;
  7437. bool Save(VectorBuffer&) const;
  7438. bool SaveJSON(JSONValue&) const;
  7439. bool SaveXML(XMLElement&) const;
  7440. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7441. void SetAnimationTime(float);
  7442. bool SetAttribute(const String&, const Variant&);
  7443. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7444. void SetAttributeAnimationSpeed(const String&, float);
  7445. void SetAttributeAnimationTime(const String&, float);
  7446. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7447. void SetInterceptNetworkUpdate(const String&, bool);
  7448. // Properties:
  7449. bool animationEnabled;
  7450. /* readonly */
  7451. Array<Variant> attributeDefaults;
  7452. /* readonly */
  7453. Array<AttributeInfo> attributeInfos;
  7454. Array<Variant> attributes;
  7455. BlendMode blendMode;
  7456. /* readonly */
  7457. BoundingBox boundingBox;
  7458. bool castShadows;
  7459. /* readonly */
  7460. String category;
  7461. float drawDistance;
  7462. ParticleEffect2D effect;
  7463. bool enabled;
  7464. /* readonly */
  7465. bool enabledEffective;
  7466. /* readonly */
  7467. uint id;
  7468. /* readonly */
  7469. bool inView;
  7470. int layer;
  7471. uint lightMask;
  7472. float lodBias;
  7473. uint maxLights;
  7474. /* readonly */
  7475. Node node;
  7476. /* readonly */
  7477. uint numAttributes;
  7478. ObjectAnimation objectAnimation;
  7479. bool occludee;
  7480. bool occluder;
  7481. int orderInLayer;
  7482. /* readonly */
  7483. int refs;
  7484. float shadowDistance;
  7485. uint shadowMask;
  7486. Sprite2D sprite;
  7487. bool temporary;
  7488. /* readonly */
  7489. StringHash type;
  7490. /* readonly */
  7491. String typeName;
  7492. uint viewMask;
  7493. /* readonly */
  7494. int weakRefs;
  7495. /* readonly */
  7496. BoundingBox worldBoundingBox;
  7497. uint zoneMask;
  7498. };
  7499. class Pass
  7500. {
  7501. // Properties:
  7502. bool alphaMask;
  7503. BlendMode blendMode;
  7504. CompareMode depthTestMode;
  7505. bool depthWrite;
  7506. bool desktop;
  7507. PassLightingMode lightingMode;
  7508. String pixelShader;
  7509. String pixelShaderDefines;
  7510. /* readonly */
  7511. int refs;
  7512. String vertexShader;
  7513. String vertexShaderDefines;
  7514. /* readonly */
  7515. int weakRefs;
  7516. };
  7517. class PhysicsRaycastResult
  7518. {
  7519. // Properties:
  7520. /* readonly */
  7521. RigidBody body;
  7522. float distance;
  7523. float hitFraction;
  7524. Vector3 normal;
  7525. Vector3 position;
  7526. };
  7527. class PhysicsRaycastResult2D
  7528. {
  7529. // Properties:
  7530. /* readonly */
  7531. RigidBody2D body;
  7532. float distance;
  7533. Vector2 normal;
  7534. Vector2 position;
  7535. };
  7536. class PhysicsWorld
  7537. {
  7538. // Methods:
  7539. void ApplyAttributes();
  7540. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7541. void DrawDebugGeometry(DebugRenderer, bool);
  7542. void DrawDebugGeometry(bool);
  7543. Variant GetAttribute(const String&) const;
  7544. ValueAnimation GetAttributeAnimation(const String&) const;
  7545. float GetAttributeAnimationSpeed(const String&) const;
  7546. float GetAttributeAnimationTime(const String&) const;
  7547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7548. Variant GetAttributeDefault(const String&) const;
  7549. Array<RigidBody> GetCollidingBodies(RigidBody);
  7550. bool GetInterceptNetworkUpdate(const String&) const;
  7551. Array<RigidBody> GetRigidBodies(RigidBody);
  7552. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7553. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7554. bool HasSubscribedToEvent(Object, const String&);
  7555. bool HasSubscribedToEvent(const String&);
  7556. bool Load(File, bool = false);
  7557. bool Load(VectorBuffer&, bool = false);
  7558. bool LoadJSON(const JSONValue&, bool = false);
  7559. bool LoadXML(const XMLElement&, bool = false);
  7560. void MarkNetworkUpdate() const;
  7561. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7562. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7563. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7564. void Remove();
  7565. void RemoveAttributeAnimation(const String&);
  7566. void RemoveCachedGeometry(Model);
  7567. void RemoveInstanceDefault();
  7568. void RemoveObjectAnimation();
  7569. void ResetToDefault();
  7570. bool Save(File) const;
  7571. bool Save(VectorBuffer&) const;
  7572. bool SaveJSON(JSONValue&) const;
  7573. bool SaveXML(XMLElement&) const;
  7574. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7575. void SetAnimationTime(float);
  7576. bool SetAttribute(const String&, const Variant&);
  7577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7578. void SetAttributeAnimationSpeed(const String&, float);
  7579. void SetAttributeAnimationTime(const String&, float);
  7580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7581. void SetInterceptNetworkUpdate(const String&, bool);
  7582. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7583. void Update(float);
  7584. void UpdateCollisions();
  7585. // Properties:
  7586. bool animationEnabled;
  7587. /* readonly */
  7588. Array<Variant> attributeDefaults;
  7589. /* readonly */
  7590. Array<AttributeInfo> attributeInfos;
  7591. Array<Variant> attributes;
  7592. /* readonly */
  7593. String category;
  7594. bool enabled;
  7595. /* readonly */
  7596. bool enabledEffective;
  7597. int fps;
  7598. Vector3 gravity;
  7599. /* readonly */
  7600. uint id;
  7601. bool internalEdge;
  7602. bool interpolation;
  7603. int maxSubSteps;
  7604. /* readonly */
  7605. Node node;
  7606. /* readonly */
  7607. uint numAttributes;
  7608. int numIterations;
  7609. ObjectAnimation objectAnimation;
  7610. /* readonly */
  7611. int refs;
  7612. bool splitImpulse;
  7613. bool temporary;
  7614. /* readonly */
  7615. StringHash type;
  7616. /* readonly */
  7617. String typeName;
  7618. bool updateEnabled;
  7619. /* readonly */
  7620. int weakRefs;
  7621. };
  7622. class PhysicsWorld2D
  7623. {
  7624. // Methods:
  7625. void ApplyAttributes();
  7626. void DrawDebugGeometry() const;
  7627. void DrawDebugGeometry(DebugRenderer, bool);
  7628. Variant GetAttribute(const String&) const;
  7629. ValueAnimation GetAttributeAnimation(const String&) const;
  7630. float GetAttributeAnimationSpeed(const String&) const;
  7631. float GetAttributeAnimationTime(const String&) const;
  7632. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7633. Variant GetAttributeDefault(const String&) const;
  7634. bool GetInterceptNetworkUpdate(const String&) const;
  7635. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7636. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7637. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7638. bool HasSubscribedToEvent(Object, const String&);
  7639. bool HasSubscribedToEvent(const String&);
  7640. bool Load(File, bool = false);
  7641. bool Load(VectorBuffer&, bool = false);
  7642. bool LoadJSON(const JSONValue&, bool = false);
  7643. bool LoadXML(const XMLElement&, bool = false);
  7644. void MarkNetworkUpdate() const;
  7645. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7646. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7647. void Remove();
  7648. void RemoveAttributeAnimation(const String&);
  7649. void RemoveInstanceDefault();
  7650. void RemoveObjectAnimation();
  7651. void ResetToDefault();
  7652. bool Save(File) const;
  7653. bool Save(VectorBuffer&) const;
  7654. bool SaveJSON(JSONValue&) const;
  7655. bool SaveXML(XMLElement&) const;
  7656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7657. void SetAnimationTime(float);
  7658. bool SetAttribute(const String&, const Variant&);
  7659. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7660. void SetAttributeAnimationSpeed(const String&, float);
  7661. void SetAttributeAnimationTime(const String&, float);
  7662. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7663. void SetInterceptNetworkUpdate(const String&, bool);
  7664. // Properties:
  7665. bool allowSleeping;
  7666. bool animationEnabled;
  7667. /* readonly */
  7668. Array<Variant> attributeDefaults;
  7669. /* readonly */
  7670. Array<AttributeInfo> attributeInfos;
  7671. Array<Variant> attributes;
  7672. bool autoClearForces;
  7673. /* readonly */
  7674. String category;
  7675. bool continuousPhysics;
  7676. bool drawAabb;
  7677. bool drawCenterOfMass;
  7678. bool drawJoint;
  7679. bool drawPair;
  7680. bool drawShape;
  7681. bool enabled;
  7682. /* readonly */
  7683. bool enabledEffective;
  7684. Vector2 gravity;
  7685. /* readonly */
  7686. uint id;
  7687. /* readonly */
  7688. Node node;
  7689. /* readonly */
  7690. uint numAttributes;
  7691. ObjectAnimation objectAnimation;
  7692. uint positionIterations;
  7693. /* readonly */
  7694. int refs;
  7695. bool subStepping;
  7696. bool temporary;
  7697. /* readonly */
  7698. StringHash type;
  7699. /* readonly */
  7700. String typeName;
  7701. bool updateEnabled;
  7702. uint velocityIterations;
  7703. bool warmStarting;
  7704. /* readonly */
  7705. int weakRefs;
  7706. };
  7707. class Plane
  7708. {
  7709. // Methods:
  7710. void Define(const Vector3&, const Vector3&);
  7711. void Define(const Vector3&, const Vector3&, const Vector3&);
  7712. void Define(const Vector4&);
  7713. float Distance(const Vector3&) const;
  7714. Vector3 Project(const Vector3&) const;
  7715. Vector3 Reflect(const Vector3&) const;
  7716. Vector4 ToVector4() const;
  7717. void Transform(const Matrix3&);
  7718. void Transform(const Matrix3x4&);
  7719. void Transform(const Matrix4&);
  7720. Plane Transformed(const Matrix3&) const;
  7721. Plane Transformed(const Matrix3x4&) const;
  7722. Plane Transformed(const Matrix4&) const;
  7723. // Properties:
  7724. Vector3 absNormal;
  7725. float d;
  7726. Vector3 normal;
  7727. /* readonly */
  7728. Matrix3x4 reflectionMatrix;
  7729. };
  7730. class Polyhedron
  7731. {
  7732. // Methods:
  7733. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7734. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7735. void AddFace(const Array<Vector3>);
  7736. void Clear();
  7737. void Clip(const BoundingBox&);
  7738. void Clip(const Frustum&);
  7739. void Define(const BoundingBox&);
  7740. void Define(const Frustum&);
  7741. void Transform(const Matrix3&);
  7742. void Transform(const Matrix3x4&);
  7743. Polyhedron Transformed(const Matrix3&) const;
  7744. Polyhedron Transformed(const Matrix3x4&) const;
  7745. // Properties:
  7746. /* readonly */
  7747. Array<Array<Vector3>> face;
  7748. /* readonly */
  7749. uint numFaces;
  7750. };
  7751. class PropertySet2D
  7752. {
  7753. // Methods:
  7754. bool HasProperty(const String&) const;
  7755. const String& GetProperty(const String&) const;
  7756. // Properties:
  7757. /* readonly */
  7758. int refs;
  7759. /* readonly */
  7760. int weakRefs;
  7761. };
  7762. class Quaternion
  7763. {
  7764. // Methods:
  7765. float DotProduct(const Quaternion&) const;
  7766. bool Equals(const Quaternion&) const;
  7767. void FromAngleAxis(float, const Vector3&);
  7768. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7769. void FromEulerAngles(float, float, float);
  7770. bool FromLookRotation(const Vector3&, const Vector3&);
  7771. void FromRotationTo(const Vector3&, const Vector3&);
  7772. Quaternion Inverse() const;
  7773. bool IsNaN() const;
  7774. Quaternion Nlerp(Quaternion, float, bool) const;
  7775. void Normalize();
  7776. Quaternion Normalized() const;
  7777. Quaternion Slerp(Quaternion, float) const;
  7778. String ToString() const;
  7779. // Properties:
  7780. /* readonly */
  7781. Vector3 eulerAngles;
  7782. /* readonly */
  7783. float pitch;
  7784. /* readonly */
  7785. float roll;
  7786. float w;
  7787. float x;
  7788. float y;
  7789. /* readonly */
  7790. float yaw;
  7791. float z;
  7792. };
  7793. class Ray
  7794. {
  7795. // Methods:
  7796. Vector3 ClosestPoint(const Ray&) const;
  7797. void Define(const Vector3&, const Vector3&);
  7798. float Distance(const Vector3&) const;
  7799. float HitDistance(const BoundingBox&) const;
  7800. float HitDistance(const Frustum&, bool = true) const;
  7801. float HitDistance(const Plane&) const;
  7802. float HitDistance(const Sphere&) const;
  7803. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7804. Vector3 Project(const Vector3&) const;
  7805. Ray Transformed(const Matrix3x4&) const;
  7806. // Properties:
  7807. Vector3 direction;
  7808. Vector3 origin;
  7809. };
  7810. class RayQueryResult
  7811. {
  7812. // Properties:
  7813. float distance;
  7814. /* readonly */
  7815. Drawable drawable;
  7816. /* readonly */
  7817. Node node;
  7818. Vector3 normal;
  7819. Vector3 position;
  7820. uint subObject;
  7821. Vector2 textureUV;
  7822. };
  7823. class Rect
  7824. {
  7825. // Methods:
  7826. void Clear();
  7827. void Clip(const Rect&);
  7828. void Define(const Vector2&);
  7829. void Define(const Vector2&, const Vector2&);
  7830. bool Defined() const;
  7831. bool Equals(const Rect&) const;
  7832. Intersection IsInside(const Vector2&) const;
  7833. void Merge(const Rect&);
  7834. void Merge(const Vector2&);
  7835. Vector4 ToVector4() const;
  7836. // Properties:
  7837. float bottom;
  7838. /* readonly */
  7839. Vector2 center;
  7840. /* readonly */
  7841. Vector2 halfSize;
  7842. float left;
  7843. Vector2 max;
  7844. Vector2 min;
  7845. float right;
  7846. /* readonly */
  7847. Vector2 size;
  7848. float top;
  7849. };
  7850. class RefCounted
  7851. {
  7852. // Properties:
  7853. /* readonly */
  7854. int refs;
  7855. /* readonly */
  7856. int weakRefs;
  7857. };
  7858. class RenderPath
  7859. {
  7860. // Methods:
  7861. void AddCommand(const RenderPathCommand&);
  7862. void AddRenderTarget(const RenderTargetInfo&);
  7863. bool Append(XMLFile);
  7864. RenderPath Clone();
  7865. void InsertCommand(uint, const RenderPathCommand&);
  7866. bool Load(XMLFile);
  7867. void RemoveCommand(uint);
  7868. void RemoveCommands(const String&);
  7869. void RemoveRenderTarget(const String&);
  7870. void RemoveRenderTarget(uint);
  7871. void RemoveRenderTargts(const String&);
  7872. void SetEnabled(const String&, bool);
  7873. void ToggleEnabled(const String&);
  7874. // Properties:
  7875. Array<RenderPathCommand> commands;
  7876. /* readonly */
  7877. uint numCommands;
  7878. /* readonly */
  7879. uint numRenderTargets;
  7880. /* readonly */
  7881. int refs;
  7882. Array<RenderTargetInfo> renderTargets;
  7883. Array<Variant> shaderParameters;
  7884. /* readonly */
  7885. int weakRefs;
  7886. };
  7887. class RenderPathCommand
  7888. {
  7889. // Methods:
  7890. void RemoveShaderParameter(const String&);
  7891. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7892. // Properties:
  7893. BlendMode blendMode;
  7894. Color clearColor;
  7895. float clearDepth;
  7896. uint clearFlags;
  7897. uint clearStencil;
  7898. String depthStencilName;
  7899. bool enabled;
  7900. bool markToStencil;
  7901. String metadata;
  7902. uint numOutputs;
  7903. Array<CubeMapFace> outputFaces;
  7904. Array<String> outputNames;
  7905. String pass;
  7906. String pixelShaderDefines;
  7907. String pixelShaderName;
  7908. Array<Variant> shaderParameters;
  7909. RenderCommandSortMode sortMode;
  7910. String tag;
  7911. Array<String> textureNames;
  7912. RenderCommandType type;
  7913. bool useFogColor;
  7914. bool useLitBase;
  7915. bool vertexLights;
  7916. String vertexShaderDefines;
  7917. String vertexShaderName;
  7918. };
  7919. class RenderSurface
  7920. {
  7921. // Methods:
  7922. void QueueUpdate();
  7923. // Properties:
  7924. /* readonly */
  7925. int height;
  7926. RenderSurface linkedDepthStencil;
  7927. RenderSurface linkedRenderTarget;
  7928. uint numViewports;
  7929. /* readonly */
  7930. Texture parentTexture;
  7931. RenderSurfaceUpdateMode updateMode;
  7932. /* readonly */
  7933. TextureUsage usage;
  7934. Array<Viewport> viewports;
  7935. /* readonly */
  7936. int width;
  7937. };
  7938. class RenderTargetInfo
  7939. {
  7940. // Properties:
  7941. bool cubemap;
  7942. bool enabled;
  7943. bool filtered;
  7944. uint format;
  7945. String name;
  7946. bool persistent;
  7947. bool sRGB;
  7948. Vector2 size;
  7949. RenderTargetSizeMode sizeMode;
  7950. String tag;
  7951. };
  7952. class Renderer
  7953. {
  7954. // Methods:
  7955. void DrawDebugGeometry(bool) const;
  7956. bool HasSubscribedToEvent(Object, const String&);
  7957. bool HasSubscribedToEvent(const String&);
  7958. void ReloadShaders() const;
  7959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7960. void SetDefaultRenderPath(XMLFile);
  7961. void SetVSMShadowParameters(float, float);
  7962. // Properties:
  7963. /* readonly */
  7964. String category;
  7965. /* readonly */
  7966. Material defaultLightRamp;
  7967. /* readonly */
  7968. Material defaultLightSpot;
  7969. /* readonly */
  7970. Material defaultMaterial;
  7971. RenderPath defaultRenderPath;
  7972. /* readonly */
  7973. Zone defaultZone;
  7974. bool drawShadows;
  7975. bool dynamicInstancing;
  7976. bool hdrRendering;
  7977. int materialQuality;
  7978. int maxOccluderTriangles;
  7979. int maxShadowMaps;
  7980. int maxSortedInstances;
  7981. int minInstances;
  7982. float mobileShadowBiasAdd;
  7983. float mobileShadowBiasMul;
  7984. /* readonly */
  7985. uint numBatches;
  7986. /* readonly */
  7987. Array<uint> numGeometries;
  7988. /* readonly */
  7989. Array<uint> numLights;
  7990. /* readonly */
  7991. Array<uint> numOccluders;
  7992. /* readonly */
  7993. uint numPrimitives;
  7994. /* readonly */
  7995. Array<uint> numShadowMaps;
  7996. uint numViewports;
  7997. /* readonly */
  7998. uint numViews;
  7999. float occluderSizeThreshold;
  8000. int occlusionBufferSize;
  8001. /* readonly */
  8002. int refs;
  8003. bool reuseShadowMaps;
  8004. int shadowMapSize;
  8005. ShadowQuality shadowQuality;
  8006. float shadowSoftness;
  8007. bool specularLighting;
  8008. int textureAnisotropy;
  8009. TextureFilterMode textureFilterMode;
  8010. int textureQuality;
  8011. bool threadedOcclusion;
  8012. /* readonly */
  8013. StringHash type;
  8014. /* readonly */
  8015. String typeName;
  8016. Array<Viewport> viewports;
  8017. Vector2 vsmShadowParameters;
  8018. /* readonly */
  8019. int weakRefs;
  8020. };
  8021. class Resource
  8022. {
  8023. // Methods:
  8024. bool HasSubscribedToEvent(Object, const String&);
  8025. bool HasSubscribedToEvent(const String&);
  8026. bool Load(File);
  8027. bool Load(VectorBuffer&);
  8028. bool Save(File) const;
  8029. bool Save(VectorBuffer&) const;
  8030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8031. // Properties:
  8032. /* readonly */
  8033. String category;
  8034. /* readonly */
  8035. uint memoryUse;
  8036. String name;
  8037. /* readonly */
  8038. int refs;
  8039. /* readonly */
  8040. StringHash type;
  8041. /* readonly */
  8042. String typeName;
  8043. /* readonly */
  8044. uint useTimer;
  8045. /* readonly */
  8046. int weakRefs;
  8047. };
  8048. class ResourceCache
  8049. {
  8050. // Methods:
  8051. bool AddManualResource(Resource);
  8052. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8053. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8054. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8055. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8056. bool Exists(const String&) const;
  8057. Resource GetExistingResource(StringHash, const String&);
  8058. Resource GetExistingResource(const String&, const String&);
  8059. File GetFile(const String&);
  8060. String GetPreferredResourceDir(const String&) const;
  8061. Resource GetResource(StringHash, const String&, bool = true);
  8062. Resource GetResource(const String&, const String&, bool = true);
  8063. String GetResourceFileName(const String&) const;
  8064. bool HasSubscribedToEvent(Object, const String&);
  8065. bool HasSubscribedToEvent(const String&);
  8066. void ReleaseAllResources(bool = false);
  8067. void ReleaseResource(const String&, const String&, bool = false);
  8068. void ReleaseResources(StringHash, bool = false);
  8069. void ReleaseResources(const String&, bool = false);
  8070. void ReleaseResources(const String&, const String&, bool = false);
  8071. bool ReloadResource(Resource);
  8072. void ReloadResourceWithDependencies(const String&);
  8073. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8074. void RemovePackageFile(const String&, bool = true, bool = false);
  8075. void RemoveResourceDir(const String&);
  8076. String SanitateResourceDirName(const String&) const;
  8077. String SanitateResourceName(const String&) const;
  8078. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8079. // Properties:
  8080. bool autoReloadResources;
  8081. /* readonly */
  8082. String category;
  8083. int finishBackgroundResourcesMs;
  8084. Array<uint64> memoryBudget;
  8085. /* readonly */
  8086. Array<uint64> memoryUse;
  8087. /* readonly */
  8088. uint numBackgroundLoadResources;
  8089. /* readonly */
  8090. Array<PackageFile> packageFiles;
  8091. /* readonly */
  8092. int refs;
  8093. /* readonly */
  8094. Array<String> resourceDirs;
  8095. bool returnFailedResources;
  8096. /* readonly */
  8097. bool seachPackagesFirst;
  8098. /* writeonly */
  8099. bool searchPackagesFirst;
  8100. /* readonly */
  8101. uint64 totalMemoryUse;
  8102. /* readonly */
  8103. StringHash type;
  8104. /* readonly */
  8105. String typeName;
  8106. /* readonly */
  8107. int weakRefs;
  8108. };
  8109. class ResourceRef
  8110. {
  8111. // Properties:
  8112. String name;
  8113. StringHash type;
  8114. };
  8115. class ResourceRefList
  8116. {
  8117. // Methods:
  8118. void Resize(uint);
  8119. // Properties:
  8120. /* readonly */
  8121. bool empty;
  8122. /* readonly */
  8123. uint length;
  8124. Array<String> names;
  8125. StringHash type;
  8126. };
  8127. class RigidBody
  8128. {
  8129. // Methods:
  8130. void Activate();
  8131. void ApplyAttributes();
  8132. void ApplyForce(const Vector3&);
  8133. void ApplyForce(const Vector3&, const Vector3&);
  8134. void ApplyImpulse(const Vector3&);
  8135. void ApplyImpulse(const Vector3&, const Vector3&);
  8136. void ApplyTorque(const Vector3&);
  8137. void ApplyTorqueImpulse(const Vector3&);
  8138. void DisableMassUpdate();
  8139. void DrawDebugGeometry(DebugRenderer, bool);
  8140. void EnableMassUpdate();
  8141. Variant GetAttribute(const String&) const;
  8142. ValueAnimation GetAttributeAnimation(const String&) const;
  8143. float GetAttributeAnimationSpeed(const String&) const;
  8144. float GetAttributeAnimationTime(const String&) const;
  8145. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8146. Variant GetAttributeDefault(const String&) const;
  8147. bool GetInterceptNetworkUpdate(const String&) const;
  8148. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8149. bool HasSubscribedToEvent(Object, const String&);
  8150. bool HasSubscribedToEvent(const String&);
  8151. bool Load(File, bool = false);
  8152. bool Load(VectorBuffer&, bool = false);
  8153. bool LoadJSON(const JSONValue&, bool = false);
  8154. bool LoadXML(const XMLElement&, bool = false);
  8155. void MarkNetworkUpdate() const;
  8156. void ReAddBodyToWorld();
  8157. void Remove();
  8158. void RemoveAttributeAnimation(const String&);
  8159. void RemoveInstanceDefault();
  8160. void RemoveObjectAnimation();
  8161. void ResetForces();
  8162. void ResetToDefault();
  8163. bool Save(File) const;
  8164. bool Save(VectorBuffer&) const;
  8165. bool SaveJSON(JSONValue&) const;
  8166. bool SaveXML(XMLElement&) const;
  8167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8168. void SetAnimationTime(float);
  8169. bool SetAttribute(const String&, const Variant&);
  8170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8171. void SetAttributeAnimationSpeed(const String&, float);
  8172. void SetAttributeAnimationTime(const String&, float);
  8173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8174. void SetCollisionLayerAndMask(uint, uint);
  8175. void SetInterceptNetworkUpdate(const String&, bool);
  8176. void SetTransform(const Vector3&, const Quaternion&);
  8177. // Properties:
  8178. /* readonly */
  8179. bool active;
  8180. float angularDamping;
  8181. Vector3 angularFactor;
  8182. float angularRestThreshold;
  8183. Vector3 angularVelocity;
  8184. bool animationEnabled;
  8185. Vector3 anisotropicFriction;
  8186. /* readonly */
  8187. Array<Variant> attributeDefaults;
  8188. /* readonly */
  8189. Array<AttributeInfo> attributeInfos;
  8190. Array<Variant> attributes;
  8191. /* readonly */
  8192. String category;
  8193. float ccdMotionThreshold;
  8194. float ccdRadius;
  8195. /* readonly */
  8196. Vector3 centerOfMass;
  8197. /* readonly */
  8198. Array<RigidBody> collidingBodies;
  8199. CollisionEventMode collisionEventMode;
  8200. uint collisionLayer;
  8201. uint collisionMask;
  8202. float contactProcessingThreshold;
  8203. bool enabled;
  8204. /* readonly */
  8205. bool enabledEffective;
  8206. float friction;
  8207. Vector3 gravityOverride;
  8208. /* readonly */
  8209. uint id;
  8210. bool kinematic;
  8211. float linearDamping;
  8212. Vector3 linearFactor;
  8213. float linearRestThreshold;
  8214. Vector3 linearVelocity;
  8215. float mass;
  8216. /* readonly */
  8217. Node node;
  8218. /* readonly */
  8219. uint numAttributes;
  8220. ObjectAnimation objectAnimation;
  8221. Vector3 position;
  8222. /* readonly */
  8223. int refs;
  8224. float restitution;
  8225. float rollingFriction;
  8226. Quaternion rotation;
  8227. bool temporary;
  8228. bool trigger;
  8229. /* readonly */
  8230. StringHash type;
  8231. /* readonly */
  8232. String typeName;
  8233. bool useGravity;
  8234. /* readonly */
  8235. int weakRefs;
  8236. };
  8237. class RigidBody2D
  8238. {
  8239. // Methods:
  8240. void ApplyAngularImpulse(float, bool);
  8241. void ApplyAttributes();
  8242. void ApplyForce(const Vector2&, const Vector2&, bool);
  8243. void ApplyForceToCenter(const Vector2&, bool);
  8244. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8245. void ApplyTorque(float, bool);
  8246. void DrawDebugGeometry(DebugRenderer, bool);
  8247. Variant GetAttribute(const String&) const;
  8248. ValueAnimation GetAttributeAnimation(const String&) const;
  8249. float GetAttributeAnimationSpeed(const String&) const;
  8250. float GetAttributeAnimationTime(const String&) const;
  8251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8252. Variant GetAttributeDefault(const String&) const;
  8253. bool GetInterceptNetworkUpdate(const String&) const;
  8254. bool HasSubscribedToEvent(Object, const String&);
  8255. bool HasSubscribedToEvent(const String&);
  8256. bool Load(File, bool = false);
  8257. bool Load(VectorBuffer&, bool = false);
  8258. bool LoadJSON(const JSONValue&, bool = false);
  8259. bool LoadXML(const XMLElement&, bool = false);
  8260. void MarkNetworkUpdate() const;
  8261. void Remove();
  8262. void RemoveAttributeAnimation(const String&);
  8263. void RemoveInstanceDefault();
  8264. void RemoveObjectAnimation();
  8265. void ResetToDefault();
  8266. bool Save(File) const;
  8267. bool Save(VectorBuffer&) const;
  8268. bool SaveJSON(JSONValue&) const;
  8269. bool SaveXML(XMLElement&) const;
  8270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8271. void SetAnimationTime(float);
  8272. bool SetAttribute(const String&, const Variant&);
  8273. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8274. void SetAttributeAnimationSpeed(const String&, float);
  8275. void SetAttributeAnimationTime(const String&, float);
  8276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8277. void SetInterceptNetworkUpdate(const String&, bool);
  8278. // Properties:
  8279. bool allowSleep;
  8280. float angularDamping;
  8281. bool animationEnabled;
  8282. /* readonly */
  8283. Array<Variant> attributeDefaults;
  8284. /* readonly */
  8285. Array<AttributeInfo> attributeInfos;
  8286. Array<Variant> attributes;
  8287. bool awake;
  8288. BodyType2D bodyType;
  8289. bool bullet;
  8290. /* readonly */
  8291. String category;
  8292. bool enabled;
  8293. /* readonly */
  8294. bool enabledEffective;
  8295. bool fixedRotation;
  8296. float gravityScale;
  8297. /* readonly */
  8298. uint id;
  8299. float inertia;
  8300. float linearDamping;
  8301. Vector2 linearVelocity;
  8302. float mass;
  8303. Vector2 massCenter;
  8304. /* readonly */
  8305. Node node;
  8306. /* readonly */
  8307. uint numAttributes;
  8308. ObjectAnimation objectAnimation;
  8309. /* readonly */
  8310. int refs;
  8311. bool temporary;
  8312. /* readonly */
  8313. StringHash type;
  8314. /* readonly */
  8315. String typeName;
  8316. bool useFixtureMass;
  8317. /* readonly */
  8318. int weakRefs;
  8319. };
  8320. class Scene
  8321. {
  8322. // Methods:
  8323. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8324. void AddRequiredPackageFile(PackageFile);
  8325. void ApplyAttributes();
  8326. void Clear(bool = true, bool = true);
  8327. void ClearRequiredPackageFiles();
  8328. Component CloneComponent(Component, CreateMode, uint = 0);
  8329. Component CloneComponent(Component, uint = 0);
  8330. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8331. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8332. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8333. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8334. Variant GetAttribute(const String&) const;
  8335. ValueAnimation GetAttributeAnimation(const String&) const;
  8336. float GetAttributeAnimationSpeed(const String&) const;
  8337. float GetAttributeAnimationTime(const String&) const;
  8338. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8339. Variant GetAttributeDefault(const String&) const;
  8340. Node GetChild(const String&, bool = false) const;
  8341. Array<Node> GetChildren(bool = false) const;
  8342. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8343. Array<Node> GetChildrenWithScript(bool = false) const;
  8344. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8345. Component GetComponent(const String&, bool = false) const;
  8346. Component GetComponent(uint) const;
  8347. Array<Component> GetComponents() const;
  8348. Array<Component> GetComponents(const String&, bool = false) const;
  8349. bool GetInterceptNetworkUpdate(const String&) const;
  8350. Node GetNode(uint) const;
  8351. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8352. Component GetParentComponent(const String&, bool = false) const;
  8353. ScriptObject GetScriptObject() const;
  8354. ScriptObject GetScriptObject(const String&) const;
  8355. bool HasComponent(const String&) const;
  8356. bool HasSubscribedToEvent(Object, const String&);
  8357. bool HasSubscribedToEvent(const String&);
  8358. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8359. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8360. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8361. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8362. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8363. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8364. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8365. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8366. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8367. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8368. bool Load(File, bool = false);
  8369. bool Load(VectorBuffer&, bool = false);
  8370. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8371. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8372. bool LoadJSON(File);
  8373. bool LoadJSON(VectorBuffer&);
  8374. bool LoadJSON(const JSONValue&, bool = false);
  8375. bool LoadXML(File);
  8376. bool LoadXML(VectorBuffer&);
  8377. bool LoadXML(const XMLElement&, bool = false);
  8378. Vector3 LocalToWorld(const Vector3&) const;
  8379. Vector3 LocalToWorld(const Vector4&) const;
  8380. Vector2 LocalToWorld2D(const Vector2&) const;
  8381. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8382. void MarkNetworkUpdate() const;
  8383. void Pitch(float, TransformSpace = TS_LOCAL);
  8384. void RegisterVar(const String&);
  8385. void Remove();
  8386. void RemoveAllChildren();
  8387. void RemoveAllComponents();
  8388. void RemoveAttributeAnimation(const String&);
  8389. void RemoveChild(Node);
  8390. void RemoveChildren(bool, bool, bool);
  8391. void RemoveComponent(Component);
  8392. void RemoveComponent(const String&);
  8393. void RemoveComponents(bool, bool);
  8394. void RemoveComponents(const String&);
  8395. void RemoveInstanceDefault();
  8396. void RemoveObjectAnimation();
  8397. void ResetToDefault();
  8398. void Roll(float, TransformSpace = TS_LOCAL);
  8399. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8400. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8401. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8402. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8403. bool Save(File) const;
  8404. bool Save(VectorBuffer&) const;
  8405. bool SaveJSON(File, const String& = "\t");
  8406. bool SaveJSON(JSONValue&) const;
  8407. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8408. bool SaveXML(File, const String& = "\t");
  8409. bool SaveXML(VectorBuffer&, const String& = "\t");
  8410. bool SaveXML(XMLElement&) const;
  8411. void Scale(const Vector3&);
  8412. void Scale(float);
  8413. void Scale2D(const Vector2&);
  8414. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8415. void SetAnimationTime(float);
  8416. bool SetAttribute(const String&, const Variant&);
  8417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8418. void SetAttributeAnimationSpeed(const String&, float);
  8419. void SetAttributeAnimationTime(const String&, float);
  8420. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8421. void SetInterceptNetworkUpdate(const String&, bool);
  8422. void SetPosition2D(float, float);
  8423. void SetScale(float);
  8424. void SetScale2D(float, float);
  8425. void SetTransform(const Vector3&, const Quaternion&);
  8426. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8427. void SetTransform(const Vector3&, const Quaternion&, float);
  8428. void SetTransform2D(const Vector2&, float);
  8429. void SetTransform2D(const Vector2&, float, const Vector2&);
  8430. void SetTransform2D(const Vector2&, float, float);
  8431. void SetWorldTransform(const Vector3&, const Quaternion&);
  8432. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8433. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8434. void SetWorldTransform2D(const Vector2&, float);
  8435. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8436. void SetWorldTransform2D(const Vector2&, float, float);
  8437. void StopAsyncLoading();
  8438. const String& GetVarName(StringHash) const;
  8439. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8440. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8441. void UnregisterAllVars(const String&);
  8442. void UnregisterVar(const String&);
  8443. void Update(float);
  8444. Vector3 WorldToLocal(const Vector3&) const;
  8445. Vector3 WorldToLocal(const Vector4&) const;
  8446. Vector2 WorldToLocal2D(const Vector2&) const;
  8447. void Yaw(float, TransformSpace = TS_LOCAL);
  8448. // Properties:
  8449. bool animationEnabled;
  8450. /* readonly */
  8451. LoadMode asyncLoadMode;
  8452. /* readonly */
  8453. bool asyncLoading;
  8454. int asyncLoadingMs;
  8455. /* readonly */
  8456. float asyncProgress;
  8457. /* readonly */
  8458. Array<Variant> attributeDefaults;
  8459. /* readonly */
  8460. Array<AttributeInfo> attributeInfos;
  8461. Array<Variant> attributes;
  8462. /* readonly */
  8463. String category;
  8464. /* readonly */
  8465. uint checksum;
  8466. /* readonly */
  8467. Array<Node> children;
  8468. /* readonly */
  8469. Array<Component> components;
  8470. /* readonly */
  8471. DebugRenderer debugRenderer;
  8472. Vector3 direction;
  8473. float elapsedTime;
  8474. /* readonly */
  8475. String fileName;
  8476. /* readonly */
  8477. uint id;
  8478. String name;
  8479. /* readonly */
  8480. uint numAllChildren;
  8481. /* readonly */
  8482. uint numAttributes;
  8483. /* readonly */
  8484. uint numChildren;
  8485. /* readonly */
  8486. uint numComponents;
  8487. ObjectAnimation objectAnimation;
  8488. /* readonly */
  8489. Octree octree;
  8490. Node parent;
  8491. /* readonly */
  8492. PhysicsWorld physicsWorld;
  8493. /* readonly */
  8494. PhysicsWorld2D physicsWorld2D;
  8495. Vector3 position;
  8496. Vector2 position2D;
  8497. /* readonly */
  8498. int refs;
  8499. /* readonly */
  8500. Array<PackageFile> requiredPackageFiles;
  8501. /* readonly */
  8502. Vector3 right;
  8503. Quaternion rotation;
  8504. float rotation2D;
  8505. Vector3 scale;
  8506. Vector2 scale2D;
  8507. /* readonly */
  8508. ScriptObject scriptObject;
  8509. float smoothingConstant;
  8510. float snapThreshold;
  8511. bool temporary;
  8512. float timeScale;
  8513. /* readonly */
  8514. Matrix3x4 transform;
  8515. /* readonly */
  8516. StringHash type;
  8517. /* readonly */
  8518. String typeName;
  8519. /* readonly */
  8520. Vector3 up;
  8521. bool updateEnabled;
  8522. /* readonly */
  8523. VariantMap vars;
  8524. /* readonly */
  8525. int weakRefs;
  8526. Vector3 worldDirection;
  8527. Vector3 worldPosition;
  8528. Vector2 worldPosition2D;
  8529. /* readonly */
  8530. Vector3 worldRight;
  8531. Quaternion worldRotation;
  8532. float worldRotation2D;
  8533. Vector3 worldScale;
  8534. Vector2 worldScale2D;
  8535. /* readonly */
  8536. Matrix3x4 worldTransform;
  8537. /* readonly */
  8538. Vector3 worldUp;
  8539. };
  8540. class Script
  8541. {
  8542. // Methods:
  8543. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8544. bool Execute(const String&);
  8545. bool HasSubscribedToEvent(Object, const String&);
  8546. bool HasSubscribedToEvent(const String&);
  8547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8548. // Properties:
  8549. /* readonly */
  8550. String category;
  8551. Scene defaultScene;
  8552. ScriptFile defaultScriptFile;
  8553. bool executeConsoleCommands;
  8554. /* readonly */
  8555. int refs;
  8556. /* readonly */
  8557. StringHash type;
  8558. /* readonly */
  8559. String typeName;
  8560. /* readonly */
  8561. int weakRefs;
  8562. };
  8563. class ScriptFile
  8564. {
  8565. // Methods:
  8566. void ClearDelayedExecute(const String& = String ( ));
  8567. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8568. bool Execute(const String&, const Array<Variant> = null);
  8569. bool HasSubscribedToEvent(Object, const String&);
  8570. bool HasSubscribedToEvent(const String&);
  8571. bool Load(File);
  8572. bool Load(VectorBuffer&);
  8573. bool Save(File) const;
  8574. bool Save(VectorBuffer&) const;
  8575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8576. // Properties:
  8577. /* readonly */
  8578. String category;
  8579. /* readonly */
  8580. bool compiled;
  8581. /* readonly */
  8582. uint memoryUse;
  8583. String name;
  8584. /* readonly */
  8585. int refs;
  8586. /* readonly */
  8587. StringHash type;
  8588. /* readonly */
  8589. String typeName;
  8590. /* readonly */
  8591. uint useTimer;
  8592. /* readonly */
  8593. int weakRefs;
  8594. };
  8595. class ScriptInstance
  8596. {
  8597. // Methods:
  8598. void ApplyAttributes();
  8599. void ClearDelayedExecute(const String& = String ( ));
  8600. bool CreateObject(ScriptFile, const String&);
  8601. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8602. void DrawDebugGeometry(DebugRenderer, bool);
  8603. bool Execute(const String&, const Array<Variant> = null);
  8604. Variant GetAttribute(const String&) const;
  8605. ValueAnimation GetAttributeAnimation(const String&) const;
  8606. float GetAttributeAnimationSpeed(const String&) const;
  8607. float GetAttributeAnimationTime(const String&) const;
  8608. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8609. Variant GetAttributeDefault(const String&) const;
  8610. bool GetInterceptNetworkUpdate(const String&) const;
  8611. bool HasMethod(const String&) const;
  8612. bool HasSubscribedToEvent(Object, const String&);
  8613. bool HasSubscribedToEvent(const String&);
  8614. bool IsA(const String&) const;
  8615. bool Load(File, bool = false);
  8616. bool Load(VectorBuffer&, bool = false);
  8617. bool LoadJSON(const JSONValue&, bool = false);
  8618. bool LoadXML(const XMLElement&, bool = false);
  8619. void MarkNetworkUpdate() const;
  8620. void Remove();
  8621. void RemoveAttributeAnimation(const String&);
  8622. void RemoveInstanceDefault();
  8623. void RemoveObjectAnimation();
  8624. void ResetToDefault();
  8625. bool Save(File) const;
  8626. bool Save(VectorBuffer&) const;
  8627. bool SaveJSON(JSONValue&) const;
  8628. bool SaveXML(XMLElement&) const;
  8629. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8630. void SetAnimationTime(float);
  8631. bool SetAttribute(const String&, const Variant&);
  8632. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8633. void SetAttributeAnimationSpeed(const String&, float);
  8634. void SetAttributeAnimationTime(const String&, float);
  8635. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8636. void SetInterceptNetworkUpdate(const String&, bool);
  8637. // Properties:
  8638. bool animationEnabled;
  8639. /* readonly */
  8640. Array<Variant> attributeDefaults;
  8641. /* readonly */
  8642. Array<AttributeInfo> attributeInfos;
  8643. Array<Variant> attributes;
  8644. /* readonly */
  8645. String category;
  8646. String className;
  8647. bool enabled;
  8648. /* readonly */
  8649. bool enabledEffective;
  8650. /* readonly */
  8651. uint id;
  8652. /* readonly */
  8653. Node node;
  8654. /* readonly */
  8655. uint numAttributes;
  8656. ObjectAnimation objectAnimation;
  8657. /* readonly */
  8658. int refs;
  8659. ScriptFile scriptFile;
  8660. /* readonly */
  8661. ScriptObject scriptObject;
  8662. bool temporary;
  8663. /* readonly */
  8664. StringHash type;
  8665. /* readonly */
  8666. String typeName;
  8667. /* readonly */
  8668. int weakRefs;
  8669. };
  8670. class ScriptObject
  8671. {
  8672. };
  8673. class ScrollBar
  8674. {
  8675. // Methods:
  8676. void AddChild(UIElement);
  8677. void ApplyAttributes();
  8678. void BringToFront();
  8679. void ChangeValue(float);
  8680. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8681. void DisableLayoutUpdate();
  8682. IntVector2 ElementToScreen(const IntVector2&);
  8683. void EnableLayoutUpdate();
  8684. uint FindChild(UIElement) const;
  8685. Variant GetAttribute(const String&) const;
  8686. ValueAnimation GetAttributeAnimation(const String&) const;
  8687. float GetAttributeAnimationSpeed(const String&) const;
  8688. float GetAttributeAnimationTime(const String&) const;
  8689. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8690. Variant GetAttributeDefault(const String&) const;
  8691. UIElement GetChild(const String&, bool = false) const;
  8692. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8693. Array<UIElement> GetChildren(bool = false) const;
  8694. UIElement GetElementEventSender() const;
  8695. bool GetInterceptNetworkUpdate(const String&) const;
  8696. uint GetNumChildren(bool) const;
  8697. bool HasSubscribedToEvent(Object, const String&);
  8698. bool HasSubscribedToEvent(const String&);
  8699. void InsertChild(uint, UIElement);
  8700. bool IsInside(IntVector2, bool);
  8701. bool IsInsideCombined(IntVector2, bool);
  8702. bool Load(File, bool = false);
  8703. bool Load(VectorBuffer&, bool = false);
  8704. bool LoadChildXML(XMLFile, XMLFile = null);
  8705. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8706. bool LoadJSON(const JSONValue&, bool = false);
  8707. bool LoadXML(File);
  8708. bool LoadXML(VectorBuffer&);
  8709. bool LoadXML(XMLFile, XMLFile);
  8710. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8711. bool LoadXML(const XMLElement&, bool = false);
  8712. void MarkNetworkUpdate() const;
  8713. void Remove();
  8714. void RemoveAllChildren();
  8715. void RemoveAttributeAnimation(const String&);
  8716. void RemoveChild(UIElement, uint = 0);
  8717. void RemoveChild(uint);
  8718. void RemoveInstanceDefault();
  8719. void RemoveObjectAnimation();
  8720. void ResetDeepEnabled();
  8721. void ResetToDefault();
  8722. bool Save(File) const;
  8723. bool Save(VectorBuffer&) const;
  8724. bool SaveJSON(JSONValue&) const;
  8725. bool SaveXML(File, const String& = "\t");
  8726. bool SaveXML(VectorBuffer&, const String& = "\t");
  8727. bool SaveXML(XMLElement&) const;
  8728. IntVector2 ScreenToElement(const IntVector2&);
  8729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8730. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8731. void SetAnimationTime(float);
  8732. bool SetAttribute(const String&, const Variant&);
  8733. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8734. void SetAttributeAnimationSpeed(const String&, float);
  8735. void SetAttributeAnimationTime(const String&, float);
  8736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8737. void SetDeepEnabled(bool);
  8738. void SetEnabledRecursive(bool);
  8739. void SetFixedHeight(int);
  8740. void SetFixedSize(int, int);
  8741. void SetFixedWidth(int);
  8742. void SetInterceptNetworkUpdate(const String&, bool);
  8743. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8744. void SetMaxSize(int, int);
  8745. void SetMinSize(int, int);
  8746. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8747. void SetPosition(int, int);
  8748. void SetSize(int, int);
  8749. bool SetStyle(const String&, XMLFile = null);
  8750. bool SetStyle(const XMLElement&);
  8751. bool SetStyleAuto(XMLFile = null);
  8752. void StepBack();
  8753. void StepForward();
  8754. void UpdateLayout();
  8755. const Variant& GetVar(const StringHash&);
  8756. // Properties:
  8757. bool animationEnabled;
  8758. /* readonly */
  8759. Array<Variant> attributeDefaults;
  8760. /* readonly */
  8761. Array<AttributeInfo> attributeInfos;
  8762. Array<Variant> attributes;
  8763. /* readonly */
  8764. Button backButton;
  8765. bool bringToBack;
  8766. bool bringToFront;
  8767. /* readonly */
  8768. String category;
  8769. /* readonly */
  8770. IntVector2 childOffset;
  8771. /* readonly */
  8772. Array<UIElement> children;
  8773. IntRect clipBorder;
  8774. bool clipChildren;
  8775. /* writeonly */
  8776. Color color;
  8777. /* readonly */
  8778. bool colorGradient;
  8779. Array<Color> colors;
  8780. /* readonly */
  8781. IntRect combinedScreenRect;
  8782. XMLFile defaultStyle;
  8783. /* readonly */
  8784. float derivedOpacity;
  8785. /* readonly */
  8786. uint dragButtonCombo;
  8787. /* readonly */
  8788. int dragButtonCount;
  8789. uint dragDropMode;
  8790. bool editable;
  8791. /* readonly */
  8792. float effectiveScrollStep;
  8793. bool elementEventSender;
  8794. bool enabled;
  8795. /* readonly */
  8796. bool enabledSelf;
  8797. /* readonly */
  8798. bool fixedHeight;
  8799. /* readonly */
  8800. bool fixedSize;
  8801. /* readonly */
  8802. bool fixedWidth;
  8803. bool focus;
  8804. FocusMode focusMode;
  8805. /* readonly */
  8806. Button forwardButton;
  8807. int height;
  8808. HorizontalAlignment horizontalAlignment;
  8809. /* readonly */
  8810. bool hovering;
  8811. int indent;
  8812. int indentSpacing;
  8813. /* readonly */
  8814. int indentWidth;
  8815. bool internal;
  8816. IntRect layoutBorder;
  8817. Vector2 layoutFlexScale;
  8818. LayoutMode layoutMode;
  8819. int layoutSpacing;
  8820. int maxHeight;
  8821. IntVector2 maxSize;
  8822. int maxWidth;
  8823. int minHeight;
  8824. IntVector2 minSize;
  8825. int minWidth;
  8826. String name;
  8827. /* readonly */
  8828. uint numAllChildren;
  8829. /* readonly */
  8830. uint numAttributes;
  8831. /* readonly */
  8832. uint numChildren;
  8833. ObjectAnimation objectAnimation;
  8834. float opacity;
  8835. Orientation orientation;
  8836. UIElement parent;
  8837. IntVector2 position;
  8838. int priority;
  8839. float range;
  8840. /* readonly */
  8841. int refs;
  8842. /* readonly */
  8843. UIElement root;
  8844. /* readonly */
  8845. IntVector2 screenPosition;
  8846. float scrollStep;
  8847. bool selected;
  8848. IntVector2 size;
  8849. /* readonly */
  8850. Slider slider;
  8851. bool sortChildren;
  8852. float stepFactor;
  8853. String style;
  8854. bool temporary;
  8855. TraversalMode traversalMode;
  8856. /* readonly */
  8857. StringHash type;
  8858. /* readonly */
  8859. String typeName;
  8860. bool useDerivedOpacity;
  8861. float value;
  8862. /* readonly */
  8863. VariantMap vars;
  8864. VerticalAlignment verticalAlignment;
  8865. bool visible;
  8866. /* readonly */
  8867. bool visibleEffective;
  8868. /* readonly */
  8869. int weakRefs;
  8870. int width;
  8871. };
  8872. class ScrollView
  8873. {
  8874. // Methods:
  8875. void AddChild(UIElement);
  8876. void ApplyAttributes();
  8877. void BringToFront();
  8878. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8879. void DisableLayoutUpdate();
  8880. IntVector2 ElementToScreen(const IntVector2&);
  8881. void EnableLayoutUpdate();
  8882. uint FindChild(UIElement) const;
  8883. Variant GetAttribute(const String&) const;
  8884. ValueAnimation GetAttributeAnimation(const String&) const;
  8885. float GetAttributeAnimationSpeed(const String&) const;
  8886. float GetAttributeAnimationTime(const String&) const;
  8887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8888. Variant GetAttributeDefault(const String&) const;
  8889. UIElement GetChild(const String&, bool = false) const;
  8890. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8891. Array<UIElement> GetChildren(bool = false) const;
  8892. UIElement GetElementEventSender() const;
  8893. bool GetInterceptNetworkUpdate(const String&) const;
  8894. uint GetNumChildren(bool) const;
  8895. bool HasSubscribedToEvent(Object, const String&);
  8896. bool HasSubscribedToEvent(const String&);
  8897. void InsertChild(uint, UIElement);
  8898. bool IsInside(IntVector2, bool);
  8899. bool IsInsideCombined(IntVector2, bool);
  8900. bool Load(File, bool = false);
  8901. bool Load(VectorBuffer&, bool = false);
  8902. bool LoadChildXML(XMLFile, XMLFile = null);
  8903. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8904. bool LoadJSON(const JSONValue&, bool = false);
  8905. bool LoadXML(File);
  8906. bool LoadXML(VectorBuffer&);
  8907. bool LoadXML(XMLFile, XMLFile);
  8908. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8909. bool LoadXML(const XMLElement&, bool = false);
  8910. void MarkNetworkUpdate() const;
  8911. void Remove();
  8912. void RemoveAllChildren();
  8913. void RemoveAttributeAnimation(const String&);
  8914. void RemoveChild(UIElement, uint = 0);
  8915. void RemoveChild(uint);
  8916. void RemoveInstanceDefault();
  8917. void RemoveObjectAnimation();
  8918. void ResetDeepEnabled();
  8919. void ResetToDefault();
  8920. bool Save(File) const;
  8921. bool Save(VectorBuffer&) const;
  8922. bool SaveJSON(JSONValue&) const;
  8923. bool SaveXML(File, const String& = "\t");
  8924. bool SaveXML(VectorBuffer&, const String& = "\t");
  8925. bool SaveXML(XMLElement&) const;
  8926. IntVector2 ScreenToElement(const IntVector2&);
  8927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8928. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8929. void SetAnimationTime(float);
  8930. bool SetAttribute(const String&, const Variant&);
  8931. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8932. void SetAttributeAnimationSpeed(const String&, float);
  8933. void SetAttributeAnimationTime(const String&, float);
  8934. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8935. void SetDeepEnabled(bool);
  8936. void SetEnabledRecursive(bool);
  8937. void SetFixedHeight(int);
  8938. void SetFixedSize(int, int);
  8939. void SetFixedWidth(int);
  8940. void SetInterceptNetworkUpdate(const String&, bool);
  8941. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8942. void SetMaxSize(int, int);
  8943. void SetMinSize(int, int);
  8944. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8945. void SetPosition(int, int);
  8946. void SetScrollBarsVisible(bool, bool);
  8947. void SetSize(int, int);
  8948. bool SetStyle(const String&, XMLFile = null);
  8949. bool SetStyle(const XMLElement&);
  8950. bool SetStyleAuto(XMLFile = null);
  8951. void SetViewPosition(int, int);
  8952. void UpdateLayout();
  8953. const Variant& GetVar(const StringHash&);
  8954. // Properties:
  8955. bool animationEnabled;
  8956. /* readonly */
  8957. Array<Variant> attributeDefaults;
  8958. /* readonly */
  8959. Array<AttributeInfo> attributeInfos;
  8960. Array<Variant> attributes;
  8961. bool autoDisableChildren;
  8962. float autoDisableThreshold;
  8963. bool bringToBack;
  8964. bool bringToFront;
  8965. /* readonly */
  8966. String category;
  8967. /* readonly */
  8968. IntVector2 childOffset;
  8969. /* readonly */
  8970. Array<UIElement> children;
  8971. IntRect clipBorder;
  8972. bool clipChildren;
  8973. /* writeonly */
  8974. Color color;
  8975. /* readonly */
  8976. bool colorGradient;
  8977. Array<Color> colors;
  8978. /* readonly */
  8979. IntRect combinedScreenRect;
  8980. UIElement contentElement;
  8981. XMLFile defaultStyle;
  8982. /* readonly */
  8983. float derivedOpacity;
  8984. /* readonly */
  8985. uint dragButtonCombo;
  8986. /* readonly */
  8987. int dragButtonCount;
  8988. uint dragDropMode;
  8989. bool editable;
  8990. bool elementEventSender;
  8991. bool enabled;
  8992. /* readonly */
  8993. bool enabledSelf;
  8994. /* readonly */
  8995. bool fixedHeight;
  8996. /* readonly */
  8997. bool fixedSize;
  8998. /* readonly */
  8999. bool fixedWidth;
  9000. bool focus;
  9001. FocusMode focusMode;
  9002. int height;
  9003. HorizontalAlignment horizontalAlignment;
  9004. /* readonly */
  9005. ScrollBar horizontalScrollBar;
  9006. /* readonly */
  9007. bool hovering;
  9008. int indent;
  9009. int indentSpacing;
  9010. /* readonly */
  9011. int indentWidth;
  9012. bool internal;
  9013. IntRect layoutBorder;
  9014. Vector2 layoutFlexScale;
  9015. LayoutMode layoutMode;
  9016. int layoutSpacing;
  9017. int maxHeight;
  9018. IntVector2 maxSize;
  9019. int maxWidth;
  9020. int minHeight;
  9021. IntVector2 minSize;
  9022. int minWidth;
  9023. String name;
  9024. /* readonly */
  9025. uint numAllChildren;
  9026. /* readonly */
  9027. uint numAttributes;
  9028. /* readonly */
  9029. uint numChildren;
  9030. ObjectAnimation objectAnimation;
  9031. float opacity;
  9032. float pageStep;
  9033. UIElement parent;
  9034. IntVector2 position;
  9035. int priority;
  9036. /* readonly */
  9037. int refs;
  9038. /* readonly */
  9039. UIElement root;
  9040. /* readonly */
  9041. IntVector2 screenPosition;
  9042. bool scrollBarsAutoVisible;
  9043. float scrollDeceleration;
  9044. /* readonly */
  9045. BorderImage scrollPanel;
  9046. float scrollSnapEpsilon;
  9047. float scrollStep;
  9048. bool selected;
  9049. IntVector2 size;
  9050. bool sortChildren;
  9051. String style;
  9052. bool temporary;
  9053. TraversalMode traversalMode;
  9054. /* readonly */
  9055. StringHash type;
  9056. /* readonly */
  9057. String typeName;
  9058. bool useDerivedOpacity;
  9059. /* readonly */
  9060. VariantMap vars;
  9061. VerticalAlignment verticalAlignment;
  9062. /* readonly */
  9063. ScrollBar verticalScrollBar;
  9064. IntVector2 viewPosition;
  9065. bool visible;
  9066. /* readonly */
  9067. bool visibleEffective;
  9068. /* readonly */
  9069. int weakRefs;
  9070. int width;
  9071. };
  9072. class Serializable
  9073. {
  9074. // Methods:
  9075. void ApplyAttributes();
  9076. Variant GetAttribute(const String&) const;
  9077. Variant GetAttributeDefault(const String&) const;
  9078. bool GetInterceptNetworkUpdate(const String&) const;
  9079. bool HasSubscribedToEvent(Object, const String&);
  9080. bool HasSubscribedToEvent(const String&);
  9081. bool Load(File, bool = false);
  9082. bool Load(VectorBuffer&, bool = false);
  9083. bool LoadJSON(const JSONValue&, bool = false);
  9084. bool LoadXML(const XMLElement&, bool = false);
  9085. void MarkNetworkUpdate() const;
  9086. void RemoveInstanceDefault();
  9087. void ResetToDefault();
  9088. bool Save(File) const;
  9089. bool Save(VectorBuffer&) const;
  9090. bool SaveJSON(JSONValue&) const;
  9091. bool SaveXML(XMLElement&) const;
  9092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9093. bool SetAttribute(const String&, const Variant&);
  9094. void SetInterceptNetworkUpdate(const String&, bool);
  9095. // Properties:
  9096. /* readonly */
  9097. Array<Variant> attributeDefaults;
  9098. /* readonly */
  9099. Array<AttributeInfo> attributeInfos;
  9100. Array<Variant> attributes;
  9101. /* readonly */
  9102. String category;
  9103. /* readonly */
  9104. uint numAttributes;
  9105. /* readonly */
  9106. int refs;
  9107. bool temporary;
  9108. /* readonly */
  9109. StringHash type;
  9110. /* readonly */
  9111. String typeName;
  9112. /* readonly */
  9113. int weakRefs;
  9114. };
  9115. class Serializer
  9116. {
  9117. // Methods:
  9118. uint Write(Array<uint8>);
  9119. bool WriteBool(bool);
  9120. bool WriteBoundingBox(const BoundingBox&);
  9121. bool WriteByte(int8);
  9122. bool WriteColor(const Color&);
  9123. bool WriteDouble(double);
  9124. bool WriteFileID(const String&);
  9125. bool WriteFloat(float);
  9126. bool WriteInt(int);
  9127. bool WriteIntRect(const IntRect&);
  9128. bool WriteIntVector2(const IntVector2&);
  9129. bool WriteLine(const String&);
  9130. bool WriteMatrix3(const Matrix3&);
  9131. bool WriteMatrix3x4(const Matrix3x4&);
  9132. bool WriteMatrix4(const Matrix4&);
  9133. bool WriteNetID(uint);
  9134. bool WritePackedQuaternion(const Quaternion&);
  9135. bool WritePackedVector3(const Vector3&, float);
  9136. bool WriteQuaternion(const Quaternion&);
  9137. bool WriteShort(int16);
  9138. bool WriteString(const String&);
  9139. bool WriteStringHash(const StringHash&);
  9140. bool WriteUByte(uint8);
  9141. bool WriteUInt(uint);
  9142. bool WriteUShort(uint16);
  9143. bool WriteVLE(uint);
  9144. bool WriteVariant(const Variant&);
  9145. bool WriteVariantMap(const VariantMap&);
  9146. bool WriteVector2(const Vector2&);
  9147. bool WriteVector3(const Vector3&);
  9148. bool WriteVector4(const Vector4&);
  9149. bool WriteVectorBuffer(const VectorBuffer&);
  9150. };
  9151. class Skeleton
  9152. {
  9153. // Methods:
  9154. Bone GetBone(const String&) const;
  9155. void Reset();
  9156. // Properties:
  9157. /* readonly */
  9158. Array<Bone> bones;
  9159. /* readonly */
  9160. uint numBones;
  9161. /* readonly */
  9162. Bone rootBone;
  9163. };
  9164. class Skybox
  9165. {
  9166. // Methods:
  9167. void ApplyAttributes();
  9168. void ApplyMaterialList(const String& = String ( ));
  9169. void DrawDebugGeometry(DebugRenderer, bool);
  9170. Variant GetAttribute(const String&) const;
  9171. ValueAnimation GetAttributeAnimation(const String&) const;
  9172. float GetAttributeAnimationSpeed(const String&) const;
  9173. float GetAttributeAnimationTime(const String&) const;
  9174. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9175. Variant GetAttributeDefault(const String&) const;
  9176. bool GetInterceptNetworkUpdate(const String&) const;
  9177. bool HasSubscribedToEvent(Object, const String&);
  9178. bool HasSubscribedToEvent(const String&);
  9179. bool IsInView(Camera) const;
  9180. bool Load(File, bool = false);
  9181. bool Load(VectorBuffer&, bool = false);
  9182. bool LoadJSON(const JSONValue&, bool = false);
  9183. bool LoadXML(const XMLElement&, bool = false);
  9184. void MarkNetworkUpdate() const;
  9185. void Remove();
  9186. void RemoveAttributeAnimation(const String&);
  9187. void RemoveInstanceDefault();
  9188. void RemoveObjectAnimation();
  9189. void ResetToDefault();
  9190. bool Save(File) const;
  9191. bool Save(VectorBuffer&) const;
  9192. bool SaveJSON(JSONValue&) const;
  9193. bool SaveXML(XMLElement&) const;
  9194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9195. void SetAnimationTime(float);
  9196. bool SetAttribute(const String&, const Variant&);
  9197. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9198. void SetAttributeAnimationSpeed(const String&, float);
  9199. void SetAttributeAnimationTime(const String&, float);
  9200. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9201. void SetInterceptNetworkUpdate(const String&, bool);
  9202. // Properties:
  9203. bool animationEnabled;
  9204. /* readonly */
  9205. Array<Variant> attributeDefaults;
  9206. /* readonly */
  9207. Array<AttributeInfo> attributeInfos;
  9208. Array<Variant> attributes;
  9209. /* readonly */
  9210. BoundingBox boundingBox;
  9211. bool castShadows;
  9212. /* readonly */
  9213. String category;
  9214. float drawDistance;
  9215. bool enabled;
  9216. /* readonly */
  9217. bool enabledEffective;
  9218. /* readonly */
  9219. uint id;
  9220. /* readonly */
  9221. bool inView;
  9222. uint lightMask;
  9223. float lodBias;
  9224. /* writeonly */
  9225. Material material;
  9226. Array<Material> materials;
  9227. uint maxLights;
  9228. Model model;
  9229. /* readonly */
  9230. Node node;
  9231. /* readonly */
  9232. uint numAttributes;
  9233. /* readonly */
  9234. uint numGeometries;
  9235. ObjectAnimation objectAnimation;
  9236. bool occludee;
  9237. bool occluder;
  9238. /* readonly */
  9239. int refs;
  9240. float shadowDistance;
  9241. uint shadowMask;
  9242. bool temporary;
  9243. /* readonly */
  9244. StringHash type;
  9245. /* readonly */
  9246. String typeName;
  9247. uint viewMask;
  9248. /* readonly */
  9249. int weakRefs;
  9250. /* readonly */
  9251. BoundingBox worldBoundingBox;
  9252. /* readonly */
  9253. Zone zone;
  9254. uint zoneMask;
  9255. };
  9256. class Slider
  9257. {
  9258. // Methods:
  9259. void AddChild(UIElement);
  9260. void ApplyAttributes();
  9261. void BringToFront();
  9262. void ChangeValue(float);
  9263. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9264. void DisableLayoutUpdate();
  9265. IntVector2 ElementToScreen(const IntVector2&);
  9266. void EnableLayoutUpdate();
  9267. uint FindChild(UIElement) const;
  9268. Variant GetAttribute(const String&) const;
  9269. ValueAnimation GetAttributeAnimation(const String&) const;
  9270. float GetAttributeAnimationSpeed(const String&) const;
  9271. float GetAttributeAnimationTime(const String&) const;
  9272. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9273. Variant GetAttributeDefault(const String&) const;
  9274. UIElement GetChild(const String&, bool = false) const;
  9275. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9276. Array<UIElement> GetChildren(bool = false) const;
  9277. UIElement GetElementEventSender() const;
  9278. bool GetInterceptNetworkUpdate(const String&) const;
  9279. uint GetNumChildren(bool) const;
  9280. bool HasSubscribedToEvent(Object, const String&);
  9281. bool HasSubscribedToEvent(const String&);
  9282. void InsertChild(uint, UIElement);
  9283. bool IsInside(IntVector2, bool);
  9284. bool IsInsideCombined(IntVector2, bool);
  9285. bool Load(File, bool = false);
  9286. bool Load(VectorBuffer&, bool = false);
  9287. bool LoadChildXML(XMLFile, XMLFile = null);
  9288. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9289. bool LoadJSON(const JSONValue&, bool = false);
  9290. bool LoadXML(File);
  9291. bool LoadXML(VectorBuffer&);
  9292. bool LoadXML(XMLFile, XMLFile);
  9293. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9294. bool LoadXML(const XMLElement&, bool = false);
  9295. void MarkNetworkUpdate() const;
  9296. void Remove();
  9297. void RemoveAllChildren();
  9298. void RemoveAttributeAnimation(const String&);
  9299. void RemoveChild(UIElement, uint = 0);
  9300. void RemoveChild(uint);
  9301. void RemoveInstanceDefault();
  9302. void RemoveObjectAnimation();
  9303. void ResetDeepEnabled();
  9304. void ResetToDefault();
  9305. bool Save(File) const;
  9306. bool Save(VectorBuffer&) const;
  9307. bool SaveJSON(JSONValue&) const;
  9308. bool SaveXML(File, const String& = "\t");
  9309. bool SaveXML(VectorBuffer&, const String& = "\t");
  9310. bool SaveXML(XMLElement&) const;
  9311. IntVector2 ScreenToElement(const IntVector2&);
  9312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9313. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9314. void SetAnimationTime(float);
  9315. bool SetAttribute(const String&, const Variant&);
  9316. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9317. void SetAttributeAnimationSpeed(const String&, float);
  9318. void SetAttributeAnimationTime(const String&, float);
  9319. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9320. void SetDeepEnabled(bool);
  9321. void SetEnabledRecursive(bool);
  9322. void SetFixedHeight(int);
  9323. void SetFixedSize(int, int);
  9324. void SetFixedWidth(int);
  9325. void SetFullImageRect();
  9326. void SetHoverOffset(int, int);
  9327. void SetInterceptNetworkUpdate(const String&, bool);
  9328. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9329. void SetMaxSize(int, int);
  9330. void SetMinSize(int, int);
  9331. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9332. void SetPosition(int, int);
  9333. void SetSize(int, int);
  9334. bool SetStyle(const String&, XMLFile = null);
  9335. bool SetStyle(const XMLElement&);
  9336. bool SetStyleAuto(XMLFile = null);
  9337. void UpdateLayout();
  9338. const Variant& GetVar(const StringHash&);
  9339. // Properties:
  9340. bool animationEnabled;
  9341. /* readonly */
  9342. Array<Variant> attributeDefaults;
  9343. /* readonly */
  9344. Array<AttributeInfo> attributeInfos;
  9345. Array<Variant> attributes;
  9346. BlendMode blendMode;
  9347. IntRect border;
  9348. bool bringToBack;
  9349. bool bringToFront;
  9350. /* readonly */
  9351. String category;
  9352. /* readonly */
  9353. IntVector2 childOffset;
  9354. /* readonly */
  9355. Array<UIElement> children;
  9356. IntRect clipBorder;
  9357. bool clipChildren;
  9358. /* writeonly */
  9359. Color color;
  9360. /* readonly */
  9361. bool colorGradient;
  9362. Array<Color> colors;
  9363. /* readonly */
  9364. IntRect combinedScreenRect;
  9365. XMLFile defaultStyle;
  9366. /* readonly */
  9367. float derivedOpacity;
  9368. /* readonly */
  9369. uint dragButtonCombo;
  9370. /* readonly */
  9371. int dragButtonCount;
  9372. uint dragDropMode;
  9373. bool editable;
  9374. bool elementEventSender;
  9375. bool enabled;
  9376. /* readonly */
  9377. bool enabledSelf;
  9378. /* readonly */
  9379. bool fixedHeight;
  9380. /* readonly */
  9381. bool fixedSize;
  9382. /* readonly */
  9383. bool fixedWidth;
  9384. bool focus;
  9385. FocusMode focusMode;
  9386. int height;
  9387. HorizontalAlignment horizontalAlignment;
  9388. IntVector2 hoverOffset;
  9389. /* readonly */
  9390. bool hovering;
  9391. IntRect imageBorder;
  9392. IntRect imageRect;
  9393. int indent;
  9394. int indentSpacing;
  9395. /* readonly */
  9396. int indentWidth;
  9397. bool internal;
  9398. /* readonly */
  9399. BorderImage knob;
  9400. IntRect layoutBorder;
  9401. Vector2 layoutFlexScale;
  9402. LayoutMode layoutMode;
  9403. int layoutSpacing;
  9404. int maxHeight;
  9405. IntVector2 maxSize;
  9406. int maxWidth;
  9407. int minHeight;
  9408. IntVector2 minSize;
  9409. int minWidth;
  9410. String name;
  9411. /* readonly */
  9412. uint numAllChildren;
  9413. /* readonly */
  9414. uint numAttributes;
  9415. /* readonly */
  9416. uint numChildren;
  9417. ObjectAnimation objectAnimation;
  9418. float opacity;
  9419. Orientation orientation;
  9420. UIElement parent;
  9421. IntVector2 position;
  9422. int priority;
  9423. float range;
  9424. /* readonly */
  9425. int refs;
  9426. float repeatRate;
  9427. /* readonly */
  9428. UIElement root;
  9429. /* readonly */
  9430. IntVector2 screenPosition;
  9431. bool selected;
  9432. IntVector2 size;
  9433. bool sortChildren;
  9434. String style;
  9435. bool temporary;
  9436. Texture texture;
  9437. bool tiled;
  9438. TraversalMode traversalMode;
  9439. /* readonly */
  9440. StringHash type;
  9441. /* readonly */
  9442. String typeName;
  9443. bool useDerivedOpacity;
  9444. float value;
  9445. /* readonly */
  9446. VariantMap vars;
  9447. VerticalAlignment verticalAlignment;
  9448. bool visible;
  9449. /* readonly */
  9450. bool visibleEffective;
  9451. /* readonly */
  9452. int weakRefs;
  9453. int width;
  9454. };
  9455. class SmoothedTransform
  9456. {
  9457. // Methods:
  9458. void ApplyAttributes();
  9459. void DrawDebugGeometry(DebugRenderer, bool);
  9460. Variant GetAttribute(const String&) const;
  9461. ValueAnimation GetAttributeAnimation(const String&) const;
  9462. float GetAttributeAnimationSpeed(const String&) const;
  9463. float GetAttributeAnimationTime(const String&) const;
  9464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9465. Variant GetAttributeDefault(const String&) const;
  9466. bool GetInterceptNetworkUpdate(const String&) const;
  9467. bool HasSubscribedToEvent(Object, const String&);
  9468. bool HasSubscribedToEvent(const String&);
  9469. bool Load(File, bool = false);
  9470. bool Load(VectorBuffer&, bool = false);
  9471. bool LoadJSON(const JSONValue&, bool = false);
  9472. bool LoadXML(const XMLElement&, bool = false);
  9473. void MarkNetworkUpdate() const;
  9474. void Remove();
  9475. void RemoveAttributeAnimation(const String&);
  9476. void RemoveInstanceDefault();
  9477. void RemoveObjectAnimation();
  9478. void ResetToDefault();
  9479. bool Save(File) const;
  9480. bool Save(VectorBuffer&) const;
  9481. bool SaveJSON(JSONValue&) const;
  9482. bool SaveXML(XMLElement&) const;
  9483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9484. void SetAnimationTime(float);
  9485. bool SetAttribute(const String&, const Variant&);
  9486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9487. void SetAttributeAnimationSpeed(const String&, float);
  9488. void SetAttributeAnimationTime(const String&, float);
  9489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9490. void SetInterceptNetworkUpdate(const String&, bool);
  9491. void Update(float, float);
  9492. // Properties:
  9493. bool animationEnabled;
  9494. /* readonly */
  9495. Array<Variant> attributeDefaults;
  9496. /* readonly */
  9497. Array<AttributeInfo> attributeInfos;
  9498. Array<Variant> attributes;
  9499. /* readonly */
  9500. String category;
  9501. bool enabled;
  9502. /* readonly */
  9503. bool enabledEffective;
  9504. /* readonly */
  9505. uint id;
  9506. /* readonly */
  9507. bool inProgress;
  9508. /* readonly */
  9509. Node node;
  9510. /* readonly */
  9511. uint numAttributes;
  9512. ObjectAnimation objectAnimation;
  9513. /* readonly */
  9514. int refs;
  9515. Vector3 targetPosition;
  9516. Quaternion targetRotation;
  9517. Vector3 targetWorldPosition;
  9518. Quaternion targetWorldRotation;
  9519. bool temporary;
  9520. /* readonly */
  9521. StringHash type;
  9522. /* readonly */
  9523. String typeName;
  9524. /* readonly */
  9525. int weakRefs;
  9526. };
  9527. class Sound
  9528. {
  9529. // Methods:
  9530. bool HasSubscribedToEvent(Object, const String&);
  9531. bool HasSubscribedToEvent(const String&);
  9532. bool Load(File);
  9533. bool Load(VectorBuffer&);
  9534. bool Save(File) const;
  9535. bool Save(VectorBuffer&) const;
  9536. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9537. // Properties:
  9538. /* readonly */
  9539. String category;
  9540. /* readonly */
  9541. bool compressed;
  9542. /* readonly */
  9543. float frequency;
  9544. /* readonly */
  9545. float length;
  9546. bool looped;
  9547. /* readonly */
  9548. uint memoryUse;
  9549. String name;
  9550. /* readonly */
  9551. int refs;
  9552. /* readonly */
  9553. uint sampleSize;
  9554. /* readonly */
  9555. bool sixteenBit;
  9556. /* readonly */
  9557. bool stereo;
  9558. /* readonly */
  9559. StringHash type;
  9560. /* readonly */
  9561. String typeName;
  9562. /* readonly */
  9563. uint useTimer;
  9564. /* readonly */
  9565. int weakRefs;
  9566. };
  9567. class SoundListener
  9568. {
  9569. // Methods:
  9570. void ApplyAttributes();
  9571. void DrawDebugGeometry(DebugRenderer, bool);
  9572. Variant GetAttribute(const String&) const;
  9573. ValueAnimation GetAttributeAnimation(const String&) const;
  9574. float GetAttributeAnimationSpeed(const String&) const;
  9575. float GetAttributeAnimationTime(const String&) const;
  9576. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9577. Variant GetAttributeDefault(const String&) const;
  9578. bool GetInterceptNetworkUpdate(const String&) const;
  9579. bool HasSubscribedToEvent(Object, const String&);
  9580. bool HasSubscribedToEvent(const String&);
  9581. bool Load(File, bool = false);
  9582. bool Load(VectorBuffer&, bool = false);
  9583. bool LoadJSON(const JSONValue&, bool = false);
  9584. bool LoadXML(const XMLElement&, bool = false);
  9585. void MarkNetworkUpdate() const;
  9586. void Remove();
  9587. void RemoveAttributeAnimation(const String&);
  9588. void RemoveInstanceDefault();
  9589. void RemoveObjectAnimation();
  9590. void ResetToDefault();
  9591. bool Save(File) const;
  9592. bool Save(VectorBuffer&) const;
  9593. bool SaveJSON(JSONValue&) const;
  9594. bool SaveXML(XMLElement&) const;
  9595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9596. void SetAnimationTime(float);
  9597. bool SetAttribute(const String&, const Variant&);
  9598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9599. void SetAttributeAnimationSpeed(const String&, float);
  9600. void SetAttributeAnimationTime(const String&, float);
  9601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9602. void SetInterceptNetworkUpdate(const String&, bool);
  9603. // Properties:
  9604. bool animationEnabled;
  9605. /* readonly */
  9606. Array<Variant> attributeDefaults;
  9607. /* readonly */
  9608. Array<AttributeInfo> attributeInfos;
  9609. Array<Variant> attributes;
  9610. /* readonly */
  9611. String category;
  9612. bool enabled;
  9613. /* readonly */
  9614. bool enabledEffective;
  9615. /* readonly */
  9616. uint id;
  9617. /* readonly */
  9618. Node node;
  9619. /* readonly */
  9620. uint numAttributes;
  9621. ObjectAnimation objectAnimation;
  9622. /* readonly */
  9623. int refs;
  9624. bool temporary;
  9625. /* readonly */
  9626. StringHash type;
  9627. /* readonly */
  9628. String typeName;
  9629. /* readonly */
  9630. int weakRefs;
  9631. };
  9632. class SoundSource
  9633. {
  9634. // Methods:
  9635. void ApplyAttributes();
  9636. void DrawDebugGeometry(DebugRenderer, bool);
  9637. Variant GetAttribute(const String&) const;
  9638. ValueAnimation GetAttributeAnimation(const String&) const;
  9639. float GetAttributeAnimationSpeed(const String&) const;
  9640. float GetAttributeAnimationTime(const String&) const;
  9641. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9642. Variant GetAttributeDefault(const String&) const;
  9643. bool GetInterceptNetworkUpdate(const String&) const;
  9644. bool HasSubscribedToEvent(Object, const String&);
  9645. bool HasSubscribedToEvent(const String&);
  9646. bool Load(File, bool = false);
  9647. bool Load(VectorBuffer&, bool = false);
  9648. bool LoadJSON(const JSONValue&, bool = false);
  9649. bool LoadXML(const XMLElement&, bool = false);
  9650. void MarkNetworkUpdate() const;
  9651. void Play(Sound);
  9652. void Play(Sound, float);
  9653. void Play(Sound, float, float);
  9654. void Play(Sound, float, float, float);
  9655. void Remove();
  9656. void RemoveAttributeAnimation(const String&);
  9657. void RemoveInstanceDefault();
  9658. void RemoveObjectAnimation();
  9659. void ResetToDefault();
  9660. bool Save(File) const;
  9661. bool Save(VectorBuffer&) const;
  9662. bool SaveJSON(JSONValue&) const;
  9663. bool SaveXML(XMLElement&) const;
  9664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9665. void SetAnimationTime(float);
  9666. bool SetAttribute(const String&, const Variant&);
  9667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9668. void SetAttributeAnimationSpeed(const String&, float);
  9669. void SetAttributeAnimationTime(const String&, float);
  9670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9671. void SetInterceptNetworkUpdate(const String&, bool);
  9672. void Stop();
  9673. // Properties:
  9674. bool animationEnabled;
  9675. /* readonly */
  9676. float attenuation;
  9677. /* readonly */
  9678. Array<Variant> attributeDefaults;
  9679. /* readonly */
  9680. Array<AttributeInfo> attributeInfos;
  9681. Array<Variant> attributes;
  9682. bool autoRemove;
  9683. /* readonly */
  9684. String category;
  9685. bool enabled;
  9686. /* readonly */
  9687. bool enabledEffective;
  9688. float frequency;
  9689. float gain;
  9690. /* readonly */
  9691. uint id;
  9692. /* readonly */
  9693. Node node;
  9694. /* readonly */
  9695. uint numAttributes;
  9696. ObjectAnimation objectAnimation;
  9697. float panning;
  9698. /* readonly */
  9699. bool playing;
  9700. /* readonly */
  9701. int refs;
  9702. /* readonly */
  9703. Sound sound;
  9704. String soundType;
  9705. bool temporary;
  9706. /* readonly */
  9707. float timePosition;
  9708. /* readonly */
  9709. StringHash type;
  9710. /* readonly */
  9711. String typeName;
  9712. /* readonly */
  9713. int weakRefs;
  9714. };
  9715. class SoundSource3D
  9716. {
  9717. // Methods:
  9718. void ApplyAttributes();
  9719. void DrawDebugGeometry(DebugRenderer, bool);
  9720. Variant GetAttribute(const String&) const;
  9721. ValueAnimation GetAttributeAnimation(const String&) const;
  9722. float GetAttributeAnimationSpeed(const String&) const;
  9723. float GetAttributeAnimationTime(const String&) const;
  9724. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9725. Variant GetAttributeDefault(const String&) const;
  9726. bool GetInterceptNetworkUpdate(const String&) const;
  9727. bool HasSubscribedToEvent(Object, const String&);
  9728. bool HasSubscribedToEvent(const String&);
  9729. bool Load(File, bool = false);
  9730. bool Load(VectorBuffer&, bool = false);
  9731. bool LoadJSON(const JSONValue&, bool = false);
  9732. bool LoadXML(const XMLElement&, bool = false);
  9733. void MarkNetworkUpdate() const;
  9734. void Play(Sound);
  9735. void Play(Sound, float);
  9736. void Play(Sound, float, float);
  9737. void Play(Sound, float, float, float);
  9738. void Remove();
  9739. void RemoveAttributeAnimation(const String&);
  9740. void RemoveInstanceDefault();
  9741. void RemoveObjectAnimation();
  9742. void ResetToDefault();
  9743. bool Save(File) const;
  9744. bool Save(VectorBuffer&) const;
  9745. bool SaveJSON(JSONValue&) const;
  9746. bool SaveXML(XMLElement&) const;
  9747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9748. void SetAngleAttenuation(float, float);
  9749. void SetAnimationTime(float);
  9750. bool SetAttribute(const String&, const Variant&);
  9751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9752. void SetAttributeAnimationSpeed(const String&, float);
  9753. void SetAttributeAnimationTime(const String&, float);
  9754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9755. void SetDistanceAttenuation(float, float, float);
  9756. void SetInterceptNetworkUpdate(const String&, bool);
  9757. void Stop();
  9758. // Properties:
  9759. bool animationEnabled;
  9760. /* readonly */
  9761. float attenuation;
  9762. /* readonly */
  9763. Array<Variant> attributeDefaults;
  9764. /* readonly */
  9765. Array<AttributeInfo> attributeInfos;
  9766. Array<Variant> attributes;
  9767. bool autoRemove;
  9768. /* readonly */
  9769. String category;
  9770. bool enabled;
  9771. /* readonly */
  9772. bool enabledEffective;
  9773. float farDistance;
  9774. float frequency;
  9775. float gain;
  9776. /* readonly */
  9777. uint id;
  9778. float innerAngle;
  9779. float nearDistance;
  9780. /* readonly */
  9781. Node node;
  9782. /* readonly */
  9783. uint numAttributes;
  9784. ObjectAnimation objectAnimation;
  9785. float outerAngle;
  9786. float panning;
  9787. /* readonly */
  9788. bool playing;
  9789. /* readonly */
  9790. int refs;
  9791. float rolloffFactor;
  9792. /* readonly */
  9793. Sound sound;
  9794. String soundType;
  9795. bool temporary;
  9796. /* readonly */
  9797. float timePosition;
  9798. /* readonly */
  9799. StringHash type;
  9800. /* readonly */
  9801. String typeName;
  9802. /* readonly */
  9803. int weakRefs;
  9804. };
  9805. class Sphere
  9806. {
  9807. // Methods:
  9808. void Clear();
  9809. void Define(const BoundingBox&);
  9810. void Define(const Frustum&);
  9811. void Define(const Polyhedron&);
  9812. void Define(const Sphere&);
  9813. void Define(const Vector3&, float);
  9814. bool Defined() const;
  9815. float Distance(const Vector3&) const;
  9816. Intersection IsInside(const BoundingBox&) const;
  9817. Intersection IsInside(const Sphere&) const;
  9818. Intersection IsInside(const Vector3&) const;
  9819. Intersection IsInsideFast(const BoundingBox&) const;
  9820. Intersection IsInsideFast(const Sphere&) const;
  9821. void Merge(const BoundingBox&);
  9822. void Merge(const Frustum&);
  9823. void Merge(const Sphere&);
  9824. void Merge(const Vector3&);
  9825. // Properties:
  9826. Vector3 center;
  9827. float radius;
  9828. };
  9829. class Spline
  9830. {
  9831. // Methods:
  9832. void AddKnot(const Variant&);
  9833. void AddKnot(const Variant&, uint);
  9834. void Clear();
  9835. Variant GetPoint(float);
  9836. void RemoveKnot();
  9837. void RemoveKnot(uint);
  9838. // Properties:
  9839. InterpolationMode interpolationMode;
  9840. Array<Variant> knot;
  9841. Array<Variant> knots;
  9842. };
  9843. class SplinePath
  9844. {
  9845. // Methods:
  9846. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9847. void ApplyAttributes();
  9848. void ClearControlPoints();
  9849. void DrawDebugGeometry(DebugRenderer, bool);
  9850. Variant GetAttribute(const String&) const;
  9851. ValueAnimation GetAttributeAnimation(const String&) const;
  9852. float GetAttributeAnimationSpeed(const String&) const;
  9853. float GetAttributeAnimationTime(const String&) const;
  9854. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9855. Variant GetAttributeDefault(const String&) const;
  9856. bool GetInterceptNetworkUpdate(const String&) const;
  9857. Vector3 GetPoint(float) const;
  9858. Vector3 GetPosition() const;
  9859. bool HasSubscribedToEvent(Object, const String&);
  9860. bool HasSubscribedToEvent(const String&);
  9861. bool Load(File, bool = false);
  9862. bool Load(VectorBuffer&, bool = false);
  9863. bool LoadJSON(const JSONValue&, bool = false);
  9864. bool LoadXML(const XMLElement&, bool = false);
  9865. void MarkNetworkUpdate() const;
  9866. void Move(float);
  9867. void Remove();
  9868. void RemoveAttributeAnimation(const String&);
  9869. void RemoveControlPoint(Node);
  9870. void RemoveInstanceDefault();
  9871. void RemoveObjectAnimation();
  9872. void Reset();
  9873. void ResetToDefault();
  9874. bool Save(File) const;
  9875. bool Save(VectorBuffer&) const;
  9876. bool SaveJSON(JSONValue&) const;
  9877. bool SaveXML(XMLElement&) const;
  9878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9879. void SetAnimationTime(float);
  9880. bool SetAttribute(const String&, const Variant&);
  9881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9882. void SetAttributeAnimationSpeed(const String&, float);
  9883. void SetAttributeAnimationTime(const String&, float);
  9884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9885. void SetInterceptNetworkUpdate(const String&, bool);
  9886. void SetPosition(float);
  9887. // Properties:
  9888. bool animationEnabled;
  9889. /* readonly */
  9890. Array<Variant> attributeDefaults;
  9891. /* readonly */
  9892. Array<AttributeInfo> attributeInfos;
  9893. Array<Variant> attributes;
  9894. /* readonly */
  9895. String category;
  9896. Node controlledNode;
  9897. bool enabled;
  9898. /* readonly */
  9899. bool enabledEffective;
  9900. /* readonly */
  9901. uint id;
  9902. InterpolationMode interpolationMode;
  9903. /* readonly */
  9904. bool isFinished;
  9905. /* readonly */
  9906. float length;
  9907. /* readonly */
  9908. Node node;
  9909. /* readonly */
  9910. uint numAttributes;
  9911. ObjectAnimation objectAnimation;
  9912. /* readonly */
  9913. int refs;
  9914. float speed;
  9915. bool temporary;
  9916. /* readonly */
  9917. StringHash type;
  9918. /* readonly */
  9919. String typeName;
  9920. /* readonly */
  9921. int weakRefs;
  9922. };
  9923. class Sprite
  9924. {
  9925. // Methods:
  9926. void AddChild(UIElement);
  9927. void ApplyAttributes();
  9928. void BringToFront();
  9929. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9930. uint FindChild(UIElement) const;
  9931. Variant GetAttribute(const String&) const;
  9932. ValueAnimation GetAttributeAnimation(const String&) const;
  9933. float GetAttributeAnimationSpeed(const String&) const;
  9934. float GetAttributeAnimationTime(const String&) const;
  9935. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9936. Variant GetAttributeDefault(const String&) const;
  9937. UIElement GetChild(const String&, bool = false) const;
  9938. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9939. Array<UIElement> GetChildren(bool = false) const;
  9940. UIElement GetElementEventSender() const;
  9941. bool GetInterceptNetworkUpdate(const String&) const;
  9942. uint GetNumChildren(bool) const;
  9943. bool HasSubscribedToEvent(Object, const String&);
  9944. bool HasSubscribedToEvent(const String&);
  9945. void InsertChild(uint, UIElement);
  9946. bool Load(File, bool = false);
  9947. bool Load(VectorBuffer&, bool = false);
  9948. bool LoadChildXML(XMLFile, XMLFile = null);
  9949. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9950. bool LoadJSON(const JSONValue&, bool = false);
  9951. bool LoadXML(File);
  9952. bool LoadXML(VectorBuffer&);
  9953. bool LoadXML(XMLFile, XMLFile);
  9954. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9955. bool LoadXML(const XMLElement&, bool = false);
  9956. void MarkNetworkUpdate() const;
  9957. void Remove();
  9958. void RemoveAllChildren();
  9959. void RemoveAttributeAnimation(const String&);
  9960. void RemoveChild(UIElement, uint = 0);
  9961. void RemoveChild(uint);
  9962. void RemoveInstanceDefault();
  9963. void RemoveObjectAnimation();
  9964. void ResetToDefault();
  9965. bool Save(File) const;
  9966. bool Save(VectorBuffer&) const;
  9967. bool SaveJSON(JSONValue&) const;
  9968. bool SaveXML(File, const String& = "\t");
  9969. bool SaveXML(VectorBuffer&, const String& = "\t");
  9970. bool SaveXML(XMLElement&) const;
  9971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9972. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9973. void SetAnimationTime(float);
  9974. bool SetAttribute(const String&, const Variant&);
  9975. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9976. void SetAttributeAnimationSpeed(const String&, float);
  9977. void SetAttributeAnimationTime(const String&, float);
  9978. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9979. void SetFixedHeight(int);
  9980. void SetFixedSize(int, int);
  9981. void SetFixedWidth(int);
  9982. void SetFullImageRect();
  9983. void SetHotSpot(int, int);
  9984. void SetInterceptNetworkUpdate(const String&, bool);
  9985. void SetMaxSize(int, int);
  9986. void SetMinSize(int, int);
  9987. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9988. void SetPosition(float, float);
  9989. void SetScale(float);
  9990. void SetScale(float, float);
  9991. void SetSize(int, int);
  9992. bool SetStyle(const String&, XMLFile = null);
  9993. bool SetStyle(const XMLElement&);
  9994. bool SetStyleAuto(XMLFile = null);
  9995. const Variant& GetVar(const StringHash&);
  9996. // Properties:
  9997. bool animationEnabled;
  9998. /* readonly */
  9999. Array<Variant> attributeDefaults;
  10000. /* readonly */
  10001. Array<AttributeInfo> attributeInfos;
  10002. Array<Variant> attributes;
  10003. BlendMode blendMode;
  10004. bool bringToBack;
  10005. bool bringToFront;
  10006. /* readonly */
  10007. String category;
  10008. /* readonly */
  10009. Array<UIElement> children;
  10010. /* writeonly */
  10011. Color color;
  10012. /* readonly */
  10013. bool colorGradient;
  10014. Array<Color> colors;
  10015. XMLFile defaultStyle;
  10016. /* readonly */
  10017. float derivedOpacity;
  10018. /* readonly */
  10019. uint dragButtonCombo;
  10020. /* readonly */
  10021. int dragButtonCount;
  10022. bool elementEventSender;
  10023. int height;
  10024. HorizontalAlignment horizontalAlignment;
  10025. IntVector2 hotSpot;
  10026. IntRect imageRect;
  10027. String name;
  10028. /* readonly */
  10029. uint numAllChildren;
  10030. /* readonly */
  10031. uint numAttributes;
  10032. /* readonly */
  10033. uint numChildren;
  10034. ObjectAnimation objectAnimation;
  10035. float opacity;
  10036. UIElement parent;
  10037. Vector2 position;
  10038. int priority;
  10039. /* readonly */
  10040. int refs;
  10041. /* readonly */
  10042. UIElement root;
  10043. float rotation;
  10044. Vector2 scale;
  10045. IntVector2 size;
  10046. bool sortChildren;
  10047. String style;
  10048. bool temporary;
  10049. Texture texture;
  10050. /* readonly */
  10051. StringHash type;
  10052. /* readonly */
  10053. String typeName;
  10054. bool useDerivedOpacity;
  10055. /* readonly */
  10056. VariantMap vars;
  10057. VerticalAlignment verticalAlignment;
  10058. bool visible;
  10059. /* readonly */
  10060. bool visibleEffective;
  10061. /* readonly */
  10062. int weakRefs;
  10063. int width;
  10064. };
  10065. class Sprite2D
  10066. {
  10067. // Methods:
  10068. bool HasSubscribedToEvent(Object, const String&);
  10069. bool HasSubscribedToEvent(const String&);
  10070. bool Load(File);
  10071. bool Load(VectorBuffer&);
  10072. bool Save(File) const;
  10073. bool Save(VectorBuffer&) const;
  10074. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10075. // Properties:
  10076. /* readonly */
  10077. String category;
  10078. Vector2 hotSpot;
  10079. /* readonly */
  10080. uint memoryUse;
  10081. String name;
  10082. IntVector2 offset;
  10083. IntRect rectangle;
  10084. /* readonly */
  10085. int refs;
  10086. Texture2D texture;
  10087. /* readonly */
  10088. StringHash type;
  10089. /* readonly */
  10090. String typeName;
  10091. /* readonly */
  10092. uint useTimer;
  10093. /* readonly */
  10094. int weakRefs;
  10095. };
  10096. class SpriteSheet2D
  10097. {
  10098. // Methods:
  10099. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10100. Sprite2D GetSprite(const String&);
  10101. bool HasSubscribedToEvent(Object, const String&);
  10102. bool HasSubscribedToEvent(const String&);
  10103. bool Load(File);
  10104. bool Load(VectorBuffer&);
  10105. bool Save(File) const;
  10106. bool Save(VectorBuffer&) const;
  10107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10108. // Properties:
  10109. /* readonly */
  10110. String category;
  10111. /* readonly */
  10112. uint memoryUse;
  10113. String name;
  10114. /* readonly */
  10115. int refs;
  10116. /* readonly */
  10117. Texture2D texture;
  10118. /* readonly */
  10119. StringHash type;
  10120. /* readonly */
  10121. String typeName;
  10122. /* readonly */
  10123. uint useTimer;
  10124. /* readonly */
  10125. int weakRefs;
  10126. };
  10127. class StaticModel
  10128. {
  10129. // Methods:
  10130. void ApplyAttributes();
  10131. void ApplyMaterialList(const String& = String ( ));
  10132. void DrawDebugGeometry(DebugRenderer, bool);
  10133. Variant GetAttribute(const String&) const;
  10134. ValueAnimation GetAttributeAnimation(const String&) const;
  10135. float GetAttributeAnimationSpeed(const String&) const;
  10136. float GetAttributeAnimationTime(const String&) const;
  10137. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10138. Variant GetAttributeDefault(const String&) const;
  10139. bool GetInterceptNetworkUpdate(const String&) const;
  10140. bool HasSubscribedToEvent(Object, const String&);
  10141. bool HasSubscribedToEvent(const String&);
  10142. bool IsInView(Camera) const;
  10143. bool IsInside(const Vector3&) const;
  10144. bool IsInsideLocal(const Vector3&) const;
  10145. bool Load(File, bool = false);
  10146. bool Load(VectorBuffer&, bool = false);
  10147. bool LoadJSON(const JSONValue&, bool = false);
  10148. bool LoadXML(const XMLElement&, bool = false);
  10149. void MarkNetworkUpdate() const;
  10150. void Remove();
  10151. void RemoveAttributeAnimation(const String&);
  10152. void RemoveInstanceDefault();
  10153. void RemoveObjectAnimation();
  10154. void ResetToDefault();
  10155. bool Save(File) const;
  10156. bool Save(VectorBuffer&) const;
  10157. bool SaveJSON(JSONValue&) const;
  10158. bool SaveXML(XMLElement&) const;
  10159. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10160. void SetAnimationTime(float);
  10161. bool SetAttribute(const String&, const Variant&);
  10162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10163. void SetAttributeAnimationSpeed(const String&, float);
  10164. void SetAttributeAnimationTime(const String&, float);
  10165. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10166. void SetInterceptNetworkUpdate(const String&, bool);
  10167. // Properties:
  10168. bool animationEnabled;
  10169. /* readonly */
  10170. Array<Variant> attributeDefaults;
  10171. /* readonly */
  10172. Array<AttributeInfo> attributeInfos;
  10173. Array<Variant> attributes;
  10174. /* readonly */
  10175. BoundingBox boundingBox;
  10176. bool castShadows;
  10177. /* readonly */
  10178. String category;
  10179. float drawDistance;
  10180. bool enabled;
  10181. /* readonly */
  10182. bool enabledEffective;
  10183. /* readonly */
  10184. uint id;
  10185. /* readonly */
  10186. bool inView;
  10187. uint lightMask;
  10188. float lodBias;
  10189. /* writeonly */
  10190. Material material;
  10191. Array<Material> materials;
  10192. uint maxLights;
  10193. Model model;
  10194. /* readonly */
  10195. Node node;
  10196. /* readonly */
  10197. uint numAttributes;
  10198. /* readonly */
  10199. uint numGeometries;
  10200. ObjectAnimation objectAnimation;
  10201. bool occludee;
  10202. bool occluder;
  10203. uint occlusionLodLevel;
  10204. /* readonly */
  10205. int refs;
  10206. float shadowDistance;
  10207. uint shadowMask;
  10208. bool temporary;
  10209. /* readonly */
  10210. StringHash type;
  10211. /* readonly */
  10212. String typeName;
  10213. uint viewMask;
  10214. /* readonly */
  10215. int weakRefs;
  10216. /* readonly */
  10217. BoundingBox worldBoundingBox;
  10218. uint zoneMask;
  10219. };
  10220. class StaticModelGroup
  10221. {
  10222. // Methods:
  10223. void AddInstanceNode(Node);
  10224. void ApplyAttributes();
  10225. void ApplyMaterialList(const String& = String ( ));
  10226. void DrawDebugGeometry(DebugRenderer, bool);
  10227. Variant GetAttribute(const String&) const;
  10228. ValueAnimation GetAttributeAnimation(const String&) const;
  10229. float GetAttributeAnimationSpeed(const String&) const;
  10230. float GetAttributeAnimationTime(const String&) const;
  10231. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10232. Variant GetAttributeDefault(const String&) const;
  10233. bool GetInterceptNetworkUpdate(const String&) const;
  10234. bool HasSubscribedToEvent(Object, const String&);
  10235. bool HasSubscribedToEvent(const String&);
  10236. bool IsInView(Camera) const;
  10237. bool Load(File, bool = false);
  10238. bool Load(VectorBuffer&, bool = false);
  10239. bool LoadJSON(const JSONValue&, bool = false);
  10240. bool LoadXML(const XMLElement&, bool = false);
  10241. void MarkNetworkUpdate() const;
  10242. void Remove();
  10243. void RemoveAllInstanceNodes();
  10244. void RemoveAttributeAnimation(const String&);
  10245. void RemoveInstanceDefault();
  10246. void RemoveInstanceNode(Node);
  10247. void RemoveObjectAnimation();
  10248. void ResetToDefault();
  10249. bool Save(File) const;
  10250. bool Save(VectorBuffer&) const;
  10251. bool SaveJSON(JSONValue&) const;
  10252. bool SaveXML(XMLElement&) const;
  10253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10254. void SetAnimationTime(float);
  10255. bool SetAttribute(const String&, const Variant&);
  10256. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10257. void SetAttributeAnimationSpeed(const String&, float);
  10258. void SetAttributeAnimationTime(const String&, float);
  10259. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10260. void SetInterceptNetworkUpdate(const String&, bool);
  10261. // Properties:
  10262. bool animationEnabled;
  10263. /* readonly */
  10264. Array<Variant> attributeDefaults;
  10265. /* readonly */
  10266. Array<AttributeInfo> attributeInfos;
  10267. Array<Variant> attributes;
  10268. /* readonly */
  10269. BoundingBox boundingBox;
  10270. bool castShadows;
  10271. /* readonly */
  10272. String category;
  10273. float drawDistance;
  10274. bool enabled;
  10275. /* readonly */
  10276. bool enabledEffective;
  10277. /* readonly */
  10278. uint id;
  10279. /* readonly */
  10280. bool inView;
  10281. /* readonly */
  10282. Array<Node> instanceNodes;
  10283. uint lightMask;
  10284. float lodBias;
  10285. /* writeonly */
  10286. Material material;
  10287. Array<Material> materials;
  10288. uint maxLights;
  10289. Model model;
  10290. /* readonly */
  10291. Node node;
  10292. /* readonly */
  10293. uint numAttributes;
  10294. /* readonly */
  10295. uint numGeometries;
  10296. /* readonly */
  10297. uint numInstanceNodes;
  10298. ObjectAnimation objectAnimation;
  10299. bool occludee;
  10300. bool occluder;
  10301. uint occlusionLodLevel;
  10302. /* readonly */
  10303. int refs;
  10304. float shadowDistance;
  10305. uint shadowMask;
  10306. bool temporary;
  10307. /* readonly */
  10308. StringHash type;
  10309. /* readonly */
  10310. String typeName;
  10311. uint viewMask;
  10312. /* readonly */
  10313. int weakRefs;
  10314. /* readonly */
  10315. BoundingBox worldBoundingBox;
  10316. /* readonly */
  10317. Zone zone;
  10318. uint zoneMask;
  10319. };
  10320. class StaticSprite2D
  10321. {
  10322. // Methods:
  10323. void ApplyAttributes();
  10324. void DrawDebugGeometry(DebugRenderer, bool);
  10325. Variant GetAttribute(const String&) const;
  10326. ValueAnimation GetAttributeAnimation(const String&) const;
  10327. float GetAttributeAnimationSpeed(const String&) const;
  10328. float GetAttributeAnimationTime(const String&) const;
  10329. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10330. Variant GetAttributeDefault(const String&) const;
  10331. bool GetInterceptNetworkUpdate(const String&) const;
  10332. bool HasSubscribedToEvent(Object, const String&);
  10333. bool HasSubscribedToEvent(const String&);
  10334. bool IsInView(Camera) const;
  10335. bool Load(File, bool = false);
  10336. bool Load(VectorBuffer&, bool = false);
  10337. bool LoadJSON(const JSONValue&, bool = false);
  10338. bool LoadXML(const XMLElement&, bool = false);
  10339. void MarkNetworkUpdate() const;
  10340. void Remove();
  10341. void RemoveAttributeAnimation(const String&);
  10342. void RemoveInstanceDefault();
  10343. void RemoveObjectAnimation();
  10344. void ResetToDefault();
  10345. bool Save(File) const;
  10346. bool Save(VectorBuffer&) const;
  10347. bool SaveJSON(JSONValue&) const;
  10348. bool SaveXML(XMLElement&) const;
  10349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10350. void SetAnimationTime(float);
  10351. bool SetAttribute(const String&, const Variant&);
  10352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10353. void SetAttributeAnimationSpeed(const String&, float);
  10354. void SetAttributeAnimationTime(const String&, float);
  10355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10356. void SetFlip(bool, bool);
  10357. void SetInterceptNetworkUpdate(const String&, bool);
  10358. // Properties:
  10359. float alpha;
  10360. bool animationEnabled;
  10361. /* readonly */
  10362. Array<Variant> attributeDefaults;
  10363. /* readonly */
  10364. Array<AttributeInfo> attributeInfos;
  10365. Array<Variant> attributes;
  10366. BlendMode blendMode;
  10367. /* readonly */
  10368. BoundingBox boundingBox;
  10369. bool castShadows;
  10370. /* readonly */
  10371. String category;
  10372. Color color;
  10373. Material customMaterial;
  10374. float drawDistance;
  10375. bool enabled;
  10376. /* readonly */
  10377. bool enabledEffective;
  10378. bool flipX;
  10379. bool flipY;
  10380. Vector2 hotSpot;
  10381. /* readonly */
  10382. uint id;
  10383. /* readonly */
  10384. bool inView;
  10385. int layer;
  10386. uint lightMask;
  10387. float lodBias;
  10388. uint maxLights;
  10389. /* readonly */
  10390. Node node;
  10391. /* readonly */
  10392. uint numAttributes;
  10393. ObjectAnimation objectAnimation;
  10394. bool occludee;
  10395. bool occluder;
  10396. int orderInLayer;
  10397. /* readonly */
  10398. int refs;
  10399. float shadowDistance;
  10400. uint shadowMask;
  10401. Sprite2D sprite;
  10402. bool temporary;
  10403. /* readonly */
  10404. StringHash type;
  10405. /* readonly */
  10406. String typeName;
  10407. bool useHotSpot;
  10408. uint viewMask;
  10409. /* readonly */
  10410. int weakRefs;
  10411. /* readonly */
  10412. BoundingBox worldBoundingBox;
  10413. uint zoneMask;
  10414. };
  10415. class String
  10416. {
  10417. // Methods:
  10418. void AppendUTF8(uint);
  10419. uint AtUTF8(uint) const;
  10420. uint ByteOffsetUTF8(uint) const;
  10421. void Clear();
  10422. int Compare(const String&, bool = true) const;
  10423. bool Contains(const String&, bool = true) const;
  10424. bool Contains(uint8, bool = true) const;
  10425. bool EndsWith(const String&, bool = true) const;
  10426. uint Find(const String&, uint = 0, bool = true) const;
  10427. uint Find(uint8, uint = 0, bool = true) const;
  10428. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10429. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10430. void Join(Array<String>&, const String&);
  10431. uint NextUTF8Char(uint&) const;
  10432. void Replace(const String&, const String&, bool = true);
  10433. void Replace(uint8, uint8, bool = true);
  10434. void ReplaceUTF8(uint, uint);
  10435. String Replaced(const String&, const String&, bool = true) const;
  10436. String Replaced(uint8, uint8, bool = true) const;
  10437. void Resize(uint);
  10438. void SetUTF8FromLatin1(const String&);
  10439. Array<String> Split(uint8, bool = false) const;
  10440. bool StartsWith(const String&, bool = true) const;
  10441. String Substring(uint) const;
  10442. String Substring(uint, uint) const;
  10443. String SubstringUTF8(uint) const;
  10444. String SubstringUTF8(uint, uint) const;
  10445. bool ToBool() const;
  10446. Color ToColor() const;
  10447. double ToDouble() const;
  10448. float ToFloat() const;
  10449. int ToInt() const;
  10450. IntRect ToIntRect() const;
  10451. IntVector2 ToIntVector2() const;
  10452. String ToLower() const;
  10453. Matrix3 ToMatrix3() const;
  10454. Matrix3x4 ToMatrix3x4() const;
  10455. Matrix4 ToMatrix4() const;
  10456. Quaternion ToQuaternion() const;
  10457. uint ToUInt() const;
  10458. String ToUpper() const;
  10459. Vector2 ToVector2() const;
  10460. Vector3 ToVector3() const;
  10461. Vector4 ToVector4(bool = false) const;
  10462. Variant ToVectorVariant() const;
  10463. String Trimmed() const;
  10464. // Properties:
  10465. /* readonly */
  10466. bool empty;
  10467. /* readonly */
  10468. uint length;
  10469. /* readonly */
  10470. uint utf8Length;
  10471. };
  10472. class StringHash
  10473. {
  10474. // Methods:
  10475. String ToString() const;
  10476. // Properties:
  10477. /* readonly */
  10478. uint value;
  10479. };
  10480. class Technique
  10481. {
  10482. // Methods:
  10483. Pass CreatePass(const String&);
  10484. Pass GetPass(const String&);
  10485. Pass GetSupportedPass(const String&);
  10486. bool HasPass(const String&) const;
  10487. bool HasSubscribedToEvent(Object, const String&);
  10488. bool HasSubscribedToEvent(const String&);
  10489. bool Load(File);
  10490. bool Load(VectorBuffer&);
  10491. void RemovePass(const String&);
  10492. bool Save(File) const;
  10493. bool Save(VectorBuffer&) const;
  10494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10495. // Properties:
  10496. /* readonly */
  10497. String category;
  10498. bool desktop;
  10499. /* readonly */
  10500. uint memoryUse;
  10501. String name;
  10502. /* readonly */
  10503. uint numPasses;
  10504. /* readonly */
  10505. Array<String> passNames;
  10506. /* readonly */
  10507. Array<Pass> passes;
  10508. /* readonly */
  10509. int refs;
  10510. /* readonly */
  10511. bool supported;
  10512. /* readonly */
  10513. StringHash type;
  10514. /* readonly */
  10515. String typeName;
  10516. /* readonly */
  10517. uint useTimer;
  10518. /* readonly */
  10519. int weakRefs;
  10520. };
  10521. class TechniqueEntry
  10522. {
  10523. // Properties:
  10524. float lodDistance;
  10525. int qualityLevel;
  10526. Technique technique;
  10527. };
  10528. class Terrain
  10529. {
  10530. // Methods:
  10531. void ApplyAttributes();
  10532. void ApplyHeightMap();
  10533. void DrawDebugGeometry(DebugRenderer, bool);
  10534. Variant GetAttribute(const String&) const;
  10535. ValueAnimation GetAttributeAnimation(const String&) const;
  10536. float GetAttributeAnimationSpeed(const String&) const;
  10537. float GetAttributeAnimationTime(const String&) const;
  10538. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10539. Variant GetAttributeDefault(const String&) const;
  10540. float GetHeight(const Vector3&) const;
  10541. bool GetInterceptNetworkUpdate(const String&) const;
  10542. Vector3 GetNormal(const Vector3&) const;
  10543. TerrainPatch GetPatch(int, int) const;
  10544. bool HasSubscribedToEvent(Object, const String&);
  10545. bool HasSubscribedToEvent(const String&);
  10546. bool Load(File, bool = false);
  10547. bool Load(VectorBuffer&, bool = false);
  10548. bool LoadJSON(const JSONValue&, bool = false);
  10549. bool LoadXML(const XMLElement&, bool = false);
  10550. void MarkNetworkUpdate() const;
  10551. void Remove();
  10552. void RemoveAttributeAnimation(const String&);
  10553. void RemoveInstanceDefault();
  10554. void RemoveObjectAnimation();
  10555. void ResetToDefault();
  10556. bool Save(File) const;
  10557. bool Save(VectorBuffer&) const;
  10558. bool SaveJSON(JSONValue&) const;
  10559. bool SaveXML(XMLElement&) const;
  10560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10561. void SetAnimationTime(float);
  10562. bool SetAttribute(const String&, const Variant&);
  10563. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10564. void SetAttributeAnimationSpeed(const String&, float);
  10565. void SetAttributeAnimationTime(const String&, float);
  10566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10567. void SetInterceptNetworkUpdate(const String&, bool);
  10568. IntVector2 WorldToHeightMap(const Vector3&) const;
  10569. // Properties:
  10570. bool animationEnabled;
  10571. /* readonly */
  10572. Array<Variant> attributeDefaults;
  10573. /* readonly */
  10574. Array<AttributeInfo> attributeInfos;
  10575. Array<Variant> attributes;
  10576. bool castShadows;
  10577. /* readonly */
  10578. String category;
  10579. float drawDistance;
  10580. bool enabled;
  10581. /* readonly */
  10582. bool enabledEffective;
  10583. Image heightMap;
  10584. /* readonly */
  10585. uint id;
  10586. uint lightMask;
  10587. float lodBias;
  10588. Material material;
  10589. uint maxLights;
  10590. uint maxLodLevels;
  10591. /* readonly */
  10592. Node node;
  10593. /* readonly */
  10594. uint numAttributes;
  10595. /* readonly */
  10596. IntVector2 numPatches;
  10597. /* readonly */
  10598. IntVector2 numVertices;
  10599. ObjectAnimation objectAnimation;
  10600. bool occludee;
  10601. bool occluder;
  10602. uint occlusionLodLevel;
  10603. int patchSize;
  10604. /* readonly */
  10605. Array<TerrainPatch> patches;
  10606. /* readonly */
  10607. int refs;
  10608. float shadowDistance;
  10609. uint shadowMask;
  10610. bool smoothing;
  10611. Vector3 spacing;
  10612. bool temporary;
  10613. /* readonly */
  10614. StringHash type;
  10615. /* readonly */
  10616. String typeName;
  10617. uint viewMask;
  10618. /* readonly */
  10619. int weakRefs;
  10620. uint zoneMask;
  10621. };
  10622. class TerrainPatch
  10623. {
  10624. // Methods:
  10625. void ApplyAttributes();
  10626. void DrawDebugGeometry(DebugRenderer, bool);
  10627. Variant GetAttribute(const String&) const;
  10628. ValueAnimation GetAttributeAnimation(const String&) const;
  10629. float GetAttributeAnimationSpeed(const String&) const;
  10630. float GetAttributeAnimationTime(const String&) const;
  10631. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10632. Variant GetAttributeDefault(const String&) const;
  10633. bool GetInterceptNetworkUpdate(const String&) const;
  10634. bool HasSubscribedToEvent(Object, const String&);
  10635. bool HasSubscribedToEvent(const String&);
  10636. bool IsInView(Camera) const;
  10637. bool Load(File, bool = false);
  10638. bool Load(VectorBuffer&, bool = false);
  10639. bool LoadJSON(const JSONValue&, bool = false);
  10640. bool LoadXML(const XMLElement&, bool = false);
  10641. void MarkNetworkUpdate() const;
  10642. void Remove();
  10643. void RemoveAttributeAnimation(const String&);
  10644. void RemoveInstanceDefault();
  10645. void RemoveObjectAnimation();
  10646. void ResetToDefault();
  10647. bool Save(File) const;
  10648. bool Save(VectorBuffer&) const;
  10649. bool SaveJSON(JSONValue&) const;
  10650. bool SaveXML(XMLElement&) const;
  10651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10652. void SetAnimationTime(float);
  10653. bool SetAttribute(const String&, const Variant&);
  10654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10655. void SetAttributeAnimationSpeed(const String&, float);
  10656. void SetAttributeAnimationTime(const String&, float);
  10657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10658. void SetInterceptNetworkUpdate(const String&, bool);
  10659. // Properties:
  10660. bool animationEnabled;
  10661. /* readonly */
  10662. Array<Variant> attributeDefaults;
  10663. /* readonly */
  10664. Array<AttributeInfo> attributeInfos;
  10665. Array<Variant> attributes;
  10666. /* readonly */
  10667. BoundingBox boundingBox;
  10668. bool castShadows;
  10669. /* readonly */
  10670. String category;
  10671. float drawDistance;
  10672. bool enabled;
  10673. /* readonly */
  10674. bool enabledEffective;
  10675. /* readonly */
  10676. uint id;
  10677. /* readonly */
  10678. bool inView;
  10679. uint lightMask;
  10680. float lodBias;
  10681. uint maxLights;
  10682. /* readonly */
  10683. Node node;
  10684. /* readonly */
  10685. uint numAttributes;
  10686. ObjectAnimation objectAnimation;
  10687. bool occludee;
  10688. bool occluder;
  10689. /* readonly */
  10690. int refs;
  10691. float shadowDistance;
  10692. uint shadowMask;
  10693. bool temporary;
  10694. /* readonly */
  10695. StringHash type;
  10696. /* readonly */
  10697. String typeName;
  10698. uint viewMask;
  10699. /* readonly */
  10700. int weakRefs;
  10701. /* readonly */
  10702. BoundingBox worldBoundingBox;
  10703. uint zoneMask;
  10704. };
  10705. class Text
  10706. {
  10707. // Methods:
  10708. void AddChild(UIElement);
  10709. void ApplyAttributes();
  10710. void BringToFront();
  10711. void ClearSelection();
  10712. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10713. void DisableLayoutUpdate();
  10714. IntVector2 ElementToScreen(const IntVector2&);
  10715. void EnableLayoutUpdate();
  10716. uint FindChild(UIElement) const;
  10717. Variant GetAttribute(const String&) const;
  10718. ValueAnimation GetAttributeAnimation(const String&) const;
  10719. float GetAttributeAnimationSpeed(const String&) const;
  10720. float GetAttributeAnimationTime(const String&) const;
  10721. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10722. Variant GetAttributeDefault(const String&) const;
  10723. UIElement GetChild(const String&, bool = false) const;
  10724. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10725. Array<UIElement> GetChildren(bool = false) const;
  10726. UIElement GetElementEventSender() const;
  10727. bool GetInterceptNetworkUpdate(const String&) const;
  10728. uint GetNumChildren(bool) const;
  10729. bool HasSubscribedToEvent(Object, const String&);
  10730. bool HasSubscribedToEvent(const String&);
  10731. void InsertChild(uint, UIElement);
  10732. bool IsInside(IntVector2, bool);
  10733. bool IsInsideCombined(IntVector2, bool);
  10734. bool Load(File, bool = false);
  10735. bool Load(VectorBuffer&, bool = false);
  10736. bool LoadChildXML(XMLFile, XMLFile = null);
  10737. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10738. bool LoadJSON(const JSONValue&, bool = false);
  10739. bool LoadXML(File);
  10740. bool LoadXML(VectorBuffer&);
  10741. bool LoadXML(XMLFile, XMLFile);
  10742. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10743. bool LoadXML(const XMLElement&, bool = false);
  10744. void MarkNetworkUpdate() const;
  10745. void Remove();
  10746. void RemoveAllChildren();
  10747. void RemoveAttributeAnimation(const String&);
  10748. void RemoveChild(UIElement, uint = 0);
  10749. void RemoveChild(uint);
  10750. void RemoveInstanceDefault();
  10751. void RemoveObjectAnimation();
  10752. void ResetDeepEnabled();
  10753. void ResetToDefault();
  10754. bool Save(File) const;
  10755. bool Save(VectorBuffer&) const;
  10756. bool SaveJSON(JSONValue&) const;
  10757. bool SaveXML(File, const String& = "\t");
  10758. bool SaveXML(VectorBuffer&, const String& = "\t");
  10759. bool SaveXML(XMLElement&) const;
  10760. IntVector2 ScreenToElement(const IntVector2&);
  10761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10762. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10763. void SetAnimationTime(float);
  10764. bool SetAttribute(const String&, const Variant&);
  10765. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10766. void SetAttributeAnimationSpeed(const String&, float);
  10767. void SetAttributeAnimationTime(const String&, float);
  10768. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10769. void SetDeepEnabled(bool);
  10770. void SetEnabledRecursive(bool);
  10771. void SetFixedHeight(int);
  10772. void SetFixedSize(int, int);
  10773. void SetFixedWidth(int);
  10774. bool SetFont(Font, int);
  10775. bool SetFont(const String&, int);
  10776. void SetInterceptNetworkUpdate(const String&, bool);
  10777. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10778. void SetMaxSize(int, int);
  10779. void SetMinSize(int, int);
  10780. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10781. void SetPosition(int, int);
  10782. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10783. void SetSize(int, int);
  10784. bool SetStyle(const String&, XMLFile = null);
  10785. bool SetStyle(const XMLElement&);
  10786. bool SetStyleAuto(XMLFile = null);
  10787. void UpdateLayout();
  10788. const Variant& GetVar(const StringHash&);
  10789. // Properties:
  10790. bool animationEnabled;
  10791. /* readonly */
  10792. Array<Variant> attributeDefaults;
  10793. /* readonly */
  10794. Array<AttributeInfo> attributeInfos;
  10795. Array<Variant> attributes;
  10796. bool autoLocalizable;
  10797. bool bringToBack;
  10798. bool bringToFront;
  10799. /* readonly */
  10800. String category;
  10801. /* readonly */
  10802. Array<IntVector2> charPositions;
  10803. /* readonly */
  10804. Array<IntVector2> charSizes;
  10805. /* readonly */
  10806. IntVector2 childOffset;
  10807. /* readonly */
  10808. Array<UIElement> children;
  10809. IntRect clipBorder;
  10810. bool clipChildren;
  10811. /* writeonly */
  10812. Color color;
  10813. /* readonly */
  10814. bool colorGradient;
  10815. Array<Color> colors;
  10816. /* readonly */
  10817. IntRect combinedScreenRect;
  10818. XMLFile defaultStyle;
  10819. /* readonly */
  10820. float derivedOpacity;
  10821. /* readonly */
  10822. uint dragButtonCombo;
  10823. /* readonly */
  10824. int dragButtonCount;
  10825. uint dragDropMode;
  10826. bool editable;
  10827. Color effectColor;
  10828. bool elementEventSender;
  10829. bool enabled;
  10830. /* readonly */
  10831. bool enabledSelf;
  10832. /* readonly */
  10833. bool fixedHeight;
  10834. /* readonly */
  10835. bool fixedSize;
  10836. /* readonly */
  10837. bool fixedWidth;
  10838. bool focus;
  10839. FocusMode focusMode;
  10840. /* readonly */
  10841. Font font;
  10842. /* readonly */
  10843. int fontSize;
  10844. int height;
  10845. HorizontalAlignment horizontalAlignment;
  10846. Color hoverColor;
  10847. /* readonly */
  10848. bool hovering;
  10849. int indent;
  10850. int indentSpacing;
  10851. /* readonly */
  10852. int indentWidth;
  10853. bool internal;
  10854. IntRect layoutBorder;
  10855. Vector2 layoutFlexScale;
  10856. LayoutMode layoutMode;
  10857. int layoutSpacing;
  10858. int maxHeight;
  10859. IntVector2 maxSize;
  10860. int maxWidth;
  10861. int minHeight;
  10862. IntVector2 minSize;
  10863. int minWidth;
  10864. String name;
  10865. /* readonly */
  10866. uint numAllChildren;
  10867. /* readonly */
  10868. uint numAttributes;
  10869. /* readonly */
  10870. uint numChars;
  10871. /* readonly */
  10872. uint numChildren;
  10873. /* readonly */
  10874. uint numRows;
  10875. ObjectAnimation objectAnimation;
  10876. float opacity;
  10877. UIElement parent;
  10878. IntVector2 position;
  10879. int priority;
  10880. /* readonly */
  10881. int refs;
  10882. /* readonly */
  10883. UIElement root;
  10884. /* readonly */
  10885. int rowHeight;
  10886. float rowSpacing;
  10887. /* readonly */
  10888. Array<int> rowWidths;
  10889. /* readonly */
  10890. IntVector2 screenPosition;
  10891. bool selected;
  10892. Color selectionColor;
  10893. /* readonly */
  10894. uint selectionLength;
  10895. /* readonly */
  10896. uint selectionStart;
  10897. IntVector2 size;
  10898. bool sortChildren;
  10899. String style;
  10900. bool temporary;
  10901. String text;
  10902. HorizontalAlignment textAlignment;
  10903. TextEffect textEffect;
  10904. TraversalMode traversalMode;
  10905. /* readonly */
  10906. StringHash type;
  10907. /* readonly */
  10908. String typeName;
  10909. bool useDerivedOpacity;
  10910. /* readonly */
  10911. VariantMap vars;
  10912. VerticalAlignment verticalAlignment;
  10913. bool visible;
  10914. /* readonly */
  10915. bool visibleEffective;
  10916. /* readonly */
  10917. int weakRefs;
  10918. int width;
  10919. bool wordwrap;
  10920. };
  10921. class Text3D
  10922. {
  10923. // Methods:
  10924. void ApplyAttributes();
  10925. void DrawDebugGeometry(DebugRenderer, bool);
  10926. Variant GetAttribute(const String&) const;
  10927. ValueAnimation GetAttributeAnimation(const String&) const;
  10928. float GetAttributeAnimationSpeed(const String&) const;
  10929. float GetAttributeAnimationTime(const String&) const;
  10930. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10931. Variant GetAttributeDefault(const String&) const;
  10932. bool GetInterceptNetworkUpdate(const String&) const;
  10933. bool HasSubscribedToEvent(Object, const String&);
  10934. bool HasSubscribedToEvent(const String&);
  10935. bool IsInView(Camera) const;
  10936. bool Load(File, bool = false);
  10937. bool Load(VectorBuffer&, bool = false);
  10938. bool LoadJSON(const JSONValue&, bool = false);
  10939. bool LoadXML(const XMLElement&, bool = false);
  10940. void MarkNetworkUpdate() const;
  10941. void Remove();
  10942. void RemoveAttributeAnimation(const String&);
  10943. void RemoveInstanceDefault();
  10944. void RemoveObjectAnimation();
  10945. void ResetToDefault();
  10946. bool Save(File) const;
  10947. bool Save(VectorBuffer&) const;
  10948. bool SaveJSON(JSONValue&) const;
  10949. bool SaveXML(XMLElement&) const;
  10950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10951. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10952. void SetAnimationTime(float);
  10953. bool SetAttribute(const String&, const Variant&);
  10954. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10955. void SetAttributeAnimationSpeed(const String&, float);
  10956. void SetAttributeAnimationTime(const String&, float);
  10957. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10958. bool SetFont(Font, int);
  10959. bool SetFont(const String&, int);
  10960. void SetInterceptNetworkUpdate(const String&, bool);
  10961. // Properties:
  10962. bool animationEnabled;
  10963. /* readonly */
  10964. Array<Variant> attributeDefaults;
  10965. /* readonly */
  10966. Array<AttributeInfo> attributeInfos;
  10967. Array<Variant> attributes;
  10968. /* readonly */
  10969. BoundingBox boundingBox;
  10970. bool castShadows;
  10971. /* readonly */
  10972. String category;
  10973. /* readonly */
  10974. Array<IntVector2> charPositions;
  10975. /* readonly */
  10976. Array<IntVector2> charSizes;
  10977. /* writeonly */
  10978. Color color;
  10979. Array<Color> colors;
  10980. float drawDistance;
  10981. Color effectColor;
  10982. float effectDepthBias;
  10983. bool enabled;
  10984. /* readonly */
  10985. bool enabledEffective;
  10986. FaceCameraMode faceCameraMode;
  10987. /* readonly */
  10988. Font font;
  10989. /* readonly */
  10990. int fontSize;
  10991. HorizontalAlignment horizontalAlignment;
  10992. /* readonly */
  10993. uint id;
  10994. /* readonly */
  10995. bool inView;
  10996. uint lightMask;
  10997. float lodBias;
  10998. Material material;
  10999. uint maxLights;
  11000. /* readonly */
  11001. Node node;
  11002. /* readonly */
  11003. uint numAttributes;
  11004. /* readonly */
  11005. uint numChars;
  11006. /* readonly */
  11007. uint numRows;
  11008. ObjectAnimation objectAnimation;
  11009. bool occludee;
  11010. bool occluder;
  11011. float opacity;
  11012. /* readonly */
  11013. int refs;
  11014. /* readonly */
  11015. int rowHeight;
  11016. float rowSpacing;
  11017. /* readonly */
  11018. Array<int> rowWidths;
  11019. float shadowDistance;
  11020. uint shadowMask;
  11021. bool temporary;
  11022. String text;
  11023. HorizontalAlignment textAlignment;
  11024. TextEffect textEffect;
  11025. /* readonly */
  11026. StringHash type;
  11027. /* readonly */
  11028. String typeName;
  11029. VerticalAlignment verticalAlignment;
  11030. uint viewMask;
  11031. /* readonly */
  11032. int weakRefs;
  11033. int width;
  11034. bool wordwrap;
  11035. /* readonly */
  11036. BoundingBox worldBoundingBox;
  11037. uint zoneMask;
  11038. };
  11039. class Texture
  11040. {
  11041. // Methods:
  11042. void ClearDataLost();
  11043. bool HasSubscribedToEvent(Object, const String&);
  11044. bool HasSubscribedToEvent(const String&);
  11045. bool Load(File);
  11046. bool Load(VectorBuffer&);
  11047. bool Save(File) const;
  11048. bool Save(VectorBuffer&) const;
  11049. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11050. void SetNumLevels(uint);
  11051. // Properties:
  11052. Array<TextureAddressMode> addressMode;
  11053. Texture backupTexture;
  11054. Color borderColor;
  11055. /* readonly */
  11056. String category;
  11057. /* readonly */
  11058. uint components;
  11059. /* readonly */
  11060. bool compressed;
  11061. /* readonly */
  11062. bool dataLost;
  11063. TextureFilterMode filterMode;
  11064. /* readonly */
  11065. uint format;
  11066. /* readonly */
  11067. int height;
  11068. /* readonly */
  11069. Array<int> levelHeight;
  11070. /* readonly */
  11071. Array<int> levelWidth;
  11072. /* readonly */
  11073. uint levels;
  11074. /* readonly */
  11075. uint memoryUse;
  11076. Array<int> mipsToSkip;
  11077. String name;
  11078. /* readonly */
  11079. int refs;
  11080. bool sRGB;
  11081. /* readonly */
  11082. StringHash type;
  11083. /* readonly */
  11084. String typeName;
  11085. /* readonly */
  11086. TextureUsage usage;
  11087. /* readonly */
  11088. uint useTimer;
  11089. /* readonly */
  11090. int weakRefs;
  11091. /* readonly */
  11092. int width;
  11093. };
  11094. class Texture2D
  11095. {
  11096. // Methods:
  11097. void ClearDataLost();
  11098. Image GetImage() const;
  11099. bool HasSubscribedToEvent(Object, const String&);
  11100. bool HasSubscribedToEvent(const String&);
  11101. bool Load(File);
  11102. bool Load(VectorBuffer&);
  11103. bool Save(File) const;
  11104. bool Save(VectorBuffer&) const;
  11105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11106. bool SetData(Image, bool = false);
  11107. void SetNumLevels(uint);
  11108. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11109. // Properties:
  11110. Array<TextureAddressMode> addressMode;
  11111. Texture backupTexture;
  11112. Color borderColor;
  11113. /* readonly */
  11114. String category;
  11115. /* readonly */
  11116. uint components;
  11117. /* readonly */
  11118. bool compressed;
  11119. /* readonly */
  11120. bool dataLost;
  11121. TextureFilterMode filterMode;
  11122. /* readonly */
  11123. uint format;
  11124. /* readonly */
  11125. int height;
  11126. /* readonly */
  11127. Array<int> levelHeight;
  11128. /* readonly */
  11129. Array<int> levelWidth;
  11130. /* readonly */
  11131. uint levels;
  11132. /* readonly */
  11133. uint memoryUse;
  11134. Array<int> mipsToSkip;
  11135. String name;
  11136. /* readonly */
  11137. int refs;
  11138. /* readonly */
  11139. RenderSurface renderSurface;
  11140. bool sRGB;
  11141. /* readonly */
  11142. StringHash type;
  11143. /* readonly */
  11144. String typeName;
  11145. /* readonly */
  11146. TextureUsage usage;
  11147. /* readonly */
  11148. uint useTimer;
  11149. /* readonly */
  11150. int weakRefs;
  11151. /* readonly */
  11152. int width;
  11153. };
  11154. class Texture3D
  11155. {
  11156. // Methods:
  11157. void ClearDataLost();
  11158. bool HasSubscribedToEvent(Object, const String&);
  11159. bool HasSubscribedToEvent(const String&);
  11160. bool Load(File);
  11161. bool Load(VectorBuffer&);
  11162. bool Save(File) const;
  11163. bool Save(VectorBuffer&) const;
  11164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11165. bool SetData(Image, bool = false);
  11166. void SetNumLevels(uint);
  11167. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11168. // Properties:
  11169. Array<TextureAddressMode> addressMode;
  11170. Texture backupTexture;
  11171. Color borderColor;
  11172. /* readonly */
  11173. String category;
  11174. /* readonly */
  11175. uint components;
  11176. /* readonly */
  11177. bool compressed;
  11178. /* readonly */
  11179. bool dataLost;
  11180. TextureFilterMode filterMode;
  11181. /* readonly */
  11182. uint format;
  11183. /* readonly */
  11184. int height;
  11185. /* readonly */
  11186. Array<int> levelHeight;
  11187. /* readonly */
  11188. Array<int> levelWidth;
  11189. /* readonly */
  11190. uint levels;
  11191. /* readonly */
  11192. uint memoryUse;
  11193. Array<int> mipsToSkip;
  11194. String name;
  11195. /* readonly */
  11196. int refs;
  11197. bool sRGB;
  11198. /* readonly */
  11199. StringHash type;
  11200. /* readonly */
  11201. String typeName;
  11202. /* readonly */
  11203. TextureUsage usage;
  11204. /* readonly */
  11205. uint useTimer;
  11206. /* readonly */
  11207. int weakRefs;
  11208. /* readonly */
  11209. int width;
  11210. };
  11211. class TextureCube
  11212. {
  11213. // Methods:
  11214. void ClearDataLost();
  11215. bool HasSubscribedToEvent(Object, const String&);
  11216. bool HasSubscribedToEvent(const String&);
  11217. bool Load(File);
  11218. bool Load(VectorBuffer&);
  11219. bool Save(File) const;
  11220. bool Save(VectorBuffer&) const;
  11221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11222. bool SetData(CubeMapFace, Image, bool = false);
  11223. void SetNumLevels(uint);
  11224. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11225. // Properties:
  11226. Array<TextureAddressMode> addressMode;
  11227. Texture backupTexture;
  11228. Color borderColor;
  11229. /* readonly */
  11230. String category;
  11231. /* readonly */
  11232. uint components;
  11233. /* readonly */
  11234. bool compressed;
  11235. /* readonly */
  11236. bool dataLost;
  11237. TextureFilterMode filterMode;
  11238. /* readonly */
  11239. uint format;
  11240. /* readonly */
  11241. int height;
  11242. /* readonly */
  11243. Array<int> levelHeight;
  11244. /* readonly */
  11245. Array<int> levelWidth;
  11246. /* readonly */
  11247. uint levels;
  11248. /* readonly */
  11249. uint memoryUse;
  11250. Array<int> mipsToSkip;
  11251. String name;
  11252. /* readonly */
  11253. int refs;
  11254. /* readonly */
  11255. Array<RenderSurface> renderSurfaces;
  11256. bool sRGB;
  11257. /* readonly */
  11258. StringHash type;
  11259. /* readonly */
  11260. String typeName;
  11261. /* readonly */
  11262. TextureUsage usage;
  11263. /* readonly */
  11264. uint useTimer;
  11265. /* readonly */
  11266. int weakRefs;
  11267. /* readonly */
  11268. int width;
  11269. };
  11270. class TextureFrame
  11271. {
  11272. // Properties:
  11273. float time;
  11274. Rect uv;
  11275. };
  11276. class Tile2D
  11277. {
  11278. // Methods:
  11279. bool HasProperty(const String&) const;
  11280. const String& GetProperty(const String&) const;
  11281. // Properties:
  11282. /* readonly */
  11283. int gid;
  11284. /* readonly */
  11285. int refs;
  11286. /* readonly */
  11287. Sprite2D sprite;
  11288. /* readonly */
  11289. int weakRefs;
  11290. };
  11291. class TileMap2D
  11292. {
  11293. // Methods:
  11294. void ApplyAttributes();
  11295. void DrawDebugGeometry(DebugRenderer, bool);
  11296. Variant GetAttribute(const String&) const;
  11297. ValueAnimation GetAttributeAnimation(const String&) const;
  11298. float GetAttributeAnimationSpeed(const String&) const;
  11299. float GetAttributeAnimationTime(const String&) const;
  11300. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11301. Variant GetAttributeDefault(const String&) const;
  11302. bool GetInterceptNetworkUpdate(const String&) const;
  11303. TileMapLayer2D GetLayer(uint) const;
  11304. bool HasSubscribedToEvent(Object, const String&);
  11305. bool HasSubscribedToEvent(const String&);
  11306. bool Load(File, bool = false);
  11307. bool Load(VectorBuffer&, bool = false);
  11308. bool LoadJSON(const JSONValue&, bool = false);
  11309. bool LoadXML(const XMLElement&, bool = false);
  11310. void MarkNetworkUpdate() const;
  11311. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11312. void Remove();
  11313. void RemoveAttributeAnimation(const String&);
  11314. void RemoveInstanceDefault();
  11315. void RemoveObjectAnimation();
  11316. void ResetToDefault();
  11317. bool Save(File) const;
  11318. bool Save(VectorBuffer&) const;
  11319. bool SaveJSON(JSONValue&) const;
  11320. bool SaveXML(XMLElement&) const;
  11321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11322. void SetAnimationTime(float);
  11323. bool SetAttribute(const String&, const Variant&);
  11324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11325. void SetAttributeAnimationSpeed(const String&, float);
  11326. void SetAttributeAnimationTime(const String&, float);
  11327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11328. void SetInterceptNetworkUpdate(const String&, bool);
  11329. Vector2 TileIndexToPosition(int, int) const;
  11330. // Properties:
  11331. bool animationEnabled;
  11332. /* readonly */
  11333. Array<Variant> attributeDefaults;
  11334. /* readonly */
  11335. Array<AttributeInfo> attributeInfos;
  11336. Array<Variant> attributes;
  11337. /* readonly */
  11338. String category;
  11339. bool enabled;
  11340. /* readonly */
  11341. bool enabledEffective;
  11342. /* readonly */
  11343. uint id;
  11344. /* readonly */
  11345. TileMapInfo2D info;
  11346. /* readonly */
  11347. Node node;
  11348. /* readonly */
  11349. uint numAttributes;
  11350. /* readonly */
  11351. uint numLayers;
  11352. ObjectAnimation objectAnimation;
  11353. /* readonly */
  11354. int refs;
  11355. bool temporary;
  11356. TmxFile2D tmxFile;
  11357. /* readonly */
  11358. StringHash type;
  11359. /* readonly */
  11360. String typeName;
  11361. /* readonly */
  11362. int weakRefs;
  11363. };
  11364. class TileMapInfo2D
  11365. {
  11366. // Properties:
  11367. int height;
  11368. /* readonly */
  11369. float mapHeight;
  11370. /* readonly */
  11371. float mapWidth;
  11372. Orientation2D orientation;
  11373. float tileHeight;
  11374. float tileWidth;
  11375. int width;
  11376. };
  11377. class TileMapLayer2D
  11378. {
  11379. // Methods:
  11380. void ApplyAttributes();
  11381. void DrawDebugGeometry(DebugRenderer, bool);
  11382. Variant GetAttribute(const String&) const;
  11383. ValueAnimation GetAttributeAnimation(const String&) const;
  11384. float GetAttributeAnimationSpeed(const String&) const;
  11385. float GetAttributeAnimationTime(const String&) const;
  11386. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11387. Variant GetAttributeDefault(const String&) const;
  11388. bool GetInterceptNetworkUpdate(const String&) const;
  11389. TileMapObject2D GetObject(uint) const;
  11390. Node GetObjectNode(uint) const;
  11391. Tile2D GetTile(int, int) const;
  11392. Node GetTileNode(int, int) const;
  11393. bool HasProperty(const String&) const;
  11394. bool HasSubscribedToEvent(Object, const String&);
  11395. bool HasSubscribedToEvent(const String&);
  11396. bool Load(File, bool = false);
  11397. bool Load(VectorBuffer&, bool = false);
  11398. bool LoadJSON(const JSONValue&, bool = false);
  11399. bool LoadXML(const XMLElement&, bool = false);
  11400. void MarkNetworkUpdate() const;
  11401. void Remove();
  11402. void RemoveAttributeAnimation(const String&);
  11403. void RemoveInstanceDefault();
  11404. void RemoveObjectAnimation();
  11405. void ResetToDefault();
  11406. bool Save(File) const;
  11407. bool Save(VectorBuffer&) const;
  11408. bool SaveJSON(JSONValue&) const;
  11409. bool SaveXML(XMLElement&) const;
  11410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11411. void SetAnimationTime(float);
  11412. bool SetAttribute(const String&, const Variant&);
  11413. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11414. void SetAttributeAnimationSpeed(const String&, float);
  11415. void SetAttributeAnimationTime(const String&, float);
  11416. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11417. void SetInterceptNetworkUpdate(const String&, bool);
  11418. const String& GetProperty(const String&) const;
  11419. // Properties:
  11420. bool animationEnabled;
  11421. /* readonly */
  11422. Array<Variant> attributeDefaults;
  11423. /* readonly */
  11424. Array<AttributeInfo> attributeInfos;
  11425. Array<Variant> attributes;
  11426. /* readonly */
  11427. String category;
  11428. int drawOrder;
  11429. bool enabled;
  11430. /* readonly */
  11431. bool enabledEffective;
  11432. /* readonly */
  11433. int height;
  11434. /* readonly */
  11435. uint id;
  11436. /* readonly */
  11437. Node imageNode;
  11438. /* readonly */
  11439. TileMapLayerType2D layerType;
  11440. /* readonly */
  11441. Node node;
  11442. /* readonly */
  11443. uint numAttributes;
  11444. /* readonly */
  11445. uint numObjects;
  11446. ObjectAnimation objectAnimation;
  11447. /* readonly */
  11448. int refs;
  11449. bool temporary;
  11450. /* readonly */
  11451. StringHash type;
  11452. /* readonly */
  11453. String typeName;
  11454. bool visible;
  11455. /* readonly */
  11456. int weakRefs;
  11457. /* readonly */
  11458. int width;
  11459. };
  11460. class TileMapObject2D
  11461. {
  11462. // Methods:
  11463. bool HasProperty(const String&) const;
  11464. const String& GetProperty(const String&) const;
  11465. const Vector2& GetPoint(uint) const;
  11466. // Properties:
  11467. /* readonly */
  11468. String name;
  11469. /* readonly */
  11470. uint numPoints;
  11471. /* readonly */
  11472. TileObjectType2D objectType;
  11473. /* readonly */
  11474. Vector2 position;
  11475. /* readonly */
  11476. int refs;
  11477. /* readonly */
  11478. Vector2 size;
  11479. /* readonly */
  11480. int tileGid;
  11481. /* readonly */
  11482. Sprite2D tileSprite;
  11483. /* readonly */
  11484. String type;
  11485. /* readonly */
  11486. int weakRefs;
  11487. };
  11488. class Time
  11489. {
  11490. // Methods:
  11491. bool HasSubscribedToEvent(Object, const String&);
  11492. bool HasSubscribedToEvent(const String&);
  11493. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11494. // Properties:
  11495. /* readonly */
  11496. String category;
  11497. /* readonly */
  11498. float elapsedTime;
  11499. /* readonly */
  11500. uint frameNumber;
  11501. /* readonly */
  11502. int refs;
  11503. /* readonly */
  11504. uint systemTime;
  11505. /* readonly */
  11506. uint timeSinceEpoch;
  11507. /* readonly */
  11508. String timeStamp;
  11509. /* readonly */
  11510. float timeStep;
  11511. /* readonly */
  11512. StringHash type;
  11513. /* readonly */
  11514. String typeName;
  11515. /* readonly */
  11516. int weakRefs;
  11517. };
  11518. class Timer
  11519. {
  11520. // Methods:
  11521. uint GetMSec(bool);
  11522. void Reset();
  11523. };
  11524. class TmxFile2D
  11525. {
  11526. // Methods:
  11527. bool HasSubscribedToEvent(Object, const String&);
  11528. bool HasSubscribedToEvent(const String&);
  11529. bool Load(File);
  11530. bool Load(VectorBuffer&);
  11531. bool Save(File) const;
  11532. bool Save(VectorBuffer&) const;
  11533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11534. // Properties:
  11535. /* readonly */
  11536. String category;
  11537. /* readonly */
  11538. uint memoryUse;
  11539. String name;
  11540. /* readonly */
  11541. int refs;
  11542. /* readonly */
  11543. StringHash type;
  11544. /* readonly */
  11545. String typeName;
  11546. /* readonly */
  11547. uint useTimer;
  11548. /* readonly */
  11549. int weakRefs;
  11550. };
  11551. class ToolTip
  11552. {
  11553. // Methods:
  11554. void AddChild(UIElement);
  11555. void ApplyAttributes();
  11556. void BringToFront();
  11557. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11558. void DisableLayoutUpdate();
  11559. IntVector2 ElementToScreen(const IntVector2&);
  11560. void EnableLayoutUpdate();
  11561. uint FindChild(UIElement) const;
  11562. Variant GetAttribute(const String&) const;
  11563. ValueAnimation GetAttributeAnimation(const String&) const;
  11564. float GetAttributeAnimationSpeed(const String&) const;
  11565. float GetAttributeAnimationTime(const String&) const;
  11566. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11567. Variant GetAttributeDefault(const String&) const;
  11568. UIElement GetChild(const String&, bool = false) const;
  11569. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11570. Array<UIElement> GetChildren(bool = false) const;
  11571. UIElement GetElementEventSender() const;
  11572. bool GetInterceptNetworkUpdate(const String&) const;
  11573. uint GetNumChildren(bool) const;
  11574. bool HasSubscribedToEvent(Object, const String&);
  11575. bool HasSubscribedToEvent(const String&);
  11576. void InsertChild(uint, UIElement);
  11577. bool IsInside(IntVector2, bool);
  11578. bool IsInsideCombined(IntVector2, bool);
  11579. bool Load(File, bool = false);
  11580. bool Load(VectorBuffer&, bool = false);
  11581. bool LoadChildXML(XMLFile, XMLFile = null);
  11582. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11583. bool LoadJSON(const JSONValue&, bool = false);
  11584. bool LoadXML(File);
  11585. bool LoadXML(VectorBuffer&);
  11586. bool LoadXML(XMLFile, XMLFile);
  11587. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11588. bool LoadXML(const XMLElement&, bool = false);
  11589. void MarkNetworkUpdate() const;
  11590. void Remove();
  11591. void RemoveAllChildren();
  11592. void RemoveAttributeAnimation(const String&);
  11593. void RemoveChild(UIElement, uint = 0);
  11594. void RemoveChild(uint);
  11595. void RemoveInstanceDefault();
  11596. void RemoveObjectAnimation();
  11597. void ResetDeepEnabled();
  11598. void ResetToDefault();
  11599. bool Save(File) const;
  11600. bool Save(VectorBuffer&) const;
  11601. bool SaveJSON(JSONValue&) const;
  11602. bool SaveXML(File, const String& = "\t");
  11603. bool SaveXML(VectorBuffer&, const String& = "\t");
  11604. bool SaveXML(XMLElement&) const;
  11605. IntVector2 ScreenToElement(const IntVector2&);
  11606. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11607. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11608. void SetAnimationTime(float);
  11609. bool SetAttribute(const String&, const Variant&);
  11610. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11611. void SetAttributeAnimationSpeed(const String&, float);
  11612. void SetAttributeAnimationTime(const String&, float);
  11613. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11614. void SetDeepEnabled(bool);
  11615. void SetEnabledRecursive(bool);
  11616. void SetFixedHeight(int);
  11617. void SetFixedSize(int, int);
  11618. void SetFixedWidth(int);
  11619. void SetInterceptNetworkUpdate(const String&, bool);
  11620. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11621. void SetMaxSize(int, int);
  11622. void SetMinSize(int, int);
  11623. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11624. void SetPosition(int, int);
  11625. void SetSize(int, int);
  11626. bool SetStyle(const String&, XMLFile = null);
  11627. bool SetStyle(const XMLElement&);
  11628. bool SetStyleAuto(XMLFile = null);
  11629. void UpdateLayout();
  11630. const Variant& GetVar(const StringHash&);
  11631. // Properties:
  11632. bool animationEnabled;
  11633. /* readonly */
  11634. Array<Variant> attributeDefaults;
  11635. /* readonly */
  11636. Array<AttributeInfo> attributeInfos;
  11637. Array<Variant> attributes;
  11638. bool bringToBack;
  11639. bool bringToFront;
  11640. /* readonly */
  11641. String category;
  11642. /* readonly */
  11643. IntVector2 childOffset;
  11644. /* readonly */
  11645. Array<UIElement> children;
  11646. IntRect clipBorder;
  11647. bool clipChildren;
  11648. /* writeonly */
  11649. Color color;
  11650. /* readonly */
  11651. bool colorGradient;
  11652. Array<Color> colors;
  11653. /* readonly */
  11654. IntRect combinedScreenRect;
  11655. XMLFile defaultStyle;
  11656. float delay;
  11657. /* readonly */
  11658. float derivedOpacity;
  11659. /* readonly */
  11660. uint dragButtonCombo;
  11661. /* readonly */
  11662. int dragButtonCount;
  11663. uint dragDropMode;
  11664. bool editable;
  11665. bool elementEventSender;
  11666. bool enabled;
  11667. /* readonly */
  11668. bool enabledSelf;
  11669. /* readonly */
  11670. bool fixedHeight;
  11671. /* readonly */
  11672. bool fixedSize;
  11673. /* readonly */
  11674. bool fixedWidth;
  11675. bool focus;
  11676. FocusMode focusMode;
  11677. int height;
  11678. HorizontalAlignment horizontalAlignment;
  11679. /* readonly */
  11680. bool hovering;
  11681. int indent;
  11682. int indentSpacing;
  11683. /* readonly */
  11684. int indentWidth;
  11685. bool internal;
  11686. IntRect layoutBorder;
  11687. Vector2 layoutFlexScale;
  11688. LayoutMode layoutMode;
  11689. int layoutSpacing;
  11690. int maxHeight;
  11691. IntVector2 maxSize;
  11692. int maxWidth;
  11693. int minHeight;
  11694. IntVector2 minSize;
  11695. int minWidth;
  11696. String name;
  11697. /* readonly */
  11698. uint numAllChildren;
  11699. /* readonly */
  11700. uint numAttributes;
  11701. /* readonly */
  11702. uint numChildren;
  11703. ObjectAnimation objectAnimation;
  11704. float opacity;
  11705. UIElement parent;
  11706. IntVector2 position;
  11707. int priority;
  11708. /* readonly */
  11709. int refs;
  11710. /* readonly */
  11711. UIElement root;
  11712. /* readonly */
  11713. IntVector2 screenPosition;
  11714. bool selected;
  11715. IntVector2 size;
  11716. bool sortChildren;
  11717. String style;
  11718. bool temporary;
  11719. TraversalMode traversalMode;
  11720. /* readonly */
  11721. StringHash type;
  11722. /* readonly */
  11723. String typeName;
  11724. bool useDerivedOpacity;
  11725. /* readonly */
  11726. VariantMap vars;
  11727. VerticalAlignment verticalAlignment;
  11728. bool visible;
  11729. /* readonly */
  11730. bool visibleEffective;
  11731. /* readonly */
  11732. int weakRefs;
  11733. int width;
  11734. };
  11735. class TouchState
  11736. {
  11737. // Properties:
  11738. IntVector2 delta;
  11739. IntVector2 lastPosition;
  11740. IntVector2 position;
  11741. float pressure;
  11742. int touchID;
  11743. /* readonly */
  11744. UIElement touchedElement;
  11745. };
  11746. class UI
  11747. {
  11748. // Methods:
  11749. void Clear();
  11750. void DebugDraw(UIElement);
  11751. UIElement GetElementAt(const IntVector2&, bool = true);
  11752. UIElement GetElementAt(int, int, bool = true);
  11753. bool HasModalElement() const;
  11754. bool HasSubscribedToEvent(Object, const String&);
  11755. bool HasSubscribedToEvent(const String&);
  11756. bool IsDragging() const;
  11757. UIElement LoadLayout(File);
  11758. UIElement LoadLayout(File, XMLFile);
  11759. UIElement LoadLayout(VectorBuffer&);
  11760. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11761. UIElement LoadLayout(XMLFile);
  11762. UIElement LoadLayout(XMLFile, XMLFile);
  11763. bool SaveLayout(File, UIElement);
  11764. bool SaveLayout(VectorBuffer&, UIElement);
  11765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11766. void SetFocusElement(UIElement, bool = false);
  11767. void SetHeight(float);
  11768. void SetWidth(float);
  11769. const Array<UIElement> GetDragElements();
  11770. // Properties:
  11771. /* readonly */
  11772. String category;
  11773. String clipBoardText;
  11774. Cursor cursor;
  11775. /* readonly */
  11776. IntVector2 cursorPosition;
  11777. float defaultToolTipDelay;
  11778. float doubleClickInterval;
  11779. int dragBeginDistance;
  11780. float dragBeginInterval;
  11781. UIElement focusElement;
  11782. bool forceAutoHint;
  11783. /* readonly */
  11784. UIElement frontElement;
  11785. int maxFontTextureSize;
  11786. /* readonly */
  11787. UIElement modalRoot;
  11788. bool nonFocusedMouseWheel;
  11789. /* readonly */
  11790. int refs;
  11791. /* readonly */
  11792. UIElement root;
  11793. float scale;
  11794. /* readonly */
  11795. StringHash type;
  11796. /* readonly */
  11797. String typeName;
  11798. bool useMutableGlyphs;
  11799. bool useScreenKeyboard;
  11800. bool useSystemClipboard;
  11801. /* readonly */
  11802. int weakRefs;
  11803. };
  11804. class UIElement
  11805. {
  11806. // Methods:
  11807. void AddChild(UIElement);
  11808. void ApplyAttributes();
  11809. void BringToFront();
  11810. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11811. void DisableLayoutUpdate();
  11812. IntVector2 ElementToScreen(const IntVector2&);
  11813. void EnableLayoutUpdate();
  11814. uint FindChild(UIElement) const;
  11815. Variant GetAttribute(const String&) const;
  11816. ValueAnimation GetAttributeAnimation(const String&) const;
  11817. float GetAttributeAnimationSpeed(const String&) const;
  11818. float GetAttributeAnimationTime(const String&) const;
  11819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11820. Variant GetAttributeDefault(const String&) const;
  11821. UIElement GetChild(const String&, bool = false) const;
  11822. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11823. Array<UIElement> GetChildren(bool = false) const;
  11824. UIElement GetElementEventSender() const;
  11825. bool GetInterceptNetworkUpdate(const String&) const;
  11826. uint GetNumChildren(bool) const;
  11827. bool HasSubscribedToEvent(Object, const String&);
  11828. bool HasSubscribedToEvent(const String&);
  11829. void InsertChild(uint, UIElement);
  11830. bool IsInside(IntVector2, bool);
  11831. bool IsInsideCombined(IntVector2, bool);
  11832. bool Load(File, bool = false);
  11833. bool Load(VectorBuffer&, bool = false);
  11834. bool LoadChildXML(XMLFile, XMLFile = null);
  11835. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11836. bool LoadJSON(const JSONValue&, bool = false);
  11837. bool LoadXML(File);
  11838. bool LoadXML(VectorBuffer&);
  11839. bool LoadXML(XMLFile, XMLFile);
  11840. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11841. bool LoadXML(const XMLElement&, bool = false);
  11842. void MarkNetworkUpdate() const;
  11843. void Remove();
  11844. void RemoveAllChildren();
  11845. void RemoveAttributeAnimation(const String&);
  11846. void RemoveChild(UIElement, uint = 0);
  11847. void RemoveChild(uint);
  11848. void RemoveInstanceDefault();
  11849. void RemoveObjectAnimation();
  11850. void ResetDeepEnabled();
  11851. void ResetToDefault();
  11852. bool Save(File) const;
  11853. bool Save(VectorBuffer&) const;
  11854. bool SaveJSON(JSONValue&) const;
  11855. bool SaveXML(File, const String& = "\t");
  11856. bool SaveXML(VectorBuffer&, const String& = "\t");
  11857. bool SaveXML(XMLElement&) const;
  11858. IntVector2 ScreenToElement(const IntVector2&);
  11859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11860. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11861. void SetAnimationTime(float);
  11862. bool SetAttribute(const String&, const Variant&);
  11863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11864. void SetAttributeAnimationSpeed(const String&, float);
  11865. void SetAttributeAnimationTime(const String&, float);
  11866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11867. void SetDeepEnabled(bool);
  11868. void SetEnabledRecursive(bool);
  11869. void SetFixedHeight(int);
  11870. void SetFixedSize(int, int);
  11871. void SetFixedWidth(int);
  11872. void SetInterceptNetworkUpdate(const String&, bool);
  11873. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11874. void SetMaxSize(int, int);
  11875. void SetMinSize(int, int);
  11876. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11877. void SetPosition(int, int);
  11878. void SetSize(int, int);
  11879. bool SetStyle(const String&, XMLFile = null);
  11880. bool SetStyle(const XMLElement&);
  11881. bool SetStyleAuto(XMLFile = null);
  11882. void UpdateLayout();
  11883. const Variant& GetVar(const StringHash&);
  11884. // Properties:
  11885. bool animationEnabled;
  11886. /* readonly */
  11887. Array<Variant> attributeDefaults;
  11888. /* readonly */
  11889. Array<AttributeInfo> attributeInfos;
  11890. Array<Variant> attributes;
  11891. bool bringToBack;
  11892. bool bringToFront;
  11893. /* readonly */
  11894. String category;
  11895. /* readonly */
  11896. IntVector2 childOffset;
  11897. /* readonly */
  11898. Array<UIElement> children;
  11899. IntRect clipBorder;
  11900. bool clipChildren;
  11901. /* writeonly */
  11902. Color color;
  11903. /* readonly */
  11904. bool colorGradient;
  11905. Array<Color> colors;
  11906. /* readonly */
  11907. IntRect combinedScreenRect;
  11908. XMLFile defaultStyle;
  11909. /* readonly */
  11910. float derivedOpacity;
  11911. /* readonly */
  11912. uint dragButtonCombo;
  11913. /* readonly */
  11914. int dragButtonCount;
  11915. uint dragDropMode;
  11916. bool editable;
  11917. bool elementEventSender;
  11918. bool enabled;
  11919. /* readonly */
  11920. bool enabledSelf;
  11921. /* readonly */
  11922. bool fixedHeight;
  11923. /* readonly */
  11924. bool fixedSize;
  11925. /* readonly */
  11926. bool fixedWidth;
  11927. bool focus;
  11928. FocusMode focusMode;
  11929. int height;
  11930. HorizontalAlignment horizontalAlignment;
  11931. /* readonly */
  11932. bool hovering;
  11933. int indent;
  11934. int indentSpacing;
  11935. /* readonly */
  11936. int indentWidth;
  11937. bool internal;
  11938. IntRect layoutBorder;
  11939. Vector2 layoutFlexScale;
  11940. LayoutMode layoutMode;
  11941. int layoutSpacing;
  11942. int maxHeight;
  11943. IntVector2 maxSize;
  11944. int maxWidth;
  11945. int minHeight;
  11946. IntVector2 minSize;
  11947. int minWidth;
  11948. String name;
  11949. /* readonly */
  11950. uint numAllChildren;
  11951. /* readonly */
  11952. uint numAttributes;
  11953. /* readonly */
  11954. uint numChildren;
  11955. ObjectAnimation objectAnimation;
  11956. float opacity;
  11957. UIElement parent;
  11958. IntVector2 position;
  11959. int priority;
  11960. /* readonly */
  11961. int refs;
  11962. /* readonly */
  11963. UIElement root;
  11964. /* readonly */
  11965. IntVector2 screenPosition;
  11966. bool selected;
  11967. IntVector2 size;
  11968. bool sortChildren;
  11969. String style;
  11970. bool temporary;
  11971. TraversalMode traversalMode;
  11972. /* readonly */
  11973. StringHash type;
  11974. /* readonly */
  11975. String typeName;
  11976. bool useDerivedOpacity;
  11977. /* readonly */
  11978. VariantMap vars;
  11979. VerticalAlignment verticalAlignment;
  11980. bool visible;
  11981. /* readonly */
  11982. bool visibleEffective;
  11983. /* readonly */
  11984. int weakRefs;
  11985. int width;
  11986. };
  11987. class ValueAnimation
  11988. {
  11989. // Methods:
  11990. bool HasSubscribedToEvent(Object, const String&);
  11991. bool HasSubscribedToEvent(const String&);
  11992. bool Load(File);
  11993. bool Load(VectorBuffer&);
  11994. bool Save(File) const;
  11995. bool Save(VectorBuffer&) const;
  11996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11997. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11998. void SetKeyFrame(float, const Variant&);
  11999. // Properties:
  12000. /* readonly */
  12001. String category;
  12002. InterpMethod interpolationMethod;
  12003. /* readonly */
  12004. uint memoryUse;
  12005. String name;
  12006. /* readonly */
  12007. int refs;
  12008. float splineTension;
  12009. /* readonly */
  12010. StringHash type;
  12011. /* readonly */
  12012. String typeName;
  12013. /* readonly */
  12014. uint useTimer;
  12015. VariantType valueType;
  12016. /* readonly */
  12017. int weakRefs;
  12018. };
  12019. class Variant
  12020. {
  12021. // Methods:
  12022. void Clear();
  12023. const Color& GetColor() const;
  12024. void FromString(VariantType, const String&);
  12025. void FromString(const String&, const String&);
  12026. bool GetBool() const;
  12027. double GetDouble() const;
  12028. float GetFloat() const;
  12029. int GetInt() const;
  12030. RefCounted GetPtr() const;
  12031. ScriptObject GetScriptObject() const;
  12032. StringHash GetStringHash() const;
  12033. Array<String> GetStringVector() const;
  12034. uint GetUInt() const;
  12035. Array<Variant> GetVariantVector() const;
  12036. const IntRect& GetIntRect() const;
  12037. const IntVector2& GetIntVector2() const;
  12038. const Matrix3& GetMatrix3() const;
  12039. const Matrix3x4& GetMatrix3x4() const;
  12040. const Matrix4& GetMatrix4() const;
  12041. const Quaternion& GetQuaternion() const;
  12042. const ResourceRef& GetResourceRef() const;
  12043. const ResourceRefList& GetResourceRefList() const;
  12044. const String& GetString() const;
  12045. String ToString() const;
  12046. const VariantMap& GetVariantMap() const;
  12047. const Vector2& GetVector2() const;
  12048. const Vector3& GetVector3() const;
  12049. const Vector4& GetVector4() const;
  12050. const VectorBuffer GetBuffer() const;
  12051. // Properties:
  12052. /* readonly */
  12053. bool empty;
  12054. /* readonly */
  12055. VariantType type;
  12056. /* readonly */
  12057. String typeName;
  12058. /* readonly */
  12059. bool zero;
  12060. };
  12061. class VariantMap
  12062. {
  12063. // Methods:
  12064. void Clear();
  12065. bool Contains(StringHash) const;
  12066. bool Contains(const String&) const;
  12067. bool Erase(StringHash);
  12068. bool Erase(const String&);
  12069. // Properties:
  12070. /* readonly */
  12071. Array<StringHash> keys;
  12072. /* readonly */
  12073. uint length;
  12074. /* readonly */
  12075. Array<Variant> values;
  12076. };
  12077. class Vector2
  12078. {
  12079. // Methods:
  12080. Vector2 Abs() const;
  12081. float AbsDotProduct(const Vector2&) const;
  12082. float DotProduct(const Vector2&) const;
  12083. bool Equals(const Vector2&) const;
  12084. bool IsNaN() const;
  12085. Vector2 Lerp(const Vector2&, float) const;
  12086. void Normalize();
  12087. Vector2 Normalized() const;
  12088. String ToString() const;
  12089. // Properties:
  12090. /* readonly */
  12091. Array<float> data;
  12092. /* readonly */
  12093. float length;
  12094. /* readonly */
  12095. float lengthSquared;
  12096. float x;
  12097. float y;
  12098. };
  12099. class Vector3
  12100. {
  12101. // Methods:
  12102. Vector3 Abs() const;
  12103. float AbsDotProduct(const Vector3&) const;
  12104. float Angle(const Vector3&) const;
  12105. Vector3 CrossProduct(const Vector3&) const;
  12106. float DotProduct(const Vector3&) const;
  12107. bool Equals(const Vector3&) const;
  12108. bool IsNaN() const;
  12109. Vector3 Lerp(const Vector3&, float) const;
  12110. void Normalize();
  12111. Vector3 Normalized() const;
  12112. String ToString() const;
  12113. // Properties:
  12114. /* readonly */
  12115. Array<float> data;
  12116. /* readonly */
  12117. float length;
  12118. /* readonly */
  12119. float lengthSquared;
  12120. float x;
  12121. float y;
  12122. float z;
  12123. };
  12124. class Vector4
  12125. {
  12126. // Methods:
  12127. Vector4 Abs() const;
  12128. float AbsDotProduct(const Vector4&) const;
  12129. float DotProduct(const Vector4&) const;
  12130. bool Equals(const Vector4&) const;
  12131. bool IsNaN() const;
  12132. Vector4 Lerp(const Vector4&, float) const;
  12133. String ToString() const;
  12134. // Properties:
  12135. /* readonly */
  12136. Array<float> data;
  12137. float w;
  12138. float x;
  12139. float y;
  12140. float z;
  12141. };
  12142. class VectorBuffer
  12143. {
  12144. // Methods:
  12145. void Clear();
  12146. Array<uint8> Read(uint);
  12147. bool ReadBool();
  12148. BoundingBox ReadBoundingBox();
  12149. int8 ReadByte();
  12150. Color ReadColor();
  12151. double ReadDouble();
  12152. String ReadFileID();
  12153. float ReadFloat();
  12154. int ReadInt();
  12155. IntRect ReadIntRect();
  12156. IntVector2 ReadIntVector2();
  12157. String ReadLine();
  12158. Matrix3 ReadMatrix3();
  12159. Matrix3x4 ReadMatrix3x4();
  12160. Matrix4 ReadMatrix4();
  12161. uint ReadNetID();
  12162. Quaternion ReadPackedQuaternion();
  12163. Vector3 ReadPackedVector3(float);
  12164. Quaternion ReadQuaternion();
  12165. int16 ReadShort();
  12166. String ReadString();
  12167. StringHash ReadStringHash();
  12168. uint8 ReadUByte();
  12169. uint ReadUInt();
  12170. uint16 ReadUShort();
  12171. uint ReadVLE();
  12172. Variant ReadVariant();
  12173. VariantMap ReadVariantMap();
  12174. Vector2 ReadVector2();
  12175. Vector3 ReadVector3();
  12176. Vector4 ReadVector4();
  12177. VectorBuffer ReadVectorBuffer(uint);
  12178. void Resize(uint);
  12179. uint Seek(uint);
  12180. void SetData(Deserializer, uint);
  12181. uint Write(Array<uint8>);
  12182. bool WriteBool(bool);
  12183. bool WriteBoundingBox(const BoundingBox&);
  12184. bool WriteByte(int8);
  12185. bool WriteColor(const Color&);
  12186. bool WriteDouble(double);
  12187. bool WriteFileID(const String&);
  12188. bool WriteFloat(float);
  12189. bool WriteInt(int);
  12190. bool WriteIntRect(const IntRect&);
  12191. bool WriteIntVector2(const IntVector2&);
  12192. bool WriteLine(const String&);
  12193. bool WriteMatrix3(const Matrix3&);
  12194. bool WriteMatrix3x4(const Matrix3x4&);
  12195. bool WriteMatrix4(const Matrix4&);
  12196. bool WriteNetID(uint);
  12197. bool WritePackedQuaternion(const Quaternion&);
  12198. bool WritePackedVector3(const Vector3&, float);
  12199. bool WriteQuaternion(const Quaternion&);
  12200. bool WriteShort(int16);
  12201. bool WriteString(const String&);
  12202. bool WriteStringHash(const StringHash&);
  12203. bool WriteUByte(uint8);
  12204. bool WriteUInt(uint);
  12205. bool WriteUShort(uint16);
  12206. bool WriteVLE(uint);
  12207. bool WriteVariant(const Variant&);
  12208. bool WriteVariantMap(const VariantMap&);
  12209. bool WriteVector2(const Vector2&);
  12210. bool WriteVector3(const Vector3&);
  12211. bool WriteVector4(const Vector4&);
  12212. bool WriteVectorBuffer(const VectorBuffer&);
  12213. // Properties:
  12214. /* readonly */
  12215. uint checksum;
  12216. /* readonly */
  12217. bool eof;
  12218. /* readonly */
  12219. String name;
  12220. /* readonly */
  12221. uint position;
  12222. /* readonly */
  12223. uint size;
  12224. };
  12225. class VertexBuffer
  12226. {
  12227. // Methods:
  12228. VectorBuffer GetData();
  12229. bool HasSubscribedToEvent(Object, const String&);
  12230. bool HasSubscribedToEvent(const String&);
  12231. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12232. bool SetData(VectorBuffer&);
  12233. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12234. void SetSize(uint, uint, bool = false);
  12235. // Properties:
  12236. /* readonly */
  12237. String category;
  12238. /* readonly */
  12239. bool dynamic;
  12240. /* readonly */
  12241. uint elementMask;
  12242. /* readonly */
  12243. int refs;
  12244. bool shadowed;
  12245. /* readonly */
  12246. StringHash type;
  12247. /* readonly */
  12248. String typeName;
  12249. /* readonly */
  12250. uint vertexCount;
  12251. /* readonly */
  12252. uint vertexSize;
  12253. /* readonly */
  12254. int weakRefs;
  12255. };
  12256. class View3D
  12257. {
  12258. // Methods:
  12259. void AddChild(UIElement);
  12260. void ApplyAttributes();
  12261. void BringToFront();
  12262. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12263. void DisableLayoutUpdate();
  12264. IntVector2 ElementToScreen(const IntVector2&);
  12265. void EnableLayoutUpdate();
  12266. uint FindChild(UIElement) const;
  12267. Variant GetAttribute(const String&) const;
  12268. ValueAnimation GetAttributeAnimation(const String&) const;
  12269. float GetAttributeAnimationSpeed(const String&) const;
  12270. float GetAttributeAnimationTime(const String&) const;
  12271. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12272. Variant GetAttributeDefault(const String&) const;
  12273. UIElement GetChild(const String&, bool = false) const;
  12274. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12275. Array<UIElement> GetChildren(bool = false) const;
  12276. UIElement GetElementEventSender() const;
  12277. bool GetInterceptNetworkUpdate(const String&) const;
  12278. uint GetNumChildren(bool) const;
  12279. bool HasSubscribedToEvent(Object, const String&);
  12280. bool HasSubscribedToEvent(const String&);
  12281. void InsertChild(uint, UIElement);
  12282. bool IsInside(IntVector2, bool);
  12283. bool IsInsideCombined(IntVector2, bool);
  12284. bool Load(File, bool = false);
  12285. bool Load(VectorBuffer&, bool = false);
  12286. bool LoadChildXML(XMLFile, XMLFile = null);
  12287. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12288. bool LoadJSON(const JSONValue&, bool = false);
  12289. bool LoadXML(File);
  12290. bool LoadXML(VectorBuffer&);
  12291. bool LoadXML(XMLFile, XMLFile);
  12292. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12293. bool LoadXML(const XMLElement&, bool = false);
  12294. void MarkNetworkUpdate() const;
  12295. void QueueUpdate();
  12296. void Remove();
  12297. void RemoveAllChildren();
  12298. void RemoveAttributeAnimation(const String&);
  12299. void RemoveChild(UIElement, uint = 0);
  12300. void RemoveChild(uint);
  12301. void RemoveInstanceDefault();
  12302. void RemoveObjectAnimation();
  12303. void ResetDeepEnabled();
  12304. void ResetToDefault();
  12305. bool Save(File) const;
  12306. bool Save(VectorBuffer&) const;
  12307. bool SaveJSON(JSONValue&) const;
  12308. bool SaveXML(File, const String& = "\t");
  12309. bool SaveXML(VectorBuffer&, const String& = "\t");
  12310. bool SaveXML(XMLElement&) const;
  12311. IntVector2 ScreenToElement(const IntVector2&);
  12312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12313. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12314. void SetAnimationTime(float);
  12315. bool SetAttribute(const String&, const Variant&);
  12316. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12317. void SetAttributeAnimationSpeed(const String&, float);
  12318. void SetAttributeAnimationTime(const String&, float);
  12319. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12320. void SetDeepEnabled(bool);
  12321. void SetEnabledRecursive(bool);
  12322. void SetFixedHeight(int);
  12323. void SetFixedSize(int, int);
  12324. void SetFixedWidth(int);
  12325. void SetFullImageRect();
  12326. void SetHoverOffset(int, int);
  12327. void SetInterceptNetworkUpdate(const String&, bool);
  12328. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12329. void SetMaxSize(int, int);
  12330. void SetMinSize(int, int);
  12331. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12332. void SetPosition(int, int);
  12333. void SetSize(int, int);
  12334. bool SetStyle(const String&, XMLFile = null);
  12335. bool SetStyle(const XMLElement&);
  12336. bool SetStyleAuto(XMLFile = null);
  12337. void SetView(Scene, Camera, bool = true);
  12338. void UpdateLayout();
  12339. const Variant& GetVar(const StringHash&);
  12340. // Properties:
  12341. bool animationEnabled;
  12342. /* readonly */
  12343. Array<Variant> attributeDefaults;
  12344. /* readonly */
  12345. Array<AttributeInfo> attributeInfos;
  12346. Array<Variant> attributes;
  12347. bool autoUpdate;
  12348. BlendMode blendMode;
  12349. IntRect border;
  12350. bool bringToBack;
  12351. bool bringToFront;
  12352. /* readonly */
  12353. Node cameraNode;
  12354. /* readonly */
  12355. String category;
  12356. /* readonly */
  12357. IntVector2 childOffset;
  12358. /* readonly */
  12359. Array<UIElement> children;
  12360. IntRect clipBorder;
  12361. bool clipChildren;
  12362. /* writeonly */
  12363. Color color;
  12364. /* readonly */
  12365. bool colorGradient;
  12366. Array<Color> colors;
  12367. /* readonly */
  12368. IntRect combinedScreenRect;
  12369. XMLFile defaultStyle;
  12370. /* readonly */
  12371. Texture2D depthTexture;
  12372. /* readonly */
  12373. float derivedOpacity;
  12374. /* readonly */
  12375. uint dragButtonCombo;
  12376. /* readonly */
  12377. int dragButtonCount;
  12378. uint dragDropMode;
  12379. bool editable;
  12380. bool elementEventSender;
  12381. bool enabled;
  12382. /* readonly */
  12383. bool enabledSelf;
  12384. /* readonly */
  12385. bool fixedHeight;
  12386. bool fixedHeightResizing;
  12387. /* readonly */
  12388. bool fixedSize;
  12389. /* readonly */
  12390. bool fixedWidth;
  12391. bool fixedWidthResizing;
  12392. bool focus;
  12393. FocusMode focusMode;
  12394. uint format;
  12395. int height;
  12396. HorizontalAlignment horizontalAlignment;
  12397. IntVector2 hoverOffset;
  12398. /* readonly */
  12399. bool hovering;
  12400. IntRect imageBorder;
  12401. IntRect imageRect;
  12402. int indent;
  12403. int indentSpacing;
  12404. /* readonly */
  12405. int indentWidth;
  12406. bool internal;
  12407. IntRect layoutBorder;
  12408. Vector2 layoutFlexScale;
  12409. LayoutMode layoutMode;
  12410. int layoutSpacing;
  12411. int maxHeight;
  12412. IntVector2 maxSize;
  12413. int maxWidth;
  12414. int minHeight;
  12415. IntVector2 minSize;
  12416. int minWidth;
  12417. bool modal;
  12418. bool modalAutoDismiss;
  12419. Color modalFrameColor;
  12420. IntVector2 modalFrameSize;
  12421. Color modalShadeColor;
  12422. bool movable;
  12423. String name;
  12424. /* readonly */
  12425. uint numAllChildren;
  12426. /* readonly */
  12427. uint numAttributes;
  12428. /* readonly */
  12429. uint numChildren;
  12430. ObjectAnimation objectAnimation;
  12431. float opacity;
  12432. UIElement parent;
  12433. IntVector2 position;
  12434. int priority;
  12435. /* readonly */
  12436. int refs;
  12437. /* readonly */
  12438. Texture2D renderTexture;
  12439. bool resizable;
  12440. IntRect resizeBorder;
  12441. /* readonly */
  12442. UIElement root;
  12443. /* readonly */
  12444. Scene scene;
  12445. /* readonly */
  12446. IntVector2 screenPosition;
  12447. bool selected;
  12448. IntVector2 size;
  12449. bool sortChildren;
  12450. String style;
  12451. bool temporary;
  12452. Texture texture;
  12453. bool tiled;
  12454. TraversalMode traversalMode;
  12455. /* readonly */
  12456. StringHash type;
  12457. /* readonly */
  12458. String typeName;
  12459. bool useDerivedOpacity;
  12460. /* readonly */
  12461. VariantMap vars;
  12462. VerticalAlignment verticalAlignment;
  12463. /* readonly */
  12464. Viewport viewport;
  12465. bool visible;
  12466. /* readonly */
  12467. bool visibleEffective;
  12468. /* readonly */
  12469. int weakRefs;
  12470. int width;
  12471. };
  12472. class Viewport
  12473. {
  12474. // Methods:
  12475. Ray GetScreenRay(int, int) const;
  12476. bool HasSubscribedToEvent(Object, const String&);
  12477. bool HasSubscribedToEvent(const String&);
  12478. Vector3 ScreenToWorldPoint(int, int, float) const;
  12479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12480. void SetRenderPath(XMLFile);
  12481. Vector2 WorldToScreenPoint(const Vector3&) const;
  12482. // Properties:
  12483. Camera camera;
  12484. /* readonly */
  12485. String category;
  12486. Camera cullCamera;
  12487. bool drawDebug;
  12488. IntRect rect;
  12489. /* readonly */
  12490. int refs;
  12491. RenderPath renderPath;
  12492. Scene scene;
  12493. /* readonly */
  12494. StringHash type;
  12495. /* readonly */
  12496. String typeName;
  12497. /* readonly */
  12498. int weakRefs;
  12499. };
  12500. class WeakHandle
  12501. {
  12502. // Methods:
  12503. RefCounted Get() const;
  12504. // Properties:
  12505. /* readonly */
  12506. bool expired;
  12507. /* readonly */
  12508. int refs;
  12509. /* readonly */
  12510. int weakRefs;
  12511. };
  12512. class Window
  12513. {
  12514. // Methods:
  12515. void AddChild(UIElement);
  12516. void ApplyAttributes();
  12517. void BringToFront();
  12518. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12519. void DisableLayoutUpdate();
  12520. IntVector2 ElementToScreen(const IntVector2&);
  12521. void EnableLayoutUpdate();
  12522. uint FindChild(UIElement) const;
  12523. Variant GetAttribute(const String&) const;
  12524. ValueAnimation GetAttributeAnimation(const String&) const;
  12525. float GetAttributeAnimationSpeed(const String&) const;
  12526. float GetAttributeAnimationTime(const String&) const;
  12527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12528. Variant GetAttributeDefault(const String&) const;
  12529. UIElement GetChild(const String&, bool = false) const;
  12530. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12531. Array<UIElement> GetChildren(bool = false) const;
  12532. UIElement GetElementEventSender() const;
  12533. bool GetInterceptNetworkUpdate(const String&) const;
  12534. uint GetNumChildren(bool) const;
  12535. bool HasSubscribedToEvent(Object, const String&);
  12536. bool HasSubscribedToEvent(const String&);
  12537. void InsertChild(uint, UIElement);
  12538. bool IsInside(IntVector2, bool);
  12539. bool IsInsideCombined(IntVector2, bool);
  12540. bool Load(File, bool = false);
  12541. bool Load(VectorBuffer&, bool = false);
  12542. bool LoadChildXML(XMLFile, XMLFile = null);
  12543. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12544. bool LoadJSON(const JSONValue&, bool = false);
  12545. bool LoadXML(File);
  12546. bool LoadXML(VectorBuffer&);
  12547. bool LoadXML(XMLFile, XMLFile);
  12548. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12549. bool LoadXML(const XMLElement&, bool = false);
  12550. void MarkNetworkUpdate() const;
  12551. void Remove();
  12552. void RemoveAllChildren();
  12553. void RemoveAttributeAnimation(const String&);
  12554. void RemoveChild(UIElement, uint = 0);
  12555. void RemoveChild(uint);
  12556. void RemoveInstanceDefault();
  12557. void RemoveObjectAnimation();
  12558. void ResetDeepEnabled();
  12559. void ResetToDefault();
  12560. bool Save(File) const;
  12561. bool Save(VectorBuffer&) const;
  12562. bool SaveJSON(JSONValue&) const;
  12563. bool SaveXML(File, const String& = "\t");
  12564. bool SaveXML(VectorBuffer&, const String& = "\t");
  12565. bool SaveXML(XMLElement&) const;
  12566. IntVector2 ScreenToElement(const IntVector2&);
  12567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12568. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12569. void SetAnimationTime(float);
  12570. bool SetAttribute(const String&, const Variant&);
  12571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12572. void SetAttributeAnimationSpeed(const String&, float);
  12573. void SetAttributeAnimationTime(const String&, float);
  12574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12575. void SetDeepEnabled(bool);
  12576. void SetEnabledRecursive(bool);
  12577. void SetFixedHeight(int);
  12578. void SetFixedSize(int, int);
  12579. void SetFixedWidth(int);
  12580. void SetFullImageRect();
  12581. void SetHoverOffset(int, int);
  12582. void SetInterceptNetworkUpdate(const String&, bool);
  12583. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12584. void SetMaxSize(int, int);
  12585. void SetMinSize(int, int);
  12586. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12587. void SetPosition(int, int);
  12588. void SetSize(int, int);
  12589. bool SetStyle(const String&, XMLFile = null);
  12590. bool SetStyle(const XMLElement&);
  12591. bool SetStyleAuto(XMLFile = null);
  12592. void UpdateLayout();
  12593. const Variant& GetVar(const StringHash&);
  12594. // Properties:
  12595. bool animationEnabled;
  12596. /* readonly */
  12597. Array<Variant> attributeDefaults;
  12598. /* readonly */
  12599. Array<AttributeInfo> attributeInfos;
  12600. Array<Variant> attributes;
  12601. BlendMode blendMode;
  12602. IntRect border;
  12603. bool bringToBack;
  12604. bool bringToFront;
  12605. /* readonly */
  12606. String category;
  12607. /* readonly */
  12608. IntVector2 childOffset;
  12609. /* readonly */
  12610. Array<UIElement> children;
  12611. IntRect clipBorder;
  12612. bool clipChildren;
  12613. /* writeonly */
  12614. Color color;
  12615. /* readonly */
  12616. bool colorGradient;
  12617. Array<Color> colors;
  12618. /* readonly */
  12619. IntRect combinedScreenRect;
  12620. XMLFile defaultStyle;
  12621. /* readonly */
  12622. float derivedOpacity;
  12623. /* readonly */
  12624. uint dragButtonCombo;
  12625. /* readonly */
  12626. int dragButtonCount;
  12627. uint dragDropMode;
  12628. bool editable;
  12629. bool elementEventSender;
  12630. bool enabled;
  12631. /* readonly */
  12632. bool enabledSelf;
  12633. /* readonly */
  12634. bool fixedHeight;
  12635. bool fixedHeightResizing;
  12636. /* readonly */
  12637. bool fixedSize;
  12638. /* readonly */
  12639. bool fixedWidth;
  12640. bool fixedWidthResizing;
  12641. bool focus;
  12642. FocusMode focusMode;
  12643. int height;
  12644. HorizontalAlignment horizontalAlignment;
  12645. IntVector2 hoverOffset;
  12646. /* readonly */
  12647. bool hovering;
  12648. IntRect imageBorder;
  12649. IntRect imageRect;
  12650. int indent;
  12651. int indentSpacing;
  12652. /* readonly */
  12653. int indentWidth;
  12654. bool internal;
  12655. IntRect layoutBorder;
  12656. Vector2 layoutFlexScale;
  12657. LayoutMode layoutMode;
  12658. int layoutSpacing;
  12659. int maxHeight;
  12660. IntVector2 maxSize;
  12661. int maxWidth;
  12662. int minHeight;
  12663. IntVector2 minSize;
  12664. int minWidth;
  12665. bool modal;
  12666. bool modalAutoDismiss;
  12667. Color modalFrameColor;
  12668. IntVector2 modalFrameSize;
  12669. Color modalShadeColor;
  12670. bool movable;
  12671. String name;
  12672. /* readonly */
  12673. uint numAllChildren;
  12674. /* readonly */
  12675. uint numAttributes;
  12676. /* readonly */
  12677. uint numChildren;
  12678. ObjectAnimation objectAnimation;
  12679. float opacity;
  12680. UIElement parent;
  12681. IntVector2 position;
  12682. int priority;
  12683. /* readonly */
  12684. int refs;
  12685. bool resizable;
  12686. IntRect resizeBorder;
  12687. /* readonly */
  12688. UIElement root;
  12689. /* readonly */
  12690. IntVector2 screenPosition;
  12691. bool selected;
  12692. IntVector2 size;
  12693. bool sortChildren;
  12694. String style;
  12695. bool temporary;
  12696. Texture texture;
  12697. bool tiled;
  12698. TraversalMode traversalMode;
  12699. /* readonly */
  12700. StringHash type;
  12701. /* readonly */
  12702. String typeName;
  12703. bool useDerivedOpacity;
  12704. /* readonly */
  12705. VariantMap vars;
  12706. VerticalAlignment verticalAlignment;
  12707. bool visible;
  12708. /* readonly */
  12709. bool visibleEffective;
  12710. /* readonly */
  12711. int weakRefs;
  12712. int width;
  12713. };
  12714. class XMLElement
  12715. {
  12716. // Methods:
  12717. XMLElement CreateChild(const String&);
  12718. String GetAttribute(const String& = String ( )) const;
  12719. String GetAttributeLower(const String&) const;
  12720. Array<String> GetAttributeNames() const;
  12721. String GetAttributeUpper(const String&) const;
  12722. bool GetBool(const String&) const;
  12723. BoundingBox GetBoundingBox() const;
  12724. XMLElement GetChild(const String& = String ( )) const;
  12725. Color GetColor(const String&) const;
  12726. double GetDouble(const String&) const;
  12727. float GetFloat(const String&) const;
  12728. int GetInt(const String&) const;
  12729. IntRect GetIntRect(const String&) const;
  12730. IntVector2 GetIntVector2(const String&) const;
  12731. Matrix3 GetMatrix3(const String&) const;
  12732. Matrix3x4 GetMatrix3x4(const String&) const;
  12733. Matrix4 GetMatrix4(const String&) const;
  12734. XMLElement GetNext(const String& = String ( )) const;
  12735. Quaternion GetQuaternion(const String&) const;
  12736. ResourceRef GetResourceRef() const;
  12737. ResourceRefList GetResourceRefList() const;
  12738. uint GetUInt(const String&) const;
  12739. String GetValue() const;
  12740. Variant GetVariant() const;
  12741. VariantMap GetVariantMap() const;
  12742. Array<Variant> GetVariantVector() const;
  12743. Vector2 GetVector2(const String&) const;
  12744. Vector3 GetVector3(const String&) const;
  12745. Vector4 GetVector4(const String&) const;
  12746. Variant GetVectorVariant(const String&) const;
  12747. bool HasAttribute(const String&) const;
  12748. bool HasChild(const String&) const;
  12749. bool RemoveAttribute(const String& = String ( ));
  12750. bool RemoveChild(const String&);
  12751. bool RemoveChild(const XMLElement&);
  12752. bool RemoveChildren(const String& = String ( ));
  12753. XPathResultSet Select(const String&);
  12754. XPathResultSet SelectPrepared(const XPathQuery&);
  12755. XMLElement SelectSingle(const String&);
  12756. XMLElement SelectSinglePrepared(const XPathQuery&);
  12757. bool SetAttribute(const String&);
  12758. bool SetAttribute(const String&, const String&);
  12759. bool SetBool(const String&, bool);
  12760. bool SetBoundingBox(const BoundingBox&);
  12761. bool SetColor(const String&, const Color&);
  12762. bool SetDouble(const String&, double);
  12763. bool SetFloat(const String&, float);
  12764. bool SetInt(const String&, int);
  12765. bool SetIntRect(const String&, const IntRect&);
  12766. bool SetIntVector2(const String&, const IntVector2&);
  12767. bool SetMatrix3(const String&, const Matrix3&);
  12768. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12769. bool SetMatrix4(const String&, const Matrix4&);
  12770. bool SetQuaternion(const String&, const Quaternion&);
  12771. bool SetResourceRef(const String&, const ResourceRef&);
  12772. bool SetResourceRefList(const String&, const ResourceRefList&);
  12773. bool SetUInt(const String&, uint);
  12774. bool SetValue(const String&);
  12775. bool SetVariant(const Variant&);
  12776. bool SetVariantMap(const VariantMap&);
  12777. bool SetVariantVector(Array<Variant>);
  12778. bool SetVector2(const String&, const Vector2&);
  12779. bool SetVector3(const String&, const Vector3&);
  12780. bool SetVector4(const String&, const Vector4&);
  12781. bool SetVectorVariant(const String&, const Variant&);
  12782. // Properties:
  12783. /* readonly */
  12784. XMLFile file;
  12785. /* readonly */
  12786. bool isNull;
  12787. /* readonly */
  12788. String name;
  12789. /* readonly */
  12790. XMLElement nextResult;
  12791. /* readonly */
  12792. bool notNull;
  12793. /* readonly */
  12794. uint numAttributes;
  12795. /* readonly */
  12796. XMLElement parent;
  12797. String value;
  12798. };
  12799. class XMLFile
  12800. {
  12801. // Methods:
  12802. XMLElement CreateRoot(const String&);
  12803. bool FromString(const String&);
  12804. XMLElement GetRoot(const String& = String ( ));
  12805. bool HasSubscribedToEvent(Object, const String&);
  12806. bool HasSubscribedToEvent(const String&);
  12807. bool Load(File);
  12808. bool Load(VectorBuffer&);
  12809. void Patch(XMLElement);
  12810. void Patch(XMLFile);
  12811. bool Save(File) const;
  12812. bool Save(File, const String&) const;
  12813. bool Save(VectorBuffer&) const;
  12814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12815. String ToString(const String& = String ( "\t" )) const;
  12816. // Properties:
  12817. /* readonly */
  12818. String category;
  12819. /* readonly */
  12820. uint memoryUse;
  12821. String name;
  12822. /* readonly */
  12823. int refs;
  12824. /* readonly */
  12825. XMLElement root;
  12826. /* readonly */
  12827. StringHash type;
  12828. /* readonly */
  12829. String typeName;
  12830. /* readonly */
  12831. uint useTimer;
  12832. /* readonly */
  12833. int weakRefs;
  12834. };
  12835. class XPathQuery
  12836. {
  12837. // Methods:
  12838. void Bind();
  12839. void Clear();
  12840. XPathResultSet Evaluate(XMLElement);
  12841. bool EvaluateToBool(XMLElement);
  12842. float EvaluateToFloat(XMLElement);
  12843. String EvaluateToString(XMLElement);
  12844. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12845. bool SetVariable(const String&, bool);
  12846. bool SetVariable(const String&, const String&);
  12847. bool SetVariable(const String&, const XPathResultSet&);
  12848. bool SetVariable(const String&, float);
  12849. // Properties:
  12850. String query;
  12851. };
  12852. class XPathResultSet
  12853. {
  12854. // Properties:
  12855. /* readonly */
  12856. bool empty;
  12857. /* readonly */
  12858. XMLElement firstResult;
  12859. /* readonly */
  12860. uint size;
  12861. };
  12862. class Zone
  12863. {
  12864. // Methods:
  12865. void ApplyAttributes();
  12866. void DrawDebugGeometry(DebugRenderer, bool);
  12867. Variant GetAttribute(const String&) const;
  12868. ValueAnimation GetAttributeAnimation(const String&) const;
  12869. float GetAttributeAnimationSpeed(const String&) const;
  12870. float GetAttributeAnimationTime(const String&) const;
  12871. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12872. Variant GetAttributeDefault(const String&) const;
  12873. bool GetInterceptNetworkUpdate(const String&) const;
  12874. bool HasSubscribedToEvent(Object, const String&);
  12875. bool HasSubscribedToEvent(const String&);
  12876. bool IsInView(Camera) const;
  12877. bool Load(File, bool = false);
  12878. bool Load(VectorBuffer&, bool = false);
  12879. bool LoadJSON(const JSONValue&, bool = false);
  12880. bool LoadXML(const XMLElement&, bool = false);
  12881. void MarkNetworkUpdate() const;
  12882. void Remove();
  12883. void RemoveAttributeAnimation(const String&);
  12884. void RemoveInstanceDefault();
  12885. void RemoveObjectAnimation();
  12886. void ResetToDefault();
  12887. bool Save(File) const;
  12888. bool Save(VectorBuffer&) const;
  12889. bool SaveJSON(JSONValue&) const;
  12890. bool SaveXML(XMLElement&) const;
  12891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12892. void SetAnimationTime(float);
  12893. bool SetAttribute(const String&, const Variant&);
  12894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12895. void SetAttributeAnimationSpeed(const String&, float);
  12896. void SetAttributeAnimationTime(const String&, float);
  12897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12898. void SetInterceptNetworkUpdate(const String&, bool);
  12899. // Properties:
  12900. Color ambientColor;
  12901. /* readonly */
  12902. Color ambientEndColor;
  12903. bool ambientGradient;
  12904. /* readonly */
  12905. Color ambientStartColor;
  12906. bool animationEnabled;
  12907. /* readonly */
  12908. Array<Variant> attributeDefaults;
  12909. /* readonly */
  12910. Array<AttributeInfo> attributeInfos;
  12911. Array<Variant> attributes;
  12912. BoundingBox boundingBox;
  12913. bool castShadows;
  12914. /* readonly */
  12915. String category;
  12916. float drawDistance;
  12917. bool enabled;
  12918. /* readonly */
  12919. bool enabledEffective;
  12920. Color fogColor;
  12921. float fogEnd;
  12922. float fogHeight;
  12923. float fogHeightScale;
  12924. float fogStart;
  12925. bool heightFog;
  12926. /* readonly */
  12927. uint id;
  12928. /* readonly */
  12929. bool inView;
  12930. /* readonly */
  12931. Matrix3x4 inverseWorldTransform;
  12932. uint lightMask;
  12933. float lodBias;
  12934. uint maxLights;
  12935. /* readonly */
  12936. Node node;
  12937. /* readonly */
  12938. uint numAttributes;
  12939. ObjectAnimation objectAnimation;
  12940. bool occludee;
  12941. bool occluder;
  12942. bool override;
  12943. int priority;
  12944. /* readonly */
  12945. int refs;
  12946. float shadowDistance;
  12947. uint shadowMask;
  12948. bool temporary;
  12949. /* readonly */
  12950. StringHash type;
  12951. /* readonly */
  12952. String typeName;
  12953. uint viewMask;
  12954. /* readonly */
  12955. int weakRefs;
  12956. /* readonly */
  12957. BoundingBox worldBoundingBox;
  12958. uint zoneMask;
  12959. Texture zoneTexture;
  12960. };
  12961. // Enumerations
  12962. enum BlendMode
  12963. {
  12964. BLEND_REPLACE,
  12965. BLEND_ADD,
  12966. BLEND_MULTIPLY,
  12967. BLEND_ALPHA,
  12968. BLEND_ADDALPHA,
  12969. BLEND_PREMULALPHA,
  12970. BLEND_INVDESTALPHA,
  12971. BLEND_SUBTRACT,
  12972. BLEND_SUBTRACTALPHA,
  12973. };
  12974. enum BodyType2D
  12975. {
  12976. BT_STATIC,
  12977. BT_KINEMATIC,
  12978. BT_DYNAMIC,
  12979. };
  12980. enum CollisionEventMode
  12981. {
  12982. COLLISION_NEVER,
  12983. COLLISION_ACTIVE,
  12984. COLLISION_ALWAYS,
  12985. };
  12986. enum CompareMode
  12987. {
  12988. CMP_ALWAYS,
  12989. CMP_EQUAL,
  12990. CMP_NOTEQUAL,
  12991. CMP_LESS,
  12992. CMP_LESSEQUAL,
  12993. CMP_GREATER,
  12994. CMP_GREATEREQUAL,
  12995. };
  12996. enum CompressedFormat
  12997. {
  12998. CF_NONE,
  12999. CF_RGBA,
  13000. CF_DXT1,
  13001. CF_DXT3,
  13002. CF_DXT5,
  13003. CF_ETC1,
  13004. CF_PVRTC_RGB_2BPP,
  13005. CF_PVRTC_RGBA_2BPP,
  13006. CF_PVRTC_RGB_4BPP,
  13007. CF_PVRTC_RGBA_4BPP,
  13008. };
  13009. enum ConstraintType
  13010. {
  13011. CONSTRAINT_POINT,
  13012. CONSTRAINT_HINGE,
  13013. CONSTRAINT_SLIDER,
  13014. CONSTRAINT_CONETWIST,
  13015. };
  13016. enum Corner
  13017. {
  13018. C_TOPLEFT,
  13019. C_TOPRIGHT,
  13020. C_BOTTOMLEFT,
  13021. C_BOTTOMRIGHT,
  13022. };
  13023. enum CreateMode
  13024. {
  13025. REPLICATED,
  13026. LOCAL,
  13027. };
  13028. enum CrowdAgentRequestedTarget
  13029. {
  13030. CA_REQUESTEDTARGET_NONE,
  13031. CA_REQUESTEDTARGET_POSITION,
  13032. CA_REQUESTEDTARGET_VELOCITY,
  13033. };
  13034. enum CrowdAgentState
  13035. {
  13036. CA_STATE_INVALID,
  13037. CA_STATE_WALKING,
  13038. CA_STATE_OFFMESH,
  13039. };
  13040. enum CrowdAgentTargetState
  13041. {
  13042. CA_TARGET_NONE,
  13043. CA_TARGET_FAILED,
  13044. CA_TARGET_VALID,
  13045. CA_TARGET_REQUESTING,
  13046. CA_TARGET_WAITINGFORQUEUE,
  13047. CA_TARGET_WAITINGFORPATH,
  13048. CA_TARGET_VELOCITY,
  13049. };
  13050. enum CubeMapFace
  13051. {
  13052. FACE_POSITIVE_X,
  13053. FACE_NEGATIVE_X,
  13054. FACE_POSITIVE_Y,
  13055. FACE_NEGATIVE_Y,
  13056. FACE_POSITIVE_Z,
  13057. FACE_NEGATIVE_Z,
  13058. };
  13059. enum CullMode
  13060. {
  13061. CULL_NONE,
  13062. CULL_CCW,
  13063. CULL_CW,
  13064. };
  13065. enum CursorShape
  13066. {
  13067. CS_NORMAL,
  13068. CS_IBEAM,
  13069. CS_CROSS,
  13070. CS_RESIZEVERTICAL,
  13071. CS_RESIZEDIAGONAL_TOPRIGHT,
  13072. CS_RESIZEHORIZONTAL,
  13073. CS_RESIZEDIAGONAL_TOPLEFT,
  13074. CS_RESIZE_ALL,
  13075. CS_ACCEPTDROP,
  13076. CS_REJECTDROP,
  13077. CS_BUSY,
  13078. CS_BUSY_ARROW,
  13079. };
  13080. enum DBAPI
  13081. {
  13082. DBAPI_SQLITE,
  13083. DBAPI_ODBC,
  13084. };
  13085. enum DumpMode
  13086. {
  13087. DOXYGEN,
  13088. C_HEADER,
  13089. };
  13090. enum EmitterType
  13091. {
  13092. EMITTER_SPHERE,
  13093. EMITTER_BOX,
  13094. };
  13095. enum EmitterType2D
  13096. {
  13097. EMITTER_TYPE_GRAVITY,
  13098. EMITTER_TYPE_RADIAL,
  13099. };
  13100. enum FaceCameraMode
  13101. {
  13102. FC_NONE,
  13103. FC_ROTATE_XYZ,
  13104. FC_ROTATE_Y,
  13105. FC_LOOKAT_XYZ,
  13106. FC_LOOKAT_Y,
  13107. FC_DIRECTION,
  13108. };
  13109. enum FileMode
  13110. {
  13111. FILE_READ,
  13112. FILE_WRITE,
  13113. FILE_READWRITE,
  13114. };
  13115. enum FillMode
  13116. {
  13117. FILL_SOLID,
  13118. FILL_WIREFRAME,
  13119. FILL_POINT,
  13120. };
  13121. enum FocusMode
  13122. {
  13123. FM_NOTFOCUSABLE,
  13124. FM_RESETFOCUS,
  13125. FM_FOCUSABLE,
  13126. FM_FOCUSABLE_DEFOCUSABLE,
  13127. };
  13128. enum HighlightMode
  13129. {
  13130. HM_NEVER,
  13131. HM_FOCUS,
  13132. HM_ALWAYS,
  13133. };
  13134. enum HorizontalAlignment
  13135. {
  13136. HA_LEFT,
  13137. HA_CENTER,
  13138. HA_RIGHT,
  13139. };
  13140. enum HttpRequestState
  13141. {
  13142. HTTP_INITIALIZING,
  13143. HTTP_ERROR,
  13144. HTTP_OPEN,
  13145. HTTP_CLOSED,
  13146. };
  13147. enum InterpMethod
  13148. {
  13149. IM_LINEAR,
  13150. IM_SPLINE,
  13151. };
  13152. enum InterpolationMode
  13153. {
  13154. BEZIER_CURVE,
  13155. CATMULL_ROM_CURVE,
  13156. LINEAR_CURVE,
  13157. CATMULL_ROM_FULL_CURVE,
  13158. };
  13159. enum Intersection
  13160. {
  13161. OUTSIDE,
  13162. INTERSECTS,
  13163. INSIDE,
  13164. };
  13165. enum JSONValueType
  13166. {
  13167. JSON_NULL,
  13168. JSON_BOOL,
  13169. JSON_NUMBER,
  13170. JSON_STRING,
  13171. JSON_ARRAY,
  13172. JSON_OBJECT,
  13173. };
  13174. enum LayoutMode
  13175. {
  13176. LM_FREE,
  13177. LM_HORIZONTAL,
  13178. LM_VERTICAL,
  13179. };
  13180. enum LightType
  13181. {
  13182. LIGHT_DIRECTIONAL,
  13183. LIGHT_SPOT,
  13184. LIGHT_POINT,
  13185. };
  13186. enum LoadMode
  13187. {
  13188. LOAD_RESOURCES_ONLY,
  13189. LOAD_SCENE,
  13190. LOAD_SCENE_AND_RESOURCES,
  13191. };
  13192. enum LoopMode2D
  13193. {
  13194. LM_DEFAULT,
  13195. LM_FORCE_LOOPED,
  13196. LM_FORCE_CLAMPED,
  13197. };
  13198. enum MouseMode
  13199. {
  13200. MM_ABSOLUTE,
  13201. MM_RELATIVE,
  13202. MM_WRAP,
  13203. MM_FREE,
  13204. };
  13205. enum NavigationPushiness
  13206. {
  13207. NAVIGATIONPUSHINESS_LOW,
  13208. NAVIGATIONPUSHINESS_MEDIUM,
  13209. NAVIGATIONPUSHINESS_HIGH,
  13210. };
  13211. enum NavigationQuality
  13212. {
  13213. NAVIGATIONQUALITY_LOW,
  13214. NAVIGATIONQUALITY_MEDIUM,
  13215. NAVIGATIONQUALITY_HIGH,
  13216. };
  13217. enum NavmeshPartitionType
  13218. {
  13219. NAVMESH_PARTITION_WATERSHED,
  13220. NAVMESH_PARTITION_MONOTONE,
  13221. };
  13222. enum Orientation
  13223. {
  13224. O_HORIZONTAL,
  13225. O_VERTICAL,
  13226. };
  13227. enum Orientation2D
  13228. {
  13229. O_ORTHOGONAL,
  13230. O_ISOMETRIC,
  13231. O_STAGGERED,
  13232. };
  13233. enum PassLightingMode
  13234. {
  13235. LIGHTING_UNLIT,
  13236. LIGHTING_PERVERTEX,
  13237. LIGHTING_PERPIXEL,
  13238. };
  13239. enum PrimitiveType
  13240. {
  13241. TRIANGLE_LIST,
  13242. LINE_LIST,
  13243. POINT_LIST,
  13244. TRIANGLE_STRIP,
  13245. LINE_STRIP,
  13246. TRIANGLE_FAN,
  13247. };
  13248. enum RayQueryLevel
  13249. {
  13250. RAY_AABB,
  13251. RAY_OBB,
  13252. RAY_TRIANGLE,
  13253. RAY_TRIANGLE_UV,
  13254. };
  13255. enum RenderCommandSortMode
  13256. {
  13257. SORT_FRONTTOBACK,
  13258. SORT_BACKTOFRONT,
  13259. };
  13260. enum RenderCommandType
  13261. {
  13262. CMD_NONE,
  13263. CMD_CLEAR,
  13264. CMD_SCENEPASS,
  13265. CMD_QUAD,
  13266. CMD_FORWARDLIGHTS,
  13267. CMD_LIGHTVOLUMES,
  13268. CMD_RENDERUI,
  13269. };
  13270. enum RenderSurfaceUpdateMode
  13271. {
  13272. SURFACE_MANUALUPDATE,
  13273. SURFACE_UPDATEVISIBLE,
  13274. SURFACE_UPDATEALWAYS,
  13275. };
  13276. enum RenderTargetSizeMode
  13277. {
  13278. SIZE_ABSOLUTE,
  13279. SIZE_VIEWPORTDIVISOR,
  13280. SIZE_VIEWPORTMULTIPLIER,
  13281. };
  13282. enum ShadowQuality
  13283. {
  13284. SHADOWQUALITY_SIMPLE_16BIT,
  13285. SHADOWQUALITY_SIMPLE_24BIT,
  13286. SHADOWQUALITY_PCF_16BIT,
  13287. SHADOWQUALITY_PCF_24BIT,
  13288. SHADOWQUALITY_VSM,
  13289. SHADOWQUALITY_BLUR_VSM,
  13290. };
  13291. enum ShapeType
  13292. {
  13293. SHAPE_BOX,
  13294. SHAPE_SPHERE,
  13295. SHAPE_STATICPLANE,
  13296. SHAPE_CYLINDER,
  13297. SHAPE_CAPSULE,
  13298. SHAPE_CONE,
  13299. SHAPE_TRIANGLEMESH,
  13300. SHAPE_CONVEXHULL,
  13301. SHAPE_TERRAIN,
  13302. };
  13303. enum TextEffect
  13304. {
  13305. TE_NONE,
  13306. TE_SHADOW,
  13307. TE_STROKE,
  13308. };
  13309. enum TextureAddressMode
  13310. {
  13311. ADDRESS_WRAP,
  13312. ADDRESS_MIRROR,
  13313. ADDRESS_CLAMP,
  13314. ADDRESS_BORDER,
  13315. };
  13316. enum TextureCoordinate
  13317. {
  13318. COORD_U,
  13319. COORD_V,
  13320. COORD_W,
  13321. };
  13322. enum TextureFilterMode
  13323. {
  13324. FILTER_NEAREST,
  13325. FILTER_BILINEAR,
  13326. FILTER_TRILINEAR,
  13327. FILTER_ANISOTROPIC,
  13328. FILTER_DEFAULT,
  13329. };
  13330. enum TextureUnit
  13331. {
  13332. TU_DIFFUSE,
  13333. TU_ALBEDOBUFFER,
  13334. TU_NORMAL,
  13335. TU_NORMALBUFFER,
  13336. TU_SPECULAR,
  13337. TU_EMISSIVE,
  13338. TU_ENVIRONMENT,
  13339. TU_LIGHTRAMP,
  13340. TU_LIGHTSHAPE,
  13341. TU_SHADOWMAP,
  13342. TU_CUSTOM1,
  13343. TU_CUSTOM2,
  13344. TU_VOLUMEMAP,
  13345. TU_FACESELECT,
  13346. TU_INDIRECTION,
  13347. TU_DEPTHBUFFER,
  13348. TU_LIGHTBUFFER,
  13349. TU_ZONE,
  13350. MAX_MATERIAL_TEXTURE_UNITS,
  13351. MAX_TEXTURE_UNITS,
  13352. };
  13353. enum TextureUsage
  13354. {
  13355. TEXTURE_STATIC,
  13356. TEXTURE_DYNAMIC,
  13357. TEXTURE_RENDERTARGET,
  13358. TEXTURE_DEPTHSTENCIL,
  13359. };
  13360. enum TileMapLayerType2D
  13361. {
  13362. LT_TILE_LAYER,
  13363. LT_OBJECT_GROUP,
  13364. LT_IMAGE_LAYER,
  13365. LT_INVALID,
  13366. };
  13367. enum TileObjectType2D
  13368. {
  13369. OT_RECTANGLE,
  13370. OT_ELLIPSE,
  13371. OT_POLYGON,
  13372. OT_POLYLINE,
  13373. OT_TILE,
  13374. OT_INVALID,
  13375. };
  13376. enum TransformSpace
  13377. {
  13378. TS_LOCAL,
  13379. TS_PARENT,
  13380. TS_WORLD,
  13381. };
  13382. enum TraversalMode
  13383. {
  13384. TM_BREADTH_FIRST,
  13385. TM_DEPTH_FIRST,
  13386. };
  13387. enum VariantType
  13388. {
  13389. VAR_NONE,
  13390. VAR_INT,
  13391. VAR_BOOL,
  13392. VAR_FLOAT,
  13393. VAR_VECTOR2,
  13394. VAR_VECTOR3,
  13395. VAR_VECTOR4,
  13396. VAR_QUATERNION,
  13397. VAR_COLOR,
  13398. VAR_STRING,
  13399. VAR_BUFFER,
  13400. VAR_VOIDPTR,
  13401. VAR_RESOURCEREF,
  13402. VAR_RESOURCEREFLIST,
  13403. VAR_VARIANTVECTOR,
  13404. VAR_VARIANTMAP,
  13405. VAR_INTRECT,
  13406. VAR_INTVECTOR2,
  13407. VAR_PTR,
  13408. VAR_MATRIX3,
  13409. VAR_MATRIX3X4,
  13410. VAR_MATRIX4,
  13411. VAR_DOUBLE,
  13412. VAR_STRINGVECTOR,
  13413. };
  13414. enum VerticalAlignment
  13415. {
  13416. VA_TOP,
  13417. VA_CENTER,
  13418. VA_BOTTOM,
  13419. };
  13420. enum WrapMode
  13421. {
  13422. WM_LOOP,
  13423. WM_ONCE,
  13424. WM_CLAMP,
  13425. };
  13426. // Global functions
  13427. float Abs(float);
  13428. float Acos(float);
  13429. String AddTrailingSlash(const String&);
  13430. float Asin(float);
  13431. float Atan(float);
  13432. float Atan2(float, float);
  13433. float Ceil(float);
  13434. float Clamp(float, float, float);
  13435. int Clamp(int, int, int);
  13436. void ClearDelayedExecute(const String& = String ( ));
  13437. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13438. float Cos(float);
  13439. uint CountSetBits(uint);
  13440. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13441. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13442. bool Equals(float, float);
  13443. void ErrorDialog(const String&, const String&);
  13444. float Floor(float);
  13445. uint GetAlphaFormat();
  13446. Array<String> GetArguments();
  13447. String GetConsoleInput();
  13448. uint GetDepthStencilFormat();
  13449. Object GetEventSender();
  13450. String GetExtension(const String&, bool = true);
  13451. String GetFileName(const String&);
  13452. String GetFileNameAndExtension(const String&, bool = false);
  13453. String GetFileSizeString(uint64);
  13454. uint GetFloat16Format();
  13455. uint GetFloat32Format();
  13456. uint GetFormat(const String&);
  13457. String GetInternalPath(const String&);
  13458. uint GetLinearDepthFormat();
  13459. uint GetLuminanceAlphaFormat();
  13460. uint GetLuminanceFormat();
  13461. uint GetMaxBones();
  13462. String GetMiniDumpDir();
  13463. uint GetNumLogicalCPUs();
  13464. uint GetNumPhysicalCPUs();
  13465. Array<String> GetObjectCategories();
  13466. Array<String> GetObjectsByCategory(const String&);
  13467. String GetParentPath(const String&);
  13468. String GetPath(const String&);
  13469. String GetPlatform();
  13470. uint GetRG16Format();
  13471. uint GetRGBA16Format();
  13472. uint GetRGBAFloat16Format();
  13473. uint GetRGBAFloat32Format();
  13474. uint GetRGBAFormat();
  13475. uint GetRGBFormat();
  13476. uint GetRGFloat16Format();
  13477. uint GetRGFloat32Format();
  13478. uint GetRandomSeed();
  13479. uint GetReadableDepthFormat();
  13480. String GetTextureUnitName(TextureUnit);
  13481. bool HasSubscribedToEvent(Object, const String&);
  13482. bool HasSubscribedToEvent(const String&);
  13483. bool IsAbsolutePath(const String&);
  13484. bool IsAlpha(uint);
  13485. bool IsDigit(uint);
  13486. bool IsNaN(float);
  13487. bool IsPowerOfTwo(uint);
  13488. String Join(Array<String>&, const String&);
  13489. float Lerp(float, float, float);
  13490. void MarkNetworkUpdate();
  13491. float Max(float, float);
  13492. int Max(int, int);
  13493. float Min(float, float);
  13494. int Min(int, int);
  13495. float Mod(float, float);
  13496. uint NextPowerOfTwo(uint);
  13497. void OpenConsoleWindow();
  13498. float Pow(float, float);
  13499. void Print(bool, bool = false);
  13500. void Print(const String&, bool = false);
  13501. void Print(const Variant&, bool = false);
  13502. void Print(float, bool = false);
  13503. void Print(int, bool = false);
  13504. void Print(uint, bool = false);
  13505. void PrintCallStack(bool = false);
  13506. float Random();
  13507. float Random(float);
  13508. float Random(float, float);
  13509. int RandomInt();
  13510. int RandomInt(int);
  13511. int RandomInt(int, int);
  13512. float RandomNormal(float, float);
  13513. void Remove();
  13514. String RemoveTrailingSlash(const String&);
  13515. String ReplaceExtension(const String&, const String&);
  13516. uint SDBMHash(uint, uint8);
  13517. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13518. void SetMiniDumpDir(const String&);
  13519. void SetRandomSeed(uint);
  13520. float Sign(float);
  13521. float Sin(float);
  13522. float SmoothStep(float, float, float);
  13523. float Sqrt(float);
  13524. const String& GetTypeName(StringHash);
  13525. void SubscribeToEvent(Object, const String&, const String&);
  13526. void SubscribeToEvent(const String&, const String&);
  13527. float Tan(float);
  13528. uint ToLower(uint);
  13529. String ToStringHex(int);
  13530. uint ToUpper(uint);
  13531. void UnsubscribeFromAllEvents();
  13532. void UnsubscribeFromAllEventsExcept(Array<String>);
  13533. void UnsubscribeFromEvent(Object, const String&);
  13534. void UnsubscribeFromEvent(const String&);
  13535. void UnsubscribeFromEvents(Object);
  13536. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13537. // Global properties
  13538. DBAPI DBAPI;
  13539. Audio audio;
  13540. ResourceCache cache;
  13541. Console console;
  13542. Database database;
  13543. DebugHud debugHud;
  13544. DebugRenderer debugRenderer;
  13545. Engine engine;
  13546. FileSystem fileSystem;
  13547. Graphics graphics;
  13548. Input input;
  13549. Localization localization;
  13550. Log log;
  13551. Network network;
  13552. Node node;
  13553. Octree octree;
  13554. PhysicsWorld physicsWorld;
  13555. PhysicsWorld2D physicsWorld2D;
  13556. Renderer renderer;
  13557. ResourceCache resourceCache;
  13558. Scene scene;
  13559. Script script;
  13560. ScriptFile scriptFile;
  13561. ScriptInstance self;
  13562. Time time;
  13563. UI ui;
  13564. // Global constants
  13565. uint AM_COMPONENTID;
  13566. uint AM_DEFAULT;
  13567. uint AM_FILE;
  13568. uint AM_LATESTDATA;
  13569. uint AM_NET;
  13570. uint AM_NODEID;
  13571. uint AM_NODEIDVECTOR;
  13572. uint AM_NOEDIT;
  13573. Color BLACK;
  13574. Color BLUE;
  13575. uint8 CHANNEL_POSITION;
  13576. uint8 CHANNEL_ROTATION;
  13577. uint8 CHANNEL_SCALE;
  13578. uint CLEAR_COLOR;
  13579. uint CLEAR_DEPTH;
  13580. uint CLEAR_STENCIL;
  13581. int CONTROLLER_AXIS_LEFTX;
  13582. int CONTROLLER_AXIS_LEFTY;
  13583. int CONTROLLER_AXIS_RIGHTX;
  13584. int CONTROLLER_AXIS_RIGHTY;
  13585. int CONTROLLER_AXIS_TRIGGERLEFT;
  13586. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13587. int CONTROLLER_BUTTON_A;
  13588. int CONTROLLER_BUTTON_B;
  13589. int CONTROLLER_BUTTON_BACK;
  13590. int CONTROLLER_BUTTON_DPAD_DOWN;
  13591. int CONTROLLER_BUTTON_DPAD_LEFT;
  13592. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13593. int CONTROLLER_BUTTON_DPAD_UP;
  13594. int CONTROLLER_BUTTON_GUIDE;
  13595. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13596. int CONTROLLER_BUTTON_LEFTSTICK;
  13597. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13598. int CONTROLLER_BUTTON_RIGHTSTICK;
  13599. int CONTROLLER_BUTTON_START;
  13600. int CONTROLLER_BUTTON_X;
  13601. int CONTROLLER_BUTTON_Y;
  13602. Color CYAN;
  13603. uint DD_DISABLED;
  13604. uint DD_SOURCE;
  13605. uint DD_SOURCE_AND_TARGET;
  13606. uint DD_TARGET;
  13607. uint DEBUGHUD_SHOW_ALL;
  13608. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13609. uint DEBUGHUD_SHOW_MEMORY;
  13610. uint DEBUGHUD_SHOW_MODE;
  13611. uint DEBUGHUD_SHOW_NONE;
  13612. uint DEBUGHUD_SHOW_PROFILER;
  13613. uint DEBUGHUD_SHOW_STATS;
  13614. uint DEFAULT_LIGHTMASK;
  13615. uint DEFAULT_VIEWMASK;
  13616. uint DRAWABLE_ANY;
  13617. uint DRAWABLE_GEOMETRY;
  13618. uint DRAWABLE_GEOMETRY2D;
  13619. uint DRAWABLE_LIGHT;
  13620. uint DRAWABLE_ZONE;
  13621. uint FIRST_LOCAL_ID;
  13622. uint FIRST_REPLICATED_ID;
  13623. Color GRAY;
  13624. Color GREEN;
  13625. int HAT_CENTER;
  13626. int HAT_DOWN;
  13627. int HAT_LEFT;
  13628. int HAT_RIGHT;
  13629. int HAT_UP;
  13630. int KEY_0;
  13631. int KEY_1;
  13632. int KEY_2;
  13633. int KEY_3;
  13634. int KEY_4;
  13635. int KEY_5;
  13636. int KEY_6;
  13637. int KEY_7;
  13638. int KEY_8;
  13639. int KEY_9;
  13640. int KEY_A;
  13641. int KEY_ALT;
  13642. int KEY_APPLICATION;
  13643. int KEY_B;
  13644. int KEY_BACKSPACE;
  13645. int KEY_C;
  13646. int KEY_CAPSLOCK;
  13647. int KEY_CTRL;
  13648. int KEY_D;
  13649. int KEY_DELETE;
  13650. int KEY_DOWN;
  13651. int KEY_E;
  13652. int KEY_END;
  13653. int KEY_ESC;
  13654. int KEY_F;
  13655. int KEY_F1;
  13656. int KEY_F10;
  13657. int KEY_F11;
  13658. int KEY_F12;
  13659. int KEY_F13;
  13660. int KEY_F14;
  13661. int KEY_F15;
  13662. int KEY_F16;
  13663. int KEY_F17;
  13664. int KEY_F18;
  13665. int KEY_F19;
  13666. int KEY_F2;
  13667. int KEY_F20;
  13668. int KEY_F21;
  13669. int KEY_F22;
  13670. int KEY_F23;
  13671. int KEY_F24;
  13672. int KEY_F3;
  13673. int KEY_F4;
  13674. int KEY_F5;
  13675. int KEY_F6;
  13676. int KEY_F7;
  13677. int KEY_F8;
  13678. int KEY_F9;
  13679. int KEY_G;
  13680. int KEY_GUI;
  13681. int KEY_H;
  13682. int KEY_HOME;
  13683. int KEY_I;
  13684. int KEY_INSERT;
  13685. int KEY_J;
  13686. int KEY_K;
  13687. int KEY_KP_0;
  13688. int KEY_KP_1;
  13689. int KEY_KP_2;
  13690. int KEY_KP_3;
  13691. int KEY_KP_4;
  13692. int KEY_KP_5;
  13693. int KEY_KP_6;
  13694. int KEY_KP_7;
  13695. int KEY_KP_8;
  13696. int KEY_KP_9;
  13697. int KEY_KP_DIVIDE;
  13698. int KEY_KP_ENTER;
  13699. int KEY_KP_MINUS;
  13700. int KEY_KP_MULTIPLY;
  13701. int KEY_KP_PERIOD;
  13702. int KEY_KP_PLUS;
  13703. int KEY_L;
  13704. int KEY_LALT;
  13705. int KEY_LCTRL;
  13706. int KEY_LEFT;
  13707. int KEY_LGUI;
  13708. int KEY_LSHIFT;
  13709. int KEY_M;
  13710. int KEY_N;
  13711. int KEY_NUMLOCKCLEAR;
  13712. int KEY_O;
  13713. int KEY_P;
  13714. int KEY_PAGEDOWN;
  13715. int KEY_PAGEUP;
  13716. int KEY_PAUSE;
  13717. int KEY_PRINTSCREEN;
  13718. int KEY_Q;
  13719. int KEY_R;
  13720. int KEY_RALT;
  13721. int KEY_RCTRL;
  13722. int KEY_RETURN;
  13723. int KEY_RETURN2;
  13724. int KEY_RGUI;
  13725. int KEY_RIGHT;
  13726. int KEY_RSHIFT;
  13727. int KEY_S;
  13728. int KEY_SCROLLLOCK;
  13729. int KEY_SELECT;
  13730. int KEY_SHIFT;
  13731. int KEY_SPACE;
  13732. int KEY_T;
  13733. int KEY_TAB;
  13734. int KEY_U;
  13735. int KEY_UP;
  13736. int KEY_V;
  13737. int KEY_W;
  13738. int KEY_X;
  13739. int KEY_Y;
  13740. int KEY_Z;
  13741. uint LAST_LOCAL_ID;
  13742. uint LAST_REPLICATED_ID;
  13743. int LOG_DEBUG;
  13744. int LOG_ERROR;
  13745. int LOG_INFO;
  13746. int LOG_NONE;
  13747. int LOG_WARNING;
  13748. Color MAGENTA;
  13749. uint MASK_BLENDINDICES;
  13750. uint MASK_BLENDWEIGHTS;
  13751. uint MASK_COLOR;
  13752. uint MASK_CUBETEXCOORD1;
  13753. uint MASK_CUBETEXCOORD2;
  13754. uint MASK_DEFAULT;
  13755. uint MASK_INSTANCEMATRIX1;
  13756. uint MASK_INSTANCEMATRIX2;
  13757. uint MASK_INSTANCEMATRIX3;
  13758. uint MASK_NONE;
  13759. uint MASK_NORMAL;
  13760. uint MASK_OBJECTINDEX;
  13761. uint MASK_POSITION;
  13762. uint MASK_TANGENT;
  13763. uint MASK_TEXCOORD1;
  13764. uint MASK_TEXCOORD2;
  13765. int MOUSEB_LEFT;
  13766. int MOUSEB_MIDDLE;
  13767. int MOUSEB_RIGHT;
  13768. float M_DEGTORAD;
  13769. float M_DEGTORAD_2;
  13770. float M_EPSILON;
  13771. float M_HALF_PI;
  13772. float M_INFINITY;
  13773. float M_LARGE_EPSILON;
  13774. float M_LARGE_VALUE;
  13775. int M_MAX_INT;
  13776. uint M_MAX_UNSIGNED;
  13777. int M_MIN_INT;
  13778. uint M_MIN_UNSIGNED;
  13779. float M_PI;
  13780. float M_RADTODEG;
  13781. float PIXEL_SIZE;
  13782. int QUALITY_HIGH;
  13783. int QUALITY_LOW;
  13784. int QUALITY_MAX;
  13785. int QUALITY_MEDIUM;
  13786. int QUAL_ALT;
  13787. int QUAL_ANY;
  13788. int QUAL_CTRL;
  13789. int QUAL_SHIFT;
  13790. Color RED;
  13791. int SCANCODE_0;
  13792. int SCANCODE_1;
  13793. int SCANCODE_2;
  13794. int SCANCODE_3;
  13795. int SCANCODE_4;
  13796. int SCANCODE_5;
  13797. int SCANCODE_6;
  13798. int SCANCODE_7;
  13799. int SCANCODE_8;
  13800. int SCANCODE_9;
  13801. int SCANCODE_A;
  13802. int SCANCODE_AC_BACK;
  13803. int SCANCODE_AC_BOOKMARKS;
  13804. int SCANCODE_AC_FORWARD;
  13805. int SCANCODE_AC_HOME;
  13806. int SCANCODE_AC_REFRESH;
  13807. int SCANCODE_AC_SEARCH;
  13808. int SCANCODE_AC_STOP;
  13809. int SCANCODE_AGAIN;
  13810. int SCANCODE_ALT;
  13811. int SCANCODE_ALTERASE;
  13812. int SCANCODE_APOSTROPHE;
  13813. int SCANCODE_APP1;
  13814. int SCANCODE_APP2;
  13815. int SCANCODE_APPLICATION;
  13816. int SCANCODE_AUDIOMUTE;
  13817. int SCANCODE_AUDIONEXT;
  13818. int SCANCODE_AUDIOPLAY;
  13819. int SCANCODE_AUDIOPREV;
  13820. int SCANCODE_AUDIOSTOP;
  13821. int SCANCODE_B;
  13822. int SCANCODE_BACKSLASH;
  13823. int SCANCODE_BACKSPACE;
  13824. int SCANCODE_BRIGHTNESSDOWN;
  13825. int SCANCODE_BRIGHTNESSUP;
  13826. int SCANCODE_C;
  13827. int SCANCODE_CALCULATOR;
  13828. int SCANCODE_CANCEL;
  13829. int SCANCODE_CAPSLOCK;
  13830. int SCANCODE_CLEAR;
  13831. int SCANCODE_CLEARAGAIN;
  13832. int SCANCODE_COMMA;
  13833. int SCANCODE_COMPUTER;
  13834. int SCANCODE_COPY;
  13835. int SCANCODE_CRSEL;
  13836. int SCANCODE_CTRL;
  13837. int SCANCODE_CURRENCYSUBUNIT;
  13838. int SCANCODE_CURRENCYUNIT;
  13839. int SCANCODE_CUT;
  13840. int SCANCODE_D;
  13841. int SCANCODE_DECIMALSEPARATOR;
  13842. int SCANCODE_DELETE;
  13843. int SCANCODE_DISPLAYSWITCH;
  13844. int SCANCODE_DOWN;
  13845. int SCANCODE_E;
  13846. int SCANCODE_EJECT;
  13847. int SCANCODE_END;
  13848. int SCANCODE_EQUALS;
  13849. int SCANCODE_ESCAPE;
  13850. int SCANCODE_EXECUTE;
  13851. int SCANCODE_EXSEL;
  13852. int SCANCODE_F;
  13853. int SCANCODE_F1;
  13854. int SCANCODE_F10;
  13855. int SCANCODE_F11;
  13856. int SCANCODE_F12;
  13857. int SCANCODE_F13;
  13858. int SCANCODE_F14;
  13859. int SCANCODE_F15;
  13860. int SCANCODE_F16;
  13861. int SCANCODE_F17;
  13862. int SCANCODE_F18;
  13863. int SCANCODE_F19;
  13864. int SCANCODE_F2;
  13865. int SCANCODE_F20;
  13866. int SCANCODE_F21;
  13867. int SCANCODE_F22;
  13868. int SCANCODE_F23;
  13869. int SCANCODE_F24;
  13870. int SCANCODE_F3;
  13871. int SCANCODE_F4;
  13872. int SCANCODE_F5;
  13873. int SCANCODE_F6;
  13874. int SCANCODE_F7;
  13875. int SCANCODE_F8;
  13876. int SCANCODE_F9;
  13877. int SCANCODE_FIND;
  13878. int SCANCODE_G;
  13879. int SCANCODE_GRAVE;
  13880. int SCANCODE_GUI;
  13881. int SCANCODE_H;
  13882. int SCANCODE_HELP;
  13883. int SCANCODE_HOME;
  13884. int SCANCODE_I;
  13885. int SCANCODE_INSERT;
  13886. int SCANCODE_INTERNATIONAL1;
  13887. int SCANCODE_INTERNATIONAL2;
  13888. int SCANCODE_INTERNATIONAL3;
  13889. int SCANCODE_INTERNATIONAL4;
  13890. int SCANCODE_INTERNATIONAL5;
  13891. int SCANCODE_INTERNATIONAL6;
  13892. int SCANCODE_INTERNATIONAL7;
  13893. int SCANCODE_INTERNATIONAL8;
  13894. int SCANCODE_INTERNATIONAL9;
  13895. int SCANCODE_J;
  13896. int SCANCODE_K;
  13897. int SCANCODE_KBDILLUMDOWN;
  13898. int SCANCODE_KBDILLUMTOGGLE;
  13899. int SCANCODE_KBDILLUMUP;
  13900. int SCANCODE_KP_0;
  13901. int SCANCODE_KP_00;
  13902. int SCANCODE_KP_000;
  13903. int SCANCODE_KP_1;
  13904. int SCANCODE_KP_2;
  13905. int SCANCODE_KP_3;
  13906. int SCANCODE_KP_4;
  13907. int SCANCODE_KP_5;
  13908. int SCANCODE_KP_6;
  13909. int SCANCODE_KP_7;
  13910. int SCANCODE_KP_8;
  13911. int SCANCODE_KP_9;
  13912. int SCANCODE_KP_A;
  13913. int SCANCODE_KP_AMPERSAND;
  13914. int SCANCODE_KP_AT;
  13915. int SCANCODE_KP_B;
  13916. int SCANCODE_KP_BACKSPACE;
  13917. int SCANCODE_KP_BINARY;
  13918. int SCANCODE_KP_C;
  13919. int SCANCODE_KP_CLEAR;
  13920. int SCANCODE_KP_CLEARENTRY;
  13921. int SCANCODE_KP_COLON;
  13922. int SCANCODE_KP_COMMA;
  13923. int SCANCODE_KP_D;
  13924. int SCANCODE_KP_DBLAMPERSAND;
  13925. int SCANCODE_KP_DBLVERTICALBAR;
  13926. int SCANCODE_KP_DECIMAL;
  13927. int SCANCODE_KP_DIVIDE;
  13928. int SCANCODE_KP_E;
  13929. int SCANCODE_KP_ENTER;
  13930. int SCANCODE_KP_EQUALS;
  13931. int SCANCODE_KP_EQUALSAS400;
  13932. int SCANCODE_KP_EXCLAM;
  13933. int SCANCODE_KP_F;
  13934. int SCANCODE_KP_GREATER;
  13935. int SCANCODE_KP_HASH;
  13936. int SCANCODE_KP_HEXADECIMAL;
  13937. int SCANCODE_KP_LEFTBRACE;
  13938. int SCANCODE_KP_LEFTPAREN;
  13939. int SCANCODE_KP_LESS;
  13940. int SCANCODE_KP_MEMADD;
  13941. int SCANCODE_KP_MEMCLEAR;
  13942. int SCANCODE_KP_MEMDIVIDE;
  13943. int SCANCODE_KP_MEMMULTIPLY;
  13944. int SCANCODE_KP_MEMRECALL;
  13945. int SCANCODE_KP_MEMSTORE;
  13946. int SCANCODE_KP_MEMSUBTRACT;
  13947. int SCANCODE_KP_MINUS;
  13948. int SCANCODE_KP_MULTIPLY;
  13949. int SCANCODE_KP_OCTAL;
  13950. int SCANCODE_KP_PERCENT;
  13951. int SCANCODE_KP_PERIOD;
  13952. int SCANCODE_KP_PLUS;
  13953. int SCANCODE_KP_PLUSMINUS;
  13954. int SCANCODE_KP_POWER;
  13955. int SCANCODE_KP_RIGHTBRACE;
  13956. int SCANCODE_KP_RIGHTPAREN;
  13957. int SCANCODE_KP_SPACE;
  13958. int SCANCODE_KP_TAB;
  13959. int SCANCODE_KP_VERTICALBAR;
  13960. int SCANCODE_KP_XOR;
  13961. int SCANCODE_L;
  13962. int SCANCODE_LALT;
  13963. int SCANCODE_LANG1;
  13964. int SCANCODE_LANG2;
  13965. int SCANCODE_LANG3;
  13966. int SCANCODE_LANG4;
  13967. int SCANCODE_LANG5;
  13968. int SCANCODE_LANG6;
  13969. int SCANCODE_LANG7;
  13970. int SCANCODE_LANG8;
  13971. int SCANCODE_LANG9;
  13972. int SCANCODE_LCTRL;
  13973. int SCANCODE_LEFT;
  13974. int SCANCODE_LEFTBRACKET;
  13975. int SCANCODE_LGUI;
  13976. int SCANCODE_LSHIFT;
  13977. int SCANCODE_M;
  13978. int SCANCODE_MAIL;
  13979. int SCANCODE_MEDIASELECT;
  13980. int SCANCODE_MENU;
  13981. int SCANCODE_MINUS;
  13982. int SCANCODE_MODE;
  13983. int SCANCODE_MUTE;
  13984. int SCANCODE_N;
  13985. int SCANCODE_NONUSBACKSLASH;
  13986. int SCANCODE_NONUSHASH;
  13987. int SCANCODE_NUMLOCKCLEAR;
  13988. int SCANCODE_O;
  13989. int SCANCODE_OPER;
  13990. int SCANCODE_OUT;
  13991. int SCANCODE_P;
  13992. int SCANCODE_PAGEDOWN;
  13993. int SCANCODE_PAGEUP;
  13994. int SCANCODE_PASTE;
  13995. int SCANCODE_PAUSE;
  13996. int SCANCODE_PERIOD;
  13997. int SCANCODE_POWER;
  13998. int SCANCODE_PRINTSCREEN;
  13999. int SCANCODE_PRIOR;
  14000. int SCANCODE_Q;
  14001. int SCANCODE_R;
  14002. int SCANCODE_RALT;
  14003. int SCANCODE_RCTRL;
  14004. int SCANCODE_RETURN;
  14005. int SCANCODE_RETURN2;
  14006. int SCANCODE_RGUI;
  14007. int SCANCODE_RIGHT;
  14008. int SCANCODE_RIGHTBRACKET;
  14009. int SCANCODE_RSHIFT;
  14010. int SCANCODE_S;
  14011. int SCANCODE_SCROLLLOCK;
  14012. int SCANCODE_SELECT;
  14013. int SCANCODE_SEMICOLON;
  14014. int SCANCODE_SEPARATOR;
  14015. int SCANCODE_SHIFT;
  14016. int SCANCODE_SLASH;
  14017. int SCANCODE_SLEEP;
  14018. int SCANCODE_SPACE;
  14019. int SCANCODE_STOP;
  14020. int SCANCODE_SYSREQ;
  14021. int SCANCODE_T;
  14022. int SCANCODE_TAB;
  14023. int SCANCODE_THOUSANDSSEPARATOR;
  14024. int SCANCODE_U;
  14025. int SCANCODE_UNDO;
  14026. int SCANCODE_UNKNOWN;
  14027. int SCANCODE_UP;
  14028. int SCANCODE_V;
  14029. int SCANCODE_VOLUMEDOWN;
  14030. int SCANCODE_VOLUMEUP;
  14031. int SCANCODE_W;
  14032. int SCANCODE_WWW;
  14033. int SCANCODE_X;
  14034. int SCANCODE_Y;
  14035. int SCANCODE_Z;
  14036. uint SCAN_DIRS;
  14037. uint SCAN_FILES;
  14038. uint SCAN_HIDDEN;
  14039. String SOUND_AMBIENT;
  14040. String SOUND_EFFECT;
  14041. String SOUND_MASTER;
  14042. String SOUND_MUSIC;
  14043. String SOUND_VOICE;
  14044. Color TRANSPARENT;
  14045. uint VO_DISABLE_OCCLUSION;
  14046. uint VO_DISABLE_SHADOWS;
  14047. uint VO_LOW_MATERIAL_QUALITY;
  14048. uint VO_NONE;
  14049. Color WHITE;
  14050. Color YELLOW;
  14051. VariantMap globalVars;