AngelScriptAPI.h 377 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. Animation Clone(const String& = String ( )) const;
  290. AnimationTrack CreateTrack(const String&);
  291. bool HasSubscribedToEvent(Object, const String&);
  292. bool HasSubscribedToEvent(const String&);
  293. bool Load(File);
  294. bool Load(VectorBuffer&);
  295. bool RemoveAllTracks();
  296. void RemoveAllTriggers();
  297. bool RemoveTrack(const String&);
  298. void RemoveTrigger(uint);
  299. bool Save(File) const;
  300. bool Save(VectorBuffer&) const;
  301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  302. // Properties:
  303. String animationName;
  304. /* readonly */
  305. String category;
  306. float length;
  307. /* readonly */
  308. uint memoryUse;
  309. String name;
  310. /* readonly */
  311. uint numTracks;
  312. uint numTriggers;
  313. /* readonly */
  314. int refs;
  315. /* readonly */
  316. Array<AnimationTrack> tracks;
  317. Array<AnimationTriggerPoint> triggers;
  318. /* readonly */
  319. StringHash type;
  320. /* readonly */
  321. String typeName;
  322. /* readonly */
  323. uint useTimer;
  324. /* readonly */
  325. int weakRefs;
  326. };
  327. class AnimationController
  328. {
  329. // Methods:
  330. void ApplyAttributes();
  331. void DrawDebugGeometry(DebugRenderer, bool);
  332. bool Fade(const String&, float, float);
  333. bool FadeOthers(const String&, float, float);
  334. AnimationState GetAnimationState(StringHash) const;
  335. AnimationState GetAnimationState(const String&) const;
  336. Variant GetAttribute(const String&) const;
  337. ValueAnimation GetAttributeAnimation(const String&) const;
  338. float GetAttributeAnimationSpeed(const String&) const;
  339. float GetAttributeAnimationTime(const String&) const;
  340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  341. Variant GetAttributeDefault(const String&) const;
  342. float GetAutoFade(const String&) const;
  343. AnimationBlendMode GetBlendMode(const String&) const;
  344. float GetFadeTarget(const String&) const;
  345. float GetFadeTime(const String&) const;
  346. bool GetInterceptNetworkUpdate(const String&) const;
  347. uint8 GetLayer(const String&) const;
  348. float GetLength(const String&) const;
  349. bool GetLooped(const String&) const;
  350. bool GetRemoveOnCompletion(const String&);
  351. float GetSpeed(const String&) const;
  352. float GetTime(const String&) const;
  353. float GetWeight(const String&) const;
  354. bool HasSubscribedToEvent(Object, const String&);
  355. bool HasSubscribedToEvent(const String&);
  356. bool IsAtEnd(const String&) const;
  357. bool IsFadingIn(const String&) const;
  358. bool IsFadingOut(const String&) const;
  359. bool IsPlaying(const String&) const;
  360. bool Load(File, bool = false);
  361. bool Load(VectorBuffer&, bool = false);
  362. bool LoadJSON(const JSONValue&, bool = false);
  363. bool LoadXML(const XMLElement&, bool = false);
  364. void MarkNetworkUpdate() const;
  365. bool Play(const String&, uint8, bool, float = 0.0f);
  366. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  367. void Remove();
  368. void RemoveAttributeAnimation(const String&);
  369. void RemoveInstanceDefault();
  370. void RemoveObjectAnimation();
  371. void ResetToDefault();
  372. bool Save(File) const;
  373. bool Save(VectorBuffer&) const;
  374. bool SaveJSON(JSONValue&) const;
  375. bool SaveXML(XMLElement&) const;
  376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  377. void SetAnimationTime(float);
  378. bool SetAttribute(const String&, const Variant&);
  379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  380. void SetAttributeAnimationSpeed(const String&, float);
  381. void SetAttributeAnimationTime(const String&, float);
  382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  383. bool SetAutoFade(const String&, float);
  384. bool SetBlendMode(const String&, AnimationBlendMode);
  385. void SetInterceptNetworkUpdate(const String&, bool);
  386. bool SetLayer(const String&, uint8);
  387. bool SetLooped(const String&, bool);
  388. bool SetRemoveOnCompletion(const String&, bool);
  389. bool SetSpeed(const String&, float);
  390. bool SetStartBone(const String&, const String&);
  391. bool SetTime(const String&, float);
  392. bool SetWeight(const String&, float);
  393. void Stop(const String&, float = 0.0f);
  394. void StopAll(float = 0.0f);
  395. void StopLayer(uint8, float = 0.0f);
  396. const String& GetStartBone(const String&) const;
  397. // Properties:
  398. bool animationEnabled;
  399. /* readonly */
  400. Array<Variant> attributeDefaults;
  401. /* readonly */
  402. Array<AttributeInfo> attributeInfos;
  403. Array<Variant> attributes;
  404. /* readonly */
  405. String category;
  406. bool enabled;
  407. /* readonly */
  408. bool enabledEffective;
  409. /* readonly */
  410. uint id;
  411. /* readonly */
  412. Node node;
  413. /* readonly */
  414. uint numAttributes;
  415. ObjectAnimation objectAnimation;
  416. /* readonly */
  417. int refs;
  418. bool temporary;
  419. /* readonly */
  420. StringHash type;
  421. /* readonly */
  422. String typeName;
  423. /* readonly */
  424. int weakRefs;
  425. };
  426. class AnimationKeyFrame
  427. {
  428. // Properties:
  429. Vector3 position;
  430. Quaternion rotation;
  431. Vector3 scale;
  432. float time;
  433. };
  434. class AnimationSet2D
  435. {
  436. // Methods:
  437. String GetAnimation(uint) const;
  438. bool HasSubscribedToEvent(Object, const String&);
  439. bool HasSubscribedToEvent(const String&);
  440. bool Load(File);
  441. bool Load(VectorBuffer&);
  442. bool Save(File) const;
  443. bool Save(VectorBuffer&) const;
  444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  445. // Properties:
  446. /* readonly */
  447. String category;
  448. /* readonly */
  449. uint memoryUse;
  450. String name;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. int refs;
  455. /* readonly */
  456. StringHash type;
  457. /* readonly */
  458. String typeName;
  459. /* readonly */
  460. uint useTimer;
  461. /* readonly */
  462. int weakRefs;
  463. };
  464. class AnimationState
  465. {
  466. // Methods:
  467. void AddTime(float);
  468. void AddWeight(float);
  469. void Apply();
  470. float GetBoneWeight(StringHash) const;
  471. float GetBoneWeight(uint) const;
  472. uint GetTrackIndex(StringHash) const;
  473. uint GetTrackIndex(const String&) const;
  474. void SetBoneWeight(StringHash, float, bool = false);
  475. void SetBoneWeight(const String&, float, bool = false);
  476. void SetBoneWeight(uint, float, bool = false);
  477. // Properties:
  478. /* readonly */
  479. Animation animation;
  480. AnimationBlendMode blendMode;
  481. Array<float> boneWeights;
  482. /* readonly */
  483. bool enabled;
  484. uint8 layer;
  485. /* readonly */
  486. float length;
  487. bool looped;
  488. /* readonly */
  489. AnimatedModel model;
  490. /* readonly */
  491. Node node;
  492. /* readonly */
  493. int refs;
  494. Bone startBone;
  495. float time;
  496. /* readonly */
  497. int weakRefs;
  498. float weight;
  499. };
  500. class AnimationTrack
  501. {
  502. // Methods:
  503. void AddKeyFrame(const AnimationKeyFrame&);
  504. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  505. void RemoveAllKeyFrames();
  506. void RemoveKeyFrame(uint);
  507. // Properties:
  508. uint8 channelMask;
  509. Array<AnimationKeyFrame> keyFrames;
  510. String name;
  511. StringHash nameHash;
  512. /* readonly */
  513. uint numKeyFrames;
  514. };
  515. class AnimationTriggerPoint
  516. {
  517. // Properties:
  518. Variant data;
  519. float time;
  520. };
  521. template <class T> class Array
  522. {
  523. // Methods:
  524. void Clear();
  525. void Erase(uint);
  526. int Find(const T&) const;
  527. int Find(uint, const T&) const;
  528. int FindByRef(const T&) const;
  529. int FindByRef(uint, const T&) const;
  530. void Insert(uint, const T&);
  531. void Pop();
  532. void Push(const T&);
  533. void Reserve(uint);
  534. void Resize(uint);
  535. void Reverse();
  536. void Sort();
  537. void Sort(uint, uint);
  538. void SortReverse();
  539. void SortReverse(uint, uint);
  540. // Properties:
  541. /* readonly */
  542. bool empty;
  543. uint length;
  544. };
  545. class AttributeInfo
  546. {
  547. // Properties:
  548. Variant defaultValue;
  549. /* readonly */
  550. Array<String> enumNames;
  551. uint mode;
  552. String name;
  553. VariantType type;
  554. };
  555. class Audio
  556. {
  557. // Methods:
  558. bool HasMasterGain(const String&) const;
  559. bool HasSubscribedToEvent(Object, const String&);
  560. bool HasSubscribedToEvent(const String&);
  561. bool IsSoundTypePaused(const String&);
  562. void PauseSoundType(const String&);
  563. bool Play();
  564. void ResumeAll();
  565. void ResumeSoundType(const String&);
  566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  567. void SetMode(int, int, bool, bool = true);
  568. void Stop();
  569. // Properties:
  570. /* readonly */
  571. String category;
  572. /* readonly */
  573. bool initialized;
  574. /* readonly */
  575. bool interpolation;
  576. SoundListener listener;
  577. Array<float> masterGain;
  578. /* readonly */
  579. int mixRate;
  580. /* readonly */
  581. bool playing;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. uint sampleSize;
  586. /* readonly */
  587. bool stereo;
  588. /* readonly */
  589. StringHash type;
  590. /* readonly */
  591. String typeName;
  592. /* readonly */
  593. int weakRefs;
  594. };
  595. class BiasParameters
  596. {
  597. // Properties:
  598. float constantBias;
  599. float normalOffset;
  600. float slopeScaledBias;
  601. };
  602. class Billboard
  603. {
  604. // Properties:
  605. Color color;
  606. Vector3 direction;
  607. bool enabled;
  608. Vector3 position;
  609. float rotation;
  610. Vector2 size;
  611. Rect uv;
  612. };
  613. class BillboardSet
  614. {
  615. // Methods:
  616. void ApplyAttributes();
  617. void Commit();
  618. void DrawDebugGeometry(DebugRenderer, bool);
  619. Variant GetAttribute(const String&) const;
  620. ValueAnimation GetAttributeAnimation(const String&) const;
  621. float GetAttributeAnimationSpeed(const String&) const;
  622. float GetAttributeAnimationTime(const String&) const;
  623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  624. Variant GetAttributeDefault(const String&) const;
  625. bool GetInterceptNetworkUpdate(const String&) const;
  626. bool HasSubscribedToEvent(Object, const String&);
  627. bool HasSubscribedToEvent(const String&);
  628. bool IsInView(Camera) const;
  629. bool Load(File, bool = false);
  630. bool Load(VectorBuffer&, bool = false);
  631. bool LoadJSON(const JSONValue&, bool = false);
  632. bool LoadXML(const XMLElement&, bool = false);
  633. void MarkNetworkUpdate() const;
  634. void Remove();
  635. void RemoveAttributeAnimation(const String&);
  636. void RemoveInstanceDefault();
  637. void RemoveObjectAnimation();
  638. void ResetToDefault();
  639. bool Save(File) const;
  640. bool Save(VectorBuffer&) const;
  641. bool SaveJSON(JSONValue&) const;
  642. bool SaveXML(XMLElement&) const;
  643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  644. void SetAnimationTime(float);
  645. bool SetAttribute(const String&, const Variant&);
  646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  647. void SetAttributeAnimationSpeed(const String&, float);
  648. void SetAttributeAnimationTime(const String&, float);
  649. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  650. void SetInterceptNetworkUpdate(const String&, bool);
  651. // Properties:
  652. bool animationEnabled;
  653. float animationLodBias;
  654. /* readonly */
  655. Array<Variant> attributeDefaults;
  656. /* readonly */
  657. Array<AttributeInfo> attributeInfos;
  658. Array<Variant> attributes;
  659. /* readonly */
  660. Array<Billboard> billboards;
  661. /* readonly */
  662. BoundingBox boundingBox;
  663. bool castShadows;
  664. /* readonly */
  665. String category;
  666. float drawDistance;
  667. bool enabled;
  668. /* readonly */
  669. bool enabledEffective;
  670. FaceCameraMode faceCameraMode;
  671. bool fixedScreenSize;
  672. /* readonly */
  673. uint id;
  674. /* readonly */
  675. bool inView;
  676. uint lightMask;
  677. float lodBias;
  678. Material material;
  679. uint maxLights;
  680. float minAngle;
  681. /* readonly */
  682. Node node;
  683. /* readonly */
  684. uint numAttributes;
  685. uint numBillboards;
  686. ObjectAnimation objectAnimation;
  687. bool occludee;
  688. bool occluder;
  689. /* readonly */
  690. int refs;
  691. bool relative;
  692. bool scaled;
  693. float shadowDistance;
  694. uint shadowMask;
  695. bool sorted;
  696. bool temporary;
  697. /* readonly */
  698. StringHash type;
  699. /* readonly */
  700. String typeName;
  701. uint viewMask;
  702. /* readonly */
  703. int weakRefs;
  704. /* readonly */
  705. BoundingBox worldBoundingBox;
  706. /* readonly */
  707. Zone zone;
  708. uint zoneMask;
  709. };
  710. class Bone
  711. {
  712. // Properties:
  713. bool animated;
  714. BoundingBox boundingBox;
  715. Vector3 initialPosition;
  716. Quaternion initialRotation;
  717. Vector3 initialScale;
  718. String name;
  719. Node node;
  720. float radius;
  721. };
  722. class BorderImage
  723. {
  724. // Methods:
  725. void AddChild(UIElement);
  726. void AddTag(const String&);
  727. void AddTags(const String&, int8 = ';');
  728. void ApplyAttributes();
  729. void BringToFront();
  730. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  731. void DisableLayoutUpdate();
  732. IntVector2 ElementToScreen(const IntVector2&);
  733. void EnableLayoutUpdate();
  734. uint FindChild(UIElement) const;
  735. Variant GetAttribute(const String&) const;
  736. ValueAnimation GetAttributeAnimation(const String&) const;
  737. float GetAttributeAnimationSpeed(const String&) const;
  738. float GetAttributeAnimationTime(const String&) const;
  739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  740. Variant GetAttributeDefault(const String&) const;
  741. UIElement GetChild(const String&, bool = false) const;
  742. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  743. Array<UIElement> GetChildren(bool = false) const;
  744. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  745. UIElement GetElementEventSender() const;
  746. bool GetInterceptNetworkUpdate(const String&) const;
  747. uint GetNumChildren(bool) const;
  748. bool HasSubscribedToEvent(Object, const String&);
  749. bool HasSubscribedToEvent(const String&);
  750. bool HasTag(const String&) const;
  751. void InsertChild(uint, UIElement);
  752. bool IsInside(IntVector2, bool);
  753. bool IsInsideCombined(IntVector2, bool);
  754. bool Load(File, bool = false);
  755. bool Load(VectorBuffer&, bool = false);
  756. bool LoadChildXML(XMLFile, XMLFile = null);
  757. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  758. bool LoadJSON(const JSONValue&, bool = false);
  759. bool LoadXML(File);
  760. bool LoadXML(VectorBuffer&);
  761. bool LoadXML(XMLFile, XMLFile);
  762. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  763. bool LoadXML(const XMLElement&, bool = false);
  764. void MarkNetworkUpdate() const;
  765. void Remove();
  766. void RemoveAllChildren();
  767. void RemoveAllTags();
  768. void RemoveAttributeAnimation(const String&);
  769. void RemoveChild(UIElement, uint = 0);
  770. void RemoveChild(uint);
  771. void RemoveInstanceDefault();
  772. void RemoveObjectAnimation();
  773. bool RemoveTag(const String&);
  774. void ResetDeepEnabled();
  775. void ResetToDefault();
  776. bool Save(File) const;
  777. bool Save(VectorBuffer&) const;
  778. bool SaveJSON(JSONValue&) const;
  779. bool SaveXML(File, const String& = "\t");
  780. bool SaveXML(VectorBuffer&, const String& = "\t");
  781. bool SaveXML(XMLElement&) const;
  782. IntVector2 ScreenToElement(const IntVector2&);
  783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  785. void SetAnimationTime(float);
  786. bool SetAttribute(const String&, const Variant&);
  787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  788. void SetAttributeAnimationSpeed(const String&, float);
  789. void SetAttributeAnimationTime(const String&, float);
  790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  791. void SetDeepEnabled(bool);
  792. void SetEnabledRecursive(bool);
  793. void SetFixedHeight(int);
  794. void SetFixedSize(int, int);
  795. void SetFixedWidth(int);
  796. void SetFullImageRect();
  797. void SetHoverOffset(int, int);
  798. void SetInterceptNetworkUpdate(const String&, bool);
  799. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  800. void SetMaxSize(int, int);
  801. void SetMinSize(int, int);
  802. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  803. void SetPosition(int, int);
  804. void SetSize(int, int);
  805. bool SetStyle(const String&, XMLFile = null);
  806. bool SetStyle(const XMLElement&);
  807. bool SetStyleAuto(XMLFile = null);
  808. void UpdateLayout();
  809. const Variant& GetVar(const StringHash&);
  810. // Properties:
  811. bool animationEnabled;
  812. /* readonly */
  813. Array<Variant> attributeDefaults;
  814. /* readonly */
  815. Array<AttributeInfo> attributeInfos;
  816. Array<Variant> attributes;
  817. BlendMode blendMode;
  818. IntRect border;
  819. bool bringToBack;
  820. bool bringToFront;
  821. /* readonly */
  822. String category;
  823. /* readonly */
  824. IntVector2 childOffset;
  825. /* readonly */
  826. Array<UIElement> children;
  827. IntRect clipBorder;
  828. bool clipChildren;
  829. /* writeonly */
  830. Color color;
  831. /* readonly */
  832. bool colorGradient;
  833. Array<Color> colors;
  834. /* readonly */
  835. IntRect combinedScreenRect;
  836. XMLFile defaultStyle;
  837. /* readonly */
  838. float derivedOpacity;
  839. /* readonly */
  840. uint dragButtonCombo;
  841. /* readonly */
  842. int dragButtonCount;
  843. uint dragDropMode;
  844. bool editable;
  845. bool elementEventSender;
  846. bool enabled;
  847. /* readonly */
  848. bool enabledSelf;
  849. /* readonly */
  850. bool fixedHeight;
  851. /* readonly */
  852. bool fixedSize;
  853. /* readonly */
  854. bool fixedWidth;
  855. bool focus;
  856. FocusMode focusMode;
  857. int height;
  858. HorizontalAlignment horizontalAlignment;
  859. IntVector2 hoverOffset;
  860. /* readonly */
  861. bool hovering;
  862. IntRect imageBorder;
  863. IntRect imageRect;
  864. int indent;
  865. int indentSpacing;
  866. /* readonly */
  867. int indentWidth;
  868. bool internal;
  869. IntRect layoutBorder;
  870. Vector2 layoutFlexScale;
  871. LayoutMode layoutMode;
  872. int layoutSpacing;
  873. int maxHeight;
  874. IntVector2 maxSize;
  875. int maxWidth;
  876. int minHeight;
  877. IntVector2 minSize;
  878. int minWidth;
  879. String name;
  880. /* readonly */
  881. uint numAllChildren;
  882. /* readonly */
  883. uint numAttributes;
  884. /* readonly */
  885. uint numChildren;
  886. ObjectAnimation objectAnimation;
  887. float opacity;
  888. UIElement parent;
  889. IntVector2 position;
  890. int priority;
  891. /* readonly */
  892. int refs;
  893. /* readonly */
  894. UIElement root;
  895. /* readonly */
  896. IntVector2 screenPosition;
  897. bool selected;
  898. IntVector2 size;
  899. bool sortChildren;
  900. String style;
  901. /* readonly */
  902. Array<String> tags;
  903. bool temporary;
  904. Texture texture;
  905. bool tiled;
  906. TraversalMode traversalMode;
  907. /* readonly */
  908. StringHash type;
  909. /* readonly */
  910. String typeName;
  911. bool useDerivedOpacity;
  912. /* readonly */
  913. VariantMap vars;
  914. VerticalAlignment verticalAlignment;
  915. bool visible;
  916. /* readonly */
  917. bool visibleEffective;
  918. /* readonly */
  919. int weakRefs;
  920. int width;
  921. };
  922. class BoundingBox
  923. {
  924. // Methods:
  925. void Clear();
  926. void Clip(const BoundingBox&);
  927. void Define(const BoundingBox&);
  928. void Define(const Frustum&);
  929. void Define(const Polyhedron&);
  930. void Define(const Sphere&);
  931. void Define(const Vector3&);
  932. void Define(const Vector3&, const Vector3&);
  933. void Define(float, float);
  934. bool Defined() const;
  935. Intersection IsInside(const BoundingBox&) const;
  936. Intersection IsInside(const Sphere&) const;
  937. Intersection IsInside(const Vector3&) const;
  938. Intersection IsInsideFast(const BoundingBox&) const;
  939. Intersection IsInsideFast(const Sphere&) const;
  940. void Merge(const BoundingBox&);
  941. void Merge(const Frustum&);
  942. void Merge(const Polyhedron&);
  943. void Merge(const Sphere&);
  944. void Merge(const Vector3&);
  945. Rect Projected(const Matrix4&) const;
  946. String ToString() const;
  947. void Transform(const Matrix3&);
  948. void Transform(const Matrix3x4&);
  949. BoundingBox Transformed(const Matrix3&) const;
  950. BoundingBox Transformed(const Matrix3x4&) const;
  951. // Properties:
  952. /* readonly */
  953. Vector3 center;
  954. /* readonly */
  955. Vector3 halfSize;
  956. Vector3 max;
  957. Vector3 min;
  958. /* readonly */
  959. Vector3 size;
  960. };
  961. class Button
  962. {
  963. // Methods:
  964. void AddChild(UIElement);
  965. void AddTag(const String&);
  966. void AddTags(const String&, int8 = ';');
  967. void ApplyAttributes();
  968. void BringToFront();
  969. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  970. void DisableLayoutUpdate();
  971. IntVector2 ElementToScreen(const IntVector2&);
  972. void EnableLayoutUpdate();
  973. uint FindChild(UIElement) const;
  974. Variant GetAttribute(const String&) const;
  975. ValueAnimation GetAttributeAnimation(const String&) const;
  976. float GetAttributeAnimationSpeed(const String&) const;
  977. float GetAttributeAnimationTime(const String&) const;
  978. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  979. Variant GetAttributeDefault(const String&) const;
  980. UIElement GetChild(const String&, bool = false) const;
  981. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  982. Array<UIElement> GetChildren(bool = false) const;
  983. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  984. UIElement GetElementEventSender() const;
  985. bool GetInterceptNetworkUpdate(const String&) const;
  986. uint GetNumChildren(bool) const;
  987. bool HasSubscribedToEvent(Object, const String&);
  988. bool HasSubscribedToEvent(const String&);
  989. bool HasTag(const String&) const;
  990. void InsertChild(uint, UIElement);
  991. bool IsInside(IntVector2, bool);
  992. bool IsInsideCombined(IntVector2, bool);
  993. bool Load(File, bool = false);
  994. bool Load(VectorBuffer&, bool = false);
  995. bool LoadChildXML(XMLFile, XMLFile = null);
  996. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  997. bool LoadJSON(const JSONValue&, bool = false);
  998. bool LoadXML(File);
  999. bool LoadXML(VectorBuffer&);
  1000. bool LoadXML(XMLFile, XMLFile);
  1001. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1002. bool LoadXML(const XMLElement&, bool = false);
  1003. void MarkNetworkUpdate() const;
  1004. void Remove();
  1005. void RemoveAllChildren();
  1006. void RemoveAllTags();
  1007. void RemoveAttributeAnimation(const String&);
  1008. void RemoveChild(UIElement, uint = 0);
  1009. void RemoveChild(uint);
  1010. void RemoveInstanceDefault();
  1011. void RemoveObjectAnimation();
  1012. bool RemoveTag(const String&);
  1013. void ResetDeepEnabled();
  1014. void ResetToDefault();
  1015. bool Save(File) const;
  1016. bool Save(VectorBuffer&) const;
  1017. bool SaveJSON(JSONValue&) const;
  1018. bool SaveXML(File, const String& = "\t");
  1019. bool SaveXML(VectorBuffer&, const String& = "\t");
  1020. bool SaveXML(XMLElement&) const;
  1021. IntVector2 ScreenToElement(const IntVector2&);
  1022. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1023. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1024. void SetAnimationTime(float);
  1025. bool SetAttribute(const String&, const Variant&);
  1026. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1027. void SetAttributeAnimationSpeed(const String&, float);
  1028. void SetAttributeAnimationTime(const String&, float);
  1029. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1030. void SetDeepEnabled(bool);
  1031. void SetEnabledRecursive(bool);
  1032. void SetFixedHeight(int);
  1033. void SetFixedSize(int, int);
  1034. void SetFixedWidth(int);
  1035. void SetFullImageRect();
  1036. void SetHoverOffset(int, int);
  1037. void SetInterceptNetworkUpdate(const String&, bool);
  1038. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1039. void SetMaxSize(int, int);
  1040. void SetMinSize(int, int);
  1041. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1042. void SetPosition(int, int);
  1043. void SetPressedChildOffset(int, int);
  1044. void SetPressedOffset(int, int);
  1045. void SetRepeat(float, float);
  1046. void SetSize(int, int);
  1047. bool SetStyle(const String&, XMLFile = null);
  1048. bool SetStyle(const XMLElement&);
  1049. bool SetStyleAuto(XMLFile = null);
  1050. void UpdateLayout();
  1051. const Variant& GetVar(const StringHash&);
  1052. // Properties:
  1053. bool animationEnabled;
  1054. /* readonly */
  1055. Array<Variant> attributeDefaults;
  1056. /* readonly */
  1057. Array<AttributeInfo> attributeInfos;
  1058. Array<Variant> attributes;
  1059. BlendMode blendMode;
  1060. IntRect border;
  1061. bool bringToBack;
  1062. bool bringToFront;
  1063. /* readonly */
  1064. String category;
  1065. /* readonly */
  1066. IntVector2 childOffset;
  1067. /* readonly */
  1068. Array<UIElement> children;
  1069. IntRect clipBorder;
  1070. bool clipChildren;
  1071. /* writeonly */
  1072. Color color;
  1073. /* readonly */
  1074. bool colorGradient;
  1075. Array<Color> colors;
  1076. /* readonly */
  1077. IntRect combinedScreenRect;
  1078. XMLFile defaultStyle;
  1079. /* readonly */
  1080. float derivedOpacity;
  1081. /* readonly */
  1082. uint dragButtonCombo;
  1083. /* readonly */
  1084. int dragButtonCount;
  1085. uint dragDropMode;
  1086. bool editable;
  1087. bool elementEventSender;
  1088. bool enabled;
  1089. /* readonly */
  1090. bool enabledSelf;
  1091. /* readonly */
  1092. bool fixedHeight;
  1093. /* readonly */
  1094. bool fixedSize;
  1095. /* readonly */
  1096. bool fixedWidth;
  1097. bool focus;
  1098. FocusMode focusMode;
  1099. int height;
  1100. HorizontalAlignment horizontalAlignment;
  1101. IntVector2 hoverOffset;
  1102. /* readonly */
  1103. bool hovering;
  1104. IntRect imageBorder;
  1105. IntRect imageRect;
  1106. int indent;
  1107. int indentSpacing;
  1108. /* readonly */
  1109. int indentWidth;
  1110. bool internal;
  1111. IntRect layoutBorder;
  1112. Vector2 layoutFlexScale;
  1113. LayoutMode layoutMode;
  1114. int layoutSpacing;
  1115. int maxHeight;
  1116. IntVector2 maxSize;
  1117. int maxWidth;
  1118. int minHeight;
  1119. IntVector2 minSize;
  1120. int minWidth;
  1121. String name;
  1122. /* readonly */
  1123. uint numAllChildren;
  1124. /* readonly */
  1125. uint numAttributes;
  1126. /* readonly */
  1127. uint numChildren;
  1128. ObjectAnimation objectAnimation;
  1129. float opacity;
  1130. UIElement parent;
  1131. IntVector2 position;
  1132. /* readonly */
  1133. bool pressed;
  1134. IntVector2 pressedChildOffset;
  1135. IntVector2 pressedOffset;
  1136. int priority;
  1137. /* readonly */
  1138. int refs;
  1139. float repeatDelay;
  1140. float repeatRate;
  1141. /* readonly */
  1142. UIElement root;
  1143. /* readonly */
  1144. IntVector2 screenPosition;
  1145. bool selected;
  1146. IntVector2 size;
  1147. bool sortChildren;
  1148. String style;
  1149. /* readonly */
  1150. Array<String> tags;
  1151. bool temporary;
  1152. Texture texture;
  1153. bool tiled;
  1154. TraversalMode traversalMode;
  1155. /* readonly */
  1156. StringHash type;
  1157. /* readonly */
  1158. String typeName;
  1159. bool useDerivedOpacity;
  1160. /* readonly */
  1161. VariantMap vars;
  1162. VerticalAlignment verticalAlignment;
  1163. bool visible;
  1164. /* readonly */
  1165. bool visibleEffective;
  1166. /* readonly */
  1167. int weakRefs;
  1168. int width;
  1169. };
  1170. class Camera
  1171. {
  1172. // Methods:
  1173. void ApplyAttributes();
  1174. void DrawDebugGeometry(DebugRenderer, bool);
  1175. Variant GetAttribute(const String&) const;
  1176. ValueAnimation GetAttributeAnimation(const String&) const;
  1177. float GetAttributeAnimationSpeed(const String&) const;
  1178. float GetAttributeAnimationTime(const String&) const;
  1179. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1180. Variant GetAttributeDefault(const String&) const;
  1181. float GetDistance(const Vector3&) const;
  1182. float GetDistanceSquared(const Vector3&) const;
  1183. bool GetInterceptNetworkUpdate(const String&) const;
  1184. Ray GetScreenRay(float, float) const;
  1185. Frustum GetSplitFrustum(float, float) const;
  1186. bool HasSubscribedToEvent(Object, const String&);
  1187. bool HasSubscribedToEvent(const String&);
  1188. bool Load(File, bool = false);
  1189. bool Load(VectorBuffer&, bool = false);
  1190. bool LoadJSON(const JSONValue&, bool = false);
  1191. bool LoadXML(const XMLElement&, bool = false);
  1192. void MarkNetworkUpdate() const;
  1193. void Remove();
  1194. void RemoveAttributeAnimation(const String&);
  1195. void RemoveInstanceDefault();
  1196. void RemoveObjectAnimation();
  1197. void ResetToDefault();
  1198. bool Save(File) const;
  1199. bool Save(VectorBuffer&) const;
  1200. bool SaveJSON(JSONValue&) const;
  1201. bool SaveXML(XMLElement&) const;
  1202. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1204. void SetAnimationTime(float);
  1205. bool SetAttribute(const String&, const Variant&);
  1206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1207. void SetAttributeAnimationSpeed(const String&, float);
  1208. void SetAttributeAnimationTime(const String&, float);
  1209. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1210. void SetInterceptNetworkUpdate(const String&, bool);
  1211. void SetOrthoSize(const Vector2&);
  1212. Vector2 WorldToScreenPoint(const Vector3&) const;
  1213. // Properties:
  1214. bool animationEnabled;
  1215. float aspectRatio;
  1216. /* readonly */
  1217. Array<Variant> attributeDefaults;
  1218. /* readonly */
  1219. Array<AttributeInfo> attributeInfos;
  1220. Array<Variant> attributes;
  1221. bool autoAspectRatio;
  1222. /* readonly */
  1223. String category;
  1224. Plane clipPlane;
  1225. /* readonly */
  1226. Matrix3x4 effectiveWorldTransform;
  1227. bool enabled;
  1228. /* readonly */
  1229. bool enabledEffective;
  1230. float farClip;
  1231. FillMode fillMode;
  1232. float fov;
  1233. /* readonly */
  1234. Frustum frustum;
  1235. /* readonly */
  1236. Matrix4 gpuProjection;
  1237. /* readonly */
  1238. float halfViewSize;
  1239. /* readonly */
  1240. uint id;
  1241. float lodBias;
  1242. float nearClip;
  1243. /* readonly */
  1244. Node node;
  1245. /* readonly */
  1246. uint numAttributes;
  1247. ObjectAnimation objectAnimation;
  1248. float orthoSize;
  1249. bool orthographic;
  1250. Matrix4 projection;
  1251. Vector2 projectionOffset;
  1252. Plane reflectionPlane;
  1253. /* readonly */
  1254. int refs;
  1255. bool temporary;
  1256. /* readonly */
  1257. StringHash type;
  1258. /* readonly */
  1259. String typeName;
  1260. bool useClipping;
  1261. bool useReflection;
  1262. /* readonly */
  1263. Matrix3x4 view;
  1264. uint viewMask;
  1265. uint viewOverrideFlags;
  1266. /* readonly */
  1267. Frustum viewSpaceFrustum;
  1268. /* readonly */
  1269. int weakRefs;
  1270. float zoom;
  1271. };
  1272. class CascadeParameters
  1273. {
  1274. // Properties:
  1275. float biasAutoAdjust;
  1276. float fadeStart;
  1277. float split1;
  1278. float split2;
  1279. float split3;
  1280. float split4;
  1281. };
  1282. class CheckBox
  1283. {
  1284. // Methods:
  1285. void AddChild(UIElement);
  1286. void AddTag(const String&);
  1287. void AddTags(const String&, int8 = ';');
  1288. void ApplyAttributes();
  1289. void BringToFront();
  1290. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1291. void DisableLayoutUpdate();
  1292. IntVector2 ElementToScreen(const IntVector2&);
  1293. void EnableLayoutUpdate();
  1294. uint FindChild(UIElement) const;
  1295. Variant GetAttribute(const String&) const;
  1296. ValueAnimation GetAttributeAnimation(const String&) const;
  1297. float GetAttributeAnimationSpeed(const String&) const;
  1298. float GetAttributeAnimationTime(const String&) const;
  1299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1300. Variant GetAttributeDefault(const String&) const;
  1301. UIElement GetChild(const String&, bool = false) const;
  1302. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1303. Array<UIElement> GetChildren(bool = false) const;
  1304. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1305. UIElement GetElementEventSender() const;
  1306. bool GetInterceptNetworkUpdate(const String&) const;
  1307. uint GetNumChildren(bool) const;
  1308. bool HasSubscribedToEvent(Object, const String&);
  1309. bool HasSubscribedToEvent(const String&);
  1310. bool HasTag(const String&) const;
  1311. void InsertChild(uint, UIElement);
  1312. bool IsInside(IntVector2, bool);
  1313. bool IsInsideCombined(IntVector2, bool);
  1314. bool Load(File, bool = false);
  1315. bool Load(VectorBuffer&, bool = false);
  1316. bool LoadChildXML(XMLFile, XMLFile = null);
  1317. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1318. bool LoadJSON(const JSONValue&, bool = false);
  1319. bool LoadXML(File);
  1320. bool LoadXML(VectorBuffer&);
  1321. bool LoadXML(XMLFile, XMLFile);
  1322. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1323. bool LoadXML(const XMLElement&, bool = false);
  1324. void MarkNetworkUpdate() const;
  1325. void Remove();
  1326. void RemoveAllChildren();
  1327. void RemoveAllTags();
  1328. void RemoveAttributeAnimation(const String&);
  1329. void RemoveChild(UIElement, uint = 0);
  1330. void RemoveChild(uint);
  1331. void RemoveInstanceDefault();
  1332. void RemoveObjectAnimation();
  1333. bool RemoveTag(const String&);
  1334. void ResetDeepEnabled();
  1335. void ResetToDefault();
  1336. bool Save(File) const;
  1337. bool Save(VectorBuffer&) const;
  1338. bool SaveJSON(JSONValue&) const;
  1339. bool SaveXML(File, const String& = "\t");
  1340. bool SaveXML(VectorBuffer&, const String& = "\t");
  1341. bool SaveXML(XMLElement&) const;
  1342. IntVector2 ScreenToElement(const IntVector2&);
  1343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1344. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1345. void SetAnimationTime(float);
  1346. bool SetAttribute(const String&, const Variant&);
  1347. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1348. void SetAttributeAnimationSpeed(const String&, float);
  1349. void SetAttributeAnimationTime(const String&, float);
  1350. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1351. void SetCheckedOffset(int, int);
  1352. void SetDeepEnabled(bool);
  1353. void SetEnabledRecursive(bool);
  1354. void SetFixedHeight(int);
  1355. void SetFixedSize(int, int);
  1356. void SetFixedWidth(int);
  1357. void SetFullImageRect();
  1358. void SetHoverOffset(int, int);
  1359. void SetInterceptNetworkUpdate(const String&, bool);
  1360. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1361. void SetMaxSize(int, int);
  1362. void SetMinSize(int, int);
  1363. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1364. void SetPosition(int, int);
  1365. void SetSize(int, int);
  1366. bool SetStyle(const String&, XMLFile = null);
  1367. bool SetStyle(const XMLElement&);
  1368. bool SetStyleAuto(XMLFile = null);
  1369. void UpdateLayout();
  1370. const Variant& GetVar(const StringHash&);
  1371. // Properties:
  1372. bool animationEnabled;
  1373. /* readonly */
  1374. Array<Variant> attributeDefaults;
  1375. /* readonly */
  1376. Array<AttributeInfo> attributeInfos;
  1377. Array<Variant> attributes;
  1378. BlendMode blendMode;
  1379. IntRect border;
  1380. bool bringToBack;
  1381. bool bringToFront;
  1382. /* readonly */
  1383. String category;
  1384. bool checked;
  1385. IntVector2 checkedOffset;
  1386. /* readonly */
  1387. IntVector2 childOffset;
  1388. /* readonly */
  1389. Array<UIElement> children;
  1390. IntRect clipBorder;
  1391. bool clipChildren;
  1392. /* writeonly */
  1393. Color color;
  1394. /* readonly */
  1395. bool colorGradient;
  1396. Array<Color> colors;
  1397. /* readonly */
  1398. IntRect combinedScreenRect;
  1399. XMLFile defaultStyle;
  1400. /* readonly */
  1401. float derivedOpacity;
  1402. /* readonly */
  1403. uint dragButtonCombo;
  1404. /* readonly */
  1405. int dragButtonCount;
  1406. uint dragDropMode;
  1407. bool editable;
  1408. bool elementEventSender;
  1409. bool enabled;
  1410. /* readonly */
  1411. bool enabledSelf;
  1412. /* readonly */
  1413. bool fixedHeight;
  1414. /* readonly */
  1415. bool fixedSize;
  1416. /* readonly */
  1417. bool fixedWidth;
  1418. bool focus;
  1419. FocusMode focusMode;
  1420. int height;
  1421. HorizontalAlignment horizontalAlignment;
  1422. IntVector2 hoverOffset;
  1423. /* readonly */
  1424. bool hovering;
  1425. IntRect imageBorder;
  1426. IntRect imageRect;
  1427. int indent;
  1428. int indentSpacing;
  1429. /* readonly */
  1430. int indentWidth;
  1431. bool internal;
  1432. IntRect layoutBorder;
  1433. Vector2 layoutFlexScale;
  1434. LayoutMode layoutMode;
  1435. int layoutSpacing;
  1436. int maxHeight;
  1437. IntVector2 maxSize;
  1438. int maxWidth;
  1439. int minHeight;
  1440. IntVector2 minSize;
  1441. int minWidth;
  1442. String name;
  1443. /* readonly */
  1444. uint numAllChildren;
  1445. /* readonly */
  1446. uint numAttributes;
  1447. /* readonly */
  1448. uint numChildren;
  1449. ObjectAnimation objectAnimation;
  1450. float opacity;
  1451. UIElement parent;
  1452. IntVector2 position;
  1453. int priority;
  1454. /* readonly */
  1455. int refs;
  1456. /* readonly */
  1457. UIElement root;
  1458. /* readonly */
  1459. IntVector2 screenPosition;
  1460. bool selected;
  1461. IntVector2 size;
  1462. bool sortChildren;
  1463. String style;
  1464. /* readonly */
  1465. Array<String> tags;
  1466. bool temporary;
  1467. Texture texture;
  1468. bool tiled;
  1469. TraversalMode traversalMode;
  1470. /* readonly */
  1471. StringHash type;
  1472. /* readonly */
  1473. String typeName;
  1474. bool useDerivedOpacity;
  1475. /* readonly */
  1476. VariantMap vars;
  1477. VerticalAlignment verticalAlignment;
  1478. bool visible;
  1479. /* readonly */
  1480. bool visibleEffective;
  1481. /* readonly */
  1482. int weakRefs;
  1483. int width;
  1484. };
  1485. class CollisionBox2D
  1486. {
  1487. // Methods:
  1488. void ApplyAttributes();
  1489. void DrawDebugGeometry(DebugRenderer, bool);
  1490. Variant GetAttribute(const String&) const;
  1491. ValueAnimation GetAttributeAnimation(const String&) const;
  1492. float GetAttributeAnimationSpeed(const String&) const;
  1493. float GetAttributeAnimationTime(const String&) const;
  1494. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1495. Variant GetAttributeDefault(const String&) const;
  1496. bool GetInterceptNetworkUpdate(const String&) const;
  1497. bool HasSubscribedToEvent(Object, const String&);
  1498. bool HasSubscribedToEvent(const String&);
  1499. bool Load(File, bool = false);
  1500. bool Load(VectorBuffer&, bool = false);
  1501. bool LoadJSON(const JSONValue&, bool = false);
  1502. bool LoadXML(const XMLElement&, bool = false);
  1503. void MarkNetworkUpdate() const;
  1504. void Remove();
  1505. void RemoveAttributeAnimation(const String&);
  1506. void RemoveInstanceDefault();
  1507. void RemoveObjectAnimation();
  1508. void ResetToDefault();
  1509. bool Save(File) const;
  1510. bool Save(VectorBuffer&) const;
  1511. bool SaveJSON(JSONValue&) const;
  1512. bool SaveXML(XMLElement&) const;
  1513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1514. void SetAnimationTime(float);
  1515. bool SetAttribute(const String&, const Variant&);
  1516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1517. void SetAttributeAnimationSpeed(const String&, float);
  1518. void SetAttributeAnimationTime(const String&, float);
  1519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1520. void SetCenter(float, float);
  1521. void SetInterceptNetworkUpdate(const String&, bool);
  1522. void SetSize(float, float);
  1523. // Properties:
  1524. float angle;
  1525. bool animationEnabled;
  1526. /* readonly */
  1527. Array<Variant> attributeDefaults;
  1528. /* readonly */
  1529. Array<AttributeInfo> attributeInfos;
  1530. Array<Variant> attributes;
  1531. /* readonly */
  1532. String category;
  1533. int categoryBits;
  1534. Vector2 center;
  1535. float density;
  1536. bool enabled;
  1537. /* readonly */
  1538. bool enabledEffective;
  1539. float friction;
  1540. int groupIndex;
  1541. /* readonly */
  1542. uint id;
  1543. /* readonly */
  1544. float inertia;
  1545. int maskBits;
  1546. /* readonly */
  1547. float mass;
  1548. /* readonly */
  1549. Vector2 massCenter;
  1550. /* readonly */
  1551. Node node;
  1552. /* readonly */
  1553. uint numAttributes;
  1554. ObjectAnimation objectAnimation;
  1555. /* readonly */
  1556. int refs;
  1557. float restitution;
  1558. Vector2 size;
  1559. bool temporary;
  1560. bool trigger;
  1561. /* readonly */
  1562. StringHash type;
  1563. /* readonly */
  1564. String typeName;
  1565. /* readonly */
  1566. int weakRefs;
  1567. };
  1568. class CollisionChain2D
  1569. {
  1570. // Methods:
  1571. void ApplyAttributes();
  1572. void DrawDebugGeometry(DebugRenderer, bool);
  1573. Variant GetAttribute(const String&) const;
  1574. ValueAnimation GetAttributeAnimation(const String&) const;
  1575. float GetAttributeAnimationSpeed(const String&) const;
  1576. float GetAttributeAnimationTime(const String&) const;
  1577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1578. Variant GetAttributeDefault(const String&) const;
  1579. bool GetInterceptNetworkUpdate(const String&) const;
  1580. Array<Vector2> GetVertices() const;
  1581. bool HasSubscribedToEvent(Object, const String&);
  1582. bool HasSubscribedToEvent(const String&);
  1583. bool Load(File, bool = false);
  1584. bool Load(VectorBuffer&, bool = false);
  1585. bool LoadJSON(const JSONValue&, bool = false);
  1586. bool LoadXML(const XMLElement&, bool = false);
  1587. void MarkNetworkUpdate() const;
  1588. void Remove();
  1589. void RemoveAttributeAnimation(const String&);
  1590. void RemoveInstanceDefault();
  1591. void RemoveObjectAnimation();
  1592. void ResetToDefault();
  1593. bool Save(File) const;
  1594. bool Save(VectorBuffer&) const;
  1595. bool SaveJSON(JSONValue&) const;
  1596. bool SaveXML(XMLElement&) const;
  1597. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1598. void SetAnimationTime(float);
  1599. bool SetAttribute(const String&, const Variant&);
  1600. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1601. void SetAttributeAnimationSpeed(const String&, float);
  1602. void SetAttributeAnimationTime(const String&, float);
  1603. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1604. void SetInterceptNetworkUpdate(const String&, bool);
  1605. void SetVertex(uint, const Vector2&);
  1606. void SetVertices(Array<Vector2>);
  1607. const Vector2& GetVertex(uint) const;
  1608. // Properties:
  1609. bool animationEnabled;
  1610. /* readonly */
  1611. Array<Variant> attributeDefaults;
  1612. /* readonly */
  1613. Array<AttributeInfo> attributeInfos;
  1614. Array<Variant> attributes;
  1615. /* readonly */
  1616. String category;
  1617. int categoryBits;
  1618. float density;
  1619. bool enabled;
  1620. /* readonly */
  1621. bool enabledEffective;
  1622. float friction;
  1623. int groupIndex;
  1624. /* readonly */
  1625. uint id;
  1626. /* readonly */
  1627. float inertia;
  1628. bool loop;
  1629. int maskBits;
  1630. /* readonly */
  1631. float mass;
  1632. /* readonly */
  1633. Vector2 massCenter;
  1634. /* readonly */
  1635. Node node;
  1636. /* readonly */
  1637. uint numAttributes;
  1638. ObjectAnimation objectAnimation;
  1639. /* readonly */
  1640. int refs;
  1641. float restitution;
  1642. bool temporary;
  1643. bool trigger;
  1644. /* readonly */
  1645. StringHash type;
  1646. /* readonly */
  1647. String typeName;
  1648. uint vertexCount;
  1649. /* readonly */
  1650. int weakRefs;
  1651. };
  1652. class CollisionCircle2D
  1653. {
  1654. // Methods:
  1655. void ApplyAttributes();
  1656. void DrawDebugGeometry(DebugRenderer, bool);
  1657. Variant GetAttribute(const String&) const;
  1658. ValueAnimation GetAttributeAnimation(const String&) const;
  1659. float GetAttributeAnimationSpeed(const String&) const;
  1660. float GetAttributeAnimationTime(const String&) const;
  1661. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1662. Variant GetAttributeDefault(const String&) const;
  1663. bool GetInterceptNetworkUpdate(const String&) const;
  1664. bool HasSubscribedToEvent(Object, const String&);
  1665. bool HasSubscribedToEvent(const String&);
  1666. bool Load(File, bool = false);
  1667. bool Load(VectorBuffer&, bool = false);
  1668. bool LoadJSON(const JSONValue&, bool = false);
  1669. bool LoadXML(const XMLElement&, bool = false);
  1670. void MarkNetworkUpdate() const;
  1671. void Remove();
  1672. void RemoveAttributeAnimation(const String&);
  1673. void RemoveInstanceDefault();
  1674. void RemoveObjectAnimation();
  1675. void ResetToDefault();
  1676. bool Save(File) const;
  1677. bool Save(VectorBuffer&) const;
  1678. bool SaveJSON(JSONValue&) const;
  1679. bool SaveXML(XMLElement&) const;
  1680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1681. void SetAnimationTime(float);
  1682. bool SetAttribute(const String&, const Variant&);
  1683. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1684. void SetAttributeAnimationSpeed(const String&, float);
  1685. void SetAttributeAnimationTime(const String&, float);
  1686. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1687. void SetCenter(float, float);
  1688. void SetInterceptNetworkUpdate(const String&, bool);
  1689. // Properties:
  1690. bool animationEnabled;
  1691. /* readonly */
  1692. Array<Variant> attributeDefaults;
  1693. /* readonly */
  1694. Array<AttributeInfo> attributeInfos;
  1695. Array<Variant> attributes;
  1696. /* readonly */
  1697. String category;
  1698. int categoryBits;
  1699. Vector2 center;
  1700. float density;
  1701. bool enabled;
  1702. /* readonly */
  1703. bool enabledEffective;
  1704. float friction;
  1705. int groupIndex;
  1706. /* readonly */
  1707. uint id;
  1708. /* readonly */
  1709. float inertia;
  1710. int maskBits;
  1711. /* readonly */
  1712. float mass;
  1713. /* readonly */
  1714. Vector2 massCenter;
  1715. /* readonly */
  1716. Node node;
  1717. /* readonly */
  1718. uint numAttributes;
  1719. ObjectAnimation objectAnimation;
  1720. float radius;
  1721. /* readonly */
  1722. int refs;
  1723. float restitution;
  1724. bool temporary;
  1725. bool trigger;
  1726. /* readonly */
  1727. StringHash type;
  1728. /* readonly */
  1729. String typeName;
  1730. /* readonly */
  1731. int weakRefs;
  1732. };
  1733. class CollisionEdge2D
  1734. {
  1735. // Methods:
  1736. void ApplyAttributes();
  1737. void DrawDebugGeometry(DebugRenderer, bool);
  1738. Variant GetAttribute(const String&) const;
  1739. ValueAnimation GetAttributeAnimation(const String&) const;
  1740. float GetAttributeAnimationSpeed(const String&) const;
  1741. float GetAttributeAnimationTime(const String&) const;
  1742. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1743. Variant GetAttributeDefault(const String&) const;
  1744. bool GetInterceptNetworkUpdate(const String&) const;
  1745. bool HasSubscribedToEvent(Object, const String&);
  1746. bool HasSubscribedToEvent(const String&);
  1747. bool Load(File, bool = false);
  1748. bool Load(VectorBuffer&, bool = false);
  1749. bool LoadJSON(const JSONValue&, bool = false);
  1750. bool LoadXML(const XMLElement&, bool = false);
  1751. void MarkNetworkUpdate() const;
  1752. void Remove();
  1753. void RemoveAttributeAnimation(const String&);
  1754. void RemoveInstanceDefault();
  1755. void RemoveObjectAnimation();
  1756. void ResetToDefault();
  1757. bool Save(File) const;
  1758. bool Save(VectorBuffer&) const;
  1759. bool SaveJSON(JSONValue&) const;
  1760. bool SaveXML(XMLElement&) const;
  1761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1762. void SetAnimationTime(float);
  1763. bool SetAttribute(const String&, const Variant&);
  1764. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1765. void SetAttributeAnimationSpeed(const String&, float);
  1766. void SetAttributeAnimationTime(const String&, float);
  1767. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1768. void SetInterceptNetworkUpdate(const String&, bool);
  1769. void SetVertices(const Vector2&, const Vector2&);
  1770. // Properties:
  1771. bool animationEnabled;
  1772. /* readonly */
  1773. Array<Variant> attributeDefaults;
  1774. /* readonly */
  1775. Array<AttributeInfo> attributeInfos;
  1776. Array<Variant> attributes;
  1777. /* readonly */
  1778. String category;
  1779. int categoryBits;
  1780. float density;
  1781. bool enabled;
  1782. /* readonly */
  1783. bool enabledEffective;
  1784. float friction;
  1785. int groupIndex;
  1786. /* readonly */
  1787. uint id;
  1788. /* readonly */
  1789. float inertia;
  1790. int maskBits;
  1791. /* readonly */
  1792. float mass;
  1793. /* readonly */
  1794. Vector2 massCenter;
  1795. /* readonly */
  1796. Node node;
  1797. /* readonly */
  1798. uint numAttributes;
  1799. ObjectAnimation objectAnimation;
  1800. /* readonly */
  1801. int refs;
  1802. float restitution;
  1803. bool temporary;
  1804. bool trigger;
  1805. /* readonly */
  1806. StringHash type;
  1807. /* readonly */
  1808. String typeName;
  1809. Vector2 vertex1;
  1810. Vector2 vertex2;
  1811. /* readonly */
  1812. int weakRefs;
  1813. };
  1814. class CollisionPolygon2D
  1815. {
  1816. // Methods:
  1817. void ApplyAttributes();
  1818. void DrawDebugGeometry(DebugRenderer, bool);
  1819. Variant GetAttribute(const String&) const;
  1820. ValueAnimation GetAttributeAnimation(const String&) const;
  1821. float GetAttributeAnimationSpeed(const String&) const;
  1822. float GetAttributeAnimationTime(const String&) const;
  1823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1824. Variant GetAttributeDefault(const String&) const;
  1825. bool GetInterceptNetworkUpdate(const String&) const;
  1826. Array<Vector2> GetVertices() const;
  1827. bool HasSubscribedToEvent(Object, const String&);
  1828. bool HasSubscribedToEvent(const String&);
  1829. bool Load(File, bool = false);
  1830. bool Load(VectorBuffer&, bool = false);
  1831. bool LoadJSON(const JSONValue&, bool = false);
  1832. bool LoadXML(const XMLElement&, bool = false);
  1833. void MarkNetworkUpdate() const;
  1834. void Remove();
  1835. void RemoveAttributeAnimation(const String&);
  1836. void RemoveInstanceDefault();
  1837. void RemoveObjectAnimation();
  1838. void ResetToDefault();
  1839. bool Save(File) const;
  1840. bool Save(VectorBuffer&) const;
  1841. bool SaveJSON(JSONValue&) const;
  1842. bool SaveXML(XMLElement&) const;
  1843. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1844. void SetAnimationTime(float);
  1845. bool SetAttribute(const String&, const Variant&);
  1846. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1847. void SetAttributeAnimationSpeed(const String&, float);
  1848. void SetAttributeAnimationTime(const String&, float);
  1849. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1850. void SetInterceptNetworkUpdate(const String&, bool);
  1851. void SetVertex(uint, const Vector2&);
  1852. void SetVertices(Array<Vector2>);
  1853. const Vector2& GetVertex(uint) const;
  1854. // Properties:
  1855. bool animationEnabled;
  1856. /* readonly */
  1857. Array<Variant> attributeDefaults;
  1858. /* readonly */
  1859. Array<AttributeInfo> attributeInfos;
  1860. Array<Variant> attributes;
  1861. /* readonly */
  1862. String category;
  1863. int categoryBits;
  1864. float density;
  1865. bool enabled;
  1866. /* readonly */
  1867. bool enabledEffective;
  1868. float friction;
  1869. int groupIndex;
  1870. /* readonly */
  1871. uint id;
  1872. /* readonly */
  1873. float inertia;
  1874. int maskBits;
  1875. /* readonly */
  1876. float mass;
  1877. /* readonly */
  1878. Vector2 massCenter;
  1879. /* readonly */
  1880. Node node;
  1881. /* readonly */
  1882. uint numAttributes;
  1883. ObjectAnimation objectAnimation;
  1884. /* readonly */
  1885. int refs;
  1886. float restitution;
  1887. bool temporary;
  1888. bool trigger;
  1889. /* readonly */
  1890. StringHash type;
  1891. /* readonly */
  1892. String typeName;
  1893. uint vertexCount;
  1894. /* readonly */
  1895. int weakRefs;
  1896. };
  1897. class CollisionShape
  1898. {
  1899. // Methods:
  1900. void ApplyAttributes();
  1901. void DrawDebugGeometry(DebugRenderer, bool);
  1902. Variant GetAttribute(const String&) const;
  1903. ValueAnimation GetAttributeAnimation(const String&) const;
  1904. float GetAttributeAnimationSpeed(const String&) const;
  1905. float GetAttributeAnimationTime(const String&) const;
  1906. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1907. Variant GetAttributeDefault(const String&) const;
  1908. bool GetInterceptNetworkUpdate(const String&) const;
  1909. bool HasSubscribedToEvent(Object, const String&);
  1910. bool HasSubscribedToEvent(const String&);
  1911. bool Load(File, bool = false);
  1912. bool Load(VectorBuffer&, bool = false);
  1913. bool LoadJSON(const JSONValue&, bool = false);
  1914. bool LoadXML(const XMLElement&, bool = false);
  1915. void MarkNetworkUpdate() const;
  1916. void Remove();
  1917. void RemoveAttributeAnimation(const String&);
  1918. void RemoveInstanceDefault();
  1919. void RemoveObjectAnimation();
  1920. void ResetToDefault();
  1921. bool Save(File) const;
  1922. bool Save(VectorBuffer&) const;
  1923. bool SaveJSON(JSONValue&) const;
  1924. bool SaveXML(XMLElement&) const;
  1925. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1926. void SetAnimationTime(float);
  1927. bool SetAttribute(const String&, const Variant&);
  1928. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1929. void SetAttributeAnimationSpeed(const String&, float);
  1930. void SetAttributeAnimationTime(const String&, float);
  1931. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1932. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1938. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1939. void SetInterceptNetworkUpdate(const String&, bool);
  1940. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1941. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1942. void SetTerrain(uint = 0);
  1943. void SetTransform(const Vector3&, const Quaternion&);
  1944. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1945. // Properties:
  1946. bool animationEnabled;
  1947. /* readonly */
  1948. Array<Variant> attributeDefaults;
  1949. /* readonly */
  1950. Array<AttributeInfo> attributeInfos;
  1951. Array<Variant> attributes;
  1952. /* readonly */
  1953. String category;
  1954. bool enabled;
  1955. /* readonly */
  1956. bool enabledEffective;
  1957. /* readonly */
  1958. uint id;
  1959. uint lodLevel;
  1960. float margin;
  1961. Model model;
  1962. /* readonly */
  1963. Node node;
  1964. /* readonly */
  1965. uint numAttributes;
  1966. ObjectAnimation objectAnimation;
  1967. Vector3 position;
  1968. /* readonly */
  1969. int refs;
  1970. Quaternion rotation;
  1971. ShapeType shapeType;
  1972. Vector3 size;
  1973. bool temporary;
  1974. /* readonly */
  1975. StringHash type;
  1976. /* readonly */
  1977. String typeName;
  1978. /* readonly */
  1979. int weakRefs;
  1980. /* readonly */
  1981. BoundingBox worldBoundingBox;
  1982. };
  1983. class CollisionShape2D
  1984. {
  1985. // Methods:
  1986. void ApplyAttributes();
  1987. void DrawDebugGeometry(DebugRenderer, bool);
  1988. Variant GetAttribute(const String&) const;
  1989. ValueAnimation GetAttributeAnimation(const String&) const;
  1990. float GetAttributeAnimationSpeed(const String&) const;
  1991. float GetAttributeAnimationTime(const String&) const;
  1992. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1993. Variant GetAttributeDefault(const String&) const;
  1994. bool GetInterceptNetworkUpdate(const String&) const;
  1995. bool HasSubscribedToEvent(Object, const String&);
  1996. bool HasSubscribedToEvent(const String&);
  1997. bool Load(File, bool = false);
  1998. bool Load(VectorBuffer&, bool = false);
  1999. bool LoadJSON(const JSONValue&, bool = false);
  2000. bool LoadXML(const XMLElement&, bool = false);
  2001. void MarkNetworkUpdate() const;
  2002. void Remove();
  2003. void RemoveAttributeAnimation(const String&);
  2004. void RemoveInstanceDefault();
  2005. void RemoveObjectAnimation();
  2006. void ResetToDefault();
  2007. bool Save(File) const;
  2008. bool Save(VectorBuffer&) const;
  2009. bool SaveJSON(JSONValue&) const;
  2010. bool SaveXML(XMLElement&) const;
  2011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2012. void SetAnimationTime(float);
  2013. bool SetAttribute(const String&, const Variant&);
  2014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2015. void SetAttributeAnimationSpeed(const String&, float);
  2016. void SetAttributeAnimationTime(const String&, float);
  2017. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2018. void SetInterceptNetworkUpdate(const String&, bool);
  2019. // Properties:
  2020. bool animationEnabled;
  2021. /* readonly */
  2022. Array<Variant> attributeDefaults;
  2023. /* readonly */
  2024. Array<AttributeInfo> attributeInfos;
  2025. Array<Variant> attributes;
  2026. /* readonly */
  2027. String category;
  2028. int categoryBits;
  2029. float density;
  2030. bool enabled;
  2031. /* readonly */
  2032. bool enabledEffective;
  2033. float friction;
  2034. int groupIndex;
  2035. /* readonly */
  2036. uint id;
  2037. /* readonly */
  2038. float inertia;
  2039. int maskBits;
  2040. /* readonly */
  2041. float mass;
  2042. /* readonly */
  2043. Vector2 massCenter;
  2044. /* readonly */
  2045. Node node;
  2046. /* readonly */
  2047. uint numAttributes;
  2048. ObjectAnimation objectAnimation;
  2049. /* readonly */
  2050. int refs;
  2051. float restitution;
  2052. bool temporary;
  2053. bool trigger;
  2054. /* readonly */
  2055. StringHash type;
  2056. /* readonly */
  2057. String typeName;
  2058. /* readonly */
  2059. int weakRefs;
  2060. };
  2061. class Color
  2062. {
  2063. // Methods:
  2064. Color Abs() const;
  2065. float Average() const;
  2066. float Chroma() const;
  2067. void Clip(bool);
  2068. bool Equals() const;
  2069. void FromHSL(float, float, float, float);
  2070. void FromHSV(float, float, float, float);
  2071. float Hue() const;
  2072. void Invert(bool);
  2073. Color Lerp(const Color&, float) const;
  2074. float Lightness() const;
  2075. float Luma() const;
  2076. float MaxRGB() const;
  2077. float MinRGB() const;
  2078. float Range() const;
  2079. float SaturationHSL() const;
  2080. float SaturationHSV() const;
  2081. float SumRGB() const;
  2082. Vector3 ToHSL() const;
  2083. Vector3 ToHSV() const;
  2084. String ToString() const;
  2085. uint ToUInt() const;
  2086. float Value() const;
  2087. // Properties:
  2088. float a;
  2089. float b;
  2090. /* readonly */
  2091. Array<float> data;
  2092. float g;
  2093. float r;
  2094. /* readonly */
  2095. Vector3 rgb;
  2096. /* readonly */
  2097. Vector4 rgba;
  2098. };
  2099. class ColorFrame
  2100. {
  2101. // Properties:
  2102. Color color;
  2103. float time;
  2104. };
  2105. class Component
  2106. {
  2107. // Methods:
  2108. void ApplyAttributes();
  2109. void DrawDebugGeometry(DebugRenderer, bool);
  2110. Variant GetAttribute(const String&) const;
  2111. ValueAnimation GetAttributeAnimation(const String&) const;
  2112. float GetAttributeAnimationSpeed(const String&) const;
  2113. float GetAttributeAnimationTime(const String&) const;
  2114. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2115. Variant GetAttributeDefault(const String&) const;
  2116. bool GetInterceptNetworkUpdate(const String&) const;
  2117. bool HasSubscribedToEvent(Object, const String&);
  2118. bool HasSubscribedToEvent(const String&);
  2119. bool Load(File, bool = false);
  2120. bool Load(VectorBuffer&, bool = false);
  2121. bool LoadJSON(const JSONValue&, bool = false);
  2122. bool LoadXML(const XMLElement&, bool = false);
  2123. void MarkNetworkUpdate() const;
  2124. void Remove();
  2125. void RemoveAttributeAnimation(const String&);
  2126. void RemoveInstanceDefault();
  2127. void RemoveObjectAnimation();
  2128. void ResetToDefault();
  2129. bool Save(File) const;
  2130. bool Save(VectorBuffer&) const;
  2131. bool SaveJSON(JSONValue&) const;
  2132. bool SaveXML(XMLElement&) const;
  2133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2134. void SetAnimationTime(float);
  2135. bool SetAttribute(const String&, const Variant&);
  2136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2137. void SetAttributeAnimationSpeed(const String&, float);
  2138. void SetAttributeAnimationTime(const String&, float);
  2139. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2140. void SetInterceptNetworkUpdate(const String&, bool);
  2141. // Properties:
  2142. bool animationEnabled;
  2143. /* readonly */
  2144. Array<Variant> attributeDefaults;
  2145. /* readonly */
  2146. Array<AttributeInfo> attributeInfos;
  2147. Array<Variant> attributes;
  2148. /* readonly */
  2149. String category;
  2150. bool enabled;
  2151. /* readonly */
  2152. bool enabledEffective;
  2153. /* readonly */
  2154. uint id;
  2155. /* readonly */
  2156. Node node;
  2157. /* readonly */
  2158. uint numAttributes;
  2159. ObjectAnimation objectAnimation;
  2160. /* readonly */
  2161. int refs;
  2162. bool temporary;
  2163. /* readonly */
  2164. StringHash type;
  2165. /* readonly */
  2166. String typeName;
  2167. /* readonly */
  2168. int weakRefs;
  2169. };
  2170. class Connection
  2171. {
  2172. // Methods:
  2173. void Disconnect(int = 0);
  2174. bool HasSubscribedToEvent(Object, const String&);
  2175. bool HasSubscribedToEvent(const String&);
  2176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2177. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2178. void SendPackageToClient(PackageFile);
  2179. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2180. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2181. String ToString() const;
  2182. // Properties:
  2183. /* readonly */
  2184. String address;
  2185. /* readonly */
  2186. float bytesInPerSec;
  2187. /* readonly */
  2188. float bytesOutPerSec;
  2189. /* readonly */
  2190. String category;
  2191. /* readonly */
  2192. bool client;
  2193. /* readonly */
  2194. bool connectPending;
  2195. /* readonly */
  2196. bool connected;
  2197. Controls controls;
  2198. /* readonly */
  2199. String downloadName;
  2200. /* readonly */
  2201. float downloadProgress;
  2202. VariantMap identity;
  2203. /* readonly */
  2204. float lastHeardTime;
  2205. bool logStatistics;
  2206. /* readonly */
  2207. uint numDownloads;
  2208. /* readonly */
  2209. float packetsInPerSec;
  2210. /* readonly */
  2211. float packetsOutPerSec;
  2212. /* readonly */
  2213. uint16 port;
  2214. Vector3 position;
  2215. /* readonly */
  2216. int refs;
  2217. Quaternion rotation;
  2218. /* readonly */
  2219. float roundTripTime;
  2220. Scene scene;
  2221. /* readonly */
  2222. bool sceneLoaded;
  2223. uint8 timeStamp;
  2224. /* readonly */
  2225. StringHash type;
  2226. /* readonly */
  2227. String typeName;
  2228. /* readonly */
  2229. int weakRefs;
  2230. };
  2231. class Console
  2232. {
  2233. // Methods:
  2234. void CopySelectedRows() const;
  2235. bool HasSubscribedToEvent(Object, const String&);
  2236. bool HasSubscribedToEvent(const String&);
  2237. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2238. void Toggle();
  2239. void UpdateElements();
  2240. // Properties:
  2241. bool autoVisibleOnError;
  2242. /* readonly */
  2243. BorderImage background;
  2244. /* readonly */
  2245. String category;
  2246. /* readonly */
  2247. Button closeButton;
  2248. String commandInterpreter;
  2249. XMLFile defaultStyle;
  2250. bool focusOnShow;
  2251. /* readonly */
  2252. uint historyPosition;
  2253. /* readonly */
  2254. Array<String> historyRow;
  2255. /* readonly */
  2256. LineEdit lineEdit;
  2257. uint numBufferedRows;
  2258. uint numHistoryRows;
  2259. uint numRows;
  2260. /* readonly */
  2261. int refs;
  2262. /* readonly */
  2263. StringHash type;
  2264. /* readonly */
  2265. String typeName;
  2266. bool visible;
  2267. /* readonly */
  2268. int weakRefs;
  2269. };
  2270. class Constraint
  2271. {
  2272. // Methods:
  2273. void ApplyAttributes();
  2274. void DrawDebugGeometry(DebugRenderer, bool);
  2275. Variant GetAttribute(const String&) const;
  2276. ValueAnimation GetAttributeAnimation(const String&) const;
  2277. float GetAttributeAnimationSpeed(const String&) const;
  2278. float GetAttributeAnimationTime(const String&) const;
  2279. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2280. Variant GetAttributeDefault(const String&) const;
  2281. bool GetInterceptNetworkUpdate(const String&) const;
  2282. bool HasSubscribedToEvent(Object, const String&);
  2283. bool HasSubscribedToEvent(const String&);
  2284. bool Load(File, bool = false);
  2285. bool Load(VectorBuffer&, bool = false);
  2286. bool LoadJSON(const JSONValue&, bool = false);
  2287. bool LoadXML(const XMLElement&, bool = false);
  2288. void MarkNetworkUpdate() const;
  2289. void Remove();
  2290. void RemoveAttributeAnimation(const String&);
  2291. void RemoveInstanceDefault();
  2292. void RemoveObjectAnimation();
  2293. void ResetToDefault();
  2294. bool Save(File) const;
  2295. bool Save(VectorBuffer&) const;
  2296. bool SaveJSON(JSONValue&) const;
  2297. bool SaveXML(XMLElement&) const;
  2298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2299. void SetAnimationTime(float);
  2300. bool SetAttribute(const String&, const Variant&);
  2301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2302. void SetAttributeAnimationSpeed(const String&, float);
  2303. void SetAttributeAnimationTime(const String&, float);
  2304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2305. void SetInterceptNetworkUpdate(const String&, bool);
  2306. // Properties:
  2307. bool animationEnabled;
  2308. /* readonly */
  2309. Array<Variant> attributeDefaults;
  2310. /* readonly */
  2311. Array<AttributeInfo> attributeInfos;
  2312. Array<Variant> attributes;
  2313. /* writeonly */
  2314. Vector3 axis;
  2315. /* readonly */
  2316. String category;
  2317. float cfm;
  2318. ConstraintType constraintType;
  2319. bool disableCollision;
  2320. bool enabled;
  2321. /* readonly */
  2322. bool enabledEffective;
  2323. float erp;
  2324. Vector2 highLimit;
  2325. /* readonly */
  2326. uint id;
  2327. Vector2 lowLimit;
  2328. /* readonly */
  2329. Node node;
  2330. /* readonly */
  2331. uint numAttributes;
  2332. ObjectAnimation objectAnimation;
  2333. /* writeonly */
  2334. Vector3 otherAxis;
  2335. RigidBody otherBody;
  2336. Vector3 otherPosition;
  2337. Quaternion otherRotation;
  2338. /* readonly */
  2339. RigidBody ownBody;
  2340. Vector3 position;
  2341. /* readonly */
  2342. int refs;
  2343. Quaternion rotation;
  2344. bool temporary;
  2345. /* readonly */
  2346. StringHash type;
  2347. /* readonly */
  2348. String typeName;
  2349. /* readonly */
  2350. int weakRefs;
  2351. Vector3 worldPosition;
  2352. };
  2353. class Constraint2D
  2354. {
  2355. // Methods:
  2356. void ApplyAttributes();
  2357. void DrawDebugGeometry(DebugRenderer, bool);
  2358. Variant GetAttribute(const String&) const;
  2359. ValueAnimation GetAttributeAnimation(const String&) const;
  2360. float GetAttributeAnimationSpeed(const String&) const;
  2361. float GetAttributeAnimationTime(const String&) const;
  2362. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2363. Variant GetAttributeDefault(const String&) const;
  2364. bool GetInterceptNetworkUpdate(const String&) const;
  2365. bool HasSubscribedToEvent(Object, const String&);
  2366. bool HasSubscribedToEvent(const String&);
  2367. bool Load(File, bool = false);
  2368. bool Load(VectorBuffer&, bool = false);
  2369. bool LoadJSON(const JSONValue&, bool = false);
  2370. bool LoadXML(const XMLElement&, bool = false);
  2371. void MarkNetworkUpdate() const;
  2372. void Remove();
  2373. void RemoveAttributeAnimation(const String&);
  2374. void RemoveInstanceDefault();
  2375. void RemoveObjectAnimation();
  2376. void ResetToDefault();
  2377. bool Save(File) const;
  2378. bool Save(VectorBuffer&) const;
  2379. bool SaveJSON(JSONValue&) const;
  2380. bool SaveXML(XMLElement&) const;
  2381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2382. void SetAnimationTime(float);
  2383. bool SetAttribute(const String&, const Variant&);
  2384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2385. void SetAttributeAnimationSpeed(const String&, float);
  2386. void SetAttributeAnimationTime(const String&, float);
  2387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2388. void SetInterceptNetworkUpdate(const String&, bool);
  2389. // Properties:
  2390. bool animationEnabled;
  2391. /* readonly */
  2392. Array<Variant> attributeDefaults;
  2393. /* readonly */
  2394. Array<AttributeInfo> attributeInfos;
  2395. Array<Variant> attributes;
  2396. /* readonly */
  2397. String category;
  2398. bool collideConnected;
  2399. bool enabled;
  2400. /* readonly */
  2401. bool enabledEffective;
  2402. /* readonly */
  2403. uint id;
  2404. /* readonly */
  2405. Node node;
  2406. /* readonly */
  2407. uint numAttributes;
  2408. ObjectAnimation objectAnimation;
  2409. RigidBody2D otherBody;
  2410. /* readonly */
  2411. RigidBody2D ownerBody;
  2412. /* readonly */
  2413. int refs;
  2414. bool temporary;
  2415. /* readonly */
  2416. StringHash type;
  2417. /* readonly */
  2418. String typeName;
  2419. /* readonly */
  2420. int weakRefs;
  2421. };
  2422. class ConstraintDistance2D
  2423. {
  2424. // Methods:
  2425. void ApplyAttributes();
  2426. void DrawDebugGeometry(DebugRenderer, bool);
  2427. Variant GetAttribute(const String&) const;
  2428. ValueAnimation GetAttributeAnimation(const String&) const;
  2429. float GetAttributeAnimationSpeed(const String&) const;
  2430. float GetAttributeAnimationTime(const String&) const;
  2431. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2432. Variant GetAttributeDefault(const String&) const;
  2433. bool GetInterceptNetworkUpdate(const String&) const;
  2434. bool HasSubscribedToEvent(Object, const String&);
  2435. bool HasSubscribedToEvent(const String&);
  2436. bool Load(File, bool = false);
  2437. bool Load(VectorBuffer&, bool = false);
  2438. bool LoadJSON(const JSONValue&, bool = false);
  2439. bool LoadXML(const XMLElement&, bool = false);
  2440. void MarkNetworkUpdate() const;
  2441. void Remove();
  2442. void RemoveAttributeAnimation(const String&);
  2443. void RemoveInstanceDefault();
  2444. void RemoveObjectAnimation();
  2445. void ResetToDefault();
  2446. bool Save(File) const;
  2447. bool Save(VectorBuffer&) const;
  2448. bool SaveJSON(JSONValue&) const;
  2449. bool SaveXML(XMLElement&) const;
  2450. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2451. void SetAnimationTime(float);
  2452. bool SetAttribute(const String&, const Variant&);
  2453. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2454. void SetAttributeAnimationSpeed(const String&, float);
  2455. void SetAttributeAnimationTime(const String&, float);
  2456. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2457. void SetInterceptNetworkUpdate(const String&, bool);
  2458. // Properties:
  2459. bool animationEnabled;
  2460. /* readonly */
  2461. Array<Variant> attributeDefaults;
  2462. /* readonly */
  2463. Array<AttributeInfo> attributeInfos;
  2464. Array<Variant> attributes;
  2465. /* readonly */
  2466. String category;
  2467. bool collideConnected;
  2468. float dampingRatio;
  2469. bool enabled;
  2470. /* readonly */
  2471. bool enabledEffective;
  2472. float frequencyHz;
  2473. /* readonly */
  2474. uint id;
  2475. /* readonly */
  2476. Node node;
  2477. /* readonly */
  2478. uint numAttributes;
  2479. ObjectAnimation objectAnimation;
  2480. RigidBody2D otherBody;
  2481. Vector2 otherBodyAnchor;
  2482. /* readonly */
  2483. RigidBody2D ownerBody;
  2484. Vector2 ownerBodyAnchor;
  2485. /* readonly */
  2486. int refs;
  2487. bool temporary;
  2488. /* readonly */
  2489. StringHash type;
  2490. /* readonly */
  2491. String typeName;
  2492. /* readonly */
  2493. int weakRefs;
  2494. };
  2495. class ConstraintFriction2D
  2496. {
  2497. // Methods:
  2498. void ApplyAttributes();
  2499. void DrawDebugGeometry(DebugRenderer, bool);
  2500. Variant GetAttribute(const String&) const;
  2501. ValueAnimation GetAttributeAnimation(const String&) const;
  2502. float GetAttributeAnimationSpeed(const String&) const;
  2503. float GetAttributeAnimationTime(const String&) const;
  2504. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2505. Variant GetAttributeDefault(const String&) const;
  2506. bool GetInterceptNetworkUpdate(const String&) const;
  2507. bool HasSubscribedToEvent(Object, const String&);
  2508. bool HasSubscribedToEvent(const String&);
  2509. bool Load(File, bool = false);
  2510. bool Load(VectorBuffer&, bool = false);
  2511. bool LoadJSON(const JSONValue&, bool = false);
  2512. bool LoadXML(const XMLElement&, bool = false);
  2513. void MarkNetworkUpdate() const;
  2514. void Remove();
  2515. void RemoveAttributeAnimation(const String&);
  2516. void RemoveInstanceDefault();
  2517. void RemoveObjectAnimation();
  2518. void ResetToDefault();
  2519. bool Save(File) const;
  2520. bool Save(VectorBuffer&) const;
  2521. bool SaveJSON(JSONValue&) const;
  2522. bool SaveXML(XMLElement&) const;
  2523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2524. void SetAnimationTime(float);
  2525. bool SetAttribute(const String&, const Variant&);
  2526. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2527. void SetAttributeAnimationSpeed(const String&, float);
  2528. void SetAttributeAnimationTime(const String&, float);
  2529. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2530. void SetInterceptNetworkUpdate(const String&, bool);
  2531. // Properties:
  2532. Vector2 anchor;
  2533. bool animationEnabled;
  2534. /* readonly */
  2535. Array<Variant> attributeDefaults;
  2536. /* readonly */
  2537. Array<AttributeInfo> attributeInfos;
  2538. Array<Variant> attributes;
  2539. /* readonly */
  2540. String category;
  2541. bool collideConnected;
  2542. bool enabled;
  2543. /* readonly */
  2544. bool enabledEffective;
  2545. /* readonly */
  2546. uint id;
  2547. float maxForce;
  2548. float maxTorque;
  2549. /* readonly */
  2550. Node node;
  2551. /* readonly */
  2552. uint numAttributes;
  2553. ObjectAnimation objectAnimation;
  2554. RigidBody2D otherBody;
  2555. /* readonly */
  2556. RigidBody2D ownerBody;
  2557. /* readonly */
  2558. int refs;
  2559. bool temporary;
  2560. /* readonly */
  2561. StringHash type;
  2562. /* readonly */
  2563. String typeName;
  2564. /* readonly */
  2565. int weakRefs;
  2566. };
  2567. class ConstraintGear2D
  2568. {
  2569. // Methods:
  2570. void ApplyAttributes();
  2571. void DrawDebugGeometry(DebugRenderer, bool);
  2572. Variant GetAttribute(const String&) const;
  2573. ValueAnimation GetAttributeAnimation(const String&) const;
  2574. float GetAttributeAnimationSpeed(const String&) const;
  2575. float GetAttributeAnimationTime(const String&) const;
  2576. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2577. Variant GetAttributeDefault(const String&) const;
  2578. bool GetInterceptNetworkUpdate(const String&) const;
  2579. bool HasSubscribedToEvent(Object, const String&);
  2580. bool HasSubscribedToEvent(const String&);
  2581. bool Load(File, bool = false);
  2582. bool Load(VectorBuffer&, bool = false);
  2583. bool LoadJSON(const JSONValue&, bool = false);
  2584. bool LoadXML(const XMLElement&, bool = false);
  2585. void MarkNetworkUpdate() const;
  2586. void Remove();
  2587. void RemoveAttributeAnimation(const String&);
  2588. void RemoveInstanceDefault();
  2589. void RemoveObjectAnimation();
  2590. void ResetToDefault();
  2591. bool Save(File) const;
  2592. bool Save(VectorBuffer&) const;
  2593. bool SaveJSON(JSONValue&) const;
  2594. bool SaveXML(XMLElement&) const;
  2595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2596. void SetAnimationTime(float);
  2597. bool SetAttribute(const String&, const Variant&);
  2598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2599. void SetAttributeAnimationSpeed(const String&, float);
  2600. void SetAttributeAnimationTime(const String&, float);
  2601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2602. void SetInterceptNetworkUpdate(const String&, bool);
  2603. // Properties:
  2604. bool animationEnabled;
  2605. /* readonly */
  2606. Array<Variant> attributeDefaults;
  2607. /* readonly */
  2608. Array<AttributeInfo> attributeInfos;
  2609. Array<Variant> attributes;
  2610. /* readonly */
  2611. String category;
  2612. bool collideConnected;
  2613. bool enabled;
  2614. /* readonly */
  2615. bool enabledEffective;
  2616. /* readonly */
  2617. uint id;
  2618. /* readonly */
  2619. Node node;
  2620. /* readonly */
  2621. uint numAttributes;
  2622. ObjectAnimation objectAnimation;
  2623. RigidBody2D otherBody;
  2624. Constraint2D otherConstraint;
  2625. /* readonly */
  2626. RigidBody2D ownerBody;
  2627. Constraint2D ownerConstraint;
  2628. float ratio;
  2629. /* readonly */
  2630. int refs;
  2631. bool temporary;
  2632. /* readonly */
  2633. StringHash type;
  2634. /* readonly */
  2635. String typeName;
  2636. /* readonly */
  2637. int weakRefs;
  2638. };
  2639. class ConstraintMotor2D
  2640. {
  2641. // Methods:
  2642. void ApplyAttributes();
  2643. void DrawDebugGeometry(DebugRenderer, bool);
  2644. Variant GetAttribute(const String&) const;
  2645. ValueAnimation GetAttributeAnimation(const String&) const;
  2646. float GetAttributeAnimationSpeed(const String&) const;
  2647. float GetAttributeAnimationTime(const String&) const;
  2648. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2649. Variant GetAttributeDefault(const String&) const;
  2650. bool GetInterceptNetworkUpdate(const String&) const;
  2651. bool HasSubscribedToEvent(Object, const String&);
  2652. bool HasSubscribedToEvent(const String&);
  2653. bool Load(File, bool = false);
  2654. bool Load(VectorBuffer&, bool = false);
  2655. bool LoadJSON(const JSONValue&, bool = false);
  2656. bool LoadXML(const XMLElement&, bool = false);
  2657. void MarkNetworkUpdate() const;
  2658. void Remove();
  2659. void RemoveAttributeAnimation(const String&);
  2660. void RemoveInstanceDefault();
  2661. void RemoveObjectAnimation();
  2662. void ResetToDefault();
  2663. bool Save(File) const;
  2664. bool Save(VectorBuffer&) const;
  2665. bool SaveJSON(JSONValue&) const;
  2666. bool SaveXML(XMLElement&) const;
  2667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2668. void SetAnimationTime(float);
  2669. bool SetAttribute(const String&, const Variant&);
  2670. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2671. void SetAttributeAnimationSpeed(const String&, float);
  2672. void SetAttributeAnimationTime(const String&, float);
  2673. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2674. void SetInterceptNetworkUpdate(const String&, bool);
  2675. // Properties:
  2676. float angularOffset;
  2677. bool animationEnabled;
  2678. /* readonly */
  2679. Array<Variant> attributeDefaults;
  2680. /* readonly */
  2681. Array<AttributeInfo> attributeInfos;
  2682. Array<Variant> attributes;
  2683. /* readonly */
  2684. String category;
  2685. bool collideConnected;
  2686. float correctionFactor;
  2687. bool enabled;
  2688. /* readonly */
  2689. bool enabledEffective;
  2690. /* readonly */
  2691. uint id;
  2692. Vector2 linearOffset;
  2693. float maxForce;
  2694. float maxTorque;
  2695. /* readonly */
  2696. Node node;
  2697. /* readonly */
  2698. uint numAttributes;
  2699. ObjectAnimation objectAnimation;
  2700. RigidBody2D otherBody;
  2701. /* readonly */
  2702. RigidBody2D ownerBody;
  2703. /* readonly */
  2704. int refs;
  2705. bool temporary;
  2706. /* readonly */
  2707. StringHash type;
  2708. /* readonly */
  2709. String typeName;
  2710. /* readonly */
  2711. int weakRefs;
  2712. };
  2713. class ConstraintMouse2D
  2714. {
  2715. // Methods:
  2716. void ApplyAttributes();
  2717. void DrawDebugGeometry(DebugRenderer, bool);
  2718. Variant GetAttribute(const String&) const;
  2719. ValueAnimation GetAttributeAnimation(const String&) const;
  2720. float GetAttributeAnimationSpeed(const String&) const;
  2721. float GetAttributeAnimationTime(const String&) const;
  2722. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2723. Variant GetAttributeDefault(const String&) const;
  2724. bool GetInterceptNetworkUpdate(const String&) const;
  2725. bool HasSubscribedToEvent(Object, const String&);
  2726. bool HasSubscribedToEvent(const String&);
  2727. bool Load(File, bool = false);
  2728. bool Load(VectorBuffer&, bool = false);
  2729. bool LoadJSON(const JSONValue&, bool = false);
  2730. bool LoadXML(const XMLElement&, bool = false);
  2731. void MarkNetworkUpdate() const;
  2732. void Remove();
  2733. void RemoveAttributeAnimation(const String&);
  2734. void RemoveInstanceDefault();
  2735. void RemoveObjectAnimation();
  2736. void ResetToDefault();
  2737. bool Save(File) const;
  2738. bool Save(VectorBuffer&) const;
  2739. bool SaveJSON(JSONValue&) const;
  2740. bool SaveXML(XMLElement&) const;
  2741. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2742. void SetAnimationTime(float);
  2743. bool SetAttribute(const String&, const Variant&);
  2744. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2745. void SetAttributeAnimationSpeed(const String&, float);
  2746. void SetAttributeAnimationTime(const String&, float);
  2747. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2748. void SetInterceptNetworkUpdate(const String&, bool);
  2749. // Properties:
  2750. bool animationEnabled;
  2751. /* readonly */
  2752. Array<Variant> attributeDefaults;
  2753. /* readonly */
  2754. Array<AttributeInfo> attributeInfos;
  2755. Array<Variant> attributes;
  2756. /* readonly */
  2757. String category;
  2758. bool collideConnected;
  2759. float dampingRatio;
  2760. bool enabled;
  2761. /* readonly */
  2762. bool enabledEffective;
  2763. float frequencyHz;
  2764. /* readonly */
  2765. uint id;
  2766. float maxForce;
  2767. /* readonly */
  2768. Node node;
  2769. /* readonly */
  2770. uint numAttributes;
  2771. ObjectAnimation objectAnimation;
  2772. RigidBody2D otherBody;
  2773. /* readonly */
  2774. RigidBody2D ownerBody;
  2775. /* readonly */
  2776. int refs;
  2777. Vector2 target;
  2778. bool temporary;
  2779. /* readonly */
  2780. StringHash type;
  2781. /* readonly */
  2782. String typeName;
  2783. /* readonly */
  2784. int weakRefs;
  2785. };
  2786. class ConstraintPrismatic2D
  2787. {
  2788. // Methods:
  2789. void ApplyAttributes();
  2790. void DrawDebugGeometry(DebugRenderer, bool);
  2791. Variant GetAttribute(const String&) const;
  2792. ValueAnimation GetAttributeAnimation(const String&) const;
  2793. float GetAttributeAnimationSpeed(const String&) const;
  2794. float GetAttributeAnimationTime(const String&) const;
  2795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2796. Variant GetAttributeDefault(const String&) const;
  2797. bool GetInterceptNetworkUpdate(const String&) const;
  2798. bool HasSubscribedToEvent(Object, const String&);
  2799. bool HasSubscribedToEvent(const String&);
  2800. bool Load(File, bool = false);
  2801. bool Load(VectorBuffer&, bool = false);
  2802. bool LoadJSON(const JSONValue&, bool = false);
  2803. bool LoadXML(const XMLElement&, bool = false);
  2804. void MarkNetworkUpdate() const;
  2805. void Remove();
  2806. void RemoveAttributeAnimation(const String&);
  2807. void RemoveInstanceDefault();
  2808. void RemoveObjectAnimation();
  2809. void ResetToDefault();
  2810. bool Save(File) const;
  2811. bool Save(VectorBuffer&) const;
  2812. bool SaveJSON(JSONValue&) const;
  2813. bool SaveXML(XMLElement&) const;
  2814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2815. void SetAnimationTime(float);
  2816. bool SetAttribute(const String&, const Variant&);
  2817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2818. void SetAttributeAnimationSpeed(const String&, float);
  2819. void SetAttributeAnimationTime(const String&, float);
  2820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2821. void SetInterceptNetworkUpdate(const String&, bool);
  2822. // Properties:
  2823. Vector2 anchor;
  2824. bool animationEnabled;
  2825. /* readonly */
  2826. Array<Variant> attributeDefaults;
  2827. /* readonly */
  2828. Array<AttributeInfo> attributeInfos;
  2829. Array<Variant> attributes;
  2830. Vector2 axis;
  2831. /* readonly */
  2832. String category;
  2833. bool collideConnected;
  2834. bool enableLimit;
  2835. bool enableMotor;
  2836. bool enabled;
  2837. /* readonly */
  2838. bool enabledEffective;
  2839. /* readonly */
  2840. uint id;
  2841. float lowerTranslation;
  2842. float maxMotorForce;
  2843. float motorSpeed;
  2844. /* readonly */
  2845. Node node;
  2846. /* readonly */
  2847. uint numAttributes;
  2848. ObjectAnimation objectAnimation;
  2849. RigidBody2D otherBody;
  2850. /* readonly */
  2851. RigidBody2D ownerBody;
  2852. /* readonly */
  2853. int refs;
  2854. bool temporary;
  2855. /* readonly */
  2856. StringHash type;
  2857. /* readonly */
  2858. String typeName;
  2859. float upperTranslation;
  2860. /* readonly */
  2861. int weakRefs;
  2862. };
  2863. class ConstraintPulley2D
  2864. {
  2865. // Methods:
  2866. void ApplyAttributes();
  2867. void DrawDebugGeometry(DebugRenderer, bool);
  2868. Variant GetAttribute(const String&) const;
  2869. ValueAnimation GetAttributeAnimation(const String&) const;
  2870. float GetAttributeAnimationSpeed(const String&) const;
  2871. float GetAttributeAnimationTime(const String&) const;
  2872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2873. Variant GetAttributeDefault(const String&) const;
  2874. bool GetInterceptNetworkUpdate(const String&) const;
  2875. bool HasSubscribedToEvent(Object, const String&);
  2876. bool HasSubscribedToEvent(const String&);
  2877. bool Load(File, bool = false);
  2878. bool Load(VectorBuffer&, bool = false);
  2879. bool LoadJSON(const JSONValue&, bool = false);
  2880. bool LoadXML(const XMLElement&, bool = false);
  2881. void MarkNetworkUpdate() const;
  2882. void Remove();
  2883. void RemoveAttributeAnimation(const String&);
  2884. void RemoveInstanceDefault();
  2885. void RemoveObjectAnimation();
  2886. void ResetToDefault();
  2887. bool Save(File) const;
  2888. bool Save(VectorBuffer&) const;
  2889. bool SaveJSON(JSONValue&) const;
  2890. bool SaveXML(XMLElement&) const;
  2891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2892. void SetAnimationTime(float);
  2893. bool SetAttribute(const String&, const Variant&);
  2894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2895. void SetAttributeAnimationSpeed(const String&, float);
  2896. void SetAttributeAnimationTime(const String&, float);
  2897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2898. void SetInterceptNetworkUpdate(const String&, bool);
  2899. // Properties:
  2900. bool animationEnabled;
  2901. /* readonly */
  2902. Array<Variant> attributeDefaults;
  2903. /* readonly */
  2904. Array<AttributeInfo> attributeInfos;
  2905. Array<Variant> attributes;
  2906. /* readonly */
  2907. String category;
  2908. bool collideConnected;
  2909. bool enabled;
  2910. /* readonly */
  2911. bool enabledEffective;
  2912. /* readonly */
  2913. uint id;
  2914. /* readonly */
  2915. Node node;
  2916. /* readonly */
  2917. uint numAttributes;
  2918. ObjectAnimation objectAnimation;
  2919. RigidBody2D otherBody;
  2920. Vector2 otherBodyAnchor;
  2921. Vector2 otherBodyGroundAnchor;
  2922. /* readonly */
  2923. RigidBody2D ownerBody;
  2924. Vector2 ownerBodyAnchor;
  2925. Vector2 ownerBodyGroundAnchor;
  2926. float ratio;
  2927. /* readonly */
  2928. int refs;
  2929. bool temporary;
  2930. /* readonly */
  2931. StringHash type;
  2932. /* readonly */
  2933. String typeName;
  2934. /* readonly */
  2935. int weakRefs;
  2936. };
  2937. class ConstraintRevolute2D
  2938. {
  2939. // Methods:
  2940. void ApplyAttributes();
  2941. void DrawDebugGeometry(DebugRenderer, bool);
  2942. Variant GetAttribute(const String&) const;
  2943. ValueAnimation GetAttributeAnimation(const String&) const;
  2944. float GetAttributeAnimationSpeed(const String&) const;
  2945. float GetAttributeAnimationTime(const String&) const;
  2946. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2947. Variant GetAttributeDefault(const String&) const;
  2948. bool GetInterceptNetworkUpdate(const String&) const;
  2949. bool HasSubscribedToEvent(Object, const String&);
  2950. bool HasSubscribedToEvent(const String&);
  2951. bool Load(File, bool = false);
  2952. bool Load(VectorBuffer&, bool = false);
  2953. bool LoadJSON(const JSONValue&, bool = false);
  2954. bool LoadXML(const XMLElement&, bool = false);
  2955. void MarkNetworkUpdate() const;
  2956. void Remove();
  2957. void RemoveAttributeAnimation(const String&);
  2958. void RemoveInstanceDefault();
  2959. void RemoveObjectAnimation();
  2960. void ResetToDefault();
  2961. bool Save(File) const;
  2962. bool Save(VectorBuffer&) const;
  2963. bool SaveJSON(JSONValue&) const;
  2964. bool SaveXML(XMLElement&) const;
  2965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2966. void SetAnimationTime(float);
  2967. bool SetAttribute(const String&, const Variant&);
  2968. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2969. void SetAttributeAnimationSpeed(const String&, float);
  2970. void SetAttributeAnimationTime(const String&, float);
  2971. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2972. void SetInterceptNetworkUpdate(const String&, bool);
  2973. // Properties:
  2974. Vector2 anchor;
  2975. bool animationEnabled;
  2976. /* readonly */
  2977. Array<Variant> attributeDefaults;
  2978. /* readonly */
  2979. Array<AttributeInfo> attributeInfos;
  2980. Array<Variant> attributes;
  2981. /* readonly */
  2982. String category;
  2983. bool collideConnected;
  2984. bool enableLimit;
  2985. bool enableMotor;
  2986. bool enabled;
  2987. /* readonly */
  2988. bool enabledEffective;
  2989. /* readonly */
  2990. uint id;
  2991. float lowerAngle;
  2992. float maxMotorTorque;
  2993. float motorSpeed;
  2994. /* readonly */
  2995. Node node;
  2996. /* readonly */
  2997. uint numAttributes;
  2998. ObjectAnimation objectAnimation;
  2999. RigidBody2D otherBody;
  3000. /* readonly */
  3001. RigidBody2D ownerBody;
  3002. /* readonly */
  3003. int refs;
  3004. bool temporary;
  3005. /* readonly */
  3006. StringHash type;
  3007. /* readonly */
  3008. String typeName;
  3009. float upperAngle;
  3010. /* readonly */
  3011. int weakRefs;
  3012. };
  3013. class ConstraintRope2D
  3014. {
  3015. // Methods:
  3016. void ApplyAttributes();
  3017. void DrawDebugGeometry(DebugRenderer, bool);
  3018. Variant GetAttribute(const String&) const;
  3019. ValueAnimation GetAttributeAnimation(const String&) const;
  3020. float GetAttributeAnimationSpeed(const String&) const;
  3021. float GetAttributeAnimationTime(const String&) const;
  3022. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3023. Variant GetAttributeDefault(const String&) const;
  3024. bool GetInterceptNetworkUpdate(const String&) const;
  3025. bool HasSubscribedToEvent(Object, const String&);
  3026. bool HasSubscribedToEvent(const String&);
  3027. bool Load(File, bool = false);
  3028. bool Load(VectorBuffer&, bool = false);
  3029. bool LoadJSON(const JSONValue&, bool = false);
  3030. bool LoadXML(const XMLElement&, bool = false);
  3031. void MarkNetworkUpdate() const;
  3032. void Remove();
  3033. void RemoveAttributeAnimation(const String&);
  3034. void RemoveInstanceDefault();
  3035. void RemoveObjectAnimation();
  3036. void ResetToDefault();
  3037. bool Save(File) const;
  3038. bool Save(VectorBuffer&) const;
  3039. bool SaveJSON(JSONValue&) const;
  3040. bool SaveXML(XMLElement&) const;
  3041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3042. void SetAnimationTime(float);
  3043. bool SetAttribute(const String&, const Variant&);
  3044. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3045. void SetAttributeAnimationSpeed(const String&, float);
  3046. void SetAttributeAnimationTime(const String&, float);
  3047. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3048. void SetInterceptNetworkUpdate(const String&, bool);
  3049. // Properties:
  3050. bool animationEnabled;
  3051. /* readonly */
  3052. Array<Variant> attributeDefaults;
  3053. /* readonly */
  3054. Array<AttributeInfo> attributeInfos;
  3055. Array<Variant> attributes;
  3056. /* readonly */
  3057. String category;
  3058. bool collideConnected;
  3059. bool enabled;
  3060. /* readonly */
  3061. bool enabledEffective;
  3062. /* readonly */
  3063. uint id;
  3064. float maxLength;
  3065. /* readonly */
  3066. Node node;
  3067. /* readonly */
  3068. uint numAttributes;
  3069. ObjectAnimation objectAnimation;
  3070. RigidBody2D otherBody;
  3071. Vector2 otherBodyAnchor;
  3072. /* readonly */
  3073. RigidBody2D ownerBody;
  3074. Vector2 ownerBodyAnchor;
  3075. /* readonly */
  3076. int refs;
  3077. bool temporary;
  3078. /* readonly */
  3079. StringHash type;
  3080. /* readonly */
  3081. String typeName;
  3082. /* readonly */
  3083. int weakRefs;
  3084. };
  3085. class ConstraintWeld2D
  3086. {
  3087. // Methods:
  3088. void ApplyAttributes();
  3089. void DrawDebugGeometry(DebugRenderer, bool);
  3090. Variant GetAttribute(const String&) const;
  3091. ValueAnimation GetAttributeAnimation(const String&) const;
  3092. float GetAttributeAnimationSpeed(const String&) const;
  3093. float GetAttributeAnimationTime(const String&) const;
  3094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3095. Variant GetAttributeDefault(const String&) const;
  3096. bool GetInterceptNetworkUpdate(const String&) const;
  3097. bool HasSubscribedToEvent(Object, const String&);
  3098. bool HasSubscribedToEvent(const String&);
  3099. bool Load(File, bool = false);
  3100. bool Load(VectorBuffer&, bool = false);
  3101. bool LoadJSON(const JSONValue&, bool = false);
  3102. bool LoadXML(const XMLElement&, bool = false);
  3103. void MarkNetworkUpdate() const;
  3104. void Remove();
  3105. void RemoveAttributeAnimation(const String&);
  3106. void RemoveInstanceDefault();
  3107. void RemoveObjectAnimation();
  3108. void ResetToDefault();
  3109. bool Save(File) const;
  3110. bool Save(VectorBuffer&) const;
  3111. bool SaveJSON(JSONValue&) const;
  3112. bool SaveXML(XMLElement&) const;
  3113. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3114. void SetAnimationTime(float);
  3115. bool SetAttribute(const String&, const Variant&);
  3116. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3117. void SetAttributeAnimationSpeed(const String&, float);
  3118. void SetAttributeAnimationTime(const String&, float);
  3119. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3120. void SetInterceptNetworkUpdate(const String&, bool);
  3121. // Properties:
  3122. Vector2 anchor;
  3123. bool animationEnabled;
  3124. /* readonly */
  3125. Array<Variant> attributeDefaults;
  3126. /* readonly */
  3127. Array<AttributeInfo> attributeInfos;
  3128. Array<Variant> attributes;
  3129. /* readonly */
  3130. String category;
  3131. bool collideConnected;
  3132. float dampingRatio;
  3133. bool enabled;
  3134. /* readonly */
  3135. bool enabledEffective;
  3136. float frequencyHz;
  3137. /* readonly */
  3138. uint id;
  3139. /* readonly */
  3140. Node node;
  3141. /* readonly */
  3142. uint numAttributes;
  3143. ObjectAnimation objectAnimation;
  3144. RigidBody2D otherBody;
  3145. /* readonly */
  3146. RigidBody2D ownerBody;
  3147. /* readonly */
  3148. int refs;
  3149. bool temporary;
  3150. /* readonly */
  3151. StringHash type;
  3152. /* readonly */
  3153. String typeName;
  3154. /* readonly */
  3155. int weakRefs;
  3156. };
  3157. class ConstraintWheel2D
  3158. {
  3159. // Methods:
  3160. void ApplyAttributes();
  3161. void DrawDebugGeometry(DebugRenderer, bool);
  3162. Variant GetAttribute(const String&) const;
  3163. ValueAnimation GetAttributeAnimation(const String&) const;
  3164. float GetAttributeAnimationSpeed(const String&) const;
  3165. float GetAttributeAnimationTime(const String&) const;
  3166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3167. Variant GetAttributeDefault(const String&) const;
  3168. bool GetInterceptNetworkUpdate(const String&) const;
  3169. bool HasSubscribedToEvent(Object, const String&);
  3170. bool HasSubscribedToEvent(const String&);
  3171. bool Load(File, bool = false);
  3172. bool Load(VectorBuffer&, bool = false);
  3173. bool LoadJSON(const JSONValue&, bool = false);
  3174. bool LoadXML(const XMLElement&, bool = false);
  3175. void MarkNetworkUpdate() const;
  3176. void Remove();
  3177. void RemoveAttributeAnimation(const String&);
  3178. void RemoveInstanceDefault();
  3179. void RemoveObjectAnimation();
  3180. void ResetToDefault();
  3181. bool Save(File) const;
  3182. bool Save(VectorBuffer&) const;
  3183. bool SaveJSON(JSONValue&) const;
  3184. bool SaveXML(XMLElement&) const;
  3185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3186. void SetAnimationTime(float);
  3187. bool SetAttribute(const String&, const Variant&);
  3188. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3189. void SetAttributeAnimationSpeed(const String&, float);
  3190. void SetAttributeAnimationTime(const String&, float);
  3191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3192. void SetInterceptNetworkUpdate(const String&, bool);
  3193. // Properties:
  3194. Vector2 anchor;
  3195. bool animationEnabled;
  3196. /* readonly */
  3197. Array<Variant> attributeDefaults;
  3198. /* readonly */
  3199. Array<AttributeInfo> attributeInfos;
  3200. Array<Variant> attributes;
  3201. Vector2 axis;
  3202. /* readonly */
  3203. String category;
  3204. bool collideConnected;
  3205. float dampingRatio;
  3206. bool enableMotor;
  3207. bool enabled;
  3208. /* readonly */
  3209. bool enabledEffective;
  3210. float frequencyHz;
  3211. /* readonly */
  3212. uint id;
  3213. float maxMotorTorque;
  3214. float motorSpeed;
  3215. /* readonly */
  3216. Node node;
  3217. /* readonly */
  3218. uint numAttributes;
  3219. ObjectAnimation objectAnimation;
  3220. RigidBody2D otherBody;
  3221. /* readonly */
  3222. RigidBody2D ownerBody;
  3223. /* readonly */
  3224. int refs;
  3225. bool temporary;
  3226. /* readonly */
  3227. StringHash type;
  3228. /* readonly */
  3229. String typeName;
  3230. /* readonly */
  3231. int weakRefs;
  3232. };
  3233. class Controls
  3234. {
  3235. // Methods:
  3236. bool IsDown(uint) const;
  3237. bool IsPressed(uint, const Controls&) const;
  3238. void Reset();
  3239. void Set(uint, bool);
  3240. // Properties:
  3241. uint buttons;
  3242. VariantMap extraData;
  3243. float pitch;
  3244. float yaw;
  3245. };
  3246. class CrowdAgent
  3247. {
  3248. // Methods:
  3249. void ApplyAttributes();
  3250. void DrawDebugGeometry(DebugRenderer, bool);
  3251. void DrawDebugGeometry(bool);
  3252. Variant GetAttribute(const String&) const;
  3253. ValueAnimation GetAttributeAnimation(const String&) const;
  3254. float GetAttributeAnimationSpeed(const String&) const;
  3255. float GetAttributeAnimationTime(const String&) const;
  3256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3257. Variant GetAttributeDefault(const String&) const;
  3258. bool GetInterceptNetworkUpdate(const String&) const;
  3259. bool HasSubscribedToEvent(Object, const String&);
  3260. bool HasSubscribedToEvent(const String&);
  3261. bool Load(File, bool = false);
  3262. bool Load(VectorBuffer&, bool = false);
  3263. bool LoadJSON(const JSONValue&, bool = false);
  3264. bool LoadXML(const XMLElement&, bool = false);
  3265. void MarkNetworkUpdate() const;
  3266. void Remove();
  3267. void RemoveAttributeAnimation(const String&);
  3268. void RemoveInstanceDefault();
  3269. void RemoveObjectAnimation();
  3270. void ResetTarget();
  3271. void ResetToDefault();
  3272. bool Save(File) const;
  3273. bool Save(VectorBuffer&) const;
  3274. bool SaveJSON(JSONValue&) const;
  3275. bool SaveXML(XMLElement&) const;
  3276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3277. void SetAnimationTime(float);
  3278. bool SetAttribute(const String&, const Variant&);
  3279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3280. void SetAttributeAnimationSpeed(const String&, float);
  3281. void SetAttributeAnimationTime(const String&, float);
  3282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3283. void SetInterceptNetworkUpdate(const String&, bool);
  3284. // Properties:
  3285. /* readonly */
  3286. Vector3 actualVelocity;
  3287. /* readonly */
  3288. CrowdAgentState agentState;
  3289. bool animationEnabled;
  3290. /* readonly */
  3291. bool arrived;
  3292. /* readonly */
  3293. Array<Variant> attributeDefaults;
  3294. /* readonly */
  3295. Array<AttributeInfo> attributeInfos;
  3296. Array<Variant> attributes;
  3297. /* readonly */
  3298. String category;
  3299. /* readonly */
  3300. Vector3 desiredVelocity;
  3301. bool enabled;
  3302. /* readonly */
  3303. bool enabledEffective;
  3304. float height;
  3305. /* readonly */
  3306. uint id;
  3307. /* readonly */
  3308. bool inCrowd;
  3309. float maxAccel;
  3310. float maxSpeed;
  3311. NavigationPushiness navigationPushiness;
  3312. NavigationQuality navigationQuality;
  3313. /* readonly */
  3314. Node node;
  3315. /* readonly */
  3316. uint numAttributes;
  3317. ObjectAnimation objectAnimation;
  3318. uint obstacleAvoidanceType;
  3319. /* readonly */
  3320. Vector3 position;
  3321. uint queryFilterType;
  3322. float radius;
  3323. /* readonly */
  3324. int refs;
  3325. /* readonly */
  3326. bool requestedTarget;
  3327. /* readonly */
  3328. CrowdAgentRequestedTarget requestedTargetType;
  3329. Vector3 targetPosition;
  3330. /* readonly */
  3331. CrowdAgentTargetState targetState;
  3332. Vector3 targetVelocity;
  3333. bool temporary;
  3334. /* readonly */
  3335. StringHash type;
  3336. /* readonly */
  3337. String typeName;
  3338. bool updateNodePosition;
  3339. /* readonly */
  3340. int weakRefs;
  3341. };
  3342. class CrowdManager
  3343. {
  3344. // Methods:
  3345. void ApplyAttributes();
  3346. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3347. void DrawDebugGeometry(DebugRenderer, bool);
  3348. void DrawDebugGeometry(bool);
  3349. Vector3 FindNearestPoint(const Vector3&, int);
  3350. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3351. float GetAreaCost(uint, uint);
  3352. Variant GetAttribute(const String&) const;
  3353. ValueAnimation GetAttributeAnimation(const String&) const;
  3354. float GetAttributeAnimationSpeed(const String&) const;
  3355. float GetAttributeAnimationTime(const String&) const;
  3356. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3357. Variant GetAttributeDefault(const String&) const;
  3358. float GetDistanceToWall(const Vector3&, float, int);
  3359. uint16 GetExcludeFlags(uint);
  3360. uint16 GetIncludeFlags(uint);
  3361. bool GetInterceptNetworkUpdate(const String&) const;
  3362. Vector3 GetRandomPoint(int);
  3363. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3364. bool HasSubscribedToEvent(Object, const String&);
  3365. bool HasSubscribedToEvent(const String&);
  3366. bool Load(File, bool = false);
  3367. bool Load(VectorBuffer&, bool = false);
  3368. bool LoadJSON(const JSONValue&, bool = false);
  3369. bool LoadXML(const XMLElement&, bool = false);
  3370. void MarkNetworkUpdate() const;
  3371. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3372. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3373. void Remove();
  3374. void RemoveAttributeAnimation(const String&);
  3375. void RemoveInstanceDefault();
  3376. void RemoveObjectAnimation();
  3377. void ResetCrowdTarget(Node = null);
  3378. void ResetToDefault();
  3379. bool Save(File) const;
  3380. bool Save(VectorBuffer&) const;
  3381. bool SaveJSON(JSONValue&) const;
  3382. bool SaveXML(XMLElement&) const;
  3383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3384. void SetAnimationTime(float);
  3385. void SetAreaCost(uint, uint, float);
  3386. bool SetAttribute(const String&, const Variant&);
  3387. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3388. void SetAttributeAnimationSpeed(const String&, float);
  3389. void SetAttributeAnimationTime(const String&, float);
  3390. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3391. void SetCrowdTarget(const Vector3&, Node = null);
  3392. void SetCrowdVelocity(const Vector3&, Node = null);
  3393. void SetExcludeFlags(uint, uint16);
  3394. void SetIncludeFlags(uint, uint16);
  3395. void SetInterceptNetworkUpdate(const String&, bool);
  3396. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3397. // Properties:
  3398. bool animationEnabled;
  3399. /* readonly */
  3400. Array<Variant> attributeDefaults;
  3401. /* readonly */
  3402. Array<AttributeInfo> attributeInfos;
  3403. Array<Variant> attributes;
  3404. /* readonly */
  3405. String category;
  3406. bool enabled;
  3407. /* readonly */
  3408. bool enabledEffective;
  3409. /* readonly */
  3410. uint id;
  3411. float maxAgentRadius;
  3412. int maxAgents;
  3413. NavigationMesh navMesh;
  3414. /* readonly */
  3415. Node node;
  3416. /* readonly */
  3417. Array<uint> numAreas;
  3418. /* readonly */
  3419. uint numAttributes;
  3420. /* readonly */
  3421. uint numObstacleAvoidanceTypes;
  3422. /* readonly */
  3423. uint numQueryFilterTypes;
  3424. ObjectAnimation objectAnimation;
  3425. /* readonly */
  3426. int refs;
  3427. bool temporary;
  3428. /* readonly */
  3429. StringHash type;
  3430. /* readonly */
  3431. String typeName;
  3432. /* readonly */
  3433. int weakRefs;
  3434. };
  3435. class CrowdObstacleAvoidanceParams
  3436. {
  3437. // Properties:
  3438. uint8 adaptiveDepth;
  3439. uint8 adaptiveDivs;
  3440. uint8 adaptiveRings;
  3441. uint8 gridSize;
  3442. float horizTime;
  3443. float velBias;
  3444. float weightCurVel;
  3445. float weightDesVel;
  3446. float weightSide;
  3447. float weightToi;
  3448. };
  3449. class Cursor
  3450. {
  3451. // Methods:
  3452. void AddChild(UIElement);
  3453. void AddTag(const String&);
  3454. void AddTags(const String&, int8 = ';');
  3455. void ApplyAttributes();
  3456. void BringToFront();
  3457. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3458. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3459. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3460. void DisableLayoutUpdate();
  3461. IntVector2 ElementToScreen(const IntVector2&);
  3462. void EnableLayoutUpdate();
  3463. uint FindChild(UIElement) const;
  3464. Variant GetAttribute(const String&) const;
  3465. ValueAnimation GetAttributeAnimation(const String&) const;
  3466. float GetAttributeAnimationSpeed(const String&) const;
  3467. float GetAttributeAnimationTime(const String&) const;
  3468. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3469. Variant GetAttributeDefault(const String&) const;
  3470. UIElement GetChild(const String&, bool = false) const;
  3471. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3472. Array<UIElement> GetChildren(bool = false) const;
  3473. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3474. UIElement GetElementEventSender() const;
  3475. bool GetInterceptNetworkUpdate(const String&) const;
  3476. uint GetNumChildren(bool) const;
  3477. bool HasSubscribedToEvent(Object, const String&);
  3478. bool HasSubscribedToEvent(const String&);
  3479. bool HasTag(const String&) const;
  3480. void InsertChild(uint, UIElement);
  3481. bool IsInside(IntVector2, bool);
  3482. bool IsInsideCombined(IntVector2, bool);
  3483. bool Load(File, bool = false);
  3484. bool Load(VectorBuffer&, bool = false);
  3485. bool LoadChildXML(XMLFile, XMLFile = null);
  3486. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3487. bool LoadJSON(const JSONValue&, bool = false);
  3488. bool LoadXML(File);
  3489. bool LoadXML(VectorBuffer&);
  3490. bool LoadXML(XMLFile, XMLFile);
  3491. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3492. bool LoadXML(const XMLElement&, bool = false);
  3493. void MarkNetworkUpdate() const;
  3494. void Remove();
  3495. void RemoveAllChildren();
  3496. void RemoveAllTags();
  3497. void RemoveAttributeAnimation(const String&);
  3498. void RemoveChild(UIElement, uint = 0);
  3499. void RemoveChild(uint);
  3500. void RemoveInstanceDefault();
  3501. void RemoveObjectAnimation();
  3502. bool RemoveTag(const String&);
  3503. void ResetDeepEnabled();
  3504. void ResetToDefault();
  3505. bool Save(File) const;
  3506. bool Save(VectorBuffer&) const;
  3507. bool SaveJSON(JSONValue&) const;
  3508. bool SaveXML(File, const String& = "\t");
  3509. bool SaveXML(VectorBuffer&, const String& = "\t");
  3510. bool SaveXML(XMLElement&) const;
  3511. IntVector2 ScreenToElement(const IntVector2&);
  3512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3513. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3514. void SetAnimationTime(float);
  3515. bool SetAttribute(const String&, const Variant&);
  3516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3517. void SetAttributeAnimationSpeed(const String&, float);
  3518. void SetAttributeAnimationTime(const String&, float);
  3519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3520. void SetDeepEnabled(bool);
  3521. void SetEnabledRecursive(bool);
  3522. void SetFixedHeight(int);
  3523. void SetFixedSize(int, int);
  3524. void SetFixedWidth(int);
  3525. void SetFullImageRect();
  3526. void SetHoverOffset(int, int);
  3527. void SetInterceptNetworkUpdate(const String&, bool);
  3528. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3529. void SetMaxSize(int, int);
  3530. void SetMinSize(int, int);
  3531. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3532. void SetPosition(int, int);
  3533. void SetShape(CursorShape);
  3534. void SetShape(const String&);
  3535. void SetSize(int, int);
  3536. bool SetStyle(const String&, XMLFile = null);
  3537. bool SetStyle(const XMLElement&);
  3538. bool SetStyleAuto(XMLFile = null);
  3539. void UpdateLayout();
  3540. const Variant& GetVar(const StringHash&);
  3541. // Properties:
  3542. bool animationEnabled;
  3543. /* readonly */
  3544. Array<Variant> attributeDefaults;
  3545. /* readonly */
  3546. Array<AttributeInfo> attributeInfos;
  3547. Array<Variant> attributes;
  3548. BlendMode blendMode;
  3549. IntRect border;
  3550. bool bringToBack;
  3551. bool bringToFront;
  3552. /* readonly */
  3553. String category;
  3554. /* readonly */
  3555. IntVector2 childOffset;
  3556. /* readonly */
  3557. Array<UIElement> children;
  3558. IntRect clipBorder;
  3559. bool clipChildren;
  3560. /* writeonly */
  3561. Color color;
  3562. /* readonly */
  3563. bool colorGradient;
  3564. Array<Color> colors;
  3565. /* readonly */
  3566. IntRect combinedScreenRect;
  3567. XMLFile defaultStyle;
  3568. /* readonly */
  3569. float derivedOpacity;
  3570. /* readonly */
  3571. uint dragButtonCombo;
  3572. /* readonly */
  3573. int dragButtonCount;
  3574. uint dragDropMode;
  3575. bool editable;
  3576. bool elementEventSender;
  3577. bool enabled;
  3578. /* readonly */
  3579. bool enabledSelf;
  3580. /* readonly */
  3581. bool fixedHeight;
  3582. /* readonly */
  3583. bool fixedSize;
  3584. /* readonly */
  3585. bool fixedWidth;
  3586. bool focus;
  3587. FocusMode focusMode;
  3588. int height;
  3589. HorizontalAlignment horizontalAlignment;
  3590. IntVector2 hoverOffset;
  3591. /* readonly */
  3592. bool hovering;
  3593. IntRect imageBorder;
  3594. IntRect imageRect;
  3595. int indent;
  3596. int indentSpacing;
  3597. /* readonly */
  3598. int indentWidth;
  3599. bool internal;
  3600. IntRect layoutBorder;
  3601. Vector2 layoutFlexScale;
  3602. LayoutMode layoutMode;
  3603. int layoutSpacing;
  3604. int maxHeight;
  3605. IntVector2 maxSize;
  3606. int maxWidth;
  3607. int minHeight;
  3608. IntVector2 minSize;
  3609. int minWidth;
  3610. String name;
  3611. /* readonly */
  3612. uint numAllChildren;
  3613. /* readonly */
  3614. uint numAttributes;
  3615. /* readonly */
  3616. uint numChildren;
  3617. ObjectAnimation objectAnimation;
  3618. float opacity;
  3619. UIElement parent;
  3620. IntVector2 position;
  3621. int priority;
  3622. /* readonly */
  3623. int refs;
  3624. /* readonly */
  3625. UIElement root;
  3626. /* readonly */
  3627. IntVector2 screenPosition;
  3628. bool selected;
  3629. String shape;
  3630. IntVector2 size;
  3631. bool sortChildren;
  3632. String style;
  3633. /* readonly */
  3634. Array<String> tags;
  3635. bool temporary;
  3636. Texture texture;
  3637. bool tiled;
  3638. TraversalMode traversalMode;
  3639. /* readonly */
  3640. StringHash type;
  3641. /* readonly */
  3642. String typeName;
  3643. bool useDerivedOpacity;
  3644. bool useSystemShapes;
  3645. /* readonly */
  3646. VariantMap vars;
  3647. VerticalAlignment verticalAlignment;
  3648. bool visible;
  3649. /* readonly */
  3650. bool visibleEffective;
  3651. /* readonly */
  3652. int weakRefs;
  3653. int width;
  3654. };
  3655. class CustomGeometry
  3656. {
  3657. // Methods:
  3658. void ApplyAttributes();
  3659. void BeginGeometry(uint, PrimitiveType);
  3660. void Clear();
  3661. void Commit();
  3662. void DefineColor(const Color&);
  3663. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3664. void DefineNormal(const Vector3&);
  3665. void DefineTangent(const Vector4&);
  3666. void DefineTexCoord(const Vector2&);
  3667. void DefineVertex(const Vector3&);
  3668. void DrawDebugGeometry(DebugRenderer, bool);
  3669. Variant GetAttribute(const String&) const;
  3670. ValueAnimation GetAttributeAnimation(const String&) const;
  3671. float GetAttributeAnimationSpeed(const String&) const;
  3672. float GetAttributeAnimationTime(const String&) const;
  3673. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3674. Variant GetAttributeDefault(const String&) const;
  3675. bool GetInterceptNetworkUpdate(const String&) const;
  3676. CustomGeometryVertex GetVertex(uint, uint);
  3677. bool HasSubscribedToEvent(Object, const String&);
  3678. bool HasSubscribedToEvent(const String&);
  3679. bool IsInView(Camera) const;
  3680. bool Load(File, bool = false);
  3681. bool Load(VectorBuffer&, bool = false);
  3682. bool LoadJSON(const JSONValue&, bool = false);
  3683. bool LoadXML(const XMLElement&, bool = false);
  3684. void MarkNetworkUpdate() const;
  3685. void Remove();
  3686. void RemoveAttributeAnimation(const String&);
  3687. void RemoveInstanceDefault();
  3688. void RemoveObjectAnimation();
  3689. void ResetToDefault();
  3690. bool Save(File) const;
  3691. bool Save(VectorBuffer&) const;
  3692. bool SaveJSON(JSONValue&) const;
  3693. bool SaveXML(XMLElement&) const;
  3694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3695. void SetAnimationTime(float);
  3696. bool SetAttribute(const String&, const Variant&);
  3697. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3698. void SetAttributeAnimationSpeed(const String&, float);
  3699. void SetAttributeAnimationTime(const String&, float);
  3700. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3701. void SetInterceptNetworkUpdate(const String&, bool);
  3702. // Properties:
  3703. bool animationEnabled;
  3704. /* readonly */
  3705. Array<Variant> attributeDefaults;
  3706. /* readonly */
  3707. Array<AttributeInfo> attributeInfos;
  3708. Array<Variant> attributes;
  3709. /* readonly */
  3710. BoundingBox boundingBox;
  3711. bool castShadows;
  3712. /* readonly */
  3713. String category;
  3714. float drawDistance;
  3715. bool dynamic;
  3716. bool enabled;
  3717. /* readonly */
  3718. bool enabledEffective;
  3719. /* readonly */
  3720. uint id;
  3721. /* readonly */
  3722. bool inView;
  3723. uint lightMask;
  3724. float lodBias;
  3725. /* writeonly */
  3726. Material material;
  3727. Array<Material> materials;
  3728. uint maxLights;
  3729. /* readonly */
  3730. Node node;
  3731. /* readonly */
  3732. uint numAttributes;
  3733. uint numGeometries;
  3734. /* readonly */
  3735. Array<uint> numVertices;
  3736. ObjectAnimation objectAnimation;
  3737. bool occludee;
  3738. bool occluder;
  3739. /* readonly */
  3740. int refs;
  3741. float shadowDistance;
  3742. uint shadowMask;
  3743. bool temporary;
  3744. /* readonly */
  3745. StringHash type;
  3746. /* readonly */
  3747. String typeName;
  3748. uint viewMask;
  3749. /* readonly */
  3750. int weakRefs;
  3751. /* readonly */
  3752. BoundingBox worldBoundingBox;
  3753. /* readonly */
  3754. Zone zone;
  3755. uint zoneMask;
  3756. };
  3757. class CustomGeometryVertex
  3758. {
  3759. // Properties:
  3760. uint color;
  3761. Vector3 normal;
  3762. Vector3 position;
  3763. Vector4 tangent;
  3764. Vector2 texCoord;
  3765. };
  3766. class Database
  3767. {
  3768. // Methods:
  3769. DbConnection Connect(const String&);
  3770. void Disconnect(DbConnection);
  3771. bool HasSubscribedToEvent(Object, const String&);
  3772. bool HasSubscribedToEvent(const String&);
  3773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3774. // Properties:
  3775. /* readonly */
  3776. String category;
  3777. uint poolSize;
  3778. /* readonly */
  3779. bool pooling;
  3780. /* readonly */
  3781. int refs;
  3782. /* readonly */
  3783. StringHash type;
  3784. /* readonly */
  3785. String typeName;
  3786. /* readonly */
  3787. int weakRefs;
  3788. };
  3789. class DbConnection
  3790. {
  3791. // Methods:
  3792. DbResult Execute(const String&, bool = false);
  3793. bool HasSubscribedToEvent(Object, const String&);
  3794. bool HasSubscribedToEvent(const String&);
  3795. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3796. // Properties:
  3797. /* readonly */
  3798. String category;
  3799. /* readonly */
  3800. bool connected;
  3801. /* readonly */
  3802. String connectionString;
  3803. /* readonly */
  3804. int refs;
  3805. /* readonly */
  3806. StringHash type;
  3807. /* readonly */
  3808. String typeName;
  3809. /* readonly */
  3810. int weakRefs;
  3811. };
  3812. class DbResult
  3813. {
  3814. // Properties:
  3815. /* readonly */
  3816. Array<String> columns;
  3817. /* readonly */
  3818. int64 numAffectedRows;
  3819. /* readonly */
  3820. uint numColumns;
  3821. /* readonly */
  3822. uint numRows;
  3823. /* readonly */
  3824. Array<Array<Variant>> row;
  3825. };
  3826. class DebugHud
  3827. {
  3828. // Methods:
  3829. void ClearAppStats();
  3830. bool HasSubscribedToEvent(Object, const String&);
  3831. bool HasSubscribedToEvent(const String&);
  3832. void ResetAppStats(const String&);
  3833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3834. void SetAppStats(const String&, const String&);
  3835. void SetAppStats(const String&, const Variant&);
  3836. void Toggle(uint);
  3837. void ToggleAll();
  3838. void Update();
  3839. // Properties:
  3840. /* readonly */
  3841. String category;
  3842. XMLFile defaultStyle;
  3843. /* readonly */
  3844. Text memoryText;
  3845. uint mode;
  3846. /* readonly */
  3847. Text modeText;
  3848. float profilerInterval;
  3849. uint profilerMaxDepth;
  3850. /* readonly */
  3851. Text profilerText;
  3852. /* readonly */
  3853. int refs;
  3854. /* readonly */
  3855. Text statsText;
  3856. /* readonly */
  3857. StringHash type;
  3858. /* readonly */
  3859. String typeName;
  3860. bool useRendererStats;
  3861. /* readonly */
  3862. int weakRefs;
  3863. };
  3864. class DebugRenderer
  3865. {
  3866. // Methods:
  3867. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3868. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3869. void AddCross(const Vector3&, float, const Color&, bool = true);
  3870. void AddFrustum(const Frustum&, const Color&, bool = true);
  3871. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3872. void AddNode(Node, float = 1.0, bool = true);
  3873. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3874. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3875. void AddSkeleton(Skeleton, const Color&, bool = true);
  3876. void AddSphere(const Sphere&, const Color&, bool = true);
  3877. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3878. void ApplyAttributes();
  3879. void DrawDebugGeometry(DebugRenderer, bool);
  3880. Variant GetAttribute(const String&) const;
  3881. ValueAnimation GetAttributeAnimation(const String&) const;
  3882. float GetAttributeAnimationSpeed(const String&) const;
  3883. float GetAttributeAnimationTime(const String&) const;
  3884. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3885. Variant GetAttributeDefault(const String&) const;
  3886. bool GetInterceptNetworkUpdate(const String&) const;
  3887. bool HasSubscribedToEvent(Object, const String&);
  3888. bool HasSubscribedToEvent(const String&);
  3889. bool Load(File, bool = false);
  3890. bool Load(VectorBuffer&, bool = false);
  3891. bool LoadJSON(const JSONValue&, bool = false);
  3892. bool LoadXML(const XMLElement&, bool = false);
  3893. void MarkNetworkUpdate() const;
  3894. void Remove();
  3895. void RemoveAttributeAnimation(const String&);
  3896. void RemoveInstanceDefault();
  3897. void RemoveObjectAnimation();
  3898. void ResetToDefault();
  3899. bool Save(File) const;
  3900. bool Save(VectorBuffer&) const;
  3901. bool SaveJSON(JSONValue&) const;
  3902. bool SaveXML(XMLElement&) const;
  3903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3904. void SetAnimationTime(float);
  3905. bool SetAttribute(const String&, const Variant&);
  3906. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3907. void SetAttributeAnimationSpeed(const String&, float);
  3908. void SetAttributeAnimationTime(const String&, float);
  3909. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3910. void SetInterceptNetworkUpdate(const String&, bool);
  3911. // Properties:
  3912. bool animationEnabled;
  3913. /* readonly */
  3914. Array<Variant> attributeDefaults;
  3915. /* readonly */
  3916. Array<AttributeInfo> attributeInfos;
  3917. Array<Variant> attributes;
  3918. /* readonly */
  3919. String category;
  3920. bool enabled;
  3921. /* readonly */
  3922. bool enabledEffective;
  3923. /* readonly */
  3924. uint id;
  3925. /* readonly */
  3926. Node node;
  3927. /* readonly */
  3928. uint numAttributes;
  3929. ObjectAnimation objectAnimation;
  3930. /* readonly */
  3931. int refs;
  3932. bool temporary;
  3933. /* readonly */
  3934. StringHash type;
  3935. /* readonly */
  3936. String typeName;
  3937. /* readonly */
  3938. int weakRefs;
  3939. };
  3940. class DecalSet
  3941. {
  3942. // Methods:
  3943. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3944. void ApplyAttributes();
  3945. void DrawDebugGeometry(DebugRenderer, bool);
  3946. Variant GetAttribute(const String&) const;
  3947. ValueAnimation GetAttributeAnimation(const String&) const;
  3948. float GetAttributeAnimationSpeed(const String&) const;
  3949. float GetAttributeAnimationTime(const String&) const;
  3950. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3951. Variant GetAttributeDefault(const String&) const;
  3952. bool GetInterceptNetworkUpdate(const String&) const;
  3953. bool HasSubscribedToEvent(Object, const String&);
  3954. bool HasSubscribedToEvent(const String&);
  3955. bool IsInView(Camera) const;
  3956. bool Load(File, bool = false);
  3957. bool Load(VectorBuffer&, bool = false);
  3958. bool LoadJSON(const JSONValue&, bool = false);
  3959. bool LoadXML(const XMLElement&, bool = false);
  3960. void MarkNetworkUpdate() const;
  3961. void Remove();
  3962. void RemoveAllDecals();
  3963. void RemoveAttributeAnimation(const String&);
  3964. void RemoveDecals(uint);
  3965. void RemoveInstanceDefault();
  3966. void RemoveObjectAnimation();
  3967. void ResetToDefault();
  3968. bool Save(File) const;
  3969. bool Save(VectorBuffer&) const;
  3970. bool SaveJSON(JSONValue&) const;
  3971. bool SaveXML(XMLElement&) const;
  3972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3973. void SetAnimationTime(float);
  3974. bool SetAttribute(const String&, const Variant&);
  3975. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3976. void SetAttributeAnimationSpeed(const String&, float);
  3977. void SetAttributeAnimationTime(const String&, float);
  3978. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3979. void SetInterceptNetworkUpdate(const String&, bool);
  3980. // Properties:
  3981. bool animationEnabled;
  3982. /* readonly */
  3983. Array<Variant> attributeDefaults;
  3984. /* readonly */
  3985. Array<AttributeInfo> attributeInfos;
  3986. Array<Variant> attributes;
  3987. /* readonly */
  3988. BoundingBox boundingBox;
  3989. bool castShadows;
  3990. /* readonly */
  3991. String category;
  3992. float drawDistance;
  3993. bool enabled;
  3994. /* readonly */
  3995. bool enabledEffective;
  3996. /* readonly */
  3997. uint id;
  3998. /* readonly */
  3999. bool inView;
  4000. uint lightMask;
  4001. float lodBias;
  4002. Material material;
  4003. uint maxIndices;
  4004. uint maxLights;
  4005. uint maxVertices;
  4006. /* readonly */
  4007. Node node;
  4008. /* readonly */
  4009. uint numAttributes;
  4010. /* readonly */
  4011. uint numDecals;
  4012. /* readonly */
  4013. uint numIndices;
  4014. /* readonly */
  4015. uint numVertices;
  4016. ObjectAnimation objectAnimation;
  4017. bool occludee;
  4018. bool occluder;
  4019. bool optimizeBufferSize;
  4020. /* readonly */
  4021. int refs;
  4022. float shadowDistance;
  4023. uint shadowMask;
  4024. bool temporary;
  4025. /* readonly */
  4026. StringHash type;
  4027. /* readonly */
  4028. String typeName;
  4029. uint viewMask;
  4030. /* readonly */
  4031. int weakRefs;
  4032. /* readonly */
  4033. BoundingBox worldBoundingBox;
  4034. /* readonly */
  4035. Zone zone;
  4036. uint zoneMask;
  4037. };
  4038. class Deserializer
  4039. {
  4040. // Methods:
  4041. Array<uint8> Read(uint);
  4042. bool ReadBool();
  4043. BoundingBox ReadBoundingBox();
  4044. int8 ReadByte();
  4045. Color ReadColor();
  4046. double ReadDouble();
  4047. String ReadFileID();
  4048. float ReadFloat();
  4049. int ReadInt();
  4050. int64 ReadInt64();
  4051. IntRect ReadIntRect();
  4052. IntVector2 ReadIntVector2();
  4053. String ReadLine();
  4054. Matrix3 ReadMatrix3();
  4055. Matrix3x4 ReadMatrix3x4();
  4056. Matrix4 ReadMatrix4();
  4057. uint ReadNetID();
  4058. Quaternion ReadPackedQuaternion();
  4059. Vector3 ReadPackedVector3(float);
  4060. Quaternion ReadQuaternion();
  4061. int16 ReadShort();
  4062. String ReadString();
  4063. StringHash ReadStringHash();
  4064. uint8 ReadUByte();
  4065. uint ReadUInt();
  4066. uint64 ReadUInt64();
  4067. uint16 ReadUShort();
  4068. uint ReadVLE();
  4069. Variant ReadVariant();
  4070. VariantMap ReadVariantMap();
  4071. Vector2 ReadVector2();
  4072. Vector3 ReadVector3();
  4073. Vector4 ReadVector4();
  4074. VectorBuffer ReadVectorBuffer(uint);
  4075. uint Seek(uint);
  4076. // Properties:
  4077. /* readonly */
  4078. uint checksum;
  4079. /* readonly */
  4080. bool eof;
  4081. /* readonly */
  4082. String name;
  4083. /* readonly */
  4084. uint position;
  4085. /* readonly */
  4086. uint size;
  4087. };
  4088. class Dictionary
  4089. {
  4090. // Methods:
  4091. void Clear();
  4092. void Erase(const String&);
  4093. bool Exists(const String&) const;
  4094. bool Get(const String&, void*) const;
  4095. bool Get(const String&, double&) const;
  4096. bool Get(const String&, int64&) const;
  4097. void Set(const String&, const void*);
  4098. void Set(const String&, const double&);
  4099. void Set(const String&, const int64&);
  4100. // Properties:
  4101. /* readonly */
  4102. bool empty;
  4103. /* readonly */
  4104. Array<String> keys;
  4105. /* readonly */
  4106. uint length;
  4107. };
  4108. class DictionaryValue
  4109. {
  4110. };
  4111. class Drawable
  4112. {
  4113. // Methods:
  4114. void ApplyAttributes();
  4115. void DrawDebugGeometry(DebugRenderer, bool);
  4116. Variant GetAttribute(const String&) const;
  4117. ValueAnimation GetAttributeAnimation(const String&) const;
  4118. float GetAttributeAnimationSpeed(const String&) const;
  4119. float GetAttributeAnimationTime(const String&) const;
  4120. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4121. Variant GetAttributeDefault(const String&) const;
  4122. bool GetInterceptNetworkUpdate(const String&) const;
  4123. bool HasSubscribedToEvent(Object, const String&);
  4124. bool HasSubscribedToEvent(const String&);
  4125. bool IsInView(Camera) const;
  4126. bool Load(File, bool = false);
  4127. bool Load(VectorBuffer&, bool = false);
  4128. bool LoadJSON(const JSONValue&, bool = false);
  4129. bool LoadXML(const XMLElement&, bool = false);
  4130. void MarkNetworkUpdate() const;
  4131. void Remove();
  4132. void RemoveAttributeAnimation(const String&);
  4133. void RemoveInstanceDefault();
  4134. void RemoveObjectAnimation();
  4135. void ResetToDefault();
  4136. bool Save(File) const;
  4137. bool Save(VectorBuffer&) const;
  4138. bool SaveJSON(JSONValue&) const;
  4139. bool SaveXML(XMLElement&) const;
  4140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4141. void SetAnimationTime(float);
  4142. bool SetAttribute(const String&, const Variant&);
  4143. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4144. void SetAttributeAnimationSpeed(const String&, float);
  4145. void SetAttributeAnimationTime(const String&, float);
  4146. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4147. void SetInterceptNetworkUpdate(const String&, bool);
  4148. // Properties:
  4149. bool animationEnabled;
  4150. /* readonly */
  4151. Array<Variant> attributeDefaults;
  4152. /* readonly */
  4153. Array<AttributeInfo> attributeInfos;
  4154. Array<Variant> attributes;
  4155. /* readonly */
  4156. BoundingBox boundingBox;
  4157. bool castShadows;
  4158. /* readonly */
  4159. String category;
  4160. float drawDistance;
  4161. bool enabled;
  4162. /* readonly */
  4163. bool enabledEffective;
  4164. /* readonly */
  4165. uint id;
  4166. /* readonly */
  4167. bool inView;
  4168. uint lightMask;
  4169. float lodBias;
  4170. uint maxLights;
  4171. /* readonly */
  4172. Node node;
  4173. /* readonly */
  4174. uint numAttributes;
  4175. ObjectAnimation objectAnimation;
  4176. bool occludee;
  4177. bool occluder;
  4178. /* readonly */
  4179. int refs;
  4180. float shadowDistance;
  4181. uint shadowMask;
  4182. bool temporary;
  4183. /* readonly */
  4184. StringHash type;
  4185. /* readonly */
  4186. String typeName;
  4187. uint viewMask;
  4188. /* readonly */
  4189. int weakRefs;
  4190. /* readonly */
  4191. BoundingBox worldBoundingBox;
  4192. uint zoneMask;
  4193. };
  4194. class Drawable2D
  4195. {
  4196. // Methods:
  4197. void ApplyAttributes();
  4198. void DrawDebugGeometry(DebugRenderer, bool);
  4199. Variant GetAttribute(const String&) const;
  4200. ValueAnimation GetAttributeAnimation(const String&) const;
  4201. float GetAttributeAnimationSpeed(const String&) const;
  4202. float GetAttributeAnimationTime(const String&) const;
  4203. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4204. Variant GetAttributeDefault(const String&) const;
  4205. bool GetInterceptNetworkUpdate(const String&) const;
  4206. bool HasSubscribedToEvent(Object, const String&);
  4207. bool HasSubscribedToEvent(const String&);
  4208. bool IsInView(Camera) const;
  4209. bool Load(File, bool = false);
  4210. bool Load(VectorBuffer&, bool = false);
  4211. bool LoadJSON(const JSONValue&, bool = false);
  4212. bool LoadXML(const XMLElement&, bool = false);
  4213. void MarkNetworkUpdate() const;
  4214. void Remove();
  4215. void RemoveAttributeAnimation(const String&);
  4216. void RemoveInstanceDefault();
  4217. void RemoveObjectAnimation();
  4218. void ResetToDefault();
  4219. bool Save(File) const;
  4220. bool Save(VectorBuffer&) const;
  4221. bool SaveJSON(JSONValue&) const;
  4222. bool SaveXML(XMLElement&) const;
  4223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4224. void SetAnimationTime(float);
  4225. bool SetAttribute(const String&, const Variant&);
  4226. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4227. void SetAttributeAnimationSpeed(const String&, float);
  4228. void SetAttributeAnimationTime(const String&, float);
  4229. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4230. void SetInterceptNetworkUpdate(const String&, bool);
  4231. // Properties:
  4232. bool animationEnabled;
  4233. /* readonly */
  4234. Array<Variant> attributeDefaults;
  4235. /* readonly */
  4236. Array<AttributeInfo> attributeInfos;
  4237. Array<Variant> attributes;
  4238. /* readonly */
  4239. BoundingBox boundingBox;
  4240. bool castShadows;
  4241. /* readonly */
  4242. String category;
  4243. float drawDistance;
  4244. bool enabled;
  4245. /* readonly */
  4246. bool enabledEffective;
  4247. /* readonly */
  4248. uint id;
  4249. /* readonly */
  4250. bool inView;
  4251. int layer;
  4252. uint lightMask;
  4253. float lodBias;
  4254. uint maxLights;
  4255. /* readonly */
  4256. Node node;
  4257. /* readonly */
  4258. uint numAttributes;
  4259. ObjectAnimation objectAnimation;
  4260. bool occludee;
  4261. bool occluder;
  4262. int orderInLayer;
  4263. /* readonly */
  4264. int refs;
  4265. float shadowDistance;
  4266. uint shadowMask;
  4267. bool temporary;
  4268. /* readonly */
  4269. StringHash type;
  4270. /* readonly */
  4271. String typeName;
  4272. uint viewMask;
  4273. /* readonly */
  4274. int weakRefs;
  4275. /* readonly */
  4276. BoundingBox worldBoundingBox;
  4277. uint zoneMask;
  4278. };
  4279. class DropDownList
  4280. {
  4281. // Methods:
  4282. void AddChild(UIElement);
  4283. void AddItem(UIElement);
  4284. void AddTag(const String&);
  4285. void AddTags(const String&, int8 = ';');
  4286. void ApplyAttributes();
  4287. void BringToFront();
  4288. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4289. void DisableLayoutUpdate();
  4290. IntVector2 ElementToScreen(const IntVector2&);
  4291. void EnableLayoutUpdate();
  4292. uint FindChild(UIElement) const;
  4293. Variant GetAttribute(const String&) const;
  4294. ValueAnimation GetAttributeAnimation(const String&) const;
  4295. float GetAttributeAnimationSpeed(const String&) const;
  4296. float GetAttributeAnimationTime(const String&) const;
  4297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4298. Variant GetAttributeDefault(const String&) const;
  4299. UIElement GetChild(const String&, bool = false) const;
  4300. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4301. Array<UIElement> GetChildren(bool = false) const;
  4302. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4303. UIElement GetElementEventSender() const;
  4304. bool GetInterceptNetworkUpdate(const String&) const;
  4305. Array<UIElement> GetItems() const;
  4306. uint GetNumChildren(bool) const;
  4307. bool HasSubscribedToEvent(Object, const String&);
  4308. bool HasSubscribedToEvent(const String&);
  4309. bool HasTag(const String&) const;
  4310. void InsertChild(uint, UIElement);
  4311. void InsertItem(uint, UIElement);
  4312. bool IsInside(IntVector2, bool);
  4313. bool IsInsideCombined(IntVector2, bool);
  4314. bool Load(File, bool = false);
  4315. bool Load(VectorBuffer&, bool = false);
  4316. bool LoadChildXML(XMLFile, XMLFile = null);
  4317. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4318. bool LoadJSON(const JSONValue&, bool = false);
  4319. bool LoadXML(File);
  4320. bool LoadXML(VectorBuffer&);
  4321. bool LoadXML(XMLFile, XMLFile);
  4322. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4323. bool LoadXML(const XMLElement&, bool = false);
  4324. void MarkNetworkUpdate() const;
  4325. void Remove();
  4326. void RemoveAllChildren();
  4327. void RemoveAllItems();
  4328. void RemoveAllTags();
  4329. void RemoveAttributeAnimation(const String&);
  4330. void RemoveChild(UIElement, uint = 0);
  4331. void RemoveChild(uint);
  4332. void RemoveInstanceDefault();
  4333. void RemoveItem(UIElement);
  4334. void RemoveItem(uint);
  4335. void RemoveObjectAnimation();
  4336. bool RemoveTag(const String&);
  4337. void ResetDeepEnabled();
  4338. void ResetToDefault();
  4339. bool Save(File) const;
  4340. bool Save(VectorBuffer&) const;
  4341. bool SaveJSON(JSONValue&) const;
  4342. bool SaveXML(File, const String& = "\t");
  4343. bool SaveXML(VectorBuffer&, const String& = "\t");
  4344. bool SaveXML(XMLElement&) const;
  4345. IntVector2 ScreenToElement(const IntVector2&);
  4346. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4347. void SetAccelerator(int, int);
  4348. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4349. void SetAnimationTime(float);
  4350. bool SetAttribute(const String&, const Variant&);
  4351. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4352. void SetAttributeAnimationSpeed(const String&, float);
  4353. void SetAttributeAnimationTime(const String&, float);
  4354. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4355. void SetDeepEnabled(bool);
  4356. void SetEnabledRecursive(bool);
  4357. void SetFixedHeight(int);
  4358. void SetFixedSize(int, int);
  4359. void SetFixedWidth(int);
  4360. void SetFullImageRect();
  4361. void SetHoverOffset(int, int);
  4362. void SetInterceptNetworkUpdate(const String&, bool);
  4363. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4364. void SetMaxSize(int, int);
  4365. void SetMinSize(int, int);
  4366. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4367. void SetPosition(int, int);
  4368. void SetPressedChildOffset(int, int);
  4369. void SetPressedOffset(int, int);
  4370. void SetRepeat(float, float);
  4371. void SetSize(int, int);
  4372. bool SetStyle(const String&, XMLFile = null);
  4373. bool SetStyle(const XMLElement&);
  4374. bool SetStyleAuto(XMLFile = null);
  4375. void UpdateLayout();
  4376. const Variant& GetVar(const StringHash&);
  4377. UIElement getPopup() const;
  4378. // Properties:
  4379. /* readonly */
  4380. int acceleratorKey;
  4381. /* readonly */
  4382. int acceleratorQualifiers;
  4383. bool animationEnabled;
  4384. /* readonly */
  4385. Array<Variant> attributeDefaults;
  4386. /* readonly */
  4387. Array<AttributeInfo> attributeInfos;
  4388. Array<Variant> attributes;
  4389. BlendMode blendMode;
  4390. IntRect border;
  4391. bool bringToBack;
  4392. bool bringToFront;
  4393. /* readonly */
  4394. String category;
  4395. /* readonly */
  4396. IntVector2 childOffset;
  4397. /* readonly */
  4398. Array<UIElement> children;
  4399. IntRect clipBorder;
  4400. bool clipChildren;
  4401. /* writeonly */
  4402. Color color;
  4403. /* readonly */
  4404. bool colorGradient;
  4405. Array<Color> colors;
  4406. /* readonly */
  4407. IntRect combinedScreenRect;
  4408. XMLFile defaultStyle;
  4409. /* readonly */
  4410. float derivedOpacity;
  4411. /* readonly */
  4412. uint dragButtonCombo;
  4413. /* readonly */
  4414. int dragButtonCount;
  4415. uint dragDropMode;
  4416. bool editable;
  4417. bool elementEventSender;
  4418. bool enabled;
  4419. /* readonly */
  4420. bool enabledSelf;
  4421. /* readonly */
  4422. bool fixedHeight;
  4423. /* readonly */
  4424. bool fixedSize;
  4425. /* readonly */
  4426. bool fixedWidth;
  4427. bool focus;
  4428. FocusMode focusMode;
  4429. int height;
  4430. HorizontalAlignment horizontalAlignment;
  4431. IntVector2 hoverOffset;
  4432. /* readonly */
  4433. bool hovering;
  4434. IntRect imageBorder;
  4435. IntRect imageRect;
  4436. int indent;
  4437. int indentSpacing;
  4438. /* readonly */
  4439. int indentWidth;
  4440. bool internal;
  4441. /* readonly */
  4442. Array<UIElement> items;
  4443. IntRect layoutBorder;
  4444. Vector2 layoutFlexScale;
  4445. LayoutMode layoutMode;
  4446. int layoutSpacing;
  4447. /* readonly */
  4448. ListView listView;
  4449. int maxHeight;
  4450. IntVector2 maxSize;
  4451. int maxWidth;
  4452. int minHeight;
  4453. IntVector2 minSize;
  4454. int minWidth;
  4455. String name;
  4456. /* readonly */
  4457. uint numAllChildren;
  4458. /* readonly */
  4459. uint numAttributes;
  4460. /* readonly */
  4461. uint numChildren;
  4462. /* readonly */
  4463. uint numItems;
  4464. ObjectAnimation objectAnimation;
  4465. float opacity;
  4466. UIElement parent;
  4467. /* readonly */
  4468. UIElement placeholder;
  4469. String placeholderText;
  4470. IntVector2 position;
  4471. /* readonly */
  4472. bool pressed;
  4473. IntVector2 pressedChildOffset;
  4474. IntVector2 pressedOffset;
  4475. int priority;
  4476. /* readonly */
  4477. int refs;
  4478. float repeatDelay;
  4479. float repeatRate;
  4480. bool resizePopup;
  4481. /* readonly */
  4482. UIElement root;
  4483. /* readonly */
  4484. IntVector2 screenPosition;
  4485. bool selected;
  4486. /* readonly */
  4487. UIElement selectedItem;
  4488. uint selection;
  4489. bool showPopup;
  4490. IntVector2 size;
  4491. bool sortChildren;
  4492. String style;
  4493. /* readonly */
  4494. Array<String> tags;
  4495. bool temporary;
  4496. Texture texture;
  4497. bool tiled;
  4498. TraversalMode traversalMode;
  4499. /* readonly */
  4500. StringHash type;
  4501. /* readonly */
  4502. String typeName;
  4503. bool useDerivedOpacity;
  4504. /* readonly */
  4505. VariantMap vars;
  4506. VerticalAlignment verticalAlignment;
  4507. bool visible;
  4508. /* readonly */
  4509. bool visibleEffective;
  4510. /* readonly */
  4511. int weakRefs;
  4512. int width;
  4513. };
  4514. class DynamicNavigationMesh
  4515. {
  4516. // Methods:
  4517. void ApplyAttributes();
  4518. bool Build();
  4519. bool Build(const BoundingBox&);
  4520. void DrawDebugGeometry(DebugRenderer, bool);
  4521. void DrawDebugGeometry(bool);
  4522. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4523. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4524. float GetAreaCost(uint) const;
  4525. Variant GetAttribute(const String&) const;
  4526. ValueAnimation GetAttributeAnimation(const String&) const;
  4527. float GetAttributeAnimationSpeed(const String&) const;
  4528. float GetAttributeAnimationTime(const String&) const;
  4529. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4530. Variant GetAttributeDefault(const String&) const;
  4531. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4532. bool GetInterceptNetworkUpdate(const String&) const;
  4533. Vector3 GetRandomPoint();
  4534. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4535. bool HasSubscribedToEvent(Object, const String&);
  4536. bool HasSubscribedToEvent(const String&);
  4537. bool Load(File, bool = false);
  4538. bool Load(VectorBuffer&, bool = false);
  4539. bool LoadJSON(const JSONValue&, bool = false);
  4540. bool LoadXML(const XMLElement&, bool = false);
  4541. void MarkNetworkUpdate() const;
  4542. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4543. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4544. void Remove();
  4545. void RemoveAttributeAnimation(const String&);
  4546. void RemoveInstanceDefault();
  4547. void RemoveObjectAnimation();
  4548. void ResetToDefault();
  4549. bool Save(File) const;
  4550. bool Save(VectorBuffer&) const;
  4551. bool SaveJSON(JSONValue&) const;
  4552. bool SaveXML(XMLElement&) const;
  4553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4554. void SetAnimationTime(float);
  4555. void SetAreaCost(uint, float);
  4556. bool SetAttribute(const String&, const Variant&);
  4557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4558. void SetAttributeAnimationSpeed(const String&, float);
  4559. void SetAttributeAnimationTime(const String&, float);
  4560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4561. void SetInterceptNetworkUpdate(const String&, bool);
  4562. // Properties:
  4563. float agentHeight;
  4564. float agentMaxClimb;
  4565. float agentMaxSlope;
  4566. float agentRadius;
  4567. bool animationEnabled;
  4568. /* readonly */
  4569. Array<Variant> attributeDefaults;
  4570. /* readonly */
  4571. Array<AttributeInfo> attributeInfos;
  4572. Array<Variant> attributes;
  4573. /* readonly */
  4574. BoundingBox boundingBox;
  4575. /* readonly */
  4576. String category;
  4577. float cellHeight;
  4578. float cellSize;
  4579. float detailSampleDistance;
  4580. float detailSampleMaxError;
  4581. bool drawNavAreas;
  4582. bool drawObstacles;
  4583. bool drawOffMeshConnections;
  4584. float edgeMaxError;
  4585. float edgeMaxLength;
  4586. bool enabled;
  4587. /* readonly */
  4588. bool enabledEffective;
  4589. /* readonly */
  4590. uint id;
  4591. /* readonly */
  4592. bool initialized;
  4593. bool maxLayers;
  4594. uint maxObstacles;
  4595. /* readonly */
  4596. Node node;
  4597. /* readonly */
  4598. uint numAttributes;
  4599. /* readonly */
  4600. IntVector2 numTiles;
  4601. ObjectAnimation objectAnimation;
  4602. Vector3 padding;
  4603. NavmeshPartitionType partitionType;
  4604. /* readonly */
  4605. int refs;
  4606. float regionMergeSize;
  4607. float regionMinSize;
  4608. bool temporary;
  4609. int tileSize;
  4610. /* readonly */
  4611. StringHash type;
  4612. /* readonly */
  4613. String typeName;
  4614. /* readonly */
  4615. int weakRefs;
  4616. /* readonly */
  4617. BoundingBox worldBoundingBox;
  4618. };
  4619. class Engine
  4620. {
  4621. // Methods:
  4622. Console CreateConsole();
  4623. DebugHud CreateDebugHud();
  4624. void DumpMemory();
  4625. void DumpProfiler();
  4626. void DumpResources(bool = false);
  4627. void Exit();
  4628. bool HasSubscribedToEvent(Object, const String&);
  4629. bool HasSubscribedToEvent(const String&);
  4630. void RunFrame();
  4631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4632. // Properties:
  4633. bool autoExit;
  4634. /* readonly */
  4635. String category;
  4636. /* readonly */
  4637. bool exiting;
  4638. /* readonly */
  4639. bool headless;
  4640. /* readonly */
  4641. bool initialized;
  4642. int maxFps;
  4643. int maxInactiveFps;
  4644. int minFps;
  4645. bool pauseMinimized;
  4646. /* readonly */
  4647. int refs;
  4648. int timeStepSmoothing;
  4649. /* readonly */
  4650. StringHash type;
  4651. /* readonly */
  4652. String typeName;
  4653. /* readonly */
  4654. int weakRefs;
  4655. };
  4656. class File
  4657. {
  4658. // Methods:
  4659. void Close();
  4660. bool HasSubscribedToEvent(Object, const String&);
  4661. bool HasSubscribedToEvent(const String&);
  4662. bool Open(const String&, FileMode = FILE_READ);
  4663. Array<uint8> Read(uint);
  4664. bool ReadBool();
  4665. BoundingBox ReadBoundingBox();
  4666. int8 ReadByte();
  4667. Color ReadColor();
  4668. double ReadDouble();
  4669. String ReadFileID();
  4670. float ReadFloat();
  4671. int ReadInt();
  4672. int64 ReadInt64();
  4673. IntRect ReadIntRect();
  4674. IntVector2 ReadIntVector2();
  4675. String ReadLine();
  4676. Matrix3 ReadMatrix3();
  4677. Matrix3x4 ReadMatrix3x4();
  4678. Matrix4 ReadMatrix4();
  4679. uint ReadNetID();
  4680. Quaternion ReadPackedQuaternion();
  4681. Vector3 ReadPackedVector3(float);
  4682. Quaternion ReadQuaternion();
  4683. int16 ReadShort();
  4684. String ReadString();
  4685. StringHash ReadStringHash();
  4686. uint8 ReadUByte();
  4687. uint ReadUInt();
  4688. uint64 ReadUInt64();
  4689. uint16 ReadUShort();
  4690. uint ReadVLE();
  4691. Variant ReadVariant();
  4692. VariantMap ReadVariantMap();
  4693. Vector2 ReadVector2();
  4694. Vector3 ReadVector3();
  4695. Vector4 ReadVector4();
  4696. VectorBuffer ReadVectorBuffer(uint);
  4697. uint Seek(uint);
  4698. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4699. uint Write(Array<uint8>);
  4700. bool WriteBool(bool);
  4701. bool WriteBoundingBox(const BoundingBox&);
  4702. bool WriteByte(int8);
  4703. bool WriteColor(const Color&);
  4704. bool WriteDouble(double);
  4705. bool WriteFileID(const String&);
  4706. bool WriteFloat(float);
  4707. bool WriteInt(int);
  4708. bool WriteInt64(int64);
  4709. bool WriteIntRect(const IntRect&);
  4710. bool WriteIntVector2(const IntVector2&);
  4711. bool WriteLine(const String&);
  4712. bool WriteMatrix3(const Matrix3&);
  4713. bool WriteMatrix3x4(const Matrix3x4&);
  4714. bool WriteMatrix4(const Matrix4&);
  4715. bool WriteNetID(uint);
  4716. bool WritePackedQuaternion(const Quaternion&);
  4717. bool WritePackedVector3(const Vector3&, float);
  4718. bool WriteQuaternion(const Quaternion&);
  4719. bool WriteShort(int16);
  4720. bool WriteString(const String&);
  4721. bool WriteStringHash(const StringHash&);
  4722. bool WriteUByte(uint8);
  4723. bool WriteUInt(uint);
  4724. bool WriteUInt64(uint64);
  4725. bool WriteUShort(uint16);
  4726. bool WriteVLE(uint);
  4727. bool WriteVariant(const Variant&);
  4728. bool WriteVariantMap(const VariantMap&);
  4729. bool WriteVector2(const Vector2&);
  4730. bool WriteVector3(const Vector3&);
  4731. bool WriteVector4(const Vector4&);
  4732. bool WriteVectorBuffer(const VectorBuffer&);
  4733. // Properties:
  4734. /* readonly */
  4735. String category;
  4736. /* readonly */
  4737. uint checksum;
  4738. /* readonly */
  4739. bool eof;
  4740. /* readonly */
  4741. FileMode mode;
  4742. /* readonly */
  4743. String name;
  4744. /* readonly */
  4745. bool open;
  4746. /* readonly */
  4747. bool packaged;
  4748. /* readonly */
  4749. uint position;
  4750. /* readonly */
  4751. int refs;
  4752. /* readonly */
  4753. uint size;
  4754. /* readonly */
  4755. StringHash type;
  4756. /* readonly */
  4757. String typeName;
  4758. /* readonly */
  4759. int weakRefs;
  4760. };
  4761. class FileSelector
  4762. {
  4763. // Methods:
  4764. bool HasSubscribedToEvent(Object, const String&);
  4765. bool HasSubscribedToEvent(const String&);
  4766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4767. void SetButtonTexts(const String&, const String&);
  4768. void SetFilters(Array<String>, uint);
  4769. void UpdateElements();
  4770. // Properties:
  4771. /* readonly */
  4772. Button cancelButton;
  4773. /* readonly */
  4774. String category;
  4775. XMLFile defaultStyle;
  4776. bool directoryMode;
  4777. /* readonly */
  4778. ListView fileList;
  4779. String fileName;
  4780. /* readonly */
  4781. LineEdit fileNameEdit;
  4782. /* readonly */
  4783. String filter;
  4784. /* readonly */
  4785. uint filterIndex;
  4786. /* readonly */
  4787. DropDownList filterList;
  4788. /* readonly */
  4789. Button okButton;
  4790. String path;
  4791. /* readonly */
  4792. LineEdit pathEdit;
  4793. /* readonly */
  4794. int refs;
  4795. String title;
  4796. /* readonly */
  4797. Text titleText;
  4798. /* readonly */
  4799. StringHash type;
  4800. /* readonly */
  4801. String typeName;
  4802. /* readonly */
  4803. int weakRefs;
  4804. /* readonly */
  4805. Window window;
  4806. };
  4807. class FileSystem
  4808. {
  4809. // Methods:
  4810. bool Copy(const String&, const String&);
  4811. bool CreateDir(const String&);
  4812. bool Delete(const String&);
  4813. bool DirExists(const String&) const;
  4814. bool FileExists(const String&) const;
  4815. String GetAppPreferencesDir(const String&, const String&) const;
  4816. uint GetLastModifiedTime(const String&) const;
  4817. bool HasSubscribedToEvent(Object, const String&);
  4818. bool HasSubscribedToEvent(const String&);
  4819. bool Rename(const String&, const String&);
  4820. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4822. bool SetLastModifiedTime(const String&, uint);
  4823. int SystemCommand(const String&, bool = false);
  4824. uint SystemCommandAsync(const String&);
  4825. bool SystemOpen(const String&, const String&);
  4826. int SystemRun(const String&, Array<String>);
  4827. uint SystemRunAsync(const String&, Array<String>);
  4828. // Properties:
  4829. /* readonly */
  4830. String category;
  4831. String currentDir;
  4832. bool executeConsoleCommands;
  4833. /* readonly */
  4834. String programDir;
  4835. /* readonly */
  4836. int refs;
  4837. /* readonly */
  4838. StringHash type;
  4839. /* readonly */
  4840. String typeName;
  4841. /* readonly */
  4842. String userDocumentsDir;
  4843. /* readonly */
  4844. int weakRefs;
  4845. };
  4846. class FocusParameters
  4847. {
  4848. // Properties:
  4849. bool autoSize;
  4850. bool focus;
  4851. float minView;
  4852. bool nonUniform;
  4853. float quantize;
  4854. };
  4855. class Font
  4856. {
  4857. // Methods:
  4858. IntVector2 GetTotalGlyphOffset(int) const;
  4859. bool HasSubscribedToEvent(Object, const String&);
  4860. bool HasSubscribedToEvent(const String&);
  4861. bool Load(File);
  4862. bool Load(VectorBuffer&);
  4863. bool Save(File) const;
  4864. bool Save(VectorBuffer&) const;
  4865. bool SaveXML(File, int, bool = false, const String& = "\t");
  4866. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4867. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4868. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4869. // Properties:
  4870. IntVector2 absoluteGlyphOffset;
  4871. /* readonly */
  4872. String category;
  4873. /* readonly */
  4874. uint memoryUse;
  4875. String name;
  4876. /* readonly */
  4877. int refs;
  4878. Vector2 scaledGlyphOffset;
  4879. /* readonly */
  4880. StringHash type;
  4881. /* readonly */
  4882. String typeName;
  4883. /* readonly */
  4884. uint useTimer;
  4885. /* readonly */
  4886. int weakRefs;
  4887. };
  4888. class Frustum
  4889. {
  4890. // Methods:
  4891. void Define(const BoundingBox&, const Matrix3x4&);
  4892. void Define(const Matrix4&);
  4893. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4894. void Define(float, float, float, float, float, const Matrix3x4&);
  4895. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4896. void DefineSplit(const Matrix4&, float, float);
  4897. float Distance(const Vector3&) const;
  4898. Intersection IsInside(const BoundingBox&);
  4899. Intersection IsInside(const Sphere&);
  4900. Intersection IsInside(const Vector3&);
  4901. Intersection IsInsideFast(const BoundingBox&) const;
  4902. Intersection IsInsideFast(const Sphere&) const;
  4903. void Transform(const Matrix3&);
  4904. void Transform(const Matrix3x4&);
  4905. Frustum Transformed(const Matrix3&) const;
  4906. Frustum Transformed(const Matrix3x4&) const;
  4907. // Properties:
  4908. /* readonly */
  4909. Array<Vector3> vertices;
  4910. };
  4911. class Geometry
  4912. {
  4913. // Methods:
  4914. bool HasSubscribedToEvent(Object, const String&);
  4915. bool HasSubscribedToEvent(const String&);
  4916. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4917. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4918. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4919. void SetIndexBuffer(IndexBuffer);
  4920. bool SetVertexBuffer(uint, VertexBuffer);
  4921. // Properties:
  4922. /* readonly */
  4923. String category;
  4924. /* readonly */
  4925. bool empty;
  4926. IndexBuffer indexBuffer;
  4927. /* readonly */
  4928. uint indexCount;
  4929. /* readonly */
  4930. uint indexStart;
  4931. float lodDistance;
  4932. uint numVertexBuffers;
  4933. /* readonly */
  4934. PrimitiveType primitiveType;
  4935. /* readonly */
  4936. int refs;
  4937. /* readonly */
  4938. StringHash type;
  4939. /* readonly */
  4940. String typeName;
  4941. /* readonly */
  4942. Array<VertexBuffer> vertexBuffers;
  4943. /* readonly */
  4944. uint vertexCount;
  4945. /* readonly */
  4946. uint vertexStart;
  4947. /* readonly */
  4948. int weakRefs;
  4949. };
  4950. class Graphics
  4951. {
  4952. // Methods:
  4953. void BeginDumpShaders(const String&);
  4954. void Close();
  4955. void EndDumpShaders();
  4956. bool HasSubscribedToEvent(Object, const String&);
  4957. bool HasSubscribedToEvent(const String&);
  4958. void Maximize();
  4959. void Minimize();
  4960. void PrecacheShaders(File);
  4961. void PrecacheShaders(VectorBuffer&);
  4962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4963. bool SetMode(int, int);
  4964. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4965. void SetWindowPosition(int, int);
  4966. bool TakeScreenShot(Image);
  4967. bool ToggleFullscreen();
  4968. // Properties:
  4969. /* readonly */
  4970. String apiName;
  4971. /* readonly */
  4972. bool borderless;
  4973. /* readonly */
  4974. String category;
  4975. /* readonly */
  4976. bool deferredSupport;
  4977. /* readonly */
  4978. IntVector2 desktopResolution;
  4979. /* readonly */
  4980. bool deviceLost;
  4981. bool dither;
  4982. bool flushGPU;
  4983. /* readonly */
  4984. bool fullscreen;
  4985. /* readonly */
  4986. bool hardwareShadowSupport;
  4987. /* readonly */
  4988. int height;
  4989. /* readonly */
  4990. bool initialized;
  4991. /* readonly */
  4992. bool instancingSupport;
  4993. /* readonly */
  4994. bool lightPrepassSupport;
  4995. /* readonly */
  4996. int multiSample;
  4997. /* readonly */
  4998. Array<int> multiSampleLevels;
  4999. /* readonly */
  5000. uint numBatches;
  5001. /* readonly */
  5002. uint numPrimitives;
  5003. String orientations;
  5004. /* readonly */
  5005. bool readableDepthSupport;
  5006. /* readonly */
  5007. int refs;
  5008. /* readonly */
  5009. bool resizable;
  5010. /* readonly */
  5011. Array<IntVector2> resolutions;
  5012. bool sRGB;
  5013. /* readonly */
  5014. bool sRGBSupport;
  5015. /* readonly */
  5016. bool sRGBWriteSupport;
  5017. String shaderCacheDir;
  5018. /* readonly */
  5019. bool tripleBuffer;
  5020. /* readonly */
  5021. StringHash type;
  5022. /* readonly */
  5023. String typeName;
  5024. /* readonly */
  5025. bool vsync;
  5026. /* readonly */
  5027. int weakRefs;
  5028. /* readonly */
  5029. int width;
  5030. /* writeonly */
  5031. Image windowIcon;
  5032. IntVector2 windowPosition;
  5033. String windowTitle;
  5034. };
  5035. class HttpRequest
  5036. {
  5037. // Methods:
  5038. Array<uint8> Read(uint);
  5039. bool ReadBool();
  5040. BoundingBox ReadBoundingBox();
  5041. int8 ReadByte();
  5042. Color ReadColor();
  5043. double ReadDouble();
  5044. String ReadFileID();
  5045. float ReadFloat();
  5046. int ReadInt();
  5047. int64 ReadInt64();
  5048. IntRect ReadIntRect();
  5049. IntVector2 ReadIntVector2();
  5050. String ReadLine();
  5051. Matrix3 ReadMatrix3();
  5052. Matrix3x4 ReadMatrix3x4();
  5053. Matrix4 ReadMatrix4();
  5054. uint ReadNetID();
  5055. Quaternion ReadPackedQuaternion();
  5056. Vector3 ReadPackedVector3(float);
  5057. Quaternion ReadQuaternion();
  5058. int16 ReadShort();
  5059. String ReadString();
  5060. StringHash ReadStringHash();
  5061. uint8 ReadUByte();
  5062. uint ReadUInt();
  5063. uint64 ReadUInt64();
  5064. uint16 ReadUShort();
  5065. uint ReadVLE();
  5066. Variant ReadVariant();
  5067. VariantMap ReadVariantMap();
  5068. Vector2 ReadVector2();
  5069. Vector3 ReadVector3();
  5070. Vector4 ReadVector4();
  5071. VectorBuffer ReadVectorBuffer(uint);
  5072. uint Seek(uint);
  5073. // Properties:
  5074. /* readonly */
  5075. uint availableSize;
  5076. /* readonly */
  5077. uint checksum;
  5078. /* readonly */
  5079. bool eof;
  5080. /* readonly */
  5081. String error;
  5082. /* readonly */
  5083. String name;
  5084. /* readonly */
  5085. bool open;
  5086. /* readonly */
  5087. uint position;
  5088. /* readonly */
  5089. int refs;
  5090. /* readonly */
  5091. uint size;
  5092. /* readonly */
  5093. HttpRequestState state;
  5094. /* readonly */
  5095. String url;
  5096. /* readonly */
  5097. String verb;
  5098. /* readonly */
  5099. int weakRefs;
  5100. };
  5101. class Image
  5102. {
  5103. // Methods:
  5104. void Clear(const Color&);
  5105. void ClearInt(uint);
  5106. bool FlipHorizontal();
  5107. bool FlipVertical();
  5108. Color GetPixel(int, int) const;
  5109. Color GetPixel(int, int, int) const;
  5110. Color GetPixelBilinear(float, float) const;
  5111. uint GetPixelInt(int, int) const;
  5112. uint GetPixelInt(int, int, int) const;
  5113. Color GetPixelTrilinear(float, float, float) const;
  5114. Image GetSubimage(const IntRect&) const;
  5115. bool HasSubscribedToEvent(Object, const String&);
  5116. bool HasSubscribedToEvent(const String&);
  5117. bool Load(File);
  5118. bool Load(VectorBuffer&);
  5119. bool LoadColorLUT(File);
  5120. bool LoadColorLUT(VectorBuffer&);
  5121. bool Resize(int, int);
  5122. bool Save(File) const;
  5123. bool Save(VectorBuffer&) const;
  5124. bool SaveBMP(const String&) const;
  5125. bool SaveJPG(const String&, int) const;
  5126. bool SavePNG(const String&) const;
  5127. bool SaveTGA(const String&) const;
  5128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5129. void SetPixel(int, int, const Color&);
  5130. void SetPixel(int, int, int, const Color&);
  5131. void SetPixelInt(int, int, int, uint);
  5132. void SetPixelInt(int, int, uint);
  5133. bool SetSize(int, int, int, uint);
  5134. bool SetSize(int, int, uint);
  5135. // Properties:
  5136. /* readonly */
  5137. bool array;
  5138. /* readonly */
  5139. String category;
  5140. /* readonly */
  5141. uint components;
  5142. /* readonly */
  5143. bool compressed;
  5144. /* readonly */
  5145. CompressedFormat compressedFormat;
  5146. /* readonly */
  5147. bool cubemap;
  5148. /* readonly */
  5149. int depth;
  5150. /* readonly */
  5151. int height;
  5152. /* readonly */
  5153. uint memoryUse;
  5154. String name;
  5155. /* readonly */
  5156. uint numCompressedLevels;
  5157. /* readonly */
  5158. int refs;
  5159. /* readonly */
  5160. bool sRGB;
  5161. /* readonly */
  5162. StringHash type;
  5163. /* readonly */
  5164. String typeName;
  5165. /* readonly */
  5166. uint useTimer;
  5167. /* readonly */
  5168. int weakRefs;
  5169. /* readonly */
  5170. int width;
  5171. };
  5172. class IndexBuffer
  5173. {
  5174. // Methods:
  5175. VectorBuffer GetData();
  5176. bool HasSubscribedToEvent(Object, const String&);
  5177. bool HasSubscribedToEvent(const String&);
  5178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5179. bool SetData(VectorBuffer&);
  5180. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5181. void SetSize(uint, bool, bool = false);
  5182. // Properties:
  5183. /* readonly */
  5184. String category;
  5185. /* readonly */
  5186. bool dynamic;
  5187. /* readonly */
  5188. uint indexCount;
  5189. /* readonly */
  5190. uint indexSize;
  5191. /* readonly */
  5192. int refs;
  5193. bool shadowed;
  5194. /* readonly */
  5195. StringHash type;
  5196. /* readonly */
  5197. String typeName;
  5198. /* readonly */
  5199. int weakRefs;
  5200. };
  5201. class Input
  5202. {
  5203. // Methods:
  5204. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5205. void CenterMousePosition();
  5206. int GetKeyFromName(const String&) const;
  5207. int GetKeyFromScancode(int) const;
  5208. String GetKeyName(int) const;
  5209. int GetScancodeFromKey(int) const;
  5210. int GetScancodeFromName(const String&) const;
  5211. String GetScancodeName(int) const;
  5212. bool HasSubscribedToEvent(Object, const String&);
  5213. bool HasSubscribedToEvent(const String&);
  5214. uint LoadGestures(File);
  5215. uint LoadGestures(VectorBuffer&);
  5216. bool RecordGesture();
  5217. void RemoveAllGestures();
  5218. bool RemoveGesture(uint);
  5219. bool RemoveScreenJoystick(int);
  5220. void ResetMouseGrabbed();
  5221. void ResetMouseMode();
  5222. void ResetMouseVisible();
  5223. bool SaveGesture(File, uint);
  5224. bool SaveGesture(VectorBuffer&, uint);
  5225. bool SaveGestures(File);
  5226. bool SaveGestures(VectorBuffer&);
  5227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5228. void SetMouseGrabbed(bool, bool = false);
  5229. void SetMouseMode(MouseMode, bool = false);
  5230. void SetMouseVisible(bool, bool = false);
  5231. // Properties:
  5232. /* readonly */
  5233. String category;
  5234. /* readonly */
  5235. bool focus;
  5236. /* readonly */
  5237. Array<JoystickState> joysticks;
  5238. /* readonly */
  5239. Array<JoystickState> joysticksByIndex;
  5240. /* readonly */
  5241. Array<JoystickState> joysticksByName;
  5242. /* readonly */
  5243. Array<bool> keyDown;
  5244. /* readonly */
  5245. Array<bool> keyPress;
  5246. /* readonly */
  5247. bool minimized;
  5248. /* readonly */
  5249. Array<bool> mouseButtonDown;
  5250. /* readonly */
  5251. Array<bool> mouseButtonPress;
  5252. bool mouseGrabbed;
  5253. /* readonly */
  5254. bool mouseLocked;
  5255. MouseMode mouseMode;
  5256. /* readonly */
  5257. IntVector2 mouseMove;
  5258. /* readonly */
  5259. int mouseMoveWheel;
  5260. /* readonly */
  5261. int mouseMoveX;
  5262. /* readonly */
  5263. int mouseMoveY;
  5264. IntVector2 mousePosition;
  5265. bool mouseVisible;
  5266. /* readonly */
  5267. uint numJoysticks;
  5268. /* readonly */
  5269. uint numTouches;
  5270. /* readonly */
  5271. Array<bool> qualifierDown;
  5272. /* readonly */
  5273. Array<bool> qualifierPress;
  5274. /* readonly */
  5275. int qualifiers;
  5276. /* readonly */
  5277. int refs;
  5278. /* readonly */
  5279. Array<bool> scancodeDown;
  5280. /* readonly */
  5281. Array<bool> scancodePress;
  5282. Array<bool> screenJoystickVisible;
  5283. /* readonly */
  5284. bool screenKeyboardSupport;
  5285. bool screenKeyboardVisible;
  5286. bool toggleFullscreen;
  5287. bool touchEmulation;
  5288. /* readonly */
  5289. Array<TouchState> touches;
  5290. /* readonly */
  5291. StringHash type;
  5292. /* readonly */
  5293. String typeName;
  5294. /* readonly */
  5295. int weakRefs;
  5296. };
  5297. class IntRect
  5298. {
  5299. // Methods:
  5300. Intersection IsInside(const IntVector2&) const;
  5301. // Properties:
  5302. int bottom;
  5303. /* readonly */
  5304. Array<int> data;
  5305. /* readonly */
  5306. int height;
  5307. int left;
  5308. int right;
  5309. /* readonly */
  5310. IntVector2 size;
  5311. int top;
  5312. /* readonly */
  5313. int width;
  5314. };
  5315. class IntVector2
  5316. {
  5317. // Methods:
  5318. String ToString() const;
  5319. // Properties:
  5320. /* readonly */
  5321. Array<int> data;
  5322. int x;
  5323. int y;
  5324. };
  5325. class JSONFile
  5326. {
  5327. // Methods:
  5328. bool FromString(const String&);
  5329. JSONValue& GetRoot();
  5330. bool HasSubscribedToEvent(Object, const String&);
  5331. bool HasSubscribedToEvent(const String&);
  5332. bool Load(File);
  5333. bool Load(VectorBuffer&);
  5334. bool Save(File) const;
  5335. bool Save(File, const String&) const;
  5336. bool Save(VectorBuffer&) const;
  5337. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5338. // Properties:
  5339. /* readonly */
  5340. String category;
  5341. /* readonly */
  5342. uint memoryUse;
  5343. String name;
  5344. /* readonly */
  5345. int refs;
  5346. /* readonly */
  5347. JSONValue root;
  5348. /* readonly */
  5349. StringHash type;
  5350. /* readonly */
  5351. String typeName;
  5352. /* readonly */
  5353. uint useTimer;
  5354. /* readonly */
  5355. int weakRefs;
  5356. };
  5357. class JSONValue
  5358. {
  5359. // Methods:
  5360. void Clear();
  5361. bool Contains(const String&) const;
  5362. void Erase(const String&);
  5363. void Erase(uint, uint = 1);
  5364. bool GetBool() const;
  5365. double GetDouble() const;
  5366. float GetFloat() const;
  5367. int GetInt() const;
  5368. uint GetUInt() const;
  5369. void Insert(uint, const JSONValue&);
  5370. const JSONValue& Get(const String&) const;
  5371. void Pop();
  5372. void Push(const JSONValue&);
  5373. void Resize(uint);
  5374. void Set(const String&, const JSONValue&);
  5375. const String& GetString() const;
  5376. // Properties:
  5377. /* readonly */
  5378. bool isArray;
  5379. /* readonly */
  5380. bool isBool;
  5381. /* readonly */
  5382. bool isNull;
  5383. /* readonly */
  5384. bool isNumber;
  5385. /* readonly */
  5386. bool isObject;
  5387. /* readonly */
  5388. bool isString;
  5389. /* readonly */
  5390. JSONNumberType numberType;
  5391. /* readonly */
  5392. String numberTypeName;
  5393. /* readonly */
  5394. uint size;
  5395. /* readonly */
  5396. JSONValueType valueType;
  5397. /* readonly */
  5398. String valueTypeName;
  5399. };
  5400. class JoystickState
  5401. {
  5402. // Properties:
  5403. /* readonly */
  5404. Array<float> axisPosition;
  5405. /* readonly */
  5406. Array<bool> buttonDown;
  5407. /* readonly */
  5408. Array<bool> buttonPress;
  5409. /* readonly */
  5410. bool controller;
  5411. /* readonly */
  5412. Array<int> hatPosition;
  5413. int joystickID;
  5414. String name;
  5415. /* readonly */
  5416. uint numAxes;
  5417. /* readonly */
  5418. uint numButtons;
  5419. /* readonly */
  5420. uint numHats;
  5421. };
  5422. class Light
  5423. {
  5424. // Methods:
  5425. void ApplyAttributes();
  5426. void DrawDebugGeometry(DebugRenderer, bool);
  5427. Variant GetAttribute(const String&) const;
  5428. ValueAnimation GetAttributeAnimation(const String&) const;
  5429. float GetAttributeAnimationSpeed(const String&) const;
  5430. float GetAttributeAnimationTime(const String&) const;
  5431. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5432. Variant GetAttributeDefault(const String&) const;
  5433. bool GetInterceptNetworkUpdate(const String&) const;
  5434. bool HasSubscribedToEvent(Object, const String&);
  5435. bool HasSubscribedToEvent(const String&);
  5436. bool IsInView(Camera) const;
  5437. bool Load(File, bool = false);
  5438. bool Load(VectorBuffer&, bool = false);
  5439. bool LoadJSON(const JSONValue&, bool = false);
  5440. bool LoadXML(const XMLElement&, bool = false);
  5441. void MarkNetworkUpdate() const;
  5442. void Remove();
  5443. void RemoveAttributeAnimation(const String&);
  5444. void RemoveInstanceDefault();
  5445. void RemoveObjectAnimation();
  5446. void ResetToDefault();
  5447. bool Save(File) const;
  5448. bool Save(VectorBuffer&) const;
  5449. bool SaveJSON(JSONValue&) const;
  5450. bool SaveXML(XMLElement&) const;
  5451. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5452. void SetAnimationTime(float);
  5453. bool SetAttribute(const String&, const Variant&);
  5454. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5455. void SetAttributeAnimationSpeed(const String&, float);
  5456. void SetAttributeAnimationTime(const String&, float);
  5457. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5458. void SetInterceptNetworkUpdate(const String&, bool);
  5459. // Properties:
  5460. bool animationEnabled;
  5461. float aspectRatio;
  5462. /* readonly */
  5463. Array<Variant> attributeDefaults;
  5464. /* readonly */
  5465. Array<AttributeInfo> attributeInfos;
  5466. Array<Variant> attributes;
  5467. /* readonly */
  5468. BoundingBox boundingBox;
  5469. float brightness;
  5470. bool castShadows;
  5471. /* readonly */
  5472. String category;
  5473. Color color;
  5474. /* readonly */
  5475. Color colorFromTemperature;
  5476. float drawDistance;
  5477. /* readonly */
  5478. Color effectiveColor;
  5479. /* readonly */
  5480. float effectiveSpecularIntensity;
  5481. bool enabled;
  5482. /* readonly */
  5483. bool enabledEffective;
  5484. float fadeDistance;
  5485. float fov;
  5486. /* readonly */
  5487. Frustum frustum;
  5488. /* readonly */
  5489. uint id;
  5490. /* readonly */
  5491. bool inView;
  5492. uint lightMask;
  5493. LightType lightType;
  5494. float lodBias;
  5495. uint maxLights;
  5496. /* readonly */
  5497. bool negative;
  5498. /* readonly */
  5499. Node node;
  5500. /* readonly */
  5501. uint numAttributes;
  5502. /* readonly */
  5503. int numShadowSplits;
  5504. ObjectAnimation objectAnimation;
  5505. bool occludee;
  5506. bool occluder;
  5507. bool perVertex;
  5508. Texture rampTexture;
  5509. float range;
  5510. /* readonly */
  5511. int refs;
  5512. BiasParameters shadowBias;
  5513. CascadeParameters shadowCascade;
  5514. float shadowDistance;
  5515. float shadowFadeDistance;
  5516. FocusParameters shadowFocus;
  5517. float shadowIntensity;
  5518. uint shadowMask;
  5519. float shadowMaxExtrusion;
  5520. float shadowNearFarRatio;
  5521. float shadowResolution;
  5522. Texture shapeTexture;
  5523. float specularIntensity;
  5524. float temperature;
  5525. bool temporary;
  5526. /* readonly */
  5527. StringHash type;
  5528. /* readonly */
  5529. String typeName;
  5530. bool usePhysicalValues;
  5531. uint viewMask;
  5532. /* readonly */
  5533. int weakRefs;
  5534. /* readonly */
  5535. BoundingBox worldBoundingBox;
  5536. uint zoneMask;
  5537. };
  5538. class LineEdit
  5539. {
  5540. // Methods:
  5541. void AddChild(UIElement);
  5542. void AddTag(const String&);
  5543. void AddTags(const String&, int8 = ';');
  5544. void ApplyAttributes();
  5545. void BringToFront();
  5546. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5547. void DisableLayoutUpdate();
  5548. IntVector2 ElementToScreen(const IntVector2&);
  5549. void EnableLayoutUpdate();
  5550. uint FindChild(UIElement) const;
  5551. Variant GetAttribute(const String&) const;
  5552. ValueAnimation GetAttributeAnimation(const String&) const;
  5553. float GetAttributeAnimationSpeed(const String&) const;
  5554. float GetAttributeAnimationTime(const String&) const;
  5555. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5556. Variant GetAttributeDefault(const String&) const;
  5557. UIElement GetChild(const String&, bool = false) const;
  5558. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5559. Array<UIElement> GetChildren(bool = false) const;
  5560. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5561. UIElement GetElementEventSender() const;
  5562. bool GetInterceptNetworkUpdate(const String&) const;
  5563. uint GetNumChildren(bool) const;
  5564. bool HasSubscribedToEvent(Object, const String&);
  5565. bool HasSubscribedToEvent(const String&);
  5566. bool HasTag(const String&) const;
  5567. void InsertChild(uint, UIElement);
  5568. bool IsInside(IntVector2, bool);
  5569. bool IsInsideCombined(IntVector2, bool);
  5570. bool Load(File, bool = false);
  5571. bool Load(VectorBuffer&, bool = false);
  5572. bool LoadChildXML(XMLFile, XMLFile = null);
  5573. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5574. bool LoadJSON(const JSONValue&, bool = false);
  5575. bool LoadXML(File);
  5576. bool LoadXML(VectorBuffer&);
  5577. bool LoadXML(XMLFile, XMLFile);
  5578. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5579. bool LoadXML(const XMLElement&, bool = false);
  5580. void MarkNetworkUpdate() const;
  5581. void Remove();
  5582. void RemoveAllChildren();
  5583. void RemoveAllTags();
  5584. void RemoveAttributeAnimation(const String&);
  5585. void RemoveChild(UIElement, uint = 0);
  5586. void RemoveChild(uint);
  5587. void RemoveInstanceDefault();
  5588. void RemoveObjectAnimation();
  5589. bool RemoveTag(const String&);
  5590. void ResetDeepEnabled();
  5591. void ResetToDefault();
  5592. bool Save(File) const;
  5593. bool Save(VectorBuffer&) const;
  5594. bool SaveJSON(JSONValue&) const;
  5595. bool SaveXML(File, const String& = "\t");
  5596. bool SaveXML(VectorBuffer&, const String& = "\t");
  5597. bool SaveXML(XMLElement&) const;
  5598. IntVector2 ScreenToElement(const IntVector2&);
  5599. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5600. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5601. void SetAnimationTime(float);
  5602. bool SetAttribute(const String&, const Variant&);
  5603. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5604. void SetAttributeAnimationSpeed(const String&, float);
  5605. void SetAttributeAnimationTime(const String&, float);
  5606. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5607. void SetDeepEnabled(bool);
  5608. void SetEnabledRecursive(bool);
  5609. void SetFixedHeight(int);
  5610. void SetFixedSize(int, int);
  5611. void SetFixedWidth(int);
  5612. void SetFullImageRect();
  5613. void SetHoverOffset(int, int);
  5614. void SetInterceptNetworkUpdate(const String&, bool);
  5615. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5616. void SetMaxSize(int, int);
  5617. void SetMinSize(int, int);
  5618. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5619. void SetPosition(int, int);
  5620. void SetSize(int, int);
  5621. bool SetStyle(const String&, XMLFile = null);
  5622. bool SetStyle(const XMLElement&);
  5623. bool SetStyleAuto(XMLFile = null);
  5624. void UpdateLayout();
  5625. const Variant& GetVar(const StringHash&);
  5626. // Properties:
  5627. bool animationEnabled;
  5628. /* readonly */
  5629. Array<Variant> attributeDefaults;
  5630. /* readonly */
  5631. Array<AttributeInfo> attributeInfos;
  5632. Array<Variant> attributes;
  5633. BlendMode blendMode;
  5634. IntRect border;
  5635. bool bringToBack;
  5636. bool bringToFront;
  5637. /* readonly */
  5638. String category;
  5639. /* readonly */
  5640. IntVector2 childOffset;
  5641. /* readonly */
  5642. Array<UIElement> children;
  5643. IntRect clipBorder;
  5644. bool clipChildren;
  5645. /* writeonly */
  5646. Color color;
  5647. /* readonly */
  5648. bool colorGradient;
  5649. Array<Color> colors;
  5650. /* readonly */
  5651. IntRect combinedScreenRect;
  5652. /* readonly */
  5653. BorderImage cursor;
  5654. float cursorBlinkRate;
  5655. bool cursorMovable;
  5656. uint cursorPosition;
  5657. XMLFile defaultStyle;
  5658. /* readonly */
  5659. float derivedOpacity;
  5660. /* readonly */
  5661. uint dragButtonCombo;
  5662. /* readonly */
  5663. int dragButtonCount;
  5664. uint dragDropMode;
  5665. uint echoCharacter;
  5666. bool editable;
  5667. bool elementEventSender;
  5668. bool enabled;
  5669. /* readonly */
  5670. bool enabledSelf;
  5671. /* readonly */
  5672. bool fixedHeight;
  5673. /* readonly */
  5674. bool fixedSize;
  5675. /* readonly */
  5676. bool fixedWidth;
  5677. bool focus;
  5678. FocusMode focusMode;
  5679. int height;
  5680. HorizontalAlignment horizontalAlignment;
  5681. IntVector2 hoverOffset;
  5682. /* readonly */
  5683. bool hovering;
  5684. IntRect imageBorder;
  5685. IntRect imageRect;
  5686. int indent;
  5687. int indentSpacing;
  5688. /* readonly */
  5689. int indentWidth;
  5690. bool internal;
  5691. IntRect layoutBorder;
  5692. Vector2 layoutFlexScale;
  5693. LayoutMode layoutMode;
  5694. int layoutSpacing;
  5695. int maxHeight;
  5696. uint maxLength;
  5697. IntVector2 maxSize;
  5698. int maxWidth;
  5699. int minHeight;
  5700. IntVector2 minSize;
  5701. int minWidth;
  5702. String name;
  5703. /* readonly */
  5704. uint numAllChildren;
  5705. /* readonly */
  5706. uint numAttributes;
  5707. /* readonly */
  5708. uint numChildren;
  5709. ObjectAnimation objectAnimation;
  5710. float opacity;
  5711. UIElement parent;
  5712. IntVector2 position;
  5713. int priority;
  5714. /* readonly */
  5715. int refs;
  5716. /* readonly */
  5717. UIElement root;
  5718. /* readonly */
  5719. IntVector2 screenPosition;
  5720. bool selected;
  5721. IntVector2 size;
  5722. bool sortChildren;
  5723. String style;
  5724. /* readonly */
  5725. Array<String> tags;
  5726. bool temporary;
  5727. String text;
  5728. bool textCopyable;
  5729. /* readonly */
  5730. Text textElement;
  5731. bool textSelectable;
  5732. Texture texture;
  5733. bool tiled;
  5734. TraversalMode traversalMode;
  5735. /* readonly */
  5736. StringHash type;
  5737. /* readonly */
  5738. String typeName;
  5739. bool useDerivedOpacity;
  5740. /* readonly */
  5741. VariantMap vars;
  5742. VerticalAlignment verticalAlignment;
  5743. bool visible;
  5744. /* readonly */
  5745. bool visibleEffective;
  5746. /* readonly */
  5747. int weakRefs;
  5748. int width;
  5749. };
  5750. class ListView
  5751. {
  5752. // Methods:
  5753. void AddChild(UIElement);
  5754. void AddItem(UIElement);
  5755. void AddSelection(uint);
  5756. void AddTag(const String&);
  5757. void AddTags(const String&, int8 = ';');
  5758. void ApplyAttributes();
  5759. void BringToFront();
  5760. void ChangeSelection(int, bool);
  5761. void ClearSelection();
  5762. void CopySelectedItemsToClipboard();
  5763. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5764. void DisableLayoutUpdate();
  5765. IntVector2 ElementToScreen(const IntVector2&);
  5766. void EnableLayoutUpdate();
  5767. void Expand(uint, bool, bool = false);
  5768. uint FindChild(UIElement) const;
  5769. uint FindItem(UIElement);
  5770. Variant GetAttribute(const String&) const;
  5771. ValueAnimation GetAttributeAnimation(const String&) const;
  5772. float GetAttributeAnimationSpeed(const String&) const;
  5773. float GetAttributeAnimationTime(const String&) const;
  5774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5775. Variant GetAttributeDefault(const String&) const;
  5776. UIElement GetChild(const String&, bool = false) const;
  5777. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5778. Array<UIElement> GetChildren(bool = false) const;
  5779. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5780. UIElement GetElementEventSender() const;
  5781. bool GetInterceptNetworkUpdate(const String&) const;
  5782. Array<UIElement> GetItems() const;
  5783. uint GetNumChildren(bool) const;
  5784. bool HasSubscribedToEvent(Object, const String&);
  5785. bool HasSubscribedToEvent(const String&);
  5786. bool HasTag(const String&) const;
  5787. void InsertChild(uint, UIElement);
  5788. void InsertItem(uint, UIElement, UIElement = null);
  5789. bool IsExpanded(uint) const;
  5790. bool IsInside(IntVector2, bool);
  5791. bool IsInsideCombined(IntVector2, bool);
  5792. bool IsSelected(uint) const;
  5793. bool Load(File, bool = false);
  5794. bool Load(VectorBuffer&, bool = false);
  5795. bool LoadChildXML(XMLFile, XMLFile = null);
  5796. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5797. bool LoadJSON(const JSONValue&, bool = false);
  5798. bool LoadXML(File);
  5799. bool LoadXML(VectorBuffer&);
  5800. bool LoadXML(XMLFile, XMLFile);
  5801. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5802. bool LoadXML(const XMLElement&, bool = false);
  5803. void MarkNetworkUpdate() const;
  5804. void Remove();
  5805. void RemoveAllChildren();
  5806. void RemoveAllItems();
  5807. void RemoveAllTags();
  5808. void RemoveAttributeAnimation(const String&);
  5809. void RemoveChild(UIElement, uint = 0);
  5810. void RemoveChild(uint);
  5811. void RemoveInstanceDefault();
  5812. void RemoveItem(UIElement, uint = 0);
  5813. void RemoveItem(uint);
  5814. void RemoveObjectAnimation();
  5815. void RemoveSelection(uint);
  5816. bool RemoveTag(const String&);
  5817. void ResetDeepEnabled();
  5818. void ResetToDefault();
  5819. bool Save(File) const;
  5820. bool Save(VectorBuffer&) const;
  5821. bool SaveJSON(JSONValue&) const;
  5822. bool SaveXML(File, const String& = "\t");
  5823. bool SaveXML(VectorBuffer&, const String& = "\t");
  5824. bool SaveXML(XMLElement&) const;
  5825. IntVector2 ScreenToElement(const IntVector2&);
  5826. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5827. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5828. void SetAnimationTime(float);
  5829. bool SetAttribute(const String&, const Variant&);
  5830. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5831. void SetAttributeAnimationSpeed(const String&, float);
  5832. void SetAttributeAnimationTime(const String&, float);
  5833. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5834. void SetDeepEnabled(bool);
  5835. void SetEnabledRecursive(bool);
  5836. void SetFixedHeight(int);
  5837. void SetFixedSize(int, int);
  5838. void SetFixedWidth(int);
  5839. void SetInterceptNetworkUpdate(const String&, bool);
  5840. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5841. void SetMaxSize(int, int);
  5842. void SetMinSize(int, int);
  5843. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5844. void SetPosition(int, int);
  5845. void SetScrollBarsVisible(bool, bool);
  5846. void SetSelections(Array<uint>);
  5847. void SetSize(int, int);
  5848. bool SetStyle(const String&, XMLFile = null);
  5849. bool SetStyle(const XMLElement&);
  5850. bool SetStyleAuto(XMLFile = null);
  5851. void SetViewPosition(int, int);
  5852. void ToggleExpand(uint, bool = false);
  5853. void ToggleSelection(uint);
  5854. void UpdateLayout();
  5855. const Variant& GetVar(const StringHash&);
  5856. // Properties:
  5857. bool animationEnabled;
  5858. /* readonly */
  5859. Array<Variant> attributeDefaults;
  5860. /* readonly */
  5861. Array<AttributeInfo> attributeInfos;
  5862. Array<Variant> attributes;
  5863. bool autoDisableChildren;
  5864. float autoDisableThreshold;
  5865. int baseIndent;
  5866. bool bringToBack;
  5867. bool bringToFront;
  5868. /* readonly */
  5869. String category;
  5870. /* readonly */
  5871. IntVector2 childOffset;
  5872. /* readonly */
  5873. Array<UIElement> children;
  5874. bool clearSelectionOnDefocus;
  5875. IntRect clipBorder;
  5876. bool clipChildren;
  5877. /* writeonly */
  5878. Color color;
  5879. /* readonly */
  5880. bool colorGradient;
  5881. Array<Color> colors;
  5882. /* readonly */
  5883. IntRect combinedScreenRect;
  5884. /* readonly */
  5885. UIElement contentElement;
  5886. XMLFile defaultStyle;
  5887. /* readonly */
  5888. float derivedOpacity;
  5889. /* readonly */
  5890. uint dragButtonCombo;
  5891. /* readonly */
  5892. int dragButtonCount;
  5893. uint dragDropMode;
  5894. bool editable;
  5895. bool elementEventSender;
  5896. bool enabled;
  5897. /* readonly */
  5898. bool enabledSelf;
  5899. /* readonly */
  5900. bool fixedHeight;
  5901. /* readonly */
  5902. bool fixedSize;
  5903. /* readonly */
  5904. bool fixedWidth;
  5905. bool focus;
  5906. FocusMode focusMode;
  5907. int height;
  5908. bool hierarchyMode;
  5909. HighlightMode highlightMode;
  5910. HorizontalAlignment horizontalAlignment;
  5911. /* readonly */
  5912. ScrollBar horizontalScrollBar;
  5913. /* readonly */
  5914. bool hovering;
  5915. int indent;
  5916. int indentSpacing;
  5917. /* readonly */
  5918. int indentWidth;
  5919. bool internal;
  5920. /* readonly */
  5921. Array<UIElement> items;
  5922. IntRect layoutBorder;
  5923. Vector2 layoutFlexScale;
  5924. LayoutMode layoutMode;
  5925. int layoutSpacing;
  5926. int maxHeight;
  5927. IntVector2 maxSize;
  5928. int maxWidth;
  5929. int minHeight;
  5930. IntVector2 minSize;
  5931. int minWidth;
  5932. bool multiselect;
  5933. String name;
  5934. /* readonly */
  5935. uint numAllChildren;
  5936. /* readonly */
  5937. uint numAttributes;
  5938. /* readonly */
  5939. uint numChildren;
  5940. /* readonly */
  5941. uint numItems;
  5942. ObjectAnimation objectAnimation;
  5943. float opacity;
  5944. float pageStep;
  5945. UIElement parent;
  5946. IntVector2 position;
  5947. int priority;
  5948. /* readonly */
  5949. int refs;
  5950. /* readonly */
  5951. UIElement root;
  5952. /* readonly */
  5953. IntVector2 screenPosition;
  5954. bool scrollBarsAutoVisible;
  5955. float scrollDeceleration;
  5956. /* readonly */
  5957. BorderImage scrollPanel;
  5958. float scrollSnapEpsilon;
  5959. float scrollStep;
  5960. bool selectOnClickEnd;
  5961. bool selected;
  5962. /* readonly */
  5963. UIElement selectedItem;
  5964. /* readonly */
  5965. Array<UIElement> selectedItems;
  5966. uint selection;
  5967. /* readonly */
  5968. Array<uint> selections;
  5969. IntVector2 size;
  5970. bool sortChildren;
  5971. String style;
  5972. /* readonly */
  5973. Array<String> tags;
  5974. bool temporary;
  5975. TraversalMode traversalMode;
  5976. /* readonly */
  5977. StringHash type;
  5978. /* readonly */
  5979. String typeName;
  5980. bool useDerivedOpacity;
  5981. /* readonly */
  5982. VariantMap vars;
  5983. VerticalAlignment verticalAlignment;
  5984. /* readonly */
  5985. ScrollBar verticalScrollBar;
  5986. IntVector2 viewPosition;
  5987. bool visible;
  5988. /* readonly */
  5989. bool visibleEffective;
  5990. /* readonly */
  5991. int weakRefs;
  5992. int width;
  5993. };
  5994. class Localization
  5995. {
  5996. // Methods:
  5997. String Get(const String&);
  5998. String GetLanguage(int);
  5999. int GetLanguageIndex(const String&);
  6000. bool HasSubscribedToEvent(Object, const String&);
  6001. bool HasSubscribedToEvent(const String&);
  6002. void LoadJSON(const JSONValue&);
  6003. void LoadJSONFile(const String&);
  6004. void Reset();
  6005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6006. void SetLanguage(const String&);
  6007. void SetLanguage(int);
  6008. // Properties:
  6009. /* readonly */
  6010. String category;
  6011. /* readonly */
  6012. String language;
  6013. /* readonly */
  6014. int languageIndex;
  6015. /* readonly */
  6016. int numLanguages;
  6017. /* readonly */
  6018. int refs;
  6019. /* readonly */
  6020. StringHash type;
  6021. /* readonly */
  6022. String typeName;
  6023. /* readonly */
  6024. int weakRefs;
  6025. };
  6026. class Log
  6027. {
  6028. // Methods:
  6029. void Close();
  6030. void Debug(const String&);
  6031. void Error(const String&);
  6032. bool HasSubscribedToEvent(Object, const String&);
  6033. bool HasSubscribedToEvent(const String&);
  6034. void Info(const String&);
  6035. void Open(const String&);
  6036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6037. void Warning(const String&);
  6038. void Write(const String&, bool = false);
  6039. // Properties:
  6040. /* readonly */
  6041. String category;
  6042. /* readonly */
  6043. String lastMessage;
  6044. int level;
  6045. bool quiet;
  6046. /* readonly */
  6047. int refs;
  6048. bool timeStamp;
  6049. /* readonly */
  6050. StringHash type;
  6051. /* readonly */
  6052. String typeName;
  6053. /* readonly */
  6054. int weakRefs;
  6055. };
  6056. class Material
  6057. {
  6058. // Methods:
  6059. Material Clone(const String& = String ( )) const;
  6060. Pass GetPass(uint, const String&);
  6061. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6062. float GetShaderParameterAnimationSpeed(const String&) const;
  6063. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6064. bool HasSubscribedToEvent(Object, const String&);
  6065. bool HasSubscribedToEvent(const String&);
  6066. bool Load(File);
  6067. bool Load(VectorBuffer&);
  6068. bool Load(const JSONValue&);
  6069. bool Load(const XMLElement&);
  6070. void RemoveShaderParameter(const String&);
  6071. bool Save(File) const;
  6072. bool Save(JSONValue&) const;
  6073. bool Save(VectorBuffer&) const;
  6074. bool Save(XMLElement&) const;
  6075. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6076. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6077. void SetShaderParameterAnimationSpeed(const String&, float);
  6078. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6079. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6080. void SetUVTransform(const Vector2&, float, const Vector2&);
  6081. void SetUVTransform(const Vector2&, float, float);
  6082. void SortTechniques();
  6083. // Properties:
  6084. bool alphaToCoverage;
  6085. /* readonly */
  6086. String category;
  6087. CullMode cullMode;
  6088. BiasParameters depthBias;
  6089. FillMode fillMode;
  6090. /* readonly */
  6091. uint memoryUse;
  6092. String name;
  6093. uint numTechniques;
  6094. bool occlusion;
  6095. String pixelShaderDefines;
  6096. /* readonly */
  6097. int refs;
  6098. uint8 renderOrder;
  6099. Scene scene;
  6100. /* readonly */
  6101. Array<String> shaderParameterNames;
  6102. Array<Variant> shaderParameters;
  6103. CullMode shadowCullMode;
  6104. /* readonly */
  6105. Array<TechniqueEntry> techniqueEntries;
  6106. /* readonly */
  6107. Array<Technique> techniques;
  6108. Array<Texture> textures;
  6109. /* readonly */
  6110. StringHash type;
  6111. /* readonly */
  6112. String typeName;
  6113. /* readonly */
  6114. uint useTimer;
  6115. String vertexShaderDefines;
  6116. /* readonly */
  6117. int weakRefs;
  6118. };
  6119. class Matrix2
  6120. {
  6121. // Methods:
  6122. bool Equals(const Matrix2&) const;
  6123. Matrix2 Inverse() const;
  6124. Vector2 Scale() const;
  6125. Matrix2 Scaled(const Vector2&) const;
  6126. void SetScale(const Vector2&);
  6127. void SetScale(float);
  6128. String ToString() const;
  6129. Matrix2 Transpose() const;
  6130. // Properties:
  6131. float m00;
  6132. float m01;
  6133. float m10;
  6134. float m11;
  6135. };
  6136. class Matrix3
  6137. {
  6138. // Methods:
  6139. bool Equals(const Matrix3&) const;
  6140. Matrix3 Inverse() const;
  6141. Vector3 Scale() const;
  6142. Matrix3 Scaled(const Vector3&) const;
  6143. void SetScale(const Vector3&);
  6144. void SetScale(float);
  6145. String ToString() const;
  6146. Matrix3 Transpose() const;
  6147. // Properties:
  6148. float m00;
  6149. float m01;
  6150. float m02;
  6151. float m10;
  6152. float m11;
  6153. float m12;
  6154. float m20;
  6155. float m21;
  6156. float m22;
  6157. };
  6158. class Matrix3x4
  6159. {
  6160. // Methods:
  6161. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6162. bool Equals(const Matrix3x4&) const;
  6163. Matrix3x4 Inverse() const;
  6164. Quaternion Rotation() const;
  6165. Matrix3 RotationMatrix() const;
  6166. Vector3 Scale() const;
  6167. void SetRotation(const Matrix3&);
  6168. void SetScale(const Vector3&);
  6169. void SetScale(float);
  6170. void SetTranslation(const Vector3&);
  6171. Matrix3 ToMatrix3() const;
  6172. Matrix4 ToMatrix4() const;
  6173. String ToString() const;
  6174. Vector3 Translation() const;
  6175. // Properties:
  6176. float m00;
  6177. float m01;
  6178. float m02;
  6179. float m03;
  6180. float m10;
  6181. float m11;
  6182. float m12;
  6183. float m13;
  6184. float m20;
  6185. float m21;
  6186. float m22;
  6187. float m23;
  6188. };
  6189. class Matrix4
  6190. {
  6191. // Methods:
  6192. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6193. bool Equals(const Matrix4&) const;
  6194. Matrix4 Inverse() const;
  6195. Quaternion Rotation() const;
  6196. Matrix3 RotationMatrix() const;
  6197. Vector3 Scale() const;
  6198. void SetRotation(const Matrix3&);
  6199. void SetScale(const Vector3&);
  6200. void SetScale(float);
  6201. void SetTranslation(const Vector3&);
  6202. Matrix3 ToMatrix3() const;
  6203. String ToString() const;
  6204. Vector3 Translation() const;
  6205. Matrix4 Transpose() const;
  6206. // Properties:
  6207. float m00;
  6208. float m01;
  6209. float m02;
  6210. float m03;
  6211. float m10;
  6212. float m11;
  6213. float m12;
  6214. float m13;
  6215. float m20;
  6216. float m21;
  6217. float m22;
  6218. float m23;
  6219. float m30;
  6220. float m31;
  6221. float m32;
  6222. float m33;
  6223. };
  6224. class Menu
  6225. {
  6226. // Methods:
  6227. void AddChild(UIElement);
  6228. void AddTag(const String&);
  6229. void AddTags(const String&, int8 = ';');
  6230. void ApplyAttributes();
  6231. void BringToFront();
  6232. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6233. void DisableLayoutUpdate();
  6234. IntVector2 ElementToScreen(const IntVector2&);
  6235. void EnableLayoutUpdate();
  6236. uint FindChild(UIElement) const;
  6237. Variant GetAttribute(const String&) const;
  6238. ValueAnimation GetAttributeAnimation(const String&) const;
  6239. float GetAttributeAnimationSpeed(const String&) const;
  6240. float GetAttributeAnimationTime(const String&) const;
  6241. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6242. Variant GetAttributeDefault(const String&) const;
  6243. UIElement GetChild(const String&, bool = false) const;
  6244. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6245. Array<UIElement> GetChildren(bool = false) const;
  6246. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6247. UIElement GetElementEventSender() const;
  6248. bool GetInterceptNetworkUpdate(const String&) const;
  6249. uint GetNumChildren(bool) const;
  6250. bool HasSubscribedToEvent(Object, const String&);
  6251. bool HasSubscribedToEvent(const String&);
  6252. bool HasTag(const String&) const;
  6253. void InsertChild(uint, UIElement);
  6254. bool IsInside(IntVector2, bool);
  6255. bool IsInsideCombined(IntVector2, bool);
  6256. bool Load(File, bool = false);
  6257. bool Load(VectorBuffer&, bool = false);
  6258. bool LoadChildXML(XMLFile, XMLFile = null);
  6259. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6260. bool LoadJSON(const JSONValue&, bool = false);
  6261. bool LoadXML(File);
  6262. bool LoadXML(VectorBuffer&);
  6263. bool LoadXML(XMLFile, XMLFile);
  6264. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6265. bool LoadXML(const XMLElement&, bool = false);
  6266. void MarkNetworkUpdate() const;
  6267. void Remove();
  6268. void RemoveAllChildren();
  6269. void RemoveAllTags();
  6270. void RemoveAttributeAnimation(const String&);
  6271. void RemoveChild(UIElement, uint = 0);
  6272. void RemoveChild(uint);
  6273. void RemoveInstanceDefault();
  6274. void RemoveObjectAnimation();
  6275. bool RemoveTag(const String&);
  6276. void ResetDeepEnabled();
  6277. void ResetToDefault();
  6278. bool Save(File) const;
  6279. bool Save(VectorBuffer&) const;
  6280. bool SaveJSON(JSONValue&) const;
  6281. bool SaveXML(File, const String& = "\t");
  6282. bool SaveXML(VectorBuffer&, const String& = "\t");
  6283. bool SaveXML(XMLElement&) const;
  6284. IntVector2 ScreenToElement(const IntVector2&);
  6285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6286. void SetAccelerator(int, int);
  6287. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6288. void SetAnimationTime(float);
  6289. bool SetAttribute(const String&, const Variant&);
  6290. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6291. void SetAttributeAnimationSpeed(const String&, float);
  6292. void SetAttributeAnimationTime(const String&, float);
  6293. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6294. void SetDeepEnabled(bool);
  6295. void SetEnabledRecursive(bool);
  6296. void SetFixedHeight(int);
  6297. void SetFixedSize(int, int);
  6298. void SetFixedWidth(int);
  6299. void SetFullImageRect();
  6300. void SetHoverOffset(int, int);
  6301. void SetInterceptNetworkUpdate(const String&, bool);
  6302. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6303. void SetMaxSize(int, int);
  6304. void SetMinSize(int, int);
  6305. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6306. void SetPopupOffset(int, int);
  6307. void SetPosition(int, int);
  6308. void SetPressedChildOffset(int, int);
  6309. void SetPressedOffset(int, int);
  6310. void SetRepeat(float, float);
  6311. void SetSize(int, int);
  6312. bool SetStyle(const String&, XMLFile = null);
  6313. bool SetStyle(const XMLElement&);
  6314. bool SetStyleAuto(XMLFile = null);
  6315. void UpdateLayout();
  6316. const Variant& GetVar(const StringHash&);
  6317. // Properties:
  6318. /* readonly */
  6319. int acceleratorKey;
  6320. /* readonly */
  6321. int acceleratorQualifiers;
  6322. bool animationEnabled;
  6323. /* readonly */
  6324. Array<Variant> attributeDefaults;
  6325. /* readonly */
  6326. Array<AttributeInfo> attributeInfos;
  6327. Array<Variant> attributes;
  6328. BlendMode blendMode;
  6329. IntRect border;
  6330. bool bringToBack;
  6331. bool bringToFront;
  6332. /* readonly */
  6333. String category;
  6334. /* readonly */
  6335. IntVector2 childOffset;
  6336. /* readonly */
  6337. Array<UIElement> children;
  6338. IntRect clipBorder;
  6339. bool clipChildren;
  6340. /* writeonly */
  6341. Color color;
  6342. /* readonly */
  6343. bool colorGradient;
  6344. Array<Color> colors;
  6345. /* readonly */
  6346. IntRect combinedScreenRect;
  6347. XMLFile defaultStyle;
  6348. /* readonly */
  6349. float derivedOpacity;
  6350. /* readonly */
  6351. uint dragButtonCombo;
  6352. /* readonly */
  6353. int dragButtonCount;
  6354. uint dragDropMode;
  6355. bool editable;
  6356. bool elementEventSender;
  6357. bool enabled;
  6358. /* readonly */
  6359. bool enabledSelf;
  6360. /* readonly */
  6361. bool fixedHeight;
  6362. /* readonly */
  6363. bool fixedSize;
  6364. /* readonly */
  6365. bool fixedWidth;
  6366. bool focus;
  6367. FocusMode focusMode;
  6368. int height;
  6369. HorizontalAlignment horizontalAlignment;
  6370. IntVector2 hoverOffset;
  6371. /* readonly */
  6372. bool hovering;
  6373. IntRect imageBorder;
  6374. IntRect imageRect;
  6375. int indent;
  6376. int indentSpacing;
  6377. /* readonly */
  6378. int indentWidth;
  6379. bool internal;
  6380. IntRect layoutBorder;
  6381. Vector2 layoutFlexScale;
  6382. LayoutMode layoutMode;
  6383. int layoutSpacing;
  6384. int maxHeight;
  6385. IntVector2 maxSize;
  6386. int maxWidth;
  6387. int minHeight;
  6388. IntVector2 minSize;
  6389. int minWidth;
  6390. String name;
  6391. /* readonly */
  6392. uint numAllChildren;
  6393. /* readonly */
  6394. uint numAttributes;
  6395. /* readonly */
  6396. uint numChildren;
  6397. ObjectAnimation objectAnimation;
  6398. float opacity;
  6399. UIElement parent;
  6400. UIElement popup;
  6401. IntVector2 popupOffset;
  6402. IntVector2 position;
  6403. /* readonly */
  6404. bool pressed;
  6405. IntVector2 pressedChildOffset;
  6406. IntVector2 pressedOffset;
  6407. int priority;
  6408. /* readonly */
  6409. int refs;
  6410. float repeatDelay;
  6411. float repeatRate;
  6412. /* readonly */
  6413. UIElement root;
  6414. /* readonly */
  6415. IntVector2 screenPosition;
  6416. bool selected;
  6417. bool showPopup;
  6418. IntVector2 size;
  6419. bool sortChildren;
  6420. String style;
  6421. /* readonly */
  6422. Array<String> tags;
  6423. bool temporary;
  6424. Texture texture;
  6425. bool tiled;
  6426. TraversalMode traversalMode;
  6427. /* readonly */
  6428. StringHash type;
  6429. /* readonly */
  6430. String typeName;
  6431. bool useDerivedOpacity;
  6432. /* readonly */
  6433. VariantMap vars;
  6434. VerticalAlignment verticalAlignment;
  6435. bool visible;
  6436. /* readonly */
  6437. bool visibleEffective;
  6438. /* readonly */
  6439. int weakRefs;
  6440. int width;
  6441. };
  6442. class MessageBox
  6443. {
  6444. // Methods:
  6445. bool HasSubscribedToEvent(Object, const String&);
  6446. bool HasSubscribedToEvent(const String&);
  6447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6448. // Properties:
  6449. /* readonly */
  6450. String category;
  6451. String message;
  6452. /* readonly */
  6453. int refs;
  6454. String title;
  6455. /* readonly */
  6456. StringHash type;
  6457. /* readonly */
  6458. String typeName;
  6459. /* readonly */
  6460. int weakRefs;
  6461. /* readonly */
  6462. UIElement window;
  6463. };
  6464. class Model
  6465. {
  6466. // Methods:
  6467. Model Clone(const String& = String ( )) const;
  6468. Geometry GetGeometry(uint, uint) const;
  6469. bool HasSubscribedToEvent(Object, const String&);
  6470. bool HasSubscribedToEvent(const String&);
  6471. bool Load(File);
  6472. bool Load(VectorBuffer&);
  6473. bool Save(File) const;
  6474. bool Save(VectorBuffer&) const;
  6475. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6476. bool SetGeometry(uint, uint, Geometry);
  6477. // Properties:
  6478. BoundingBox boundingBox;
  6479. /* readonly */
  6480. String category;
  6481. Array<Vector3> geometryCenters;
  6482. /* readonly */
  6483. uint memoryUse;
  6484. String name;
  6485. uint numGeometries;
  6486. Array<uint> numGeometryLodLevels;
  6487. /* readonly */
  6488. uint numMorphs;
  6489. /* readonly */
  6490. int refs;
  6491. /* readonly */
  6492. Skeleton skeleton;
  6493. /* readonly */
  6494. StringHash type;
  6495. /* readonly */
  6496. String typeName;
  6497. /* readonly */
  6498. uint useTimer;
  6499. /* readonly */
  6500. int weakRefs;
  6501. };
  6502. class NamedPipe
  6503. {
  6504. // Methods:
  6505. void Close();
  6506. bool HasSubscribedToEvent(Object, const String&);
  6507. bool HasSubscribedToEvent(const String&);
  6508. bool Open(const String&, bool);
  6509. Array<uint8> Read(uint);
  6510. bool ReadBool();
  6511. BoundingBox ReadBoundingBox();
  6512. int8 ReadByte();
  6513. Color ReadColor();
  6514. double ReadDouble();
  6515. String ReadFileID();
  6516. float ReadFloat();
  6517. int ReadInt();
  6518. int64 ReadInt64();
  6519. IntRect ReadIntRect();
  6520. IntVector2 ReadIntVector2();
  6521. String ReadLine();
  6522. Matrix3 ReadMatrix3();
  6523. Matrix3x4 ReadMatrix3x4();
  6524. Matrix4 ReadMatrix4();
  6525. uint ReadNetID();
  6526. Quaternion ReadPackedQuaternion();
  6527. Vector3 ReadPackedVector3(float);
  6528. Quaternion ReadQuaternion();
  6529. int16 ReadShort();
  6530. String ReadString();
  6531. StringHash ReadStringHash();
  6532. uint8 ReadUByte();
  6533. uint ReadUInt();
  6534. uint64 ReadUInt64();
  6535. uint16 ReadUShort();
  6536. uint ReadVLE();
  6537. Variant ReadVariant();
  6538. VariantMap ReadVariantMap();
  6539. Vector2 ReadVector2();
  6540. Vector3 ReadVector3();
  6541. Vector4 ReadVector4();
  6542. VectorBuffer ReadVectorBuffer(uint);
  6543. uint Seek(uint);
  6544. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6545. uint Write(Array<uint8>);
  6546. bool WriteBool(bool);
  6547. bool WriteBoundingBox(const BoundingBox&);
  6548. bool WriteByte(int8);
  6549. bool WriteColor(const Color&);
  6550. bool WriteDouble(double);
  6551. bool WriteFileID(const String&);
  6552. bool WriteFloat(float);
  6553. bool WriteInt(int);
  6554. bool WriteInt64(int64);
  6555. bool WriteIntRect(const IntRect&);
  6556. bool WriteIntVector2(const IntVector2&);
  6557. bool WriteLine(const String&);
  6558. bool WriteMatrix3(const Matrix3&);
  6559. bool WriteMatrix3x4(const Matrix3x4&);
  6560. bool WriteMatrix4(const Matrix4&);
  6561. bool WriteNetID(uint);
  6562. bool WritePackedQuaternion(const Quaternion&);
  6563. bool WritePackedVector3(const Vector3&, float);
  6564. bool WriteQuaternion(const Quaternion&);
  6565. bool WriteShort(int16);
  6566. bool WriteString(const String&);
  6567. bool WriteStringHash(const StringHash&);
  6568. bool WriteUByte(uint8);
  6569. bool WriteUInt(uint);
  6570. bool WriteUInt64(uint64);
  6571. bool WriteUShort(uint16);
  6572. bool WriteVLE(uint);
  6573. bool WriteVariant(const Variant&);
  6574. bool WriteVariantMap(const VariantMap&);
  6575. bool WriteVector2(const Vector2&);
  6576. bool WriteVector3(const Vector3&);
  6577. bool WriteVector4(const Vector4&);
  6578. bool WriteVectorBuffer(const VectorBuffer&);
  6579. // Properties:
  6580. /* readonly */
  6581. String category;
  6582. /* readonly */
  6583. uint checksum;
  6584. /* readonly */
  6585. bool eof;
  6586. /* readonly */
  6587. String name;
  6588. /* readonly */
  6589. bool open;
  6590. /* readonly */
  6591. uint position;
  6592. /* readonly */
  6593. int refs;
  6594. /* readonly */
  6595. bool server;
  6596. /* readonly */
  6597. uint size;
  6598. /* readonly */
  6599. StringHash type;
  6600. /* readonly */
  6601. String typeName;
  6602. /* readonly */
  6603. int weakRefs;
  6604. };
  6605. class NavArea
  6606. {
  6607. // Methods:
  6608. void ApplyAttributes();
  6609. void DrawDebugGeometry(DebugRenderer, bool);
  6610. Variant GetAttribute(const String&) const;
  6611. ValueAnimation GetAttributeAnimation(const String&) const;
  6612. float GetAttributeAnimationSpeed(const String&) const;
  6613. float GetAttributeAnimationTime(const String&) const;
  6614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6615. Variant GetAttributeDefault(const String&) const;
  6616. bool GetInterceptNetworkUpdate(const String&) const;
  6617. bool HasSubscribedToEvent(Object, const String&);
  6618. bool HasSubscribedToEvent(const String&);
  6619. bool Load(File, bool = false);
  6620. bool Load(VectorBuffer&, bool = false);
  6621. bool LoadJSON(const JSONValue&, bool = false);
  6622. bool LoadXML(const XMLElement&, bool = false);
  6623. void MarkNetworkUpdate() const;
  6624. void Remove();
  6625. void RemoveAttributeAnimation(const String&);
  6626. void RemoveInstanceDefault();
  6627. void RemoveObjectAnimation();
  6628. void ResetToDefault();
  6629. bool Save(File) const;
  6630. bool Save(VectorBuffer&) const;
  6631. bool SaveJSON(JSONValue&) const;
  6632. bool SaveXML(XMLElement&) const;
  6633. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6634. void SetAnimationTime(float);
  6635. bool SetAttribute(const String&, const Variant&);
  6636. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6637. void SetAttributeAnimationSpeed(const String&, float);
  6638. void SetAttributeAnimationTime(const String&, float);
  6639. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6640. void SetInterceptNetworkUpdate(const String&, bool);
  6641. // Properties:
  6642. bool animationEnabled;
  6643. uint areaID;
  6644. /* readonly */
  6645. Array<Variant> attributeDefaults;
  6646. /* readonly */
  6647. Array<AttributeInfo> attributeInfos;
  6648. Array<Variant> attributes;
  6649. BoundingBox boundingBox;
  6650. /* readonly */
  6651. String category;
  6652. bool enabled;
  6653. /* readonly */
  6654. bool enabledEffective;
  6655. /* readonly */
  6656. uint id;
  6657. /* readonly */
  6658. Node node;
  6659. /* readonly */
  6660. uint numAttributes;
  6661. ObjectAnimation objectAnimation;
  6662. /* readonly */
  6663. int refs;
  6664. bool temporary;
  6665. /* readonly */
  6666. StringHash type;
  6667. /* readonly */
  6668. String typeName;
  6669. /* readonly */
  6670. int weakRefs;
  6671. /* readonly */
  6672. BoundingBox worldBoundingBox;
  6673. };
  6674. class Navigable
  6675. {
  6676. // Methods:
  6677. void ApplyAttributes();
  6678. void DrawDebugGeometry(DebugRenderer, bool);
  6679. Variant GetAttribute(const String&) const;
  6680. ValueAnimation GetAttributeAnimation(const String&) const;
  6681. float GetAttributeAnimationSpeed(const String&) const;
  6682. float GetAttributeAnimationTime(const String&) const;
  6683. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6684. Variant GetAttributeDefault(const String&) const;
  6685. bool GetInterceptNetworkUpdate(const String&) const;
  6686. bool HasSubscribedToEvent(Object, const String&);
  6687. bool HasSubscribedToEvent(const String&);
  6688. bool Load(File, bool = false);
  6689. bool Load(VectorBuffer&, bool = false);
  6690. bool LoadJSON(const JSONValue&, bool = false);
  6691. bool LoadXML(const XMLElement&, bool = false);
  6692. void MarkNetworkUpdate() const;
  6693. void Remove();
  6694. void RemoveAttributeAnimation(const String&);
  6695. void RemoveInstanceDefault();
  6696. void RemoveObjectAnimation();
  6697. void ResetToDefault();
  6698. bool Save(File) const;
  6699. bool Save(VectorBuffer&) const;
  6700. bool SaveJSON(JSONValue&) const;
  6701. bool SaveXML(XMLElement&) const;
  6702. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6703. void SetAnimationTime(float);
  6704. bool SetAttribute(const String&, const Variant&);
  6705. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6706. void SetAttributeAnimationSpeed(const String&, float);
  6707. void SetAttributeAnimationTime(const String&, float);
  6708. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6709. void SetInterceptNetworkUpdate(const String&, bool);
  6710. // Properties:
  6711. bool animationEnabled;
  6712. /* readonly */
  6713. Array<Variant> attributeDefaults;
  6714. /* readonly */
  6715. Array<AttributeInfo> attributeInfos;
  6716. Array<Variant> attributes;
  6717. /* readonly */
  6718. String category;
  6719. bool enabled;
  6720. /* readonly */
  6721. bool enabledEffective;
  6722. /* readonly */
  6723. uint id;
  6724. /* readonly */
  6725. Node node;
  6726. /* readonly */
  6727. uint numAttributes;
  6728. ObjectAnimation objectAnimation;
  6729. bool recursive;
  6730. /* readonly */
  6731. int refs;
  6732. bool temporary;
  6733. /* readonly */
  6734. StringHash type;
  6735. /* readonly */
  6736. String typeName;
  6737. /* readonly */
  6738. int weakRefs;
  6739. };
  6740. class NavigationMesh
  6741. {
  6742. // Methods:
  6743. void ApplyAttributes();
  6744. bool Build();
  6745. bool Build(const BoundingBox&);
  6746. void DrawDebugGeometry(DebugRenderer, bool);
  6747. void DrawDebugGeometry(bool);
  6748. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6749. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6750. float GetAreaCost(uint) const;
  6751. Variant GetAttribute(const String&) const;
  6752. ValueAnimation GetAttributeAnimation(const String&) const;
  6753. float GetAttributeAnimationSpeed(const String&) const;
  6754. float GetAttributeAnimationTime(const String&) const;
  6755. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6756. Variant GetAttributeDefault(const String&) const;
  6757. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6758. bool GetInterceptNetworkUpdate(const String&) const;
  6759. Vector3 GetRandomPoint();
  6760. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6761. bool HasSubscribedToEvent(Object, const String&);
  6762. bool HasSubscribedToEvent(const String&);
  6763. bool Load(File, bool = false);
  6764. bool Load(VectorBuffer&, bool = false);
  6765. bool LoadJSON(const JSONValue&, bool = false);
  6766. bool LoadXML(const XMLElement&, bool = false);
  6767. void MarkNetworkUpdate() const;
  6768. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6769. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6770. void Remove();
  6771. void RemoveAttributeAnimation(const String&);
  6772. void RemoveInstanceDefault();
  6773. void RemoveObjectAnimation();
  6774. void ResetToDefault();
  6775. bool Save(File) const;
  6776. bool Save(VectorBuffer&) const;
  6777. bool SaveJSON(JSONValue&) const;
  6778. bool SaveXML(XMLElement&) const;
  6779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6780. void SetAnimationTime(float);
  6781. void SetAreaCost(uint, float);
  6782. bool SetAttribute(const String&, const Variant&);
  6783. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6784. void SetAttributeAnimationSpeed(const String&, float);
  6785. void SetAttributeAnimationTime(const String&, float);
  6786. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6787. void SetInterceptNetworkUpdate(const String&, bool);
  6788. // Properties:
  6789. float agentHeight;
  6790. float agentMaxClimb;
  6791. float agentMaxSlope;
  6792. float agentRadius;
  6793. bool animationEnabled;
  6794. /* readonly */
  6795. Array<Variant> attributeDefaults;
  6796. /* readonly */
  6797. Array<AttributeInfo> attributeInfos;
  6798. Array<Variant> attributes;
  6799. /* readonly */
  6800. BoundingBox boundingBox;
  6801. /* readonly */
  6802. String category;
  6803. float cellHeight;
  6804. float cellSize;
  6805. float detailSampleDistance;
  6806. float detailSampleMaxError;
  6807. bool drawNavAreas;
  6808. bool drawOffMeshConnections;
  6809. float edgeMaxError;
  6810. float edgeMaxLength;
  6811. bool enabled;
  6812. /* readonly */
  6813. bool enabledEffective;
  6814. /* readonly */
  6815. uint id;
  6816. /* readonly */
  6817. bool initialized;
  6818. /* readonly */
  6819. Node node;
  6820. /* readonly */
  6821. uint numAttributes;
  6822. /* readonly */
  6823. IntVector2 numTiles;
  6824. ObjectAnimation objectAnimation;
  6825. Vector3 padding;
  6826. NavmeshPartitionType partitionType;
  6827. /* readonly */
  6828. int refs;
  6829. float regionMergeSize;
  6830. float regionMinSize;
  6831. bool temporary;
  6832. int tileSize;
  6833. /* readonly */
  6834. StringHash type;
  6835. /* readonly */
  6836. String typeName;
  6837. /* readonly */
  6838. int weakRefs;
  6839. /* readonly */
  6840. BoundingBox worldBoundingBox;
  6841. };
  6842. class Network
  6843. {
  6844. // Methods:
  6845. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6846. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6847. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6848. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6849. bool CheckRemoteEvent(const String&) const;
  6850. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6851. void Disconnect(int = 0);
  6852. bool HasSubscribedToEvent(Object, const String&);
  6853. bool HasSubscribedToEvent(const String&);
  6854. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6855. void RegisterRemoteEvent(const String&) const;
  6856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6857. void SendPackageToClients(Scene, PackageFile);
  6858. bool StartServer(uint16);
  6859. void StopServer();
  6860. void UnregisterAllRemoteEvents();
  6861. void UnregisterRemoteEvent(const String&) const;
  6862. // Properties:
  6863. /* readonly */
  6864. String category;
  6865. /* readonly */
  6866. Array<Connection> clientConnections;
  6867. String packageCacheDir;
  6868. /* readonly */
  6869. int refs;
  6870. /* readonly */
  6871. Connection serverConnection;
  6872. /* readonly */
  6873. bool serverRunning;
  6874. int simulatedLatency;
  6875. float simulatedPacketLoss;
  6876. /* readonly */
  6877. StringHash type;
  6878. /* readonly */
  6879. String typeName;
  6880. int updateFps;
  6881. /* readonly */
  6882. int weakRefs;
  6883. };
  6884. class NetworkPriority
  6885. {
  6886. // Methods:
  6887. void ApplyAttributes();
  6888. void DrawDebugGeometry(DebugRenderer, bool);
  6889. Variant GetAttribute(const String&) const;
  6890. ValueAnimation GetAttributeAnimation(const String&) const;
  6891. float GetAttributeAnimationSpeed(const String&) const;
  6892. float GetAttributeAnimationTime(const String&) const;
  6893. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6894. Variant GetAttributeDefault(const String&) const;
  6895. bool GetInterceptNetworkUpdate(const String&) const;
  6896. bool HasSubscribedToEvent(Object, const String&);
  6897. bool HasSubscribedToEvent(const String&);
  6898. bool Load(File, bool = false);
  6899. bool Load(VectorBuffer&, bool = false);
  6900. bool LoadJSON(const JSONValue&, bool = false);
  6901. bool LoadXML(const XMLElement&, bool = false);
  6902. void MarkNetworkUpdate() const;
  6903. void Remove();
  6904. void RemoveAttributeAnimation(const String&);
  6905. void RemoveInstanceDefault();
  6906. void RemoveObjectAnimation();
  6907. void ResetToDefault();
  6908. bool Save(File) const;
  6909. bool Save(VectorBuffer&) const;
  6910. bool SaveJSON(JSONValue&) const;
  6911. bool SaveXML(XMLElement&) const;
  6912. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6913. void SetAnimationTime(float);
  6914. bool SetAttribute(const String&, const Variant&);
  6915. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6916. void SetAttributeAnimationSpeed(const String&, float);
  6917. void SetAttributeAnimationTime(const String&, float);
  6918. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6919. void SetInterceptNetworkUpdate(const String&, bool);
  6920. // Properties:
  6921. bool alwaysUpdateOwner;
  6922. bool animationEnabled;
  6923. /* readonly */
  6924. Array<Variant> attributeDefaults;
  6925. /* readonly */
  6926. Array<AttributeInfo> attributeInfos;
  6927. Array<Variant> attributes;
  6928. float basePriority;
  6929. /* readonly */
  6930. String category;
  6931. float distanceFactor;
  6932. bool enabled;
  6933. /* readonly */
  6934. bool enabledEffective;
  6935. /* readonly */
  6936. uint id;
  6937. float minPriority;
  6938. /* readonly */
  6939. Node node;
  6940. /* readonly */
  6941. uint numAttributes;
  6942. ObjectAnimation objectAnimation;
  6943. /* readonly */
  6944. int refs;
  6945. bool temporary;
  6946. /* readonly */
  6947. StringHash type;
  6948. /* readonly */
  6949. String typeName;
  6950. /* readonly */
  6951. int weakRefs;
  6952. };
  6953. class Node
  6954. {
  6955. // Methods:
  6956. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6957. void AddTag(const String&);
  6958. void AddTags(const String&, int8 = ';');
  6959. void ApplyAttributes();
  6960. Node Clone(CreateMode = REPLICATED);
  6961. Component CloneComponent(Component, CreateMode, uint = 0);
  6962. Component CloneComponent(Component, uint = 0);
  6963. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6964. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6965. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6966. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6967. Variant GetAttribute(const String&) const;
  6968. ValueAnimation GetAttributeAnimation(const String&) const;
  6969. float GetAttributeAnimationSpeed(const String&) const;
  6970. float GetAttributeAnimationTime(const String&) const;
  6971. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6972. Variant GetAttributeDefault(const String&) const;
  6973. Node GetChild(const String&, bool = false) const;
  6974. Array<Node> GetChildren(bool = false) const;
  6975. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6976. Array<Node> GetChildrenWithScript(bool = false) const;
  6977. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6978. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6979. Component GetComponent(const String&, bool = false) const;
  6980. Array<Component> GetComponents() const;
  6981. Array<Component> GetComponents(const String&, bool = false) const;
  6982. bool GetInterceptNetworkUpdate(const String&) const;
  6983. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6984. Component GetParentComponent(const String&, bool = false) const;
  6985. ScriptObject GetScriptObject() const;
  6986. ScriptObject GetScriptObject(const String&) const;
  6987. bool HasComponent(const String&) const;
  6988. bool HasSubscribedToEvent(Object, const String&);
  6989. bool HasSubscribedToEvent(const String&);
  6990. bool HasTag(const String&);
  6991. bool Load(File, bool = false);
  6992. bool Load(VectorBuffer&, bool = false);
  6993. bool LoadJSON(const JSONValue&, bool = false);
  6994. bool LoadXML(const XMLElement&, bool = false);
  6995. Vector3 LocalToWorld(const Vector3&) const;
  6996. Vector3 LocalToWorld(const Vector4&) const;
  6997. Vector2 LocalToWorld2D(const Vector2&) const;
  6998. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6999. void MarkDirty();
  7000. void MarkNetworkUpdate() const;
  7001. void Pitch(float, TransformSpace = TS_LOCAL);
  7002. void Remove();
  7003. void RemoveAllChildren();
  7004. void RemoveAllComponents();
  7005. void RemoveAllTags();
  7006. void RemoveAttributeAnimation(const String&);
  7007. void RemoveChild(Node);
  7008. void RemoveChildren(bool, bool, bool);
  7009. void RemoveComponent(Component);
  7010. void RemoveComponent(const String&);
  7011. void RemoveComponents(bool, bool);
  7012. void RemoveComponents(const String&);
  7013. void RemoveInstanceDefault();
  7014. void RemoveObjectAnimation();
  7015. bool RemoveTag(const String&);
  7016. void ReorderComponent(Component, uint);
  7017. void ResetDeepEnabled();
  7018. void ResetToDefault();
  7019. void Roll(float, TransformSpace = TS_LOCAL);
  7020. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7021. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7022. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7023. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7024. bool Save(File) const;
  7025. bool Save(VectorBuffer&) const;
  7026. bool SaveJSON(File);
  7027. bool SaveJSON(JSONValue&) const;
  7028. bool SaveJSON(VectorBuffer&);
  7029. bool SaveXML(File, const String& = "\t");
  7030. bool SaveXML(VectorBuffer&, const String& = "\t");
  7031. bool SaveXML(XMLElement&) const;
  7032. void Scale(const Vector3&);
  7033. void Scale(float);
  7034. void Scale2D(const Vector2&);
  7035. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7036. void SetAnimationTime(float);
  7037. bool SetAttribute(const String&, const Variant&);
  7038. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7039. void SetAttributeAnimationSpeed(const String&, float);
  7040. void SetAttributeAnimationTime(const String&, float);
  7041. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7042. void SetDeepEnabled(bool);
  7043. void SetEnabledRecursive(bool);
  7044. void SetInterceptNetworkUpdate(const String&, bool);
  7045. void SetPosition2D(float, float);
  7046. void SetScale(float);
  7047. void SetScale2D(float, float);
  7048. void SetTransform(const Vector3&, const Quaternion&);
  7049. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7050. void SetTransform(const Vector3&, const Quaternion&, float);
  7051. void SetTransform2D(const Vector2&, float);
  7052. void SetTransform2D(const Vector2&, float, const Vector2&);
  7053. void SetTransform2D(const Vector2&, float, float);
  7054. void SetWorldTransform(const Vector3&, const Quaternion&);
  7055. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7056. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7057. void SetWorldTransform2D(const Vector2&, float);
  7058. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7059. void SetWorldTransform2D(const Vector2&, float, float);
  7060. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7061. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7062. Vector3 WorldToLocal(const Vector3&) const;
  7063. Vector3 WorldToLocal(const Vector4&) const;
  7064. Vector2 WorldToLocal2D(const Vector2&) const;
  7065. void Yaw(float, TransformSpace = TS_LOCAL);
  7066. // Properties:
  7067. bool animationEnabled;
  7068. /* readonly */
  7069. Array<Variant> attributeDefaults;
  7070. /* readonly */
  7071. Array<AttributeInfo> attributeInfos;
  7072. Array<Variant> attributes;
  7073. /* readonly */
  7074. String category;
  7075. /* readonly */
  7076. Array<Node> children;
  7077. /* readonly */
  7078. Array<Component> components;
  7079. Vector3 direction;
  7080. bool enabled;
  7081. /* readonly */
  7082. bool enabledSelf;
  7083. uint id;
  7084. String name;
  7085. /* readonly */
  7086. uint numAllChildren;
  7087. /* readonly */
  7088. uint numAttributes;
  7089. /* readonly */
  7090. uint numChildren;
  7091. /* readonly */
  7092. uint numComponents;
  7093. ObjectAnimation objectAnimation;
  7094. Connection owner;
  7095. Node parent;
  7096. Vector3 position;
  7097. Vector2 position2D;
  7098. /* readonly */
  7099. int refs;
  7100. /* readonly */
  7101. Vector3 right;
  7102. Quaternion rotation;
  7103. float rotation2D;
  7104. Vector3 scale;
  7105. Vector2 scale2D;
  7106. /* readonly */
  7107. Scene scene;
  7108. /* readonly */
  7109. ScriptObject scriptObject;
  7110. /* readonly */
  7111. Array<String> tags;
  7112. bool temporary;
  7113. /* readonly */
  7114. Matrix3x4 transform;
  7115. /* readonly */
  7116. StringHash type;
  7117. /* readonly */
  7118. String typeName;
  7119. /* readonly */
  7120. Vector3 up;
  7121. /* readonly */
  7122. VariantMap vars;
  7123. /* readonly */
  7124. int weakRefs;
  7125. Vector3 worldDirection;
  7126. Vector3 worldPosition;
  7127. Vector2 worldPosition2D;
  7128. /* readonly */
  7129. Vector3 worldRight;
  7130. Quaternion worldRotation;
  7131. float worldRotation2D;
  7132. Vector3 worldScale;
  7133. Vector2 worldScale2D;
  7134. /* readonly */
  7135. Matrix3x4 worldTransform;
  7136. /* readonly */
  7137. Vector3 worldUp;
  7138. };
  7139. class Object
  7140. {
  7141. // Methods:
  7142. bool HasSubscribedToEvent(Object, const String&);
  7143. bool HasSubscribedToEvent(const String&);
  7144. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7145. // Properties:
  7146. /* readonly */
  7147. String category;
  7148. /* readonly */
  7149. int refs;
  7150. /* readonly */
  7151. StringHash type;
  7152. /* readonly */
  7153. String typeName;
  7154. /* readonly */
  7155. int weakRefs;
  7156. };
  7157. class ObjectAnimation
  7158. {
  7159. // Methods:
  7160. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7161. ValueAnimation GetAttributeAnimation(const String&) const;
  7162. float GetAttributeAnimationSpeed(const String&) const;
  7163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7164. bool HasSubscribedToEvent(Object, const String&);
  7165. bool HasSubscribedToEvent(const String&);
  7166. bool Load(File);
  7167. bool Load(VectorBuffer&);
  7168. void RemoveAttributeAnimation(ValueAnimation);
  7169. void RemoveAttributeAnimation(const String&);
  7170. bool Save(File) const;
  7171. bool Save(VectorBuffer&) const;
  7172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7173. // Properties:
  7174. /* readonly */
  7175. Array<Variant> attributeAnimations;
  7176. /* readonly */
  7177. String category;
  7178. /* readonly */
  7179. uint memoryUse;
  7180. String name;
  7181. /* readonly */
  7182. int refs;
  7183. /* readonly */
  7184. Array<Variant> speeds;
  7185. /* readonly */
  7186. StringHash type;
  7187. /* readonly */
  7188. String typeName;
  7189. /* readonly */
  7190. uint useTimer;
  7191. /* readonly */
  7192. int weakRefs;
  7193. /* readonly */
  7194. Array<Variant> wrapModes;
  7195. };
  7196. class Obstacle
  7197. {
  7198. // Methods:
  7199. void ApplyAttributes();
  7200. void DrawDebugGeometry(DebugRenderer, bool);
  7201. void DrawDebugGeometry(bool);
  7202. Variant GetAttribute(const String&) const;
  7203. ValueAnimation GetAttributeAnimation(const String&) const;
  7204. float GetAttributeAnimationSpeed(const String&) const;
  7205. float GetAttributeAnimationTime(const String&) const;
  7206. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7207. Variant GetAttributeDefault(const String&) const;
  7208. bool GetInterceptNetworkUpdate(const String&) const;
  7209. bool HasSubscribedToEvent(Object, const String&);
  7210. bool HasSubscribedToEvent(const String&);
  7211. bool Load(File, bool = false);
  7212. bool Load(VectorBuffer&, bool = false);
  7213. bool LoadJSON(const JSONValue&, bool = false);
  7214. bool LoadXML(const XMLElement&, bool = false);
  7215. void MarkNetworkUpdate() const;
  7216. void Remove();
  7217. void RemoveAttributeAnimation(const String&);
  7218. void RemoveInstanceDefault();
  7219. void RemoveObjectAnimation();
  7220. void ResetToDefault();
  7221. bool Save(File) const;
  7222. bool Save(VectorBuffer&) const;
  7223. bool SaveJSON(JSONValue&) const;
  7224. bool SaveXML(XMLElement&) const;
  7225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7226. void SetAnimationTime(float);
  7227. bool SetAttribute(const String&, const Variant&);
  7228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7229. void SetAttributeAnimationSpeed(const String&, float);
  7230. void SetAttributeAnimationTime(const String&, float);
  7231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7232. void SetInterceptNetworkUpdate(const String&, bool);
  7233. // Properties:
  7234. bool animationEnabled;
  7235. /* readonly */
  7236. Array<Variant> attributeDefaults;
  7237. /* readonly */
  7238. Array<AttributeInfo> attributeInfos;
  7239. Array<Variant> attributes;
  7240. /* readonly */
  7241. String category;
  7242. bool enabled;
  7243. /* readonly */
  7244. bool enabledEffective;
  7245. float height;
  7246. /* readonly */
  7247. uint id;
  7248. /* readonly */
  7249. Node node;
  7250. /* readonly */
  7251. uint numAttributes;
  7252. ObjectAnimation objectAnimation;
  7253. /* readonly */
  7254. uint obstacleId;
  7255. float radius;
  7256. /* readonly */
  7257. int refs;
  7258. bool temporary;
  7259. /* readonly */
  7260. StringHash type;
  7261. /* readonly */
  7262. String typeName;
  7263. /* readonly */
  7264. int weakRefs;
  7265. };
  7266. class Octree
  7267. {
  7268. // Methods:
  7269. void AddManualDrawable(Drawable);
  7270. void ApplyAttributes();
  7271. void DrawDebugGeometry(DebugRenderer, bool);
  7272. void DrawDebugGeometry(bool) const;
  7273. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7274. Variant GetAttribute(const String&) const;
  7275. ValueAnimation GetAttributeAnimation(const String&) const;
  7276. float GetAttributeAnimationSpeed(const String&) const;
  7277. float GetAttributeAnimationTime(const String&) const;
  7278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7279. Variant GetAttributeDefault(const String&) const;
  7280. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7281. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7282. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7283. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7284. bool GetInterceptNetworkUpdate(const String&) const;
  7285. bool HasSubscribedToEvent(Object, const String&);
  7286. bool HasSubscribedToEvent(const String&);
  7287. bool Load(File, bool = false);
  7288. bool Load(VectorBuffer&, bool = false);
  7289. bool LoadJSON(const JSONValue&, bool = false);
  7290. bool LoadXML(const XMLElement&, bool = false);
  7291. void MarkNetworkUpdate() const;
  7292. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7293. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7294. void Remove();
  7295. void RemoveAttributeAnimation(const String&);
  7296. void RemoveInstanceDefault();
  7297. void RemoveManualDrawable(Drawable);
  7298. void RemoveObjectAnimation();
  7299. void ResetToDefault();
  7300. bool Save(File) const;
  7301. bool Save(VectorBuffer&) const;
  7302. bool SaveJSON(JSONValue&) const;
  7303. bool SaveXML(XMLElement&) const;
  7304. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7305. void SetAnimationTime(float);
  7306. bool SetAttribute(const String&, const Variant&);
  7307. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7308. void SetAttributeAnimationSpeed(const String&, float);
  7309. void SetAttributeAnimationTime(const String&, float);
  7310. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7311. void SetInterceptNetworkUpdate(const String&, bool);
  7312. void SetSize(const BoundingBox&, uint);
  7313. // Properties:
  7314. bool animationEnabled;
  7315. /* readonly */
  7316. Array<Variant> attributeDefaults;
  7317. /* readonly */
  7318. Array<AttributeInfo> attributeInfos;
  7319. Array<Variant> attributes;
  7320. /* readonly */
  7321. String category;
  7322. bool enabled;
  7323. /* readonly */
  7324. bool enabledEffective;
  7325. /* readonly */
  7326. uint id;
  7327. /* readonly */
  7328. Node node;
  7329. /* readonly */
  7330. uint numAttributes;
  7331. /* readonly */
  7332. uint numLevels;
  7333. ObjectAnimation objectAnimation;
  7334. /* readonly */
  7335. int refs;
  7336. bool temporary;
  7337. /* readonly */
  7338. StringHash type;
  7339. /* readonly */
  7340. String typeName;
  7341. /* readonly */
  7342. int weakRefs;
  7343. /* readonly */
  7344. BoundingBox worldBoundingBox;
  7345. };
  7346. class OffMeshConnection
  7347. {
  7348. // Methods:
  7349. void ApplyAttributes();
  7350. void DrawDebugGeometry(DebugRenderer, bool);
  7351. Variant GetAttribute(const String&) const;
  7352. ValueAnimation GetAttributeAnimation(const String&) const;
  7353. float GetAttributeAnimationSpeed(const String&) const;
  7354. float GetAttributeAnimationTime(const String&) const;
  7355. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7356. Variant GetAttributeDefault(const String&) const;
  7357. bool GetInterceptNetworkUpdate(const String&) const;
  7358. bool HasSubscribedToEvent(Object, const String&);
  7359. bool HasSubscribedToEvent(const String&);
  7360. bool Load(File, bool = false);
  7361. bool Load(VectorBuffer&, bool = false);
  7362. bool LoadJSON(const JSONValue&, bool = false);
  7363. bool LoadXML(const XMLElement&, bool = false);
  7364. void MarkNetworkUpdate() const;
  7365. void Remove();
  7366. void RemoveAttributeAnimation(const String&);
  7367. void RemoveInstanceDefault();
  7368. void RemoveObjectAnimation();
  7369. void ResetToDefault();
  7370. bool Save(File) const;
  7371. bool Save(VectorBuffer&) const;
  7372. bool SaveJSON(JSONValue&) const;
  7373. bool SaveXML(XMLElement&) const;
  7374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7375. void SetAnimationTime(float);
  7376. bool SetAttribute(const String&, const Variant&);
  7377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7378. void SetAttributeAnimationSpeed(const String&, float);
  7379. void SetAttributeAnimationTime(const String&, float);
  7380. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7381. void SetInterceptNetworkUpdate(const String&, bool);
  7382. // Properties:
  7383. bool animationEnabled;
  7384. uint areaID;
  7385. /* readonly */
  7386. Array<Variant> attributeDefaults;
  7387. /* readonly */
  7388. Array<AttributeInfo> attributeInfos;
  7389. Array<Variant> attributes;
  7390. bool bidirectional;
  7391. /* readonly */
  7392. String category;
  7393. bool enabled;
  7394. /* readonly */
  7395. bool enabledEffective;
  7396. Node endPoint;
  7397. /* readonly */
  7398. uint id;
  7399. uint mask;
  7400. /* readonly */
  7401. Node node;
  7402. /* readonly */
  7403. uint numAttributes;
  7404. ObjectAnimation objectAnimation;
  7405. float radius;
  7406. /* readonly */
  7407. int refs;
  7408. bool temporary;
  7409. /* readonly */
  7410. StringHash type;
  7411. /* readonly */
  7412. String typeName;
  7413. /* readonly */
  7414. int weakRefs;
  7415. };
  7416. class PackageFile
  7417. {
  7418. // Methods:
  7419. bool Exists(const String&) const;
  7420. Array<String> GetEntryNames() const;
  7421. bool HasSubscribedToEvent(Object, const String&);
  7422. bool HasSubscribedToEvent(const String&);
  7423. bool Open(const String&, uint = 0) const;
  7424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7425. bool compressed() const;
  7426. // Properties:
  7427. /* readonly */
  7428. String category;
  7429. /* readonly */
  7430. uint checksum;
  7431. /* readonly */
  7432. String name;
  7433. /* readonly */
  7434. uint numFiles;
  7435. /* readonly */
  7436. int refs;
  7437. /* readonly */
  7438. uint totalDataSize;
  7439. /* readonly */
  7440. uint totalSize;
  7441. /* readonly */
  7442. StringHash type;
  7443. /* readonly */
  7444. String typeName;
  7445. /* readonly */
  7446. int weakRefs;
  7447. };
  7448. class ParticleEffect
  7449. {
  7450. // Methods:
  7451. void AddColorFrame(ColorFrame);
  7452. void AddColorTime(Color&, float);
  7453. void AddTextureFrame(TextureFrame);
  7454. void AddTextureTime(Rect&, float);
  7455. ParticleEffect Clone(const String& = String ( )) const;
  7456. ColorFrame GetColorFrame(uint) const;
  7457. TextureFrame GetTextureFrame(uint) const;
  7458. bool HasSubscribedToEvent(Object, const String&);
  7459. bool HasSubscribedToEvent(const String&);
  7460. bool Load(File);
  7461. bool Load(VectorBuffer&);
  7462. bool Load(const XMLElement&);
  7463. void RemoveColorFrame(uint);
  7464. void RemoveTextureFrame(uint);
  7465. bool Save(File) const;
  7466. bool Save(VectorBuffer&) const;
  7467. bool Save(XMLElement&) const;
  7468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7469. void SetColorFrame(uint, ColorFrame);
  7470. void SetTextureFrame(uint, TextureFrame);
  7471. void SortColorFrames();
  7472. void SortTextureFrames();
  7473. // Properties:
  7474. float activeTime;
  7475. float animationLodBias;
  7476. /* readonly */
  7477. String category;
  7478. Vector3 constantForce;
  7479. float dampingForce;
  7480. Vector3 emitterSize;
  7481. EmitterType emitterType;
  7482. FaceCameraMode faceCameraMode;
  7483. bool fixedScreenSize;
  7484. float inactiveTime;
  7485. Material material;
  7486. Vector3 maxDirection;
  7487. float maxEmissionRate;
  7488. Vector2 maxParticleSize;
  7489. float maxRotation;
  7490. float maxRotationSpeed;
  7491. float maxTimeToLive;
  7492. float maxVelocity;
  7493. /* readonly */
  7494. uint memoryUse;
  7495. Vector3 minDirection;
  7496. float minEmissionRate;
  7497. Vector2 minParticleSize;
  7498. float minRotation;
  7499. float minRotationSpeed;
  7500. float minTimeToLive;
  7501. float minVelocity;
  7502. String name;
  7503. uint numColorFrames;
  7504. uint numParticles;
  7505. uint numTextureFrames;
  7506. /* readonly */
  7507. int refs;
  7508. bool relative;
  7509. bool scaled;
  7510. float sizeAdd;
  7511. float sizeMul;
  7512. bool sorted;
  7513. /* readonly */
  7514. StringHash type;
  7515. /* readonly */
  7516. String typeName;
  7517. bool updateInvisible;
  7518. /* readonly */
  7519. uint useTimer;
  7520. /* readonly */
  7521. int weakRefs;
  7522. };
  7523. class ParticleEffect2D
  7524. {
  7525. // Methods:
  7526. ParticleEffect2D Clone(const String& = String ( )) const;
  7527. bool HasSubscribedToEvent(Object, const String&);
  7528. bool HasSubscribedToEvent(const String&);
  7529. bool Load(File);
  7530. bool Load(VectorBuffer&);
  7531. bool Save(File) const;
  7532. bool Save(VectorBuffer&) const;
  7533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7534. // Properties:
  7535. /* readonly */
  7536. String category;
  7537. /* readonly */
  7538. uint memoryUse;
  7539. String name;
  7540. /* readonly */
  7541. int refs;
  7542. /* readonly */
  7543. StringHash type;
  7544. /* readonly */
  7545. String typeName;
  7546. /* readonly */
  7547. uint useTimer;
  7548. /* readonly */
  7549. int weakRefs;
  7550. };
  7551. class ParticleEmitter
  7552. {
  7553. // Methods:
  7554. void ApplyAttributes();
  7555. void ApplyEffect();
  7556. void Commit();
  7557. void DrawDebugGeometry(DebugRenderer, bool);
  7558. Variant GetAttribute(const String&) const;
  7559. ValueAnimation GetAttributeAnimation(const String&) const;
  7560. float GetAttributeAnimationSpeed(const String&) const;
  7561. float GetAttributeAnimationTime(const String&) const;
  7562. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7563. Variant GetAttributeDefault(const String&) const;
  7564. bool GetInterceptNetworkUpdate(const String&) const;
  7565. bool HasSubscribedToEvent(Object, const String&);
  7566. bool HasSubscribedToEvent(const String&);
  7567. bool IsInView(Camera) const;
  7568. bool Load(File, bool = false);
  7569. bool Load(VectorBuffer&, bool = false);
  7570. bool LoadJSON(const JSONValue&, bool = false);
  7571. bool LoadXML(const XMLElement&, bool = false);
  7572. void MarkNetworkUpdate() const;
  7573. void Remove();
  7574. void RemoveAllParticles();
  7575. void RemoveAttributeAnimation(const String&);
  7576. void RemoveInstanceDefault();
  7577. void RemoveObjectAnimation();
  7578. void Reset();
  7579. void ResetEmissionTimer();
  7580. void ResetToDefault();
  7581. bool Save(File) const;
  7582. bool Save(VectorBuffer&) const;
  7583. bool SaveJSON(JSONValue&) const;
  7584. bool SaveXML(XMLElement&) const;
  7585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7586. void SetAnimationTime(float);
  7587. bool SetAttribute(const String&, const Variant&);
  7588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7589. void SetAttributeAnimationSpeed(const String&, float);
  7590. void SetAttributeAnimationTime(const String&, float);
  7591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7592. void SetInterceptNetworkUpdate(const String&, bool);
  7593. // Properties:
  7594. bool animationEnabled;
  7595. float animationLodBias;
  7596. /* readonly */
  7597. Array<Variant> attributeDefaults;
  7598. /* readonly */
  7599. Array<AttributeInfo> attributeInfos;
  7600. Array<Variant> attributes;
  7601. AutoRemoveMode autoRemoveMode;
  7602. /* readonly */
  7603. Array<Billboard> billboards;
  7604. /* readonly */
  7605. BoundingBox boundingBox;
  7606. bool castShadows;
  7607. /* readonly */
  7608. String category;
  7609. float drawDistance;
  7610. ParticleEffect effect;
  7611. bool emitting;
  7612. bool enabled;
  7613. /* readonly */
  7614. bool enabledEffective;
  7615. FaceCameraMode faceCameraMode;
  7616. bool fixedScreenSize;
  7617. /* readonly */
  7618. uint id;
  7619. /* readonly */
  7620. bool inView;
  7621. uint lightMask;
  7622. float lodBias;
  7623. Material material;
  7624. uint maxLights;
  7625. /* readonly */
  7626. Node node;
  7627. /* readonly */
  7628. uint numAttributes;
  7629. uint numBillboards;
  7630. uint numParticles;
  7631. ObjectAnimation objectAnimation;
  7632. bool occludee;
  7633. bool occluder;
  7634. /* readonly */
  7635. int refs;
  7636. bool relative;
  7637. bool scaled;
  7638. bool serializeParticles;
  7639. float shadowDistance;
  7640. uint shadowMask;
  7641. bool sorted;
  7642. bool temporary;
  7643. /* readonly */
  7644. StringHash type;
  7645. /* readonly */
  7646. String typeName;
  7647. uint viewMask;
  7648. /* readonly */
  7649. int weakRefs;
  7650. /* readonly */
  7651. BoundingBox worldBoundingBox;
  7652. /* readonly */
  7653. Zone zone;
  7654. uint zoneMask;
  7655. };
  7656. class ParticleEmitter2D
  7657. {
  7658. // Methods:
  7659. void ApplyAttributes();
  7660. void DrawDebugGeometry(DebugRenderer, bool);
  7661. Variant GetAttribute(const String&) const;
  7662. ValueAnimation GetAttributeAnimation(const String&) const;
  7663. float GetAttributeAnimationSpeed(const String&) const;
  7664. float GetAttributeAnimationTime(const String&) const;
  7665. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7666. Variant GetAttributeDefault(const String&) const;
  7667. bool GetInterceptNetworkUpdate(const String&) const;
  7668. bool HasSubscribedToEvent(Object, const String&);
  7669. bool HasSubscribedToEvent(const String&);
  7670. bool IsInView(Camera) const;
  7671. bool Load(File, bool = false);
  7672. bool Load(VectorBuffer&, bool = false);
  7673. bool LoadJSON(const JSONValue&, bool = false);
  7674. bool LoadXML(const XMLElement&, bool = false);
  7675. void MarkNetworkUpdate() const;
  7676. void Remove();
  7677. void RemoveAttributeAnimation(const String&);
  7678. void RemoveInstanceDefault();
  7679. void RemoveObjectAnimation();
  7680. void ResetToDefault();
  7681. bool Save(File) const;
  7682. bool Save(VectorBuffer&) const;
  7683. bool SaveJSON(JSONValue&) const;
  7684. bool SaveXML(XMLElement&) const;
  7685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7686. void SetAnimationTime(float);
  7687. bool SetAttribute(const String&, const Variant&);
  7688. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7689. void SetAttributeAnimationSpeed(const String&, float);
  7690. void SetAttributeAnimationTime(const String&, float);
  7691. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7692. void SetInterceptNetworkUpdate(const String&, bool);
  7693. // Properties:
  7694. bool animationEnabled;
  7695. /* readonly */
  7696. Array<Variant> attributeDefaults;
  7697. /* readonly */
  7698. Array<AttributeInfo> attributeInfos;
  7699. Array<Variant> attributes;
  7700. BlendMode blendMode;
  7701. /* readonly */
  7702. BoundingBox boundingBox;
  7703. bool castShadows;
  7704. /* readonly */
  7705. String category;
  7706. float drawDistance;
  7707. ParticleEffect2D effect;
  7708. bool enabled;
  7709. /* readonly */
  7710. bool enabledEffective;
  7711. /* readonly */
  7712. uint id;
  7713. /* readonly */
  7714. bool inView;
  7715. int layer;
  7716. uint lightMask;
  7717. float lodBias;
  7718. uint maxLights;
  7719. /* readonly */
  7720. Node node;
  7721. /* readonly */
  7722. uint numAttributes;
  7723. ObjectAnimation objectAnimation;
  7724. bool occludee;
  7725. bool occluder;
  7726. int orderInLayer;
  7727. /* readonly */
  7728. int refs;
  7729. float shadowDistance;
  7730. uint shadowMask;
  7731. Sprite2D sprite;
  7732. bool temporary;
  7733. /* readonly */
  7734. StringHash type;
  7735. /* readonly */
  7736. String typeName;
  7737. uint viewMask;
  7738. /* readonly */
  7739. int weakRefs;
  7740. /* readonly */
  7741. BoundingBox worldBoundingBox;
  7742. uint zoneMask;
  7743. };
  7744. class Pass
  7745. {
  7746. // Properties:
  7747. bool alphaToCoverage;
  7748. BlendMode blendMode;
  7749. CullMode cullMode;
  7750. CompareMode depthTestMode;
  7751. bool depthWrite;
  7752. bool desktop;
  7753. PassLightingMode lightingMode;
  7754. String pixelShader;
  7755. String pixelShaderDefineExcludes;
  7756. String pixelShaderDefines;
  7757. /* readonly */
  7758. int refs;
  7759. String vertexShader;
  7760. String vertexShaderDefineExcludes;
  7761. String vertexShaderDefines;
  7762. /* readonly */
  7763. int weakRefs;
  7764. };
  7765. class PhysicsRaycastResult
  7766. {
  7767. // Properties:
  7768. /* readonly */
  7769. RigidBody body;
  7770. float distance;
  7771. float hitFraction;
  7772. Vector3 normal;
  7773. Vector3 position;
  7774. };
  7775. class PhysicsRaycastResult2D
  7776. {
  7777. // Properties:
  7778. /* readonly */
  7779. RigidBody2D body;
  7780. float distance;
  7781. Vector2 normal;
  7782. Vector2 position;
  7783. };
  7784. class PhysicsWorld
  7785. {
  7786. // Methods:
  7787. void ApplyAttributes();
  7788. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7789. void DrawDebugGeometry(DebugRenderer, bool);
  7790. void DrawDebugGeometry(bool);
  7791. Variant GetAttribute(const String&) const;
  7792. ValueAnimation GetAttributeAnimation(const String&) const;
  7793. float GetAttributeAnimationSpeed(const String&) const;
  7794. float GetAttributeAnimationTime(const String&) const;
  7795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7796. Variant GetAttributeDefault(const String&) const;
  7797. Array<RigidBody> GetCollidingBodies(RigidBody);
  7798. bool GetInterceptNetworkUpdate(const String&) const;
  7799. Array<RigidBody> GetRigidBodies(RigidBody);
  7800. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7801. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7802. bool HasSubscribedToEvent(Object, const String&);
  7803. bool HasSubscribedToEvent(const String&);
  7804. bool Load(File, bool = false);
  7805. bool Load(VectorBuffer&, bool = false);
  7806. bool LoadJSON(const JSONValue&, bool = false);
  7807. bool LoadXML(const XMLElement&, bool = false);
  7808. void MarkNetworkUpdate() const;
  7809. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7810. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7811. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7812. void Remove();
  7813. void RemoveAttributeAnimation(const String&);
  7814. void RemoveCachedGeometry(Model);
  7815. void RemoveInstanceDefault();
  7816. void RemoveObjectAnimation();
  7817. void ResetToDefault();
  7818. bool Save(File) const;
  7819. bool Save(VectorBuffer&) const;
  7820. bool SaveJSON(JSONValue&) const;
  7821. bool SaveXML(XMLElement&) const;
  7822. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7823. void SetAnimationTime(float);
  7824. bool SetAttribute(const String&, const Variant&);
  7825. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7826. void SetAttributeAnimationSpeed(const String&, float);
  7827. void SetAttributeAnimationTime(const String&, float);
  7828. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7829. void SetInterceptNetworkUpdate(const String&, bool);
  7830. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7831. void Update(float);
  7832. void UpdateCollisions();
  7833. // Properties:
  7834. bool animationEnabled;
  7835. /* readonly */
  7836. Array<Variant> attributeDefaults;
  7837. /* readonly */
  7838. Array<AttributeInfo> attributeInfos;
  7839. Array<Variant> attributes;
  7840. /* readonly */
  7841. String category;
  7842. bool enabled;
  7843. /* readonly */
  7844. bool enabledEffective;
  7845. int fps;
  7846. Vector3 gravity;
  7847. /* readonly */
  7848. uint id;
  7849. bool internalEdge;
  7850. bool interpolation;
  7851. int maxSubSteps;
  7852. /* readonly */
  7853. Node node;
  7854. /* readonly */
  7855. uint numAttributes;
  7856. int numIterations;
  7857. ObjectAnimation objectAnimation;
  7858. /* readonly */
  7859. int refs;
  7860. bool splitImpulse;
  7861. bool temporary;
  7862. /* readonly */
  7863. StringHash type;
  7864. /* readonly */
  7865. String typeName;
  7866. bool updateEnabled;
  7867. /* readonly */
  7868. int weakRefs;
  7869. };
  7870. class PhysicsWorld2D
  7871. {
  7872. // Methods:
  7873. void ApplyAttributes();
  7874. void DrawDebugGeometry() const;
  7875. void DrawDebugGeometry(DebugRenderer, bool);
  7876. Variant GetAttribute(const String&) const;
  7877. ValueAnimation GetAttributeAnimation(const String&) const;
  7878. float GetAttributeAnimationSpeed(const String&) const;
  7879. float GetAttributeAnimationTime(const String&) const;
  7880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7881. Variant GetAttributeDefault(const String&) const;
  7882. bool GetInterceptNetworkUpdate(const String&) const;
  7883. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7884. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7885. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7886. bool HasSubscribedToEvent(Object, const String&);
  7887. bool HasSubscribedToEvent(const String&);
  7888. bool Load(File, bool = false);
  7889. bool Load(VectorBuffer&, bool = false);
  7890. bool LoadJSON(const JSONValue&, bool = false);
  7891. bool LoadXML(const XMLElement&, bool = false);
  7892. void MarkNetworkUpdate() const;
  7893. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7894. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7895. void Remove();
  7896. void RemoveAttributeAnimation(const String&);
  7897. void RemoveInstanceDefault();
  7898. void RemoveObjectAnimation();
  7899. void ResetToDefault();
  7900. bool Save(File) const;
  7901. bool Save(VectorBuffer&) const;
  7902. bool SaveJSON(JSONValue&) const;
  7903. bool SaveXML(XMLElement&) const;
  7904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7905. void SetAnimationTime(float);
  7906. bool SetAttribute(const String&, const Variant&);
  7907. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7908. void SetAttributeAnimationSpeed(const String&, float);
  7909. void SetAttributeAnimationTime(const String&, float);
  7910. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7911. void SetInterceptNetworkUpdate(const String&, bool);
  7912. // Properties:
  7913. bool allowSleeping;
  7914. bool animationEnabled;
  7915. /* readonly */
  7916. Array<Variant> attributeDefaults;
  7917. /* readonly */
  7918. Array<AttributeInfo> attributeInfos;
  7919. Array<Variant> attributes;
  7920. bool autoClearForces;
  7921. /* readonly */
  7922. String category;
  7923. bool continuousPhysics;
  7924. bool drawAabb;
  7925. bool drawCenterOfMass;
  7926. bool drawJoint;
  7927. bool drawPair;
  7928. bool drawShape;
  7929. bool enabled;
  7930. /* readonly */
  7931. bool enabledEffective;
  7932. Vector2 gravity;
  7933. /* readonly */
  7934. uint id;
  7935. /* readonly */
  7936. Node node;
  7937. /* readonly */
  7938. uint numAttributes;
  7939. ObjectAnimation objectAnimation;
  7940. uint positionIterations;
  7941. /* readonly */
  7942. int refs;
  7943. bool subStepping;
  7944. bool temporary;
  7945. /* readonly */
  7946. StringHash type;
  7947. /* readonly */
  7948. String typeName;
  7949. bool updateEnabled;
  7950. uint velocityIterations;
  7951. bool warmStarting;
  7952. /* readonly */
  7953. int weakRefs;
  7954. };
  7955. class Plane
  7956. {
  7957. // Methods:
  7958. void Define(const Vector3&, const Vector3&);
  7959. void Define(const Vector3&, const Vector3&, const Vector3&);
  7960. void Define(const Vector4&);
  7961. float Distance(const Vector3&) const;
  7962. Vector3 Project(const Vector3&) const;
  7963. Vector3 Reflect(const Vector3&) const;
  7964. Vector4 ToVector4() const;
  7965. void Transform(const Matrix3&);
  7966. void Transform(const Matrix3x4&);
  7967. void Transform(const Matrix4&);
  7968. Plane Transformed(const Matrix3&) const;
  7969. Plane Transformed(const Matrix3x4&) const;
  7970. Plane Transformed(const Matrix4&) const;
  7971. // Properties:
  7972. Vector3 absNormal;
  7973. float d;
  7974. Vector3 normal;
  7975. /* readonly */
  7976. Matrix3x4 reflectionMatrix;
  7977. };
  7978. class Polyhedron
  7979. {
  7980. // Methods:
  7981. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7982. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7983. void AddFace(const Array<Vector3>);
  7984. void Clear();
  7985. void Clip(const BoundingBox&);
  7986. void Clip(const Frustum&);
  7987. void Define(const BoundingBox&);
  7988. void Define(const Frustum&);
  7989. void Transform(const Matrix3&);
  7990. void Transform(const Matrix3x4&);
  7991. Polyhedron Transformed(const Matrix3&) const;
  7992. Polyhedron Transformed(const Matrix3x4&) const;
  7993. // Properties:
  7994. /* readonly */
  7995. Array<Array<Vector3>> face;
  7996. /* readonly */
  7997. uint numFaces;
  7998. };
  7999. class PropertySet2D
  8000. {
  8001. // Methods:
  8002. bool HasProperty(const String&) const;
  8003. const String& GetProperty(const String&) const;
  8004. // Properties:
  8005. /* readonly */
  8006. int refs;
  8007. /* readonly */
  8008. int weakRefs;
  8009. };
  8010. class Quaternion
  8011. {
  8012. // Methods:
  8013. Quaternion Conjugate() const;
  8014. float DotProduct(const Quaternion&) const;
  8015. bool Equals(const Quaternion&) const;
  8016. void FromAngleAxis(float, const Vector3&);
  8017. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8018. void FromEulerAngles(float, float, float);
  8019. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8020. void FromRotationMatrix(const Matrix3&);
  8021. void FromRotationTo(const Vector3&, const Vector3&);
  8022. Quaternion Inverse() const;
  8023. bool IsNaN() const;
  8024. float LengthSquared() const;
  8025. Quaternion Nlerp(Quaternion, float, bool) const;
  8026. void Normalize();
  8027. Quaternion Normalized() const;
  8028. Quaternion Slerp(Quaternion, float) const;
  8029. String ToString() const;
  8030. // Properties:
  8031. /* readonly */
  8032. Vector3 eulerAngles;
  8033. /* readonly */
  8034. float pitch;
  8035. /* readonly */
  8036. float roll;
  8037. /* readonly */
  8038. Matrix3 rotationMatrix;
  8039. float w;
  8040. float x;
  8041. float y;
  8042. /* readonly */
  8043. float yaw;
  8044. float z;
  8045. };
  8046. class Ray
  8047. {
  8048. // Methods:
  8049. Vector3 ClosestPoint(const Ray&) const;
  8050. void Define(const Vector3&, const Vector3&);
  8051. float Distance(const Vector3&) const;
  8052. float HitDistance(const BoundingBox&) const;
  8053. float HitDistance(const Frustum&, bool = true) const;
  8054. float HitDistance(const Plane&) const;
  8055. float HitDistance(const Sphere&) const;
  8056. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8057. Vector3 Project(const Vector3&) const;
  8058. Ray Transformed(const Matrix3x4&) const;
  8059. // Properties:
  8060. Vector3 direction;
  8061. Vector3 origin;
  8062. };
  8063. class RayQueryResult
  8064. {
  8065. // Properties:
  8066. float distance;
  8067. /* readonly */
  8068. Drawable drawable;
  8069. /* readonly */
  8070. Node node;
  8071. Vector3 normal;
  8072. Vector3 position;
  8073. uint subObject;
  8074. Vector2 textureUV;
  8075. };
  8076. class Rect
  8077. {
  8078. // Methods:
  8079. void Clear();
  8080. void Clip(const Rect&);
  8081. void Define(const Vector2&);
  8082. void Define(const Vector2&, const Vector2&);
  8083. bool Defined() const;
  8084. bool Equals(const Rect&) const;
  8085. Intersection IsInside(const Vector2&) const;
  8086. void Merge(const Rect&);
  8087. void Merge(const Vector2&);
  8088. Vector4 ToVector4() const;
  8089. // Properties:
  8090. float bottom;
  8091. /* readonly */
  8092. Vector2 center;
  8093. /* readonly */
  8094. Vector2 halfSize;
  8095. float left;
  8096. Vector2 max;
  8097. Vector2 min;
  8098. float right;
  8099. /* readonly */
  8100. Vector2 size;
  8101. float top;
  8102. };
  8103. class RefCounted
  8104. {
  8105. // Properties:
  8106. /* readonly */
  8107. int refs;
  8108. /* readonly */
  8109. int weakRefs;
  8110. };
  8111. class RenderPath
  8112. {
  8113. // Methods:
  8114. void AddCommand(const RenderPathCommand&);
  8115. void AddRenderTarget(const RenderTargetInfo&);
  8116. bool Append(XMLFile);
  8117. RenderPath Clone();
  8118. void InsertCommand(uint, const RenderPathCommand&);
  8119. bool Load(XMLFile);
  8120. void RemoveCommand(uint);
  8121. void RemoveCommands(const String&);
  8122. void RemoveRenderTarget(const String&);
  8123. void RemoveRenderTarget(uint);
  8124. void RemoveRenderTargts(const String&);
  8125. void SetEnabled(const String&, bool);
  8126. void ToggleEnabled(const String&);
  8127. // Properties:
  8128. Array<RenderPathCommand> commands;
  8129. /* readonly */
  8130. uint numCommands;
  8131. /* readonly */
  8132. uint numRenderTargets;
  8133. /* readonly */
  8134. int refs;
  8135. Array<RenderTargetInfo> renderTargets;
  8136. Array<Variant> shaderParameters;
  8137. /* readonly */
  8138. int weakRefs;
  8139. };
  8140. class RenderPathCommand
  8141. {
  8142. // Methods:
  8143. void RemoveShaderParameter(const String&);
  8144. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8145. // Properties:
  8146. BlendMode blendMode;
  8147. Color clearColor;
  8148. float clearDepth;
  8149. uint clearFlags;
  8150. uint clearStencil;
  8151. String depthStencilName;
  8152. bool enabled;
  8153. String eventName;
  8154. bool markToStencil;
  8155. String metadata;
  8156. uint numOutputs;
  8157. Array<CubeMapFace> outputFaces;
  8158. Array<String> outputNames;
  8159. String pass;
  8160. String pixelShaderDefines;
  8161. String pixelShaderName;
  8162. Array<Variant> shaderParameters;
  8163. RenderCommandSortMode sortMode;
  8164. String tag;
  8165. Array<String> textureNames;
  8166. RenderCommandType type;
  8167. bool useFogColor;
  8168. bool useLitBase;
  8169. bool vertexLights;
  8170. String vertexShaderDefines;
  8171. String vertexShaderName;
  8172. };
  8173. class RenderSurface
  8174. {
  8175. // Methods:
  8176. void QueueUpdate();
  8177. // Properties:
  8178. /* readonly */
  8179. int height;
  8180. RenderSurface linkedDepthStencil;
  8181. RenderSurface linkedRenderTarget;
  8182. uint numViewports;
  8183. /* readonly */
  8184. Texture parentTexture;
  8185. /* readonly */
  8186. bool resolveDirty;
  8187. RenderSurfaceUpdateMode updateMode;
  8188. /* readonly */
  8189. TextureUsage usage;
  8190. Array<Viewport> viewports;
  8191. /* readonly */
  8192. int width;
  8193. };
  8194. class RenderTargetInfo
  8195. {
  8196. // Properties:
  8197. bool autoResolve;
  8198. bool cubemap;
  8199. bool enabled;
  8200. bool filtered;
  8201. uint format;
  8202. int multiSample;
  8203. String name;
  8204. bool persistent;
  8205. bool sRGB;
  8206. Vector2 size;
  8207. RenderTargetSizeMode sizeMode;
  8208. String tag;
  8209. };
  8210. class Renderer
  8211. {
  8212. // Methods:
  8213. void DrawDebugGeometry(bool) const;
  8214. bool HasSubscribedToEvent(Object, const String&);
  8215. bool HasSubscribedToEvent(const String&);
  8216. void ReloadShaders() const;
  8217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8218. void SetDefaultRenderPath(XMLFile);
  8219. void SetVSMShadowParameters(float, float);
  8220. // Properties:
  8221. /* readonly */
  8222. String category;
  8223. /* readonly */
  8224. Material defaultLightRamp;
  8225. /* readonly */
  8226. Material defaultLightSpot;
  8227. /* readonly */
  8228. Material defaultMaterial;
  8229. RenderPath defaultRenderPath;
  8230. Technique defaultTechnique;
  8231. /* readonly */
  8232. Zone defaultZone;
  8233. bool drawShadows;
  8234. bool dynamicInstancing;
  8235. bool hdrRendering;
  8236. int materialQuality;
  8237. int maxOccluderTriangles;
  8238. int maxShadowMaps;
  8239. int maxSortedInstances;
  8240. int minInstances;
  8241. float mobileNormalOffsetMul;
  8242. float mobileShadowBiasAdd;
  8243. float mobileShadowBiasMul;
  8244. /* readonly */
  8245. uint numBatches;
  8246. int numExtraInstancingBufferElements;
  8247. /* readonly */
  8248. Array<uint> numGeometries;
  8249. /* readonly */
  8250. Array<uint> numLights;
  8251. /* readonly */
  8252. Array<uint> numOccluders;
  8253. /* readonly */
  8254. uint numPrimitives;
  8255. /* readonly */
  8256. Array<uint> numShadowMaps;
  8257. uint numViewports;
  8258. /* readonly */
  8259. uint numViews;
  8260. float occluderSizeThreshold;
  8261. int occlusionBufferSize;
  8262. /* readonly */
  8263. int refs;
  8264. bool reuseShadowMaps;
  8265. int shadowMapSize;
  8266. ShadowQuality shadowQuality;
  8267. float shadowSoftness;
  8268. bool specularLighting;
  8269. int textureAnisotropy;
  8270. TextureFilterMode textureFilterMode;
  8271. int textureQuality;
  8272. bool threadedOcclusion;
  8273. /* readonly */
  8274. StringHash type;
  8275. /* readonly */
  8276. String typeName;
  8277. Array<Viewport> viewports;
  8278. int vsmMultiSample;
  8279. Vector2 vsmShadowParameters;
  8280. /* readonly */
  8281. int weakRefs;
  8282. };
  8283. class Resource
  8284. {
  8285. // Methods:
  8286. bool HasSubscribedToEvent(Object, const String&);
  8287. bool HasSubscribedToEvent(const String&);
  8288. bool Load(File);
  8289. bool Load(VectorBuffer&);
  8290. bool Save(File) const;
  8291. bool Save(VectorBuffer&) const;
  8292. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8293. // Properties:
  8294. /* readonly */
  8295. String category;
  8296. /* readonly */
  8297. uint memoryUse;
  8298. String name;
  8299. /* readonly */
  8300. int refs;
  8301. /* readonly */
  8302. StringHash type;
  8303. /* readonly */
  8304. String typeName;
  8305. /* readonly */
  8306. uint useTimer;
  8307. /* readonly */
  8308. int weakRefs;
  8309. };
  8310. class ResourceCache
  8311. {
  8312. // Methods:
  8313. bool AddManualResource(Resource);
  8314. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8315. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8316. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8317. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8318. bool Exists(const String&) const;
  8319. Resource GetExistingResource(StringHash, const String&);
  8320. Resource GetExistingResource(const String&, const String&);
  8321. File GetFile(const String&);
  8322. String GetPreferredResourceDir(const String&) const;
  8323. Resource GetResource(StringHash, const String&, bool = true);
  8324. Resource GetResource(const String&, const String&, bool = true);
  8325. String GetResourceFileName(const String&) const;
  8326. bool HasSubscribedToEvent(Object, const String&);
  8327. bool HasSubscribedToEvent(const String&);
  8328. void ReleaseAllResources(bool = false);
  8329. void ReleaseResource(const String&, const String&, bool = false);
  8330. void ReleaseResources(StringHash, bool = false);
  8331. void ReleaseResources(const String&, bool = false);
  8332. void ReleaseResources(const String&, const String&, bool = false);
  8333. bool ReloadResource(Resource);
  8334. void ReloadResourceWithDependencies(const String&);
  8335. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8336. void RemovePackageFile(const String&, bool = true, bool = false);
  8337. void RemoveResourceDir(const String&);
  8338. String SanitateResourceDirName(const String&) const;
  8339. String SanitateResourceName(const String&) const;
  8340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8341. // Properties:
  8342. bool autoReloadResources;
  8343. /* readonly */
  8344. String category;
  8345. int finishBackgroundResourcesMs;
  8346. Array<uint64> memoryBudget;
  8347. /* readonly */
  8348. Array<uint64> memoryUse;
  8349. /* readonly */
  8350. uint numBackgroundLoadResources;
  8351. /* readonly */
  8352. Array<PackageFile> packageFiles;
  8353. /* readonly */
  8354. int refs;
  8355. /* readonly */
  8356. Array<String> resourceDirs;
  8357. bool returnFailedResources;
  8358. /* readonly */
  8359. bool seachPackagesFirst;
  8360. /* writeonly */
  8361. bool searchPackagesFirst;
  8362. /* readonly */
  8363. uint64 totalMemoryUse;
  8364. /* readonly */
  8365. StringHash type;
  8366. /* readonly */
  8367. String typeName;
  8368. /* readonly */
  8369. int weakRefs;
  8370. };
  8371. class ResourceRef
  8372. {
  8373. // Properties:
  8374. String name;
  8375. StringHash type;
  8376. };
  8377. class ResourceRefList
  8378. {
  8379. // Methods:
  8380. void Resize(uint);
  8381. // Properties:
  8382. /* readonly */
  8383. bool empty;
  8384. /* readonly */
  8385. uint length;
  8386. Array<String> names;
  8387. StringHash type;
  8388. };
  8389. class RibbonTrail
  8390. {
  8391. // Methods:
  8392. void ApplyAttributes();
  8393. void Commit();
  8394. void DrawDebugGeometry(DebugRenderer, bool);
  8395. Variant GetAttribute(const String&) const;
  8396. ValueAnimation GetAttributeAnimation(const String&) const;
  8397. float GetAttributeAnimationSpeed(const String&) const;
  8398. float GetAttributeAnimationTime(const String&) const;
  8399. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8400. Variant GetAttributeDefault(const String&) const;
  8401. bool GetInterceptNetworkUpdate(const String&) const;
  8402. bool HasSubscribedToEvent(Object, const String&);
  8403. bool HasSubscribedToEvent(const String&);
  8404. bool IsInView(Camera) const;
  8405. bool Load(File, bool = false);
  8406. bool Load(VectorBuffer&, bool = false);
  8407. bool LoadJSON(const JSONValue&, bool = false);
  8408. bool LoadXML(const XMLElement&, bool = false);
  8409. void MarkNetworkUpdate() const;
  8410. void Remove();
  8411. void RemoveAttributeAnimation(const String&);
  8412. void RemoveInstanceDefault();
  8413. void RemoveObjectAnimation();
  8414. void ResetToDefault();
  8415. bool Save(File) const;
  8416. bool Save(VectorBuffer&) const;
  8417. bool SaveJSON(JSONValue&) const;
  8418. bool SaveXML(XMLElement&) const;
  8419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8420. void SetAnimationTime(float);
  8421. bool SetAttribute(const String&, const Variant&);
  8422. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8423. void SetAttributeAnimationSpeed(const String&, float);
  8424. void SetAttributeAnimationTime(const String&, float);
  8425. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8426. void SetInterceptNetworkUpdate(const String&, bool);
  8427. // Properties:
  8428. bool animationEnabled;
  8429. float animationLodBias;
  8430. /* readonly */
  8431. Array<Variant> attributeDefaults;
  8432. /* readonly */
  8433. Array<AttributeInfo> attributeInfos;
  8434. Array<Variant> attributes;
  8435. /* readonly */
  8436. BoundingBox boundingBox;
  8437. bool castShadows;
  8438. /* readonly */
  8439. String category;
  8440. float drawDistance;
  8441. bool emitting;
  8442. bool enabled;
  8443. /* readonly */
  8444. bool enabledEffective;
  8445. Color endColor;
  8446. float endScale;
  8447. /* readonly */
  8448. uint id;
  8449. /* readonly */
  8450. bool inView;
  8451. float lifetime;
  8452. uint lightMask;
  8453. float lodBias;
  8454. Material material;
  8455. uint maxLights;
  8456. /* readonly */
  8457. Node node;
  8458. /* readonly */
  8459. uint numAttributes;
  8460. ObjectAnimation objectAnimation;
  8461. bool occludee;
  8462. bool occluder;
  8463. /* readonly */
  8464. int refs;
  8465. float shadowDistance;
  8466. uint shadowMask;
  8467. bool sorted;
  8468. Color startColor;
  8469. float startScale;
  8470. uint tailColumn;
  8471. bool temporary;
  8472. TrailType trailType;
  8473. /* readonly */
  8474. StringHash type;
  8475. /* readonly */
  8476. String typeName;
  8477. bool updateInvisible;
  8478. float vertexDistance;
  8479. uint viewMask;
  8480. /* readonly */
  8481. int weakRefs;
  8482. float width;
  8483. /* readonly */
  8484. BoundingBox worldBoundingBox;
  8485. /* readonly */
  8486. Zone zone;
  8487. uint zoneMask;
  8488. };
  8489. class RigidBody
  8490. {
  8491. // Methods:
  8492. void Activate();
  8493. void ApplyAttributes();
  8494. void ApplyForce(const Vector3&);
  8495. void ApplyForce(const Vector3&, const Vector3&);
  8496. void ApplyImpulse(const Vector3&);
  8497. void ApplyImpulse(const Vector3&, const Vector3&);
  8498. void ApplyTorque(const Vector3&);
  8499. void ApplyTorqueImpulse(const Vector3&);
  8500. void DisableMassUpdate();
  8501. void DrawDebugGeometry(DebugRenderer, bool);
  8502. void EnableMassUpdate();
  8503. Variant GetAttribute(const String&) const;
  8504. ValueAnimation GetAttributeAnimation(const String&) const;
  8505. float GetAttributeAnimationSpeed(const String&) const;
  8506. float GetAttributeAnimationTime(const String&) const;
  8507. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8508. Variant GetAttributeDefault(const String&) const;
  8509. bool GetInterceptNetworkUpdate(const String&) const;
  8510. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8511. bool HasSubscribedToEvent(Object, const String&);
  8512. bool HasSubscribedToEvent(const String&);
  8513. bool Load(File, bool = false);
  8514. bool Load(VectorBuffer&, bool = false);
  8515. bool LoadJSON(const JSONValue&, bool = false);
  8516. bool LoadXML(const XMLElement&, bool = false);
  8517. void MarkNetworkUpdate() const;
  8518. void ReAddBodyToWorld();
  8519. void Remove();
  8520. void RemoveAttributeAnimation(const String&);
  8521. void RemoveInstanceDefault();
  8522. void RemoveObjectAnimation();
  8523. void ResetForces();
  8524. void ResetToDefault();
  8525. bool Save(File) const;
  8526. bool Save(VectorBuffer&) const;
  8527. bool SaveJSON(JSONValue&) const;
  8528. bool SaveXML(XMLElement&) const;
  8529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8530. void SetAnimationTime(float);
  8531. bool SetAttribute(const String&, const Variant&);
  8532. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8533. void SetAttributeAnimationSpeed(const String&, float);
  8534. void SetAttributeAnimationTime(const String&, float);
  8535. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8536. void SetCollisionLayerAndMask(uint, uint);
  8537. void SetInterceptNetworkUpdate(const String&, bool);
  8538. void SetTransform(const Vector3&, const Quaternion&);
  8539. // Properties:
  8540. /* readonly */
  8541. bool active;
  8542. float angularDamping;
  8543. Vector3 angularFactor;
  8544. float angularRestThreshold;
  8545. Vector3 angularVelocity;
  8546. bool animationEnabled;
  8547. Vector3 anisotropicFriction;
  8548. /* readonly */
  8549. Array<Variant> attributeDefaults;
  8550. /* readonly */
  8551. Array<AttributeInfo> attributeInfos;
  8552. Array<Variant> attributes;
  8553. /* readonly */
  8554. String category;
  8555. float ccdMotionThreshold;
  8556. float ccdRadius;
  8557. /* readonly */
  8558. Vector3 centerOfMass;
  8559. /* readonly */
  8560. Array<RigidBody> collidingBodies;
  8561. CollisionEventMode collisionEventMode;
  8562. uint collisionLayer;
  8563. uint collisionMask;
  8564. float contactProcessingThreshold;
  8565. bool enabled;
  8566. /* readonly */
  8567. bool enabledEffective;
  8568. float friction;
  8569. Vector3 gravityOverride;
  8570. /* readonly */
  8571. uint id;
  8572. bool kinematic;
  8573. float linearDamping;
  8574. Vector3 linearFactor;
  8575. float linearRestThreshold;
  8576. Vector3 linearVelocity;
  8577. float mass;
  8578. /* readonly */
  8579. Node node;
  8580. /* readonly */
  8581. uint numAttributes;
  8582. ObjectAnimation objectAnimation;
  8583. Vector3 position;
  8584. /* readonly */
  8585. int refs;
  8586. float restitution;
  8587. float rollingFriction;
  8588. Quaternion rotation;
  8589. bool temporary;
  8590. bool trigger;
  8591. /* readonly */
  8592. StringHash type;
  8593. /* readonly */
  8594. String typeName;
  8595. bool useGravity;
  8596. /* readonly */
  8597. int weakRefs;
  8598. };
  8599. class RigidBody2D
  8600. {
  8601. // Methods:
  8602. void ApplyAngularImpulse(float, bool);
  8603. void ApplyAttributes();
  8604. void ApplyForce(const Vector2&, const Vector2&, bool);
  8605. void ApplyForceToCenter(const Vector2&, bool);
  8606. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8607. void ApplyTorque(float, bool);
  8608. void DrawDebugGeometry(DebugRenderer, bool);
  8609. Variant GetAttribute(const String&) const;
  8610. ValueAnimation GetAttributeAnimation(const String&) const;
  8611. float GetAttributeAnimationSpeed(const String&) const;
  8612. float GetAttributeAnimationTime(const String&) const;
  8613. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8614. Variant GetAttributeDefault(const String&) const;
  8615. bool GetInterceptNetworkUpdate(const String&) const;
  8616. bool HasSubscribedToEvent(Object, const String&);
  8617. bool HasSubscribedToEvent(const String&);
  8618. bool Load(File, bool = false);
  8619. bool Load(VectorBuffer&, bool = false);
  8620. bool LoadJSON(const JSONValue&, bool = false);
  8621. bool LoadXML(const XMLElement&, bool = false);
  8622. void MarkNetworkUpdate() const;
  8623. void Remove();
  8624. void RemoveAttributeAnimation(const String&);
  8625. void RemoveInstanceDefault();
  8626. void RemoveObjectAnimation();
  8627. void ResetToDefault();
  8628. bool Save(File) const;
  8629. bool Save(VectorBuffer&) const;
  8630. bool SaveJSON(JSONValue&) const;
  8631. bool SaveXML(XMLElement&) const;
  8632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8633. void SetAnimationTime(float);
  8634. bool SetAttribute(const String&, const Variant&);
  8635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8636. void SetAttributeAnimationSpeed(const String&, float);
  8637. void SetAttributeAnimationTime(const String&, float);
  8638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8639. void SetInterceptNetworkUpdate(const String&, bool);
  8640. // Properties:
  8641. bool allowSleep;
  8642. float angularDamping;
  8643. bool animationEnabled;
  8644. /* readonly */
  8645. Array<Variant> attributeDefaults;
  8646. /* readonly */
  8647. Array<AttributeInfo> attributeInfos;
  8648. Array<Variant> attributes;
  8649. bool awake;
  8650. BodyType2D bodyType;
  8651. bool bullet;
  8652. /* readonly */
  8653. String category;
  8654. bool enabled;
  8655. /* readonly */
  8656. bool enabledEffective;
  8657. bool fixedRotation;
  8658. float gravityScale;
  8659. /* readonly */
  8660. uint id;
  8661. float inertia;
  8662. float linearDamping;
  8663. Vector2 linearVelocity;
  8664. float mass;
  8665. Vector2 massCenter;
  8666. /* readonly */
  8667. Node node;
  8668. /* readonly */
  8669. uint numAttributes;
  8670. ObjectAnimation objectAnimation;
  8671. /* readonly */
  8672. int refs;
  8673. bool temporary;
  8674. /* readonly */
  8675. StringHash type;
  8676. /* readonly */
  8677. String typeName;
  8678. bool useFixtureMass;
  8679. /* readonly */
  8680. int weakRefs;
  8681. };
  8682. class Scene
  8683. {
  8684. // Methods:
  8685. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8686. void AddRequiredPackageFile(PackageFile);
  8687. void AddTag(const String&);
  8688. void AddTags(const String&, int8 = ';');
  8689. void ApplyAttributes();
  8690. void Clear(bool = true, bool = true);
  8691. void ClearRequiredPackageFiles();
  8692. Component CloneComponent(Component, CreateMode, uint = 0);
  8693. Component CloneComponent(Component, uint = 0);
  8694. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8695. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8696. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8697. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8698. Variant GetAttribute(const String&) const;
  8699. ValueAnimation GetAttributeAnimation(const String&) const;
  8700. float GetAttributeAnimationSpeed(const String&) const;
  8701. float GetAttributeAnimationTime(const String&) const;
  8702. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8703. Variant GetAttributeDefault(const String&) const;
  8704. Node GetChild(const String&, bool = false) const;
  8705. Array<Node> GetChildren(bool = false) const;
  8706. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8707. Array<Node> GetChildrenWithScript(bool = false) const;
  8708. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8709. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8710. Component GetComponent(const String&, bool = false) const;
  8711. Component GetComponent(uint) const;
  8712. Array<Component> GetComponents() const;
  8713. Array<Component> GetComponents(const String&, bool = false) const;
  8714. bool GetInterceptNetworkUpdate(const String&) const;
  8715. Node GetNode(uint) const;
  8716. Array<Node> GetNodesWithTag(const String&) const;
  8717. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8718. Component GetParentComponent(const String&, bool = false) const;
  8719. ScriptObject GetScriptObject() const;
  8720. ScriptObject GetScriptObject(const String&) const;
  8721. bool HasComponent(const String&) const;
  8722. bool HasSubscribedToEvent(Object, const String&);
  8723. bool HasSubscribedToEvent(const String&);
  8724. bool HasTag(const String&);
  8725. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8726. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8727. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8728. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8729. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8730. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8731. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8732. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8733. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8734. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8735. bool Load(File, bool = false);
  8736. bool Load(VectorBuffer&, bool = false);
  8737. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8738. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8739. bool LoadJSON(File);
  8740. bool LoadJSON(VectorBuffer&);
  8741. bool LoadJSON(const JSONValue&, bool = false);
  8742. bool LoadXML(File);
  8743. bool LoadXML(VectorBuffer&);
  8744. bool LoadXML(const XMLElement&, bool = false);
  8745. Vector3 LocalToWorld(const Vector3&) const;
  8746. Vector3 LocalToWorld(const Vector4&) const;
  8747. Vector2 LocalToWorld2D(const Vector2&) const;
  8748. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8749. void MarkNetworkUpdate() const;
  8750. void Pitch(float, TransformSpace = TS_LOCAL);
  8751. void RegisterVar(const String&);
  8752. void Remove();
  8753. void RemoveAllChildren();
  8754. void RemoveAllComponents();
  8755. void RemoveAllTags();
  8756. void RemoveAttributeAnimation(const String&);
  8757. void RemoveChild(Node);
  8758. void RemoveChildren(bool, bool, bool);
  8759. void RemoveComponent(Component);
  8760. void RemoveComponent(const String&);
  8761. void RemoveComponents(bool, bool);
  8762. void RemoveComponents(const String&);
  8763. void RemoveInstanceDefault();
  8764. void RemoveObjectAnimation();
  8765. bool RemoveTag(const String&);
  8766. void ReorderComponent(Component, uint);
  8767. void ResetToDefault();
  8768. void Roll(float, TransformSpace = TS_LOCAL);
  8769. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8770. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8771. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8772. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8773. bool Save(File) const;
  8774. bool Save(VectorBuffer&) const;
  8775. bool SaveJSON(File, const String& = "\t");
  8776. bool SaveJSON(JSONValue&) const;
  8777. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8778. bool SaveXML(File, const String& = "\t");
  8779. bool SaveXML(VectorBuffer&, const String& = "\t");
  8780. bool SaveXML(XMLElement&) const;
  8781. void Scale(const Vector3&);
  8782. void Scale(float);
  8783. void Scale2D(const Vector2&);
  8784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8785. void SetAnimationTime(float);
  8786. bool SetAttribute(const String&, const Variant&);
  8787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8788. void SetAttributeAnimationSpeed(const String&, float);
  8789. void SetAttributeAnimationTime(const String&, float);
  8790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8791. void SetInterceptNetworkUpdate(const String&, bool);
  8792. void SetPosition2D(float, float);
  8793. void SetScale(float);
  8794. void SetScale2D(float, float);
  8795. void SetTransform(const Vector3&, const Quaternion&);
  8796. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8797. void SetTransform(const Vector3&, const Quaternion&, float);
  8798. void SetTransform2D(const Vector2&, float);
  8799. void SetTransform2D(const Vector2&, float, const Vector2&);
  8800. void SetTransform2D(const Vector2&, float, float);
  8801. void SetWorldTransform(const Vector3&, const Quaternion&);
  8802. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8803. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8804. void SetWorldTransform2D(const Vector2&, float);
  8805. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8806. void SetWorldTransform2D(const Vector2&, float, float);
  8807. void StopAsyncLoading();
  8808. const String& GetVarName(StringHash) const;
  8809. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8810. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8811. void UnregisterAllVars(const String&);
  8812. void UnregisterVar(const String&);
  8813. void Update(float);
  8814. Vector3 WorldToLocal(const Vector3&) const;
  8815. Vector3 WorldToLocal(const Vector4&) const;
  8816. Vector2 WorldToLocal2D(const Vector2&) const;
  8817. void Yaw(float, TransformSpace = TS_LOCAL);
  8818. // Properties:
  8819. bool animationEnabled;
  8820. /* readonly */
  8821. LoadMode asyncLoadMode;
  8822. /* readonly */
  8823. bool asyncLoading;
  8824. int asyncLoadingMs;
  8825. /* readonly */
  8826. float asyncProgress;
  8827. /* readonly */
  8828. Array<Variant> attributeDefaults;
  8829. /* readonly */
  8830. Array<AttributeInfo> attributeInfos;
  8831. Array<Variant> attributes;
  8832. /* readonly */
  8833. String category;
  8834. /* readonly */
  8835. uint checksum;
  8836. /* readonly */
  8837. Array<Node> children;
  8838. /* readonly */
  8839. Array<Component> components;
  8840. /* readonly */
  8841. DebugRenderer debugRenderer;
  8842. Vector3 direction;
  8843. float elapsedTime;
  8844. /* readonly */
  8845. String fileName;
  8846. uint id;
  8847. String name;
  8848. /* readonly */
  8849. uint numAllChildren;
  8850. /* readonly */
  8851. uint numAttributes;
  8852. /* readonly */
  8853. uint numChildren;
  8854. /* readonly */
  8855. uint numComponents;
  8856. ObjectAnimation objectAnimation;
  8857. /* readonly */
  8858. Octree octree;
  8859. Node parent;
  8860. /* readonly */
  8861. PhysicsWorld physicsWorld;
  8862. /* readonly */
  8863. PhysicsWorld2D physicsWorld2D;
  8864. Vector3 position;
  8865. Vector2 position2D;
  8866. /* readonly */
  8867. int refs;
  8868. /* readonly */
  8869. Array<PackageFile> requiredPackageFiles;
  8870. /* readonly */
  8871. Vector3 right;
  8872. Quaternion rotation;
  8873. float rotation2D;
  8874. Vector3 scale;
  8875. Vector2 scale2D;
  8876. /* readonly */
  8877. ScriptObject scriptObject;
  8878. float smoothingConstant;
  8879. float snapThreshold;
  8880. /* readonly */
  8881. Array<String> tags;
  8882. bool temporary;
  8883. float timeScale;
  8884. /* readonly */
  8885. Matrix3x4 transform;
  8886. /* readonly */
  8887. StringHash type;
  8888. /* readonly */
  8889. String typeName;
  8890. /* readonly */
  8891. Vector3 up;
  8892. bool updateEnabled;
  8893. /* readonly */
  8894. VariantMap vars;
  8895. /* readonly */
  8896. int weakRefs;
  8897. Vector3 worldDirection;
  8898. Vector3 worldPosition;
  8899. Vector2 worldPosition2D;
  8900. /* readonly */
  8901. Vector3 worldRight;
  8902. Quaternion worldRotation;
  8903. float worldRotation2D;
  8904. Vector3 worldScale;
  8905. Vector2 worldScale2D;
  8906. /* readonly */
  8907. Matrix3x4 worldTransform;
  8908. /* readonly */
  8909. Vector3 worldUp;
  8910. };
  8911. class Script
  8912. {
  8913. // Methods:
  8914. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8915. bool Execute(const String&);
  8916. bool HasSubscribedToEvent(Object, const String&);
  8917. bool HasSubscribedToEvent(const String&);
  8918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8919. // Properties:
  8920. /* readonly */
  8921. String category;
  8922. Scene defaultScene;
  8923. ScriptFile defaultScriptFile;
  8924. bool executeConsoleCommands;
  8925. /* readonly */
  8926. int refs;
  8927. /* readonly */
  8928. StringHash type;
  8929. /* readonly */
  8930. String typeName;
  8931. /* readonly */
  8932. int weakRefs;
  8933. };
  8934. class ScriptFile
  8935. {
  8936. // Methods:
  8937. void ClearDelayedExecute(const String& = String ( ));
  8938. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8939. bool Execute(const String&, const Array<Variant> = null);
  8940. bool HasSubscribedToEvent(Object, const String&);
  8941. bool HasSubscribedToEvent(const String&);
  8942. bool Load(File);
  8943. bool Load(VectorBuffer&);
  8944. bool Save(File) const;
  8945. bool Save(VectorBuffer&) const;
  8946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8947. // Properties:
  8948. /* readonly */
  8949. String category;
  8950. /* readonly */
  8951. bool compiled;
  8952. /* readonly */
  8953. uint memoryUse;
  8954. String name;
  8955. /* readonly */
  8956. int refs;
  8957. /* readonly */
  8958. StringHash type;
  8959. /* readonly */
  8960. String typeName;
  8961. /* readonly */
  8962. uint useTimer;
  8963. /* readonly */
  8964. int weakRefs;
  8965. };
  8966. class ScriptInstance
  8967. {
  8968. // Methods:
  8969. void ApplyAttributes();
  8970. void ClearDelayedExecute(const String& = String ( ));
  8971. bool CreateObject(ScriptFile, const String&);
  8972. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8973. void DrawDebugGeometry(DebugRenderer, bool);
  8974. bool Execute(const String&, const Array<Variant> = null);
  8975. Variant GetAttribute(const String&) const;
  8976. ValueAnimation GetAttributeAnimation(const String&) const;
  8977. float GetAttributeAnimationSpeed(const String&) const;
  8978. float GetAttributeAnimationTime(const String&) const;
  8979. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8980. Variant GetAttributeDefault(const String&) const;
  8981. bool GetInterceptNetworkUpdate(const String&) const;
  8982. bool HasMethod(const String&) const;
  8983. bool HasSubscribedToEvent(Object, const String&);
  8984. bool HasSubscribedToEvent(const String&);
  8985. bool IsA(const String&) const;
  8986. bool Load(File, bool = false);
  8987. bool Load(VectorBuffer&, bool = false);
  8988. bool LoadJSON(const JSONValue&, bool = false);
  8989. bool LoadXML(const XMLElement&, bool = false);
  8990. void MarkNetworkUpdate() const;
  8991. void Remove();
  8992. void RemoveAttributeAnimation(const String&);
  8993. void RemoveInstanceDefault();
  8994. void RemoveObjectAnimation();
  8995. void ResetToDefault();
  8996. bool Save(File) const;
  8997. bool Save(VectorBuffer&) const;
  8998. bool SaveJSON(JSONValue&) const;
  8999. bool SaveXML(XMLElement&) const;
  9000. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9001. void SetAnimationTime(float);
  9002. bool SetAttribute(const String&, const Variant&);
  9003. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9004. void SetAttributeAnimationSpeed(const String&, float);
  9005. void SetAttributeAnimationTime(const String&, float);
  9006. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9007. void SetInterceptNetworkUpdate(const String&, bool);
  9008. // Properties:
  9009. bool animationEnabled;
  9010. /* readonly */
  9011. Array<Variant> attributeDefaults;
  9012. /* readonly */
  9013. Array<AttributeInfo> attributeInfos;
  9014. Array<Variant> attributes;
  9015. /* readonly */
  9016. String category;
  9017. String className;
  9018. bool enabled;
  9019. /* readonly */
  9020. bool enabledEffective;
  9021. /* readonly */
  9022. uint id;
  9023. /* readonly */
  9024. Node node;
  9025. /* readonly */
  9026. uint numAttributes;
  9027. ObjectAnimation objectAnimation;
  9028. /* readonly */
  9029. int refs;
  9030. ScriptFile scriptFile;
  9031. /* readonly */
  9032. ScriptObject scriptObject;
  9033. bool temporary;
  9034. /* readonly */
  9035. StringHash type;
  9036. /* readonly */
  9037. String typeName;
  9038. /* readonly */
  9039. int weakRefs;
  9040. };
  9041. class ScriptObject
  9042. {
  9043. };
  9044. class ScrollBar
  9045. {
  9046. // Methods:
  9047. void AddChild(UIElement);
  9048. void AddTag(const String&);
  9049. void AddTags(const String&, int8 = ';');
  9050. void ApplyAttributes();
  9051. void BringToFront();
  9052. void ChangeValue(float);
  9053. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9054. void DisableLayoutUpdate();
  9055. IntVector2 ElementToScreen(const IntVector2&);
  9056. void EnableLayoutUpdate();
  9057. uint FindChild(UIElement) const;
  9058. Variant GetAttribute(const String&) const;
  9059. ValueAnimation GetAttributeAnimation(const String&) const;
  9060. float GetAttributeAnimationSpeed(const String&) const;
  9061. float GetAttributeAnimationTime(const String&) const;
  9062. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9063. Variant GetAttributeDefault(const String&) const;
  9064. UIElement GetChild(const String&, bool = false) const;
  9065. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9066. Array<UIElement> GetChildren(bool = false) const;
  9067. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9068. UIElement GetElementEventSender() const;
  9069. bool GetInterceptNetworkUpdate(const String&) const;
  9070. uint GetNumChildren(bool) const;
  9071. bool HasSubscribedToEvent(Object, const String&);
  9072. bool HasSubscribedToEvent(const String&);
  9073. bool HasTag(const String&) const;
  9074. void InsertChild(uint, UIElement);
  9075. bool IsInside(IntVector2, bool);
  9076. bool IsInsideCombined(IntVector2, bool);
  9077. bool Load(File, bool = false);
  9078. bool Load(VectorBuffer&, bool = false);
  9079. bool LoadChildXML(XMLFile, XMLFile = null);
  9080. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9081. bool LoadJSON(const JSONValue&, bool = false);
  9082. bool LoadXML(File);
  9083. bool LoadXML(VectorBuffer&);
  9084. bool LoadXML(XMLFile, XMLFile);
  9085. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9086. bool LoadXML(const XMLElement&, bool = false);
  9087. void MarkNetworkUpdate() const;
  9088. void Remove();
  9089. void RemoveAllChildren();
  9090. void RemoveAllTags();
  9091. void RemoveAttributeAnimation(const String&);
  9092. void RemoveChild(UIElement, uint = 0);
  9093. void RemoveChild(uint);
  9094. void RemoveInstanceDefault();
  9095. void RemoveObjectAnimation();
  9096. bool RemoveTag(const String&);
  9097. void ResetDeepEnabled();
  9098. void ResetToDefault();
  9099. bool Save(File) const;
  9100. bool Save(VectorBuffer&) const;
  9101. bool SaveJSON(JSONValue&) const;
  9102. bool SaveXML(File, const String& = "\t");
  9103. bool SaveXML(VectorBuffer&, const String& = "\t");
  9104. bool SaveXML(XMLElement&) const;
  9105. IntVector2 ScreenToElement(const IntVector2&);
  9106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9107. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9108. void SetAnimationTime(float);
  9109. bool SetAttribute(const String&, const Variant&);
  9110. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9111. void SetAttributeAnimationSpeed(const String&, float);
  9112. void SetAttributeAnimationTime(const String&, float);
  9113. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9114. void SetDeepEnabled(bool);
  9115. void SetEnabledRecursive(bool);
  9116. void SetFixedHeight(int);
  9117. void SetFixedSize(int, int);
  9118. void SetFixedWidth(int);
  9119. void SetInterceptNetworkUpdate(const String&, bool);
  9120. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9121. void SetMaxSize(int, int);
  9122. void SetMinSize(int, int);
  9123. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9124. void SetPosition(int, int);
  9125. void SetSize(int, int);
  9126. bool SetStyle(const String&, XMLFile = null);
  9127. bool SetStyle(const XMLElement&);
  9128. bool SetStyleAuto(XMLFile = null);
  9129. void StepBack();
  9130. void StepForward();
  9131. void UpdateLayout();
  9132. const Variant& GetVar(const StringHash&);
  9133. // Properties:
  9134. bool animationEnabled;
  9135. /* readonly */
  9136. Array<Variant> attributeDefaults;
  9137. /* readonly */
  9138. Array<AttributeInfo> attributeInfos;
  9139. Array<Variant> attributes;
  9140. /* readonly */
  9141. Button backButton;
  9142. bool bringToBack;
  9143. bool bringToFront;
  9144. /* readonly */
  9145. String category;
  9146. /* readonly */
  9147. IntVector2 childOffset;
  9148. /* readonly */
  9149. Array<UIElement> children;
  9150. IntRect clipBorder;
  9151. bool clipChildren;
  9152. /* writeonly */
  9153. Color color;
  9154. /* readonly */
  9155. bool colorGradient;
  9156. Array<Color> colors;
  9157. /* readonly */
  9158. IntRect combinedScreenRect;
  9159. XMLFile defaultStyle;
  9160. /* readonly */
  9161. float derivedOpacity;
  9162. /* readonly */
  9163. uint dragButtonCombo;
  9164. /* readonly */
  9165. int dragButtonCount;
  9166. uint dragDropMode;
  9167. bool editable;
  9168. /* readonly */
  9169. float effectiveScrollStep;
  9170. bool elementEventSender;
  9171. bool enabled;
  9172. /* readonly */
  9173. bool enabledSelf;
  9174. /* readonly */
  9175. bool fixedHeight;
  9176. /* readonly */
  9177. bool fixedSize;
  9178. /* readonly */
  9179. bool fixedWidth;
  9180. bool focus;
  9181. FocusMode focusMode;
  9182. /* readonly */
  9183. Button forwardButton;
  9184. int height;
  9185. HorizontalAlignment horizontalAlignment;
  9186. /* readonly */
  9187. bool hovering;
  9188. int indent;
  9189. int indentSpacing;
  9190. /* readonly */
  9191. int indentWidth;
  9192. bool internal;
  9193. IntRect layoutBorder;
  9194. Vector2 layoutFlexScale;
  9195. LayoutMode layoutMode;
  9196. int layoutSpacing;
  9197. int maxHeight;
  9198. IntVector2 maxSize;
  9199. int maxWidth;
  9200. int minHeight;
  9201. IntVector2 minSize;
  9202. int minWidth;
  9203. String name;
  9204. /* readonly */
  9205. uint numAllChildren;
  9206. /* readonly */
  9207. uint numAttributes;
  9208. /* readonly */
  9209. uint numChildren;
  9210. ObjectAnimation objectAnimation;
  9211. float opacity;
  9212. Orientation orientation;
  9213. UIElement parent;
  9214. IntVector2 position;
  9215. int priority;
  9216. float range;
  9217. /* readonly */
  9218. int refs;
  9219. /* readonly */
  9220. UIElement root;
  9221. /* readonly */
  9222. IntVector2 screenPosition;
  9223. float scrollStep;
  9224. bool selected;
  9225. IntVector2 size;
  9226. /* readonly */
  9227. Slider slider;
  9228. bool sortChildren;
  9229. float stepFactor;
  9230. String style;
  9231. /* readonly */
  9232. Array<String> tags;
  9233. bool temporary;
  9234. TraversalMode traversalMode;
  9235. /* readonly */
  9236. StringHash type;
  9237. /* readonly */
  9238. String typeName;
  9239. bool useDerivedOpacity;
  9240. float value;
  9241. /* readonly */
  9242. VariantMap vars;
  9243. VerticalAlignment verticalAlignment;
  9244. bool visible;
  9245. /* readonly */
  9246. bool visibleEffective;
  9247. /* readonly */
  9248. int weakRefs;
  9249. int width;
  9250. };
  9251. class ScrollView
  9252. {
  9253. // Methods:
  9254. void AddChild(UIElement);
  9255. void AddTag(const String&);
  9256. void AddTags(const String&, int8 = ';');
  9257. void ApplyAttributes();
  9258. void BringToFront();
  9259. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9260. void DisableLayoutUpdate();
  9261. IntVector2 ElementToScreen(const IntVector2&);
  9262. void EnableLayoutUpdate();
  9263. uint FindChild(UIElement) const;
  9264. Variant GetAttribute(const String&) const;
  9265. ValueAnimation GetAttributeAnimation(const String&) const;
  9266. float GetAttributeAnimationSpeed(const String&) const;
  9267. float GetAttributeAnimationTime(const String&) const;
  9268. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9269. Variant GetAttributeDefault(const String&) const;
  9270. UIElement GetChild(const String&, bool = false) const;
  9271. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9272. Array<UIElement> GetChildren(bool = false) const;
  9273. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9274. UIElement GetElementEventSender() const;
  9275. bool GetInterceptNetworkUpdate(const String&) const;
  9276. uint GetNumChildren(bool) const;
  9277. bool HasSubscribedToEvent(Object, const String&);
  9278. bool HasSubscribedToEvent(const String&);
  9279. bool HasTag(const String&) const;
  9280. void InsertChild(uint, UIElement);
  9281. bool IsInside(IntVector2, bool);
  9282. bool IsInsideCombined(IntVector2, bool);
  9283. bool Load(File, bool = false);
  9284. bool Load(VectorBuffer&, bool = false);
  9285. bool LoadChildXML(XMLFile, XMLFile = null);
  9286. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9287. bool LoadJSON(const JSONValue&, bool = false);
  9288. bool LoadXML(File);
  9289. bool LoadXML(VectorBuffer&);
  9290. bool LoadXML(XMLFile, XMLFile);
  9291. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9292. bool LoadXML(const XMLElement&, bool = false);
  9293. void MarkNetworkUpdate() const;
  9294. void Remove();
  9295. void RemoveAllChildren();
  9296. void RemoveAllTags();
  9297. void RemoveAttributeAnimation(const String&);
  9298. void RemoveChild(UIElement, uint = 0);
  9299. void RemoveChild(uint);
  9300. void RemoveInstanceDefault();
  9301. void RemoveObjectAnimation();
  9302. bool RemoveTag(const String&);
  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 SetInterceptNetworkUpdate(const String&, bool);
  9326. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9327. void SetMaxSize(int, int);
  9328. void SetMinSize(int, int);
  9329. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9330. void SetPosition(int, int);
  9331. void SetScrollBarsVisible(bool, bool);
  9332. void SetSize(int, int);
  9333. bool SetStyle(const String&, XMLFile = null);
  9334. bool SetStyle(const XMLElement&);
  9335. bool SetStyleAuto(XMLFile = null);
  9336. void SetViewPosition(int, int);
  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. bool autoDisableChildren;
  9347. float autoDisableThreshold;
  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. UIElement contentElement;
  9366. XMLFile defaultStyle;
  9367. /* readonly */
  9368. float derivedOpacity;
  9369. /* readonly */
  9370. uint dragButtonCombo;
  9371. /* readonly */
  9372. int dragButtonCount;
  9373. uint dragDropMode;
  9374. bool editable;
  9375. bool elementEventSender;
  9376. bool enabled;
  9377. /* readonly */
  9378. bool enabledSelf;
  9379. /* readonly */
  9380. bool fixedHeight;
  9381. /* readonly */
  9382. bool fixedSize;
  9383. /* readonly */
  9384. bool fixedWidth;
  9385. bool focus;
  9386. FocusMode focusMode;
  9387. int height;
  9388. HorizontalAlignment horizontalAlignment;
  9389. /* readonly */
  9390. ScrollBar horizontalScrollBar;
  9391. /* readonly */
  9392. bool hovering;
  9393. int indent;
  9394. int indentSpacing;
  9395. /* readonly */
  9396. int indentWidth;
  9397. bool internal;
  9398. IntRect layoutBorder;
  9399. Vector2 layoutFlexScale;
  9400. LayoutMode layoutMode;
  9401. int layoutSpacing;
  9402. int maxHeight;
  9403. IntVector2 maxSize;
  9404. int maxWidth;
  9405. int minHeight;
  9406. IntVector2 minSize;
  9407. int minWidth;
  9408. String name;
  9409. /* readonly */
  9410. uint numAllChildren;
  9411. /* readonly */
  9412. uint numAttributes;
  9413. /* readonly */
  9414. uint numChildren;
  9415. ObjectAnimation objectAnimation;
  9416. float opacity;
  9417. float pageStep;
  9418. UIElement parent;
  9419. IntVector2 position;
  9420. int priority;
  9421. /* readonly */
  9422. int refs;
  9423. /* readonly */
  9424. UIElement root;
  9425. /* readonly */
  9426. IntVector2 screenPosition;
  9427. bool scrollBarsAutoVisible;
  9428. float scrollDeceleration;
  9429. /* readonly */
  9430. BorderImage scrollPanel;
  9431. float scrollSnapEpsilon;
  9432. float scrollStep;
  9433. bool selected;
  9434. IntVector2 size;
  9435. bool sortChildren;
  9436. String style;
  9437. /* readonly */
  9438. Array<String> tags;
  9439. bool temporary;
  9440. TraversalMode traversalMode;
  9441. /* readonly */
  9442. StringHash type;
  9443. /* readonly */
  9444. String typeName;
  9445. bool useDerivedOpacity;
  9446. /* readonly */
  9447. VariantMap vars;
  9448. VerticalAlignment verticalAlignment;
  9449. /* readonly */
  9450. ScrollBar verticalScrollBar;
  9451. IntVector2 viewPosition;
  9452. bool visible;
  9453. /* readonly */
  9454. bool visibleEffective;
  9455. /* readonly */
  9456. int weakRefs;
  9457. int width;
  9458. };
  9459. class Serializable
  9460. {
  9461. // Methods:
  9462. void ApplyAttributes();
  9463. Variant GetAttribute(const String&) const;
  9464. Variant GetAttributeDefault(const String&) const;
  9465. bool GetInterceptNetworkUpdate(const String&) const;
  9466. bool HasSubscribedToEvent(Object, const String&);
  9467. bool HasSubscribedToEvent(const String&);
  9468. bool Load(File, bool = false);
  9469. bool Load(VectorBuffer&, bool = false);
  9470. bool LoadJSON(const JSONValue&, bool = false);
  9471. bool LoadXML(const XMLElement&, bool = false);
  9472. void MarkNetworkUpdate() const;
  9473. void RemoveInstanceDefault();
  9474. void ResetToDefault();
  9475. bool Save(File) const;
  9476. bool Save(VectorBuffer&) const;
  9477. bool SaveJSON(JSONValue&) const;
  9478. bool SaveXML(XMLElement&) const;
  9479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9480. bool SetAttribute(const String&, const Variant&);
  9481. void SetInterceptNetworkUpdate(const String&, bool);
  9482. // Properties:
  9483. /* readonly */
  9484. Array<Variant> attributeDefaults;
  9485. /* readonly */
  9486. Array<AttributeInfo> attributeInfos;
  9487. Array<Variant> attributes;
  9488. /* readonly */
  9489. String category;
  9490. /* readonly */
  9491. uint numAttributes;
  9492. /* readonly */
  9493. int refs;
  9494. bool temporary;
  9495. /* readonly */
  9496. StringHash type;
  9497. /* readonly */
  9498. String typeName;
  9499. /* readonly */
  9500. int weakRefs;
  9501. };
  9502. class Serializer
  9503. {
  9504. // Methods:
  9505. uint Write(Array<uint8>);
  9506. bool WriteBool(bool);
  9507. bool WriteBoundingBox(const BoundingBox&);
  9508. bool WriteByte(int8);
  9509. bool WriteColor(const Color&);
  9510. bool WriteDouble(double);
  9511. bool WriteFileID(const String&);
  9512. bool WriteFloat(float);
  9513. bool WriteInt(int);
  9514. bool WriteInt64(int64);
  9515. bool WriteIntRect(const IntRect&);
  9516. bool WriteIntVector2(const IntVector2&);
  9517. bool WriteLine(const String&);
  9518. bool WriteMatrix3(const Matrix3&);
  9519. bool WriteMatrix3x4(const Matrix3x4&);
  9520. bool WriteMatrix4(const Matrix4&);
  9521. bool WriteNetID(uint);
  9522. bool WritePackedQuaternion(const Quaternion&);
  9523. bool WritePackedVector3(const Vector3&, float);
  9524. bool WriteQuaternion(const Quaternion&);
  9525. bool WriteShort(int16);
  9526. bool WriteString(const String&);
  9527. bool WriteStringHash(const StringHash&);
  9528. bool WriteUByte(uint8);
  9529. bool WriteUInt(uint);
  9530. bool WriteUInt64(uint64);
  9531. bool WriteUShort(uint16);
  9532. bool WriteVLE(uint);
  9533. bool WriteVariant(const Variant&);
  9534. bool WriteVariantMap(const VariantMap&);
  9535. bool WriteVector2(const Vector2&);
  9536. bool WriteVector3(const Vector3&);
  9537. bool WriteVector4(const Vector4&);
  9538. bool WriteVectorBuffer(const VectorBuffer&);
  9539. };
  9540. class Skeleton
  9541. {
  9542. // Methods:
  9543. Bone GetBone(const String&) const;
  9544. void Reset();
  9545. // Properties:
  9546. /* readonly */
  9547. Array<Bone> bones;
  9548. /* readonly */
  9549. uint numBones;
  9550. /* readonly */
  9551. Bone rootBone;
  9552. };
  9553. class Skybox
  9554. {
  9555. // Methods:
  9556. void ApplyAttributes();
  9557. void ApplyMaterialList(const String& = String ( ));
  9558. void DrawDebugGeometry(DebugRenderer, bool);
  9559. Variant GetAttribute(const String&) const;
  9560. ValueAnimation GetAttributeAnimation(const String&) const;
  9561. float GetAttributeAnimationSpeed(const String&) const;
  9562. float GetAttributeAnimationTime(const String&) const;
  9563. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9564. Variant GetAttributeDefault(const String&) const;
  9565. bool GetInterceptNetworkUpdate(const String&) const;
  9566. bool HasSubscribedToEvent(Object, const String&);
  9567. bool HasSubscribedToEvent(const String&);
  9568. bool IsInView(Camera) const;
  9569. bool Load(File, bool = false);
  9570. bool Load(VectorBuffer&, bool = false);
  9571. bool LoadJSON(const JSONValue&, bool = false);
  9572. bool LoadXML(const XMLElement&, bool = false);
  9573. void MarkNetworkUpdate() const;
  9574. void Remove();
  9575. void RemoveAttributeAnimation(const String&);
  9576. void RemoveInstanceDefault();
  9577. void RemoveObjectAnimation();
  9578. void ResetToDefault();
  9579. bool Save(File) const;
  9580. bool Save(VectorBuffer&) const;
  9581. bool SaveJSON(JSONValue&) const;
  9582. bool SaveXML(XMLElement&) const;
  9583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9584. void SetAnimationTime(float);
  9585. bool SetAttribute(const String&, const Variant&);
  9586. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9587. void SetAttributeAnimationSpeed(const String&, float);
  9588. void SetAttributeAnimationTime(const String&, float);
  9589. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9590. void SetInterceptNetworkUpdate(const String&, bool);
  9591. // Properties:
  9592. bool animationEnabled;
  9593. /* readonly */
  9594. Array<Variant> attributeDefaults;
  9595. /* readonly */
  9596. Array<AttributeInfo> attributeInfos;
  9597. Array<Variant> attributes;
  9598. /* readonly */
  9599. BoundingBox boundingBox;
  9600. bool castShadows;
  9601. /* readonly */
  9602. String category;
  9603. float drawDistance;
  9604. bool enabled;
  9605. /* readonly */
  9606. bool enabledEffective;
  9607. /* readonly */
  9608. uint id;
  9609. /* readonly */
  9610. bool inView;
  9611. uint lightMask;
  9612. float lodBias;
  9613. /* writeonly */
  9614. Material material;
  9615. Array<Material> materials;
  9616. uint maxLights;
  9617. Model model;
  9618. /* readonly */
  9619. Node node;
  9620. /* readonly */
  9621. uint numAttributes;
  9622. /* readonly */
  9623. uint numGeometries;
  9624. ObjectAnimation objectAnimation;
  9625. bool occludee;
  9626. bool occluder;
  9627. /* readonly */
  9628. int refs;
  9629. float shadowDistance;
  9630. uint shadowMask;
  9631. bool temporary;
  9632. /* readonly */
  9633. StringHash type;
  9634. /* readonly */
  9635. String typeName;
  9636. uint viewMask;
  9637. /* readonly */
  9638. int weakRefs;
  9639. /* readonly */
  9640. BoundingBox worldBoundingBox;
  9641. /* readonly */
  9642. Zone zone;
  9643. uint zoneMask;
  9644. };
  9645. class Slider
  9646. {
  9647. // Methods:
  9648. void AddChild(UIElement);
  9649. void AddTag(const String&);
  9650. void AddTags(const String&, int8 = ';');
  9651. void ApplyAttributes();
  9652. void BringToFront();
  9653. void ChangeValue(float);
  9654. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9655. void DisableLayoutUpdate();
  9656. IntVector2 ElementToScreen(const IntVector2&);
  9657. void EnableLayoutUpdate();
  9658. uint FindChild(UIElement) const;
  9659. Variant GetAttribute(const String&) const;
  9660. ValueAnimation GetAttributeAnimation(const String&) const;
  9661. float GetAttributeAnimationSpeed(const String&) const;
  9662. float GetAttributeAnimationTime(const String&) const;
  9663. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9664. Variant GetAttributeDefault(const String&) const;
  9665. UIElement GetChild(const String&, bool = false) const;
  9666. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9667. Array<UIElement> GetChildren(bool = false) const;
  9668. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9669. UIElement GetElementEventSender() const;
  9670. bool GetInterceptNetworkUpdate(const String&) const;
  9671. uint GetNumChildren(bool) const;
  9672. bool HasSubscribedToEvent(Object, const String&);
  9673. bool HasSubscribedToEvent(const String&);
  9674. bool HasTag(const String&) const;
  9675. void InsertChild(uint, UIElement);
  9676. bool IsInside(IntVector2, bool);
  9677. bool IsInsideCombined(IntVector2, bool);
  9678. bool Load(File, bool = false);
  9679. bool Load(VectorBuffer&, bool = false);
  9680. bool LoadChildXML(XMLFile, XMLFile = null);
  9681. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9682. bool LoadJSON(const JSONValue&, bool = false);
  9683. bool LoadXML(File);
  9684. bool LoadXML(VectorBuffer&);
  9685. bool LoadXML(XMLFile, XMLFile);
  9686. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9687. bool LoadXML(const XMLElement&, bool = false);
  9688. void MarkNetworkUpdate() const;
  9689. void Remove();
  9690. void RemoveAllChildren();
  9691. void RemoveAllTags();
  9692. void RemoveAttributeAnimation(const String&);
  9693. void RemoveChild(UIElement, uint = 0);
  9694. void RemoveChild(uint);
  9695. void RemoveInstanceDefault();
  9696. void RemoveObjectAnimation();
  9697. bool RemoveTag(const String&);
  9698. void ResetDeepEnabled();
  9699. void ResetToDefault();
  9700. bool Save(File) const;
  9701. bool Save(VectorBuffer&) const;
  9702. bool SaveJSON(JSONValue&) const;
  9703. bool SaveXML(File, const String& = "\t");
  9704. bool SaveXML(VectorBuffer&, const String& = "\t");
  9705. bool SaveXML(XMLElement&) const;
  9706. IntVector2 ScreenToElement(const IntVector2&);
  9707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9708. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9709. void SetAnimationTime(float);
  9710. bool SetAttribute(const String&, const Variant&);
  9711. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9712. void SetAttributeAnimationSpeed(const String&, float);
  9713. void SetAttributeAnimationTime(const String&, float);
  9714. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9715. void SetDeepEnabled(bool);
  9716. void SetEnabledRecursive(bool);
  9717. void SetFixedHeight(int);
  9718. void SetFixedSize(int, int);
  9719. void SetFixedWidth(int);
  9720. void SetFullImageRect();
  9721. void SetHoverOffset(int, int);
  9722. void SetInterceptNetworkUpdate(const String&, bool);
  9723. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9724. void SetMaxSize(int, int);
  9725. void SetMinSize(int, int);
  9726. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9727. void SetPosition(int, int);
  9728. void SetSize(int, int);
  9729. bool SetStyle(const String&, XMLFile = null);
  9730. bool SetStyle(const XMLElement&);
  9731. bool SetStyleAuto(XMLFile = null);
  9732. void UpdateLayout();
  9733. const Variant& GetVar(const StringHash&);
  9734. // Properties:
  9735. bool animationEnabled;
  9736. /* readonly */
  9737. Array<Variant> attributeDefaults;
  9738. /* readonly */
  9739. Array<AttributeInfo> attributeInfos;
  9740. Array<Variant> attributes;
  9741. BlendMode blendMode;
  9742. IntRect border;
  9743. bool bringToBack;
  9744. bool bringToFront;
  9745. /* readonly */
  9746. String category;
  9747. /* readonly */
  9748. IntVector2 childOffset;
  9749. /* readonly */
  9750. Array<UIElement> children;
  9751. IntRect clipBorder;
  9752. bool clipChildren;
  9753. /* writeonly */
  9754. Color color;
  9755. /* readonly */
  9756. bool colorGradient;
  9757. Array<Color> colors;
  9758. /* readonly */
  9759. IntRect combinedScreenRect;
  9760. XMLFile defaultStyle;
  9761. /* readonly */
  9762. float derivedOpacity;
  9763. /* readonly */
  9764. uint dragButtonCombo;
  9765. /* readonly */
  9766. int dragButtonCount;
  9767. uint dragDropMode;
  9768. bool editable;
  9769. bool elementEventSender;
  9770. bool enabled;
  9771. /* readonly */
  9772. bool enabledSelf;
  9773. /* readonly */
  9774. bool fixedHeight;
  9775. /* readonly */
  9776. bool fixedSize;
  9777. /* readonly */
  9778. bool fixedWidth;
  9779. bool focus;
  9780. FocusMode focusMode;
  9781. int height;
  9782. HorizontalAlignment horizontalAlignment;
  9783. IntVector2 hoverOffset;
  9784. /* readonly */
  9785. bool hovering;
  9786. IntRect imageBorder;
  9787. IntRect imageRect;
  9788. int indent;
  9789. int indentSpacing;
  9790. /* readonly */
  9791. int indentWidth;
  9792. bool internal;
  9793. /* readonly */
  9794. BorderImage knob;
  9795. IntRect layoutBorder;
  9796. Vector2 layoutFlexScale;
  9797. LayoutMode layoutMode;
  9798. int layoutSpacing;
  9799. int maxHeight;
  9800. IntVector2 maxSize;
  9801. int maxWidth;
  9802. int minHeight;
  9803. IntVector2 minSize;
  9804. int minWidth;
  9805. String name;
  9806. /* readonly */
  9807. uint numAllChildren;
  9808. /* readonly */
  9809. uint numAttributes;
  9810. /* readonly */
  9811. uint numChildren;
  9812. ObjectAnimation objectAnimation;
  9813. float opacity;
  9814. Orientation orientation;
  9815. UIElement parent;
  9816. IntVector2 position;
  9817. int priority;
  9818. float range;
  9819. /* readonly */
  9820. int refs;
  9821. float repeatRate;
  9822. /* readonly */
  9823. UIElement root;
  9824. /* readonly */
  9825. IntVector2 screenPosition;
  9826. bool selected;
  9827. IntVector2 size;
  9828. bool sortChildren;
  9829. String style;
  9830. /* readonly */
  9831. Array<String> tags;
  9832. bool temporary;
  9833. Texture texture;
  9834. bool tiled;
  9835. TraversalMode traversalMode;
  9836. /* readonly */
  9837. StringHash type;
  9838. /* readonly */
  9839. String typeName;
  9840. bool useDerivedOpacity;
  9841. float value;
  9842. /* readonly */
  9843. VariantMap vars;
  9844. VerticalAlignment verticalAlignment;
  9845. bool visible;
  9846. /* readonly */
  9847. bool visibleEffective;
  9848. /* readonly */
  9849. int weakRefs;
  9850. int width;
  9851. };
  9852. class SmoothedTransform
  9853. {
  9854. // Methods:
  9855. void ApplyAttributes();
  9856. void DrawDebugGeometry(DebugRenderer, bool);
  9857. Variant GetAttribute(const String&) const;
  9858. ValueAnimation GetAttributeAnimation(const String&) const;
  9859. float GetAttributeAnimationSpeed(const String&) const;
  9860. float GetAttributeAnimationTime(const String&) const;
  9861. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9862. Variant GetAttributeDefault(const String&) const;
  9863. bool GetInterceptNetworkUpdate(const String&) const;
  9864. bool HasSubscribedToEvent(Object, const String&);
  9865. bool HasSubscribedToEvent(const String&);
  9866. bool Load(File, bool = false);
  9867. bool Load(VectorBuffer&, bool = false);
  9868. bool LoadJSON(const JSONValue&, bool = false);
  9869. bool LoadXML(const XMLElement&, bool = false);
  9870. void MarkNetworkUpdate() const;
  9871. void Remove();
  9872. void RemoveAttributeAnimation(const String&);
  9873. void RemoveInstanceDefault();
  9874. void RemoveObjectAnimation();
  9875. void ResetToDefault();
  9876. bool Save(File) const;
  9877. bool Save(VectorBuffer&) const;
  9878. bool SaveJSON(JSONValue&) const;
  9879. bool SaveXML(XMLElement&) const;
  9880. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9881. void SetAnimationTime(float);
  9882. bool SetAttribute(const String&, const Variant&);
  9883. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9884. void SetAttributeAnimationSpeed(const String&, float);
  9885. void SetAttributeAnimationTime(const String&, float);
  9886. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9887. void SetInterceptNetworkUpdate(const String&, bool);
  9888. void Update(float, float);
  9889. // Properties:
  9890. bool animationEnabled;
  9891. /* readonly */
  9892. Array<Variant> attributeDefaults;
  9893. /* readonly */
  9894. Array<AttributeInfo> attributeInfos;
  9895. Array<Variant> attributes;
  9896. /* readonly */
  9897. String category;
  9898. bool enabled;
  9899. /* readonly */
  9900. bool enabledEffective;
  9901. /* readonly */
  9902. uint id;
  9903. /* readonly */
  9904. bool inProgress;
  9905. /* readonly */
  9906. Node node;
  9907. /* readonly */
  9908. uint numAttributes;
  9909. ObjectAnimation objectAnimation;
  9910. /* readonly */
  9911. int refs;
  9912. Vector3 targetPosition;
  9913. Quaternion targetRotation;
  9914. Vector3 targetWorldPosition;
  9915. Quaternion targetWorldRotation;
  9916. bool temporary;
  9917. /* readonly */
  9918. StringHash type;
  9919. /* readonly */
  9920. String typeName;
  9921. /* readonly */
  9922. int weakRefs;
  9923. };
  9924. class Sound
  9925. {
  9926. // Methods:
  9927. bool HasSubscribedToEvent(Object, const String&);
  9928. bool HasSubscribedToEvent(const String&);
  9929. bool Load(File);
  9930. bool Load(VectorBuffer&);
  9931. bool Save(File) const;
  9932. bool Save(VectorBuffer&) const;
  9933. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9934. // Properties:
  9935. /* readonly */
  9936. String category;
  9937. /* readonly */
  9938. bool compressed;
  9939. /* readonly */
  9940. float frequency;
  9941. /* readonly */
  9942. float length;
  9943. bool looped;
  9944. /* readonly */
  9945. uint memoryUse;
  9946. String name;
  9947. /* readonly */
  9948. int refs;
  9949. /* readonly */
  9950. uint sampleSize;
  9951. /* readonly */
  9952. bool sixteenBit;
  9953. /* readonly */
  9954. bool stereo;
  9955. /* readonly */
  9956. StringHash type;
  9957. /* readonly */
  9958. String typeName;
  9959. /* readonly */
  9960. uint useTimer;
  9961. /* readonly */
  9962. int weakRefs;
  9963. };
  9964. class SoundListener
  9965. {
  9966. // Methods:
  9967. void ApplyAttributes();
  9968. void DrawDebugGeometry(DebugRenderer, bool);
  9969. Variant GetAttribute(const String&) const;
  9970. ValueAnimation GetAttributeAnimation(const String&) const;
  9971. float GetAttributeAnimationSpeed(const String&) const;
  9972. float GetAttributeAnimationTime(const String&) const;
  9973. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9974. Variant GetAttributeDefault(const String&) const;
  9975. bool GetInterceptNetworkUpdate(const String&) const;
  9976. bool HasSubscribedToEvent(Object, const String&);
  9977. bool HasSubscribedToEvent(const String&);
  9978. bool Load(File, bool = false);
  9979. bool Load(VectorBuffer&, bool = false);
  9980. bool LoadJSON(const JSONValue&, bool = false);
  9981. bool LoadXML(const XMLElement&, bool = false);
  9982. void MarkNetworkUpdate() const;
  9983. void Remove();
  9984. void RemoveAttributeAnimation(const String&);
  9985. void RemoveInstanceDefault();
  9986. void RemoveObjectAnimation();
  9987. void ResetToDefault();
  9988. bool Save(File) const;
  9989. bool Save(VectorBuffer&) const;
  9990. bool SaveJSON(JSONValue&) const;
  9991. bool SaveXML(XMLElement&) const;
  9992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9993. void SetAnimationTime(float);
  9994. bool SetAttribute(const String&, const Variant&);
  9995. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9996. void SetAttributeAnimationSpeed(const String&, float);
  9997. void SetAttributeAnimationTime(const String&, float);
  9998. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9999. void SetInterceptNetworkUpdate(const String&, bool);
  10000. // Properties:
  10001. bool animationEnabled;
  10002. /* readonly */
  10003. Array<Variant> attributeDefaults;
  10004. /* readonly */
  10005. Array<AttributeInfo> attributeInfos;
  10006. Array<Variant> attributes;
  10007. /* readonly */
  10008. String category;
  10009. bool enabled;
  10010. /* readonly */
  10011. bool enabledEffective;
  10012. /* readonly */
  10013. uint id;
  10014. /* readonly */
  10015. Node node;
  10016. /* readonly */
  10017. uint numAttributes;
  10018. ObjectAnimation objectAnimation;
  10019. /* readonly */
  10020. int refs;
  10021. bool temporary;
  10022. /* readonly */
  10023. StringHash type;
  10024. /* readonly */
  10025. String typeName;
  10026. /* readonly */
  10027. int weakRefs;
  10028. };
  10029. class SoundSource
  10030. {
  10031. // Methods:
  10032. void ApplyAttributes();
  10033. void DrawDebugGeometry(DebugRenderer, bool);
  10034. Variant GetAttribute(const String&) const;
  10035. ValueAnimation GetAttributeAnimation(const String&) const;
  10036. float GetAttributeAnimationSpeed(const String&) const;
  10037. float GetAttributeAnimationTime(const String&) const;
  10038. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10039. Variant GetAttributeDefault(const String&) const;
  10040. bool GetInterceptNetworkUpdate(const String&) const;
  10041. bool HasSubscribedToEvent(Object, const String&);
  10042. bool HasSubscribedToEvent(const String&);
  10043. bool Load(File, bool = false);
  10044. bool Load(VectorBuffer&, bool = false);
  10045. bool LoadJSON(const JSONValue&, bool = false);
  10046. bool LoadXML(const XMLElement&, bool = false);
  10047. void MarkNetworkUpdate() const;
  10048. void Play(Sound);
  10049. void Play(Sound, float);
  10050. void Play(Sound, float, float);
  10051. void Play(Sound, float, float, float);
  10052. void Remove();
  10053. void RemoveAttributeAnimation(const String&);
  10054. void RemoveInstanceDefault();
  10055. void RemoveObjectAnimation();
  10056. void ResetToDefault();
  10057. bool Save(File) const;
  10058. bool Save(VectorBuffer&) const;
  10059. bool SaveJSON(JSONValue&) const;
  10060. bool SaveXML(XMLElement&) const;
  10061. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10062. void SetAnimationTime(float);
  10063. bool SetAttribute(const String&, const Variant&);
  10064. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10065. void SetAttributeAnimationSpeed(const String&, float);
  10066. void SetAttributeAnimationTime(const String&, float);
  10067. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10068. void SetInterceptNetworkUpdate(const String&, bool);
  10069. void Stop();
  10070. // Properties:
  10071. bool animationEnabled;
  10072. /* readonly */
  10073. float attenuation;
  10074. /* readonly */
  10075. Array<Variant> attributeDefaults;
  10076. /* readonly */
  10077. Array<AttributeInfo> attributeInfos;
  10078. Array<Variant> attributes;
  10079. AutoRemoveMode autoRemoveMode;
  10080. /* readonly */
  10081. String category;
  10082. bool enabled;
  10083. /* readonly */
  10084. bool enabledEffective;
  10085. float frequency;
  10086. float gain;
  10087. /* readonly */
  10088. uint id;
  10089. /* readonly */
  10090. Node node;
  10091. /* readonly */
  10092. uint numAttributes;
  10093. ObjectAnimation objectAnimation;
  10094. float panning;
  10095. /* readonly */
  10096. bool playing;
  10097. /* readonly */
  10098. int refs;
  10099. /* readonly */
  10100. Sound sound;
  10101. String soundType;
  10102. bool temporary;
  10103. /* readonly */
  10104. float timePosition;
  10105. /* readonly */
  10106. StringHash type;
  10107. /* readonly */
  10108. String typeName;
  10109. /* readonly */
  10110. int weakRefs;
  10111. };
  10112. class SoundSource3D
  10113. {
  10114. // Methods:
  10115. void ApplyAttributes();
  10116. void DrawDebugGeometry(DebugRenderer, bool);
  10117. Variant GetAttribute(const String&) const;
  10118. ValueAnimation GetAttributeAnimation(const String&) const;
  10119. float GetAttributeAnimationSpeed(const String&) const;
  10120. float GetAttributeAnimationTime(const String&) const;
  10121. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10122. Variant GetAttributeDefault(const String&) const;
  10123. bool GetInterceptNetworkUpdate(const String&) const;
  10124. bool HasSubscribedToEvent(Object, const String&);
  10125. bool HasSubscribedToEvent(const String&);
  10126. bool Load(File, bool = false);
  10127. bool Load(VectorBuffer&, bool = false);
  10128. bool LoadJSON(const JSONValue&, bool = false);
  10129. bool LoadXML(const XMLElement&, bool = false);
  10130. void MarkNetworkUpdate() const;
  10131. void Play(Sound);
  10132. void Play(Sound, float);
  10133. void Play(Sound, float, float);
  10134. void Play(Sound, float, float, float);
  10135. void Remove();
  10136. void RemoveAttributeAnimation(const String&);
  10137. void RemoveInstanceDefault();
  10138. void RemoveObjectAnimation();
  10139. void ResetToDefault();
  10140. bool Save(File) const;
  10141. bool Save(VectorBuffer&) const;
  10142. bool SaveJSON(JSONValue&) const;
  10143. bool SaveXML(XMLElement&) const;
  10144. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10145. void SetAngleAttenuation(float, float);
  10146. void SetAnimationTime(float);
  10147. bool SetAttribute(const String&, const Variant&);
  10148. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10149. void SetAttributeAnimationSpeed(const String&, float);
  10150. void SetAttributeAnimationTime(const String&, float);
  10151. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10152. void SetDistanceAttenuation(float, float, float);
  10153. void SetInterceptNetworkUpdate(const String&, bool);
  10154. void Stop();
  10155. // Properties:
  10156. bool animationEnabled;
  10157. /* readonly */
  10158. float attenuation;
  10159. /* readonly */
  10160. Array<Variant> attributeDefaults;
  10161. /* readonly */
  10162. Array<AttributeInfo> attributeInfos;
  10163. Array<Variant> attributes;
  10164. AutoRemoveMode autoRemoveMode;
  10165. /* readonly */
  10166. String category;
  10167. bool enabled;
  10168. /* readonly */
  10169. bool enabledEffective;
  10170. float farDistance;
  10171. float frequency;
  10172. float gain;
  10173. /* readonly */
  10174. uint id;
  10175. float innerAngle;
  10176. float nearDistance;
  10177. /* readonly */
  10178. Node node;
  10179. /* readonly */
  10180. uint numAttributes;
  10181. ObjectAnimation objectAnimation;
  10182. float outerAngle;
  10183. float panning;
  10184. /* readonly */
  10185. bool playing;
  10186. /* readonly */
  10187. int refs;
  10188. float rolloffFactor;
  10189. /* readonly */
  10190. Sound sound;
  10191. String soundType;
  10192. bool temporary;
  10193. /* readonly */
  10194. float timePosition;
  10195. /* readonly */
  10196. StringHash type;
  10197. /* readonly */
  10198. String typeName;
  10199. /* readonly */
  10200. int weakRefs;
  10201. };
  10202. class Sphere
  10203. {
  10204. // Methods:
  10205. void Clear();
  10206. void Define(const BoundingBox&);
  10207. void Define(const Frustum&);
  10208. void Define(const Polyhedron&);
  10209. void Define(const Sphere&);
  10210. void Define(const Vector3&, float);
  10211. bool Defined() const;
  10212. float Distance(const Vector3&) const;
  10213. Intersection IsInside(const BoundingBox&) const;
  10214. Intersection IsInside(const Sphere&) const;
  10215. Intersection IsInside(const Vector3&) const;
  10216. Intersection IsInsideFast(const BoundingBox&) const;
  10217. Intersection IsInsideFast(const Sphere&) const;
  10218. void Merge(const BoundingBox&);
  10219. void Merge(const Frustum&);
  10220. void Merge(const Sphere&);
  10221. void Merge(const Vector3&);
  10222. // Properties:
  10223. Vector3 center;
  10224. float radius;
  10225. };
  10226. class Spline
  10227. {
  10228. // Methods:
  10229. void AddKnot(const Variant&);
  10230. void AddKnot(const Variant&, uint);
  10231. void Clear();
  10232. Variant GetPoint(float);
  10233. void RemoveKnot();
  10234. void RemoveKnot(uint);
  10235. // Properties:
  10236. InterpolationMode interpolationMode;
  10237. Array<Variant> knot;
  10238. Array<Variant> knots;
  10239. };
  10240. class SplinePath
  10241. {
  10242. // Methods:
  10243. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10244. void ApplyAttributes();
  10245. void ClearControlPoints();
  10246. void DrawDebugGeometry(DebugRenderer, bool);
  10247. Variant GetAttribute(const String&) const;
  10248. ValueAnimation GetAttributeAnimation(const String&) const;
  10249. float GetAttributeAnimationSpeed(const String&) const;
  10250. float GetAttributeAnimationTime(const String&) const;
  10251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10252. Variant GetAttributeDefault(const String&) const;
  10253. bool GetInterceptNetworkUpdate(const String&) const;
  10254. Vector3 GetPoint(float) const;
  10255. Vector3 GetPosition() const;
  10256. bool HasSubscribedToEvent(Object, const String&);
  10257. bool HasSubscribedToEvent(const String&);
  10258. bool Load(File, bool = false);
  10259. bool Load(VectorBuffer&, bool = false);
  10260. bool LoadJSON(const JSONValue&, bool = false);
  10261. bool LoadXML(const XMLElement&, bool = false);
  10262. void MarkNetworkUpdate() const;
  10263. void Move(float);
  10264. void Remove();
  10265. void RemoveAttributeAnimation(const String&);
  10266. void RemoveControlPoint(Node);
  10267. void RemoveInstanceDefault();
  10268. void RemoveObjectAnimation();
  10269. void Reset();
  10270. void ResetToDefault();
  10271. bool Save(File) const;
  10272. bool Save(VectorBuffer&) const;
  10273. bool SaveJSON(JSONValue&) const;
  10274. bool SaveXML(XMLElement&) const;
  10275. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10276. void SetAnimationTime(float);
  10277. bool SetAttribute(const String&, const Variant&);
  10278. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10279. void SetAttributeAnimationSpeed(const String&, float);
  10280. void SetAttributeAnimationTime(const String&, float);
  10281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10282. void SetInterceptNetworkUpdate(const String&, bool);
  10283. void SetPosition(float);
  10284. // Properties:
  10285. bool animationEnabled;
  10286. /* readonly */
  10287. Array<Variant> attributeDefaults;
  10288. /* readonly */
  10289. Array<AttributeInfo> attributeInfos;
  10290. Array<Variant> attributes;
  10291. /* readonly */
  10292. String category;
  10293. Node controlledNode;
  10294. bool enabled;
  10295. /* readonly */
  10296. bool enabledEffective;
  10297. /* readonly */
  10298. uint id;
  10299. InterpolationMode interpolationMode;
  10300. /* readonly */
  10301. bool isFinished;
  10302. /* readonly */
  10303. float length;
  10304. /* readonly */
  10305. Node node;
  10306. /* readonly */
  10307. uint numAttributes;
  10308. ObjectAnimation objectAnimation;
  10309. /* readonly */
  10310. int refs;
  10311. float speed;
  10312. bool temporary;
  10313. /* readonly */
  10314. StringHash type;
  10315. /* readonly */
  10316. String typeName;
  10317. /* readonly */
  10318. int weakRefs;
  10319. };
  10320. class Sprite
  10321. {
  10322. // Methods:
  10323. void AddChild(UIElement);
  10324. void AddTag(const String&);
  10325. void AddTags(const String&, int8 = ';');
  10326. void ApplyAttributes();
  10327. void BringToFront();
  10328. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10329. void DisableLayoutUpdate();
  10330. IntVector2 ElementToScreen(const IntVector2&);
  10331. void EnableLayoutUpdate();
  10332. uint FindChild(UIElement) const;
  10333. Variant GetAttribute(const String&) const;
  10334. ValueAnimation GetAttributeAnimation(const String&) const;
  10335. float GetAttributeAnimationSpeed(const String&) const;
  10336. float GetAttributeAnimationTime(const String&) const;
  10337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10338. Variant GetAttributeDefault(const String&) const;
  10339. UIElement GetChild(const String&, bool = false) const;
  10340. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10341. Array<UIElement> GetChildren(bool = false) const;
  10342. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10343. UIElement GetElementEventSender() const;
  10344. bool GetInterceptNetworkUpdate(const String&) const;
  10345. uint GetNumChildren(bool) const;
  10346. bool HasSubscribedToEvent(Object, const String&);
  10347. bool HasSubscribedToEvent(const String&);
  10348. bool HasTag(const String&) const;
  10349. void InsertChild(uint, UIElement);
  10350. bool IsInside(IntVector2, bool);
  10351. bool IsInsideCombined(IntVector2, bool);
  10352. bool Load(File, bool = false);
  10353. bool Load(VectorBuffer&, bool = false);
  10354. bool LoadChildXML(XMLFile, XMLFile = null);
  10355. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10356. bool LoadJSON(const JSONValue&, bool = false);
  10357. bool LoadXML(File);
  10358. bool LoadXML(VectorBuffer&);
  10359. bool LoadXML(XMLFile, XMLFile);
  10360. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10361. bool LoadXML(const XMLElement&, bool = false);
  10362. void MarkNetworkUpdate() const;
  10363. void Remove();
  10364. void RemoveAllChildren();
  10365. void RemoveAllTags();
  10366. void RemoveAttributeAnimation(const String&);
  10367. void RemoveChild(UIElement, uint = 0);
  10368. void RemoveChild(uint);
  10369. void RemoveInstanceDefault();
  10370. void RemoveObjectAnimation();
  10371. bool RemoveTag(const String&);
  10372. void ResetDeepEnabled();
  10373. void ResetToDefault();
  10374. bool Save(File) const;
  10375. bool Save(VectorBuffer&) const;
  10376. bool SaveJSON(JSONValue&) const;
  10377. bool SaveXML(File, const String& = "\t");
  10378. bool SaveXML(VectorBuffer&, const String& = "\t");
  10379. bool SaveXML(XMLElement&) const;
  10380. IntVector2 ScreenToElement(const IntVector2&);
  10381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10382. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10383. void SetAnimationTime(float);
  10384. bool SetAttribute(const String&, const Variant&);
  10385. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10386. void SetAttributeAnimationSpeed(const String&, float);
  10387. void SetAttributeAnimationTime(const String&, float);
  10388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10389. void SetDeepEnabled(bool);
  10390. void SetEnabledRecursive(bool);
  10391. void SetFixedHeight(int);
  10392. void SetFixedSize(int, int);
  10393. void SetFixedWidth(int);
  10394. void SetFullImageRect();
  10395. void SetHotSpot(int, int);
  10396. void SetInterceptNetworkUpdate(const String&, bool);
  10397. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10398. void SetMaxSize(int, int);
  10399. void SetMinSize(int, int);
  10400. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10401. void SetPosition(float, float);
  10402. void SetScale(float);
  10403. void SetScale(float, float);
  10404. void SetSize(int, int);
  10405. bool SetStyle(const String&, XMLFile = null);
  10406. bool SetStyle(const XMLElement&);
  10407. bool SetStyleAuto(XMLFile = null);
  10408. void UpdateLayout();
  10409. const Variant& GetVar(const StringHash&);
  10410. // Properties:
  10411. bool animationEnabled;
  10412. /* readonly */
  10413. Array<Variant> attributeDefaults;
  10414. /* readonly */
  10415. Array<AttributeInfo> attributeInfos;
  10416. Array<Variant> attributes;
  10417. BlendMode blendMode;
  10418. bool bringToBack;
  10419. bool bringToFront;
  10420. /* readonly */
  10421. String category;
  10422. /* readonly */
  10423. IntVector2 childOffset;
  10424. /* readonly */
  10425. Array<UIElement> children;
  10426. IntRect clipBorder;
  10427. bool clipChildren;
  10428. /* writeonly */
  10429. Color color;
  10430. /* readonly */
  10431. bool colorGradient;
  10432. Array<Color> colors;
  10433. /* readonly */
  10434. IntRect combinedScreenRect;
  10435. XMLFile defaultStyle;
  10436. /* readonly */
  10437. float derivedOpacity;
  10438. /* readonly */
  10439. uint dragButtonCombo;
  10440. /* readonly */
  10441. int dragButtonCount;
  10442. uint dragDropMode;
  10443. bool editable;
  10444. bool elementEventSender;
  10445. bool enabled;
  10446. /* readonly */
  10447. bool enabledSelf;
  10448. /* readonly */
  10449. bool fixedHeight;
  10450. /* readonly */
  10451. bool fixedSize;
  10452. /* readonly */
  10453. bool fixedWidth;
  10454. bool focus;
  10455. FocusMode focusMode;
  10456. int height;
  10457. HorizontalAlignment horizontalAlignment;
  10458. IntVector2 hotSpot;
  10459. /* readonly */
  10460. bool hovering;
  10461. IntRect imageRect;
  10462. int indent;
  10463. int indentSpacing;
  10464. /* readonly */
  10465. int indentWidth;
  10466. bool internal;
  10467. IntRect layoutBorder;
  10468. Vector2 layoutFlexScale;
  10469. LayoutMode layoutMode;
  10470. int layoutSpacing;
  10471. int maxHeight;
  10472. IntVector2 maxSize;
  10473. int maxWidth;
  10474. int minHeight;
  10475. IntVector2 minSize;
  10476. int minWidth;
  10477. String name;
  10478. /* readonly */
  10479. uint numAllChildren;
  10480. /* readonly */
  10481. uint numAttributes;
  10482. /* readonly */
  10483. uint numChildren;
  10484. ObjectAnimation objectAnimation;
  10485. float opacity;
  10486. UIElement parent;
  10487. Vector2 position;
  10488. int priority;
  10489. /* readonly */
  10490. int refs;
  10491. /* readonly */
  10492. UIElement root;
  10493. float rotation;
  10494. Vector2 scale;
  10495. /* readonly */
  10496. IntVector2 screenPosition;
  10497. bool selected;
  10498. IntVector2 size;
  10499. bool sortChildren;
  10500. String style;
  10501. /* readonly */
  10502. Array<String> tags;
  10503. bool temporary;
  10504. Texture texture;
  10505. TraversalMode traversalMode;
  10506. /* readonly */
  10507. StringHash type;
  10508. /* readonly */
  10509. String typeName;
  10510. bool useDerivedOpacity;
  10511. /* readonly */
  10512. VariantMap vars;
  10513. VerticalAlignment verticalAlignment;
  10514. bool visible;
  10515. /* readonly */
  10516. bool visibleEffective;
  10517. /* readonly */
  10518. int weakRefs;
  10519. int width;
  10520. };
  10521. class Sprite2D
  10522. {
  10523. // Methods:
  10524. bool HasSubscribedToEvent(Object, const String&);
  10525. bool HasSubscribedToEvent(const String&);
  10526. bool Load(File);
  10527. bool Load(VectorBuffer&);
  10528. bool Save(File) const;
  10529. bool Save(VectorBuffer&) const;
  10530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10531. // Properties:
  10532. /* readonly */
  10533. String category;
  10534. Vector2 hotSpot;
  10535. /* readonly */
  10536. uint memoryUse;
  10537. String name;
  10538. IntVector2 offset;
  10539. IntRect rectangle;
  10540. /* readonly */
  10541. int refs;
  10542. Texture2D texture;
  10543. float textureEdgeOffset;
  10544. /* readonly */
  10545. StringHash type;
  10546. /* readonly */
  10547. String typeName;
  10548. /* readonly */
  10549. uint useTimer;
  10550. /* readonly */
  10551. int weakRefs;
  10552. };
  10553. class SpriteSheet2D
  10554. {
  10555. // Methods:
  10556. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10557. Sprite2D GetSprite(const String&);
  10558. bool HasSubscribedToEvent(Object, const String&);
  10559. bool HasSubscribedToEvent(const String&);
  10560. bool Load(File);
  10561. bool Load(VectorBuffer&);
  10562. bool Save(File) const;
  10563. bool Save(VectorBuffer&) const;
  10564. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10565. // Properties:
  10566. /* readonly */
  10567. String category;
  10568. /* readonly */
  10569. uint memoryUse;
  10570. String name;
  10571. /* readonly */
  10572. int refs;
  10573. Texture2D texture;
  10574. /* readonly */
  10575. StringHash type;
  10576. /* readonly */
  10577. String typeName;
  10578. /* readonly */
  10579. uint useTimer;
  10580. /* readonly */
  10581. int weakRefs;
  10582. };
  10583. class StaticModel
  10584. {
  10585. // Methods:
  10586. void ApplyAttributes();
  10587. void ApplyMaterialList(const String& = String ( ));
  10588. void DrawDebugGeometry(DebugRenderer, bool);
  10589. Variant GetAttribute(const String&) const;
  10590. ValueAnimation GetAttributeAnimation(const String&) const;
  10591. float GetAttributeAnimationSpeed(const String&) const;
  10592. float GetAttributeAnimationTime(const String&) const;
  10593. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10594. Variant GetAttributeDefault(const String&) const;
  10595. bool GetInterceptNetworkUpdate(const String&) const;
  10596. bool HasSubscribedToEvent(Object, const String&);
  10597. bool HasSubscribedToEvent(const String&);
  10598. bool IsInView(Camera) const;
  10599. bool IsInside(const Vector3&) const;
  10600. bool IsInsideLocal(const Vector3&) const;
  10601. bool Load(File, bool = false);
  10602. bool Load(VectorBuffer&, bool = false);
  10603. bool LoadJSON(const JSONValue&, bool = false);
  10604. bool LoadXML(const XMLElement&, bool = false);
  10605. void MarkNetworkUpdate() const;
  10606. void Remove();
  10607. void RemoveAttributeAnimation(const String&);
  10608. void RemoveInstanceDefault();
  10609. void RemoveObjectAnimation();
  10610. void ResetToDefault();
  10611. bool Save(File) const;
  10612. bool Save(VectorBuffer&) const;
  10613. bool SaveJSON(JSONValue&) const;
  10614. bool SaveXML(XMLElement&) const;
  10615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10616. void SetAnimationTime(float);
  10617. bool SetAttribute(const String&, const Variant&);
  10618. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10619. void SetAttributeAnimationSpeed(const String&, float);
  10620. void SetAttributeAnimationTime(const String&, float);
  10621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10622. void SetInterceptNetworkUpdate(const String&, bool);
  10623. // Properties:
  10624. bool animationEnabled;
  10625. /* readonly */
  10626. Array<Variant> attributeDefaults;
  10627. /* readonly */
  10628. Array<AttributeInfo> attributeInfos;
  10629. Array<Variant> attributes;
  10630. /* readonly */
  10631. BoundingBox boundingBox;
  10632. bool castShadows;
  10633. /* readonly */
  10634. String category;
  10635. float drawDistance;
  10636. bool enabled;
  10637. /* readonly */
  10638. bool enabledEffective;
  10639. /* readonly */
  10640. uint id;
  10641. /* readonly */
  10642. bool inView;
  10643. uint lightMask;
  10644. float lodBias;
  10645. /* writeonly */
  10646. Material material;
  10647. Array<Material> materials;
  10648. uint maxLights;
  10649. Model model;
  10650. /* readonly */
  10651. Node node;
  10652. /* readonly */
  10653. uint numAttributes;
  10654. /* readonly */
  10655. uint numGeometries;
  10656. ObjectAnimation objectAnimation;
  10657. bool occludee;
  10658. bool occluder;
  10659. uint occlusionLodLevel;
  10660. /* readonly */
  10661. int refs;
  10662. float shadowDistance;
  10663. uint shadowMask;
  10664. bool temporary;
  10665. /* readonly */
  10666. StringHash type;
  10667. /* readonly */
  10668. String typeName;
  10669. uint viewMask;
  10670. /* readonly */
  10671. int weakRefs;
  10672. /* readonly */
  10673. BoundingBox worldBoundingBox;
  10674. uint zoneMask;
  10675. };
  10676. class StaticModelGroup
  10677. {
  10678. // Methods:
  10679. void AddInstanceNode(Node);
  10680. void ApplyAttributes();
  10681. void ApplyMaterialList(const String& = String ( ));
  10682. void DrawDebugGeometry(DebugRenderer, bool);
  10683. Variant GetAttribute(const String&) const;
  10684. ValueAnimation GetAttributeAnimation(const String&) const;
  10685. float GetAttributeAnimationSpeed(const String&) const;
  10686. float GetAttributeAnimationTime(const String&) const;
  10687. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10688. Variant GetAttributeDefault(const String&) const;
  10689. bool GetInterceptNetworkUpdate(const String&) const;
  10690. bool HasSubscribedToEvent(Object, const String&);
  10691. bool HasSubscribedToEvent(const String&);
  10692. bool IsInView(Camera) const;
  10693. bool Load(File, bool = false);
  10694. bool Load(VectorBuffer&, bool = false);
  10695. bool LoadJSON(const JSONValue&, bool = false);
  10696. bool LoadXML(const XMLElement&, bool = false);
  10697. void MarkNetworkUpdate() const;
  10698. void Remove();
  10699. void RemoveAllInstanceNodes();
  10700. void RemoveAttributeAnimation(const String&);
  10701. void RemoveInstanceDefault();
  10702. void RemoveInstanceNode(Node);
  10703. void RemoveObjectAnimation();
  10704. void ResetToDefault();
  10705. bool Save(File) const;
  10706. bool Save(VectorBuffer&) const;
  10707. bool SaveJSON(JSONValue&) const;
  10708. bool SaveXML(XMLElement&) const;
  10709. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10710. void SetAnimationTime(float);
  10711. bool SetAttribute(const String&, const Variant&);
  10712. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10713. void SetAttributeAnimationSpeed(const String&, float);
  10714. void SetAttributeAnimationTime(const String&, float);
  10715. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10716. void SetInterceptNetworkUpdate(const String&, bool);
  10717. // Properties:
  10718. bool animationEnabled;
  10719. /* readonly */
  10720. Array<Variant> attributeDefaults;
  10721. /* readonly */
  10722. Array<AttributeInfo> attributeInfos;
  10723. Array<Variant> attributes;
  10724. /* readonly */
  10725. BoundingBox boundingBox;
  10726. bool castShadows;
  10727. /* readonly */
  10728. String category;
  10729. float drawDistance;
  10730. bool enabled;
  10731. /* readonly */
  10732. bool enabledEffective;
  10733. /* readonly */
  10734. uint id;
  10735. /* readonly */
  10736. bool inView;
  10737. /* readonly */
  10738. Array<Node> instanceNodes;
  10739. uint lightMask;
  10740. float lodBias;
  10741. /* writeonly */
  10742. Material material;
  10743. Array<Material> materials;
  10744. uint maxLights;
  10745. Model model;
  10746. /* readonly */
  10747. Node node;
  10748. /* readonly */
  10749. uint numAttributes;
  10750. /* readonly */
  10751. uint numGeometries;
  10752. /* readonly */
  10753. uint numInstanceNodes;
  10754. ObjectAnimation objectAnimation;
  10755. bool occludee;
  10756. bool occluder;
  10757. uint occlusionLodLevel;
  10758. /* readonly */
  10759. int refs;
  10760. float shadowDistance;
  10761. uint shadowMask;
  10762. bool temporary;
  10763. /* readonly */
  10764. StringHash type;
  10765. /* readonly */
  10766. String typeName;
  10767. uint viewMask;
  10768. /* readonly */
  10769. int weakRefs;
  10770. /* readonly */
  10771. BoundingBox worldBoundingBox;
  10772. /* readonly */
  10773. Zone zone;
  10774. uint zoneMask;
  10775. };
  10776. class StaticSprite2D
  10777. {
  10778. // Methods:
  10779. void ApplyAttributes();
  10780. void DrawDebugGeometry(DebugRenderer, bool);
  10781. Variant GetAttribute(const String&) const;
  10782. ValueAnimation GetAttributeAnimation(const String&) const;
  10783. float GetAttributeAnimationSpeed(const String&) const;
  10784. float GetAttributeAnimationTime(const String&) const;
  10785. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10786. Variant GetAttributeDefault(const String&) const;
  10787. bool GetInterceptNetworkUpdate(const String&) const;
  10788. bool HasSubscribedToEvent(Object, const String&);
  10789. bool HasSubscribedToEvent(const String&);
  10790. bool IsInView(Camera) const;
  10791. bool Load(File, bool = false);
  10792. bool Load(VectorBuffer&, bool = false);
  10793. bool LoadJSON(const JSONValue&, bool = false);
  10794. bool LoadXML(const XMLElement&, bool = false);
  10795. void MarkNetworkUpdate() const;
  10796. void Remove();
  10797. void RemoveAttributeAnimation(const String&);
  10798. void RemoveInstanceDefault();
  10799. void RemoveObjectAnimation();
  10800. void ResetToDefault();
  10801. bool Save(File) const;
  10802. bool Save(VectorBuffer&) const;
  10803. bool SaveJSON(JSONValue&) const;
  10804. bool SaveXML(XMLElement&) const;
  10805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10806. void SetAnimationTime(float);
  10807. bool SetAttribute(const String&, const Variant&);
  10808. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10809. void SetAttributeAnimationSpeed(const String&, float);
  10810. void SetAttributeAnimationTime(const String&, float);
  10811. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10812. void SetFlip(bool, bool);
  10813. void SetInterceptNetworkUpdate(const String&, bool);
  10814. // Properties:
  10815. float alpha;
  10816. bool animationEnabled;
  10817. /* readonly */
  10818. Array<Variant> attributeDefaults;
  10819. /* readonly */
  10820. Array<AttributeInfo> attributeInfos;
  10821. Array<Variant> attributes;
  10822. BlendMode blendMode;
  10823. /* readonly */
  10824. BoundingBox boundingBox;
  10825. bool castShadows;
  10826. /* readonly */
  10827. String category;
  10828. Color color;
  10829. Material customMaterial;
  10830. float drawDistance;
  10831. bool enabled;
  10832. /* readonly */
  10833. bool enabledEffective;
  10834. bool flipX;
  10835. bool flipY;
  10836. Vector2 hotSpot;
  10837. /* readonly */
  10838. uint id;
  10839. /* readonly */
  10840. bool inView;
  10841. int layer;
  10842. uint lightMask;
  10843. float lodBias;
  10844. uint maxLights;
  10845. /* readonly */
  10846. Node node;
  10847. /* readonly */
  10848. uint numAttributes;
  10849. ObjectAnimation objectAnimation;
  10850. bool occludee;
  10851. bool occluder;
  10852. int orderInLayer;
  10853. /* readonly */
  10854. int refs;
  10855. float shadowDistance;
  10856. uint shadowMask;
  10857. Sprite2D sprite;
  10858. bool temporary;
  10859. /* readonly */
  10860. StringHash type;
  10861. /* readonly */
  10862. String typeName;
  10863. bool useHotSpot;
  10864. uint viewMask;
  10865. /* readonly */
  10866. int weakRefs;
  10867. /* readonly */
  10868. BoundingBox worldBoundingBox;
  10869. uint zoneMask;
  10870. };
  10871. class String
  10872. {
  10873. // Methods:
  10874. void AppendUTF8(uint);
  10875. uint AtUTF8(uint) const;
  10876. uint ByteOffsetUTF8(uint) const;
  10877. void Clear();
  10878. int Compare(const String&, bool = true) const;
  10879. bool Contains(const String&, bool = true) const;
  10880. bool Contains(uint8, bool = true) const;
  10881. bool EndsWith(const String&, bool = true) const;
  10882. uint Find(const String&, uint = 0, bool = true) const;
  10883. uint Find(uint8, uint = 0, bool = true) const;
  10884. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10885. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10886. void Join(Array<String>&, const String&);
  10887. uint NextUTF8Char(uint&) const;
  10888. void Replace(const String&, const String&, bool = true);
  10889. void Replace(uint8, uint8, bool = true);
  10890. void ReplaceUTF8(uint, uint);
  10891. String Replaced(const String&, const String&, bool = true) const;
  10892. String Replaced(uint8, uint8, bool = true) const;
  10893. void Resize(uint);
  10894. void SetUTF8FromLatin1(const String&);
  10895. Array<String> Split(uint8, bool = false) const;
  10896. bool StartsWith(const String&, bool = true) const;
  10897. String Substring(uint) const;
  10898. String Substring(uint, uint) const;
  10899. String SubstringUTF8(uint) const;
  10900. String SubstringUTF8(uint, uint) const;
  10901. bool ToBool() const;
  10902. Color ToColor() const;
  10903. double ToDouble() const;
  10904. float ToFloat() const;
  10905. int ToInt(int = 10) const;
  10906. IntRect ToIntRect() const;
  10907. IntVector2 ToIntVector2() const;
  10908. String ToLower() const;
  10909. Matrix3 ToMatrix3() const;
  10910. Matrix3x4 ToMatrix3x4() const;
  10911. Matrix4 ToMatrix4() const;
  10912. Quaternion ToQuaternion() const;
  10913. uint ToUInt(int = 10) const;
  10914. String ToUpper() const;
  10915. Vector2 ToVector2() const;
  10916. Vector3 ToVector3() const;
  10917. Vector4 ToVector4(bool = false) const;
  10918. Variant ToVectorVariant() const;
  10919. String Trimmed() const;
  10920. // Properties:
  10921. /* readonly */
  10922. bool empty;
  10923. /* readonly */
  10924. uint length;
  10925. /* readonly */
  10926. uint utf8Length;
  10927. };
  10928. class StringHash
  10929. {
  10930. // Methods:
  10931. String ToString() const;
  10932. // Properties:
  10933. /* readonly */
  10934. uint value;
  10935. };
  10936. class Technique
  10937. {
  10938. // Methods:
  10939. Technique Clone(const String& = String ( )) const;
  10940. Pass CreatePass(const String&);
  10941. Pass GetPass(const String&);
  10942. Pass GetSupportedPass(const String&);
  10943. bool HasPass(const String&) const;
  10944. bool HasSubscribedToEvent(Object, const String&);
  10945. bool HasSubscribedToEvent(const String&);
  10946. bool Load(File);
  10947. bool Load(VectorBuffer&);
  10948. void RemovePass(const String&);
  10949. bool Save(File) const;
  10950. bool Save(VectorBuffer&) const;
  10951. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10952. // Properties:
  10953. /* readonly */
  10954. String category;
  10955. bool desktop;
  10956. /* readonly */
  10957. uint memoryUse;
  10958. String name;
  10959. /* readonly */
  10960. uint numPasses;
  10961. /* readonly */
  10962. Array<String> passNames;
  10963. /* readonly */
  10964. Array<Pass> passes;
  10965. /* readonly */
  10966. int refs;
  10967. /* readonly */
  10968. bool supported;
  10969. /* readonly */
  10970. StringHash type;
  10971. /* readonly */
  10972. String typeName;
  10973. /* readonly */
  10974. uint useTimer;
  10975. /* readonly */
  10976. int weakRefs;
  10977. };
  10978. class TechniqueEntry
  10979. {
  10980. // Properties:
  10981. float lodDistance;
  10982. int qualityLevel;
  10983. Technique technique;
  10984. };
  10985. class Terrain
  10986. {
  10987. // Methods:
  10988. void ApplyAttributes();
  10989. void ApplyHeightMap();
  10990. void DrawDebugGeometry(DebugRenderer, bool);
  10991. Variant GetAttribute(const String&) const;
  10992. ValueAnimation GetAttributeAnimation(const String&) const;
  10993. float GetAttributeAnimationSpeed(const String&) const;
  10994. float GetAttributeAnimationTime(const String&) const;
  10995. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10996. Variant GetAttributeDefault(const String&) const;
  10997. float GetHeight(const Vector3&) const;
  10998. bool GetInterceptNetworkUpdate(const String&) const;
  10999. TerrainPatch GetNeighborPatch(int, int) const;
  11000. Vector3 GetNormal(const Vector3&) const;
  11001. TerrainPatch GetPatch(int, int) const;
  11002. bool HasSubscribedToEvent(Object, const String&);
  11003. bool HasSubscribedToEvent(const String&);
  11004. bool Load(File, bool = false);
  11005. bool Load(VectorBuffer&, bool = false);
  11006. bool LoadJSON(const JSONValue&, bool = false);
  11007. bool LoadXML(const XMLElement&, bool = false);
  11008. void MarkNetworkUpdate() const;
  11009. void Remove();
  11010. void RemoveAttributeAnimation(const String&);
  11011. void RemoveInstanceDefault();
  11012. void RemoveObjectAnimation();
  11013. void ResetToDefault();
  11014. bool Save(File) const;
  11015. bool Save(VectorBuffer&) const;
  11016. bool SaveJSON(JSONValue&) const;
  11017. bool SaveXML(XMLElement&) const;
  11018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11019. void SetAnimationTime(float);
  11020. bool SetAttribute(const String&, const Variant&);
  11021. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11022. void SetAttributeAnimationSpeed(const String&, float);
  11023. void SetAttributeAnimationTime(const String&, float);
  11024. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11025. void SetInterceptNetworkUpdate(const String&, bool);
  11026. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11027. IntVector2 WorldToHeightMap(const Vector3&) const;
  11028. // Properties:
  11029. bool animationEnabled;
  11030. /* readonly */
  11031. Array<Variant> attributeDefaults;
  11032. /* readonly */
  11033. Array<AttributeInfo> attributeInfos;
  11034. Array<Variant> attributes;
  11035. bool castShadows;
  11036. /* readonly */
  11037. String category;
  11038. float drawDistance;
  11039. Terrain eastNeighbor;
  11040. bool enabled;
  11041. /* readonly */
  11042. bool enabledEffective;
  11043. Image heightMap;
  11044. /* readonly */
  11045. uint id;
  11046. uint lightMask;
  11047. float lodBias;
  11048. Material material;
  11049. uint maxLights;
  11050. uint maxLodLevels;
  11051. /* readonly */
  11052. Node node;
  11053. Terrain northNeighbor;
  11054. /* readonly */
  11055. uint numAttributes;
  11056. /* readonly */
  11057. IntVector2 numPatches;
  11058. /* readonly */
  11059. IntVector2 numVertices;
  11060. ObjectAnimation objectAnimation;
  11061. bool occludee;
  11062. bool occluder;
  11063. uint occlusionLodLevel;
  11064. int patchSize;
  11065. /* readonly */
  11066. Array<TerrainPatch> patches;
  11067. /* readonly */
  11068. int refs;
  11069. float shadowDistance;
  11070. uint shadowMask;
  11071. bool smoothing;
  11072. Terrain southNeighbor;
  11073. Vector3 spacing;
  11074. bool temporary;
  11075. /* readonly */
  11076. StringHash type;
  11077. /* readonly */
  11078. String typeName;
  11079. uint viewMask;
  11080. /* readonly */
  11081. int weakRefs;
  11082. Terrain westNeighbor;
  11083. uint zoneMask;
  11084. };
  11085. class TerrainPatch
  11086. {
  11087. // Methods:
  11088. void ApplyAttributes();
  11089. void DrawDebugGeometry(DebugRenderer, bool);
  11090. Variant GetAttribute(const String&) const;
  11091. ValueAnimation GetAttributeAnimation(const String&) const;
  11092. float GetAttributeAnimationSpeed(const String&) const;
  11093. float GetAttributeAnimationTime(const String&) const;
  11094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11095. Variant GetAttributeDefault(const String&) const;
  11096. bool GetInterceptNetworkUpdate(const String&) const;
  11097. bool HasSubscribedToEvent(Object, const String&);
  11098. bool HasSubscribedToEvent(const String&);
  11099. bool IsInView(Camera) const;
  11100. bool Load(File, bool = false);
  11101. bool Load(VectorBuffer&, bool = false);
  11102. bool LoadJSON(const JSONValue&, bool = false);
  11103. bool LoadXML(const XMLElement&, bool = false);
  11104. void MarkNetworkUpdate() const;
  11105. void Remove();
  11106. void RemoveAttributeAnimation(const String&);
  11107. void RemoveInstanceDefault();
  11108. void RemoveObjectAnimation();
  11109. void ResetToDefault();
  11110. bool Save(File) const;
  11111. bool Save(VectorBuffer&) const;
  11112. bool SaveJSON(JSONValue&) const;
  11113. bool SaveXML(XMLElement&) const;
  11114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11115. void SetAnimationTime(float);
  11116. bool SetAttribute(const String&, const Variant&);
  11117. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11118. void SetAttributeAnimationSpeed(const String&, float);
  11119. void SetAttributeAnimationTime(const String&, float);
  11120. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11121. void SetInterceptNetworkUpdate(const String&, bool);
  11122. // Properties:
  11123. bool animationEnabled;
  11124. /* readonly */
  11125. Array<Variant> attributeDefaults;
  11126. /* readonly */
  11127. Array<AttributeInfo> attributeInfos;
  11128. Array<Variant> attributes;
  11129. /* readonly */
  11130. BoundingBox boundingBox;
  11131. bool castShadows;
  11132. /* readonly */
  11133. String category;
  11134. float drawDistance;
  11135. bool enabled;
  11136. /* readonly */
  11137. bool enabledEffective;
  11138. /* readonly */
  11139. uint id;
  11140. /* readonly */
  11141. bool inView;
  11142. uint lightMask;
  11143. float lodBias;
  11144. uint maxLights;
  11145. /* readonly */
  11146. Node node;
  11147. /* readonly */
  11148. uint numAttributes;
  11149. ObjectAnimation objectAnimation;
  11150. bool occludee;
  11151. bool occluder;
  11152. /* readonly */
  11153. int refs;
  11154. float shadowDistance;
  11155. uint shadowMask;
  11156. bool temporary;
  11157. /* readonly */
  11158. StringHash type;
  11159. /* readonly */
  11160. String typeName;
  11161. uint viewMask;
  11162. /* readonly */
  11163. int weakRefs;
  11164. /* readonly */
  11165. BoundingBox worldBoundingBox;
  11166. uint zoneMask;
  11167. };
  11168. class Text
  11169. {
  11170. // Methods:
  11171. void AddChild(UIElement);
  11172. void AddTag(const String&);
  11173. void AddTags(const String&, int8 = ';');
  11174. void ApplyAttributes();
  11175. void BringToFront();
  11176. void ClearSelection();
  11177. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11178. void DisableLayoutUpdate();
  11179. IntVector2 ElementToScreen(const IntVector2&);
  11180. void EnableLayoutUpdate();
  11181. uint FindChild(UIElement) const;
  11182. Variant GetAttribute(const String&) const;
  11183. ValueAnimation GetAttributeAnimation(const String&) const;
  11184. float GetAttributeAnimationSpeed(const String&) const;
  11185. float GetAttributeAnimationTime(const String&) const;
  11186. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11187. Variant GetAttributeDefault(const String&) const;
  11188. UIElement GetChild(const String&, bool = false) const;
  11189. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11190. Array<UIElement> GetChildren(bool = false) const;
  11191. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11192. UIElement GetElementEventSender() const;
  11193. bool GetInterceptNetworkUpdate(const String&) const;
  11194. uint GetNumChildren(bool) const;
  11195. bool HasSubscribedToEvent(Object, const String&);
  11196. bool HasSubscribedToEvent(const String&);
  11197. bool HasTag(const String&) const;
  11198. void InsertChild(uint, UIElement);
  11199. bool IsInside(IntVector2, bool);
  11200. bool IsInsideCombined(IntVector2, bool);
  11201. bool Load(File, bool = false);
  11202. bool Load(VectorBuffer&, bool = false);
  11203. bool LoadChildXML(XMLFile, XMLFile = null);
  11204. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11205. bool LoadJSON(const JSONValue&, bool = false);
  11206. bool LoadXML(File);
  11207. bool LoadXML(VectorBuffer&);
  11208. bool LoadXML(XMLFile, XMLFile);
  11209. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11210. bool LoadXML(const XMLElement&, bool = false);
  11211. void MarkNetworkUpdate() const;
  11212. void Remove();
  11213. void RemoveAllChildren();
  11214. void RemoveAllTags();
  11215. void RemoveAttributeAnimation(const String&);
  11216. void RemoveChild(UIElement, uint = 0);
  11217. void RemoveChild(uint);
  11218. void RemoveInstanceDefault();
  11219. void RemoveObjectAnimation();
  11220. bool RemoveTag(const String&);
  11221. void ResetDeepEnabled();
  11222. void ResetToDefault();
  11223. bool Save(File) const;
  11224. bool Save(VectorBuffer&) const;
  11225. bool SaveJSON(JSONValue&) const;
  11226. bool SaveXML(File, const String& = "\t");
  11227. bool SaveXML(VectorBuffer&, const String& = "\t");
  11228. bool SaveXML(XMLElement&) const;
  11229. IntVector2 ScreenToElement(const IntVector2&);
  11230. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11231. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11232. void SetAnimationTime(float);
  11233. bool SetAttribute(const String&, const Variant&);
  11234. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11235. void SetAttributeAnimationSpeed(const String&, float);
  11236. void SetAttributeAnimationTime(const String&, float);
  11237. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11238. void SetDeepEnabled(bool);
  11239. void SetEnabledRecursive(bool);
  11240. void SetFixedHeight(int);
  11241. void SetFixedSize(int, int);
  11242. void SetFixedWidth(int);
  11243. bool SetFont(Font, int);
  11244. bool SetFont(const String&, int);
  11245. void SetInterceptNetworkUpdate(const String&, bool);
  11246. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11247. void SetMaxSize(int, int);
  11248. void SetMinSize(int, int);
  11249. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11250. void SetPosition(int, int);
  11251. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11252. void SetSize(int, int);
  11253. bool SetStyle(const String&, XMLFile = null);
  11254. bool SetStyle(const XMLElement&);
  11255. bool SetStyleAuto(XMLFile = null);
  11256. void UpdateLayout();
  11257. const Variant& GetVar(const StringHash&);
  11258. // Properties:
  11259. bool animationEnabled;
  11260. /* readonly */
  11261. Array<Variant> attributeDefaults;
  11262. /* readonly */
  11263. Array<AttributeInfo> attributeInfos;
  11264. Array<Variant> attributes;
  11265. bool autoLocalizable;
  11266. bool bringToBack;
  11267. bool bringToFront;
  11268. /* readonly */
  11269. String category;
  11270. /* readonly */
  11271. Array<IntVector2> charPositions;
  11272. /* readonly */
  11273. Array<IntVector2> charSizes;
  11274. /* readonly */
  11275. IntVector2 childOffset;
  11276. /* readonly */
  11277. Array<UIElement> children;
  11278. IntRect clipBorder;
  11279. bool clipChildren;
  11280. /* writeonly */
  11281. Color color;
  11282. /* readonly */
  11283. bool colorGradient;
  11284. Array<Color> colors;
  11285. /* readonly */
  11286. IntRect combinedScreenRect;
  11287. XMLFile defaultStyle;
  11288. /* readonly */
  11289. float derivedOpacity;
  11290. /* readonly */
  11291. uint dragButtonCombo;
  11292. /* readonly */
  11293. int dragButtonCount;
  11294. uint dragDropMode;
  11295. bool editable;
  11296. Color effectColor;
  11297. bool effectRoundStroke;
  11298. IntVector2 effectShadowOffset;
  11299. int effectStrokeThickness;
  11300. bool elementEventSender;
  11301. bool enabled;
  11302. /* readonly */
  11303. bool enabledSelf;
  11304. /* readonly */
  11305. bool fixedHeight;
  11306. /* readonly */
  11307. bool fixedSize;
  11308. /* readonly */
  11309. bool fixedWidth;
  11310. bool focus;
  11311. FocusMode focusMode;
  11312. /* readonly */
  11313. Font font;
  11314. int fontSize;
  11315. int height;
  11316. HorizontalAlignment horizontalAlignment;
  11317. Color hoverColor;
  11318. /* readonly */
  11319. bool hovering;
  11320. int indent;
  11321. int indentSpacing;
  11322. /* readonly */
  11323. int indentWidth;
  11324. bool internal;
  11325. IntRect layoutBorder;
  11326. Vector2 layoutFlexScale;
  11327. LayoutMode layoutMode;
  11328. int layoutSpacing;
  11329. int maxHeight;
  11330. IntVector2 maxSize;
  11331. int maxWidth;
  11332. int minHeight;
  11333. IntVector2 minSize;
  11334. int minWidth;
  11335. String name;
  11336. /* readonly */
  11337. uint numAllChildren;
  11338. /* readonly */
  11339. uint numAttributes;
  11340. /* readonly */
  11341. uint numChars;
  11342. /* readonly */
  11343. uint numChildren;
  11344. /* readonly */
  11345. uint numRows;
  11346. ObjectAnimation objectAnimation;
  11347. float opacity;
  11348. UIElement parent;
  11349. IntVector2 position;
  11350. int priority;
  11351. /* readonly */
  11352. int refs;
  11353. /* readonly */
  11354. UIElement root;
  11355. /* readonly */
  11356. int rowHeight;
  11357. float rowSpacing;
  11358. /* readonly */
  11359. Array<int> rowWidths;
  11360. /* readonly */
  11361. IntVector2 screenPosition;
  11362. bool selected;
  11363. Color selectionColor;
  11364. /* readonly */
  11365. uint selectionLength;
  11366. /* readonly */
  11367. uint selectionStart;
  11368. IntVector2 size;
  11369. bool sortChildren;
  11370. String style;
  11371. /* readonly */
  11372. Array<String> tags;
  11373. bool temporary;
  11374. String text;
  11375. HorizontalAlignment textAlignment;
  11376. TextEffect textEffect;
  11377. TraversalMode traversalMode;
  11378. /* readonly */
  11379. StringHash type;
  11380. /* readonly */
  11381. String typeName;
  11382. bool useDerivedOpacity;
  11383. /* readonly */
  11384. VariantMap vars;
  11385. VerticalAlignment verticalAlignment;
  11386. bool visible;
  11387. /* readonly */
  11388. bool visibleEffective;
  11389. /* readonly */
  11390. int weakRefs;
  11391. int width;
  11392. bool wordwrap;
  11393. };
  11394. class Text3D
  11395. {
  11396. // Methods:
  11397. void ApplyAttributes();
  11398. void DrawDebugGeometry(DebugRenderer, bool);
  11399. Variant GetAttribute(const String&) const;
  11400. ValueAnimation GetAttributeAnimation(const String&) const;
  11401. float GetAttributeAnimationSpeed(const String&) const;
  11402. float GetAttributeAnimationTime(const String&) const;
  11403. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11404. Variant GetAttributeDefault(const String&) const;
  11405. bool GetInterceptNetworkUpdate(const String&) const;
  11406. bool HasSubscribedToEvent(Object, const String&);
  11407. bool HasSubscribedToEvent(const String&);
  11408. bool IsInView(Camera) const;
  11409. bool Load(File, bool = false);
  11410. bool Load(VectorBuffer&, bool = false);
  11411. bool LoadJSON(const JSONValue&, bool = false);
  11412. bool LoadXML(const XMLElement&, bool = false);
  11413. void MarkNetworkUpdate() const;
  11414. void Remove();
  11415. void RemoveAttributeAnimation(const String&);
  11416. void RemoveInstanceDefault();
  11417. void RemoveObjectAnimation();
  11418. void ResetToDefault();
  11419. bool Save(File) const;
  11420. bool Save(VectorBuffer&) const;
  11421. bool SaveJSON(JSONValue&) const;
  11422. bool SaveXML(XMLElement&) const;
  11423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11424. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11425. void SetAnimationTime(float);
  11426. bool SetAttribute(const String&, const Variant&);
  11427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11428. void SetAttributeAnimationSpeed(const String&, float);
  11429. void SetAttributeAnimationTime(const String&, float);
  11430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11431. bool SetFont(Font, int);
  11432. bool SetFont(const String&, int);
  11433. void SetInterceptNetworkUpdate(const String&, bool);
  11434. // Properties:
  11435. bool animationEnabled;
  11436. /* readonly */
  11437. Array<Variant> attributeDefaults;
  11438. /* readonly */
  11439. Array<AttributeInfo> attributeInfos;
  11440. Array<Variant> attributes;
  11441. /* readonly */
  11442. BoundingBox boundingBox;
  11443. bool castShadows;
  11444. /* readonly */
  11445. String category;
  11446. /* readonly */
  11447. Array<IntVector2> charPositions;
  11448. /* readonly */
  11449. Array<IntVector2> charSizes;
  11450. /* writeonly */
  11451. Color color;
  11452. Array<Color> colors;
  11453. float drawDistance;
  11454. Color effectColor;
  11455. float effectDepthBias;
  11456. bool effectRoundStroke;
  11457. IntVector2 effectShadowOffset;
  11458. int effectStrokeThickness;
  11459. bool enabled;
  11460. /* readonly */
  11461. bool enabledEffective;
  11462. FaceCameraMode faceCameraMode;
  11463. bool fixedScreenSize;
  11464. /* readonly */
  11465. Font font;
  11466. int fontSize;
  11467. HorizontalAlignment horizontalAlignment;
  11468. /* readonly */
  11469. uint id;
  11470. /* readonly */
  11471. bool inView;
  11472. uint lightMask;
  11473. float lodBias;
  11474. Material material;
  11475. uint maxLights;
  11476. /* readonly */
  11477. Node node;
  11478. /* readonly */
  11479. uint numAttributes;
  11480. /* readonly */
  11481. uint numChars;
  11482. /* readonly */
  11483. uint numRows;
  11484. ObjectAnimation objectAnimation;
  11485. bool occludee;
  11486. bool occluder;
  11487. float opacity;
  11488. /* readonly */
  11489. int refs;
  11490. /* readonly */
  11491. int rowHeight;
  11492. float rowSpacing;
  11493. /* readonly */
  11494. Array<int> rowWidths;
  11495. float shadowDistance;
  11496. uint shadowMask;
  11497. bool temporary;
  11498. String text;
  11499. HorizontalAlignment textAlignment;
  11500. TextEffect textEffect;
  11501. /* readonly */
  11502. StringHash type;
  11503. /* readonly */
  11504. String typeName;
  11505. VerticalAlignment verticalAlignment;
  11506. uint viewMask;
  11507. /* readonly */
  11508. int weakRefs;
  11509. int width;
  11510. bool wordwrap;
  11511. /* readonly */
  11512. BoundingBox worldBoundingBox;
  11513. uint zoneMask;
  11514. };
  11515. class Texture
  11516. {
  11517. // Methods:
  11518. void ClearDataLost();
  11519. bool HasSubscribedToEvent(Object, const String&);
  11520. bool HasSubscribedToEvent(const String&);
  11521. bool Load(File);
  11522. bool Load(VectorBuffer&);
  11523. bool Save(File) const;
  11524. bool Save(VectorBuffer&) const;
  11525. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11526. void SetNumLevels(uint);
  11527. // Properties:
  11528. Array<TextureAddressMode> addressMode;
  11529. uint anisotropy;
  11530. /* readonly */
  11531. bool autoResolve;
  11532. Texture backupTexture;
  11533. Color borderColor;
  11534. /* readonly */
  11535. String category;
  11536. /* readonly */
  11537. uint components;
  11538. /* readonly */
  11539. bool compressed;
  11540. /* readonly */
  11541. bool dataLost;
  11542. TextureFilterMode filterMode;
  11543. /* readonly */
  11544. uint format;
  11545. /* readonly */
  11546. int height;
  11547. /* readonly */
  11548. Array<int> levelHeight;
  11549. /* readonly */
  11550. Array<int> levelWidth;
  11551. /* readonly */
  11552. uint levels;
  11553. /* readonly */
  11554. uint memoryUse;
  11555. Array<int> mipsToSkip;
  11556. /* readonly */
  11557. int multiSample;
  11558. String name;
  11559. /* readonly */
  11560. int refs;
  11561. /* readonly */
  11562. bool resolveDirty;
  11563. bool sRGB;
  11564. /* readonly */
  11565. StringHash type;
  11566. /* readonly */
  11567. String typeName;
  11568. /* readonly */
  11569. TextureUsage usage;
  11570. /* readonly */
  11571. uint useTimer;
  11572. /* readonly */
  11573. int weakRefs;
  11574. /* readonly */
  11575. int width;
  11576. };
  11577. class Texture2D
  11578. {
  11579. // Methods:
  11580. void ClearDataLost();
  11581. Image GetImage() const;
  11582. bool HasSubscribedToEvent(Object, const String&);
  11583. bool HasSubscribedToEvent(const String&);
  11584. bool Load(File);
  11585. bool Load(VectorBuffer&);
  11586. bool Save(File) const;
  11587. bool Save(VectorBuffer&) const;
  11588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11589. bool SetData(Image, bool = false);
  11590. void SetNumLevels(uint);
  11591. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11592. // Properties:
  11593. Array<TextureAddressMode> addressMode;
  11594. uint anisotropy;
  11595. /* readonly */
  11596. bool autoResolve;
  11597. Texture backupTexture;
  11598. Color borderColor;
  11599. /* readonly */
  11600. String category;
  11601. /* readonly */
  11602. uint components;
  11603. /* readonly */
  11604. bool compressed;
  11605. /* readonly */
  11606. bool dataLost;
  11607. TextureFilterMode filterMode;
  11608. /* readonly */
  11609. uint format;
  11610. /* readonly */
  11611. int height;
  11612. /* readonly */
  11613. Array<int> levelHeight;
  11614. /* readonly */
  11615. Array<int> levelWidth;
  11616. /* readonly */
  11617. uint levels;
  11618. /* readonly */
  11619. uint memoryUse;
  11620. Array<int> mipsToSkip;
  11621. /* readonly */
  11622. int multiSample;
  11623. String name;
  11624. /* readonly */
  11625. int refs;
  11626. /* readonly */
  11627. RenderSurface renderSurface;
  11628. /* readonly */
  11629. bool resolveDirty;
  11630. bool sRGB;
  11631. /* readonly */
  11632. StringHash type;
  11633. /* readonly */
  11634. String typeName;
  11635. /* readonly */
  11636. TextureUsage usage;
  11637. /* readonly */
  11638. uint useTimer;
  11639. /* readonly */
  11640. int weakRefs;
  11641. /* readonly */
  11642. int width;
  11643. };
  11644. class Texture2DArray
  11645. {
  11646. // Methods:
  11647. void ClearDataLost();
  11648. bool HasSubscribedToEvent(Object, const String&);
  11649. bool HasSubscribedToEvent(const String&);
  11650. bool Load(File);
  11651. bool Load(VectorBuffer&);
  11652. bool Save(File) const;
  11653. bool Save(VectorBuffer&) const;
  11654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11655. bool SetData(uint, Image, bool = false);
  11656. void SetNumLevels(uint);
  11657. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11658. // Properties:
  11659. Array<TextureAddressMode> addressMode;
  11660. uint anisotropy;
  11661. /* readonly */
  11662. bool autoResolve;
  11663. Texture backupTexture;
  11664. Color borderColor;
  11665. /* readonly */
  11666. String category;
  11667. /* readonly */
  11668. uint components;
  11669. /* readonly */
  11670. bool compressed;
  11671. /* readonly */
  11672. bool dataLost;
  11673. TextureFilterMode filterMode;
  11674. /* readonly */
  11675. uint format;
  11676. /* readonly */
  11677. int height;
  11678. uint layers;
  11679. /* readonly */
  11680. Array<int> levelHeight;
  11681. /* readonly */
  11682. Array<int> levelWidth;
  11683. /* readonly */
  11684. uint levels;
  11685. /* readonly */
  11686. uint memoryUse;
  11687. Array<int> mipsToSkip;
  11688. /* readonly */
  11689. int multiSample;
  11690. String name;
  11691. /* readonly */
  11692. int refs;
  11693. /* readonly */
  11694. RenderSurface renderSurface;
  11695. /* readonly */
  11696. bool resolveDirty;
  11697. bool sRGB;
  11698. /* readonly */
  11699. StringHash type;
  11700. /* readonly */
  11701. String typeName;
  11702. /* readonly */
  11703. TextureUsage usage;
  11704. /* readonly */
  11705. uint useTimer;
  11706. /* readonly */
  11707. int weakRefs;
  11708. /* readonly */
  11709. int width;
  11710. };
  11711. class Texture3D
  11712. {
  11713. // Methods:
  11714. void ClearDataLost();
  11715. bool HasSubscribedToEvent(Object, const String&);
  11716. bool HasSubscribedToEvent(const String&);
  11717. bool Load(File);
  11718. bool Load(VectorBuffer&);
  11719. bool Save(File) const;
  11720. bool Save(VectorBuffer&) const;
  11721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11722. bool SetData(Image, bool = false);
  11723. void SetNumLevels(uint);
  11724. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11725. // Properties:
  11726. Array<TextureAddressMode> addressMode;
  11727. uint anisotropy;
  11728. /* readonly */
  11729. bool autoResolve;
  11730. Texture backupTexture;
  11731. Color borderColor;
  11732. /* readonly */
  11733. String category;
  11734. /* readonly */
  11735. uint components;
  11736. /* readonly */
  11737. bool compressed;
  11738. /* readonly */
  11739. bool dataLost;
  11740. TextureFilterMode filterMode;
  11741. /* readonly */
  11742. uint format;
  11743. /* readonly */
  11744. int height;
  11745. /* readonly */
  11746. Array<int> levelHeight;
  11747. /* readonly */
  11748. Array<int> levelWidth;
  11749. /* readonly */
  11750. uint levels;
  11751. /* readonly */
  11752. uint memoryUse;
  11753. Array<int> mipsToSkip;
  11754. /* readonly */
  11755. int multiSample;
  11756. String name;
  11757. /* readonly */
  11758. int refs;
  11759. /* readonly */
  11760. bool resolveDirty;
  11761. bool sRGB;
  11762. /* readonly */
  11763. StringHash type;
  11764. /* readonly */
  11765. String typeName;
  11766. /* readonly */
  11767. TextureUsage usage;
  11768. /* readonly */
  11769. uint useTimer;
  11770. /* readonly */
  11771. int weakRefs;
  11772. /* readonly */
  11773. int width;
  11774. };
  11775. class TextureCube
  11776. {
  11777. // Methods:
  11778. void ClearDataLost();
  11779. Image GetImage(CubeMapFace) const;
  11780. bool HasSubscribedToEvent(Object, const String&);
  11781. bool HasSubscribedToEvent(const String&);
  11782. bool Load(File);
  11783. bool Load(VectorBuffer&);
  11784. bool Save(File) const;
  11785. bool Save(VectorBuffer&) const;
  11786. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11787. bool SetData(CubeMapFace, Image, bool = false);
  11788. void SetNumLevels(uint);
  11789. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  11790. // Properties:
  11791. Array<TextureAddressMode> addressMode;
  11792. uint anisotropy;
  11793. /* readonly */
  11794. bool autoResolve;
  11795. Texture backupTexture;
  11796. Color borderColor;
  11797. /* readonly */
  11798. String category;
  11799. /* readonly */
  11800. uint components;
  11801. /* readonly */
  11802. bool compressed;
  11803. /* readonly */
  11804. bool dataLost;
  11805. TextureFilterMode filterMode;
  11806. /* readonly */
  11807. uint format;
  11808. /* readonly */
  11809. int height;
  11810. /* readonly */
  11811. Array<int> levelHeight;
  11812. /* readonly */
  11813. Array<int> levelWidth;
  11814. /* readonly */
  11815. uint levels;
  11816. /* readonly */
  11817. uint memoryUse;
  11818. Array<int> mipsToSkip;
  11819. /* readonly */
  11820. int multiSample;
  11821. String name;
  11822. /* readonly */
  11823. int refs;
  11824. /* readonly */
  11825. Array<RenderSurface> renderSurfaces;
  11826. /* readonly */
  11827. bool resolveDirty;
  11828. bool sRGB;
  11829. /* readonly */
  11830. StringHash type;
  11831. /* readonly */
  11832. String typeName;
  11833. /* readonly */
  11834. TextureUsage usage;
  11835. /* readonly */
  11836. uint useTimer;
  11837. /* readonly */
  11838. int weakRefs;
  11839. /* readonly */
  11840. int width;
  11841. };
  11842. class TextureFrame
  11843. {
  11844. // Properties:
  11845. float time;
  11846. Rect uv;
  11847. };
  11848. class Tile2D
  11849. {
  11850. // Methods:
  11851. bool HasProperty(const String&) const;
  11852. const String& GetProperty(const String&) const;
  11853. // Properties:
  11854. /* readonly */
  11855. int gid;
  11856. /* readonly */
  11857. int refs;
  11858. /* readonly */
  11859. Sprite2D sprite;
  11860. /* readonly */
  11861. int weakRefs;
  11862. };
  11863. class TileMap2D
  11864. {
  11865. // Methods:
  11866. void ApplyAttributes();
  11867. void DrawDebugGeometry(DebugRenderer, bool);
  11868. Variant GetAttribute(const String&) const;
  11869. ValueAnimation GetAttributeAnimation(const String&) const;
  11870. float GetAttributeAnimationSpeed(const String&) const;
  11871. float GetAttributeAnimationTime(const String&) const;
  11872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11873. Variant GetAttributeDefault(const String&) const;
  11874. bool GetInterceptNetworkUpdate(const String&) const;
  11875. TileMapLayer2D GetLayer(uint) const;
  11876. bool HasSubscribedToEvent(Object, const String&);
  11877. bool HasSubscribedToEvent(const String&);
  11878. bool Load(File, bool = false);
  11879. bool Load(VectorBuffer&, bool = false);
  11880. bool LoadJSON(const JSONValue&, bool = false);
  11881. bool LoadXML(const XMLElement&, bool = false);
  11882. void MarkNetworkUpdate() const;
  11883. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11884. void Remove();
  11885. void RemoveAttributeAnimation(const String&);
  11886. void RemoveInstanceDefault();
  11887. void RemoveObjectAnimation();
  11888. void ResetToDefault();
  11889. bool Save(File) const;
  11890. bool Save(VectorBuffer&) const;
  11891. bool SaveJSON(JSONValue&) const;
  11892. bool SaveXML(XMLElement&) const;
  11893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11894. void SetAnimationTime(float);
  11895. bool SetAttribute(const String&, const Variant&);
  11896. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11897. void SetAttributeAnimationSpeed(const String&, float);
  11898. void SetAttributeAnimationTime(const String&, float);
  11899. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11900. void SetInterceptNetworkUpdate(const String&, bool);
  11901. Vector2 TileIndexToPosition(int, int) const;
  11902. // Properties:
  11903. bool animationEnabled;
  11904. /* readonly */
  11905. Array<Variant> attributeDefaults;
  11906. /* readonly */
  11907. Array<AttributeInfo> attributeInfos;
  11908. Array<Variant> attributes;
  11909. /* readonly */
  11910. String category;
  11911. bool enabled;
  11912. /* readonly */
  11913. bool enabledEffective;
  11914. /* readonly */
  11915. uint id;
  11916. /* readonly */
  11917. TileMapInfo2D info;
  11918. /* readonly */
  11919. Node node;
  11920. /* readonly */
  11921. uint numAttributes;
  11922. /* readonly */
  11923. uint numLayers;
  11924. ObjectAnimation objectAnimation;
  11925. /* readonly */
  11926. int refs;
  11927. bool temporary;
  11928. TmxFile2D tmxFile;
  11929. /* readonly */
  11930. StringHash type;
  11931. /* readonly */
  11932. String typeName;
  11933. /* readonly */
  11934. int weakRefs;
  11935. };
  11936. class TileMapInfo2D
  11937. {
  11938. // Properties:
  11939. int height;
  11940. /* readonly */
  11941. float mapHeight;
  11942. /* readonly */
  11943. float mapWidth;
  11944. Orientation2D orientation;
  11945. float tileHeight;
  11946. float tileWidth;
  11947. int width;
  11948. };
  11949. class TileMapLayer2D
  11950. {
  11951. // Methods:
  11952. void ApplyAttributes();
  11953. void DrawDebugGeometry(DebugRenderer, bool);
  11954. Variant GetAttribute(const String&) const;
  11955. ValueAnimation GetAttributeAnimation(const String&) const;
  11956. float GetAttributeAnimationSpeed(const String&) const;
  11957. float GetAttributeAnimationTime(const String&) const;
  11958. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11959. Variant GetAttributeDefault(const String&) const;
  11960. bool GetInterceptNetworkUpdate(const String&) const;
  11961. TileMapObject2D GetObject(uint) const;
  11962. Node GetObjectNode(uint) const;
  11963. Tile2D GetTile(int, int) const;
  11964. Node GetTileNode(int, int) const;
  11965. bool HasProperty(const String&) const;
  11966. bool HasSubscribedToEvent(Object, const String&);
  11967. bool HasSubscribedToEvent(const String&);
  11968. bool Load(File, bool = false);
  11969. bool Load(VectorBuffer&, bool = false);
  11970. bool LoadJSON(const JSONValue&, bool = false);
  11971. bool LoadXML(const XMLElement&, bool = false);
  11972. void MarkNetworkUpdate() const;
  11973. void Remove();
  11974. void RemoveAttributeAnimation(const String&);
  11975. void RemoveInstanceDefault();
  11976. void RemoveObjectAnimation();
  11977. void ResetToDefault();
  11978. bool Save(File) const;
  11979. bool Save(VectorBuffer&) const;
  11980. bool SaveJSON(JSONValue&) const;
  11981. bool SaveXML(XMLElement&) const;
  11982. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11983. void SetAnimationTime(float);
  11984. bool SetAttribute(const String&, const Variant&);
  11985. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11986. void SetAttributeAnimationSpeed(const String&, float);
  11987. void SetAttributeAnimationTime(const String&, float);
  11988. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11989. void SetInterceptNetworkUpdate(const String&, bool);
  11990. const String& GetProperty(const String&) const;
  11991. // Properties:
  11992. bool animationEnabled;
  11993. /* readonly */
  11994. Array<Variant> attributeDefaults;
  11995. /* readonly */
  11996. Array<AttributeInfo> attributeInfos;
  11997. Array<Variant> attributes;
  11998. /* readonly */
  11999. String category;
  12000. int drawOrder;
  12001. bool enabled;
  12002. /* readonly */
  12003. bool enabledEffective;
  12004. /* readonly */
  12005. int height;
  12006. /* readonly */
  12007. uint id;
  12008. /* readonly */
  12009. Node imageNode;
  12010. /* readonly */
  12011. TileMapLayerType2D layerType;
  12012. /* readonly */
  12013. Node node;
  12014. /* readonly */
  12015. uint numAttributes;
  12016. /* readonly */
  12017. uint numObjects;
  12018. ObjectAnimation objectAnimation;
  12019. /* readonly */
  12020. int refs;
  12021. bool temporary;
  12022. /* readonly */
  12023. StringHash type;
  12024. /* readonly */
  12025. String typeName;
  12026. bool visible;
  12027. /* readonly */
  12028. int weakRefs;
  12029. /* readonly */
  12030. int width;
  12031. };
  12032. class TileMapObject2D
  12033. {
  12034. // Methods:
  12035. bool HasProperty(const String&) const;
  12036. const String& GetProperty(const String&) const;
  12037. const Vector2& GetPoint(uint) const;
  12038. // Properties:
  12039. /* readonly */
  12040. String name;
  12041. /* readonly */
  12042. uint numPoints;
  12043. /* readonly */
  12044. TileObjectType2D objectType;
  12045. /* readonly */
  12046. Vector2 position;
  12047. /* readonly */
  12048. int refs;
  12049. /* readonly */
  12050. Vector2 size;
  12051. /* readonly */
  12052. int tileGid;
  12053. /* readonly */
  12054. Sprite2D tileSprite;
  12055. /* readonly */
  12056. String type;
  12057. /* readonly */
  12058. int weakRefs;
  12059. };
  12060. class Time
  12061. {
  12062. // Methods:
  12063. bool HasSubscribedToEvent(Object, const String&);
  12064. bool HasSubscribedToEvent(const String&);
  12065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12066. // Properties:
  12067. /* readonly */
  12068. String category;
  12069. /* readonly */
  12070. float elapsedTime;
  12071. /* readonly */
  12072. uint frameNumber;
  12073. /* readonly */
  12074. int refs;
  12075. /* readonly */
  12076. uint systemTime;
  12077. /* readonly */
  12078. uint timeSinceEpoch;
  12079. /* readonly */
  12080. String timeStamp;
  12081. /* readonly */
  12082. float timeStep;
  12083. /* readonly */
  12084. StringHash type;
  12085. /* readonly */
  12086. String typeName;
  12087. /* readonly */
  12088. int weakRefs;
  12089. };
  12090. class Timer
  12091. {
  12092. // Methods:
  12093. uint GetMSec(bool);
  12094. void Reset();
  12095. };
  12096. class TmxFile2D
  12097. {
  12098. // Methods:
  12099. bool HasSubscribedToEvent(Object, const String&);
  12100. bool HasSubscribedToEvent(const String&);
  12101. bool Load(File);
  12102. bool Load(VectorBuffer&);
  12103. bool Save(File) const;
  12104. bool Save(VectorBuffer&) const;
  12105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12106. // Properties:
  12107. /* readonly */
  12108. String category;
  12109. /* readonly */
  12110. uint memoryUse;
  12111. String name;
  12112. /* readonly */
  12113. int refs;
  12114. /* readonly */
  12115. StringHash type;
  12116. /* readonly */
  12117. String typeName;
  12118. /* readonly */
  12119. uint useTimer;
  12120. /* readonly */
  12121. int weakRefs;
  12122. };
  12123. class ToolTip
  12124. {
  12125. // Methods:
  12126. void AddChild(UIElement);
  12127. void AddTag(const String&);
  12128. void AddTags(const String&, int8 = ';');
  12129. void ApplyAttributes();
  12130. void BringToFront();
  12131. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12132. void DisableLayoutUpdate();
  12133. IntVector2 ElementToScreen(const IntVector2&);
  12134. void EnableLayoutUpdate();
  12135. uint FindChild(UIElement) const;
  12136. Variant GetAttribute(const String&) const;
  12137. ValueAnimation GetAttributeAnimation(const String&) const;
  12138. float GetAttributeAnimationSpeed(const String&) const;
  12139. float GetAttributeAnimationTime(const String&) const;
  12140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12141. Variant GetAttributeDefault(const String&) const;
  12142. UIElement GetChild(const String&, bool = false) const;
  12143. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12144. Array<UIElement> GetChildren(bool = false) const;
  12145. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12146. UIElement GetElementEventSender() const;
  12147. bool GetInterceptNetworkUpdate(const String&) const;
  12148. uint GetNumChildren(bool) const;
  12149. bool HasSubscribedToEvent(Object, const String&);
  12150. bool HasSubscribedToEvent(const String&);
  12151. bool HasTag(const String&) const;
  12152. void InsertChild(uint, UIElement);
  12153. bool IsInside(IntVector2, bool);
  12154. bool IsInsideCombined(IntVector2, bool);
  12155. bool Load(File, bool = false);
  12156. bool Load(VectorBuffer&, bool = false);
  12157. bool LoadChildXML(XMLFile, XMLFile = null);
  12158. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12159. bool LoadJSON(const JSONValue&, bool = false);
  12160. bool LoadXML(File);
  12161. bool LoadXML(VectorBuffer&);
  12162. bool LoadXML(XMLFile, XMLFile);
  12163. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12164. bool LoadXML(const XMLElement&, bool = false);
  12165. void MarkNetworkUpdate() const;
  12166. void Remove();
  12167. void RemoveAllChildren();
  12168. void RemoveAllTags();
  12169. void RemoveAttributeAnimation(const String&);
  12170. void RemoveChild(UIElement, uint = 0);
  12171. void RemoveChild(uint);
  12172. void RemoveInstanceDefault();
  12173. void RemoveObjectAnimation();
  12174. bool RemoveTag(const String&);
  12175. void ResetDeepEnabled();
  12176. void ResetToDefault();
  12177. bool Save(File) const;
  12178. bool Save(VectorBuffer&) const;
  12179. bool SaveJSON(JSONValue&) const;
  12180. bool SaveXML(File, const String& = "\t");
  12181. bool SaveXML(VectorBuffer&, const String& = "\t");
  12182. bool SaveXML(XMLElement&) const;
  12183. IntVector2 ScreenToElement(const IntVector2&);
  12184. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12185. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12186. void SetAnimationTime(float);
  12187. bool SetAttribute(const String&, const Variant&);
  12188. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12189. void SetAttributeAnimationSpeed(const String&, float);
  12190. void SetAttributeAnimationTime(const String&, float);
  12191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12192. void SetDeepEnabled(bool);
  12193. void SetEnabledRecursive(bool);
  12194. void SetFixedHeight(int);
  12195. void SetFixedSize(int, int);
  12196. void SetFixedWidth(int);
  12197. void SetInterceptNetworkUpdate(const String&, bool);
  12198. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12199. void SetMaxSize(int, int);
  12200. void SetMinSize(int, int);
  12201. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12202. void SetPosition(int, int);
  12203. void SetSize(int, int);
  12204. bool SetStyle(const String&, XMLFile = null);
  12205. bool SetStyle(const XMLElement&);
  12206. bool SetStyleAuto(XMLFile = null);
  12207. void UpdateLayout();
  12208. const Variant& GetVar(const StringHash&);
  12209. // Properties:
  12210. bool animationEnabled;
  12211. /* readonly */
  12212. Array<Variant> attributeDefaults;
  12213. /* readonly */
  12214. Array<AttributeInfo> attributeInfos;
  12215. Array<Variant> attributes;
  12216. bool bringToBack;
  12217. bool bringToFront;
  12218. /* readonly */
  12219. String category;
  12220. /* readonly */
  12221. IntVector2 childOffset;
  12222. /* readonly */
  12223. Array<UIElement> children;
  12224. IntRect clipBorder;
  12225. bool clipChildren;
  12226. /* writeonly */
  12227. Color color;
  12228. /* readonly */
  12229. bool colorGradient;
  12230. Array<Color> colors;
  12231. /* readonly */
  12232. IntRect combinedScreenRect;
  12233. XMLFile defaultStyle;
  12234. float delay;
  12235. /* readonly */
  12236. float derivedOpacity;
  12237. /* readonly */
  12238. uint dragButtonCombo;
  12239. /* readonly */
  12240. int dragButtonCount;
  12241. uint dragDropMode;
  12242. bool editable;
  12243. bool elementEventSender;
  12244. bool enabled;
  12245. /* readonly */
  12246. bool enabledSelf;
  12247. /* readonly */
  12248. bool fixedHeight;
  12249. /* readonly */
  12250. bool fixedSize;
  12251. /* readonly */
  12252. bool fixedWidth;
  12253. bool focus;
  12254. FocusMode focusMode;
  12255. int height;
  12256. HorizontalAlignment horizontalAlignment;
  12257. /* readonly */
  12258. bool hovering;
  12259. int indent;
  12260. int indentSpacing;
  12261. /* readonly */
  12262. int indentWidth;
  12263. bool internal;
  12264. IntRect layoutBorder;
  12265. Vector2 layoutFlexScale;
  12266. LayoutMode layoutMode;
  12267. int layoutSpacing;
  12268. int maxHeight;
  12269. IntVector2 maxSize;
  12270. int maxWidth;
  12271. int minHeight;
  12272. IntVector2 minSize;
  12273. int minWidth;
  12274. String name;
  12275. /* readonly */
  12276. uint numAllChildren;
  12277. /* readonly */
  12278. uint numAttributes;
  12279. /* readonly */
  12280. uint numChildren;
  12281. ObjectAnimation objectAnimation;
  12282. float opacity;
  12283. UIElement parent;
  12284. IntVector2 position;
  12285. int priority;
  12286. /* readonly */
  12287. int refs;
  12288. /* readonly */
  12289. UIElement root;
  12290. /* readonly */
  12291. IntVector2 screenPosition;
  12292. bool selected;
  12293. IntVector2 size;
  12294. bool sortChildren;
  12295. String style;
  12296. /* readonly */
  12297. Array<String> tags;
  12298. bool temporary;
  12299. TraversalMode traversalMode;
  12300. /* readonly */
  12301. StringHash type;
  12302. /* readonly */
  12303. String typeName;
  12304. bool useDerivedOpacity;
  12305. /* readonly */
  12306. VariantMap vars;
  12307. VerticalAlignment verticalAlignment;
  12308. bool visible;
  12309. /* readonly */
  12310. bool visibleEffective;
  12311. /* readonly */
  12312. int weakRefs;
  12313. int width;
  12314. };
  12315. class TouchState
  12316. {
  12317. // Properties:
  12318. IntVector2 delta;
  12319. IntVector2 lastPosition;
  12320. IntVector2 position;
  12321. float pressure;
  12322. int touchID;
  12323. /* readonly */
  12324. UIElement touchedElement;
  12325. };
  12326. class UI
  12327. {
  12328. // Methods:
  12329. void Clear();
  12330. void DebugDraw(UIElement);
  12331. UIElement GetElementAt(const IntVector2&, bool = true);
  12332. UIElement GetElementAt(int, int, bool = true);
  12333. bool HasModalElement() const;
  12334. bool HasSubscribedToEvent(Object, const String&);
  12335. bool HasSubscribedToEvent(const String&);
  12336. bool IsDragging() const;
  12337. UIElement LoadLayout(File);
  12338. UIElement LoadLayout(File, XMLFile);
  12339. UIElement LoadLayout(VectorBuffer&);
  12340. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12341. UIElement LoadLayout(XMLFile);
  12342. UIElement LoadLayout(XMLFile, XMLFile);
  12343. bool SaveLayout(File, UIElement);
  12344. bool SaveLayout(VectorBuffer&, UIElement);
  12345. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12346. void SetCustomSize(int, int);
  12347. void SetFocusElement(UIElement, bool = false);
  12348. void SetHeight(float);
  12349. void SetWidth(float);
  12350. const Array<UIElement> GetDragElements();
  12351. // Properties:
  12352. /* readonly */
  12353. String category;
  12354. String clipBoardText;
  12355. Cursor cursor;
  12356. /* readonly */
  12357. IntVector2 cursorPosition;
  12358. IntVector2 customSize;
  12359. float defaultToolTipDelay;
  12360. float doubleClickInterval;
  12361. int dragBeginDistance;
  12362. float dragBeginInterval;
  12363. UIElement focusElement;
  12364. bool forceAutoHint;
  12365. /* readonly */
  12366. UIElement frontElement;
  12367. int maxFontTextureSize;
  12368. /* readonly */
  12369. UIElement modalRoot;
  12370. bool nonFocusedMouseWheel;
  12371. /* readonly */
  12372. int refs;
  12373. /* readonly */
  12374. UIElement root;
  12375. float scale;
  12376. /* readonly */
  12377. StringHash type;
  12378. /* readonly */
  12379. String typeName;
  12380. bool useMutableGlyphs;
  12381. bool useScreenKeyboard;
  12382. bool useSystemClipboard;
  12383. /* readonly */
  12384. int weakRefs;
  12385. };
  12386. class UIElement
  12387. {
  12388. // Methods:
  12389. void AddChild(UIElement);
  12390. void AddTag(const String&);
  12391. void AddTags(const String&, int8 = ';');
  12392. void ApplyAttributes();
  12393. void BringToFront();
  12394. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12395. void DisableLayoutUpdate();
  12396. IntVector2 ElementToScreen(const IntVector2&);
  12397. void EnableLayoutUpdate();
  12398. uint FindChild(UIElement) const;
  12399. Variant GetAttribute(const String&) const;
  12400. ValueAnimation GetAttributeAnimation(const String&) const;
  12401. float GetAttributeAnimationSpeed(const String&) const;
  12402. float GetAttributeAnimationTime(const String&) const;
  12403. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12404. Variant GetAttributeDefault(const String&) const;
  12405. UIElement GetChild(const String&, bool = false) const;
  12406. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12407. Array<UIElement> GetChildren(bool = false) const;
  12408. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12409. UIElement GetElementEventSender() const;
  12410. bool GetInterceptNetworkUpdate(const String&) const;
  12411. uint GetNumChildren(bool) const;
  12412. bool HasSubscribedToEvent(Object, const String&);
  12413. bool HasSubscribedToEvent(const String&);
  12414. bool HasTag(const String&) const;
  12415. void InsertChild(uint, UIElement);
  12416. bool IsInside(IntVector2, bool);
  12417. bool IsInsideCombined(IntVector2, bool);
  12418. bool Load(File, bool = false);
  12419. bool Load(VectorBuffer&, bool = false);
  12420. bool LoadChildXML(XMLFile, XMLFile = null);
  12421. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12422. bool LoadJSON(const JSONValue&, bool = false);
  12423. bool LoadXML(File);
  12424. bool LoadXML(VectorBuffer&);
  12425. bool LoadXML(XMLFile, XMLFile);
  12426. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12427. bool LoadXML(const XMLElement&, bool = false);
  12428. void MarkNetworkUpdate() const;
  12429. void Remove();
  12430. void RemoveAllChildren();
  12431. void RemoveAllTags();
  12432. void RemoveAttributeAnimation(const String&);
  12433. void RemoveChild(UIElement, uint = 0);
  12434. void RemoveChild(uint);
  12435. void RemoveInstanceDefault();
  12436. void RemoveObjectAnimation();
  12437. bool RemoveTag(const String&);
  12438. void ResetDeepEnabled();
  12439. void ResetToDefault();
  12440. bool Save(File) const;
  12441. bool Save(VectorBuffer&) const;
  12442. bool SaveJSON(JSONValue&) const;
  12443. bool SaveXML(File, const String& = "\t");
  12444. bool SaveXML(VectorBuffer&, const String& = "\t");
  12445. bool SaveXML(XMLElement&) const;
  12446. IntVector2 ScreenToElement(const IntVector2&);
  12447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12448. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12449. void SetAnimationTime(float);
  12450. bool SetAttribute(const String&, const Variant&);
  12451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12452. void SetAttributeAnimationSpeed(const String&, float);
  12453. void SetAttributeAnimationTime(const String&, float);
  12454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12455. void SetDeepEnabled(bool);
  12456. void SetEnabledRecursive(bool);
  12457. void SetFixedHeight(int);
  12458. void SetFixedSize(int, int);
  12459. void SetFixedWidth(int);
  12460. void SetInterceptNetworkUpdate(const String&, bool);
  12461. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12462. void SetMaxSize(int, int);
  12463. void SetMinSize(int, int);
  12464. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12465. void SetPosition(int, int);
  12466. void SetSize(int, int);
  12467. bool SetStyle(const String&, XMLFile = null);
  12468. bool SetStyle(const XMLElement&);
  12469. bool SetStyleAuto(XMLFile = null);
  12470. void UpdateLayout();
  12471. const Variant& GetVar(const StringHash&);
  12472. // Properties:
  12473. bool animationEnabled;
  12474. /* readonly */
  12475. Array<Variant> attributeDefaults;
  12476. /* readonly */
  12477. Array<AttributeInfo> attributeInfos;
  12478. Array<Variant> attributes;
  12479. bool bringToBack;
  12480. bool bringToFront;
  12481. /* readonly */
  12482. String category;
  12483. /* readonly */
  12484. IntVector2 childOffset;
  12485. /* readonly */
  12486. Array<UIElement> children;
  12487. IntRect clipBorder;
  12488. bool clipChildren;
  12489. /* writeonly */
  12490. Color color;
  12491. /* readonly */
  12492. bool colorGradient;
  12493. Array<Color> colors;
  12494. /* readonly */
  12495. IntRect combinedScreenRect;
  12496. XMLFile defaultStyle;
  12497. /* readonly */
  12498. float derivedOpacity;
  12499. /* readonly */
  12500. uint dragButtonCombo;
  12501. /* readonly */
  12502. int dragButtonCount;
  12503. uint dragDropMode;
  12504. bool editable;
  12505. bool elementEventSender;
  12506. bool enabled;
  12507. /* readonly */
  12508. bool enabledSelf;
  12509. /* readonly */
  12510. bool fixedHeight;
  12511. /* readonly */
  12512. bool fixedSize;
  12513. /* readonly */
  12514. bool fixedWidth;
  12515. bool focus;
  12516. FocusMode focusMode;
  12517. int height;
  12518. HorizontalAlignment horizontalAlignment;
  12519. /* readonly */
  12520. bool hovering;
  12521. int indent;
  12522. int indentSpacing;
  12523. /* readonly */
  12524. int indentWidth;
  12525. bool internal;
  12526. IntRect layoutBorder;
  12527. Vector2 layoutFlexScale;
  12528. LayoutMode layoutMode;
  12529. int layoutSpacing;
  12530. int maxHeight;
  12531. IntVector2 maxSize;
  12532. int maxWidth;
  12533. int minHeight;
  12534. IntVector2 minSize;
  12535. int minWidth;
  12536. String name;
  12537. /* readonly */
  12538. uint numAllChildren;
  12539. /* readonly */
  12540. uint numAttributes;
  12541. /* readonly */
  12542. uint numChildren;
  12543. ObjectAnimation objectAnimation;
  12544. float opacity;
  12545. UIElement parent;
  12546. IntVector2 position;
  12547. int priority;
  12548. /* readonly */
  12549. int refs;
  12550. /* readonly */
  12551. UIElement root;
  12552. /* readonly */
  12553. IntVector2 screenPosition;
  12554. bool selected;
  12555. IntVector2 size;
  12556. bool sortChildren;
  12557. String style;
  12558. /* readonly */
  12559. Array<String> tags;
  12560. bool temporary;
  12561. TraversalMode traversalMode;
  12562. /* readonly */
  12563. StringHash type;
  12564. /* readonly */
  12565. String typeName;
  12566. bool useDerivedOpacity;
  12567. /* readonly */
  12568. VariantMap vars;
  12569. VerticalAlignment verticalAlignment;
  12570. bool visible;
  12571. /* readonly */
  12572. bool visibleEffective;
  12573. /* readonly */
  12574. int weakRefs;
  12575. int width;
  12576. };
  12577. class ValueAnimation
  12578. {
  12579. // Methods:
  12580. bool HasSubscribedToEvent(Object, const String&);
  12581. bool HasSubscribedToEvent(const String&);
  12582. bool Load(File);
  12583. bool Load(VectorBuffer&);
  12584. bool Save(File) const;
  12585. bool Save(VectorBuffer&) const;
  12586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12587. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12588. void SetKeyFrame(float, const Variant&);
  12589. // Properties:
  12590. /* readonly */
  12591. String category;
  12592. InterpMethod interpolationMethod;
  12593. /* readonly */
  12594. uint memoryUse;
  12595. String name;
  12596. /* readonly */
  12597. int refs;
  12598. float splineTension;
  12599. /* readonly */
  12600. StringHash type;
  12601. /* readonly */
  12602. String typeName;
  12603. /* readonly */
  12604. uint useTimer;
  12605. VariantType valueType;
  12606. /* readonly */
  12607. int weakRefs;
  12608. };
  12609. class Variant
  12610. {
  12611. // Methods:
  12612. void Clear();
  12613. const Color& GetColor() const;
  12614. void FromString(VariantType, const String&);
  12615. void FromString(const String&, const String&);
  12616. bool GetBool() const;
  12617. VectorBuffer GetBuffer() const;
  12618. double GetDouble() const;
  12619. float GetFloat() const;
  12620. int GetInt() const;
  12621. RefCounted GetPtr() const;
  12622. ScriptObject GetScriptObject() const;
  12623. StringHash GetStringHash() const;
  12624. Array<String> GetStringVector() const;
  12625. uint GetUInt() const;
  12626. Array<Variant> GetVariantVector() const;
  12627. const IntRect& GetIntRect() const;
  12628. const IntVector2& GetIntVector2() const;
  12629. const Matrix3& GetMatrix3() const;
  12630. const Matrix3x4& GetMatrix3x4() const;
  12631. const Matrix4& GetMatrix4() const;
  12632. const Quaternion& GetQuaternion() const;
  12633. const ResourceRef& GetResourceRef() const;
  12634. const ResourceRefList& GetResourceRefList() const;
  12635. const String& GetString() const;
  12636. String ToString() const;
  12637. const VariantMap& GetVariantMap() const;
  12638. const Vector2& GetVector2() const;
  12639. const Vector3& GetVector3() const;
  12640. const Vector4& GetVector4() const;
  12641. // Properties:
  12642. /* readonly */
  12643. bool empty;
  12644. /* readonly */
  12645. VariantType type;
  12646. /* readonly */
  12647. String typeName;
  12648. /* readonly */
  12649. bool zero;
  12650. };
  12651. class VariantMap
  12652. {
  12653. // Methods:
  12654. void Clear();
  12655. bool Contains(StringHash) const;
  12656. bool Contains(const String&) const;
  12657. bool Erase(StringHash);
  12658. bool Erase(const String&);
  12659. // Properties:
  12660. /* readonly */
  12661. Array<StringHash> keys;
  12662. /* readonly */
  12663. uint length;
  12664. /* readonly */
  12665. Array<Variant> values;
  12666. };
  12667. class Vector2
  12668. {
  12669. // Methods:
  12670. Vector2 Abs() const;
  12671. float AbsDotProduct(const Vector2&) const;
  12672. float Angle(const Vector2&) const;
  12673. float DotProduct(const Vector2&) const;
  12674. bool Equals(const Vector2&) const;
  12675. bool IsNaN() const;
  12676. Vector2 Lerp(const Vector2&, float) const;
  12677. void Normalize();
  12678. Vector2 Normalized() const;
  12679. String ToString() const;
  12680. // Properties:
  12681. /* readonly */
  12682. Array<float> data;
  12683. /* readonly */
  12684. float length;
  12685. /* readonly */
  12686. float lengthSquared;
  12687. float x;
  12688. float y;
  12689. };
  12690. class Vector3
  12691. {
  12692. // Methods:
  12693. Vector3 Abs() const;
  12694. float AbsDotProduct(const Vector3&) const;
  12695. float Angle(const Vector3&) const;
  12696. Vector3 CrossProduct(const Vector3&) const;
  12697. float DotProduct(const Vector3&) const;
  12698. bool Equals(const Vector3&) const;
  12699. bool IsNaN() const;
  12700. Vector3 Lerp(const Vector3&, float) const;
  12701. void Normalize();
  12702. Vector3 Normalized() const;
  12703. String ToString() const;
  12704. // Properties:
  12705. /* readonly */
  12706. Array<float> data;
  12707. /* readonly */
  12708. float length;
  12709. /* readonly */
  12710. float lengthSquared;
  12711. float x;
  12712. float y;
  12713. float z;
  12714. };
  12715. class Vector4
  12716. {
  12717. // Methods:
  12718. Vector4 Abs() const;
  12719. float AbsDotProduct(const Vector4&) const;
  12720. float DotProduct(const Vector4&) const;
  12721. bool Equals(const Vector4&) const;
  12722. bool IsNaN() const;
  12723. Vector4 Lerp(const Vector4&, float) const;
  12724. String ToString() const;
  12725. // Properties:
  12726. /* readonly */
  12727. Array<float> data;
  12728. float w;
  12729. float x;
  12730. float y;
  12731. float z;
  12732. };
  12733. class VectorBuffer
  12734. {
  12735. // Methods:
  12736. void Clear();
  12737. Array<uint8> Read(uint);
  12738. bool ReadBool();
  12739. BoundingBox ReadBoundingBox();
  12740. int8 ReadByte();
  12741. Color ReadColor();
  12742. double ReadDouble();
  12743. String ReadFileID();
  12744. float ReadFloat();
  12745. int ReadInt();
  12746. int64 ReadInt64();
  12747. IntRect ReadIntRect();
  12748. IntVector2 ReadIntVector2();
  12749. String ReadLine();
  12750. Matrix3 ReadMatrix3();
  12751. Matrix3x4 ReadMatrix3x4();
  12752. Matrix4 ReadMatrix4();
  12753. uint ReadNetID();
  12754. Quaternion ReadPackedQuaternion();
  12755. Vector3 ReadPackedVector3(float);
  12756. Quaternion ReadQuaternion();
  12757. int16 ReadShort();
  12758. String ReadString();
  12759. StringHash ReadStringHash();
  12760. uint8 ReadUByte();
  12761. uint ReadUInt();
  12762. uint64 ReadUInt64();
  12763. uint16 ReadUShort();
  12764. uint ReadVLE();
  12765. Variant ReadVariant();
  12766. VariantMap ReadVariantMap();
  12767. Vector2 ReadVector2();
  12768. Vector3 ReadVector3();
  12769. Vector4 ReadVector4();
  12770. VectorBuffer ReadVectorBuffer(uint);
  12771. void Resize(uint);
  12772. uint Seek(uint);
  12773. void SetData(Deserializer, uint);
  12774. uint Write(Array<uint8>);
  12775. bool WriteBool(bool);
  12776. bool WriteBoundingBox(const BoundingBox&);
  12777. bool WriteByte(int8);
  12778. bool WriteColor(const Color&);
  12779. bool WriteDouble(double);
  12780. bool WriteFileID(const String&);
  12781. bool WriteFloat(float);
  12782. bool WriteInt(int);
  12783. bool WriteInt64(int64);
  12784. bool WriteIntRect(const IntRect&);
  12785. bool WriteIntVector2(const IntVector2&);
  12786. bool WriteLine(const String&);
  12787. bool WriteMatrix3(const Matrix3&);
  12788. bool WriteMatrix3x4(const Matrix3x4&);
  12789. bool WriteMatrix4(const Matrix4&);
  12790. bool WriteNetID(uint);
  12791. bool WritePackedQuaternion(const Quaternion&);
  12792. bool WritePackedVector3(const Vector3&, float);
  12793. bool WriteQuaternion(const Quaternion&);
  12794. bool WriteShort(int16);
  12795. bool WriteString(const String&);
  12796. bool WriteStringHash(const StringHash&);
  12797. bool WriteUByte(uint8);
  12798. bool WriteUInt(uint);
  12799. bool WriteUInt64(uint64);
  12800. bool WriteUShort(uint16);
  12801. bool WriteVLE(uint);
  12802. bool WriteVariant(const Variant&);
  12803. bool WriteVariantMap(const VariantMap&);
  12804. bool WriteVector2(const Vector2&);
  12805. bool WriteVector3(const Vector3&);
  12806. bool WriteVector4(const Vector4&);
  12807. bool WriteVectorBuffer(const VectorBuffer&);
  12808. // Properties:
  12809. /* readonly */
  12810. uint checksum;
  12811. /* readonly */
  12812. bool eof;
  12813. /* readonly */
  12814. String name;
  12815. /* readonly */
  12816. uint position;
  12817. /* readonly */
  12818. uint size;
  12819. };
  12820. class VertexBuffer
  12821. {
  12822. // Methods:
  12823. VectorBuffer GetData() const;
  12824. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12825. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12826. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12827. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12828. bool HasSubscribedToEvent(Object, const String&);
  12829. bool HasSubscribedToEvent(const String&);
  12830. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12831. bool SetData(VectorBuffer&);
  12832. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12833. void SetSize(uint, Array<VertexElement>, bool = false);
  12834. void SetSize(uint, uint, bool = false);
  12835. // Properties:
  12836. /* readonly */
  12837. String category;
  12838. /* readonly */
  12839. bool dynamic;
  12840. /* readonly */
  12841. uint elementMask;
  12842. /* readonly */
  12843. Array<VertexElement> elements;
  12844. /* readonly */
  12845. int refs;
  12846. bool shadowed;
  12847. /* readonly */
  12848. StringHash type;
  12849. /* readonly */
  12850. String typeName;
  12851. /* readonly */
  12852. uint vertexCount;
  12853. /* readonly */
  12854. uint vertexSize;
  12855. /* readonly */
  12856. int weakRefs;
  12857. };
  12858. class VertexElement
  12859. {
  12860. // Properties:
  12861. uint8 index;
  12862. uint offset;
  12863. bool perInstance;
  12864. VertexElementSemantic semantic;
  12865. VertexElementType type;
  12866. };
  12867. class View3D
  12868. {
  12869. // Methods:
  12870. void AddChild(UIElement);
  12871. void AddTag(const String&);
  12872. void AddTags(const String&, int8 = ';');
  12873. void ApplyAttributes();
  12874. void BringToFront();
  12875. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12876. void DisableLayoutUpdate();
  12877. IntVector2 ElementToScreen(const IntVector2&);
  12878. void EnableLayoutUpdate();
  12879. uint FindChild(UIElement) const;
  12880. Variant GetAttribute(const String&) const;
  12881. ValueAnimation GetAttributeAnimation(const String&) const;
  12882. float GetAttributeAnimationSpeed(const String&) const;
  12883. float GetAttributeAnimationTime(const String&) const;
  12884. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12885. Variant GetAttributeDefault(const String&) const;
  12886. UIElement GetChild(const String&, bool = false) const;
  12887. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12888. Array<UIElement> GetChildren(bool = false) const;
  12889. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12890. UIElement GetElementEventSender() const;
  12891. bool GetInterceptNetworkUpdate(const String&) const;
  12892. uint GetNumChildren(bool) const;
  12893. bool HasSubscribedToEvent(Object, const String&);
  12894. bool HasSubscribedToEvent(const String&);
  12895. bool HasTag(const String&) const;
  12896. void InsertChild(uint, UIElement);
  12897. bool IsInside(IntVector2, bool);
  12898. bool IsInsideCombined(IntVector2, bool);
  12899. bool Load(File, bool = false);
  12900. bool Load(VectorBuffer&, bool = false);
  12901. bool LoadChildXML(XMLFile, XMLFile = null);
  12902. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12903. bool LoadJSON(const JSONValue&, bool = false);
  12904. bool LoadXML(File);
  12905. bool LoadXML(VectorBuffer&);
  12906. bool LoadXML(XMLFile, XMLFile);
  12907. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12908. bool LoadXML(const XMLElement&, bool = false);
  12909. void MarkNetworkUpdate() const;
  12910. void QueueUpdate();
  12911. void Remove();
  12912. void RemoveAllChildren();
  12913. void RemoveAllTags();
  12914. void RemoveAttributeAnimation(const String&);
  12915. void RemoveChild(UIElement, uint = 0);
  12916. void RemoveChild(uint);
  12917. void RemoveInstanceDefault();
  12918. void RemoveObjectAnimation();
  12919. bool RemoveTag(const String&);
  12920. void ResetDeepEnabled();
  12921. void ResetToDefault();
  12922. bool Save(File) const;
  12923. bool Save(VectorBuffer&) const;
  12924. bool SaveJSON(JSONValue&) const;
  12925. bool SaveXML(File, const String& = "\t");
  12926. bool SaveXML(VectorBuffer&, const String& = "\t");
  12927. bool SaveXML(XMLElement&) const;
  12928. IntVector2 ScreenToElement(const IntVector2&);
  12929. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12930. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12931. void SetAnimationTime(float);
  12932. bool SetAttribute(const String&, const Variant&);
  12933. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12934. void SetAttributeAnimationSpeed(const String&, float);
  12935. void SetAttributeAnimationTime(const String&, float);
  12936. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12937. void SetDeepEnabled(bool);
  12938. void SetEnabledRecursive(bool);
  12939. void SetFixedHeight(int);
  12940. void SetFixedSize(int, int);
  12941. void SetFixedWidth(int);
  12942. void SetFullImageRect();
  12943. void SetHoverOffset(int, int);
  12944. void SetInterceptNetworkUpdate(const String&, bool);
  12945. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12946. void SetMaxSize(int, int);
  12947. void SetMinSize(int, int);
  12948. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12949. void SetPosition(int, int);
  12950. void SetSize(int, int);
  12951. bool SetStyle(const String&, XMLFile = null);
  12952. bool SetStyle(const XMLElement&);
  12953. bool SetStyleAuto(XMLFile = null);
  12954. void SetView(Scene, Camera, bool = true);
  12955. void UpdateLayout();
  12956. const Variant& GetVar(const StringHash&);
  12957. // Properties:
  12958. bool animationEnabled;
  12959. /* readonly */
  12960. Array<Variant> attributeDefaults;
  12961. /* readonly */
  12962. Array<AttributeInfo> attributeInfos;
  12963. Array<Variant> attributes;
  12964. bool autoUpdate;
  12965. BlendMode blendMode;
  12966. IntRect border;
  12967. bool bringToBack;
  12968. bool bringToFront;
  12969. /* readonly */
  12970. Node cameraNode;
  12971. /* readonly */
  12972. String category;
  12973. /* readonly */
  12974. IntVector2 childOffset;
  12975. /* readonly */
  12976. Array<UIElement> children;
  12977. IntRect clipBorder;
  12978. bool clipChildren;
  12979. /* writeonly */
  12980. Color color;
  12981. /* readonly */
  12982. bool colorGradient;
  12983. Array<Color> colors;
  12984. /* readonly */
  12985. IntRect combinedScreenRect;
  12986. XMLFile defaultStyle;
  12987. /* readonly */
  12988. Texture2D depthTexture;
  12989. /* readonly */
  12990. float derivedOpacity;
  12991. /* readonly */
  12992. uint dragButtonCombo;
  12993. /* readonly */
  12994. int dragButtonCount;
  12995. uint dragDropMode;
  12996. bool editable;
  12997. bool elementEventSender;
  12998. bool enabled;
  12999. /* readonly */
  13000. bool enabledSelf;
  13001. /* readonly */
  13002. bool fixedHeight;
  13003. bool fixedHeightResizing;
  13004. /* readonly */
  13005. bool fixedSize;
  13006. /* readonly */
  13007. bool fixedWidth;
  13008. bool fixedWidthResizing;
  13009. bool focus;
  13010. FocusMode focusMode;
  13011. uint format;
  13012. int height;
  13013. HorizontalAlignment horizontalAlignment;
  13014. IntVector2 hoverOffset;
  13015. /* readonly */
  13016. bool hovering;
  13017. IntRect imageBorder;
  13018. IntRect imageRect;
  13019. int indent;
  13020. int indentSpacing;
  13021. /* readonly */
  13022. int indentWidth;
  13023. bool internal;
  13024. IntRect layoutBorder;
  13025. Vector2 layoutFlexScale;
  13026. LayoutMode layoutMode;
  13027. int layoutSpacing;
  13028. int maxHeight;
  13029. IntVector2 maxSize;
  13030. int maxWidth;
  13031. int minHeight;
  13032. IntVector2 minSize;
  13033. int minWidth;
  13034. bool modal;
  13035. bool modalAutoDismiss;
  13036. Color modalFrameColor;
  13037. IntVector2 modalFrameSize;
  13038. Color modalShadeColor;
  13039. bool movable;
  13040. String name;
  13041. /* readonly */
  13042. uint numAllChildren;
  13043. /* readonly */
  13044. uint numAttributes;
  13045. /* readonly */
  13046. uint numChildren;
  13047. ObjectAnimation objectAnimation;
  13048. float opacity;
  13049. UIElement parent;
  13050. IntVector2 position;
  13051. int priority;
  13052. /* readonly */
  13053. int refs;
  13054. /* readonly */
  13055. Texture2D renderTexture;
  13056. bool resizable;
  13057. IntRect resizeBorder;
  13058. /* readonly */
  13059. UIElement root;
  13060. /* readonly */
  13061. Scene scene;
  13062. /* readonly */
  13063. IntVector2 screenPosition;
  13064. bool selected;
  13065. IntVector2 size;
  13066. bool sortChildren;
  13067. String style;
  13068. /* readonly */
  13069. Array<String> tags;
  13070. bool temporary;
  13071. Texture texture;
  13072. bool tiled;
  13073. TraversalMode traversalMode;
  13074. /* readonly */
  13075. StringHash type;
  13076. /* readonly */
  13077. String typeName;
  13078. bool useDerivedOpacity;
  13079. /* readonly */
  13080. VariantMap vars;
  13081. VerticalAlignment verticalAlignment;
  13082. /* readonly */
  13083. Viewport viewport;
  13084. bool visible;
  13085. /* readonly */
  13086. bool visibleEffective;
  13087. /* readonly */
  13088. int weakRefs;
  13089. int width;
  13090. };
  13091. class Viewport
  13092. {
  13093. // Methods:
  13094. Ray GetScreenRay(int, int) const;
  13095. bool HasSubscribedToEvent(Object, const String&);
  13096. bool HasSubscribedToEvent(const String&);
  13097. Vector3 ScreenToWorldPoint(int, int, float) const;
  13098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13099. void SetRenderPath(XMLFile);
  13100. Vector2 WorldToScreenPoint(const Vector3&) const;
  13101. // Properties:
  13102. Camera camera;
  13103. /* readonly */
  13104. String category;
  13105. Camera cullCamera;
  13106. bool drawDebug;
  13107. IntRect rect;
  13108. /* readonly */
  13109. int refs;
  13110. RenderPath renderPath;
  13111. Scene scene;
  13112. /* readonly */
  13113. StringHash type;
  13114. /* readonly */
  13115. String typeName;
  13116. /* readonly */
  13117. int weakRefs;
  13118. };
  13119. class WeakHandle
  13120. {
  13121. // Methods:
  13122. RefCounted Get() const;
  13123. // Properties:
  13124. /* readonly */
  13125. bool expired;
  13126. /* readonly */
  13127. int refs;
  13128. /* readonly */
  13129. int weakRefs;
  13130. };
  13131. class Window
  13132. {
  13133. // Methods:
  13134. void AddChild(UIElement);
  13135. void AddTag(const String&);
  13136. void AddTags(const String&, int8 = ';');
  13137. void ApplyAttributes();
  13138. void BringToFront();
  13139. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13140. void DisableLayoutUpdate();
  13141. IntVector2 ElementToScreen(const IntVector2&);
  13142. void EnableLayoutUpdate();
  13143. uint FindChild(UIElement) const;
  13144. Variant GetAttribute(const String&) const;
  13145. ValueAnimation GetAttributeAnimation(const String&) const;
  13146. float GetAttributeAnimationSpeed(const String&) const;
  13147. float GetAttributeAnimationTime(const String&) const;
  13148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13149. Variant GetAttributeDefault(const String&) const;
  13150. UIElement GetChild(const String&, bool = false) const;
  13151. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13152. Array<UIElement> GetChildren(bool = false) const;
  13153. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13154. UIElement GetElementEventSender() const;
  13155. bool GetInterceptNetworkUpdate(const String&) const;
  13156. uint GetNumChildren(bool) const;
  13157. bool HasSubscribedToEvent(Object, const String&);
  13158. bool HasSubscribedToEvent(const String&);
  13159. bool HasTag(const String&) const;
  13160. void InsertChild(uint, UIElement);
  13161. bool IsInside(IntVector2, bool);
  13162. bool IsInsideCombined(IntVector2, bool);
  13163. bool Load(File, bool = false);
  13164. bool Load(VectorBuffer&, bool = false);
  13165. bool LoadChildXML(XMLFile, XMLFile = null);
  13166. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13167. bool LoadJSON(const JSONValue&, bool = false);
  13168. bool LoadXML(File);
  13169. bool LoadXML(VectorBuffer&);
  13170. bool LoadXML(XMLFile, XMLFile);
  13171. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13172. bool LoadXML(const XMLElement&, bool = false);
  13173. void MarkNetworkUpdate() const;
  13174. void Remove();
  13175. void RemoveAllChildren();
  13176. void RemoveAllTags();
  13177. void RemoveAttributeAnimation(const String&);
  13178. void RemoveChild(UIElement, uint = 0);
  13179. void RemoveChild(uint);
  13180. void RemoveInstanceDefault();
  13181. void RemoveObjectAnimation();
  13182. bool RemoveTag(const String&);
  13183. void ResetDeepEnabled();
  13184. void ResetToDefault();
  13185. bool Save(File) const;
  13186. bool Save(VectorBuffer&) const;
  13187. bool SaveJSON(JSONValue&) const;
  13188. bool SaveXML(File, const String& = "\t");
  13189. bool SaveXML(VectorBuffer&, const String& = "\t");
  13190. bool SaveXML(XMLElement&) const;
  13191. IntVector2 ScreenToElement(const IntVector2&);
  13192. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13193. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13194. void SetAnimationTime(float);
  13195. bool SetAttribute(const String&, const Variant&);
  13196. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13197. void SetAttributeAnimationSpeed(const String&, float);
  13198. void SetAttributeAnimationTime(const String&, float);
  13199. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13200. void SetDeepEnabled(bool);
  13201. void SetEnabledRecursive(bool);
  13202. void SetFixedHeight(int);
  13203. void SetFixedSize(int, int);
  13204. void SetFixedWidth(int);
  13205. void SetFullImageRect();
  13206. void SetHoverOffset(int, int);
  13207. void SetInterceptNetworkUpdate(const String&, bool);
  13208. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13209. void SetMaxSize(int, int);
  13210. void SetMinSize(int, int);
  13211. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13212. void SetPosition(int, int);
  13213. void SetSize(int, int);
  13214. bool SetStyle(const String&, XMLFile = null);
  13215. bool SetStyle(const XMLElement&);
  13216. bool SetStyleAuto(XMLFile = null);
  13217. void UpdateLayout();
  13218. const Variant& GetVar(const StringHash&);
  13219. // Properties:
  13220. bool animationEnabled;
  13221. /* readonly */
  13222. Array<Variant> attributeDefaults;
  13223. /* readonly */
  13224. Array<AttributeInfo> attributeInfos;
  13225. Array<Variant> attributes;
  13226. BlendMode blendMode;
  13227. IntRect border;
  13228. bool bringToBack;
  13229. bool bringToFront;
  13230. /* readonly */
  13231. String category;
  13232. /* readonly */
  13233. IntVector2 childOffset;
  13234. /* readonly */
  13235. Array<UIElement> children;
  13236. IntRect clipBorder;
  13237. bool clipChildren;
  13238. /* writeonly */
  13239. Color color;
  13240. /* readonly */
  13241. bool colorGradient;
  13242. Array<Color> colors;
  13243. /* readonly */
  13244. IntRect combinedScreenRect;
  13245. XMLFile defaultStyle;
  13246. /* readonly */
  13247. float derivedOpacity;
  13248. /* readonly */
  13249. uint dragButtonCombo;
  13250. /* readonly */
  13251. int dragButtonCount;
  13252. uint dragDropMode;
  13253. bool editable;
  13254. bool elementEventSender;
  13255. bool enabled;
  13256. /* readonly */
  13257. bool enabledSelf;
  13258. /* readonly */
  13259. bool fixedHeight;
  13260. bool fixedHeightResizing;
  13261. /* readonly */
  13262. bool fixedSize;
  13263. /* readonly */
  13264. bool fixedWidth;
  13265. bool fixedWidthResizing;
  13266. bool focus;
  13267. FocusMode focusMode;
  13268. int height;
  13269. HorizontalAlignment horizontalAlignment;
  13270. IntVector2 hoverOffset;
  13271. /* readonly */
  13272. bool hovering;
  13273. IntRect imageBorder;
  13274. IntRect imageRect;
  13275. int indent;
  13276. int indentSpacing;
  13277. /* readonly */
  13278. int indentWidth;
  13279. bool internal;
  13280. IntRect layoutBorder;
  13281. Vector2 layoutFlexScale;
  13282. LayoutMode layoutMode;
  13283. int layoutSpacing;
  13284. int maxHeight;
  13285. IntVector2 maxSize;
  13286. int maxWidth;
  13287. int minHeight;
  13288. IntVector2 minSize;
  13289. int minWidth;
  13290. bool modal;
  13291. bool modalAutoDismiss;
  13292. Color modalFrameColor;
  13293. IntVector2 modalFrameSize;
  13294. Color modalShadeColor;
  13295. bool movable;
  13296. String name;
  13297. /* readonly */
  13298. uint numAllChildren;
  13299. /* readonly */
  13300. uint numAttributes;
  13301. /* readonly */
  13302. uint numChildren;
  13303. ObjectAnimation objectAnimation;
  13304. float opacity;
  13305. UIElement parent;
  13306. IntVector2 position;
  13307. int priority;
  13308. /* readonly */
  13309. int refs;
  13310. bool resizable;
  13311. IntRect resizeBorder;
  13312. /* readonly */
  13313. UIElement root;
  13314. /* readonly */
  13315. IntVector2 screenPosition;
  13316. bool selected;
  13317. IntVector2 size;
  13318. bool sortChildren;
  13319. String style;
  13320. /* readonly */
  13321. Array<String> tags;
  13322. bool temporary;
  13323. Texture texture;
  13324. bool tiled;
  13325. TraversalMode traversalMode;
  13326. /* readonly */
  13327. StringHash type;
  13328. /* readonly */
  13329. String typeName;
  13330. bool useDerivedOpacity;
  13331. /* readonly */
  13332. VariantMap vars;
  13333. VerticalAlignment verticalAlignment;
  13334. bool visible;
  13335. /* readonly */
  13336. bool visibleEffective;
  13337. /* readonly */
  13338. int weakRefs;
  13339. int width;
  13340. };
  13341. class XMLElement
  13342. {
  13343. // Methods:
  13344. XMLElement CreateChild(const String&);
  13345. String GetAttribute(const String& = String ( )) const;
  13346. String GetAttributeLower(const String&) const;
  13347. Array<String> GetAttributeNames() const;
  13348. String GetAttributeUpper(const String&) const;
  13349. bool GetBool(const String&) const;
  13350. BoundingBox GetBoundingBox() const;
  13351. XMLElement GetChild(const String& = String ( )) const;
  13352. Color GetColor(const String&) const;
  13353. double GetDouble(const String&) const;
  13354. float GetFloat(const String&) const;
  13355. int GetInt(const String&) const;
  13356. IntRect GetIntRect(const String&) const;
  13357. IntVector2 GetIntVector2(const String&) const;
  13358. Matrix3 GetMatrix3(const String&) const;
  13359. Matrix3x4 GetMatrix3x4(const String&) const;
  13360. Matrix4 GetMatrix4(const String&) const;
  13361. XMLElement GetNext(const String& = String ( )) const;
  13362. Quaternion GetQuaternion(const String&) const;
  13363. ResourceRef GetResourceRef() const;
  13364. ResourceRefList GetResourceRefList() const;
  13365. uint GetUInt(const String&) const;
  13366. String GetValue() const;
  13367. Variant GetVariant() const;
  13368. VariantMap GetVariantMap() const;
  13369. Array<Variant> GetVariantVector() const;
  13370. Vector2 GetVector2(const String&) const;
  13371. Vector3 GetVector3(const String&) const;
  13372. Vector4 GetVector4(const String&) const;
  13373. Variant GetVectorVariant(const String&) const;
  13374. bool HasAttribute(const String&) const;
  13375. bool HasChild(const String&) const;
  13376. bool RemoveAttribute(const String& = String ( ));
  13377. bool RemoveChild(const String&);
  13378. bool RemoveChild(const XMLElement&);
  13379. bool RemoveChildren(const String& = String ( ));
  13380. XPathResultSet Select(const String&);
  13381. XPathResultSet SelectPrepared(const XPathQuery&);
  13382. XMLElement SelectSingle(const String&);
  13383. XMLElement SelectSinglePrepared(const XPathQuery&);
  13384. bool SetAttribute(const String&);
  13385. bool SetAttribute(const String&, const String&);
  13386. bool SetBool(const String&, bool);
  13387. bool SetBoundingBox(const BoundingBox&);
  13388. bool SetColor(const String&, const Color&);
  13389. bool SetDouble(const String&, double);
  13390. bool SetFloat(const String&, float);
  13391. bool SetInt(const String&, int);
  13392. bool SetIntRect(const String&, const IntRect&);
  13393. bool SetIntVector2(const String&, const IntVector2&);
  13394. bool SetMatrix3(const String&, const Matrix3&);
  13395. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13396. bool SetMatrix4(const String&, const Matrix4&);
  13397. bool SetQuaternion(const String&, const Quaternion&);
  13398. bool SetResourceRef(const String&, const ResourceRef&);
  13399. bool SetResourceRefList(const String&, const ResourceRefList&);
  13400. bool SetUInt(const String&, uint);
  13401. bool SetValue(const String&);
  13402. bool SetVariant(const Variant&);
  13403. bool SetVariantMap(const VariantMap&);
  13404. bool SetVariantVector(Array<Variant>);
  13405. bool SetVector2(const String&, const Vector2&);
  13406. bool SetVector3(const String&, const Vector3&);
  13407. bool SetVector4(const String&, const Vector4&);
  13408. bool SetVectorVariant(const String&, const Variant&);
  13409. // Properties:
  13410. /* readonly */
  13411. XMLFile file;
  13412. /* readonly */
  13413. bool isNull;
  13414. /* readonly */
  13415. String name;
  13416. /* readonly */
  13417. XMLElement nextResult;
  13418. /* readonly */
  13419. bool notNull;
  13420. /* readonly */
  13421. uint numAttributes;
  13422. /* readonly */
  13423. XMLElement parent;
  13424. String value;
  13425. };
  13426. class XMLFile
  13427. {
  13428. // Methods:
  13429. XMLElement CreateRoot(const String&);
  13430. bool FromString(const String&);
  13431. XMLElement GetRoot(const String& = String ( ));
  13432. bool HasSubscribedToEvent(Object, const String&);
  13433. bool HasSubscribedToEvent(const String&);
  13434. bool Load(File);
  13435. bool Load(VectorBuffer&);
  13436. void Patch(XMLElement);
  13437. void Patch(XMLFile);
  13438. bool Save(File) const;
  13439. bool Save(File, const String&) const;
  13440. bool Save(VectorBuffer&) const;
  13441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13442. String ToString(const String& = String ( "\t" )) const;
  13443. // Properties:
  13444. /* readonly */
  13445. String category;
  13446. /* readonly */
  13447. uint memoryUse;
  13448. String name;
  13449. /* readonly */
  13450. int refs;
  13451. /* readonly */
  13452. XMLElement root;
  13453. /* readonly */
  13454. StringHash type;
  13455. /* readonly */
  13456. String typeName;
  13457. /* readonly */
  13458. uint useTimer;
  13459. /* readonly */
  13460. int weakRefs;
  13461. };
  13462. class XPathQuery
  13463. {
  13464. // Methods:
  13465. void Bind();
  13466. void Clear();
  13467. XPathResultSet Evaluate(XMLElement);
  13468. bool EvaluateToBool(XMLElement);
  13469. float EvaluateToFloat(XMLElement);
  13470. String EvaluateToString(XMLElement);
  13471. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13472. bool SetVariable(const String&, bool);
  13473. bool SetVariable(const String&, const String&);
  13474. bool SetVariable(const String&, const XPathResultSet&);
  13475. bool SetVariable(const String&, float);
  13476. // Properties:
  13477. String query;
  13478. };
  13479. class XPathResultSet
  13480. {
  13481. // Properties:
  13482. /* readonly */
  13483. bool empty;
  13484. /* readonly */
  13485. XMLElement firstResult;
  13486. /* readonly */
  13487. uint size;
  13488. };
  13489. class Zone
  13490. {
  13491. // Methods:
  13492. void ApplyAttributes();
  13493. void DrawDebugGeometry(DebugRenderer, bool);
  13494. Variant GetAttribute(const String&) const;
  13495. ValueAnimation GetAttributeAnimation(const String&) const;
  13496. float GetAttributeAnimationSpeed(const String&) const;
  13497. float GetAttributeAnimationTime(const String&) const;
  13498. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13499. Variant GetAttributeDefault(const String&) const;
  13500. bool GetInterceptNetworkUpdate(const String&) const;
  13501. bool HasSubscribedToEvent(Object, const String&);
  13502. bool HasSubscribedToEvent(const String&);
  13503. bool IsInView(Camera) const;
  13504. bool Load(File, bool = false);
  13505. bool Load(VectorBuffer&, bool = false);
  13506. bool LoadJSON(const JSONValue&, bool = false);
  13507. bool LoadXML(const XMLElement&, bool = false);
  13508. void MarkNetworkUpdate() const;
  13509. void Remove();
  13510. void RemoveAttributeAnimation(const String&);
  13511. void RemoveInstanceDefault();
  13512. void RemoveObjectAnimation();
  13513. void ResetToDefault();
  13514. bool Save(File) const;
  13515. bool Save(VectorBuffer&) const;
  13516. bool SaveJSON(JSONValue&) const;
  13517. bool SaveXML(XMLElement&) const;
  13518. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13519. void SetAnimationTime(float);
  13520. bool SetAttribute(const String&, const Variant&);
  13521. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13522. void SetAttributeAnimationSpeed(const String&, float);
  13523. void SetAttributeAnimationTime(const String&, float);
  13524. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13525. void SetInterceptNetworkUpdate(const String&, bool);
  13526. // Properties:
  13527. Color ambientColor;
  13528. /* readonly */
  13529. Color ambientEndColor;
  13530. bool ambientGradient;
  13531. /* readonly */
  13532. Color ambientStartColor;
  13533. bool animationEnabled;
  13534. /* readonly */
  13535. Array<Variant> attributeDefaults;
  13536. /* readonly */
  13537. Array<AttributeInfo> attributeInfos;
  13538. Array<Variant> attributes;
  13539. BoundingBox boundingBox;
  13540. bool castShadows;
  13541. /* readonly */
  13542. String category;
  13543. float drawDistance;
  13544. bool enabled;
  13545. /* readonly */
  13546. bool enabledEffective;
  13547. Color fogColor;
  13548. float fogEnd;
  13549. float fogHeight;
  13550. float fogHeightScale;
  13551. float fogStart;
  13552. bool heightFog;
  13553. /* readonly */
  13554. uint id;
  13555. /* readonly */
  13556. bool inView;
  13557. /* readonly */
  13558. Matrix3x4 inverseWorldTransform;
  13559. uint lightMask;
  13560. float lodBias;
  13561. uint maxLights;
  13562. /* readonly */
  13563. Node node;
  13564. /* readonly */
  13565. uint numAttributes;
  13566. ObjectAnimation objectAnimation;
  13567. bool occludee;
  13568. bool occluder;
  13569. bool override;
  13570. int priority;
  13571. /* readonly */
  13572. int refs;
  13573. float shadowDistance;
  13574. uint shadowMask;
  13575. bool temporary;
  13576. /* readonly */
  13577. StringHash type;
  13578. /* readonly */
  13579. String typeName;
  13580. uint viewMask;
  13581. /* readonly */
  13582. int weakRefs;
  13583. /* readonly */
  13584. BoundingBox worldBoundingBox;
  13585. uint zoneMask;
  13586. Texture zoneTexture;
  13587. };
  13588. // Enumerations
  13589. enum AnimationBlendMode
  13590. {
  13591. ABM_LERP,
  13592. ABM_ADDITIVE,
  13593. };
  13594. enum AutoRemoveMode
  13595. {
  13596. REMOVE_DISABLED,
  13597. REMOVE_COMPONENT,
  13598. REMOVE_NODE,
  13599. };
  13600. enum BlendMode
  13601. {
  13602. BLEND_REPLACE,
  13603. BLEND_ADD,
  13604. BLEND_MULTIPLY,
  13605. BLEND_ALPHA,
  13606. BLEND_ADDALPHA,
  13607. BLEND_PREMULALPHA,
  13608. BLEND_INVDESTALPHA,
  13609. BLEND_SUBTRACT,
  13610. BLEND_SUBTRACTALPHA,
  13611. };
  13612. enum BodyType2D
  13613. {
  13614. BT_STATIC,
  13615. BT_KINEMATIC,
  13616. BT_DYNAMIC,
  13617. };
  13618. enum CollisionEventMode
  13619. {
  13620. COLLISION_NEVER,
  13621. COLLISION_ACTIVE,
  13622. COLLISION_ALWAYS,
  13623. };
  13624. enum CompareMode
  13625. {
  13626. CMP_ALWAYS,
  13627. CMP_EQUAL,
  13628. CMP_NOTEQUAL,
  13629. CMP_LESS,
  13630. CMP_LESSEQUAL,
  13631. CMP_GREATER,
  13632. CMP_GREATEREQUAL,
  13633. };
  13634. enum CompressedFormat
  13635. {
  13636. CF_NONE,
  13637. CF_RGBA,
  13638. CF_DXT1,
  13639. CF_DXT3,
  13640. CF_DXT5,
  13641. CF_ETC1,
  13642. CF_PVRTC_RGB_2BPP,
  13643. CF_PVRTC_RGBA_2BPP,
  13644. CF_PVRTC_RGB_4BPP,
  13645. CF_PVRTC_RGBA_4BPP,
  13646. };
  13647. enum ConstraintType
  13648. {
  13649. CONSTRAINT_POINT,
  13650. CONSTRAINT_HINGE,
  13651. CONSTRAINT_SLIDER,
  13652. CONSTRAINT_CONETWIST,
  13653. };
  13654. enum Corner
  13655. {
  13656. C_TOPLEFT,
  13657. C_TOPRIGHT,
  13658. C_BOTTOMLEFT,
  13659. C_BOTTOMRIGHT,
  13660. };
  13661. enum CreateMode
  13662. {
  13663. REPLICATED,
  13664. LOCAL,
  13665. };
  13666. enum CrowdAgentRequestedTarget
  13667. {
  13668. CA_REQUESTEDTARGET_NONE,
  13669. CA_REQUESTEDTARGET_POSITION,
  13670. CA_REQUESTEDTARGET_VELOCITY,
  13671. };
  13672. enum CrowdAgentState
  13673. {
  13674. CA_STATE_INVALID,
  13675. CA_STATE_WALKING,
  13676. CA_STATE_OFFMESH,
  13677. };
  13678. enum CrowdAgentTargetState
  13679. {
  13680. CA_TARGET_NONE,
  13681. CA_TARGET_FAILED,
  13682. CA_TARGET_VALID,
  13683. CA_TARGET_REQUESTING,
  13684. CA_TARGET_WAITINGFORQUEUE,
  13685. CA_TARGET_WAITINGFORPATH,
  13686. CA_TARGET_VELOCITY,
  13687. };
  13688. enum CubeMapFace
  13689. {
  13690. FACE_POSITIVE_X,
  13691. FACE_NEGATIVE_X,
  13692. FACE_POSITIVE_Y,
  13693. FACE_NEGATIVE_Y,
  13694. FACE_POSITIVE_Z,
  13695. FACE_NEGATIVE_Z,
  13696. };
  13697. enum CullMode
  13698. {
  13699. CULL_NONE,
  13700. CULL_CCW,
  13701. CULL_CW,
  13702. };
  13703. enum CursorShape
  13704. {
  13705. CS_NORMAL,
  13706. CS_IBEAM,
  13707. CS_CROSS,
  13708. CS_RESIZEVERTICAL,
  13709. CS_RESIZEDIAGONAL_TOPRIGHT,
  13710. CS_RESIZEHORIZONTAL,
  13711. CS_RESIZEDIAGONAL_TOPLEFT,
  13712. CS_RESIZE_ALL,
  13713. CS_ACCEPTDROP,
  13714. CS_REJECTDROP,
  13715. CS_BUSY,
  13716. CS_BUSY_ARROW,
  13717. };
  13718. enum DBAPI
  13719. {
  13720. DBAPI_SQLITE,
  13721. DBAPI_ODBC,
  13722. };
  13723. enum DumpMode
  13724. {
  13725. DOXYGEN,
  13726. C_HEADER,
  13727. };
  13728. enum EmitterType
  13729. {
  13730. EMITTER_SPHERE,
  13731. EMITTER_BOX,
  13732. };
  13733. enum EmitterType2D
  13734. {
  13735. EMITTER_TYPE_GRAVITY,
  13736. EMITTER_TYPE_RADIAL,
  13737. };
  13738. enum FaceCameraMode
  13739. {
  13740. FC_NONE,
  13741. FC_ROTATE_XYZ,
  13742. FC_ROTATE_Y,
  13743. FC_LOOKAT_XYZ,
  13744. FC_LOOKAT_Y,
  13745. FC_LOOKAT_MIXED,
  13746. FC_DIRECTION,
  13747. };
  13748. enum FileMode
  13749. {
  13750. FILE_READ,
  13751. FILE_WRITE,
  13752. FILE_READWRITE,
  13753. };
  13754. enum FillMode
  13755. {
  13756. FILL_SOLID,
  13757. FILL_WIREFRAME,
  13758. FILL_POINT,
  13759. };
  13760. enum FocusMode
  13761. {
  13762. FM_NOTFOCUSABLE,
  13763. FM_RESETFOCUS,
  13764. FM_FOCUSABLE,
  13765. FM_FOCUSABLE_DEFOCUSABLE,
  13766. };
  13767. enum HighlightMode
  13768. {
  13769. HM_NEVER,
  13770. HM_FOCUS,
  13771. HM_ALWAYS,
  13772. };
  13773. enum HorizontalAlignment
  13774. {
  13775. HA_LEFT,
  13776. HA_CENTER,
  13777. HA_RIGHT,
  13778. };
  13779. enum HttpRequestState
  13780. {
  13781. HTTP_INITIALIZING,
  13782. HTTP_ERROR,
  13783. HTTP_OPEN,
  13784. HTTP_CLOSED,
  13785. };
  13786. enum InterpMethod
  13787. {
  13788. IM_NONE,
  13789. IM_LINEAR,
  13790. IM_SPLINE,
  13791. };
  13792. enum InterpolationMode
  13793. {
  13794. BEZIER_CURVE,
  13795. CATMULL_ROM_CURVE,
  13796. LINEAR_CURVE,
  13797. CATMULL_ROM_FULL_CURVE,
  13798. };
  13799. enum Intersection
  13800. {
  13801. OUTSIDE,
  13802. INTERSECTS,
  13803. INSIDE,
  13804. };
  13805. enum JSONNumberType
  13806. {
  13807. JSONNT_NAN,
  13808. JSONNT_INT,
  13809. JSONNT_UINT,
  13810. JSONNT_FLOAT_DOUBLE,
  13811. };
  13812. enum JSONValueType
  13813. {
  13814. JSON_NULL,
  13815. JSON_BOOL,
  13816. JSON_NUMBER,
  13817. JSON_STRING,
  13818. JSON_ARRAY,
  13819. JSON_OBJECT,
  13820. };
  13821. enum LayoutMode
  13822. {
  13823. LM_FREE,
  13824. LM_HORIZONTAL,
  13825. LM_VERTICAL,
  13826. };
  13827. enum LightType
  13828. {
  13829. LIGHT_DIRECTIONAL,
  13830. LIGHT_SPOT,
  13831. LIGHT_POINT,
  13832. };
  13833. enum LoadMode
  13834. {
  13835. LOAD_RESOURCES_ONLY,
  13836. LOAD_SCENE,
  13837. LOAD_SCENE_AND_RESOURCES,
  13838. };
  13839. enum LoopMode2D
  13840. {
  13841. LM_DEFAULT,
  13842. LM_FORCE_LOOPED,
  13843. LM_FORCE_CLAMPED,
  13844. };
  13845. enum MouseMode
  13846. {
  13847. MM_ABSOLUTE,
  13848. MM_RELATIVE,
  13849. MM_WRAP,
  13850. MM_FREE,
  13851. };
  13852. enum NavigationPushiness
  13853. {
  13854. NAVIGATIONPUSHINESS_LOW,
  13855. NAVIGATIONPUSHINESS_MEDIUM,
  13856. NAVIGATIONPUSHINESS_HIGH,
  13857. NAVIGATIONPUSHINESS_NONE,
  13858. };
  13859. enum NavigationQuality
  13860. {
  13861. NAVIGATIONQUALITY_LOW,
  13862. NAVIGATIONQUALITY_MEDIUM,
  13863. NAVIGATIONQUALITY_HIGH,
  13864. };
  13865. enum NavmeshPartitionType
  13866. {
  13867. NAVMESH_PARTITION_WATERSHED,
  13868. NAVMESH_PARTITION_MONOTONE,
  13869. };
  13870. enum Orientation
  13871. {
  13872. O_HORIZONTAL,
  13873. O_VERTICAL,
  13874. };
  13875. enum Orientation2D
  13876. {
  13877. O_ORTHOGONAL,
  13878. O_ISOMETRIC,
  13879. O_STAGGERED,
  13880. O_HEXAGONAL,
  13881. };
  13882. enum PassLightingMode
  13883. {
  13884. LIGHTING_UNLIT,
  13885. LIGHTING_PERVERTEX,
  13886. LIGHTING_PERPIXEL,
  13887. };
  13888. enum PrimitiveType
  13889. {
  13890. TRIANGLE_LIST,
  13891. LINE_LIST,
  13892. POINT_LIST,
  13893. TRIANGLE_STRIP,
  13894. LINE_STRIP,
  13895. TRIANGLE_FAN,
  13896. };
  13897. enum RayQueryLevel
  13898. {
  13899. RAY_AABB,
  13900. RAY_OBB,
  13901. RAY_TRIANGLE,
  13902. RAY_TRIANGLE_UV,
  13903. };
  13904. enum RenderCommandSortMode
  13905. {
  13906. SORT_FRONTTOBACK,
  13907. SORT_BACKTOFRONT,
  13908. };
  13909. enum RenderCommandType
  13910. {
  13911. CMD_NONE,
  13912. CMD_CLEAR,
  13913. CMD_SCENEPASS,
  13914. CMD_QUAD,
  13915. CMD_FORWARDLIGHTS,
  13916. CMD_LIGHTVOLUMES,
  13917. CMD_RENDERUI,
  13918. CMD_SENDEVENT,
  13919. };
  13920. enum RenderSurfaceUpdateMode
  13921. {
  13922. SURFACE_MANUALUPDATE,
  13923. SURFACE_UPDATEVISIBLE,
  13924. SURFACE_UPDATEALWAYS,
  13925. };
  13926. enum RenderTargetSizeMode
  13927. {
  13928. SIZE_ABSOLUTE,
  13929. SIZE_VIEWPORTDIVISOR,
  13930. SIZE_VIEWPORTMULTIPLIER,
  13931. };
  13932. enum ShadowQuality
  13933. {
  13934. SHADOWQUALITY_SIMPLE_16BIT,
  13935. SHADOWQUALITY_SIMPLE_24BIT,
  13936. SHADOWQUALITY_PCF_16BIT,
  13937. SHADOWQUALITY_PCF_24BIT,
  13938. SHADOWQUALITY_VSM,
  13939. SHADOWQUALITY_BLUR_VSM,
  13940. };
  13941. enum ShapeType
  13942. {
  13943. SHAPE_BOX,
  13944. SHAPE_SPHERE,
  13945. SHAPE_STATICPLANE,
  13946. SHAPE_CYLINDER,
  13947. SHAPE_CAPSULE,
  13948. SHAPE_CONE,
  13949. SHAPE_TRIANGLEMESH,
  13950. SHAPE_CONVEXHULL,
  13951. SHAPE_TERRAIN,
  13952. };
  13953. enum TextEffect
  13954. {
  13955. TE_NONE,
  13956. TE_SHADOW,
  13957. TE_STROKE,
  13958. };
  13959. enum TextureAddressMode
  13960. {
  13961. ADDRESS_WRAP,
  13962. ADDRESS_MIRROR,
  13963. ADDRESS_CLAMP,
  13964. ADDRESS_BORDER,
  13965. };
  13966. enum TextureCoordinate
  13967. {
  13968. COORD_U,
  13969. COORD_V,
  13970. COORD_W,
  13971. };
  13972. enum TextureFilterMode
  13973. {
  13974. FILTER_NEAREST,
  13975. FILTER_BILINEAR,
  13976. FILTER_TRILINEAR,
  13977. FILTER_ANISOTROPIC,
  13978. FILTER_DEFAULT,
  13979. };
  13980. enum TextureUnit
  13981. {
  13982. TU_DIFFUSE,
  13983. TU_ALBEDOBUFFER,
  13984. TU_NORMAL,
  13985. TU_NORMALBUFFER,
  13986. TU_SPECULAR,
  13987. TU_EMISSIVE,
  13988. TU_ENVIRONMENT,
  13989. TU_LIGHTRAMP,
  13990. TU_LIGHTSHAPE,
  13991. TU_SHADOWMAP,
  13992. TU_CUSTOM1,
  13993. TU_CUSTOM2,
  13994. TU_VOLUMEMAP,
  13995. TU_FACESELECT,
  13996. TU_INDIRECTION,
  13997. TU_DEPTHBUFFER,
  13998. TU_LIGHTBUFFER,
  13999. TU_ZONE,
  14000. MAX_MATERIAL_TEXTURE_UNITS,
  14001. MAX_TEXTURE_UNITS,
  14002. };
  14003. enum TextureUsage
  14004. {
  14005. TEXTURE_STATIC,
  14006. TEXTURE_DYNAMIC,
  14007. TEXTURE_RENDERTARGET,
  14008. TEXTURE_DEPTHSTENCIL,
  14009. };
  14010. enum TileMapLayerType2D
  14011. {
  14012. LT_TILE_LAYER,
  14013. LT_OBJECT_GROUP,
  14014. LT_IMAGE_LAYER,
  14015. LT_INVALID,
  14016. };
  14017. enum TileObjectType2D
  14018. {
  14019. OT_RECTANGLE,
  14020. OT_ELLIPSE,
  14021. OT_POLYGON,
  14022. OT_POLYLINE,
  14023. OT_TILE,
  14024. OT_INVALID,
  14025. };
  14026. enum TrailType
  14027. {
  14028. TT_FACE_CAMERA,
  14029. TT_BONE,
  14030. };
  14031. enum TransformSpace
  14032. {
  14033. TS_LOCAL,
  14034. TS_PARENT,
  14035. TS_WORLD,
  14036. };
  14037. enum TraversalMode
  14038. {
  14039. TM_BREADTH_FIRST,
  14040. TM_DEPTH_FIRST,
  14041. };
  14042. enum VariantType
  14043. {
  14044. VAR_NONE,
  14045. VAR_INT,
  14046. VAR_BOOL,
  14047. VAR_FLOAT,
  14048. VAR_VECTOR2,
  14049. VAR_VECTOR3,
  14050. VAR_VECTOR4,
  14051. VAR_QUATERNION,
  14052. VAR_COLOR,
  14053. VAR_STRING,
  14054. VAR_BUFFER,
  14055. VAR_VOIDPTR,
  14056. VAR_RESOURCEREF,
  14057. VAR_RESOURCEREFLIST,
  14058. VAR_VARIANTVECTOR,
  14059. VAR_VARIANTMAP,
  14060. VAR_INTRECT,
  14061. VAR_INTVECTOR2,
  14062. VAR_PTR,
  14063. VAR_MATRIX3,
  14064. VAR_MATRIX3X4,
  14065. VAR_MATRIX4,
  14066. VAR_DOUBLE,
  14067. VAR_STRINGVECTOR,
  14068. };
  14069. enum VertexElementSemantic
  14070. {
  14071. SEM_POSITION,
  14072. SEM_NORMAL,
  14073. SEM_BINORMAL,
  14074. SEM_TANGENT,
  14075. SEM_TEXCOORD,
  14076. SEM_COLOR,
  14077. SEM_BLENDWEIGHTS,
  14078. SEM_BLENDINDICES,
  14079. SEM_OBJECTINDEX,
  14080. MAX_VERTEX_ELEMENT_SEMANTICS,
  14081. };
  14082. enum VertexElementType
  14083. {
  14084. TYPE_INT,
  14085. TYPE_FLOAT,
  14086. TYPE_VECTOR2,
  14087. TYPE_VECTOR3,
  14088. TYPE_VECTOR4,
  14089. TYPE_UBYTE4,
  14090. TYPE_UBYTE4_NORM,
  14091. MAX_VERTEX_ELEMENT_TYPES,
  14092. };
  14093. enum VerticalAlignment
  14094. {
  14095. VA_TOP,
  14096. VA_CENTER,
  14097. VA_BOTTOM,
  14098. };
  14099. enum WrapMode
  14100. {
  14101. WM_LOOP,
  14102. WM_ONCE,
  14103. WM_CLAMP,
  14104. };
  14105. // Global functions
  14106. float Abs(float);
  14107. float Acos(float);
  14108. String AddTrailingSlash(const String&);
  14109. float Asin(float);
  14110. float Atan(float);
  14111. float Atan2(float, float);
  14112. float Ceil(float);
  14113. float Clamp(float, float, float);
  14114. int Clamp(int, int, int);
  14115. void ClearDelayedExecute(const String& = String ( ));
  14116. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14117. float Cos(float);
  14118. uint CountSetBits(uint);
  14119. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14120. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14121. bool Equals(float, float);
  14122. void ErrorDialog(const String&, const String&);
  14123. float Floor(float);
  14124. uint GetAlphaFormat();
  14125. Array<String> GetArguments();
  14126. String GetConsoleInput();
  14127. uint GetDepthStencilFormat();
  14128. Object GetEventSender();
  14129. String GetExtension(const String&, bool = true);
  14130. String GetFileName(const String&);
  14131. String GetFileNameAndExtension(const String&, bool = false);
  14132. String GetFileSizeString(uint64);
  14133. uint GetFloat16Format();
  14134. uint GetFloat32Format();
  14135. uint GetFormat(const String&);
  14136. Variant GetGlobalVar(const String&);
  14137. String GetInternalPath(const String&);
  14138. uint GetLinearDepthFormat();
  14139. uint GetLuminanceAlphaFormat();
  14140. uint GetLuminanceFormat();
  14141. uint GetMaxBones();
  14142. String GetMiniDumpDir();
  14143. uint GetNumLogicalCPUs();
  14144. uint GetNumPhysicalCPUs();
  14145. Array<String> GetObjectCategories();
  14146. Array<String> GetObjectsByCategory(const String&);
  14147. String GetParentPath(const String&);
  14148. String GetPath(const String&);
  14149. String GetPlatform();
  14150. uint GetRG16Format();
  14151. uint GetRGBA16Format();
  14152. uint GetRGBAFloat16Format();
  14153. uint GetRGBAFloat32Format();
  14154. uint GetRGBAFormat();
  14155. uint GetRGBFormat();
  14156. uint GetRGFloat16Format();
  14157. uint GetRGFloat32Format();
  14158. uint GetRandomSeed();
  14159. uint GetReadableDepthFormat();
  14160. String GetTextureUnitName(TextureUnit);
  14161. bool HasSubscribedToEvent(Object, const String&);
  14162. bool HasSubscribedToEvent(const String&);
  14163. bool IsAbsolutePath(const String&);
  14164. bool IsAlpha(uint);
  14165. bool IsDigit(uint);
  14166. bool IsNaN(float);
  14167. bool IsPowerOfTwo(uint);
  14168. String Join(Array<String>&, const String&);
  14169. float Lerp(float, float, float);
  14170. void MarkNetworkUpdate();
  14171. float Max(float, float);
  14172. int Max(int, int);
  14173. float Min(float, float);
  14174. int Min(int, int);
  14175. float Mod(float, float);
  14176. uint NextPowerOfTwo(uint);
  14177. void OpenConsoleWindow();
  14178. float Pow(float, float);
  14179. void Print(bool, bool = false);
  14180. void Print(const String&, bool = false);
  14181. void Print(const Variant&, bool = false);
  14182. void Print(float, bool = false);
  14183. void Print(int, bool = false);
  14184. void Print(uint, bool = false);
  14185. void PrintCallStack(bool = false);
  14186. float Random();
  14187. float Random(float);
  14188. float Random(float, float);
  14189. int RandomInt();
  14190. int RandomInt(int);
  14191. int RandomInt(int, int);
  14192. float RandomNormal(float, float);
  14193. void RegisterEventName(const String&);
  14194. void Remove();
  14195. String RemoveTrailingSlash(const String&);
  14196. String ReplaceExtension(const String&, const String&);
  14197. uint SDBMHash(uint, uint8);
  14198. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14199. void SetGlobalVar(const String&, Variant&);
  14200. void SetMiniDumpDir(const String&);
  14201. void SetRandomSeed(uint);
  14202. float Sign(float);
  14203. float Sin(float);
  14204. float SmoothStep(float, float, float);
  14205. float Sqrt(float);
  14206. const String& GetTypeName(StringHash);
  14207. void SubscribeToEvent(Object, const String&, const String&);
  14208. void SubscribeToEvent(const String&, const String&);
  14209. float Tan(float);
  14210. uint ToLower(uint);
  14211. String ToStringHex(int);
  14212. uint ToUpper(uint);
  14213. void UnsubscribeFromAllEvents();
  14214. void UnsubscribeFromAllEventsExcept(Array<String>);
  14215. void UnsubscribeFromEvent(Object, const String&);
  14216. void UnsubscribeFromEvent(const String&);
  14217. void UnsubscribeFromEvents(Object);
  14218. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14219. // Global properties
  14220. DBAPI DBAPI;
  14221. Audio audio;
  14222. ResourceCache cache;
  14223. Console console;
  14224. Database database;
  14225. DebugHud debugHud;
  14226. DebugRenderer debugRenderer;
  14227. Engine engine;
  14228. FileSystem fileSystem;
  14229. VariantMap globalVars;
  14230. Graphics graphics;
  14231. Input input;
  14232. Localization localization;
  14233. Log log;
  14234. Network network;
  14235. Node node;
  14236. Octree octree;
  14237. PhysicsWorld physicsWorld;
  14238. PhysicsWorld2D physicsWorld2D;
  14239. Renderer renderer;
  14240. ResourceCache resourceCache;
  14241. Scene scene;
  14242. Script script;
  14243. ScriptFile scriptFile;
  14244. ScriptInstance self;
  14245. Time time;
  14246. UI ui;
  14247. // Global constants
  14248. uint AM_COMPONENTID;
  14249. uint AM_DEFAULT;
  14250. uint AM_FILE;
  14251. uint AM_LATESTDATA;
  14252. uint AM_NET;
  14253. uint AM_NODEID;
  14254. uint AM_NODEIDVECTOR;
  14255. uint AM_NOEDIT;
  14256. Color BLACK;
  14257. Color BLUE;
  14258. uint8 CHANNEL_POSITION;
  14259. uint8 CHANNEL_ROTATION;
  14260. uint8 CHANNEL_SCALE;
  14261. uint CLEAR_COLOR;
  14262. uint CLEAR_DEPTH;
  14263. uint CLEAR_STENCIL;
  14264. int CONTROLLER_AXIS_LEFTX;
  14265. int CONTROLLER_AXIS_LEFTY;
  14266. int CONTROLLER_AXIS_RIGHTX;
  14267. int CONTROLLER_AXIS_RIGHTY;
  14268. int CONTROLLER_AXIS_TRIGGERLEFT;
  14269. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14270. int CONTROLLER_BUTTON_A;
  14271. int CONTROLLER_BUTTON_B;
  14272. int CONTROLLER_BUTTON_BACK;
  14273. int CONTROLLER_BUTTON_DPAD_DOWN;
  14274. int CONTROLLER_BUTTON_DPAD_LEFT;
  14275. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14276. int CONTROLLER_BUTTON_DPAD_UP;
  14277. int CONTROLLER_BUTTON_GUIDE;
  14278. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14279. int CONTROLLER_BUTTON_LEFTSTICK;
  14280. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14281. int CONTROLLER_BUTTON_RIGHTSTICK;
  14282. int CONTROLLER_BUTTON_START;
  14283. int CONTROLLER_BUTTON_X;
  14284. int CONTROLLER_BUTTON_Y;
  14285. Color CYAN;
  14286. uint DD_DISABLED;
  14287. uint DD_SOURCE;
  14288. uint DD_SOURCE_AND_TARGET;
  14289. uint DD_TARGET;
  14290. uint DEBUGHUD_SHOW_ALL;
  14291. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14292. uint DEBUGHUD_SHOW_MEMORY;
  14293. uint DEBUGHUD_SHOW_MODE;
  14294. uint DEBUGHUD_SHOW_NONE;
  14295. uint DEBUGHUD_SHOW_PROFILER;
  14296. uint DEBUGHUD_SHOW_STATS;
  14297. uint DEFAULT_LIGHTMASK;
  14298. uint DEFAULT_VIEWMASK;
  14299. uint DRAWABLE_ANY;
  14300. uint DRAWABLE_GEOMETRY;
  14301. uint DRAWABLE_GEOMETRY2D;
  14302. uint DRAWABLE_LIGHT;
  14303. uint DRAWABLE_ZONE;
  14304. uint FIRST_LOCAL_ID;
  14305. uint FIRST_REPLICATED_ID;
  14306. Color GRAY;
  14307. Color GREEN;
  14308. int HAT_CENTER;
  14309. int HAT_DOWN;
  14310. int HAT_LEFT;
  14311. int HAT_RIGHT;
  14312. int HAT_UP;
  14313. int KEY_0;
  14314. int KEY_1;
  14315. int KEY_2;
  14316. int KEY_3;
  14317. int KEY_4;
  14318. int KEY_5;
  14319. int KEY_6;
  14320. int KEY_7;
  14321. int KEY_8;
  14322. int KEY_9;
  14323. int KEY_A;
  14324. int KEY_ALT;
  14325. int KEY_APPLICATION;
  14326. int KEY_B;
  14327. int KEY_BACKSPACE;
  14328. int KEY_C;
  14329. int KEY_CAPSLOCK;
  14330. int KEY_CTRL;
  14331. int KEY_D;
  14332. int KEY_DELETE;
  14333. int KEY_DOWN;
  14334. int KEY_E;
  14335. int KEY_END;
  14336. int KEY_ESCAPE;
  14337. int KEY_F;
  14338. int KEY_F1;
  14339. int KEY_F10;
  14340. int KEY_F11;
  14341. int KEY_F12;
  14342. int KEY_F13;
  14343. int KEY_F14;
  14344. int KEY_F15;
  14345. int KEY_F16;
  14346. int KEY_F17;
  14347. int KEY_F18;
  14348. int KEY_F19;
  14349. int KEY_F2;
  14350. int KEY_F20;
  14351. int KEY_F21;
  14352. int KEY_F22;
  14353. int KEY_F23;
  14354. int KEY_F24;
  14355. int KEY_F3;
  14356. int KEY_F4;
  14357. int KEY_F5;
  14358. int KEY_F6;
  14359. int KEY_F7;
  14360. int KEY_F8;
  14361. int KEY_F9;
  14362. int KEY_G;
  14363. int KEY_GUI;
  14364. int KEY_H;
  14365. int KEY_HOME;
  14366. int KEY_I;
  14367. int KEY_INSERT;
  14368. int KEY_J;
  14369. int KEY_K;
  14370. int KEY_KP_0;
  14371. int KEY_KP_1;
  14372. int KEY_KP_2;
  14373. int KEY_KP_3;
  14374. int KEY_KP_4;
  14375. int KEY_KP_5;
  14376. int KEY_KP_6;
  14377. int KEY_KP_7;
  14378. int KEY_KP_8;
  14379. int KEY_KP_9;
  14380. int KEY_KP_DIVIDE;
  14381. int KEY_KP_ENTER;
  14382. int KEY_KP_MINUS;
  14383. int KEY_KP_MULTIPLY;
  14384. int KEY_KP_PERIOD;
  14385. int KEY_KP_PLUS;
  14386. int KEY_L;
  14387. int KEY_LALT;
  14388. int KEY_LCTRL;
  14389. int KEY_LEFT;
  14390. int KEY_LGUI;
  14391. int KEY_LSHIFT;
  14392. int KEY_M;
  14393. int KEY_N;
  14394. int KEY_NUMLOCKCLEAR;
  14395. int KEY_O;
  14396. int KEY_P;
  14397. int KEY_PAGEDOWN;
  14398. int KEY_PAGEUP;
  14399. int KEY_PAUSE;
  14400. int KEY_PRINTSCREEN;
  14401. int KEY_Q;
  14402. int KEY_R;
  14403. int KEY_RALT;
  14404. int KEY_RCTRL;
  14405. int KEY_RETURN;
  14406. int KEY_RETURN2;
  14407. int KEY_RGUI;
  14408. int KEY_RIGHT;
  14409. int KEY_RSHIFT;
  14410. int KEY_S;
  14411. int KEY_SCROLLLOCK;
  14412. int KEY_SELECT;
  14413. int KEY_SHIFT;
  14414. int KEY_SPACE;
  14415. int KEY_T;
  14416. int KEY_TAB;
  14417. int KEY_U;
  14418. int KEY_UP;
  14419. int KEY_V;
  14420. int KEY_W;
  14421. int KEY_X;
  14422. int KEY_Y;
  14423. int KEY_Z;
  14424. uint LAST_LOCAL_ID;
  14425. uint LAST_REPLICATED_ID;
  14426. int LOG_DEBUG;
  14427. int LOG_ERROR;
  14428. int LOG_INFO;
  14429. int LOG_NONE;
  14430. int LOG_WARNING;
  14431. Color MAGENTA;
  14432. uint MASK_BLENDINDICES;
  14433. uint MASK_BLENDWEIGHTS;
  14434. uint MASK_COLOR;
  14435. uint MASK_CUBETEXCOORD1;
  14436. uint MASK_CUBETEXCOORD2;
  14437. uint MASK_INSTANCEMATRIX1;
  14438. uint MASK_INSTANCEMATRIX2;
  14439. uint MASK_INSTANCEMATRIX3;
  14440. uint MASK_NONE;
  14441. uint MASK_NORMAL;
  14442. uint MASK_OBJECTINDEX;
  14443. uint MASK_POSITION;
  14444. uint MASK_TANGENT;
  14445. uint MASK_TEXCOORD1;
  14446. uint MASK_TEXCOORD2;
  14447. int MOUSEB_LEFT;
  14448. int MOUSEB_MIDDLE;
  14449. int MOUSEB_RIGHT;
  14450. float M_DEGTORAD;
  14451. float M_DEGTORAD_2;
  14452. float M_EPSILON;
  14453. float M_HALF_PI;
  14454. float M_INFINITY;
  14455. float M_LARGE_EPSILON;
  14456. float M_LARGE_VALUE;
  14457. int M_MAX_INT;
  14458. uint M_MAX_UNSIGNED;
  14459. int M_MIN_INT;
  14460. uint M_MIN_UNSIGNED;
  14461. float M_PI;
  14462. float M_RADTODEG;
  14463. uint NPOS;
  14464. float PIXEL_SIZE;
  14465. int QUALITY_HIGH;
  14466. int QUALITY_LOW;
  14467. int QUALITY_MAX;
  14468. int QUALITY_MEDIUM;
  14469. int QUAL_ALT;
  14470. int QUAL_ANY;
  14471. int QUAL_CTRL;
  14472. int QUAL_SHIFT;
  14473. Color RED;
  14474. int SCANCODE_0;
  14475. int SCANCODE_1;
  14476. int SCANCODE_2;
  14477. int SCANCODE_3;
  14478. int SCANCODE_4;
  14479. int SCANCODE_5;
  14480. int SCANCODE_6;
  14481. int SCANCODE_7;
  14482. int SCANCODE_8;
  14483. int SCANCODE_9;
  14484. int SCANCODE_A;
  14485. int SCANCODE_AC_BACK;
  14486. int SCANCODE_AC_BOOKMARKS;
  14487. int SCANCODE_AC_FORWARD;
  14488. int SCANCODE_AC_HOME;
  14489. int SCANCODE_AC_REFRESH;
  14490. int SCANCODE_AC_SEARCH;
  14491. int SCANCODE_AC_STOP;
  14492. int SCANCODE_AGAIN;
  14493. int SCANCODE_ALT;
  14494. int SCANCODE_ALTERASE;
  14495. int SCANCODE_APOSTROPHE;
  14496. int SCANCODE_APP1;
  14497. int SCANCODE_APP2;
  14498. int SCANCODE_APPLICATION;
  14499. int SCANCODE_AUDIOMUTE;
  14500. int SCANCODE_AUDIONEXT;
  14501. int SCANCODE_AUDIOPLAY;
  14502. int SCANCODE_AUDIOPREV;
  14503. int SCANCODE_AUDIOSTOP;
  14504. int SCANCODE_B;
  14505. int SCANCODE_BACKSLASH;
  14506. int SCANCODE_BACKSPACE;
  14507. int SCANCODE_BRIGHTNESSDOWN;
  14508. int SCANCODE_BRIGHTNESSUP;
  14509. int SCANCODE_C;
  14510. int SCANCODE_CALCULATOR;
  14511. int SCANCODE_CANCEL;
  14512. int SCANCODE_CAPSLOCK;
  14513. int SCANCODE_CLEAR;
  14514. int SCANCODE_CLEARAGAIN;
  14515. int SCANCODE_COMMA;
  14516. int SCANCODE_COMPUTER;
  14517. int SCANCODE_COPY;
  14518. int SCANCODE_CRSEL;
  14519. int SCANCODE_CTRL;
  14520. int SCANCODE_CURRENCYSUBUNIT;
  14521. int SCANCODE_CURRENCYUNIT;
  14522. int SCANCODE_CUT;
  14523. int SCANCODE_D;
  14524. int SCANCODE_DECIMALSEPARATOR;
  14525. int SCANCODE_DELETE;
  14526. int SCANCODE_DISPLAYSWITCH;
  14527. int SCANCODE_DOWN;
  14528. int SCANCODE_E;
  14529. int SCANCODE_EJECT;
  14530. int SCANCODE_END;
  14531. int SCANCODE_EQUALS;
  14532. int SCANCODE_ESCAPE;
  14533. int SCANCODE_EXECUTE;
  14534. int SCANCODE_EXSEL;
  14535. int SCANCODE_F;
  14536. int SCANCODE_F1;
  14537. int SCANCODE_F10;
  14538. int SCANCODE_F11;
  14539. int SCANCODE_F12;
  14540. int SCANCODE_F13;
  14541. int SCANCODE_F14;
  14542. int SCANCODE_F15;
  14543. int SCANCODE_F16;
  14544. int SCANCODE_F17;
  14545. int SCANCODE_F18;
  14546. int SCANCODE_F19;
  14547. int SCANCODE_F2;
  14548. int SCANCODE_F20;
  14549. int SCANCODE_F21;
  14550. int SCANCODE_F22;
  14551. int SCANCODE_F23;
  14552. int SCANCODE_F24;
  14553. int SCANCODE_F3;
  14554. int SCANCODE_F4;
  14555. int SCANCODE_F5;
  14556. int SCANCODE_F6;
  14557. int SCANCODE_F7;
  14558. int SCANCODE_F8;
  14559. int SCANCODE_F9;
  14560. int SCANCODE_FIND;
  14561. int SCANCODE_G;
  14562. int SCANCODE_GRAVE;
  14563. int SCANCODE_GUI;
  14564. int SCANCODE_H;
  14565. int SCANCODE_HELP;
  14566. int SCANCODE_HOME;
  14567. int SCANCODE_I;
  14568. int SCANCODE_INSERT;
  14569. int SCANCODE_INTERNATIONAL1;
  14570. int SCANCODE_INTERNATIONAL2;
  14571. int SCANCODE_INTERNATIONAL3;
  14572. int SCANCODE_INTERNATIONAL4;
  14573. int SCANCODE_INTERNATIONAL5;
  14574. int SCANCODE_INTERNATIONAL6;
  14575. int SCANCODE_INTERNATIONAL7;
  14576. int SCANCODE_INTERNATIONAL8;
  14577. int SCANCODE_INTERNATIONAL9;
  14578. int SCANCODE_J;
  14579. int SCANCODE_K;
  14580. int SCANCODE_KBDILLUMDOWN;
  14581. int SCANCODE_KBDILLUMTOGGLE;
  14582. int SCANCODE_KBDILLUMUP;
  14583. int SCANCODE_KP_0;
  14584. int SCANCODE_KP_00;
  14585. int SCANCODE_KP_000;
  14586. int SCANCODE_KP_1;
  14587. int SCANCODE_KP_2;
  14588. int SCANCODE_KP_3;
  14589. int SCANCODE_KP_4;
  14590. int SCANCODE_KP_5;
  14591. int SCANCODE_KP_6;
  14592. int SCANCODE_KP_7;
  14593. int SCANCODE_KP_8;
  14594. int SCANCODE_KP_9;
  14595. int SCANCODE_KP_A;
  14596. int SCANCODE_KP_AMPERSAND;
  14597. int SCANCODE_KP_AT;
  14598. int SCANCODE_KP_B;
  14599. int SCANCODE_KP_BACKSPACE;
  14600. int SCANCODE_KP_BINARY;
  14601. int SCANCODE_KP_C;
  14602. int SCANCODE_KP_CLEAR;
  14603. int SCANCODE_KP_CLEARENTRY;
  14604. int SCANCODE_KP_COLON;
  14605. int SCANCODE_KP_COMMA;
  14606. int SCANCODE_KP_D;
  14607. int SCANCODE_KP_DBLAMPERSAND;
  14608. int SCANCODE_KP_DBLVERTICALBAR;
  14609. int SCANCODE_KP_DECIMAL;
  14610. int SCANCODE_KP_DIVIDE;
  14611. int SCANCODE_KP_E;
  14612. int SCANCODE_KP_ENTER;
  14613. int SCANCODE_KP_EQUALS;
  14614. int SCANCODE_KP_EQUALSAS400;
  14615. int SCANCODE_KP_EXCLAM;
  14616. int SCANCODE_KP_F;
  14617. int SCANCODE_KP_GREATER;
  14618. int SCANCODE_KP_HASH;
  14619. int SCANCODE_KP_HEXADECIMAL;
  14620. int SCANCODE_KP_LEFTBRACE;
  14621. int SCANCODE_KP_LEFTPAREN;
  14622. int SCANCODE_KP_LESS;
  14623. int SCANCODE_KP_MEMADD;
  14624. int SCANCODE_KP_MEMCLEAR;
  14625. int SCANCODE_KP_MEMDIVIDE;
  14626. int SCANCODE_KP_MEMMULTIPLY;
  14627. int SCANCODE_KP_MEMRECALL;
  14628. int SCANCODE_KP_MEMSTORE;
  14629. int SCANCODE_KP_MEMSUBTRACT;
  14630. int SCANCODE_KP_MINUS;
  14631. int SCANCODE_KP_MULTIPLY;
  14632. int SCANCODE_KP_OCTAL;
  14633. int SCANCODE_KP_PERCENT;
  14634. int SCANCODE_KP_PERIOD;
  14635. int SCANCODE_KP_PLUS;
  14636. int SCANCODE_KP_PLUSMINUS;
  14637. int SCANCODE_KP_POWER;
  14638. int SCANCODE_KP_RIGHTBRACE;
  14639. int SCANCODE_KP_RIGHTPAREN;
  14640. int SCANCODE_KP_SPACE;
  14641. int SCANCODE_KP_TAB;
  14642. int SCANCODE_KP_VERTICALBAR;
  14643. int SCANCODE_KP_XOR;
  14644. int SCANCODE_L;
  14645. int SCANCODE_LALT;
  14646. int SCANCODE_LANG1;
  14647. int SCANCODE_LANG2;
  14648. int SCANCODE_LANG3;
  14649. int SCANCODE_LANG4;
  14650. int SCANCODE_LANG5;
  14651. int SCANCODE_LANG6;
  14652. int SCANCODE_LANG7;
  14653. int SCANCODE_LANG8;
  14654. int SCANCODE_LANG9;
  14655. int SCANCODE_LCTRL;
  14656. int SCANCODE_LEFT;
  14657. int SCANCODE_LEFTBRACKET;
  14658. int SCANCODE_LGUI;
  14659. int SCANCODE_LSHIFT;
  14660. int SCANCODE_M;
  14661. int SCANCODE_MAIL;
  14662. int SCANCODE_MEDIASELECT;
  14663. int SCANCODE_MENU;
  14664. int SCANCODE_MINUS;
  14665. int SCANCODE_MODE;
  14666. int SCANCODE_MUTE;
  14667. int SCANCODE_N;
  14668. int SCANCODE_NONUSBACKSLASH;
  14669. int SCANCODE_NONUSHASH;
  14670. int SCANCODE_NUMLOCKCLEAR;
  14671. int SCANCODE_O;
  14672. int SCANCODE_OPER;
  14673. int SCANCODE_OUT;
  14674. int SCANCODE_P;
  14675. int SCANCODE_PAGEDOWN;
  14676. int SCANCODE_PAGEUP;
  14677. int SCANCODE_PASTE;
  14678. int SCANCODE_PAUSE;
  14679. int SCANCODE_PERIOD;
  14680. int SCANCODE_POWER;
  14681. int SCANCODE_PRINTSCREEN;
  14682. int SCANCODE_PRIOR;
  14683. int SCANCODE_Q;
  14684. int SCANCODE_R;
  14685. int SCANCODE_RALT;
  14686. int SCANCODE_RCTRL;
  14687. int SCANCODE_RETURN;
  14688. int SCANCODE_RETURN2;
  14689. int SCANCODE_RGUI;
  14690. int SCANCODE_RIGHT;
  14691. int SCANCODE_RIGHTBRACKET;
  14692. int SCANCODE_RSHIFT;
  14693. int SCANCODE_S;
  14694. int SCANCODE_SCROLLLOCK;
  14695. int SCANCODE_SELECT;
  14696. int SCANCODE_SEMICOLON;
  14697. int SCANCODE_SEPARATOR;
  14698. int SCANCODE_SHIFT;
  14699. int SCANCODE_SLASH;
  14700. int SCANCODE_SLEEP;
  14701. int SCANCODE_SPACE;
  14702. int SCANCODE_STOP;
  14703. int SCANCODE_SYSREQ;
  14704. int SCANCODE_T;
  14705. int SCANCODE_TAB;
  14706. int SCANCODE_THOUSANDSSEPARATOR;
  14707. int SCANCODE_U;
  14708. int SCANCODE_UNDO;
  14709. int SCANCODE_UNKNOWN;
  14710. int SCANCODE_UP;
  14711. int SCANCODE_V;
  14712. int SCANCODE_VOLUMEDOWN;
  14713. int SCANCODE_VOLUMEUP;
  14714. int SCANCODE_W;
  14715. int SCANCODE_WWW;
  14716. int SCANCODE_X;
  14717. int SCANCODE_Y;
  14718. int SCANCODE_Z;
  14719. uint SCAN_DIRS;
  14720. uint SCAN_FILES;
  14721. uint SCAN_HIDDEN;
  14722. String SOUND_AMBIENT;
  14723. String SOUND_EFFECT;
  14724. String SOUND_MASTER;
  14725. String SOUND_MUSIC;
  14726. String SOUND_VOICE;
  14727. Color TRANSPARENT;
  14728. uint VO_DISABLE_OCCLUSION;
  14729. uint VO_DISABLE_SHADOWS;
  14730. uint VO_LOW_MATERIAL_QUALITY;
  14731. uint VO_NONE;
  14732. Color WHITE;
  14733. Color YELLOW;