AngelScriptAPI.h 375 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136
  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. /* readonly */
  681. Node node;
  682. /* readonly */
  683. uint numAttributes;
  684. uint numBillboards;
  685. ObjectAnimation objectAnimation;
  686. bool occludee;
  687. bool occluder;
  688. /* readonly */
  689. int refs;
  690. bool relative;
  691. bool scaled;
  692. float shadowDistance;
  693. uint shadowMask;
  694. bool sorted;
  695. bool temporary;
  696. /* readonly */
  697. StringHash type;
  698. /* readonly */
  699. String typeName;
  700. uint viewMask;
  701. /* readonly */
  702. int weakRefs;
  703. /* readonly */
  704. BoundingBox worldBoundingBox;
  705. /* readonly */
  706. Zone zone;
  707. uint zoneMask;
  708. };
  709. class Bone
  710. {
  711. // Properties:
  712. bool animated;
  713. BoundingBox boundingBox;
  714. Vector3 initialPosition;
  715. Quaternion initialRotation;
  716. Vector3 initialScale;
  717. String name;
  718. Node node;
  719. float radius;
  720. };
  721. class BorderImage
  722. {
  723. // Methods:
  724. void AddChild(UIElement);
  725. void AddTag(const String&);
  726. void AddTags(const String&, int8 = ';');
  727. void ApplyAttributes();
  728. void BringToFront();
  729. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  730. void DisableLayoutUpdate();
  731. IntVector2 ElementToScreen(const IntVector2&);
  732. void EnableLayoutUpdate();
  733. uint FindChild(UIElement) const;
  734. Variant GetAttribute(const String&) const;
  735. ValueAnimation GetAttributeAnimation(const String&) const;
  736. float GetAttributeAnimationSpeed(const String&) const;
  737. float GetAttributeAnimationTime(const String&) const;
  738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  739. Variant GetAttributeDefault(const String&) const;
  740. UIElement GetChild(const String&, bool = false) const;
  741. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  742. Array<UIElement> GetChildren(bool = false) const;
  743. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  744. UIElement GetElementEventSender() const;
  745. bool GetInterceptNetworkUpdate(const String&) const;
  746. uint GetNumChildren(bool) const;
  747. bool HasSubscribedToEvent(Object, const String&);
  748. bool HasSubscribedToEvent(const String&);
  749. bool HasTag(const String&) const;
  750. void InsertChild(uint, UIElement);
  751. bool IsInside(IntVector2, bool);
  752. bool IsInsideCombined(IntVector2, bool);
  753. bool Load(File, bool = false);
  754. bool Load(VectorBuffer&, bool = false);
  755. bool LoadChildXML(XMLFile, XMLFile = null);
  756. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  757. bool LoadJSON(const JSONValue&, bool = false);
  758. bool LoadXML(File);
  759. bool LoadXML(VectorBuffer&);
  760. bool LoadXML(XMLFile, XMLFile);
  761. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  762. bool LoadXML(const XMLElement&, bool = false);
  763. void MarkNetworkUpdate() const;
  764. void Remove();
  765. void RemoveAllChildren();
  766. void RemoveAllTags();
  767. void RemoveAttributeAnimation(const String&);
  768. void RemoveChild(UIElement, uint = 0);
  769. void RemoveChild(uint);
  770. void RemoveInstanceDefault();
  771. void RemoveObjectAnimation();
  772. bool RemoveTag(const String&);
  773. void ResetDeepEnabled();
  774. void ResetToDefault();
  775. bool Save(File) const;
  776. bool Save(VectorBuffer&) const;
  777. bool SaveJSON(JSONValue&) const;
  778. bool SaveXML(File, const String& = "\t");
  779. bool SaveXML(VectorBuffer&, const String& = "\t");
  780. bool SaveXML(XMLElement&) const;
  781. IntVector2 ScreenToElement(const IntVector2&);
  782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  783. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  784. void SetAnimationTime(float);
  785. bool SetAttribute(const String&, const Variant&);
  786. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  787. void SetAttributeAnimationSpeed(const String&, float);
  788. void SetAttributeAnimationTime(const String&, float);
  789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  790. void SetDeepEnabled(bool);
  791. void SetEnabledRecursive(bool);
  792. void SetFixedHeight(int);
  793. void SetFixedSize(int, int);
  794. void SetFixedWidth(int);
  795. void SetFullImageRect();
  796. void SetHoverOffset(int, int);
  797. void SetInterceptNetworkUpdate(const String&, bool);
  798. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  799. void SetMaxSize(int, int);
  800. void SetMinSize(int, int);
  801. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  802. void SetPosition(int, int);
  803. void SetSize(int, int);
  804. bool SetStyle(const String&, XMLFile = null);
  805. bool SetStyle(const XMLElement&);
  806. bool SetStyleAuto(XMLFile = null);
  807. void UpdateLayout();
  808. const Variant& GetVar(const StringHash&);
  809. // Properties:
  810. bool animationEnabled;
  811. /* readonly */
  812. Array<Variant> attributeDefaults;
  813. /* readonly */
  814. Array<AttributeInfo> attributeInfos;
  815. Array<Variant> attributes;
  816. BlendMode blendMode;
  817. IntRect border;
  818. bool bringToBack;
  819. bool bringToFront;
  820. /* readonly */
  821. String category;
  822. /* readonly */
  823. IntVector2 childOffset;
  824. /* readonly */
  825. Array<UIElement> children;
  826. IntRect clipBorder;
  827. bool clipChildren;
  828. /* writeonly */
  829. Color color;
  830. /* readonly */
  831. bool colorGradient;
  832. Array<Color> colors;
  833. /* readonly */
  834. IntRect combinedScreenRect;
  835. XMLFile defaultStyle;
  836. /* readonly */
  837. float derivedOpacity;
  838. /* readonly */
  839. uint dragButtonCombo;
  840. /* readonly */
  841. int dragButtonCount;
  842. uint dragDropMode;
  843. bool editable;
  844. bool elementEventSender;
  845. bool enabled;
  846. /* readonly */
  847. bool enabledSelf;
  848. /* readonly */
  849. bool fixedHeight;
  850. /* readonly */
  851. bool fixedSize;
  852. /* readonly */
  853. bool fixedWidth;
  854. bool focus;
  855. FocusMode focusMode;
  856. int height;
  857. HorizontalAlignment horizontalAlignment;
  858. IntVector2 hoverOffset;
  859. /* readonly */
  860. bool hovering;
  861. IntRect imageBorder;
  862. IntRect imageRect;
  863. int indent;
  864. int indentSpacing;
  865. /* readonly */
  866. int indentWidth;
  867. bool internal;
  868. IntRect layoutBorder;
  869. Vector2 layoutFlexScale;
  870. LayoutMode layoutMode;
  871. int layoutSpacing;
  872. int maxHeight;
  873. IntVector2 maxSize;
  874. int maxWidth;
  875. int minHeight;
  876. IntVector2 minSize;
  877. int minWidth;
  878. String name;
  879. /* readonly */
  880. uint numAllChildren;
  881. /* readonly */
  882. uint numAttributes;
  883. /* readonly */
  884. uint numChildren;
  885. ObjectAnimation objectAnimation;
  886. float opacity;
  887. UIElement parent;
  888. IntVector2 position;
  889. int priority;
  890. /* readonly */
  891. int refs;
  892. /* readonly */
  893. UIElement root;
  894. /* readonly */
  895. IntVector2 screenPosition;
  896. bool selected;
  897. IntVector2 size;
  898. bool sortChildren;
  899. String style;
  900. /* readonly */
  901. Array<String> tags;
  902. bool temporary;
  903. Texture texture;
  904. bool tiled;
  905. TraversalMode traversalMode;
  906. /* readonly */
  907. StringHash type;
  908. /* readonly */
  909. String typeName;
  910. bool useDerivedOpacity;
  911. /* readonly */
  912. VariantMap vars;
  913. VerticalAlignment verticalAlignment;
  914. bool visible;
  915. /* readonly */
  916. bool visibleEffective;
  917. /* readonly */
  918. int weakRefs;
  919. int width;
  920. };
  921. class BoundingBox
  922. {
  923. // Methods:
  924. void Clear();
  925. void Clip(const BoundingBox&);
  926. void Define(const BoundingBox&);
  927. void Define(const Frustum&);
  928. void Define(const Polyhedron&);
  929. void Define(const Sphere&);
  930. void Define(const Vector3&);
  931. void Define(const Vector3&, const Vector3&);
  932. void Define(float, float);
  933. bool Defined() const;
  934. Intersection IsInside(const BoundingBox&) const;
  935. Intersection IsInside(const Sphere&) const;
  936. Intersection IsInside(const Vector3&) const;
  937. Intersection IsInsideFast(const BoundingBox&) const;
  938. Intersection IsInsideFast(const Sphere&) const;
  939. void Merge(const BoundingBox&);
  940. void Merge(const Frustum&);
  941. void Merge(const Polyhedron&);
  942. void Merge(const Sphere&);
  943. void Merge(const Vector3&);
  944. Rect Projected(const Matrix4&) const;
  945. String ToString() const;
  946. void Transform(const Matrix3&);
  947. void Transform(const Matrix3x4&);
  948. BoundingBox Transformed(const Matrix3&) const;
  949. BoundingBox Transformed(const Matrix3x4&) const;
  950. // Properties:
  951. /* readonly */
  952. Vector3 center;
  953. /* readonly */
  954. Vector3 halfSize;
  955. Vector3 max;
  956. Vector3 min;
  957. /* readonly */
  958. Vector3 size;
  959. };
  960. class Button
  961. {
  962. // Methods:
  963. void AddChild(UIElement);
  964. void AddTag(const String&);
  965. void AddTags(const String&, int8 = ';');
  966. void ApplyAttributes();
  967. void BringToFront();
  968. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  969. void DisableLayoutUpdate();
  970. IntVector2 ElementToScreen(const IntVector2&);
  971. void EnableLayoutUpdate();
  972. uint FindChild(UIElement) const;
  973. Variant GetAttribute(const String&) const;
  974. ValueAnimation GetAttributeAnimation(const String&) const;
  975. float GetAttributeAnimationSpeed(const String&) const;
  976. float GetAttributeAnimationTime(const String&) const;
  977. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  978. Variant GetAttributeDefault(const String&) const;
  979. UIElement GetChild(const String&, bool = false) const;
  980. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  981. Array<UIElement> GetChildren(bool = false) const;
  982. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  983. UIElement GetElementEventSender() const;
  984. bool GetInterceptNetworkUpdate(const String&) const;
  985. uint GetNumChildren(bool) const;
  986. bool HasSubscribedToEvent(Object, const String&);
  987. bool HasSubscribedToEvent(const String&);
  988. bool HasTag(const String&) const;
  989. void InsertChild(uint, UIElement);
  990. bool IsInside(IntVector2, bool);
  991. bool IsInsideCombined(IntVector2, bool);
  992. bool Load(File, bool = false);
  993. bool Load(VectorBuffer&, bool = false);
  994. bool LoadChildXML(XMLFile, XMLFile = null);
  995. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  996. bool LoadJSON(const JSONValue&, bool = false);
  997. bool LoadXML(File);
  998. bool LoadXML(VectorBuffer&);
  999. bool LoadXML(XMLFile, XMLFile);
  1000. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1001. bool LoadXML(const XMLElement&, bool = false);
  1002. void MarkNetworkUpdate() const;
  1003. void Remove();
  1004. void RemoveAllChildren();
  1005. void RemoveAllTags();
  1006. void RemoveAttributeAnimation(const String&);
  1007. void RemoveChild(UIElement, uint = 0);
  1008. void RemoveChild(uint);
  1009. void RemoveInstanceDefault();
  1010. void RemoveObjectAnimation();
  1011. bool RemoveTag(const String&);
  1012. void ResetDeepEnabled();
  1013. void ResetToDefault();
  1014. bool Save(File) const;
  1015. bool Save(VectorBuffer&) const;
  1016. bool SaveJSON(JSONValue&) const;
  1017. bool SaveXML(File, const String& = "\t");
  1018. bool SaveXML(VectorBuffer&, const String& = "\t");
  1019. bool SaveXML(XMLElement&) const;
  1020. IntVector2 ScreenToElement(const IntVector2&);
  1021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1022. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1023. void SetAnimationTime(float);
  1024. bool SetAttribute(const String&, const Variant&);
  1025. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1026. void SetAttributeAnimationSpeed(const String&, float);
  1027. void SetAttributeAnimationTime(const String&, float);
  1028. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1029. void SetDeepEnabled(bool);
  1030. void SetEnabledRecursive(bool);
  1031. void SetFixedHeight(int);
  1032. void SetFixedSize(int, int);
  1033. void SetFixedWidth(int);
  1034. void SetFullImageRect();
  1035. void SetHoverOffset(int, int);
  1036. void SetInterceptNetworkUpdate(const String&, bool);
  1037. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1038. void SetMaxSize(int, int);
  1039. void SetMinSize(int, int);
  1040. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1041. void SetPosition(int, int);
  1042. void SetPressedChildOffset(int, int);
  1043. void SetPressedOffset(int, int);
  1044. void SetRepeat(float, float);
  1045. void SetSize(int, int);
  1046. bool SetStyle(const String&, XMLFile = null);
  1047. bool SetStyle(const XMLElement&);
  1048. bool SetStyleAuto(XMLFile = null);
  1049. void UpdateLayout();
  1050. const Variant& GetVar(const StringHash&);
  1051. // Properties:
  1052. bool animationEnabled;
  1053. /* readonly */
  1054. Array<Variant> attributeDefaults;
  1055. /* readonly */
  1056. Array<AttributeInfo> attributeInfos;
  1057. Array<Variant> attributes;
  1058. BlendMode blendMode;
  1059. IntRect border;
  1060. bool bringToBack;
  1061. bool bringToFront;
  1062. /* readonly */
  1063. String category;
  1064. /* readonly */
  1065. IntVector2 childOffset;
  1066. /* readonly */
  1067. Array<UIElement> children;
  1068. IntRect clipBorder;
  1069. bool clipChildren;
  1070. /* writeonly */
  1071. Color color;
  1072. /* readonly */
  1073. bool colorGradient;
  1074. Array<Color> colors;
  1075. /* readonly */
  1076. IntRect combinedScreenRect;
  1077. XMLFile defaultStyle;
  1078. /* readonly */
  1079. float derivedOpacity;
  1080. /* readonly */
  1081. uint dragButtonCombo;
  1082. /* readonly */
  1083. int dragButtonCount;
  1084. uint dragDropMode;
  1085. bool editable;
  1086. bool elementEventSender;
  1087. bool enabled;
  1088. /* readonly */
  1089. bool enabledSelf;
  1090. /* readonly */
  1091. bool fixedHeight;
  1092. /* readonly */
  1093. bool fixedSize;
  1094. /* readonly */
  1095. bool fixedWidth;
  1096. bool focus;
  1097. FocusMode focusMode;
  1098. int height;
  1099. HorizontalAlignment horizontalAlignment;
  1100. IntVector2 hoverOffset;
  1101. /* readonly */
  1102. bool hovering;
  1103. IntRect imageBorder;
  1104. IntRect imageRect;
  1105. int indent;
  1106. int indentSpacing;
  1107. /* readonly */
  1108. int indentWidth;
  1109. bool internal;
  1110. IntRect layoutBorder;
  1111. Vector2 layoutFlexScale;
  1112. LayoutMode layoutMode;
  1113. int layoutSpacing;
  1114. int maxHeight;
  1115. IntVector2 maxSize;
  1116. int maxWidth;
  1117. int minHeight;
  1118. IntVector2 minSize;
  1119. int minWidth;
  1120. String name;
  1121. /* readonly */
  1122. uint numAllChildren;
  1123. /* readonly */
  1124. uint numAttributes;
  1125. /* readonly */
  1126. uint numChildren;
  1127. ObjectAnimation objectAnimation;
  1128. float opacity;
  1129. UIElement parent;
  1130. IntVector2 position;
  1131. /* readonly */
  1132. bool pressed;
  1133. IntVector2 pressedChildOffset;
  1134. IntVector2 pressedOffset;
  1135. int priority;
  1136. /* readonly */
  1137. int refs;
  1138. float repeatDelay;
  1139. float repeatRate;
  1140. /* readonly */
  1141. UIElement root;
  1142. /* readonly */
  1143. IntVector2 screenPosition;
  1144. bool selected;
  1145. IntVector2 size;
  1146. bool sortChildren;
  1147. String style;
  1148. /* readonly */
  1149. Array<String> tags;
  1150. bool temporary;
  1151. Texture texture;
  1152. bool tiled;
  1153. TraversalMode traversalMode;
  1154. /* readonly */
  1155. StringHash type;
  1156. /* readonly */
  1157. String typeName;
  1158. bool useDerivedOpacity;
  1159. /* readonly */
  1160. VariantMap vars;
  1161. VerticalAlignment verticalAlignment;
  1162. bool visible;
  1163. /* readonly */
  1164. bool visibleEffective;
  1165. /* readonly */
  1166. int weakRefs;
  1167. int width;
  1168. };
  1169. class Camera
  1170. {
  1171. // Methods:
  1172. void ApplyAttributes();
  1173. void DrawDebugGeometry(DebugRenderer, bool);
  1174. Variant GetAttribute(const String&) const;
  1175. ValueAnimation GetAttributeAnimation(const String&) const;
  1176. float GetAttributeAnimationSpeed(const String&) const;
  1177. float GetAttributeAnimationTime(const String&) const;
  1178. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1179. Variant GetAttributeDefault(const String&) const;
  1180. float GetDistance(const Vector3&) const;
  1181. float GetDistanceSquared(const Vector3&) const;
  1182. bool GetInterceptNetworkUpdate(const String&) const;
  1183. Ray GetScreenRay(float, float) const;
  1184. Frustum GetSplitFrustum(float, float) const;
  1185. bool HasSubscribedToEvent(Object, const String&);
  1186. bool HasSubscribedToEvent(const String&);
  1187. bool Load(File, bool = false);
  1188. bool Load(VectorBuffer&, bool = false);
  1189. bool LoadJSON(const JSONValue&, bool = false);
  1190. bool LoadXML(const XMLElement&, bool = false);
  1191. void MarkNetworkUpdate() const;
  1192. void Remove();
  1193. void RemoveAttributeAnimation(const String&);
  1194. void RemoveInstanceDefault();
  1195. void RemoveObjectAnimation();
  1196. void ResetToDefault();
  1197. bool Save(File) const;
  1198. bool Save(VectorBuffer&) const;
  1199. bool SaveJSON(JSONValue&) const;
  1200. bool SaveXML(XMLElement&) const;
  1201. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1203. void SetAnimationTime(float);
  1204. bool SetAttribute(const String&, const Variant&);
  1205. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1206. void SetAttributeAnimationSpeed(const String&, float);
  1207. void SetAttributeAnimationTime(const String&, float);
  1208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1209. void SetInterceptNetworkUpdate(const String&, bool);
  1210. void SetOrthoSize(const Vector2&);
  1211. Vector2 WorldToScreenPoint(const Vector3&) const;
  1212. // Properties:
  1213. bool animationEnabled;
  1214. float aspectRatio;
  1215. /* readonly */
  1216. Array<Variant> attributeDefaults;
  1217. /* readonly */
  1218. Array<AttributeInfo> attributeInfos;
  1219. Array<Variant> attributes;
  1220. bool autoAspectRatio;
  1221. /* readonly */
  1222. String category;
  1223. Plane clipPlane;
  1224. /* readonly */
  1225. Matrix3x4 effectiveWorldTransform;
  1226. bool enabled;
  1227. /* readonly */
  1228. bool enabledEffective;
  1229. float farClip;
  1230. FillMode fillMode;
  1231. float fov;
  1232. /* readonly */
  1233. Frustum frustum;
  1234. /* readonly */
  1235. float halfViewSize;
  1236. /* readonly */
  1237. uint id;
  1238. float lodBias;
  1239. float nearClip;
  1240. /* readonly */
  1241. Node node;
  1242. /* readonly */
  1243. uint numAttributes;
  1244. ObjectAnimation objectAnimation;
  1245. float orthoSize;
  1246. bool orthographic;
  1247. /* readonly */
  1248. Matrix4 projection;
  1249. Vector2 projectionOffset;
  1250. Plane reflectionPlane;
  1251. /* readonly */
  1252. int refs;
  1253. bool temporary;
  1254. /* readonly */
  1255. StringHash type;
  1256. /* readonly */
  1257. String typeName;
  1258. bool useClipping;
  1259. bool useReflection;
  1260. /* readonly */
  1261. Matrix3x4 view;
  1262. uint viewMask;
  1263. uint viewOverrideFlags;
  1264. /* readonly */
  1265. Frustum viewSpaceFrustum;
  1266. /* readonly */
  1267. int weakRefs;
  1268. float zoom;
  1269. };
  1270. class CascadeParameters
  1271. {
  1272. // Properties:
  1273. float biasAutoAdjust;
  1274. float fadeStart;
  1275. float split1;
  1276. float split2;
  1277. float split3;
  1278. float split4;
  1279. };
  1280. class CheckBox
  1281. {
  1282. // Methods:
  1283. void AddChild(UIElement);
  1284. void AddTag(const String&);
  1285. void AddTags(const String&, int8 = ';');
  1286. void ApplyAttributes();
  1287. void BringToFront();
  1288. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1289. void DisableLayoutUpdate();
  1290. IntVector2 ElementToScreen(const IntVector2&);
  1291. void EnableLayoutUpdate();
  1292. uint FindChild(UIElement) const;
  1293. Variant GetAttribute(const String&) const;
  1294. ValueAnimation GetAttributeAnimation(const String&) const;
  1295. float GetAttributeAnimationSpeed(const String&) const;
  1296. float GetAttributeAnimationTime(const String&) const;
  1297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1298. Variant GetAttributeDefault(const String&) const;
  1299. UIElement GetChild(const String&, bool = false) const;
  1300. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1301. Array<UIElement> GetChildren(bool = false) const;
  1302. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1303. UIElement GetElementEventSender() const;
  1304. bool GetInterceptNetworkUpdate(const String&) const;
  1305. uint GetNumChildren(bool) const;
  1306. bool HasSubscribedToEvent(Object, const String&);
  1307. bool HasSubscribedToEvent(const String&);
  1308. bool HasTag(const String&) const;
  1309. void InsertChild(uint, UIElement);
  1310. bool IsInside(IntVector2, bool);
  1311. bool IsInsideCombined(IntVector2, bool);
  1312. bool Load(File, bool = false);
  1313. bool Load(VectorBuffer&, bool = false);
  1314. bool LoadChildXML(XMLFile, XMLFile = null);
  1315. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1316. bool LoadJSON(const JSONValue&, bool = false);
  1317. bool LoadXML(File);
  1318. bool LoadXML(VectorBuffer&);
  1319. bool LoadXML(XMLFile, XMLFile);
  1320. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1321. bool LoadXML(const XMLElement&, bool = false);
  1322. void MarkNetworkUpdate() const;
  1323. void Remove();
  1324. void RemoveAllChildren();
  1325. void RemoveAllTags();
  1326. void RemoveAttributeAnimation(const String&);
  1327. void RemoveChild(UIElement, uint = 0);
  1328. void RemoveChild(uint);
  1329. void RemoveInstanceDefault();
  1330. void RemoveObjectAnimation();
  1331. bool RemoveTag(const String&);
  1332. void ResetDeepEnabled();
  1333. void ResetToDefault();
  1334. bool Save(File) const;
  1335. bool Save(VectorBuffer&) const;
  1336. bool SaveJSON(JSONValue&) const;
  1337. bool SaveXML(File, const String& = "\t");
  1338. bool SaveXML(VectorBuffer&, const String& = "\t");
  1339. bool SaveXML(XMLElement&) const;
  1340. IntVector2 ScreenToElement(const IntVector2&);
  1341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1342. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1343. void SetAnimationTime(float);
  1344. bool SetAttribute(const String&, const Variant&);
  1345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1346. void SetAttributeAnimationSpeed(const String&, float);
  1347. void SetAttributeAnimationTime(const String&, float);
  1348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1349. void SetCheckedOffset(int, int);
  1350. void SetDeepEnabled(bool);
  1351. void SetEnabledRecursive(bool);
  1352. void SetFixedHeight(int);
  1353. void SetFixedSize(int, int);
  1354. void SetFixedWidth(int);
  1355. void SetFullImageRect();
  1356. void SetHoverOffset(int, int);
  1357. void SetInterceptNetworkUpdate(const String&, bool);
  1358. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1359. void SetMaxSize(int, int);
  1360. void SetMinSize(int, int);
  1361. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1362. void SetPosition(int, int);
  1363. void SetSize(int, int);
  1364. bool SetStyle(const String&, XMLFile = null);
  1365. bool SetStyle(const XMLElement&);
  1366. bool SetStyleAuto(XMLFile = null);
  1367. void UpdateLayout();
  1368. const Variant& GetVar(const StringHash&);
  1369. // Properties:
  1370. bool animationEnabled;
  1371. /* readonly */
  1372. Array<Variant> attributeDefaults;
  1373. /* readonly */
  1374. Array<AttributeInfo> attributeInfos;
  1375. Array<Variant> attributes;
  1376. BlendMode blendMode;
  1377. IntRect border;
  1378. bool bringToBack;
  1379. bool bringToFront;
  1380. /* readonly */
  1381. String category;
  1382. bool checked;
  1383. IntVector2 checkedOffset;
  1384. /* readonly */
  1385. IntVector2 childOffset;
  1386. /* readonly */
  1387. Array<UIElement> children;
  1388. IntRect clipBorder;
  1389. bool clipChildren;
  1390. /* writeonly */
  1391. Color color;
  1392. /* readonly */
  1393. bool colorGradient;
  1394. Array<Color> colors;
  1395. /* readonly */
  1396. IntRect combinedScreenRect;
  1397. XMLFile defaultStyle;
  1398. /* readonly */
  1399. float derivedOpacity;
  1400. /* readonly */
  1401. uint dragButtonCombo;
  1402. /* readonly */
  1403. int dragButtonCount;
  1404. uint dragDropMode;
  1405. bool editable;
  1406. bool elementEventSender;
  1407. bool enabled;
  1408. /* readonly */
  1409. bool enabledSelf;
  1410. /* readonly */
  1411. bool fixedHeight;
  1412. /* readonly */
  1413. bool fixedSize;
  1414. /* readonly */
  1415. bool fixedWidth;
  1416. bool focus;
  1417. FocusMode focusMode;
  1418. int height;
  1419. HorizontalAlignment horizontalAlignment;
  1420. IntVector2 hoverOffset;
  1421. /* readonly */
  1422. bool hovering;
  1423. IntRect imageBorder;
  1424. IntRect imageRect;
  1425. int indent;
  1426. int indentSpacing;
  1427. /* readonly */
  1428. int indentWidth;
  1429. bool internal;
  1430. IntRect layoutBorder;
  1431. Vector2 layoutFlexScale;
  1432. LayoutMode layoutMode;
  1433. int layoutSpacing;
  1434. int maxHeight;
  1435. IntVector2 maxSize;
  1436. int maxWidth;
  1437. int minHeight;
  1438. IntVector2 minSize;
  1439. int minWidth;
  1440. String name;
  1441. /* readonly */
  1442. uint numAllChildren;
  1443. /* readonly */
  1444. uint numAttributes;
  1445. /* readonly */
  1446. uint numChildren;
  1447. ObjectAnimation objectAnimation;
  1448. float opacity;
  1449. UIElement parent;
  1450. IntVector2 position;
  1451. int priority;
  1452. /* readonly */
  1453. int refs;
  1454. /* readonly */
  1455. UIElement root;
  1456. /* readonly */
  1457. IntVector2 screenPosition;
  1458. bool selected;
  1459. IntVector2 size;
  1460. bool sortChildren;
  1461. String style;
  1462. /* readonly */
  1463. Array<String> tags;
  1464. bool temporary;
  1465. Texture texture;
  1466. bool tiled;
  1467. TraversalMode traversalMode;
  1468. /* readonly */
  1469. StringHash type;
  1470. /* readonly */
  1471. String typeName;
  1472. bool useDerivedOpacity;
  1473. /* readonly */
  1474. VariantMap vars;
  1475. VerticalAlignment verticalAlignment;
  1476. bool visible;
  1477. /* readonly */
  1478. bool visibleEffective;
  1479. /* readonly */
  1480. int weakRefs;
  1481. int width;
  1482. };
  1483. class CollisionBox2D
  1484. {
  1485. // Methods:
  1486. void ApplyAttributes();
  1487. void DrawDebugGeometry(DebugRenderer, bool);
  1488. Variant GetAttribute(const String&) const;
  1489. ValueAnimation GetAttributeAnimation(const String&) const;
  1490. float GetAttributeAnimationSpeed(const String&) const;
  1491. float GetAttributeAnimationTime(const String&) const;
  1492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1493. Variant GetAttributeDefault(const String&) const;
  1494. bool GetInterceptNetworkUpdate(const String&) const;
  1495. bool HasSubscribedToEvent(Object, const String&);
  1496. bool HasSubscribedToEvent(const String&);
  1497. bool Load(File, bool = false);
  1498. bool Load(VectorBuffer&, bool = false);
  1499. bool LoadJSON(const JSONValue&, bool = false);
  1500. bool LoadXML(const XMLElement&, bool = false);
  1501. void MarkNetworkUpdate() const;
  1502. void Remove();
  1503. void RemoveAttributeAnimation(const String&);
  1504. void RemoveInstanceDefault();
  1505. void RemoveObjectAnimation();
  1506. void ResetToDefault();
  1507. bool Save(File) const;
  1508. bool Save(VectorBuffer&) const;
  1509. bool SaveJSON(JSONValue&) const;
  1510. bool SaveXML(XMLElement&) const;
  1511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1512. void SetAnimationTime(float);
  1513. bool SetAttribute(const String&, const Variant&);
  1514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1515. void SetAttributeAnimationSpeed(const String&, float);
  1516. void SetAttributeAnimationTime(const String&, float);
  1517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1518. void SetCenter(float, float);
  1519. void SetInterceptNetworkUpdate(const String&, bool);
  1520. void SetSize(float, float);
  1521. // Properties:
  1522. float angle;
  1523. bool animationEnabled;
  1524. /* readonly */
  1525. Array<Variant> attributeDefaults;
  1526. /* readonly */
  1527. Array<AttributeInfo> attributeInfos;
  1528. Array<Variant> attributes;
  1529. /* readonly */
  1530. String category;
  1531. int categoryBits;
  1532. Vector2 center;
  1533. float density;
  1534. bool enabled;
  1535. /* readonly */
  1536. bool enabledEffective;
  1537. float friction;
  1538. int groupIndex;
  1539. /* readonly */
  1540. uint id;
  1541. /* readonly */
  1542. float inertia;
  1543. int maskBits;
  1544. /* readonly */
  1545. float mass;
  1546. /* readonly */
  1547. Vector2 massCenter;
  1548. /* readonly */
  1549. Node node;
  1550. /* readonly */
  1551. uint numAttributes;
  1552. ObjectAnimation objectAnimation;
  1553. /* readonly */
  1554. int refs;
  1555. float restitution;
  1556. Vector2 size;
  1557. bool temporary;
  1558. bool trigger;
  1559. /* readonly */
  1560. StringHash type;
  1561. /* readonly */
  1562. String typeName;
  1563. /* readonly */
  1564. int weakRefs;
  1565. };
  1566. class CollisionChain2D
  1567. {
  1568. // Methods:
  1569. void ApplyAttributes();
  1570. void DrawDebugGeometry(DebugRenderer, bool);
  1571. Variant GetAttribute(const String&) const;
  1572. ValueAnimation GetAttributeAnimation(const String&) const;
  1573. float GetAttributeAnimationSpeed(const String&) const;
  1574. float GetAttributeAnimationTime(const String&) const;
  1575. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1576. Variant GetAttributeDefault(const String&) const;
  1577. bool GetInterceptNetworkUpdate(const String&) const;
  1578. Array<Vector2> GetVertices() const;
  1579. bool HasSubscribedToEvent(Object, const String&);
  1580. bool HasSubscribedToEvent(const String&);
  1581. bool Load(File, bool = false);
  1582. bool Load(VectorBuffer&, bool = false);
  1583. bool LoadJSON(const JSONValue&, bool = false);
  1584. bool LoadXML(const XMLElement&, bool = false);
  1585. void MarkNetworkUpdate() const;
  1586. void Remove();
  1587. void RemoveAttributeAnimation(const String&);
  1588. void RemoveInstanceDefault();
  1589. void RemoveObjectAnimation();
  1590. void ResetToDefault();
  1591. bool Save(File) const;
  1592. bool Save(VectorBuffer&) const;
  1593. bool SaveJSON(JSONValue&) const;
  1594. bool SaveXML(XMLElement&) const;
  1595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1596. void SetAnimationTime(float);
  1597. bool SetAttribute(const String&, const Variant&);
  1598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1599. void SetAttributeAnimationSpeed(const String&, float);
  1600. void SetAttributeAnimationTime(const String&, float);
  1601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1602. void SetInterceptNetworkUpdate(const String&, bool);
  1603. void SetVertex(uint, const Vector2&);
  1604. void SetVertices(Array<Vector2>);
  1605. const Vector2& GetVertex(uint) const;
  1606. // Properties:
  1607. bool animationEnabled;
  1608. /* readonly */
  1609. Array<Variant> attributeDefaults;
  1610. /* readonly */
  1611. Array<AttributeInfo> attributeInfos;
  1612. Array<Variant> attributes;
  1613. /* readonly */
  1614. String category;
  1615. int categoryBits;
  1616. float density;
  1617. bool enabled;
  1618. /* readonly */
  1619. bool enabledEffective;
  1620. float friction;
  1621. int groupIndex;
  1622. /* readonly */
  1623. uint id;
  1624. /* readonly */
  1625. float inertia;
  1626. bool loop;
  1627. int maskBits;
  1628. /* readonly */
  1629. float mass;
  1630. /* readonly */
  1631. Vector2 massCenter;
  1632. /* readonly */
  1633. Node node;
  1634. /* readonly */
  1635. uint numAttributes;
  1636. ObjectAnimation objectAnimation;
  1637. /* readonly */
  1638. int refs;
  1639. float restitution;
  1640. bool temporary;
  1641. bool trigger;
  1642. /* readonly */
  1643. StringHash type;
  1644. /* readonly */
  1645. String typeName;
  1646. uint vertexCount;
  1647. /* readonly */
  1648. int weakRefs;
  1649. };
  1650. class CollisionCircle2D
  1651. {
  1652. // Methods:
  1653. void ApplyAttributes();
  1654. void DrawDebugGeometry(DebugRenderer, bool);
  1655. Variant GetAttribute(const String&) const;
  1656. ValueAnimation GetAttributeAnimation(const String&) const;
  1657. float GetAttributeAnimationSpeed(const String&) const;
  1658. float GetAttributeAnimationTime(const String&) const;
  1659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1660. Variant GetAttributeDefault(const String&) const;
  1661. bool GetInterceptNetworkUpdate(const String&) const;
  1662. bool HasSubscribedToEvent(Object, const String&);
  1663. bool HasSubscribedToEvent(const String&);
  1664. bool Load(File, bool = false);
  1665. bool Load(VectorBuffer&, bool = false);
  1666. bool LoadJSON(const JSONValue&, bool = false);
  1667. bool LoadXML(const XMLElement&, bool = false);
  1668. void MarkNetworkUpdate() const;
  1669. void Remove();
  1670. void RemoveAttributeAnimation(const String&);
  1671. void RemoveInstanceDefault();
  1672. void RemoveObjectAnimation();
  1673. void ResetToDefault();
  1674. bool Save(File) const;
  1675. bool Save(VectorBuffer&) const;
  1676. bool SaveJSON(JSONValue&) const;
  1677. bool SaveXML(XMLElement&) const;
  1678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1679. void SetAnimationTime(float);
  1680. bool SetAttribute(const String&, const Variant&);
  1681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1682. void SetAttributeAnimationSpeed(const String&, float);
  1683. void SetAttributeAnimationTime(const String&, float);
  1684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1685. void SetCenter(float, float);
  1686. void SetInterceptNetworkUpdate(const String&, bool);
  1687. // Properties:
  1688. bool animationEnabled;
  1689. /* readonly */
  1690. Array<Variant> attributeDefaults;
  1691. /* readonly */
  1692. Array<AttributeInfo> attributeInfos;
  1693. Array<Variant> attributes;
  1694. /* readonly */
  1695. String category;
  1696. int categoryBits;
  1697. Vector2 center;
  1698. float density;
  1699. bool enabled;
  1700. /* readonly */
  1701. bool enabledEffective;
  1702. float friction;
  1703. int groupIndex;
  1704. /* readonly */
  1705. uint id;
  1706. /* readonly */
  1707. float inertia;
  1708. int maskBits;
  1709. /* readonly */
  1710. float mass;
  1711. /* readonly */
  1712. Vector2 massCenter;
  1713. /* readonly */
  1714. Node node;
  1715. /* readonly */
  1716. uint numAttributes;
  1717. ObjectAnimation objectAnimation;
  1718. float radius;
  1719. /* readonly */
  1720. int refs;
  1721. float restitution;
  1722. bool temporary;
  1723. bool trigger;
  1724. /* readonly */
  1725. StringHash type;
  1726. /* readonly */
  1727. String typeName;
  1728. /* readonly */
  1729. int weakRefs;
  1730. };
  1731. class CollisionEdge2D
  1732. {
  1733. // Methods:
  1734. void ApplyAttributes();
  1735. void DrawDebugGeometry(DebugRenderer, bool);
  1736. Variant GetAttribute(const String&) const;
  1737. ValueAnimation GetAttributeAnimation(const String&) const;
  1738. float GetAttributeAnimationSpeed(const String&) const;
  1739. float GetAttributeAnimationTime(const String&) const;
  1740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1741. Variant GetAttributeDefault(const String&) const;
  1742. bool GetInterceptNetworkUpdate(const String&) const;
  1743. bool HasSubscribedToEvent(Object, const String&);
  1744. bool HasSubscribedToEvent(const String&);
  1745. bool Load(File, bool = false);
  1746. bool Load(VectorBuffer&, bool = false);
  1747. bool LoadJSON(const JSONValue&, bool = false);
  1748. bool LoadXML(const XMLElement&, bool = false);
  1749. void MarkNetworkUpdate() const;
  1750. void Remove();
  1751. void RemoveAttributeAnimation(const String&);
  1752. void RemoveInstanceDefault();
  1753. void RemoveObjectAnimation();
  1754. void ResetToDefault();
  1755. bool Save(File) const;
  1756. bool Save(VectorBuffer&) const;
  1757. bool SaveJSON(JSONValue&) const;
  1758. bool SaveXML(XMLElement&) const;
  1759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1760. void SetAnimationTime(float);
  1761. bool SetAttribute(const String&, const Variant&);
  1762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1763. void SetAttributeAnimationSpeed(const String&, float);
  1764. void SetAttributeAnimationTime(const String&, float);
  1765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1766. void SetInterceptNetworkUpdate(const String&, bool);
  1767. void SetVertices(const Vector2&, const Vector2&);
  1768. // Properties:
  1769. bool animationEnabled;
  1770. /* readonly */
  1771. Array<Variant> attributeDefaults;
  1772. /* readonly */
  1773. Array<AttributeInfo> attributeInfos;
  1774. Array<Variant> attributes;
  1775. /* readonly */
  1776. String category;
  1777. int categoryBits;
  1778. float density;
  1779. bool enabled;
  1780. /* readonly */
  1781. bool enabledEffective;
  1782. float friction;
  1783. int groupIndex;
  1784. /* readonly */
  1785. uint id;
  1786. /* readonly */
  1787. float inertia;
  1788. int maskBits;
  1789. /* readonly */
  1790. float mass;
  1791. /* readonly */
  1792. Vector2 massCenter;
  1793. /* readonly */
  1794. Node node;
  1795. /* readonly */
  1796. uint numAttributes;
  1797. ObjectAnimation objectAnimation;
  1798. /* readonly */
  1799. int refs;
  1800. float restitution;
  1801. bool temporary;
  1802. bool trigger;
  1803. /* readonly */
  1804. StringHash type;
  1805. /* readonly */
  1806. String typeName;
  1807. Vector2 vertex1;
  1808. Vector2 vertex2;
  1809. /* readonly */
  1810. int weakRefs;
  1811. };
  1812. class CollisionPolygon2D
  1813. {
  1814. // Methods:
  1815. void ApplyAttributes();
  1816. void DrawDebugGeometry(DebugRenderer, bool);
  1817. Variant GetAttribute(const String&) const;
  1818. ValueAnimation GetAttributeAnimation(const String&) const;
  1819. float GetAttributeAnimationSpeed(const String&) const;
  1820. float GetAttributeAnimationTime(const String&) const;
  1821. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1822. Variant GetAttributeDefault(const String&) const;
  1823. bool GetInterceptNetworkUpdate(const String&) const;
  1824. Array<Vector2> GetVertices() const;
  1825. bool HasSubscribedToEvent(Object, const String&);
  1826. bool HasSubscribedToEvent(const String&);
  1827. bool Load(File, bool = false);
  1828. bool Load(VectorBuffer&, bool = false);
  1829. bool LoadJSON(const JSONValue&, bool = false);
  1830. bool LoadXML(const XMLElement&, bool = false);
  1831. void MarkNetworkUpdate() const;
  1832. void Remove();
  1833. void RemoveAttributeAnimation(const String&);
  1834. void RemoveInstanceDefault();
  1835. void RemoveObjectAnimation();
  1836. void ResetToDefault();
  1837. bool Save(File) const;
  1838. bool Save(VectorBuffer&) const;
  1839. bool SaveJSON(JSONValue&) const;
  1840. bool SaveXML(XMLElement&) const;
  1841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1842. void SetAnimationTime(float);
  1843. bool SetAttribute(const String&, const Variant&);
  1844. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1845. void SetAttributeAnimationSpeed(const String&, float);
  1846. void SetAttributeAnimationTime(const String&, float);
  1847. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1848. void SetInterceptNetworkUpdate(const String&, bool);
  1849. void SetVertex(uint, const Vector2&);
  1850. void SetVertices(Array<Vector2>);
  1851. const Vector2& GetVertex(uint) const;
  1852. // Properties:
  1853. bool animationEnabled;
  1854. /* readonly */
  1855. Array<Variant> attributeDefaults;
  1856. /* readonly */
  1857. Array<AttributeInfo> attributeInfos;
  1858. Array<Variant> attributes;
  1859. /* readonly */
  1860. String category;
  1861. int categoryBits;
  1862. float density;
  1863. bool enabled;
  1864. /* readonly */
  1865. bool enabledEffective;
  1866. float friction;
  1867. int groupIndex;
  1868. /* readonly */
  1869. uint id;
  1870. /* readonly */
  1871. float inertia;
  1872. int maskBits;
  1873. /* readonly */
  1874. float mass;
  1875. /* readonly */
  1876. Vector2 massCenter;
  1877. /* readonly */
  1878. Node node;
  1879. /* readonly */
  1880. uint numAttributes;
  1881. ObjectAnimation objectAnimation;
  1882. /* readonly */
  1883. int refs;
  1884. float restitution;
  1885. bool temporary;
  1886. bool trigger;
  1887. /* readonly */
  1888. StringHash type;
  1889. /* readonly */
  1890. String typeName;
  1891. uint vertexCount;
  1892. /* readonly */
  1893. int weakRefs;
  1894. };
  1895. class CollisionShape
  1896. {
  1897. // Methods:
  1898. void ApplyAttributes();
  1899. void DrawDebugGeometry(DebugRenderer, bool);
  1900. Variant GetAttribute(const String&) const;
  1901. ValueAnimation GetAttributeAnimation(const String&) const;
  1902. float GetAttributeAnimationSpeed(const String&) const;
  1903. float GetAttributeAnimationTime(const String&) const;
  1904. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1905. Variant GetAttributeDefault(const String&) const;
  1906. bool GetInterceptNetworkUpdate(const String&) const;
  1907. bool HasSubscribedToEvent(Object, const String&);
  1908. bool HasSubscribedToEvent(const String&);
  1909. bool Load(File, bool = false);
  1910. bool Load(VectorBuffer&, bool = false);
  1911. bool LoadJSON(const JSONValue&, bool = false);
  1912. bool LoadXML(const XMLElement&, bool = false);
  1913. void MarkNetworkUpdate() const;
  1914. void Remove();
  1915. void RemoveAttributeAnimation(const String&);
  1916. void RemoveInstanceDefault();
  1917. void RemoveObjectAnimation();
  1918. void ResetToDefault();
  1919. bool Save(File) const;
  1920. bool Save(VectorBuffer&) const;
  1921. bool SaveJSON(JSONValue&) const;
  1922. bool SaveXML(XMLElement&) const;
  1923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1924. void SetAnimationTime(float);
  1925. bool SetAttribute(const String&, const Variant&);
  1926. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1927. void SetAttributeAnimationSpeed(const String&, float);
  1928. void SetAttributeAnimationTime(const String&, float);
  1929. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1930. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetInterceptNetworkUpdate(const String&, bool);
  1938. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1939. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1940. void SetTerrain(uint = 0);
  1941. void SetTransform(const Vector3&, const Quaternion&);
  1942. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1943. // Properties:
  1944. bool animationEnabled;
  1945. /* readonly */
  1946. Array<Variant> attributeDefaults;
  1947. /* readonly */
  1948. Array<AttributeInfo> attributeInfos;
  1949. Array<Variant> attributes;
  1950. /* readonly */
  1951. String category;
  1952. bool enabled;
  1953. /* readonly */
  1954. bool enabledEffective;
  1955. /* readonly */
  1956. uint id;
  1957. uint lodLevel;
  1958. float margin;
  1959. Model model;
  1960. /* readonly */
  1961. Node node;
  1962. /* readonly */
  1963. uint numAttributes;
  1964. ObjectAnimation objectAnimation;
  1965. Vector3 position;
  1966. /* readonly */
  1967. int refs;
  1968. Quaternion rotation;
  1969. ShapeType shapeType;
  1970. Vector3 size;
  1971. bool temporary;
  1972. /* readonly */
  1973. StringHash type;
  1974. /* readonly */
  1975. String typeName;
  1976. /* readonly */
  1977. int weakRefs;
  1978. /* readonly */
  1979. BoundingBox worldBoundingBox;
  1980. };
  1981. class CollisionShape2D
  1982. {
  1983. // Methods:
  1984. void ApplyAttributes();
  1985. void DrawDebugGeometry(DebugRenderer, bool);
  1986. Variant GetAttribute(const String&) const;
  1987. ValueAnimation GetAttributeAnimation(const String&) const;
  1988. float GetAttributeAnimationSpeed(const String&) const;
  1989. float GetAttributeAnimationTime(const String&) const;
  1990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1991. Variant GetAttributeDefault(const String&) const;
  1992. bool GetInterceptNetworkUpdate(const String&) const;
  1993. bool HasSubscribedToEvent(Object, const String&);
  1994. bool HasSubscribedToEvent(const String&);
  1995. bool Load(File, bool = false);
  1996. bool Load(VectorBuffer&, bool = false);
  1997. bool LoadJSON(const JSONValue&, bool = false);
  1998. bool LoadXML(const XMLElement&, bool = false);
  1999. void MarkNetworkUpdate() const;
  2000. void Remove();
  2001. void RemoveAttributeAnimation(const String&);
  2002. void RemoveInstanceDefault();
  2003. void RemoveObjectAnimation();
  2004. void ResetToDefault();
  2005. bool Save(File) const;
  2006. bool Save(VectorBuffer&) const;
  2007. bool SaveJSON(JSONValue&) const;
  2008. bool SaveXML(XMLElement&) const;
  2009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2010. void SetAnimationTime(float);
  2011. bool SetAttribute(const String&, const Variant&);
  2012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2013. void SetAttributeAnimationSpeed(const String&, float);
  2014. void SetAttributeAnimationTime(const String&, float);
  2015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2016. void SetInterceptNetworkUpdate(const String&, bool);
  2017. // Properties:
  2018. bool animationEnabled;
  2019. /* readonly */
  2020. Array<Variant> attributeDefaults;
  2021. /* readonly */
  2022. Array<AttributeInfo> attributeInfos;
  2023. Array<Variant> attributes;
  2024. /* readonly */
  2025. String category;
  2026. int categoryBits;
  2027. float density;
  2028. bool enabled;
  2029. /* readonly */
  2030. bool enabledEffective;
  2031. float friction;
  2032. int groupIndex;
  2033. /* readonly */
  2034. uint id;
  2035. /* readonly */
  2036. float inertia;
  2037. int maskBits;
  2038. /* readonly */
  2039. float mass;
  2040. /* readonly */
  2041. Vector2 massCenter;
  2042. /* readonly */
  2043. Node node;
  2044. /* readonly */
  2045. uint numAttributes;
  2046. ObjectAnimation objectAnimation;
  2047. /* readonly */
  2048. int refs;
  2049. float restitution;
  2050. bool temporary;
  2051. bool trigger;
  2052. /* readonly */
  2053. StringHash type;
  2054. /* readonly */
  2055. String typeName;
  2056. /* readonly */
  2057. int weakRefs;
  2058. };
  2059. class Color
  2060. {
  2061. // Methods:
  2062. Color Abs() const;
  2063. float Average() const;
  2064. float Chroma() const;
  2065. void Clip(bool);
  2066. bool Equals() const;
  2067. void FromHSL(float, float, float, float);
  2068. void FromHSV(float, float, float, float);
  2069. float Hue() const;
  2070. void Invert(bool);
  2071. Color Lerp(const Color&, float) const;
  2072. float Lightness() const;
  2073. float Luma() const;
  2074. float MaxRGB() const;
  2075. float MinRGB() const;
  2076. float Range() const;
  2077. float SaturationHSL() const;
  2078. float SaturationHSV() const;
  2079. float SumRGB() const;
  2080. Vector3 ToHSL() const;
  2081. Vector3 ToHSV() const;
  2082. String ToString() const;
  2083. uint ToUInt() const;
  2084. float Value() const;
  2085. // Properties:
  2086. float a;
  2087. float b;
  2088. /* readonly */
  2089. Array<float> data;
  2090. float g;
  2091. float r;
  2092. /* readonly */
  2093. Vector3 rgb;
  2094. /* readonly */
  2095. Vector4 rgba;
  2096. };
  2097. class ColorFrame
  2098. {
  2099. // Properties:
  2100. Color color;
  2101. float time;
  2102. };
  2103. class Component
  2104. {
  2105. // Methods:
  2106. void ApplyAttributes();
  2107. void DrawDebugGeometry(DebugRenderer, bool);
  2108. Variant GetAttribute(const String&) const;
  2109. ValueAnimation GetAttributeAnimation(const String&) const;
  2110. float GetAttributeAnimationSpeed(const String&) const;
  2111. float GetAttributeAnimationTime(const String&) const;
  2112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2113. Variant GetAttributeDefault(const String&) const;
  2114. bool GetInterceptNetworkUpdate(const String&) const;
  2115. bool HasSubscribedToEvent(Object, const String&);
  2116. bool HasSubscribedToEvent(const String&);
  2117. bool Load(File, bool = false);
  2118. bool Load(VectorBuffer&, bool = false);
  2119. bool LoadJSON(const JSONValue&, bool = false);
  2120. bool LoadXML(const XMLElement&, bool = false);
  2121. void MarkNetworkUpdate() const;
  2122. void Remove();
  2123. void RemoveAttributeAnimation(const String&);
  2124. void RemoveInstanceDefault();
  2125. void RemoveObjectAnimation();
  2126. void ResetToDefault();
  2127. bool Save(File) const;
  2128. bool Save(VectorBuffer&) const;
  2129. bool SaveJSON(JSONValue&) const;
  2130. bool SaveXML(XMLElement&) const;
  2131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2132. void SetAnimationTime(float);
  2133. bool SetAttribute(const String&, const Variant&);
  2134. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2135. void SetAttributeAnimationSpeed(const String&, float);
  2136. void SetAttributeAnimationTime(const String&, float);
  2137. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2138. void SetInterceptNetworkUpdate(const String&, bool);
  2139. // Properties:
  2140. bool animationEnabled;
  2141. /* readonly */
  2142. Array<Variant> attributeDefaults;
  2143. /* readonly */
  2144. Array<AttributeInfo> attributeInfos;
  2145. Array<Variant> attributes;
  2146. /* readonly */
  2147. String category;
  2148. bool enabled;
  2149. /* readonly */
  2150. bool enabledEffective;
  2151. /* readonly */
  2152. uint id;
  2153. /* readonly */
  2154. Node node;
  2155. /* readonly */
  2156. uint numAttributes;
  2157. ObjectAnimation objectAnimation;
  2158. /* readonly */
  2159. int refs;
  2160. bool temporary;
  2161. /* readonly */
  2162. StringHash type;
  2163. /* readonly */
  2164. String typeName;
  2165. /* readonly */
  2166. int weakRefs;
  2167. };
  2168. class Connection
  2169. {
  2170. // Methods:
  2171. void Disconnect(int = 0);
  2172. bool HasSubscribedToEvent(Object, const String&);
  2173. bool HasSubscribedToEvent(const String&);
  2174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2175. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2176. void SendPackageToClient(PackageFile);
  2177. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2178. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2179. String ToString() const;
  2180. // Properties:
  2181. /* readonly */
  2182. String address;
  2183. /* readonly */
  2184. float bytesInPerSec;
  2185. /* readonly */
  2186. float bytesOutPerSec;
  2187. /* readonly */
  2188. String category;
  2189. /* readonly */
  2190. bool client;
  2191. /* readonly */
  2192. bool connectPending;
  2193. /* readonly */
  2194. bool connected;
  2195. Controls controls;
  2196. /* readonly */
  2197. String downloadName;
  2198. /* readonly */
  2199. float downloadProgress;
  2200. VariantMap identity;
  2201. /* readonly */
  2202. float lastHeardTime;
  2203. bool logStatistics;
  2204. /* readonly */
  2205. uint numDownloads;
  2206. /* readonly */
  2207. float packetsInPerSec;
  2208. /* readonly */
  2209. float packetsOutPerSec;
  2210. /* readonly */
  2211. uint16 port;
  2212. Vector3 position;
  2213. /* readonly */
  2214. int refs;
  2215. Quaternion rotation;
  2216. /* readonly */
  2217. float roundTripTime;
  2218. Scene scene;
  2219. /* readonly */
  2220. bool sceneLoaded;
  2221. uint8 timeStamp;
  2222. /* readonly */
  2223. StringHash type;
  2224. /* readonly */
  2225. String typeName;
  2226. /* readonly */
  2227. int weakRefs;
  2228. };
  2229. class Console
  2230. {
  2231. // Methods:
  2232. void CopySelectedRows() const;
  2233. bool HasSubscribedToEvent(Object, const String&);
  2234. bool HasSubscribedToEvent(const String&);
  2235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2236. void Toggle();
  2237. void UpdateElements();
  2238. // Properties:
  2239. bool autoVisibleOnError;
  2240. /* readonly */
  2241. BorderImage background;
  2242. /* readonly */
  2243. String category;
  2244. /* readonly */
  2245. Button closeButton;
  2246. String commandInterpreter;
  2247. XMLFile defaultStyle;
  2248. bool focusOnShow;
  2249. /* readonly */
  2250. uint historyPosition;
  2251. /* readonly */
  2252. Array<String> historyRow;
  2253. /* readonly */
  2254. LineEdit lineEdit;
  2255. uint numBufferedRows;
  2256. uint numHistoryRows;
  2257. uint numRows;
  2258. /* readonly */
  2259. int refs;
  2260. /* readonly */
  2261. StringHash type;
  2262. /* readonly */
  2263. String typeName;
  2264. bool visible;
  2265. /* readonly */
  2266. int weakRefs;
  2267. };
  2268. class Constraint
  2269. {
  2270. // Methods:
  2271. void ApplyAttributes();
  2272. void DrawDebugGeometry(DebugRenderer, bool);
  2273. Variant GetAttribute(const String&) const;
  2274. ValueAnimation GetAttributeAnimation(const String&) const;
  2275. float GetAttributeAnimationSpeed(const String&) const;
  2276. float GetAttributeAnimationTime(const String&) const;
  2277. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2278. Variant GetAttributeDefault(const String&) const;
  2279. bool GetInterceptNetworkUpdate(const String&) const;
  2280. bool HasSubscribedToEvent(Object, const String&);
  2281. bool HasSubscribedToEvent(const String&);
  2282. bool Load(File, bool = false);
  2283. bool Load(VectorBuffer&, bool = false);
  2284. bool LoadJSON(const JSONValue&, bool = false);
  2285. bool LoadXML(const XMLElement&, bool = false);
  2286. void MarkNetworkUpdate() const;
  2287. void Remove();
  2288. void RemoveAttributeAnimation(const String&);
  2289. void RemoveInstanceDefault();
  2290. void RemoveObjectAnimation();
  2291. void ResetToDefault();
  2292. bool Save(File) const;
  2293. bool Save(VectorBuffer&) const;
  2294. bool SaveJSON(JSONValue&) const;
  2295. bool SaveXML(XMLElement&) const;
  2296. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2297. void SetAnimationTime(float);
  2298. bool SetAttribute(const String&, const Variant&);
  2299. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2300. void SetAttributeAnimationSpeed(const String&, float);
  2301. void SetAttributeAnimationTime(const String&, float);
  2302. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2303. void SetInterceptNetworkUpdate(const String&, bool);
  2304. // Properties:
  2305. bool animationEnabled;
  2306. /* readonly */
  2307. Array<Variant> attributeDefaults;
  2308. /* readonly */
  2309. Array<AttributeInfo> attributeInfos;
  2310. Array<Variant> attributes;
  2311. /* writeonly */
  2312. Vector3 axis;
  2313. /* readonly */
  2314. String category;
  2315. float cfm;
  2316. ConstraintType constraintType;
  2317. bool disableCollision;
  2318. bool enabled;
  2319. /* readonly */
  2320. bool enabledEffective;
  2321. float erp;
  2322. Vector2 highLimit;
  2323. /* readonly */
  2324. uint id;
  2325. Vector2 lowLimit;
  2326. /* readonly */
  2327. Node node;
  2328. /* readonly */
  2329. uint numAttributes;
  2330. ObjectAnimation objectAnimation;
  2331. /* writeonly */
  2332. Vector3 otherAxis;
  2333. RigidBody otherBody;
  2334. Vector3 otherPosition;
  2335. Quaternion otherRotation;
  2336. /* readonly */
  2337. RigidBody ownBody;
  2338. Vector3 position;
  2339. /* readonly */
  2340. int refs;
  2341. Quaternion rotation;
  2342. bool temporary;
  2343. /* readonly */
  2344. StringHash type;
  2345. /* readonly */
  2346. String typeName;
  2347. /* readonly */
  2348. int weakRefs;
  2349. Vector3 worldPosition;
  2350. };
  2351. class Constraint2D
  2352. {
  2353. // Methods:
  2354. void ApplyAttributes();
  2355. void DrawDebugGeometry(DebugRenderer, bool);
  2356. Variant GetAttribute(const String&) const;
  2357. ValueAnimation GetAttributeAnimation(const String&) const;
  2358. float GetAttributeAnimationSpeed(const String&) const;
  2359. float GetAttributeAnimationTime(const String&) const;
  2360. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2361. Variant GetAttributeDefault(const String&) const;
  2362. bool GetInterceptNetworkUpdate(const String&) const;
  2363. bool HasSubscribedToEvent(Object, const String&);
  2364. bool HasSubscribedToEvent(const String&);
  2365. bool Load(File, bool = false);
  2366. bool Load(VectorBuffer&, bool = false);
  2367. bool LoadJSON(const JSONValue&, bool = false);
  2368. bool LoadXML(const XMLElement&, bool = false);
  2369. void MarkNetworkUpdate() const;
  2370. void Remove();
  2371. void RemoveAttributeAnimation(const String&);
  2372. void RemoveInstanceDefault();
  2373. void RemoveObjectAnimation();
  2374. void ResetToDefault();
  2375. bool Save(File) const;
  2376. bool Save(VectorBuffer&) const;
  2377. bool SaveJSON(JSONValue&) const;
  2378. bool SaveXML(XMLElement&) const;
  2379. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2380. void SetAnimationTime(float);
  2381. bool SetAttribute(const String&, const Variant&);
  2382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2383. void SetAttributeAnimationSpeed(const String&, float);
  2384. void SetAttributeAnimationTime(const String&, float);
  2385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2386. void SetInterceptNetworkUpdate(const String&, bool);
  2387. // Properties:
  2388. bool animationEnabled;
  2389. /* readonly */
  2390. Array<Variant> attributeDefaults;
  2391. /* readonly */
  2392. Array<AttributeInfo> attributeInfos;
  2393. Array<Variant> attributes;
  2394. /* readonly */
  2395. String category;
  2396. bool collideConnected;
  2397. bool enabled;
  2398. /* readonly */
  2399. bool enabledEffective;
  2400. /* readonly */
  2401. uint id;
  2402. /* readonly */
  2403. Node node;
  2404. /* readonly */
  2405. uint numAttributes;
  2406. ObjectAnimation objectAnimation;
  2407. RigidBody2D otherBody;
  2408. /* readonly */
  2409. RigidBody2D ownerBody;
  2410. /* readonly */
  2411. int refs;
  2412. bool temporary;
  2413. /* readonly */
  2414. StringHash type;
  2415. /* readonly */
  2416. String typeName;
  2417. /* readonly */
  2418. int weakRefs;
  2419. };
  2420. class ConstraintDistance2D
  2421. {
  2422. // Methods:
  2423. void ApplyAttributes();
  2424. void DrawDebugGeometry(DebugRenderer, bool);
  2425. Variant GetAttribute(const String&) const;
  2426. ValueAnimation GetAttributeAnimation(const String&) const;
  2427. float GetAttributeAnimationSpeed(const String&) const;
  2428. float GetAttributeAnimationTime(const String&) const;
  2429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2430. Variant GetAttributeDefault(const String&) const;
  2431. bool GetInterceptNetworkUpdate(const String&) const;
  2432. bool HasSubscribedToEvent(Object, const String&);
  2433. bool HasSubscribedToEvent(const String&);
  2434. bool Load(File, bool = false);
  2435. bool Load(VectorBuffer&, bool = false);
  2436. bool LoadJSON(const JSONValue&, bool = false);
  2437. bool LoadXML(const XMLElement&, bool = false);
  2438. void MarkNetworkUpdate() const;
  2439. void Remove();
  2440. void RemoveAttributeAnimation(const String&);
  2441. void RemoveInstanceDefault();
  2442. void RemoveObjectAnimation();
  2443. void ResetToDefault();
  2444. bool Save(File) const;
  2445. bool Save(VectorBuffer&) const;
  2446. bool SaveJSON(JSONValue&) const;
  2447. bool SaveXML(XMLElement&) const;
  2448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2449. void SetAnimationTime(float);
  2450. bool SetAttribute(const String&, const Variant&);
  2451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2452. void SetAttributeAnimationSpeed(const String&, float);
  2453. void SetAttributeAnimationTime(const String&, float);
  2454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2455. void SetInterceptNetworkUpdate(const String&, bool);
  2456. // Properties:
  2457. bool animationEnabled;
  2458. /* readonly */
  2459. Array<Variant> attributeDefaults;
  2460. /* readonly */
  2461. Array<AttributeInfo> attributeInfos;
  2462. Array<Variant> attributes;
  2463. /* readonly */
  2464. String category;
  2465. bool collideConnected;
  2466. float dampingRatio;
  2467. bool enabled;
  2468. /* readonly */
  2469. bool enabledEffective;
  2470. float frequencyHz;
  2471. /* readonly */
  2472. uint id;
  2473. /* readonly */
  2474. Node node;
  2475. /* readonly */
  2476. uint numAttributes;
  2477. ObjectAnimation objectAnimation;
  2478. RigidBody2D otherBody;
  2479. Vector2 otherBodyAnchor;
  2480. /* readonly */
  2481. RigidBody2D ownerBody;
  2482. Vector2 ownerBodyAnchor;
  2483. /* readonly */
  2484. int refs;
  2485. bool temporary;
  2486. /* readonly */
  2487. StringHash type;
  2488. /* readonly */
  2489. String typeName;
  2490. /* readonly */
  2491. int weakRefs;
  2492. };
  2493. class ConstraintFriction2D
  2494. {
  2495. // Methods:
  2496. void ApplyAttributes();
  2497. void DrawDebugGeometry(DebugRenderer, bool);
  2498. Variant GetAttribute(const String&) const;
  2499. ValueAnimation GetAttributeAnimation(const String&) const;
  2500. float GetAttributeAnimationSpeed(const String&) const;
  2501. float GetAttributeAnimationTime(const String&) const;
  2502. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2503. Variant GetAttributeDefault(const String&) const;
  2504. bool GetInterceptNetworkUpdate(const String&) const;
  2505. bool HasSubscribedToEvent(Object, const String&);
  2506. bool HasSubscribedToEvent(const String&);
  2507. bool Load(File, bool = false);
  2508. bool Load(VectorBuffer&, bool = false);
  2509. bool LoadJSON(const JSONValue&, bool = false);
  2510. bool LoadXML(const XMLElement&, bool = false);
  2511. void MarkNetworkUpdate() const;
  2512. void Remove();
  2513. void RemoveAttributeAnimation(const String&);
  2514. void RemoveInstanceDefault();
  2515. void RemoveObjectAnimation();
  2516. void ResetToDefault();
  2517. bool Save(File) const;
  2518. bool Save(VectorBuffer&) const;
  2519. bool SaveJSON(JSONValue&) const;
  2520. bool SaveXML(XMLElement&) const;
  2521. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2522. void SetAnimationTime(float);
  2523. bool SetAttribute(const String&, const Variant&);
  2524. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2525. void SetAttributeAnimationSpeed(const String&, float);
  2526. void SetAttributeAnimationTime(const String&, float);
  2527. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2528. void SetInterceptNetworkUpdate(const String&, bool);
  2529. // Properties:
  2530. Vector2 anchor;
  2531. bool animationEnabled;
  2532. /* readonly */
  2533. Array<Variant> attributeDefaults;
  2534. /* readonly */
  2535. Array<AttributeInfo> attributeInfos;
  2536. Array<Variant> attributes;
  2537. /* readonly */
  2538. String category;
  2539. bool collideConnected;
  2540. bool enabled;
  2541. /* readonly */
  2542. bool enabledEffective;
  2543. /* readonly */
  2544. uint id;
  2545. float maxForce;
  2546. float maxTorque;
  2547. /* readonly */
  2548. Node node;
  2549. /* readonly */
  2550. uint numAttributes;
  2551. ObjectAnimation objectAnimation;
  2552. RigidBody2D otherBody;
  2553. /* readonly */
  2554. RigidBody2D ownerBody;
  2555. /* readonly */
  2556. int refs;
  2557. bool temporary;
  2558. /* readonly */
  2559. StringHash type;
  2560. /* readonly */
  2561. String typeName;
  2562. /* readonly */
  2563. int weakRefs;
  2564. };
  2565. class ConstraintGear2D
  2566. {
  2567. // Methods:
  2568. void ApplyAttributes();
  2569. void DrawDebugGeometry(DebugRenderer, bool);
  2570. Variant GetAttribute(const String&) const;
  2571. ValueAnimation GetAttributeAnimation(const String&) const;
  2572. float GetAttributeAnimationSpeed(const String&) const;
  2573. float GetAttributeAnimationTime(const String&) const;
  2574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2575. Variant GetAttributeDefault(const String&) const;
  2576. bool GetInterceptNetworkUpdate(const String&) const;
  2577. bool HasSubscribedToEvent(Object, const String&);
  2578. bool HasSubscribedToEvent(const String&);
  2579. bool Load(File, bool = false);
  2580. bool Load(VectorBuffer&, bool = false);
  2581. bool LoadJSON(const JSONValue&, bool = false);
  2582. bool LoadXML(const XMLElement&, bool = false);
  2583. void MarkNetworkUpdate() const;
  2584. void Remove();
  2585. void RemoveAttributeAnimation(const String&);
  2586. void RemoveInstanceDefault();
  2587. void RemoveObjectAnimation();
  2588. void ResetToDefault();
  2589. bool Save(File) const;
  2590. bool Save(VectorBuffer&) const;
  2591. bool SaveJSON(JSONValue&) const;
  2592. bool SaveXML(XMLElement&) const;
  2593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2594. void SetAnimationTime(float);
  2595. bool SetAttribute(const String&, const Variant&);
  2596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2597. void SetAttributeAnimationSpeed(const String&, float);
  2598. void SetAttributeAnimationTime(const String&, float);
  2599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2600. void SetInterceptNetworkUpdate(const String&, bool);
  2601. // Properties:
  2602. bool animationEnabled;
  2603. /* readonly */
  2604. Array<Variant> attributeDefaults;
  2605. /* readonly */
  2606. Array<AttributeInfo> attributeInfos;
  2607. Array<Variant> attributes;
  2608. /* readonly */
  2609. String category;
  2610. bool collideConnected;
  2611. bool enabled;
  2612. /* readonly */
  2613. bool enabledEffective;
  2614. /* readonly */
  2615. uint id;
  2616. /* readonly */
  2617. Node node;
  2618. /* readonly */
  2619. uint numAttributes;
  2620. ObjectAnimation objectAnimation;
  2621. RigidBody2D otherBody;
  2622. Constraint2D otherConstraint;
  2623. /* readonly */
  2624. RigidBody2D ownerBody;
  2625. Constraint2D ownerConstraint;
  2626. float ratio;
  2627. /* readonly */
  2628. int refs;
  2629. bool temporary;
  2630. /* readonly */
  2631. StringHash type;
  2632. /* readonly */
  2633. String typeName;
  2634. /* readonly */
  2635. int weakRefs;
  2636. };
  2637. class ConstraintMotor2D
  2638. {
  2639. // Methods:
  2640. void ApplyAttributes();
  2641. void DrawDebugGeometry(DebugRenderer, bool);
  2642. Variant GetAttribute(const String&) const;
  2643. ValueAnimation GetAttributeAnimation(const String&) const;
  2644. float GetAttributeAnimationSpeed(const String&) const;
  2645. float GetAttributeAnimationTime(const String&) const;
  2646. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2647. Variant GetAttributeDefault(const String&) const;
  2648. bool GetInterceptNetworkUpdate(const String&) const;
  2649. bool HasSubscribedToEvent(Object, const String&);
  2650. bool HasSubscribedToEvent(const String&);
  2651. bool Load(File, bool = false);
  2652. bool Load(VectorBuffer&, bool = false);
  2653. bool LoadJSON(const JSONValue&, bool = false);
  2654. bool LoadXML(const XMLElement&, bool = false);
  2655. void MarkNetworkUpdate() const;
  2656. void Remove();
  2657. void RemoveAttributeAnimation(const String&);
  2658. void RemoveInstanceDefault();
  2659. void RemoveObjectAnimation();
  2660. void ResetToDefault();
  2661. bool Save(File) const;
  2662. bool Save(VectorBuffer&) const;
  2663. bool SaveJSON(JSONValue&) const;
  2664. bool SaveXML(XMLElement&) const;
  2665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2666. void SetAnimationTime(float);
  2667. bool SetAttribute(const String&, const Variant&);
  2668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2669. void SetAttributeAnimationSpeed(const String&, float);
  2670. void SetAttributeAnimationTime(const String&, float);
  2671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2672. void SetInterceptNetworkUpdate(const String&, bool);
  2673. // Properties:
  2674. float angularOffset;
  2675. bool animationEnabled;
  2676. /* readonly */
  2677. Array<Variant> attributeDefaults;
  2678. /* readonly */
  2679. Array<AttributeInfo> attributeInfos;
  2680. Array<Variant> attributes;
  2681. /* readonly */
  2682. String category;
  2683. bool collideConnected;
  2684. float correctionFactor;
  2685. bool enabled;
  2686. /* readonly */
  2687. bool enabledEffective;
  2688. /* readonly */
  2689. uint id;
  2690. Vector2 linearOffset;
  2691. float maxForce;
  2692. float maxTorque;
  2693. /* readonly */
  2694. Node node;
  2695. /* readonly */
  2696. uint numAttributes;
  2697. ObjectAnimation objectAnimation;
  2698. RigidBody2D otherBody;
  2699. /* readonly */
  2700. RigidBody2D ownerBody;
  2701. /* readonly */
  2702. int refs;
  2703. bool temporary;
  2704. /* readonly */
  2705. StringHash type;
  2706. /* readonly */
  2707. String typeName;
  2708. /* readonly */
  2709. int weakRefs;
  2710. };
  2711. class ConstraintMouse2D
  2712. {
  2713. // Methods:
  2714. void ApplyAttributes();
  2715. void DrawDebugGeometry(DebugRenderer, bool);
  2716. Variant GetAttribute(const String&) const;
  2717. ValueAnimation GetAttributeAnimation(const String&) const;
  2718. float GetAttributeAnimationSpeed(const String&) const;
  2719. float GetAttributeAnimationTime(const String&) const;
  2720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2721. Variant GetAttributeDefault(const String&) const;
  2722. bool GetInterceptNetworkUpdate(const String&) const;
  2723. bool HasSubscribedToEvent(Object, const String&);
  2724. bool HasSubscribedToEvent(const String&);
  2725. bool Load(File, bool = false);
  2726. bool Load(VectorBuffer&, bool = false);
  2727. bool LoadJSON(const JSONValue&, bool = false);
  2728. bool LoadXML(const XMLElement&, bool = false);
  2729. void MarkNetworkUpdate() const;
  2730. void Remove();
  2731. void RemoveAttributeAnimation(const String&);
  2732. void RemoveInstanceDefault();
  2733. void RemoveObjectAnimation();
  2734. void ResetToDefault();
  2735. bool Save(File) const;
  2736. bool Save(VectorBuffer&) const;
  2737. bool SaveJSON(JSONValue&) const;
  2738. bool SaveXML(XMLElement&) const;
  2739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2740. void SetAnimationTime(float);
  2741. bool SetAttribute(const String&, const Variant&);
  2742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2743. void SetAttributeAnimationSpeed(const String&, float);
  2744. void SetAttributeAnimationTime(const String&, float);
  2745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2746. void SetInterceptNetworkUpdate(const String&, bool);
  2747. // Properties:
  2748. bool animationEnabled;
  2749. /* readonly */
  2750. Array<Variant> attributeDefaults;
  2751. /* readonly */
  2752. Array<AttributeInfo> attributeInfos;
  2753. Array<Variant> attributes;
  2754. /* readonly */
  2755. String category;
  2756. bool collideConnected;
  2757. float dampingRatio;
  2758. bool enabled;
  2759. /* readonly */
  2760. bool enabledEffective;
  2761. float frequencyHz;
  2762. /* readonly */
  2763. uint id;
  2764. float maxForce;
  2765. /* readonly */
  2766. Node node;
  2767. /* readonly */
  2768. uint numAttributes;
  2769. ObjectAnimation objectAnimation;
  2770. RigidBody2D otherBody;
  2771. /* readonly */
  2772. RigidBody2D ownerBody;
  2773. /* readonly */
  2774. int refs;
  2775. Vector2 target;
  2776. bool temporary;
  2777. /* readonly */
  2778. StringHash type;
  2779. /* readonly */
  2780. String typeName;
  2781. /* readonly */
  2782. int weakRefs;
  2783. };
  2784. class ConstraintPrismatic2D
  2785. {
  2786. // Methods:
  2787. void ApplyAttributes();
  2788. void DrawDebugGeometry(DebugRenderer, bool);
  2789. Variant GetAttribute(const String&) const;
  2790. ValueAnimation GetAttributeAnimation(const String&) const;
  2791. float GetAttributeAnimationSpeed(const String&) const;
  2792. float GetAttributeAnimationTime(const String&) const;
  2793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2794. Variant GetAttributeDefault(const String&) const;
  2795. bool GetInterceptNetworkUpdate(const String&) const;
  2796. bool HasSubscribedToEvent(Object, const String&);
  2797. bool HasSubscribedToEvent(const String&);
  2798. bool Load(File, bool = false);
  2799. bool Load(VectorBuffer&, bool = false);
  2800. bool LoadJSON(const JSONValue&, bool = false);
  2801. bool LoadXML(const XMLElement&, bool = false);
  2802. void MarkNetworkUpdate() const;
  2803. void Remove();
  2804. void RemoveAttributeAnimation(const String&);
  2805. void RemoveInstanceDefault();
  2806. void RemoveObjectAnimation();
  2807. void ResetToDefault();
  2808. bool Save(File) const;
  2809. bool Save(VectorBuffer&) const;
  2810. bool SaveJSON(JSONValue&) const;
  2811. bool SaveXML(XMLElement&) const;
  2812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2813. void SetAnimationTime(float);
  2814. bool SetAttribute(const String&, const Variant&);
  2815. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2816. void SetAttributeAnimationSpeed(const String&, float);
  2817. void SetAttributeAnimationTime(const String&, float);
  2818. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2819. void SetInterceptNetworkUpdate(const String&, bool);
  2820. // Properties:
  2821. Vector2 anchor;
  2822. bool animationEnabled;
  2823. /* readonly */
  2824. Array<Variant> attributeDefaults;
  2825. /* readonly */
  2826. Array<AttributeInfo> attributeInfos;
  2827. Array<Variant> attributes;
  2828. Vector2 axis;
  2829. /* readonly */
  2830. String category;
  2831. bool collideConnected;
  2832. bool enableLimit;
  2833. bool enableMotor;
  2834. bool enabled;
  2835. /* readonly */
  2836. bool enabledEffective;
  2837. /* readonly */
  2838. uint id;
  2839. float lowerTranslation;
  2840. float maxMotorForce;
  2841. float motorSpeed;
  2842. /* readonly */
  2843. Node node;
  2844. /* readonly */
  2845. uint numAttributes;
  2846. ObjectAnimation objectAnimation;
  2847. RigidBody2D otherBody;
  2848. /* readonly */
  2849. RigidBody2D ownerBody;
  2850. /* readonly */
  2851. int refs;
  2852. bool temporary;
  2853. /* readonly */
  2854. StringHash type;
  2855. /* readonly */
  2856. String typeName;
  2857. float upperTranslation;
  2858. /* readonly */
  2859. int weakRefs;
  2860. };
  2861. class ConstraintPulley2D
  2862. {
  2863. // Methods:
  2864. void ApplyAttributes();
  2865. void DrawDebugGeometry(DebugRenderer, bool);
  2866. Variant GetAttribute(const String&) const;
  2867. ValueAnimation GetAttributeAnimation(const String&) const;
  2868. float GetAttributeAnimationSpeed(const String&) const;
  2869. float GetAttributeAnimationTime(const String&) const;
  2870. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2871. Variant GetAttributeDefault(const String&) const;
  2872. bool GetInterceptNetworkUpdate(const String&) const;
  2873. bool HasSubscribedToEvent(Object, const String&);
  2874. bool HasSubscribedToEvent(const String&);
  2875. bool Load(File, bool = false);
  2876. bool Load(VectorBuffer&, bool = false);
  2877. bool LoadJSON(const JSONValue&, bool = false);
  2878. bool LoadXML(const XMLElement&, bool = false);
  2879. void MarkNetworkUpdate() const;
  2880. void Remove();
  2881. void RemoveAttributeAnimation(const String&);
  2882. void RemoveInstanceDefault();
  2883. void RemoveObjectAnimation();
  2884. void ResetToDefault();
  2885. bool Save(File) const;
  2886. bool Save(VectorBuffer&) const;
  2887. bool SaveJSON(JSONValue&) const;
  2888. bool SaveXML(XMLElement&) const;
  2889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2890. void SetAnimationTime(float);
  2891. bool SetAttribute(const String&, const Variant&);
  2892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2893. void SetAttributeAnimationSpeed(const String&, float);
  2894. void SetAttributeAnimationTime(const String&, float);
  2895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2896. void SetInterceptNetworkUpdate(const String&, bool);
  2897. // Properties:
  2898. bool animationEnabled;
  2899. /* readonly */
  2900. Array<Variant> attributeDefaults;
  2901. /* readonly */
  2902. Array<AttributeInfo> attributeInfos;
  2903. Array<Variant> attributes;
  2904. /* readonly */
  2905. String category;
  2906. bool collideConnected;
  2907. bool enabled;
  2908. /* readonly */
  2909. bool enabledEffective;
  2910. /* readonly */
  2911. uint id;
  2912. /* readonly */
  2913. Node node;
  2914. /* readonly */
  2915. uint numAttributes;
  2916. ObjectAnimation objectAnimation;
  2917. RigidBody2D otherBody;
  2918. Vector2 otherBodyAnchor;
  2919. Vector2 otherBodyGroundAnchor;
  2920. /* readonly */
  2921. RigidBody2D ownerBody;
  2922. Vector2 ownerBodyAnchor;
  2923. Vector2 ownerBodyGroundAnchor;
  2924. float ratio;
  2925. /* readonly */
  2926. int refs;
  2927. bool temporary;
  2928. /* readonly */
  2929. StringHash type;
  2930. /* readonly */
  2931. String typeName;
  2932. /* readonly */
  2933. int weakRefs;
  2934. };
  2935. class ConstraintRevolute2D
  2936. {
  2937. // Methods:
  2938. void ApplyAttributes();
  2939. void DrawDebugGeometry(DebugRenderer, bool);
  2940. Variant GetAttribute(const String&) const;
  2941. ValueAnimation GetAttributeAnimation(const String&) const;
  2942. float GetAttributeAnimationSpeed(const String&) const;
  2943. float GetAttributeAnimationTime(const String&) const;
  2944. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2945. Variant GetAttributeDefault(const String&) const;
  2946. bool GetInterceptNetworkUpdate(const String&) const;
  2947. bool HasSubscribedToEvent(Object, const String&);
  2948. bool HasSubscribedToEvent(const String&);
  2949. bool Load(File, bool = false);
  2950. bool Load(VectorBuffer&, bool = false);
  2951. bool LoadJSON(const JSONValue&, bool = false);
  2952. bool LoadXML(const XMLElement&, bool = false);
  2953. void MarkNetworkUpdate() const;
  2954. void Remove();
  2955. void RemoveAttributeAnimation(const String&);
  2956. void RemoveInstanceDefault();
  2957. void RemoveObjectAnimation();
  2958. void ResetToDefault();
  2959. bool Save(File) const;
  2960. bool Save(VectorBuffer&) const;
  2961. bool SaveJSON(JSONValue&) const;
  2962. bool SaveXML(XMLElement&) const;
  2963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2964. void SetAnimationTime(float);
  2965. bool SetAttribute(const String&, const Variant&);
  2966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2967. void SetAttributeAnimationSpeed(const String&, float);
  2968. void SetAttributeAnimationTime(const String&, float);
  2969. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2970. void SetInterceptNetworkUpdate(const String&, bool);
  2971. // Properties:
  2972. Vector2 anchor;
  2973. bool animationEnabled;
  2974. /* readonly */
  2975. Array<Variant> attributeDefaults;
  2976. /* readonly */
  2977. Array<AttributeInfo> attributeInfos;
  2978. Array<Variant> attributes;
  2979. /* readonly */
  2980. String category;
  2981. bool collideConnected;
  2982. bool enableLimit;
  2983. bool enableMotor;
  2984. bool enabled;
  2985. /* readonly */
  2986. bool enabledEffective;
  2987. /* readonly */
  2988. uint id;
  2989. float lowerAngle;
  2990. float maxMotorTorque;
  2991. float motorSpeed;
  2992. /* readonly */
  2993. Node node;
  2994. /* readonly */
  2995. uint numAttributes;
  2996. ObjectAnimation objectAnimation;
  2997. RigidBody2D otherBody;
  2998. /* readonly */
  2999. RigidBody2D ownerBody;
  3000. /* readonly */
  3001. int refs;
  3002. bool temporary;
  3003. /* readonly */
  3004. StringHash type;
  3005. /* readonly */
  3006. String typeName;
  3007. float upperAngle;
  3008. /* readonly */
  3009. int weakRefs;
  3010. };
  3011. class ConstraintRope2D
  3012. {
  3013. // Methods:
  3014. void ApplyAttributes();
  3015. void DrawDebugGeometry(DebugRenderer, bool);
  3016. Variant GetAttribute(const String&) const;
  3017. ValueAnimation GetAttributeAnimation(const String&) const;
  3018. float GetAttributeAnimationSpeed(const String&) const;
  3019. float GetAttributeAnimationTime(const String&) const;
  3020. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3021. Variant GetAttributeDefault(const String&) const;
  3022. bool GetInterceptNetworkUpdate(const String&) const;
  3023. bool HasSubscribedToEvent(Object, const String&);
  3024. bool HasSubscribedToEvent(const String&);
  3025. bool Load(File, bool = false);
  3026. bool Load(VectorBuffer&, bool = false);
  3027. bool LoadJSON(const JSONValue&, bool = false);
  3028. bool LoadXML(const XMLElement&, bool = false);
  3029. void MarkNetworkUpdate() const;
  3030. void Remove();
  3031. void RemoveAttributeAnimation(const String&);
  3032. void RemoveInstanceDefault();
  3033. void RemoveObjectAnimation();
  3034. void ResetToDefault();
  3035. bool Save(File) const;
  3036. bool Save(VectorBuffer&) const;
  3037. bool SaveJSON(JSONValue&) const;
  3038. bool SaveXML(XMLElement&) const;
  3039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3040. void SetAnimationTime(float);
  3041. bool SetAttribute(const String&, const Variant&);
  3042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3043. void SetAttributeAnimationSpeed(const String&, float);
  3044. void SetAttributeAnimationTime(const String&, float);
  3045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3046. void SetInterceptNetworkUpdate(const String&, bool);
  3047. // Properties:
  3048. bool animationEnabled;
  3049. /* readonly */
  3050. Array<Variant> attributeDefaults;
  3051. /* readonly */
  3052. Array<AttributeInfo> attributeInfos;
  3053. Array<Variant> attributes;
  3054. /* readonly */
  3055. String category;
  3056. bool collideConnected;
  3057. bool enabled;
  3058. /* readonly */
  3059. bool enabledEffective;
  3060. /* readonly */
  3061. uint id;
  3062. float maxLength;
  3063. /* readonly */
  3064. Node node;
  3065. /* readonly */
  3066. uint numAttributes;
  3067. ObjectAnimation objectAnimation;
  3068. RigidBody2D otherBody;
  3069. Vector2 otherBodyAnchor;
  3070. /* readonly */
  3071. RigidBody2D ownerBody;
  3072. Vector2 ownerBodyAnchor;
  3073. /* readonly */
  3074. int refs;
  3075. bool temporary;
  3076. /* readonly */
  3077. StringHash type;
  3078. /* readonly */
  3079. String typeName;
  3080. /* readonly */
  3081. int weakRefs;
  3082. };
  3083. class ConstraintWeld2D
  3084. {
  3085. // Methods:
  3086. void ApplyAttributes();
  3087. void DrawDebugGeometry(DebugRenderer, bool);
  3088. Variant GetAttribute(const String&) const;
  3089. ValueAnimation GetAttributeAnimation(const String&) const;
  3090. float GetAttributeAnimationSpeed(const String&) const;
  3091. float GetAttributeAnimationTime(const String&) const;
  3092. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3093. Variant GetAttributeDefault(const String&) const;
  3094. bool GetInterceptNetworkUpdate(const String&) const;
  3095. bool HasSubscribedToEvent(Object, const String&);
  3096. bool HasSubscribedToEvent(const String&);
  3097. bool Load(File, bool = false);
  3098. bool Load(VectorBuffer&, bool = false);
  3099. bool LoadJSON(const JSONValue&, bool = false);
  3100. bool LoadXML(const XMLElement&, bool = false);
  3101. void MarkNetworkUpdate() const;
  3102. void Remove();
  3103. void RemoveAttributeAnimation(const String&);
  3104. void RemoveInstanceDefault();
  3105. void RemoveObjectAnimation();
  3106. void ResetToDefault();
  3107. bool Save(File) const;
  3108. bool Save(VectorBuffer&) const;
  3109. bool SaveJSON(JSONValue&) const;
  3110. bool SaveXML(XMLElement&) const;
  3111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3112. void SetAnimationTime(float);
  3113. bool SetAttribute(const String&, const Variant&);
  3114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3115. void SetAttributeAnimationSpeed(const String&, float);
  3116. void SetAttributeAnimationTime(const String&, float);
  3117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3118. void SetInterceptNetworkUpdate(const String&, bool);
  3119. // Properties:
  3120. Vector2 anchor;
  3121. bool animationEnabled;
  3122. /* readonly */
  3123. Array<Variant> attributeDefaults;
  3124. /* readonly */
  3125. Array<AttributeInfo> attributeInfos;
  3126. Array<Variant> attributes;
  3127. /* readonly */
  3128. String category;
  3129. bool collideConnected;
  3130. float dampingRatio;
  3131. bool enabled;
  3132. /* readonly */
  3133. bool enabledEffective;
  3134. float frequencyHz;
  3135. /* readonly */
  3136. uint id;
  3137. /* readonly */
  3138. Node node;
  3139. /* readonly */
  3140. uint numAttributes;
  3141. ObjectAnimation objectAnimation;
  3142. RigidBody2D otherBody;
  3143. /* readonly */
  3144. RigidBody2D ownerBody;
  3145. /* readonly */
  3146. int refs;
  3147. bool temporary;
  3148. /* readonly */
  3149. StringHash type;
  3150. /* readonly */
  3151. String typeName;
  3152. /* readonly */
  3153. int weakRefs;
  3154. };
  3155. class ConstraintWheel2D
  3156. {
  3157. // Methods:
  3158. void ApplyAttributes();
  3159. void DrawDebugGeometry(DebugRenderer, bool);
  3160. Variant GetAttribute(const String&) const;
  3161. ValueAnimation GetAttributeAnimation(const String&) const;
  3162. float GetAttributeAnimationSpeed(const String&) const;
  3163. float GetAttributeAnimationTime(const String&) const;
  3164. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3165. Variant GetAttributeDefault(const String&) const;
  3166. bool GetInterceptNetworkUpdate(const String&) const;
  3167. bool HasSubscribedToEvent(Object, const String&);
  3168. bool HasSubscribedToEvent(const String&);
  3169. bool Load(File, bool = false);
  3170. bool Load(VectorBuffer&, bool = false);
  3171. bool LoadJSON(const JSONValue&, bool = false);
  3172. bool LoadXML(const XMLElement&, bool = false);
  3173. void MarkNetworkUpdate() const;
  3174. void Remove();
  3175. void RemoveAttributeAnimation(const String&);
  3176. void RemoveInstanceDefault();
  3177. void RemoveObjectAnimation();
  3178. void ResetToDefault();
  3179. bool Save(File) const;
  3180. bool Save(VectorBuffer&) const;
  3181. bool SaveJSON(JSONValue&) const;
  3182. bool SaveXML(XMLElement&) const;
  3183. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3184. void SetAnimationTime(float);
  3185. bool SetAttribute(const String&, const Variant&);
  3186. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3187. void SetAttributeAnimationSpeed(const String&, float);
  3188. void SetAttributeAnimationTime(const String&, float);
  3189. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3190. void SetInterceptNetworkUpdate(const String&, bool);
  3191. // Properties:
  3192. Vector2 anchor;
  3193. bool animationEnabled;
  3194. /* readonly */
  3195. Array<Variant> attributeDefaults;
  3196. /* readonly */
  3197. Array<AttributeInfo> attributeInfos;
  3198. Array<Variant> attributes;
  3199. Vector2 axis;
  3200. /* readonly */
  3201. String category;
  3202. bool collideConnected;
  3203. float dampingRatio;
  3204. bool enableMotor;
  3205. bool enabled;
  3206. /* readonly */
  3207. bool enabledEffective;
  3208. float frequencyHz;
  3209. /* readonly */
  3210. uint id;
  3211. float maxMotorTorque;
  3212. float motorSpeed;
  3213. /* readonly */
  3214. Node node;
  3215. /* readonly */
  3216. uint numAttributes;
  3217. ObjectAnimation objectAnimation;
  3218. RigidBody2D otherBody;
  3219. /* readonly */
  3220. RigidBody2D ownerBody;
  3221. /* readonly */
  3222. int refs;
  3223. bool temporary;
  3224. /* readonly */
  3225. StringHash type;
  3226. /* readonly */
  3227. String typeName;
  3228. /* readonly */
  3229. int weakRefs;
  3230. };
  3231. class Controls
  3232. {
  3233. // Methods:
  3234. bool IsDown(uint) const;
  3235. bool IsPressed(uint, const Controls&) const;
  3236. void Reset();
  3237. void Set(uint, bool);
  3238. // Properties:
  3239. uint buttons;
  3240. VariantMap extraData;
  3241. float pitch;
  3242. float yaw;
  3243. };
  3244. class CrowdAgent
  3245. {
  3246. // Methods:
  3247. void ApplyAttributes();
  3248. void DrawDebugGeometry(DebugRenderer, bool);
  3249. void DrawDebugGeometry(bool);
  3250. Variant GetAttribute(const String&) const;
  3251. ValueAnimation GetAttributeAnimation(const String&) const;
  3252. float GetAttributeAnimationSpeed(const String&) const;
  3253. float GetAttributeAnimationTime(const String&) const;
  3254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3255. Variant GetAttributeDefault(const String&) const;
  3256. bool GetInterceptNetworkUpdate(const String&) const;
  3257. bool HasSubscribedToEvent(Object, const String&);
  3258. bool HasSubscribedToEvent(const String&);
  3259. bool Load(File, bool = false);
  3260. bool Load(VectorBuffer&, bool = false);
  3261. bool LoadJSON(const JSONValue&, bool = false);
  3262. bool LoadXML(const XMLElement&, bool = false);
  3263. void MarkNetworkUpdate() const;
  3264. void Remove();
  3265. void RemoveAttributeAnimation(const String&);
  3266. void RemoveInstanceDefault();
  3267. void RemoveObjectAnimation();
  3268. void ResetTarget();
  3269. void ResetToDefault();
  3270. bool Save(File) const;
  3271. bool Save(VectorBuffer&) const;
  3272. bool SaveJSON(JSONValue&) const;
  3273. bool SaveXML(XMLElement&) const;
  3274. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3275. void SetAnimationTime(float);
  3276. bool SetAttribute(const String&, const Variant&);
  3277. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3278. void SetAttributeAnimationSpeed(const String&, float);
  3279. void SetAttributeAnimationTime(const String&, float);
  3280. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3281. void SetInterceptNetworkUpdate(const String&, bool);
  3282. // Properties:
  3283. /* readonly */
  3284. Vector3 actualVelocity;
  3285. /* readonly */
  3286. CrowdAgentState agentState;
  3287. bool animationEnabled;
  3288. /* readonly */
  3289. bool arrived;
  3290. /* readonly */
  3291. Array<Variant> attributeDefaults;
  3292. /* readonly */
  3293. Array<AttributeInfo> attributeInfos;
  3294. Array<Variant> attributes;
  3295. /* readonly */
  3296. String category;
  3297. /* readonly */
  3298. Vector3 desiredVelocity;
  3299. bool enabled;
  3300. /* readonly */
  3301. bool enabledEffective;
  3302. float height;
  3303. /* readonly */
  3304. uint id;
  3305. /* readonly */
  3306. bool inCrowd;
  3307. float maxAccel;
  3308. float maxSpeed;
  3309. NavigationPushiness navigationPushiness;
  3310. NavigationQuality navigationQuality;
  3311. /* readonly */
  3312. Node node;
  3313. /* readonly */
  3314. uint numAttributes;
  3315. ObjectAnimation objectAnimation;
  3316. uint obstacleAvoidanceType;
  3317. /* readonly */
  3318. Vector3 position;
  3319. uint queryFilterType;
  3320. float radius;
  3321. /* readonly */
  3322. int refs;
  3323. /* readonly */
  3324. bool requestedTarget;
  3325. /* readonly */
  3326. CrowdAgentRequestedTarget requestedTargetType;
  3327. Vector3 targetPosition;
  3328. /* readonly */
  3329. CrowdAgentTargetState targetState;
  3330. Vector3 targetVelocity;
  3331. bool temporary;
  3332. /* readonly */
  3333. StringHash type;
  3334. /* readonly */
  3335. String typeName;
  3336. bool updateNodePosition;
  3337. /* readonly */
  3338. int weakRefs;
  3339. };
  3340. class CrowdManager
  3341. {
  3342. // Methods:
  3343. void ApplyAttributes();
  3344. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3345. void DrawDebugGeometry(DebugRenderer, bool);
  3346. void DrawDebugGeometry(bool);
  3347. Vector3 FindNearestPoint(const Vector3&, int);
  3348. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3349. float GetAreaCost(uint, uint);
  3350. Variant GetAttribute(const String&) const;
  3351. ValueAnimation GetAttributeAnimation(const String&) const;
  3352. float GetAttributeAnimationSpeed(const String&) const;
  3353. float GetAttributeAnimationTime(const String&) const;
  3354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3355. Variant GetAttributeDefault(const String&) const;
  3356. float GetDistanceToWall(const Vector3&, float, int);
  3357. uint16 GetExcludeFlags(uint);
  3358. uint16 GetIncludeFlags(uint);
  3359. bool GetInterceptNetworkUpdate(const String&) const;
  3360. Vector3 GetRandomPoint(int);
  3361. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3362. bool HasSubscribedToEvent(Object, const String&);
  3363. bool HasSubscribedToEvent(const String&);
  3364. bool Load(File, bool = false);
  3365. bool Load(VectorBuffer&, bool = false);
  3366. bool LoadJSON(const JSONValue&, bool = false);
  3367. bool LoadXML(const XMLElement&, bool = false);
  3368. void MarkNetworkUpdate() const;
  3369. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3370. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3371. void Remove();
  3372. void RemoveAttributeAnimation(const String&);
  3373. void RemoveInstanceDefault();
  3374. void RemoveObjectAnimation();
  3375. void ResetCrowdTarget(Node = null);
  3376. void ResetToDefault();
  3377. bool Save(File) const;
  3378. bool Save(VectorBuffer&) const;
  3379. bool SaveJSON(JSONValue&) const;
  3380. bool SaveXML(XMLElement&) const;
  3381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3382. void SetAnimationTime(float);
  3383. void SetAreaCost(uint, uint, float);
  3384. bool SetAttribute(const String&, const Variant&);
  3385. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3386. void SetAttributeAnimationSpeed(const String&, float);
  3387. void SetAttributeAnimationTime(const String&, float);
  3388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3389. void SetCrowdTarget(const Vector3&, Node = null);
  3390. void SetCrowdVelocity(const Vector3&, Node = null);
  3391. void SetExcludeFlags(uint, uint16);
  3392. void SetIncludeFlags(uint, uint16);
  3393. void SetInterceptNetworkUpdate(const String&, bool);
  3394. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3395. // Properties:
  3396. bool animationEnabled;
  3397. /* readonly */
  3398. Array<Variant> attributeDefaults;
  3399. /* readonly */
  3400. Array<AttributeInfo> attributeInfos;
  3401. Array<Variant> attributes;
  3402. /* readonly */
  3403. String category;
  3404. bool enabled;
  3405. /* readonly */
  3406. bool enabledEffective;
  3407. /* readonly */
  3408. uint id;
  3409. float maxAgentRadius;
  3410. int maxAgents;
  3411. NavigationMesh navMesh;
  3412. /* readonly */
  3413. Node node;
  3414. /* readonly */
  3415. Array<uint> numAreas;
  3416. /* readonly */
  3417. uint numAttributes;
  3418. /* readonly */
  3419. uint numObstacleAvoidanceTypes;
  3420. /* readonly */
  3421. uint numQueryFilterTypes;
  3422. ObjectAnimation objectAnimation;
  3423. /* readonly */
  3424. int refs;
  3425. bool temporary;
  3426. /* readonly */
  3427. StringHash type;
  3428. /* readonly */
  3429. String typeName;
  3430. /* readonly */
  3431. int weakRefs;
  3432. };
  3433. class CrowdObstacleAvoidanceParams
  3434. {
  3435. // Properties:
  3436. uint8 adaptiveDepth;
  3437. uint8 adaptiveDivs;
  3438. uint8 adaptiveRings;
  3439. uint8 gridSize;
  3440. float horizTime;
  3441. float velBias;
  3442. float weightCurVel;
  3443. float weightDesVel;
  3444. float weightSide;
  3445. float weightToi;
  3446. };
  3447. class Cursor
  3448. {
  3449. // Methods:
  3450. void AddChild(UIElement);
  3451. void AddTag(const String&);
  3452. void AddTags(const String&, int8 = ';');
  3453. void ApplyAttributes();
  3454. void BringToFront();
  3455. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3456. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3457. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3458. void DisableLayoutUpdate();
  3459. IntVector2 ElementToScreen(const IntVector2&);
  3460. void EnableLayoutUpdate();
  3461. uint FindChild(UIElement) const;
  3462. Variant GetAttribute(const String&) const;
  3463. ValueAnimation GetAttributeAnimation(const String&) const;
  3464. float GetAttributeAnimationSpeed(const String&) const;
  3465. float GetAttributeAnimationTime(const String&) const;
  3466. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3467. Variant GetAttributeDefault(const String&) const;
  3468. UIElement GetChild(const String&, bool = false) const;
  3469. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3470. Array<UIElement> GetChildren(bool = false) const;
  3471. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3472. UIElement GetElementEventSender() const;
  3473. bool GetInterceptNetworkUpdate(const String&) const;
  3474. uint GetNumChildren(bool) const;
  3475. bool HasSubscribedToEvent(Object, const String&);
  3476. bool HasSubscribedToEvent(const String&);
  3477. bool HasTag(const String&) const;
  3478. void InsertChild(uint, UIElement);
  3479. bool IsInside(IntVector2, bool);
  3480. bool IsInsideCombined(IntVector2, bool);
  3481. bool Load(File, bool = false);
  3482. bool Load(VectorBuffer&, bool = false);
  3483. bool LoadChildXML(XMLFile, XMLFile = null);
  3484. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3485. bool LoadJSON(const JSONValue&, bool = false);
  3486. bool LoadXML(File);
  3487. bool LoadXML(VectorBuffer&);
  3488. bool LoadXML(XMLFile, XMLFile);
  3489. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3490. bool LoadXML(const XMLElement&, bool = false);
  3491. void MarkNetworkUpdate() const;
  3492. void Remove();
  3493. void RemoveAllChildren();
  3494. void RemoveAllTags();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveChild(UIElement, uint = 0);
  3497. void RemoveChild(uint);
  3498. void RemoveInstanceDefault();
  3499. void RemoveObjectAnimation();
  3500. bool RemoveTag(const String&);
  3501. void ResetDeepEnabled();
  3502. void ResetToDefault();
  3503. bool Save(File) const;
  3504. bool Save(VectorBuffer&) const;
  3505. bool SaveJSON(JSONValue&) const;
  3506. bool SaveXML(File, const String& = "\t");
  3507. bool SaveXML(VectorBuffer&, const String& = "\t");
  3508. bool SaveXML(XMLElement&) const;
  3509. IntVector2 ScreenToElement(const IntVector2&);
  3510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3511. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3512. void SetAnimationTime(float);
  3513. bool SetAttribute(const String&, const Variant&);
  3514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3515. void SetAttributeAnimationSpeed(const String&, float);
  3516. void SetAttributeAnimationTime(const String&, float);
  3517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3518. void SetDeepEnabled(bool);
  3519. void SetEnabledRecursive(bool);
  3520. void SetFixedHeight(int);
  3521. void SetFixedSize(int, int);
  3522. void SetFixedWidth(int);
  3523. void SetFullImageRect();
  3524. void SetHoverOffset(int, int);
  3525. void SetInterceptNetworkUpdate(const String&, bool);
  3526. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3527. void SetMaxSize(int, int);
  3528. void SetMinSize(int, int);
  3529. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3530. void SetPosition(int, int);
  3531. void SetShape(CursorShape);
  3532. void SetShape(const String&);
  3533. void SetSize(int, int);
  3534. bool SetStyle(const String&, XMLFile = null);
  3535. bool SetStyle(const XMLElement&);
  3536. bool SetStyleAuto(XMLFile = null);
  3537. void UpdateLayout();
  3538. const Variant& GetVar(const StringHash&);
  3539. // Properties:
  3540. bool animationEnabled;
  3541. /* readonly */
  3542. Array<Variant> attributeDefaults;
  3543. /* readonly */
  3544. Array<AttributeInfo> attributeInfos;
  3545. Array<Variant> attributes;
  3546. BlendMode blendMode;
  3547. IntRect border;
  3548. bool bringToBack;
  3549. bool bringToFront;
  3550. /* readonly */
  3551. String category;
  3552. /* readonly */
  3553. IntVector2 childOffset;
  3554. /* readonly */
  3555. Array<UIElement> children;
  3556. IntRect clipBorder;
  3557. bool clipChildren;
  3558. /* writeonly */
  3559. Color color;
  3560. /* readonly */
  3561. bool colorGradient;
  3562. Array<Color> colors;
  3563. /* readonly */
  3564. IntRect combinedScreenRect;
  3565. XMLFile defaultStyle;
  3566. /* readonly */
  3567. float derivedOpacity;
  3568. /* readonly */
  3569. uint dragButtonCombo;
  3570. /* readonly */
  3571. int dragButtonCount;
  3572. uint dragDropMode;
  3573. bool editable;
  3574. bool elementEventSender;
  3575. bool enabled;
  3576. /* readonly */
  3577. bool enabledSelf;
  3578. /* readonly */
  3579. bool fixedHeight;
  3580. /* readonly */
  3581. bool fixedSize;
  3582. /* readonly */
  3583. bool fixedWidth;
  3584. bool focus;
  3585. FocusMode focusMode;
  3586. int height;
  3587. HorizontalAlignment horizontalAlignment;
  3588. IntVector2 hoverOffset;
  3589. /* readonly */
  3590. bool hovering;
  3591. IntRect imageBorder;
  3592. IntRect imageRect;
  3593. int indent;
  3594. int indentSpacing;
  3595. /* readonly */
  3596. int indentWidth;
  3597. bool internal;
  3598. IntRect layoutBorder;
  3599. Vector2 layoutFlexScale;
  3600. LayoutMode layoutMode;
  3601. int layoutSpacing;
  3602. int maxHeight;
  3603. IntVector2 maxSize;
  3604. int maxWidth;
  3605. int minHeight;
  3606. IntVector2 minSize;
  3607. int minWidth;
  3608. String name;
  3609. /* readonly */
  3610. uint numAllChildren;
  3611. /* readonly */
  3612. uint numAttributes;
  3613. /* readonly */
  3614. uint numChildren;
  3615. ObjectAnimation objectAnimation;
  3616. float opacity;
  3617. UIElement parent;
  3618. IntVector2 position;
  3619. int priority;
  3620. /* readonly */
  3621. int refs;
  3622. /* readonly */
  3623. UIElement root;
  3624. /* readonly */
  3625. IntVector2 screenPosition;
  3626. bool selected;
  3627. String shape;
  3628. IntVector2 size;
  3629. bool sortChildren;
  3630. String style;
  3631. /* readonly */
  3632. Array<String> tags;
  3633. bool temporary;
  3634. Texture texture;
  3635. bool tiled;
  3636. TraversalMode traversalMode;
  3637. /* readonly */
  3638. StringHash type;
  3639. /* readonly */
  3640. String typeName;
  3641. bool useDerivedOpacity;
  3642. bool useSystemShapes;
  3643. /* readonly */
  3644. VariantMap vars;
  3645. VerticalAlignment verticalAlignment;
  3646. bool visible;
  3647. /* readonly */
  3648. bool visibleEffective;
  3649. /* readonly */
  3650. int weakRefs;
  3651. int width;
  3652. };
  3653. class CustomGeometry
  3654. {
  3655. // Methods:
  3656. void ApplyAttributes();
  3657. void BeginGeometry(uint, PrimitiveType);
  3658. void Clear();
  3659. void Commit();
  3660. void DefineColor(const Color&);
  3661. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3662. void DefineNormal(const Vector3&);
  3663. void DefineTangent(const Vector4&);
  3664. void DefineTexCoord(const Vector2&);
  3665. void DefineVertex(const Vector3&);
  3666. void DrawDebugGeometry(DebugRenderer, bool);
  3667. Variant GetAttribute(const String&) const;
  3668. ValueAnimation GetAttributeAnimation(const String&) const;
  3669. float GetAttributeAnimationSpeed(const String&) const;
  3670. float GetAttributeAnimationTime(const String&) const;
  3671. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3672. Variant GetAttributeDefault(const String&) const;
  3673. bool GetInterceptNetworkUpdate(const String&) const;
  3674. CustomGeometryVertex GetVertex(uint, uint);
  3675. bool HasSubscribedToEvent(Object, const String&);
  3676. bool HasSubscribedToEvent(const String&);
  3677. bool IsInView(Camera) const;
  3678. bool Load(File, bool = false);
  3679. bool Load(VectorBuffer&, bool = false);
  3680. bool LoadJSON(const JSONValue&, bool = false);
  3681. bool LoadXML(const XMLElement&, bool = false);
  3682. void MarkNetworkUpdate() const;
  3683. void Remove();
  3684. void RemoveAttributeAnimation(const String&);
  3685. void RemoveInstanceDefault();
  3686. void RemoveObjectAnimation();
  3687. void ResetToDefault();
  3688. bool Save(File) const;
  3689. bool Save(VectorBuffer&) const;
  3690. bool SaveJSON(JSONValue&) const;
  3691. bool SaveXML(XMLElement&) const;
  3692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3693. void SetAnimationTime(float);
  3694. bool SetAttribute(const String&, const Variant&);
  3695. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3696. void SetAttributeAnimationSpeed(const String&, float);
  3697. void SetAttributeAnimationTime(const String&, float);
  3698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3699. void SetInterceptNetworkUpdate(const String&, bool);
  3700. // Properties:
  3701. bool animationEnabled;
  3702. /* readonly */
  3703. Array<Variant> attributeDefaults;
  3704. /* readonly */
  3705. Array<AttributeInfo> attributeInfos;
  3706. Array<Variant> attributes;
  3707. /* readonly */
  3708. BoundingBox boundingBox;
  3709. bool castShadows;
  3710. /* readonly */
  3711. String category;
  3712. float drawDistance;
  3713. bool dynamic;
  3714. bool enabled;
  3715. /* readonly */
  3716. bool enabledEffective;
  3717. /* readonly */
  3718. uint id;
  3719. /* readonly */
  3720. bool inView;
  3721. uint lightMask;
  3722. float lodBias;
  3723. /* writeonly */
  3724. Material material;
  3725. Array<Material> materials;
  3726. uint maxLights;
  3727. /* readonly */
  3728. Node node;
  3729. /* readonly */
  3730. uint numAttributes;
  3731. uint numGeometries;
  3732. /* readonly */
  3733. Array<uint> numVertices;
  3734. ObjectAnimation objectAnimation;
  3735. bool occludee;
  3736. bool occluder;
  3737. /* readonly */
  3738. int refs;
  3739. float shadowDistance;
  3740. uint shadowMask;
  3741. bool temporary;
  3742. /* readonly */
  3743. StringHash type;
  3744. /* readonly */
  3745. String typeName;
  3746. uint viewMask;
  3747. /* readonly */
  3748. int weakRefs;
  3749. /* readonly */
  3750. BoundingBox worldBoundingBox;
  3751. /* readonly */
  3752. Zone zone;
  3753. uint zoneMask;
  3754. };
  3755. class CustomGeometryVertex
  3756. {
  3757. // Properties:
  3758. uint color;
  3759. Vector3 normal;
  3760. Vector3 position;
  3761. Vector4 tangent;
  3762. Vector2 texCoord;
  3763. };
  3764. class Database
  3765. {
  3766. // Methods:
  3767. DbConnection Connect(const String&);
  3768. void Disconnect(DbConnection);
  3769. bool HasSubscribedToEvent(Object, const String&);
  3770. bool HasSubscribedToEvent(const String&);
  3771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3772. // Properties:
  3773. /* readonly */
  3774. String category;
  3775. uint poolSize;
  3776. /* readonly */
  3777. bool pooling;
  3778. /* readonly */
  3779. int refs;
  3780. /* readonly */
  3781. StringHash type;
  3782. /* readonly */
  3783. String typeName;
  3784. /* readonly */
  3785. int weakRefs;
  3786. };
  3787. class DbConnection
  3788. {
  3789. // Methods:
  3790. DbResult Execute(const String&, bool = false);
  3791. bool HasSubscribedToEvent(Object, const String&);
  3792. bool HasSubscribedToEvent(const String&);
  3793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3794. // Properties:
  3795. /* readonly */
  3796. String category;
  3797. /* readonly */
  3798. bool connected;
  3799. /* readonly */
  3800. String connectionString;
  3801. /* readonly */
  3802. int refs;
  3803. /* readonly */
  3804. StringHash type;
  3805. /* readonly */
  3806. String typeName;
  3807. /* readonly */
  3808. int weakRefs;
  3809. };
  3810. class DbResult
  3811. {
  3812. // Properties:
  3813. /* readonly */
  3814. Array<String> columns;
  3815. /* readonly */
  3816. int64 numAffectedRows;
  3817. /* readonly */
  3818. uint numColumns;
  3819. /* readonly */
  3820. uint numRows;
  3821. /* readonly */
  3822. Array<Array<Variant>> row;
  3823. };
  3824. class DebugHud
  3825. {
  3826. // Methods:
  3827. void ClearAppStats();
  3828. bool HasSubscribedToEvent(Object, const String&);
  3829. bool HasSubscribedToEvent(const String&);
  3830. void ResetAppStats(const String&);
  3831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3832. void SetAppStats(const String&, const String&);
  3833. void SetAppStats(const String&, const Variant&);
  3834. void Toggle(uint);
  3835. void ToggleAll();
  3836. void Update();
  3837. // Properties:
  3838. /* readonly */
  3839. String category;
  3840. XMLFile defaultStyle;
  3841. /* readonly */
  3842. Text memoryText;
  3843. uint mode;
  3844. /* readonly */
  3845. Text modeText;
  3846. float profilerInterval;
  3847. uint profilerMaxDepth;
  3848. /* readonly */
  3849. Text profilerText;
  3850. /* readonly */
  3851. int refs;
  3852. /* readonly */
  3853. Text statsText;
  3854. /* readonly */
  3855. StringHash type;
  3856. /* readonly */
  3857. String typeName;
  3858. bool useRendererStats;
  3859. /* readonly */
  3860. int weakRefs;
  3861. };
  3862. class DebugRenderer
  3863. {
  3864. // Methods:
  3865. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3866. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3867. void AddCross(const Vector3&, float, const Color&, bool = true);
  3868. void AddFrustum(const Frustum&, const Color&, bool = true);
  3869. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3870. void AddNode(Node, float = 1.0, bool = true);
  3871. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3872. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3873. void AddSkeleton(Skeleton, const Color&, bool = true);
  3874. void AddSphere(const Sphere&, const Color&, bool = true);
  3875. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3876. void ApplyAttributes();
  3877. void DrawDebugGeometry(DebugRenderer, bool);
  3878. Variant GetAttribute(const String&) const;
  3879. ValueAnimation GetAttributeAnimation(const String&) const;
  3880. float GetAttributeAnimationSpeed(const String&) const;
  3881. float GetAttributeAnimationTime(const String&) const;
  3882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3883. Variant GetAttributeDefault(const String&) const;
  3884. bool GetInterceptNetworkUpdate(const String&) const;
  3885. bool HasSubscribedToEvent(Object, const String&);
  3886. bool HasSubscribedToEvent(const String&);
  3887. bool Load(File, bool = false);
  3888. bool Load(VectorBuffer&, bool = false);
  3889. bool LoadJSON(const JSONValue&, bool = false);
  3890. bool LoadXML(const XMLElement&, bool = false);
  3891. void MarkNetworkUpdate() const;
  3892. void Remove();
  3893. void RemoveAttributeAnimation(const String&);
  3894. void RemoveInstanceDefault();
  3895. void RemoveObjectAnimation();
  3896. void ResetToDefault();
  3897. bool Save(File) const;
  3898. bool Save(VectorBuffer&) const;
  3899. bool SaveJSON(JSONValue&) const;
  3900. bool SaveXML(XMLElement&) const;
  3901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3902. void SetAnimationTime(float);
  3903. bool SetAttribute(const String&, const Variant&);
  3904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3905. void SetAttributeAnimationSpeed(const String&, float);
  3906. void SetAttributeAnimationTime(const String&, float);
  3907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3908. void SetInterceptNetworkUpdate(const String&, bool);
  3909. // Properties:
  3910. bool animationEnabled;
  3911. /* readonly */
  3912. Array<Variant> attributeDefaults;
  3913. /* readonly */
  3914. Array<AttributeInfo> attributeInfos;
  3915. Array<Variant> attributes;
  3916. /* readonly */
  3917. String category;
  3918. bool enabled;
  3919. /* readonly */
  3920. bool enabledEffective;
  3921. /* readonly */
  3922. uint id;
  3923. /* readonly */
  3924. Node node;
  3925. /* readonly */
  3926. uint numAttributes;
  3927. ObjectAnimation objectAnimation;
  3928. /* readonly */
  3929. int refs;
  3930. bool temporary;
  3931. /* readonly */
  3932. StringHash type;
  3933. /* readonly */
  3934. String typeName;
  3935. /* readonly */
  3936. int weakRefs;
  3937. };
  3938. class DecalSet
  3939. {
  3940. // Methods:
  3941. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3942. void ApplyAttributes();
  3943. void DrawDebugGeometry(DebugRenderer, bool);
  3944. Variant GetAttribute(const String&) const;
  3945. ValueAnimation GetAttributeAnimation(const String&) const;
  3946. float GetAttributeAnimationSpeed(const String&) const;
  3947. float GetAttributeAnimationTime(const String&) const;
  3948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3949. Variant GetAttributeDefault(const String&) const;
  3950. bool GetInterceptNetworkUpdate(const String&) const;
  3951. bool HasSubscribedToEvent(Object, const String&);
  3952. bool HasSubscribedToEvent(const String&);
  3953. bool IsInView(Camera) const;
  3954. bool Load(File, bool = false);
  3955. bool Load(VectorBuffer&, bool = false);
  3956. bool LoadJSON(const JSONValue&, bool = false);
  3957. bool LoadXML(const XMLElement&, bool = false);
  3958. void MarkNetworkUpdate() const;
  3959. void Remove();
  3960. void RemoveAllDecals();
  3961. void RemoveAttributeAnimation(const String&);
  3962. void RemoveDecals(uint);
  3963. void RemoveInstanceDefault();
  3964. void RemoveObjectAnimation();
  3965. void ResetToDefault();
  3966. bool Save(File) const;
  3967. bool Save(VectorBuffer&) const;
  3968. bool SaveJSON(JSONValue&) const;
  3969. bool SaveXML(XMLElement&) const;
  3970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3971. void SetAnimationTime(float);
  3972. bool SetAttribute(const String&, const Variant&);
  3973. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3974. void SetAttributeAnimationSpeed(const String&, float);
  3975. void SetAttributeAnimationTime(const String&, float);
  3976. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3977. void SetInterceptNetworkUpdate(const String&, bool);
  3978. // Properties:
  3979. bool animationEnabled;
  3980. /* readonly */
  3981. Array<Variant> attributeDefaults;
  3982. /* readonly */
  3983. Array<AttributeInfo> attributeInfos;
  3984. Array<Variant> attributes;
  3985. /* readonly */
  3986. BoundingBox boundingBox;
  3987. bool castShadows;
  3988. /* readonly */
  3989. String category;
  3990. float drawDistance;
  3991. bool enabled;
  3992. /* readonly */
  3993. bool enabledEffective;
  3994. /* readonly */
  3995. uint id;
  3996. /* readonly */
  3997. bool inView;
  3998. uint lightMask;
  3999. float lodBias;
  4000. Material material;
  4001. uint maxIndices;
  4002. uint maxLights;
  4003. uint maxVertices;
  4004. /* readonly */
  4005. Node node;
  4006. /* readonly */
  4007. uint numAttributes;
  4008. /* readonly */
  4009. uint numDecals;
  4010. /* readonly */
  4011. uint numIndices;
  4012. /* readonly */
  4013. uint numVertices;
  4014. ObjectAnimation objectAnimation;
  4015. bool occludee;
  4016. bool occluder;
  4017. /* readonly */
  4018. int refs;
  4019. float shadowDistance;
  4020. uint shadowMask;
  4021. bool temporary;
  4022. /* readonly */
  4023. StringHash type;
  4024. /* readonly */
  4025. String typeName;
  4026. uint viewMask;
  4027. /* readonly */
  4028. int weakRefs;
  4029. /* readonly */
  4030. BoundingBox worldBoundingBox;
  4031. /* readonly */
  4032. Zone zone;
  4033. uint zoneMask;
  4034. };
  4035. class Deserializer
  4036. {
  4037. // Methods:
  4038. Array<uint8> Read(uint);
  4039. bool ReadBool();
  4040. BoundingBox ReadBoundingBox();
  4041. int8 ReadByte();
  4042. Color ReadColor();
  4043. double ReadDouble();
  4044. String ReadFileID();
  4045. float ReadFloat();
  4046. int ReadInt();
  4047. int64 ReadInt64();
  4048. IntRect ReadIntRect();
  4049. IntVector2 ReadIntVector2();
  4050. String ReadLine();
  4051. Matrix3 ReadMatrix3();
  4052. Matrix3x4 ReadMatrix3x4();
  4053. Matrix4 ReadMatrix4();
  4054. uint ReadNetID();
  4055. Quaternion ReadPackedQuaternion();
  4056. Vector3 ReadPackedVector3(float);
  4057. Quaternion ReadQuaternion();
  4058. int16 ReadShort();
  4059. String ReadString();
  4060. StringHash ReadStringHash();
  4061. uint8 ReadUByte();
  4062. uint ReadUInt();
  4063. uint64 ReadUInt64();
  4064. uint16 ReadUShort();
  4065. uint ReadVLE();
  4066. Variant ReadVariant();
  4067. VariantMap ReadVariantMap();
  4068. Vector2 ReadVector2();
  4069. Vector3 ReadVector3();
  4070. Vector4 ReadVector4();
  4071. VectorBuffer ReadVectorBuffer(uint);
  4072. uint Seek(uint);
  4073. // Properties:
  4074. /* readonly */
  4075. uint checksum;
  4076. /* readonly */
  4077. bool eof;
  4078. /* readonly */
  4079. String name;
  4080. /* readonly */
  4081. uint position;
  4082. /* readonly */
  4083. uint size;
  4084. };
  4085. class Dictionary
  4086. {
  4087. // Methods:
  4088. void Clear();
  4089. void Erase(const String&);
  4090. bool Exists(const String&) const;
  4091. bool Get(const String&, void*) const;
  4092. bool Get(const String&, double&) const;
  4093. bool Get(const String&, int64&) const;
  4094. void Set(const String&, const void*);
  4095. void Set(const String&, const double&);
  4096. void Set(const String&, const int64&);
  4097. // Properties:
  4098. /* readonly */
  4099. bool empty;
  4100. /* readonly */
  4101. Array<String> keys;
  4102. /* readonly */
  4103. uint length;
  4104. };
  4105. class DictionaryValue
  4106. {
  4107. };
  4108. class Drawable
  4109. {
  4110. // Methods:
  4111. void ApplyAttributes();
  4112. void DrawDebugGeometry(DebugRenderer, bool);
  4113. Variant GetAttribute(const String&) const;
  4114. ValueAnimation GetAttributeAnimation(const String&) const;
  4115. float GetAttributeAnimationSpeed(const String&) const;
  4116. float GetAttributeAnimationTime(const String&) const;
  4117. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4118. Variant GetAttributeDefault(const String&) const;
  4119. bool GetInterceptNetworkUpdate(const String&) const;
  4120. bool HasSubscribedToEvent(Object, const String&);
  4121. bool HasSubscribedToEvent(const String&);
  4122. bool IsInView(Camera) const;
  4123. bool Load(File, bool = false);
  4124. bool Load(VectorBuffer&, bool = false);
  4125. bool LoadJSON(const JSONValue&, bool = false);
  4126. bool LoadXML(const XMLElement&, bool = false);
  4127. void MarkNetworkUpdate() const;
  4128. void Remove();
  4129. void RemoveAttributeAnimation(const String&);
  4130. void RemoveInstanceDefault();
  4131. void RemoveObjectAnimation();
  4132. void ResetToDefault();
  4133. bool Save(File) const;
  4134. bool Save(VectorBuffer&) const;
  4135. bool SaveJSON(JSONValue&) const;
  4136. bool SaveXML(XMLElement&) const;
  4137. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4138. void SetAnimationTime(float);
  4139. bool SetAttribute(const String&, const Variant&);
  4140. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4141. void SetAttributeAnimationSpeed(const String&, float);
  4142. void SetAttributeAnimationTime(const String&, float);
  4143. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4144. void SetInterceptNetworkUpdate(const String&, bool);
  4145. // Properties:
  4146. bool animationEnabled;
  4147. /* readonly */
  4148. Array<Variant> attributeDefaults;
  4149. /* readonly */
  4150. Array<AttributeInfo> attributeInfos;
  4151. Array<Variant> attributes;
  4152. /* readonly */
  4153. BoundingBox boundingBox;
  4154. bool castShadows;
  4155. /* readonly */
  4156. String category;
  4157. float drawDistance;
  4158. bool enabled;
  4159. /* readonly */
  4160. bool enabledEffective;
  4161. /* readonly */
  4162. uint id;
  4163. /* readonly */
  4164. bool inView;
  4165. uint lightMask;
  4166. float lodBias;
  4167. uint maxLights;
  4168. /* readonly */
  4169. Node node;
  4170. /* readonly */
  4171. uint numAttributes;
  4172. ObjectAnimation objectAnimation;
  4173. bool occludee;
  4174. bool occluder;
  4175. /* readonly */
  4176. int refs;
  4177. float shadowDistance;
  4178. uint shadowMask;
  4179. bool temporary;
  4180. /* readonly */
  4181. StringHash type;
  4182. /* readonly */
  4183. String typeName;
  4184. uint viewMask;
  4185. /* readonly */
  4186. int weakRefs;
  4187. /* readonly */
  4188. BoundingBox worldBoundingBox;
  4189. uint zoneMask;
  4190. };
  4191. class Drawable2D
  4192. {
  4193. // Methods:
  4194. void ApplyAttributes();
  4195. void DrawDebugGeometry(DebugRenderer, bool);
  4196. Variant GetAttribute(const String&) const;
  4197. ValueAnimation GetAttributeAnimation(const String&) const;
  4198. float GetAttributeAnimationSpeed(const String&) const;
  4199. float GetAttributeAnimationTime(const String&) const;
  4200. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4201. Variant GetAttributeDefault(const String&) const;
  4202. bool GetInterceptNetworkUpdate(const String&) const;
  4203. bool HasSubscribedToEvent(Object, const String&);
  4204. bool HasSubscribedToEvent(const String&);
  4205. bool IsInView(Camera) const;
  4206. bool Load(File, bool = false);
  4207. bool Load(VectorBuffer&, bool = false);
  4208. bool LoadJSON(const JSONValue&, bool = false);
  4209. bool LoadXML(const XMLElement&, bool = false);
  4210. void MarkNetworkUpdate() const;
  4211. void Remove();
  4212. void RemoveAttributeAnimation(const String&);
  4213. void RemoveInstanceDefault();
  4214. void RemoveObjectAnimation();
  4215. void ResetToDefault();
  4216. bool Save(File) const;
  4217. bool Save(VectorBuffer&) const;
  4218. bool SaveJSON(JSONValue&) const;
  4219. bool SaveXML(XMLElement&) const;
  4220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4221. void SetAnimationTime(float);
  4222. bool SetAttribute(const String&, const Variant&);
  4223. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4224. void SetAttributeAnimationSpeed(const String&, float);
  4225. void SetAttributeAnimationTime(const String&, float);
  4226. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4227. void SetInterceptNetworkUpdate(const String&, bool);
  4228. // Properties:
  4229. bool animationEnabled;
  4230. /* readonly */
  4231. Array<Variant> attributeDefaults;
  4232. /* readonly */
  4233. Array<AttributeInfo> attributeInfos;
  4234. Array<Variant> attributes;
  4235. /* readonly */
  4236. BoundingBox boundingBox;
  4237. bool castShadows;
  4238. /* readonly */
  4239. String category;
  4240. float drawDistance;
  4241. bool enabled;
  4242. /* readonly */
  4243. bool enabledEffective;
  4244. /* readonly */
  4245. uint id;
  4246. /* readonly */
  4247. bool inView;
  4248. int layer;
  4249. uint lightMask;
  4250. float lodBias;
  4251. uint maxLights;
  4252. /* readonly */
  4253. Node node;
  4254. /* readonly */
  4255. uint numAttributes;
  4256. ObjectAnimation objectAnimation;
  4257. bool occludee;
  4258. bool occluder;
  4259. int orderInLayer;
  4260. /* readonly */
  4261. int refs;
  4262. float shadowDistance;
  4263. uint shadowMask;
  4264. bool temporary;
  4265. /* readonly */
  4266. StringHash type;
  4267. /* readonly */
  4268. String typeName;
  4269. uint viewMask;
  4270. /* readonly */
  4271. int weakRefs;
  4272. /* readonly */
  4273. BoundingBox worldBoundingBox;
  4274. uint zoneMask;
  4275. };
  4276. class DropDownList
  4277. {
  4278. // Methods:
  4279. void AddChild(UIElement);
  4280. void AddItem(UIElement);
  4281. void AddTag(const String&);
  4282. void AddTags(const String&, int8 = ';');
  4283. void ApplyAttributes();
  4284. void BringToFront();
  4285. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4286. void DisableLayoutUpdate();
  4287. IntVector2 ElementToScreen(const IntVector2&);
  4288. void EnableLayoutUpdate();
  4289. uint FindChild(UIElement) const;
  4290. Variant GetAttribute(const String&) const;
  4291. ValueAnimation GetAttributeAnimation(const String&) const;
  4292. float GetAttributeAnimationSpeed(const String&) const;
  4293. float GetAttributeAnimationTime(const String&) const;
  4294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4295. Variant GetAttributeDefault(const String&) const;
  4296. UIElement GetChild(const String&, bool = false) const;
  4297. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4298. Array<UIElement> GetChildren(bool = false) const;
  4299. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4300. UIElement GetElementEventSender() const;
  4301. bool GetInterceptNetworkUpdate(const String&) const;
  4302. Array<UIElement> GetItems() const;
  4303. uint GetNumChildren(bool) const;
  4304. bool HasSubscribedToEvent(Object, const String&);
  4305. bool HasSubscribedToEvent(const String&);
  4306. bool HasTag(const String&) const;
  4307. void InsertChild(uint, UIElement);
  4308. void InsertItem(uint, UIElement);
  4309. bool IsInside(IntVector2, bool);
  4310. bool IsInsideCombined(IntVector2, bool);
  4311. bool Load(File, bool = false);
  4312. bool Load(VectorBuffer&, bool = false);
  4313. bool LoadChildXML(XMLFile, XMLFile = null);
  4314. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4315. bool LoadJSON(const JSONValue&, bool = false);
  4316. bool LoadXML(File);
  4317. bool LoadXML(VectorBuffer&);
  4318. bool LoadXML(XMLFile, XMLFile);
  4319. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4320. bool LoadXML(const XMLElement&, bool = false);
  4321. void MarkNetworkUpdate() const;
  4322. void Remove();
  4323. void RemoveAllChildren();
  4324. void RemoveAllItems();
  4325. void RemoveAllTags();
  4326. void RemoveAttributeAnimation(const String&);
  4327. void RemoveChild(UIElement, uint = 0);
  4328. void RemoveChild(uint);
  4329. void RemoveInstanceDefault();
  4330. void RemoveItem(UIElement);
  4331. void RemoveItem(uint);
  4332. void RemoveObjectAnimation();
  4333. bool RemoveTag(const String&);
  4334. void ResetDeepEnabled();
  4335. void ResetToDefault();
  4336. bool Save(File) const;
  4337. bool Save(VectorBuffer&) const;
  4338. bool SaveJSON(JSONValue&) const;
  4339. bool SaveXML(File, const String& = "\t");
  4340. bool SaveXML(VectorBuffer&, const String& = "\t");
  4341. bool SaveXML(XMLElement&) const;
  4342. IntVector2 ScreenToElement(const IntVector2&);
  4343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4344. void SetAccelerator(int, int);
  4345. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4346. void SetAnimationTime(float);
  4347. bool SetAttribute(const String&, const Variant&);
  4348. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4349. void SetAttributeAnimationSpeed(const String&, float);
  4350. void SetAttributeAnimationTime(const String&, float);
  4351. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4352. void SetDeepEnabled(bool);
  4353. void SetEnabledRecursive(bool);
  4354. void SetFixedHeight(int);
  4355. void SetFixedSize(int, int);
  4356. void SetFixedWidth(int);
  4357. void SetFullImageRect();
  4358. void SetHoverOffset(int, int);
  4359. void SetInterceptNetworkUpdate(const String&, bool);
  4360. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4361. void SetMaxSize(int, int);
  4362. void SetMinSize(int, int);
  4363. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4364. void SetPosition(int, int);
  4365. void SetPressedChildOffset(int, int);
  4366. void SetPressedOffset(int, int);
  4367. void SetRepeat(float, float);
  4368. void SetSize(int, int);
  4369. bool SetStyle(const String&, XMLFile = null);
  4370. bool SetStyle(const XMLElement&);
  4371. bool SetStyleAuto(XMLFile = null);
  4372. void UpdateLayout();
  4373. const Variant& GetVar(const StringHash&);
  4374. UIElement getPopup() const;
  4375. // Properties:
  4376. /* readonly */
  4377. int acceleratorKey;
  4378. /* readonly */
  4379. int acceleratorQualifiers;
  4380. bool animationEnabled;
  4381. /* readonly */
  4382. Array<Variant> attributeDefaults;
  4383. /* readonly */
  4384. Array<AttributeInfo> attributeInfos;
  4385. Array<Variant> attributes;
  4386. BlendMode blendMode;
  4387. IntRect border;
  4388. bool bringToBack;
  4389. bool bringToFront;
  4390. /* readonly */
  4391. String category;
  4392. /* readonly */
  4393. IntVector2 childOffset;
  4394. /* readonly */
  4395. Array<UIElement> children;
  4396. IntRect clipBorder;
  4397. bool clipChildren;
  4398. /* writeonly */
  4399. Color color;
  4400. /* readonly */
  4401. bool colorGradient;
  4402. Array<Color> colors;
  4403. /* readonly */
  4404. IntRect combinedScreenRect;
  4405. XMLFile defaultStyle;
  4406. /* readonly */
  4407. float derivedOpacity;
  4408. /* readonly */
  4409. uint dragButtonCombo;
  4410. /* readonly */
  4411. int dragButtonCount;
  4412. uint dragDropMode;
  4413. bool editable;
  4414. bool elementEventSender;
  4415. bool enabled;
  4416. /* readonly */
  4417. bool enabledSelf;
  4418. /* readonly */
  4419. bool fixedHeight;
  4420. /* readonly */
  4421. bool fixedSize;
  4422. /* readonly */
  4423. bool fixedWidth;
  4424. bool focus;
  4425. FocusMode focusMode;
  4426. int height;
  4427. HorizontalAlignment horizontalAlignment;
  4428. IntVector2 hoverOffset;
  4429. /* readonly */
  4430. bool hovering;
  4431. IntRect imageBorder;
  4432. IntRect imageRect;
  4433. int indent;
  4434. int indentSpacing;
  4435. /* readonly */
  4436. int indentWidth;
  4437. bool internal;
  4438. /* readonly */
  4439. Array<UIElement> items;
  4440. IntRect layoutBorder;
  4441. Vector2 layoutFlexScale;
  4442. LayoutMode layoutMode;
  4443. int layoutSpacing;
  4444. /* readonly */
  4445. ListView listView;
  4446. int maxHeight;
  4447. IntVector2 maxSize;
  4448. int maxWidth;
  4449. int minHeight;
  4450. IntVector2 minSize;
  4451. int minWidth;
  4452. String name;
  4453. /* readonly */
  4454. uint numAllChildren;
  4455. /* readonly */
  4456. uint numAttributes;
  4457. /* readonly */
  4458. uint numChildren;
  4459. /* readonly */
  4460. uint numItems;
  4461. ObjectAnimation objectAnimation;
  4462. float opacity;
  4463. UIElement parent;
  4464. /* readonly */
  4465. UIElement placeholder;
  4466. String placeholderText;
  4467. IntVector2 position;
  4468. /* readonly */
  4469. bool pressed;
  4470. IntVector2 pressedChildOffset;
  4471. IntVector2 pressedOffset;
  4472. int priority;
  4473. /* readonly */
  4474. int refs;
  4475. float repeatDelay;
  4476. float repeatRate;
  4477. bool resizePopup;
  4478. /* readonly */
  4479. UIElement root;
  4480. /* readonly */
  4481. IntVector2 screenPosition;
  4482. bool selected;
  4483. /* readonly */
  4484. UIElement selectedItem;
  4485. uint selection;
  4486. bool showPopup;
  4487. IntVector2 size;
  4488. bool sortChildren;
  4489. String style;
  4490. /* readonly */
  4491. Array<String> tags;
  4492. bool temporary;
  4493. Texture texture;
  4494. bool tiled;
  4495. TraversalMode traversalMode;
  4496. /* readonly */
  4497. StringHash type;
  4498. /* readonly */
  4499. String typeName;
  4500. bool useDerivedOpacity;
  4501. /* readonly */
  4502. VariantMap vars;
  4503. VerticalAlignment verticalAlignment;
  4504. bool visible;
  4505. /* readonly */
  4506. bool visibleEffective;
  4507. /* readonly */
  4508. int weakRefs;
  4509. int width;
  4510. };
  4511. class DynamicNavigationMesh
  4512. {
  4513. // Methods:
  4514. void ApplyAttributes();
  4515. bool Build();
  4516. bool Build(const BoundingBox&);
  4517. void DrawDebugGeometry(DebugRenderer, bool);
  4518. void DrawDebugGeometry(bool);
  4519. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4521. float GetAreaCost(uint) const;
  4522. Variant GetAttribute(const String&) const;
  4523. ValueAnimation GetAttributeAnimation(const String&) const;
  4524. float GetAttributeAnimationSpeed(const String&) const;
  4525. float GetAttributeAnimationTime(const String&) const;
  4526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4527. Variant GetAttributeDefault(const String&) const;
  4528. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. bool GetInterceptNetworkUpdate(const String&) const;
  4530. Vector3 GetRandomPoint();
  4531. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4532. bool HasSubscribedToEvent(Object, const String&);
  4533. bool HasSubscribedToEvent(const String&);
  4534. bool Load(File, bool = false);
  4535. bool Load(VectorBuffer&, bool = false);
  4536. bool LoadJSON(const JSONValue&, bool = false);
  4537. bool LoadXML(const XMLElement&, bool = false);
  4538. void MarkNetworkUpdate() const;
  4539. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4540. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4541. void Remove();
  4542. void RemoveAttributeAnimation(const String&);
  4543. void RemoveInstanceDefault();
  4544. void RemoveObjectAnimation();
  4545. void ResetToDefault();
  4546. bool Save(File) const;
  4547. bool Save(VectorBuffer&) const;
  4548. bool SaveJSON(JSONValue&) const;
  4549. bool SaveXML(XMLElement&) const;
  4550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4551. void SetAnimationTime(float);
  4552. void SetAreaCost(uint, float);
  4553. bool SetAttribute(const String&, const Variant&);
  4554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4555. void SetAttributeAnimationSpeed(const String&, float);
  4556. void SetAttributeAnimationTime(const String&, float);
  4557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4558. void SetInterceptNetworkUpdate(const String&, bool);
  4559. // Properties:
  4560. float agentHeight;
  4561. float agentMaxClimb;
  4562. float agentMaxSlope;
  4563. float agentRadius;
  4564. bool animationEnabled;
  4565. /* readonly */
  4566. Array<Variant> attributeDefaults;
  4567. /* readonly */
  4568. Array<AttributeInfo> attributeInfos;
  4569. Array<Variant> attributes;
  4570. /* readonly */
  4571. BoundingBox boundingBox;
  4572. /* readonly */
  4573. String category;
  4574. float cellHeight;
  4575. float cellSize;
  4576. float detailSampleDistance;
  4577. float detailSampleMaxError;
  4578. bool drawNavAreas;
  4579. bool drawObstacles;
  4580. bool drawOffMeshConnections;
  4581. float edgeMaxError;
  4582. float edgeMaxLength;
  4583. bool enabled;
  4584. /* readonly */
  4585. bool enabledEffective;
  4586. /* readonly */
  4587. uint id;
  4588. /* readonly */
  4589. bool initialized;
  4590. bool maxLayers;
  4591. uint maxObstacles;
  4592. /* readonly */
  4593. Node node;
  4594. /* readonly */
  4595. uint numAttributes;
  4596. /* readonly */
  4597. IntVector2 numTiles;
  4598. ObjectAnimation objectAnimation;
  4599. Vector3 padding;
  4600. NavmeshPartitionType partitionType;
  4601. /* readonly */
  4602. int refs;
  4603. float regionMergeSize;
  4604. float regionMinSize;
  4605. bool temporary;
  4606. int tileSize;
  4607. /* readonly */
  4608. StringHash type;
  4609. /* readonly */
  4610. String typeName;
  4611. /* readonly */
  4612. int weakRefs;
  4613. /* readonly */
  4614. BoundingBox worldBoundingBox;
  4615. };
  4616. class Engine
  4617. {
  4618. // Methods:
  4619. Console CreateConsole();
  4620. DebugHud CreateDebugHud();
  4621. void DumpMemory();
  4622. void DumpProfiler();
  4623. void DumpResources(bool = false);
  4624. void Exit();
  4625. bool HasSubscribedToEvent(Object, const String&);
  4626. bool HasSubscribedToEvent(const String&);
  4627. void RunFrame();
  4628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4629. // Properties:
  4630. bool autoExit;
  4631. /* readonly */
  4632. String category;
  4633. /* readonly */
  4634. bool exiting;
  4635. /* readonly */
  4636. bool headless;
  4637. /* readonly */
  4638. bool initialized;
  4639. int maxFps;
  4640. int maxInactiveFps;
  4641. int minFps;
  4642. bool pauseMinimized;
  4643. /* readonly */
  4644. int refs;
  4645. int timeStepSmoothing;
  4646. /* readonly */
  4647. StringHash type;
  4648. /* readonly */
  4649. String typeName;
  4650. /* readonly */
  4651. int weakRefs;
  4652. };
  4653. class File
  4654. {
  4655. // Methods:
  4656. void Close();
  4657. bool HasSubscribedToEvent(Object, const String&);
  4658. bool HasSubscribedToEvent(const String&);
  4659. bool Open(const String&, FileMode = FILE_READ);
  4660. Array<uint8> Read(uint);
  4661. bool ReadBool();
  4662. BoundingBox ReadBoundingBox();
  4663. int8 ReadByte();
  4664. Color ReadColor();
  4665. double ReadDouble();
  4666. String ReadFileID();
  4667. float ReadFloat();
  4668. int ReadInt();
  4669. int64 ReadInt64();
  4670. IntRect ReadIntRect();
  4671. IntVector2 ReadIntVector2();
  4672. String ReadLine();
  4673. Matrix3 ReadMatrix3();
  4674. Matrix3x4 ReadMatrix3x4();
  4675. Matrix4 ReadMatrix4();
  4676. uint ReadNetID();
  4677. Quaternion ReadPackedQuaternion();
  4678. Vector3 ReadPackedVector3(float);
  4679. Quaternion ReadQuaternion();
  4680. int16 ReadShort();
  4681. String ReadString();
  4682. StringHash ReadStringHash();
  4683. uint8 ReadUByte();
  4684. uint ReadUInt();
  4685. uint64 ReadUInt64();
  4686. uint16 ReadUShort();
  4687. uint ReadVLE();
  4688. Variant ReadVariant();
  4689. VariantMap ReadVariantMap();
  4690. Vector2 ReadVector2();
  4691. Vector3 ReadVector3();
  4692. Vector4 ReadVector4();
  4693. VectorBuffer ReadVectorBuffer(uint);
  4694. uint Seek(uint);
  4695. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4696. uint Write(Array<uint8>);
  4697. bool WriteBool(bool);
  4698. bool WriteBoundingBox(const BoundingBox&);
  4699. bool WriteByte(int8);
  4700. bool WriteColor(const Color&);
  4701. bool WriteDouble(double);
  4702. bool WriteFileID(const String&);
  4703. bool WriteFloat(float);
  4704. bool WriteInt(int);
  4705. bool WriteInt64(int64);
  4706. bool WriteIntRect(const IntRect&);
  4707. bool WriteIntVector2(const IntVector2&);
  4708. bool WriteLine(const String&);
  4709. bool WriteMatrix3(const Matrix3&);
  4710. bool WriteMatrix3x4(const Matrix3x4&);
  4711. bool WriteMatrix4(const Matrix4&);
  4712. bool WriteNetID(uint);
  4713. bool WritePackedQuaternion(const Quaternion&);
  4714. bool WritePackedVector3(const Vector3&, float);
  4715. bool WriteQuaternion(const Quaternion&);
  4716. bool WriteShort(int16);
  4717. bool WriteString(const String&);
  4718. bool WriteStringHash(const StringHash&);
  4719. bool WriteUByte(uint8);
  4720. bool WriteUInt(uint);
  4721. bool WriteUInt64(uint64);
  4722. bool WriteUShort(uint16);
  4723. bool WriteVLE(uint);
  4724. bool WriteVariant(const Variant&);
  4725. bool WriteVariantMap(const VariantMap&);
  4726. bool WriteVector2(const Vector2&);
  4727. bool WriteVector3(const Vector3&);
  4728. bool WriteVector4(const Vector4&);
  4729. bool WriteVectorBuffer(const VectorBuffer&);
  4730. // Properties:
  4731. /* readonly */
  4732. String category;
  4733. /* readonly */
  4734. uint checksum;
  4735. /* readonly */
  4736. bool eof;
  4737. /* readonly */
  4738. FileMode mode;
  4739. /* readonly */
  4740. String name;
  4741. /* readonly */
  4742. bool open;
  4743. /* readonly */
  4744. bool packaged;
  4745. /* readonly */
  4746. uint position;
  4747. /* readonly */
  4748. int refs;
  4749. /* readonly */
  4750. uint size;
  4751. /* readonly */
  4752. StringHash type;
  4753. /* readonly */
  4754. String typeName;
  4755. /* readonly */
  4756. int weakRefs;
  4757. };
  4758. class FileSelector
  4759. {
  4760. // Methods:
  4761. bool HasSubscribedToEvent(Object, const String&);
  4762. bool HasSubscribedToEvent(const String&);
  4763. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4764. void SetButtonTexts(const String&, const String&);
  4765. void SetFilters(Array<String>, uint);
  4766. void UpdateElements();
  4767. // Properties:
  4768. /* readonly */
  4769. Button cancelButton;
  4770. /* readonly */
  4771. String category;
  4772. XMLFile defaultStyle;
  4773. bool directoryMode;
  4774. /* readonly */
  4775. ListView fileList;
  4776. String fileName;
  4777. /* readonly */
  4778. LineEdit fileNameEdit;
  4779. /* readonly */
  4780. String filter;
  4781. /* readonly */
  4782. uint filterIndex;
  4783. /* readonly */
  4784. DropDownList filterList;
  4785. /* readonly */
  4786. Button okButton;
  4787. String path;
  4788. /* readonly */
  4789. LineEdit pathEdit;
  4790. /* readonly */
  4791. int refs;
  4792. String title;
  4793. /* readonly */
  4794. Text titleText;
  4795. /* readonly */
  4796. StringHash type;
  4797. /* readonly */
  4798. String typeName;
  4799. /* readonly */
  4800. int weakRefs;
  4801. /* readonly */
  4802. Window window;
  4803. };
  4804. class FileSystem
  4805. {
  4806. // Methods:
  4807. bool Copy(const String&, const String&);
  4808. bool CreateDir(const String&);
  4809. bool Delete(const String&);
  4810. bool DirExists(const String&) const;
  4811. bool FileExists(const String&) const;
  4812. String GetAppPreferencesDir(const String&, const String&) const;
  4813. uint GetLastModifiedTime(const String&) const;
  4814. bool HasSubscribedToEvent(Object, const String&);
  4815. bool HasSubscribedToEvent(const String&);
  4816. bool Rename(const String&, const String&);
  4817. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4818. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4819. bool SetLastModifiedTime(const String&, uint);
  4820. int SystemCommand(const String&, bool = false);
  4821. uint SystemCommandAsync(const String&);
  4822. bool SystemOpen(const String&, const String&);
  4823. int SystemRun(const String&, Array<String>);
  4824. uint SystemRunAsync(const String&, Array<String>);
  4825. // Properties:
  4826. /* readonly */
  4827. String category;
  4828. String currentDir;
  4829. bool executeConsoleCommands;
  4830. /* readonly */
  4831. String programDir;
  4832. /* readonly */
  4833. int refs;
  4834. /* readonly */
  4835. StringHash type;
  4836. /* readonly */
  4837. String typeName;
  4838. /* readonly */
  4839. String userDocumentsDir;
  4840. /* readonly */
  4841. int weakRefs;
  4842. };
  4843. class FocusParameters
  4844. {
  4845. // Properties:
  4846. bool autoSize;
  4847. bool focus;
  4848. float minView;
  4849. bool nonUniform;
  4850. float quantize;
  4851. };
  4852. class Font
  4853. {
  4854. // Methods:
  4855. IntVector2 GetTotalGlyphOffset(int) const;
  4856. bool HasSubscribedToEvent(Object, const String&);
  4857. bool HasSubscribedToEvent(const String&);
  4858. bool Load(File);
  4859. bool Load(VectorBuffer&);
  4860. bool Save(File) const;
  4861. bool Save(VectorBuffer&) const;
  4862. bool SaveXML(File, int, bool = false, const String& = "\t");
  4863. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4864. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4866. // Properties:
  4867. IntVector2 absoluteGlyphOffset;
  4868. /* readonly */
  4869. String category;
  4870. /* readonly */
  4871. uint memoryUse;
  4872. String name;
  4873. /* readonly */
  4874. int refs;
  4875. Vector2 scaledGlyphOffset;
  4876. /* readonly */
  4877. StringHash type;
  4878. /* readonly */
  4879. String typeName;
  4880. /* readonly */
  4881. uint useTimer;
  4882. /* readonly */
  4883. int weakRefs;
  4884. };
  4885. class Frustum
  4886. {
  4887. // Methods:
  4888. void Define(const BoundingBox&, const Matrix3x4&);
  4889. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4890. void Define(float, float, float, float, float, const Matrix3x4&);
  4891. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4892. float Distance(const Vector3&) const;
  4893. Intersection IsInside(const BoundingBox&);
  4894. Intersection IsInside(const Sphere&);
  4895. Intersection IsInside(const Vector3&);
  4896. Intersection IsInsideFast(const BoundingBox&) const;
  4897. Intersection IsInsideFast(const Sphere&) const;
  4898. void Transform(const Matrix3&);
  4899. void Transform(const Matrix3x4&);
  4900. Frustum Transformed(const Matrix3&) const;
  4901. Frustum Transformed(const Matrix3x4&) const;
  4902. // Properties:
  4903. /* readonly */
  4904. Array<Vector3> vertices;
  4905. };
  4906. class Geometry
  4907. {
  4908. // Methods:
  4909. bool HasSubscribedToEvent(Object, const String&);
  4910. bool HasSubscribedToEvent(const String&);
  4911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4912. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4913. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4914. void SetIndexBuffer(IndexBuffer);
  4915. bool SetVertexBuffer(uint, VertexBuffer);
  4916. // Properties:
  4917. /* readonly */
  4918. String category;
  4919. /* readonly */
  4920. bool empty;
  4921. IndexBuffer indexBuffer;
  4922. /* readonly */
  4923. uint indexCount;
  4924. /* readonly */
  4925. uint indexStart;
  4926. float lodDistance;
  4927. uint numVertexBuffers;
  4928. /* readonly */
  4929. PrimitiveType primitiveType;
  4930. /* readonly */
  4931. int refs;
  4932. /* readonly */
  4933. StringHash type;
  4934. /* readonly */
  4935. String typeName;
  4936. /* readonly */
  4937. Array<VertexBuffer> vertexBuffers;
  4938. /* readonly */
  4939. uint vertexCount;
  4940. /* readonly */
  4941. uint vertexStart;
  4942. /* readonly */
  4943. int weakRefs;
  4944. };
  4945. class Graphics
  4946. {
  4947. // Methods:
  4948. void BeginDumpShaders(const String&);
  4949. void Close();
  4950. void EndDumpShaders();
  4951. bool HasSubscribedToEvent(Object, const String&);
  4952. bool HasSubscribedToEvent(const String&);
  4953. void Maximize();
  4954. void Minimize();
  4955. void PrecacheShaders(File);
  4956. void PrecacheShaders(VectorBuffer&);
  4957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4958. bool SetMode(int, int);
  4959. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4960. void SetWindowPosition(int, int);
  4961. bool TakeScreenShot(Image);
  4962. bool ToggleFullscreen();
  4963. // Properties:
  4964. /* readonly */
  4965. String apiName;
  4966. /* readonly */
  4967. bool borderless;
  4968. /* readonly */
  4969. String category;
  4970. /* readonly */
  4971. bool deferredSupport;
  4972. /* readonly */
  4973. IntVector2 desktopResolution;
  4974. /* readonly */
  4975. bool deviceLost;
  4976. bool dither;
  4977. bool flushGPU;
  4978. /* readonly */
  4979. bool fullscreen;
  4980. /* readonly */
  4981. bool hardwareShadowSupport;
  4982. /* readonly */
  4983. int height;
  4984. /* readonly */
  4985. bool initialized;
  4986. /* readonly */
  4987. bool instancingSupport;
  4988. /* readonly */
  4989. bool lightPrepassSupport;
  4990. /* readonly */
  4991. int multiSample;
  4992. /* readonly */
  4993. Array<int> multiSampleLevels;
  4994. /* readonly */
  4995. uint numBatches;
  4996. /* readonly */
  4997. uint numPrimitives;
  4998. String orientations;
  4999. /* readonly */
  5000. bool readableDepthSupport;
  5001. /* readonly */
  5002. int refs;
  5003. /* readonly */
  5004. bool resizable;
  5005. /* readonly */
  5006. Array<IntVector2> resolutions;
  5007. bool sRGB;
  5008. /* readonly */
  5009. bool sRGBSupport;
  5010. /* readonly */
  5011. bool sRGBWriteSupport;
  5012. /* readonly */
  5013. bool tripleBuffer;
  5014. /* readonly */
  5015. StringHash type;
  5016. /* readonly */
  5017. String typeName;
  5018. /* readonly */
  5019. bool vsync;
  5020. /* readonly */
  5021. int weakRefs;
  5022. /* readonly */
  5023. int width;
  5024. /* writeonly */
  5025. Image windowIcon;
  5026. IntVector2 windowPosition;
  5027. String windowTitle;
  5028. };
  5029. class HttpRequest
  5030. {
  5031. // Methods:
  5032. Array<uint8> Read(uint);
  5033. bool ReadBool();
  5034. BoundingBox ReadBoundingBox();
  5035. int8 ReadByte();
  5036. Color ReadColor();
  5037. double ReadDouble();
  5038. String ReadFileID();
  5039. float ReadFloat();
  5040. int ReadInt();
  5041. int64 ReadInt64();
  5042. IntRect ReadIntRect();
  5043. IntVector2 ReadIntVector2();
  5044. String ReadLine();
  5045. Matrix3 ReadMatrix3();
  5046. Matrix3x4 ReadMatrix3x4();
  5047. Matrix4 ReadMatrix4();
  5048. uint ReadNetID();
  5049. Quaternion ReadPackedQuaternion();
  5050. Vector3 ReadPackedVector3(float);
  5051. Quaternion ReadQuaternion();
  5052. int16 ReadShort();
  5053. String ReadString();
  5054. StringHash ReadStringHash();
  5055. uint8 ReadUByte();
  5056. uint ReadUInt();
  5057. uint64 ReadUInt64();
  5058. uint16 ReadUShort();
  5059. uint ReadVLE();
  5060. Variant ReadVariant();
  5061. VariantMap ReadVariantMap();
  5062. Vector2 ReadVector2();
  5063. Vector3 ReadVector3();
  5064. Vector4 ReadVector4();
  5065. VectorBuffer ReadVectorBuffer(uint);
  5066. uint Seek(uint);
  5067. // Properties:
  5068. /* readonly */
  5069. uint availableSize;
  5070. /* readonly */
  5071. uint checksum;
  5072. /* readonly */
  5073. bool eof;
  5074. /* readonly */
  5075. String error;
  5076. /* readonly */
  5077. String name;
  5078. /* readonly */
  5079. bool open;
  5080. /* readonly */
  5081. uint position;
  5082. /* readonly */
  5083. int refs;
  5084. /* readonly */
  5085. uint size;
  5086. /* readonly */
  5087. HttpRequestState state;
  5088. /* readonly */
  5089. String url;
  5090. /* readonly */
  5091. String verb;
  5092. /* readonly */
  5093. int weakRefs;
  5094. };
  5095. class Image
  5096. {
  5097. // Methods:
  5098. void Clear(const Color&);
  5099. void ClearInt(uint);
  5100. bool FlipHorizontal();
  5101. bool FlipVertical();
  5102. Color GetPixel(int, int) const;
  5103. Color GetPixel(int, int, int) const;
  5104. Color GetPixelBilinear(float, float) const;
  5105. uint GetPixelInt(int, int) const;
  5106. uint GetPixelInt(int, int, int) const;
  5107. Color GetPixelTrilinear(float, float, float) const;
  5108. Image GetSubimage(const IntRect&) const;
  5109. bool HasSubscribedToEvent(Object, const String&);
  5110. bool HasSubscribedToEvent(const String&);
  5111. bool Load(File);
  5112. bool Load(VectorBuffer&);
  5113. bool LoadColorLUT(File);
  5114. bool LoadColorLUT(VectorBuffer&);
  5115. bool Resize(int, int);
  5116. bool Save(File) const;
  5117. bool Save(VectorBuffer&) const;
  5118. bool SaveBMP(const String&) const;
  5119. bool SaveJPG(const String&, int) const;
  5120. bool SavePNG(const String&) const;
  5121. bool SaveTGA(const String&) const;
  5122. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5123. void SetPixel(int, int, const Color&);
  5124. void SetPixel(int, int, int, const Color&);
  5125. void SetPixelInt(int, int, int, uint);
  5126. void SetPixelInt(int, int, uint);
  5127. bool SetSize(int, int, int, uint);
  5128. bool SetSize(int, int, uint);
  5129. // Properties:
  5130. /* readonly */
  5131. bool array;
  5132. /* readonly */
  5133. String category;
  5134. /* readonly */
  5135. uint components;
  5136. /* readonly */
  5137. bool compressed;
  5138. /* readonly */
  5139. CompressedFormat compressedFormat;
  5140. /* readonly */
  5141. bool cubemap;
  5142. /* readonly */
  5143. int depth;
  5144. /* readonly */
  5145. int height;
  5146. /* readonly */
  5147. uint memoryUse;
  5148. String name;
  5149. /* readonly */
  5150. uint numCompressedLevels;
  5151. /* readonly */
  5152. int refs;
  5153. /* readonly */
  5154. bool sRGB;
  5155. /* readonly */
  5156. StringHash type;
  5157. /* readonly */
  5158. String typeName;
  5159. /* readonly */
  5160. uint useTimer;
  5161. /* readonly */
  5162. int weakRefs;
  5163. /* readonly */
  5164. int width;
  5165. };
  5166. class IndexBuffer
  5167. {
  5168. // Methods:
  5169. VectorBuffer GetData();
  5170. bool HasSubscribedToEvent(Object, const String&);
  5171. bool HasSubscribedToEvent(const String&);
  5172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5173. bool SetData(VectorBuffer&);
  5174. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5175. void SetSize(uint, bool, bool = false);
  5176. // Properties:
  5177. /* readonly */
  5178. String category;
  5179. /* readonly */
  5180. bool dynamic;
  5181. /* readonly */
  5182. uint indexCount;
  5183. /* readonly */
  5184. uint indexSize;
  5185. /* readonly */
  5186. int refs;
  5187. bool shadowed;
  5188. /* readonly */
  5189. StringHash type;
  5190. /* readonly */
  5191. String typeName;
  5192. /* readonly */
  5193. int weakRefs;
  5194. };
  5195. class Input
  5196. {
  5197. // Methods:
  5198. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5199. int GetKeyFromName(const String&) const;
  5200. int GetKeyFromScancode(int) const;
  5201. String GetKeyName(int) const;
  5202. int GetScancodeFromKey(int) const;
  5203. int GetScancodeFromName(const String&) const;
  5204. String GetScancodeName(int) const;
  5205. bool HasSubscribedToEvent(Object, const String&);
  5206. bool HasSubscribedToEvent(const String&);
  5207. uint LoadGestures(File);
  5208. uint LoadGestures(VectorBuffer&);
  5209. bool RecordGesture();
  5210. void RemoveAllGestures();
  5211. bool RemoveGesture(uint);
  5212. bool RemoveScreenJoystick(int);
  5213. void ResetMouseGrabbed();
  5214. void ResetMouseMode();
  5215. void ResetMouseVisible();
  5216. bool SaveGesture(File, uint);
  5217. bool SaveGesture(VectorBuffer&, uint);
  5218. bool SaveGestures(File);
  5219. bool SaveGestures(VectorBuffer&);
  5220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5221. void SetMouseGrabbed(bool, bool = false);
  5222. void SetMouseMode(MouseMode, bool = false);
  5223. void SetMouseVisible(bool, bool = false);
  5224. // Properties:
  5225. /* readonly */
  5226. String category;
  5227. /* readonly */
  5228. bool focus;
  5229. /* readonly */
  5230. Array<JoystickState> joysticks;
  5231. /* readonly */
  5232. Array<JoystickState> joysticksByIndex;
  5233. /* readonly */
  5234. Array<JoystickState> joysticksByName;
  5235. /* readonly */
  5236. Array<bool> keyDown;
  5237. /* readonly */
  5238. Array<bool> keyPress;
  5239. /* readonly */
  5240. bool minimized;
  5241. /* readonly */
  5242. Array<bool> mouseButtonDown;
  5243. /* readonly */
  5244. Array<bool> mouseButtonPress;
  5245. bool mouseGrabbed;
  5246. /* readonly */
  5247. bool mouseLocked;
  5248. MouseMode mouseMode;
  5249. /* readonly */
  5250. IntVector2 mouseMove;
  5251. /* readonly */
  5252. int mouseMoveWheel;
  5253. /* readonly */
  5254. int mouseMoveX;
  5255. /* readonly */
  5256. int mouseMoveY;
  5257. /* readonly */
  5258. IntVector2 mousePosition;
  5259. bool mouseVisible;
  5260. /* readonly */
  5261. uint numJoysticks;
  5262. /* readonly */
  5263. uint numTouches;
  5264. /* readonly */
  5265. Array<bool> qualifierDown;
  5266. /* readonly */
  5267. Array<bool> qualifierPress;
  5268. /* readonly */
  5269. int qualifiers;
  5270. /* readonly */
  5271. int refs;
  5272. /* readonly */
  5273. Array<bool> scancodeDown;
  5274. /* readonly */
  5275. Array<bool> scancodePress;
  5276. Array<bool> screenJoystickVisible;
  5277. /* readonly */
  5278. bool screenKeyboardSupport;
  5279. bool screenKeyboardVisible;
  5280. bool toggleFullscreen;
  5281. bool touchEmulation;
  5282. /* readonly */
  5283. Array<TouchState> touches;
  5284. /* readonly */
  5285. StringHash type;
  5286. /* readonly */
  5287. String typeName;
  5288. /* readonly */
  5289. int weakRefs;
  5290. };
  5291. class IntRect
  5292. {
  5293. // Methods:
  5294. Intersection IsInside(const IntVector2&) const;
  5295. // Properties:
  5296. int bottom;
  5297. /* readonly */
  5298. Array<int> data;
  5299. /* readonly */
  5300. int height;
  5301. int left;
  5302. int right;
  5303. /* readonly */
  5304. IntVector2 size;
  5305. int top;
  5306. /* readonly */
  5307. int width;
  5308. };
  5309. class IntVector2
  5310. {
  5311. // Methods:
  5312. String ToString() const;
  5313. // Properties:
  5314. /* readonly */
  5315. Array<int> data;
  5316. int x;
  5317. int y;
  5318. };
  5319. class JSONFile
  5320. {
  5321. // Methods:
  5322. bool FromString(const String&);
  5323. JSONValue& GetRoot();
  5324. bool HasSubscribedToEvent(Object, const String&);
  5325. bool HasSubscribedToEvent(const String&);
  5326. bool Load(File);
  5327. bool Load(VectorBuffer&);
  5328. bool Save(File) const;
  5329. bool Save(File, const String&) const;
  5330. bool Save(VectorBuffer&) const;
  5331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5332. // Properties:
  5333. /* readonly */
  5334. String category;
  5335. /* readonly */
  5336. uint memoryUse;
  5337. String name;
  5338. /* readonly */
  5339. int refs;
  5340. /* readonly */
  5341. JSONValue root;
  5342. /* readonly */
  5343. StringHash type;
  5344. /* readonly */
  5345. String typeName;
  5346. /* readonly */
  5347. uint useTimer;
  5348. /* readonly */
  5349. int weakRefs;
  5350. };
  5351. class JSONValue
  5352. {
  5353. // Methods:
  5354. void Clear();
  5355. bool Contains(const String&) const;
  5356. void Erase(const String&);
  5357. void Erase(uint, uint = 1);
  5358. bool GetBool() const;
  5359. double GetDouble() const;
  5360. float GetFloat() const;
  5361. int GetInt() const;
  5362. uint GetUInt() const;
  5363. void Insert(uint, const JSONValue&);
  5364. const JSONValue& Get(const String&) const;
  5365. void Pop();
  5366. void Push(const JSONValue&);
  5367. void Resize(uint);
  5368. void Set(const String&, const JSONValue&);
  5369. const String& GetString() const;
  5370. // Properties:
  5371. /* readonly */
  5372. bool isArray;
  5373. /* readonly */
  5374. bool isBool;
  5375. /* readonly */
  5376. bool isNull;
  5377. /* readonly */
  5378. bool isNumber;
  5379. /* readonly */
  5380. bool isObject;
  5381. /* readonly */
  5382. bool isString;
  5383. /* readonly */
  5384. uint size;
  5385. /* readonly */
  5386. JSONValueType valueType;
  5387. };
  5388. class JoystickState
  5389. {
  5390. // Properties:
  5391. /* readonly */
  5392. Array<float> axisPosition;
  5393. /* readonly */
  5394. Array<bool> buttonDown;
  5395. /* readonly */
  5396. Array<bool> buttonPress;
  5397. /* readonly */
  5398. bool controller;
  5399. /* readonly */
  5400. Array<int> hatPosition;
  5401. int joystickID;
  5402. String name;
  5403. /* readonly */
  5404. uint numAxes;
  5405. /* readonly */
  5406. uint numButtons;
  5407. /* readonly */
  5408. uint numHats;
  5409. };
  5410. class Light
  5411. {
  5412. // Methods:
  5413. void ApplyAttributes();
  5414. void DrawDebugGeometry(DebugRenderer, bool);
  5415. Variant GetAttribute(const String&) const;
  5416. ValueAnimation GetAttributeAnimation(const String&) const;
  5417. float GetAttributeAnimationSpeed(const String&) const;
  5418. float GetAttributeAnimationTime(const String&) const;
  5419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5420. Variant GetAttributeDefault(const String&) const;
  5421. bool GetInterceptNetworkUpdate(const String&) const;
  5422. bool HasSubscribedToEvent(Object, const String&);
  5423. bool HasSubscribedToEvent(const String&);
  5424. bool IsInView(Camera) const;
  5425. bool Load(File, bool = false);
  5426. bool Load(VectorBuffer&, bool = false);
  5427. bool LoadJSON(const JSONValue&, bool = false);
  5428. bool LoadXML(const XMLElement&, bool = false);
  5429. void MarkNetworkUpdate() const;
  5430. void Remove();
  5431. void RemoveAttributeAnimation(const String&);
  5432. void RemoveInstanceDefault();
  5433. void RemoveObjectAnimation();
  5434. void ResetToDefault();
  5435. bool Save(File) const;
  5436. bool Save(VectorBuffer&) const;
  5437. bool SaveJSON(JSONValue&) const;
  5438. bool SaveXML(XMLElement&) const;
  5439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5440. void SetAnimationTime(float);
  5441. bool SetAttribute(const String&, const Variant&);
  5442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5443. void SetAttributeAnimationSpeed(const String&, float);
  5444. void SetAttributeAnimationTime(const String&, float);
  5445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5446. void SetInterceptNetworkUpdate(const String&, bool);
  5447. // Properties:
  5448. bool animationEnabled;
  5449. float aspectRatio;
  5450. /* readonly */
  5451. Array<Variant> attributeDefaults;
  5452. /* readonly */
  5453. Array<AttributeInfo> attributeInfos;
  5454. Array<Variant> attributes;
  5455. /* readonly */
  5456. BoundingBox boundingBox;
  5457. float brightness;
  5458. bool castShadows;
  5459. /* readonly */
  5460. String category;
  5461. Color color;
  5462. float drawDistance;
  5463. /* readonly */
  5464. Color effectiveColor;
  5465. /* readonly */
  5466. float effectiveSpecularIntensity;
  5467. bool enabled;
  5468. /* readonly */
  5469. bool enabledEffective;
  5470. float fadeDistance;
  5471. float fov;
  5472. /* readonly */
  5473. Frustum frustum;
  5474. /* readonly */
  5475. uint id;
  5476. /* readonly */
  5477. bool inView;
  5478. uint lightMask;
  5479. LightType lightType;
  5480. float lodBias;
  5481. uint maxLights;
  5482. /* readonly */
  5483. bool negative;
  5484. /* readonly */
  5485. Node node;
  5486. /* readonly */
  5487. uint numAttributes;
  5488. /* readonly */
  5489. int numShadowSplits;
  5490. ObjectAnimation objectAnimation;
  5491. bool occludee;
  5492. bool occluder;
  5493. bool perVertex;
  5494. Texture rampTexture;
  5495. float range;
  5496. /* readonly */
  5497. int refs;
  5498. BiasParameters shadowBias;
  5499. CascadeParameters shadowCascade;
  5500. float shadowDistance;
  5501. float shadowFadeDistance;
  5502. FocusParameters shadowFocus;
  5503. float shadowIntensity;
  5504. uint shadowMask;
  5505. float shadowNearFarRatio;
  5506. float shadowResolution;
  5507. Texture shapeTexture;
  5508. float specularIntensity;
  5509. bool temporary;
  5510. /* readonly */
  5511. StringHash type;
  5512. /* readonly */
  5513. String typeName;
  5514. uint viewMask;
  5515. /* readonly */
  5516. int weakRefs;
  5517. /* readonly */
  5518. BoundingBox worldBoundingBox;
  5519. uint zoneMask;
  5520. };
  5521. class LineEdit
  5522. {
  5523. // Methods:
  5524. void AddChild(UIElement);
  5525. void AddTag(const String&);
  5526. void AddTags(const String&, int8 = ';');
  5527. void ApplyAttributes();
  5528. void BringToFront();
  5529. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5530. void DisableLayoutUpdate();
  5531. IntVector2 ElementToScreen(const IntVector2&);
  5532. void EnableLayoutUpdate();
  5533. uint FindChild(UIElement) const;
  5534. Variant GetAttribute(const String&) const;
  5535. ValueAnimation GetAttributeAnimation(const String&) const;
  5536. float GetAttributeAnimationSpeed(const String&) const;
  5537. float GetAttributeAnimationTime(const String&) const;
  5538. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5539. Variant GetAttributeDefault(const String&) const;
  5540. UIElement GetChild(const String&, bool = false) const;
  5541. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5542. Array<UIElement> GetChildren(bool = false) const;
  5543. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5544. UIElement GetElementEventSender() const;
  5545. bool GetInterceptNetworkUpdate(const String&) const;
  5546. uint GetNumChildren(bool) const;
  5547. bool HasSubscribedToEvent(Object, const String&);
  5548. bool HasSubscribedToEvent(const String&);
  5549. bool HasTag(const String&) const;
  5550. void InsertChild(uint, UIElement);
  5551. bool IsInside(IntVector2, bool);
  5552. bool IsInsideCombined(IntVector2, bool);
  5553. bool Load(File, bool = false);
  5554. bool Load(VectorBuffer&, bool = false);
  5555. bool LoadChildXML(XMLFile, XMLFile = null);
  5556. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5557. bool LoadJSON(const JSONValue&, bool = false);
  5558. bool LoadXML(File);
  5559. bool LoadXML(VectorBuffer&);
  5560. bool LoadXML(XMLFile, XMLFile);
  5561. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5562. bool LoadXML(const XMLElement&, bool = false);
  5563. void MarkNetworkUpdate() const;
  5564. void Remove();
  5565. void RemoveAllChildren();
  5566. void RemoveAllTags();
  5567. void RemoveAttributeAnimation(const String&);
  5568. void RemoveChild(UIElement, uint = 0);
  5569. void RemoveChild(uint);
  5570. void RemoveInstanceDefault();
  5571. void RemoveObjectAnimation();
  5572. bool RemoveTag(const String&);
  5573. void ResetDeepEnabled();
  5574. void ResetToDefault();
  5575. bool Save(File) const;
  5576. bool Save(VectorBuffer&) const;
  5577. bool SaveJSON(JSONValue&) const;
  5578. bool SaveXML(File, const String& = "\t");
  5579. bool SaveXML(VectorBuffer&, const String& = "\t");
  5580. bool SaveXML(XMLElement&) const;
  5581. IntVector2 ScreenToElement(const IntVector2&);
  5582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5583. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5584. void SetAnimationTime(float);
  5585. bool SetAttribute(const String&, const Variant&);
  5586. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5587. void SetAttributeAnimationSpeed(const String&, float);
  5588. void SetAttributeAnimationTime(const String&, float);
  5589. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5590. void SetDeepEnabled(bool);
  5591. void SetEnabledRecursive(bool);
  5592. void SetFixedHeight(int);
  5593. void SetFixedSize(int, int);
  5594. void SetFixedWidth(int);
  5595. void SetFullImageRect();
  5596. void SetHoverOffset(int, int);
  5597. void SetInterceptNetworkUpdate(const String&, bool);
  5598. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5599. void SetMaxSize(int, int);
  5600. void SetMinSize(int, int);
  5601. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5602. void SetPosition(int, int);
  5603. void SetSize(int, int);
  5604. bool SetStyle(const String&, XMLFile = null);
  5605. bool SetStyle(const XMLElement&);
  5606. bool SetStyleAuto(XMLFile = null);
  5607. void UpdateLayout();
  5608. const Variant& GetVar(const StringHash&);
  5609. // Properties:
  5610. bool animationEnabled;
  5611. /* readonly */
  5612. Array<Variant> attributeDefaults;
  5613. /* readonly */
  5614. Array<AttributeInfo> attributeInfos;
  5615. Array<Variant> attributes;
  5616. BlendMode blendMode;
  5617. IntRect border;
  5618. bool bringToBack;
  5619. bool bringToFront;
  5620. /* readonly */
  5621. String category;
  5622. /* readonly */
  5623. IntVector2 childOffset;
  5624. /* readonly */
  5625. Array<UIElement> children;
  5626. IntRect clipBorder;
  5627. bool clipChildren;
  5628. /* writeonly */
  5629. Color color;
  5630. /* readonly */
  5631. bool colorGradient;
  5632. Array<Color> colors;
  5633. /* readonly */
  5634. IntRect combinedScreenRect;
  5635. /* readonly */
  5636. BorderImage cursor;
  5637. float cursorBlinkRate;
  5638. bool cursorMovable;
  5639. uint cursorPosition;
  5640. XMLFile defaultStyle;
  5641. /* readonly */
  5642. float derivedOpacity;
  5643. /* readonly */
  5644. uint dragButtonCombo;
  5645. /* readonly */
  5646. int dragButtonCount;
  5647. uint dragDropMode;
  5648. uint echoCharacter;
  5649. bool editable;
  5650. bool elementEventSender;
  5651. bool enabled;
  5652. /* readonly */
  5653. bool enabledSelf;
  5654. /* readonly */
  5655. bool fixedHeight;
  5656. /* readonly */
  5657. bool fixedSize;
  5658. /* readonly */
  5659. bool fixedWidth;
  5660. bool focus;
  5661. FocusMode focusMode;
  5662. int height;
  5663. HorizontalAlignment horizontalAlignment;
  5664. IntVector2 hoverOffset;
  5665. /* readonly */
  5666. bool hovering;
  5667. IntRect imageBorder;
  5668. IntRect imageRect;
  5669. int indent;
  5670. int indentSpacing;
  5671. /* readonly */
  5672. int indentWidth;
  5673. bool internal;
  5674. IntRect layoutBorder;
  5675. Vector2 layoutFlexScale;
  5676. LayoutMode layoutMode;
  5677. int layoutSpacing;
  5678. int maxHeight;
  5679. uint maxLength;
  5680. IntVector2 maxSize;
  5681. int maxWidth;
  5682. int minHeight;
  5683. IntVector2 minSize;
  5684. int minWidth;
  5685. String name;
  5686. /* readonly */
  5687. uint numAllChildren;
  5688. /* readonly */
  5689. uint numAttributes;
  5690. /* readonly */
  5691. uint numChildren;
  5692. ObjectAnimation objectAnimation;
  5693. float opacity;
  5694. UIElement parent;
  5695. IntVector2 position;
  5696. int priority;
  5697. /* readonly */
  5698. int refs;
  5699. /* readonly */
  5700. UIElement root;
  5701. /* readonly */
  5702. IntVector2 screenPosition;
  5703. bool selected;
  5704. IntVector2 size;
  5705. bool sortChildren;
  5706. String style;
  5707. /* readonly */
  5708. Array<String> tags;
  5709. bool temporary;
  5710. String text;
  5711. bool textCopyable;
  5712. /* readonly */
  5713. Text textElement;
  5714. bool textSelectable;
  5715. Texture texture;
  5716. bool tiled;
  5717. TraversalMode traversalMode;
  5718. /* readonly */
  5719. StringHash type;
  5720. /* readonly */
  5721. String typeName;
  5722. bool useDerivedOpacity;
  5723. /* readonly */
  5724. VariantMap vars;
  5725. VerticalAlignment verticalAlignment;
  5726. bool visible;
  5727. /* readonly */
  5728. bool visibleEffective;
  5729. /* readonly */
  5730. int weakRefs;
  5731. int width;
  5732. };
  5733. class ListView
  5734. {
  5735. // Methods:
  5736. void AddChild(UIElement);
  5737. void AddItem(UIElement);
  5738. void AddSelection(uint);
  5739. void AddTag(const String&);
  5740. void AddTags(const String&, int8 = ';');
  5741. void ApplyAttributes();
  5742. void BringToFront();
  5743. void ChangeSelection(int, bool);
  5744. void ClearSelection();
  5745. void CopySelectedItemsToClipboard();
  5746. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5747. void DisableLayoutUpdate();
  5748. IntVector2 ElementToScreen(const IntVector2&);
  5749. void EnableLayoutUpdate();
  5750. void Expand(uint, bool, bool = false);
  5751. uint FindChild(UIElement) const;
  5752. uint FindItem(UIElement);
  5753. Variant GetAttribute(const String&) const;
  5754. ValueAnimation GetAttributeAnimation(const String&) const;
  5755. float GetAttributeAnimationSpeed(const String&) const;
  5756. float GetAttributeAnimationTime(const String&) const;
  5757. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5758. Variant GetAttributeDefault(const String&) const;
  5759. UIElement GetChild(const String&, bool = false) const;
  5760. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5761. Array<UIElement> GetChildren(bool = false) const;
  5762. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5763. UIElement GetElementEventSender() const;
  5764. bool GetInterceptNetworkUpdate(const String&) const;
  5765. Array<UIElement> GetItems() const;
  5766. uint GetNumChildren(bool) const;
  5767. bool HasSubscribedToEvent(Object, const String&);
  5768. bool HasSubscribedToEvent(const String&);
  5769. bool HasTag(const String&) const;
  5770. void InsertChild(uint, UIElement);
  5771. void InsertItem(uint, UIElement, UIElement = null);
  5772. bool IsExpanded(uint) const;
  5773. bool IsInside(IntVector2, bool);
  5774. bool IsInsideCombined(IntVector2, bool);
  5775. bool IsSelected(uint) const;
  5776. bool Load(File, bool = false);
  5777. bool Load(VectorBuffer&, bool = false);
  5778. bool LoadChildXML(XMLFile, XMLFile = null);
  5779. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5780. bool LoadJSON(const JSONValue&, bool = false);
  5781. bool LoadXML(File);
  5782. bool LoadXML(VectorBuffer&);
  5783. bool LoadXML(XMLFile, XMLFile);
  5784. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5785. bool LoadXML(const XMLElement&, bool = false);
  5786. void MarkNetworkUpdate() const;
  5787. void Remove();
  5788. void RemoveAllChildren();
  5789. void RemoveAllItems();
  5790. void RemoveAllTags();
  5791. void RemoveAttributeAnimation(const String&);
  5792. void RemoveChild(UIElement, uint = 0);
  5793. void RemoveChild(uint);
  5794. void RemoveInstanceDefault();
  5795. void RemoveItem(UIElement, uint = 0);
  5796. void RemoveItem(uint);
  5797. void RemoveObjectAnimation();
  5798. void RemoveSelection(uint);
  5799. bool RemoveTag(const String&);
  5800. void ResetDeepEnabled();
  5801. void ResetToDefault();
  5802. bool Save(File) const;
  5803. bool Save(VectorBuffer&) const;
  5804. bool SaveJSON(JSONValue&) const;
  5805. bool SaveXML(File, const String& = "\t");
  5806. bool SaveXML(VectorBuffer&, const String& = "\t");
  5807. bool SaveXML(XMLElement&) const;
  5808. IntVector2 ScreenToElement(const IntVector2&);
  5809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5810. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5811. void SetAnimationTime(float);
  5812. bool SetAttribute(const String&, const Variant&);
  5813. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5814. void SetAttributeAnimationSpeed(const String&, float);
  5815. void SetAttributeAnimationTime(const String&, float);
  5816. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5817. void SetDeepEnabled(bool);
  5818. void SetEnabledRecursive(bool);
  5819. void SetFixedHeight(int);
  5820. void SetFixedSize(int, int);
  5821. void SetFixedWidth(int);
  5822. void SetInterceptNetworkUpdate(const String&, bool);
  5823. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5824. void SetMaxSize(int, int);
  5825. void SetMinSize(int, int);
  5826. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5827. void SetPosition(int, int);
  5828. void SetScrollBarsVisible(bool, bool);
  5829. void SetSelections(Array<uint>);
  5830. void SetSize(int, int);
  5831. bool SetStyle(const String&, XMLFile = null);
  5832. bool SetStyle(const XMLElement&);
  5833. bool SetStyleAuto(XMLFile = null);
  5834. void SetViewPosition(int, int);
  5835. void ToggleExpand(uint, bool = false);
  5836. void ToggleSelection(uint);
  5837. void UpdateLayout();
  5838. const Variant& GetVar(const StringHash&);
  5839. // Properties:
  5840. bool animationEnabled;
  5841. /* readonly */
  5842. Array<Variant> attributeDefaults;
  5843. /* readonly */
  5844. Array<AttributeInfo> attributeInfos;
  5845. Array<Variant> attributes;
  5846. bool autoDisableChildren;
  5847. float autoDisableThreshold;
  5848. int baseIndent;
  5849. bool bringToBack;
  5850. bool bringToFront;
  5851. /* readonly */
  5852. String category;
  5853. /* readonly */
  5854. IntVector2 childOffset;
  5855. /* readonly */
  5856. Array<UIElement> children;
  5857. bool clearSelectionOnDefocus;
  5858. IntRect clipBorder;
  5859. bool clipChildren;
  5860. /* writeonly */
  5861. Color color;
  5862. /* readonly */
  5863. bool colorGradient;
  5864. Array<Color> colors;
  5865. /* readonly */
  5866. IntRect combinedScreenRect;
  5867. /* readonly */
  5868. UIElement contentElement;
  5869. XMLFile defaultStyle;
  5870. /* readonly */
  5871. float derivedOpacity;
  5872. /* readonly */
  5873. uint dragButtonCombo;
  5874. /* readonly */
  5875. int dragButtonCount;
  5876. uint dragDropMode;
  5877. bool editable;
  5878. bool elementEventSender;
  5879. bool enabled;
  5880. /* readonly */
  5881. bool enabledSelf;
  5882. /* readonly */
  5883. bool fixedHeight;
  5884. /* readonly */
  5885. bool fixedSize;
  5886. /* readonly */
  5887. bool fixedWidth;
  5888. bool focus;
  5889. FocusMode focusMode;
  5890. int height;
  5891. bool hierarchyMode;
  5892. HighlightMode highlightMode;
  5893. HorizontalAlignment horizontalAlignment;
  5894. /* readonly */
  5895. ScrollBar horizontalScrollBar;
  5896. /* readonly */
  5897. bool hovering;
  5898. int indent;
  5899. int indentSpacing;
  5900. /* readonly */
  5901. int indentWidth;
  5902. bool internal;
  5903. /* readonly */
  5904. Array<UIElement> items;
  5905. IntRect layoutBorder;
  5906. Vector2 layoutFlexScale;
  5907. LayoutMode layoutMode;
  5908. int layoutSpacing;
  5909. int maxHeight;
  5910. IntVector2 maxSize;
  5911. int maxWidth;
  5912. int minHeight;
  5913. IntVector2 minSize;
  5914. int minWidth;
  5915. bool multiselect;
  5916. String name;
  5917. /* readonly */
  5918. uint numAllChildren;
  5919. /* readonly */
  5920. uint numAttributes;
  5921. /* readonly */
  5922. uint numChildren;
  5923. /* readonly */
  5924. uint numItems;
  5925. ObjectAnimation objectAnimation;
  5926. float opacity;
  5927. float pageStep;
  5928. UIElement parent;
  5929. IntVector2 position;
  5930. int priority;
  5931. /* readonly */
  5932. int refs;
  5933. /* readonly */
  5934. UIElement root;
  5935. /* readonly */
  5936. IntVector2 screenPosition;
  5937. bool scrollBarsAutoVisible;
  5938. float scrollDeceleration;
  5939. /* readonly */
  5940. BorderImage scrollPanel;
  5941. float scrollSnapEpsilon;
  5942. float scrollStep;
  5943. bool selectOnClickEnd;
  5944. bool selected;
  5945. /* readonly */
  5946. UIElement selectedItem;
  5947. /* readonly */
  5948. Array<UIElement> selectedItems;
  5949. uint selection;
  5950. /* readonly */
  5951. Array<uint> selections;
  5952. IntVector2 size;
  5953. bool sortChildren;
  5954. String style;
  5955. /* readonly */
  5956. Array<String> tags;
  5957. bool temporary;
  5958. TraversalMode traversalMode;
  5959. /* readonly */
  5960. StringHash type;
  5961. /* readonly */
  5962. String typeName;
  5963. bool useDerivedOpacity;
  5964. /* readonly */
  5965. VariantMap vars;
  5966. VerticalAlignment verticalAlignment;
  5967. /* readonly */
  5968. ScrollBar verticalScrollBar;
  5969. IntVector2 viewPosition;
  5970. bool visible;
  5971. /* readonly */
  5972. bool visibleEffective;
  5973. /* readonly */
  5974. int weakRefs;
  5975. int width;
  5976. };
  5977. class Localization
  5978. {
  5979. // Methods:
  5980. String Get(const String&);
  5981. String GetLanguage(int);
  5982. int GetLanguageIndex(const String&);
  5983. bool HasSubscribedToEvent(Object, const String&);
  5984. bool HasSubscribedToEvent(const String&);
  5985. void LoadJSON(const JSONValue&);
  5986. void LoadJSONFile(const String&);
  5987. void Reset();
  5988. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5989. void SetLanguage(const String&);
  5990. void SetLanguage(int);
  5991. // Properties:
  5992. /* readonly */
  5993. String category;
  5994. /* readonly */
  5995. String language;
  5996. /* readonly */
  5997. int languageIndex;
  5998. /* readonly */
  5999. int numLanguages;
  6000. /* readonly */
  6001. int refs;
  6002. /* readonly */
  6003. StringHash type;
  6004. /* readonly */
  6005. String typeName;
  6006. /* readonly */
  6007. int weakRefs;
  6008. };
  6009. class Log
  6010. {
  6011. // Methods:
  6012. void Close();
  6013. void Debug(const String&);
  6014. void Error(const String&);
  6015. bool HasSubscribedToEvent(Object, const String&);
  6016. bool HasSubscribedToEvent(const String&);
  6017. void Info(const String&);
  6018. void Open(const String&);
  6019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6020. void Warning(const String&);
  6021. void Write(const String&, bool = false);
  6022. // Properties:
  6023. /* readonly */
  6024. String category;
  6025. /* readonly */
  6026. String lastMessage;
  6027. int level;
  6028. bool quiet;
  6029. /* readonly */
  6030. int refs;
  6031. bool timeStamp;
  6032. /* readonly */
  6033. StringHash type;
  6034. /* readonly */
  6035. String typeName;
  6036. /* readonly */
  6037. int weakRefs;
  6038. };
  6039. class Material
  6040. {
  6041. // Methods:
  6042. Material Clone(const String& = String ( )) const;
  6043. Pass GetPass(uint, const String&);
  6044. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6045. float GetShaderParameterAnimationSpeed(const String&) const;
  6046. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6047. bool HasSubscribedToEvent(Object, const String&);
  6048. bool HasSubscribedToEvent(const String&);
  6049. bool Load(File);
  6050. bool Load(VectorBuffer&);
  6051. bool Load(const JSONValue&);
  6052. bool Load(const XMLElement&);
  6053. void RemoveShaderParameter(const String&);
  6054. bool Save(File) const;
  6055. bool Save(JSONValue&) const;
  6056. bool Save(VectorBuffer&) const;
  6057. bool Save(XMLElement&) const;
  6058. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6059. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6060. void SetShaderParameterAnimationSpeed(const String&, float);
  6061. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6062. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6063. void SetUVTransform(const Vector2&, float, const Vector2&);
  6064. void SetUVTransform(const Vector2&, float, float);
  6065. void SortTechniques();
  6066. // Properties:
  6067. /* readonly */
  6068. String category;
  6069. CullMode cullMode;
  6070. BiasParameters depthBias;
  6071. FillMode fillMode;
  6072. /* readonly */
  6073. uint memoryUse;
  6074. String name;
  6075. uint numTechniques;
  6076. /* readonly */
  6077. bool occlusion;
  6078. /* readonly */
  6079. int refs;
  6080. uint8 renderOrder;
  6081. Scene scene;
  6082. /* readonly */
  6083. Array<String> shaderParameterNames;
  6084. Array<Variant> shaderParameters;
  6085. CullMode shadowCullMode;
  6086. /* readonly */
  6087. Array<TechniqueEntry> techniqueEntries;
  6088. /* readonly */
  6089. Array<Technique> techniques;
  6090. Array<Texture> textures;
  6091. /* readonly */
  6092. StringHash type;
  6093. /* readonly */
  6094. String typeName;
  6095. /* readonly */
  6096. uint useTimer;
  6097. /* readonly */
  6098. int weakRefs;
  6099. };
  6100. class Matrix2
  6101. {
  6102. // Methods:
  6103. bool Equals(const Matrix2&) const;
  6104. Matrix2 Inverse() const;
  6105. Vector2 Scale() const;
  6106. Matrix2 Scaled(const Vector2&) const;
  6107. void SetScale(const Vector2&);
  6108. void SetScale(float);
  6109. String ToString() const;
  6110. Matrix2 Transpose() const;
  6111. // Properties:
  6112. float m00;
  6113. float m01;
  6114. float m10;
  6115. float m11;
  6116. };
  6117. class Matrix3
  6118. {
  6119. // Methods:
  6120. bool Equals(const Matrix3&) const;
  6121. Matrix3 Inverse() const;
  6122. Vector3 Scale() const;
  6123. Matrix3 Scaled(const Vector3&) const;
  6124. void SetScale(const Vector3&);
  6125. void SetScale(float);
  6126. String ToString() const;
  6127. Matrix3 Transpose() const;
  6128. // Properties:
  6129. float m00;
  6130. float m01;
  6131. float m02;
  6132. float m10;
  6133. float m11;
  6134. float m12;
  6135. float m20;
  6136. float m21;
  6137. float m22;
  6138. };
  6139. class Matrix3x4
  6140. {
  6141. // Methods:
  6142. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6143. bool Equals(const Matrix3x4&) const;
  6144. Matrix3x4 Inverse() const;
  6145. Quaternion Rotation() const;
  6146. Matrix3 RotationMatrix() const;
  6147. Vector3 Scale() const;
  6148. void SetRotation(const Matrix3&);
  6149. void SetScale(const Vector3&);
  6150. void SetScale(float);
  6151. void SetTranslation(const Vector3&);
  6152. Matrix3 ToMatrix3() const;
  6153. Matrix4 ToMatrix4() const;
  6154. String ToString() const;
  6155. Vector3 Translation() const;
  6156. // Properties:
  6157. float m00;
  6158. float m01;
  6159. float m02;
  6160. float m03;
  6161. float m10;
  6162. float m11;
  6163. float m12;
  6164. float m13;
  6165. float m20;
  6166. float m21;
  6167. float m22;
  6168. float m23;
  6169. };
  6170. class Matrix4
  6171. {
  6172. // Methods:
  6173. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6174. bool Equals(const Matrix4&) const;
  6175. Matrix4 Inverse() const;
  6176. Quaternion Rotation() const;
  6177. Matrix3 RotationMatrix() const;
  6178. Vector3 Scale() const;
  6179. void SetRotation(const Matrix3&);
  6180. void SetScale(const Vector3&);
  6181. void SetScale(float);
  6182. void SetTranslation(const Vector3&);
  6183. Matrix3 ToMatrix3() const;
  6184. String ToString() const;
  6185. Vector3 Translation() const;
  6186. Matrix4 Transpose() const;
  6187. // Properties:
  6188. float m00;
  6189. float m01;
  6190. float m02;
  6191. float m03;
  6192. float m10;
  6193. float m11;
  6194. float m12;
  6195. float m13;
  6196. float m20;
  6197. float m21;
  6198. float m22;
  6199. float m23;
  6200. float m30;
  6201. float m31;
  6202. float m32;
  6203. float m33;
  6204. };
  6205. class Menu
  6206. {
  6207. // Methods:
  6208. void AddChild(UIElement);
  6209. void AddTag(const String&);
  6210. void AddTags(const String&, int8 = ';');
  6211. void ApplyAttributes();
  6212. void BringToFront();
  6213. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6214. void DisableLayoutUpdate();
  6215. IntVector2 ElementToScreen(const IntVector2&);
  6216. void EnableLayoutUpdate();
  6217. uint FindChild(UIElement) const;
  6218. Variant GetAttribute(const String&) const;
  6219. ValueAnimation GetAttributeAnimation(const String&) const;
  6220. float GetAttributeAnimationSpeed(const String&) const;
  6221. float GetAttributeAnimationTime(const String&) const;
  6222. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6223. Variant GetAttributeDefault(const String&) const;
  6224. UIElement GetChild(const String&, bool = false) const;
  6225. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6226. Array<UIElement> GetChildren(bool = false) const;
  6227. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6228. UIElement GetElementEventSender() const;
  6229. bool GetInterceptNetworkUpdate(const String&) const;
  6230. uint GetNumChildren(bool) const;
  6231. bool HasSubscribedToEvent(Object, const String&);
  6232. bool HasSubscribedToEvent(const String&);
  6233. bool HasTag(const String&) const;
  6234. void InsertChild(uint, UIElement);
  6235. bool IsInside(IntVector2, bool);
  6236. bool IsInsideCombined(IntVector2, bool);
  6237. bool Load(File, bool = false);
  6238. bool Load(VectorBuffer&, bool = false);
  6239. bool LoadChildXML(XMLFile, XMLFile = null);
  6240. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6241. bool LoadJSON(const JSONValue&, bool = false);
  6242. bool LoadXML(File);
  6243. bool LoadXML(VectorBuffer&);
  6244. bool LoadXML(XMLFile, XMLFile);
  6245. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6246. bool LoadXML(const XMLElement&, bool = false);
  6247. void MarkNetworkUpdate() const;
  6248. void Remove();
  6249. void RemoveAllChildren();
  6250. void RemoveAllTags();
  6251. void RemoveAttributeAnimation(const String&);
  6252. void RemoveChild(UIElement, uint = 0);
  6253. void RemoveChild(uint);
  6254. void RemoveInstanceDefault();
  6255. void RemoveObjectAnimation();
  6256. bool RemoveTag(const String&);
  6257. void ResetDeepEnabled();
  6258. void ResetToDefault();
  6259. bool Save(File) const;
  6260. bool Save(VectorBuffer&) const;
  6261. bool SaveJSON(JSONValue&) const;
  6262. bool SaveXML(File, const String& = "\t");
  6263. bool SaveXML(VectorBuffer&, const String& = "\t");
  6264. bool SaveXML(XMLElement&) const;
  6265. IntVector2 ScreenToElement(const IntVector2&);
  6266. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6267. void SetAccelerator(int, int);
  6268. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6269. void SetAnimationTime(float);
  6270. bool SetAttribute(const String&, const Variant&);
  6271. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6272. void SetAttributeAnimationSpeed(const String&, float);
  6273. void SetAttributeAnimationTime(const String&, float);
  6274. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6275. void SetDeepEnabled(bool);
  6276. void SetEnabledRecursive(bool);
  6277. void SetFixedHeight(int);
  6278. void SetFixedSize(int, int);
  6279. void SetFixedWidth(int);
  6280. void SetFullImageRect();
  6281. void SetHoverOffset(int, int);
  6282. void SetInterceptNetworkUpdate(const String&, bool);
  6283. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6284. void SetMaxSize(int, int);
  6285. void SetMinSize(int, int);
  6286. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6287. void SetPopupOffset(int, int);
  6288. void SetPosition(int, int);
  6289. void SetPressedChildOffset(int, int);
  6290. void SetPressedOffset(int, int);
  6291. void SetRepeat(float, float);
  6292. void SetSize(int, int);
  6293. bool SetStyle(const String&, XMLFile = null);
  6294. bool SetStyle(const XMLElement&);
  6295. bool SetStyleAuto(XMLFile = null);
  6296. void UpdateLayout();
  6297. const Variant& GetVar(const StringHash&);
  6298. // Properties:
  6299. /* readonly */
  6300. int acceleratorKey;
  6301. /* readonly */
  6302. int acceleratorQualifiers;
  6303. bool animationEnabled;
  6304. /* readonly */
  6305. Array<Variant> attributeDefaults;
  6306. /* readonly */
  6307. Array<AttributeInfo> attributeInfos;
  6308. Array<Variant> attributes;
  6309. BlendMode blendMode;
  6310. IntRect border;
  6311. bool bringToBack;
  6312. bool bringToFront;
  6313. /* readonly */
  6314. String category;
  6315. /* readonly */
  6316. IntVector2 childOffset;
  6317. /* readonly */
  6318. Array<UIElement> children;
  6319. IntRect clipBorder;
  6320. bool clipChildren;
  6321. /* writeonly */
  6322. Color color;
  6323. /* readonly */
  6324. bool colorGradient;
  6325. Array<Color> colors;
  6326. /* readonly */
  6327. IntRect combinedScreenRect;
  6328. XMLFile defaultStyle;
  6329. /* readonly */
  6330. float derivedOpacity;
  6331. /* readonly */
  6332. uint dragButtonCombo;
  6333. /* readonly */
  6334. int dragButtonCount;
  6335. uint dragDropMode;
  6336. bool editable;
  6337. bool elementEventSender;
  6338. bool enabled;
  6339. /* readonly */
  6340. bool enabledSelf;
  6341. /* readonly */
  6342. bool fixedHeight;
  6343. /* readonly */
  6344. bool fixedSize;
  6345. /* readonly */
  6346. bool fixedWidth;
  6347. bool focus;
  6348. FocusMode focusMode;
  6349. int height;
  6350. HorizontalAlignment horizontalAlignment;
  6351. IntVector2 hoverOffset;
  6352. /* readonly */
  6353. bool hovering;
  6354. IntRect imageBorder;
  6355. IntRect imageRect;
  6356. int indent;
  6357. int indentSpacing;
  6358. /* readonly */
  6359. int indentWidth;
  6360. bool internal;
  6361. IntRect layoutBorder;
  6362. Vector2 layoutFlexScale;
  6363. LayoutMode layoutMode;
  6364. int layoutSpacing;
  6365. int maxHeight;
  6366. IntVector2 maxSize;
  6367. int maxWidth;
  6368. int minHeight;
  6369. IntVector2 minSize;
  6370. int minWidth;
  6371. String name;
  6372. /* readonly */
  6373. uint numAllChildren;
  6374. /* readonly */
  6375. uint numAttributes;
  6376. /* readonly */
  6377. uint numChildren;
  6378. ObjectAnimation objectAnimation;
  6379. float opacity;
  6380. UIElement parent;
  6381. UIElement popup;
  6382. IntVector2 popupOffset;
  6383. IntVector2 position;
  6384. /* readonly */
  6385. bool pressed;
  6386. IntVector2 pressedChildOffset;
  6387. IntVector2 pressedOffset;
  6388. int priority;
  6389. /* readonly */
  6390. int refs;
  6391. float repeatDelay;
  6392. float repeatRate;
  6393. /* readonly */
  6394. UIElement root;
  6395. /* readonly */
  6396. IntVector2 screenPosition;
  6397. bool selected;
  6398. bool showPopup;
  6399. IntVector2 size;
  6400. bool sortChildren;
  6401. String style;
  6402. /* readonly */
  6403. Array<String> tags;
  6404. bool temporary;
  6405. Texture texture;
  6406. bool tiled;
  6407. TraversalMode traversalMode;
  6408. /* readonly */
  6409. StringHash type;
  6410. /* readonly */
  6411. String typeName;
  6412. bool useDerivedOpacity;
  6413. /* readonly */
  6414. VariantMap vars;
  6415. VerticalAlignment verticalAlignment;
  6416. bool visible;
  6417. /* readonly */
  6418. bool visibleEffective;
  6419. /* readonly */
  6420. int weakRefs;
  6421. int width;
  6422. };
  6423. class MessageBox
  6424. {
  6425. // Methods:
  6426. bool HasSubscribedToEvent(Object, const String&);
  6427. bool HasSubscribedToEvent(const String&);
  6428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6429. // Properties:
  6430. /* readonly */
  6431. String category;
  6432. String message;
  6433. /* readonly */
  6434. int refs;
  6435. String title;
  6436. /* readonly */
  6437. StringHash type;
  6438. /* readonly */
  6439. String typeName;
  6440. /* readonly */
  6441. int weakRefs;
  6442. /* readonly */
  6443. UIElement window;
  6444. };
  6445. class Model
  6446. {
  6447. // Methods:
  6448. Model Clone(const String& = String ( )) const;
  6449. Geometry GetGeometry(uint, uint) const;
  6450. bool HasSubscribedToEvent(Object, const String&);
  6451. bool HasSubscribedToEvent(const String&);
  6452. bool Load(File);
  6453. bool Load(VectorBuffer&);
  6454. bool Save(File) const;
  6455. bool Save(VectorBuffer&) const;
  6456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6457. bool SetGeometry(uint, uint, Geometry);
  6458. // Properties:
  6459. BoundingBox boundingBox;
  6460. /* readonly */
  6461. String category;
  6462. Array<Vector3> geometryCenters;
  6463. /* readonly */
  6464. uint memoryUse;
  6465. String name;
  6466. uint numGeometries;
  6467. Array<uint> numGeometryLodLevels;
  6468. /* readonly */
  6469. uint numMorphs;
  6470. /* readonly */
  6471. int refs;
  6472. /* readonly */
  6473. Skeleton skeleton;
  6474. /* readonly */
  6475. StringHash type;
  6476. /* readonly */
  6477. String typeName;
  6478. /* readonly */
  6479. uint useTimer;
  6480. /* readonly */
  6481. int weakRefs;
  6482. };
  6483. class NamedPipe
  6484. {
  6485. // Methods:
  6486. void Close();
  6487. bool HasSubscribedToEvent(Object, const String&);
  6488. bool HasSubscribedToEvent(const String&);
  6489. bool Open(const String&, bool);
  6490. Array<uint8> Read(uint);
  6491. bool ReadBool();
  6492. BoundingBox ReadBoundingBox();
  6493. int8 ReadByte();
  6494. Color ReadColor();
  6495. double ReadDouble();
  6496. String ReadFileID();
  6497. float ReadFloat();
  6498. int ReadInt();
  6499. int64 ReadInt64();
  6500. IntRect ReadIntRect();
  6501. IntVector2 ReadIntVector2();
  6502. String ReadLine();
  6503. Matrix3 ReadMatrix3();
  6504. Matrix3x4 ReadMatrix3x4();
  6505. Matrix4 ReadMatrix4();
  6506. uint ReadNetID();
  6507. Quaternion ReadPackedQuaternion();
  6508. Vector3 ReadPackedVector3(float);
  6509. Quaternion ReadQuaternion();
  6510. int16 ReadShort();
  6511. String ReadString();
  6512. StringHash ReadStringHash();
  6513. uint8 ReadUByte();
  6514. uint ReadUInt();
  6515. uint64 ReadUInt64();
  6516. uint16 ReadUShort();
  6517. uint ReadVLE();
  6518. Variant ReadVariant();
  6519. VariantMap ReadVariantMap();
  6520. Vector2 ReadVector2();
  6521. Vector3 ReadVector3();
  6522. Vector4 ReadVector4();
  6523. VectorBuffer ReadVectorBuffer(uint);
  6524. uint Seek(uint);
  6525. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6526. uint Write(Array<uint8>);
  6527. bool WriteBool(bool);
  6528. bool WriteBoundingBox(const BoundingBox&);
  6529. bool WriteByte(int8);
  6530. bool WriteColor(const Color&);
  6531. bool WriteDouble(double);
  6532. bool WriteFileID(const String&);
  6533. bool WriteFloat(float);
  6534. bool WriteInt(int);
  6535. bool WriteInt64(int64);
  6536. bool WriteIntRect(const IntRect&);
  6537. bool WriteIntVector2(const IntVector2&);
  6538. bool WriteLine(const String&);
  6539. bool WriteMatrix3(const Matrix3&);
  6540. bool WriteMatrix3x4(const Matrix3x4&);
  6541. bool WriteMatrix4(const Matrix4&);
  6542. bool WriteNetID(uint);
  6543. bool WritePackedQuaternion(const Quaternion&);
  6544. bool WritePackedVector3(const Vector3&, float);
  6545. bool WriteQuaternion(const Quaternion&);
  6546. bool WriteShort(int16);
  6547. bool WriteString(const String&);
  6548. bool WriteStringHash(const StringHash&);
  6549. bool WriteUByte(uint8);
  6550. bool WriteUInt(uint);
  6551. bool WriteUInt64(uint64);
  6552. bool WriteUShort(uint16);
  6553. bool WriteVLE(uint);
  6554. bool WriteVariant(const Variant&);
  6555. bool WriteVariantMap(const VariantMap&);
  6556. bool WriteVector2(const Vector2&);
  6557. bool WriteVector3(const Vector3&);
  6558. bool WriteVector4(const Vector4&);
  6559. bool WriteVectorBuffer(const VectorBuffer&);
  6560. // Properties:
  6561. /* readonly */
  6562. String category;
  6563. /* readonly */
  6564. uint checksum;
  6565. /* readonly */
  6566. bool eof;
  6567. /* readonly */
  6568. String name;
  6569. /* readonly */
  6570. bool open;
  6571. /* readonly */
  6572. uint position;
  6573. /* readonly */
  6574. int refs;
  6575. /* readonly */
  6576. bool server;
  6577. /* readonly */
  6578. uint size;
  6579. /* readonly */
  6580. StringHash type;
  6581. /* readonly */
  6582. String typeName;
  6583. /* readonly */
  6584. int weakRefs;
  6585. };
  6586. class NavArea
  6587. {
  6588. // Methods:
  6589. void ApplyAttributes();
  6590. void DrawDebugGeometry(DebugRenderer, bool);
  6591. Variant GetAttribute(const String&) const;
  6592. ValueAnimation GetAttributeAnimation(const String&) const;
  6593. float GetAttributeAnimationSpeed(const String&) const;
  6594. float GetAttributeAnimationTime(const String&) const;
  6595. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6596. Variant GetAttributeDefault(const String&) const;
  6597. bool GetInterceptNetworkUpdate(const String&) const;
  6598. bool HasSubscribedToEvent(Object, const String&);
  6599. bool HasSubscribedToEvent(const String&);
  6600. bool Load(File, bool = false);
  6601. bool Load(VectorBuffer&, bool = false);
  6602. bool LoadJSON(const JSONValue&, bool = false);
  6603. bool LoadXML(const XMLElement&, bool = false);
  6604. void MarkNetworkUpdate() const;
  6605. void Remove();
  6606. void RemoveAttributeAnimation(const String&);
  6607. void RemoveInstanceDefault();
  6608. void RemoveObjectAnimation();
  6609. void ResetToDefault();
  6610. bool Save(File) const;
  6611. bool Save(VectorBuffer&) const;
  6612. bool SaveJSON(JSONValue&) const;
  6613. bool SaveXML(XMLElement&) const;
  6614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6615. void SetAnimationTime(float);
  6616. bool SetAttribute(const String&, const Variant&);
  6617. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6618. void SetAttributeAnimationSpeed(const String&, float);
  6619. void SetAttributeAnimationTime(const String&, float);
  6620. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6621. void SetInterceptNetworkUpdate(const String&, bool);
  6622. // Properties:
  6623. bool animationEnabled;
  6624. uint areaID;
  6625. /* readonly */
  6626. Array<Variant> attributeDefaults;
  6627. /* readonly */
  6628. Array<AttributeInfo> attributeInfos;
  6629. Array<Variant> attributes;
  6630. BoundingBox boundingBox;
  6631. /* readonly */
  6632. String category;
  6633. bool enabled;
  6634. /* readonly */
  6635. bool enabledEffective;
  6636. /* readonly */
  6637. uint id;
  6638. /* readonly */
  6639. Node node;
  6640. /* readonly */
  6641. uint numAttributes;
  6642. ObjectAnimation objectAnimation;
  6643. /* readonly */
  6644. int refs;
  6645. bool temporary;
  6646. /* readonly */
  6647. StringHash type;
  6648. /* readonly */
  6649. String typeName;
  6650. /* readonly */
  6651. int weakRefs;
  6652. /* readonly */
  6653. BoundingBox worldBoundingBox;
  6654. };
  6655. class Navigable
  6656. {
  6657. // Methods:
  6658. void ApplyAttributes();
  6659. void DrawDebugGeometry(DebugRenderer, bool);
  6660. Variant GetAttribute(const String&) const;
  6661. ValueAnimation GetAttributeAnimation(const String&) const;
  6662. float GetAttributeAnimationSpeed(const String&) const;
  6663. float GetAttributeAnimationTime(const String&) const;
  6664. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6665. Variant GetAttributeDefault(const String&) const;
  6666. bool GetInterceptNetworkUpdate(const String&) const;
  6667. bool HasSubscribedToEvent(Object, const String&);
  6668. bool HasSubscribedToEvent(const String&);
  6669. bool Load(File, bool = false);
  6670. bool Load(VectorBuffer&, bool = false);
  6671. bool LoadJSON(const JSONValue&, bool = false);
  6672. bool LoadXML(const XMLElement&, bool = false);
  6673. void MarkNetworkUpdate() const;
  6674. void Remove();
  6675. void RemoveAttributeAnimation(const String&);
  6676. void RemoveInstanceDefault();
  6677. void RemoveObjectAnimation();
  6678. void ResetToDefault();
  6679. bool Save(File) const;
  6680. bool Save(VectorBuffer&) const;
  6681. bool SaveJSON(JSONValue&) const;
  6682. bool SaveXML(XMLElement&) const;
  6683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6684. void SetAnimationTime(float);
  6685. bool SetAttribute(const String&, const Variant&);
  6686. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6687. void SetAttributeAnimationSpeed(const String&, float);
  6688. void SetAttributeAnimationTime(const String&, float);
  6689. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6690. void SetInterceptNetworkUpdate(const String&, bool);
  6691. // Properties:
  6692. bool animationEnabled;
  6693. /* readonly */
  6694. Array<Variant> attributeDefaults;
  6695. /* readonly */
  6696. Array<AttributeInfo> attributeInfos;
  6697. Array<Variant> attributes;
  6698. /* readonly */
  6699. String category;
  6700. bool enabled;
  6701. /* readonly */
  6702. bool enabledEffective;
  6703. /* readonly */
  6704. uint id;
  6705. /* readonly */
  6706. Node node;
  6707. /* readonly */
  6708. uint numAttributes;
  6709. ObjectAnimation objectAnimation;
  6710. bool recursive;
  6711. /* readonly */
  6712. int refs;
  6713. bool temporary;
  6714. /* readonly */
  6715. StringHash type;
  6716. /* readonly */
  6717. String typeName;
  6718. /* readonly */
  6719. int weakRefs;
  6720. };
  6721. class NavigationMesh
  6722. {
  6723. // Methods:
  6724. void ApplyAttributes();
  6725. bool Build();
  6726. bool Build(const BoundingBox&);
  6727. void DrawDebugGeometry(DebugRenderer, bool);
  6728. void DrawDebugGeometry(bool);
  6729. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6730. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6731. float GetAreaCost(uint) const;
  6732. Variant GetAttribute(const String&) const;
  6733. ValueAnimation GetAttributeAnimation(const String&) const;
  6734. float GetAttributeAnimationSpeed(const String&) const;
  6735. float GetAttributeAnimationTime(const String&) const;
  6736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6737. Variant GetAttributeDefault(const String&) const;
  6738. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6739. bool GetInterceptNetworkUpdate(const String&) const;
  6740. Vector3 GetRandomPoint();
  6741. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6742. bool HasSubscribedToEvent(Object, const String&);
  6743. bool HasSubscribedToEvent(const String&);
  6744. bool Load(File, bool = false);
  6745. bool Load(VectorBuffer&, bool = false);
  6746. bool LoadJSON(const JSONValue&, bool = false);
  6747. bool LoadXML(const XMLElement&, bool = false);
  6748. void MarkNetworkUpdate() const;
  6749. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6750. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6751. void Remove();
  6752. void RemoveAttributeAnimation(const String&);
  6753. void RemoveInstanceDefault();
  6754. void RemoveObjectAnimation();
  6755. void ResetToDefault();
  6756. bool Save(File) const;
  6757. bool Save(VectorBuffer&) const;
  6758. bool SaveJSON(JSONValue&) const;
  6759. bool SaveXML(XMLElement&) const;
  6760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6761. void SetAnimationTime(float);
  6762. void SetAreaCost(uint, float);
  6763. bool SetAttribute(const String&, const Variant&);
  6764. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6765. void SetAttributeAnimationSpeed(const String&, float);
  6766. void SetAttributeAnimationTime(const String&, float);
  6767. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6768. void SetInterceptNetworkUpdate(const String&, bool);
  6769. // Properties:
  6770. float agentHeight;
  6771. float agentMaxClimb;
  6772. float agentMaxSlope;
  6773. float agentRadius;
  6774. bool animationEnabled;
  6775. /* readonly */
  6776. Array<Variant> attributeDefaults;
  6777. /* readonly */
  6778. Array<AttributeInfo> attributeInfos;
  6779. Array<Variant> attributes;
  6780. /* readonly */
  6781. BoundingBox boundingBox;
  6782. /* readonly */
  6783. String category;
  6784. float cellHeight;
  6785. float cellSize;
  6786. float detailSampleDistance;
  6787. float detailSampleMaxError;
  6788. bool drawNavAreas;
  6789. bool drawOffMeshConnections;
  6790. float edgeMaxError;
  6791. float edgeMaxLength;
  6792. bool enabled;
  6793. /* readonly */
  6794. bool enabledEffective;
  6795. /* readonly */
  6796. uint id;
  6797. /* readonly */
  6798. bool initialized;
  6799. /* readonly */
  6800. Node node;
  6801. /* readonly */
  6802. uint numAttributes;
  6803. /* readonly */
  6804. IntVector2 numTiles;
  6805. ObjectAnimation objectAnimation;
  6806. Vector3 padding;
  6807. NavmeshPartitionType partitionType;
  6808. /* readonly */
  6809. int refs;
  6810. float regionMergeSize;
  6811. float regionMinSize;
  6812. bool temporary;
  6813. int tileSize;
  6814. /* readonly */
  6815. StringHash type;
  6816. /* readonly */
  6817. String typeName;
  6818. /* readonly */
  6819. int weakRefs;
  6820. /* readonly */
  6821. BoundingBox worldBoundingBox;
  6822. };
  6823. class Network
  6824. {
  6825. // Methods:
  6826. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6827. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6828. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6829. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6830. bool CheckRemoteEvent(const String&) const;
  6831. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6832. void Disconnect(int = 0);
  6833. bool HasSubscribedToEvent(Object, const String&);
  6834. bool HasSubscribedToEvent(const String&);
  6835. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6836. void RegisterRemoteEvent(const String&) const;
  6837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6838. void SendPackageToClients(Scene, PackageFile);
  6839. bool StartServer(uint16);
  6840. void StopServer();
  6841. void UnregisterAllRemoteEvents();
  6842. void UnregisterRemoteEvent(const String&) const;
  6843. // Properties:
  6844. /* readonly */
  6845. String category;
  6846. /* readonly */
  6847. Array<Connection> clientConnections;
  6848. String packageCacheDir;
  6849. /* readonly */
  6850. int refs;
  6851. /* readonly */
  6852. Connection serverConnection;
  6853. /* readonly */
  6854. bool serverRunning;
  6855. int simulatedLatency;
  6856. float simulatedPacketLoss;
  6857. /* readonly */
  6858. StringHash type;
  6859. /* readonly */
  6860. String typeName;
  6861. int updateFps;
  6862. /* readonly */
  6863. int weakRefs;
  6864. };
  6865. class NetworkPriority
  6866. {
  6867. // Methods:
  6868. void ApplyAttributes();
  6869. void DrawDebugGeometry(DebugRenderer, bool);
  6870. Variant GetAttribute(const String&) const;
  6871. ValueAnimation GetAttributeAnimation(const String&) const;
  6872. float GetAttributeAnimationSpeed(const String&) const;
  6873. float GetAttributeAnimationTime(const String&) const;
  6874. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6875. Variant GetAttributeDefault(const String&) const;
  6876. bool GetInterceptNetworkUpdate(const String&) const;
  6877. bool HasSubscribedToEvent(Object, const String&);
  6878. bool HasSubscribedToEvent(const String&);
  6879. bool Load(File, bool = false);
  6880. bool Load(VectorBuffer&, bool = false);
  6881. bool LoadJSON(const JSONValue&, bool = false);
  6882. bool LoadXML(const XMLElement&, bool = false);
  6883. void MarkNetworkUpdate() const;
  6884. void Remove();
  6885. void RemoveAttributeAnimation(const String&);
  6886. void RemoveInstanceDefault();
  6887. void RemoveObjectAnimation();
  6888. void ResetToDefault();
  6889. bool Save(File) const;
  6890. bool Save(VectorBuffer&) const;
  6891. bool SaveJSON(JSONValue&) const;
  6892. bool SaveXML(XMLElement&) const;
  6893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6894. void SetAnimationTime(float);
  6895. bool SetAttribute(const String&, const Variant&);
  6896. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6897. void SetAttributeAnimationSpeed(const String&, float);
  6898. void SetAttributeAnimationTime(const String&, float);
  6899. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6900. void SetInterceptNetworkUpdate(const String&, bool);
  6901. // Properties:
  6902. bool alwaysUpdateOwner;
  6903. bool animationEnabled;
  6904. /* readonly */
  6905. Array<Variant> attributeDefaults;
  6906. /* readonly */
  6907. Array<AttributeInfo> attributeInfos;
  6908. Array<Variant> attributes;
  6909. float basePriority;
  6910. /* readonly */
  6911. String category;
  6912. float distanceFactor;
  6913. bool enabled;
  6914. /* readonly */
  6915. bool enabledEffective;
  6916. /* readonly */
  6917. uint id;
  6918. float minPriority;
  6919. /* readonly */
  6920. Node node;
  6921. /* readonly */
  6922. uint numAttributes;
  6923. ObjectAnimation objectAnimation;
  6924. /* readonly */
  6925. int refs;
  6926. bool temporary;
  6927. /* readonly */
  6928. StringHash type;
  6929. /* readonly */
  6930. String typeName;
  6931. /* readonly */
  6932. int weakRefs;
  6933. };
  6934. class Node
  6935. {
  6936. // Methods:
  6937. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6938. void AddTag(const String&);
  6939. void AddTags(const String&, int8 = ';');
  6940. void ApplyAttributes();
  6941. Node Clone(CreateMode = REPLICATED);
  6942. Component CloneComponent(Component, CreateMode, uint = 0);
  6943. Component CloneComponent(Component, uint = 0);
  6944. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6945. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6946. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6947. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6948. Variant GetAttribute(const String&) const;
  6949. ValueAnimation GetAttributeAnimation(const String&) const;
  6950. float GetAttributeAnimationSpeed(const String&) const;
  6951. float GetAttributeAnimationTime(const String&) const;
  6952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6953. Variant GetAttributeDefault(const String&) const;
  6954. Node GetChild(const String&, bool = false) const;
  6955. Array<Node> GetChildren(bool = false) const;
  6956. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6957. Array<Node> GetChildrenWithScript(bool = false) const;
  6958. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6959. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6960. Component GetComponent(const String&, bool = false) const;
  6961. Array<Component> GetComponents() const;
  6962. Array<Component> GetComponents(const String&, bool = false) const;
  6963. bool GetInterceptNetworkUpdate(const String&) const;
  6964. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6965. Component GetParentComponent(const String&, bool = false) const;
  6966. ScriptObject GetScriptObject() const;
  6967. ScriptObject GetScriptObject(const String&) const;
  6968. bool HasComponent(const String&) const;
  6969. bool HasSubscribedToEvent(Object, const String&);
  6970. bool HasSubscribedToEvent(const String&);
  6971. bool HasTag(const String&);
  6972. bool Load(File, bool = false);
  6973. bool Load(VectorBuffer&, bool = false);
  6974. bool LoadJSON(const JSONValue&, bool = false);
  6975. bool LoadXML(const XMLElement&, bool = false);
  6976. Vector3 LocalToWorld(const Vector3&) const;
  6977. Vector3 LocalToWorld(const Vector4&) const;
  6978. Vector2 LocalToWorld2D(const Vector2&) const;
  6979. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6980. void MarkDirty();
  6981. void MarkNetworkUpdate() const;
  6982. void Pitch(float, TransformSpace = TS_LOCAL);
  6983. void Remove();
  6984. void RemoveAllChildren();
  6985. void RemoveAllComponents();
  6986. void RemoveAllTags();
  6987. void RemoveAttributeAnimation(const String&);
  6988. void RemoveChild(Node);
  6989. void RemoveChildren(bool, bool, bool);
  6990. void RemoveComponent(Component);
  6991. void RemoveComponent(const String&);
  6992. void RemoveComponents(bool, bool);
  6993. void RemoveComponents(const String&);
  6994. void RemoveInstanceDefault();
  6995. void RemoveObjectAnimation();
  6996. bool RemoveTag(const String&);
  6997. void ResetDeepEnabled();
  6998. void ResetToDefault();
  6999. void Roll(float, TransformSpace = TS_LOCAL);
  7000. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7001. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7002. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7003. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7004. bool Save(File) const;
  7005. bool Save(VectorBuffer&) const;
  7006. bool SaveJSON(File);
  7007. bool SaveJSON(JSONValue&) const;
  7008. bool SaveJSON(VectorBuffer&);
  7009. bool SaveXML(File, const String& = "\t");
  7010. bool SaveXML(VectorBuffer&, const String& = "\t");
  7011. bool SaveXML(XMLElement&) const;
  7012. void Scale(const Vector3&);
  7013. void Scale(float);
  7014. void Scale2D(const Vector2&);
  7015. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7016. void SetAnimationTime(float);
  7017. bool SetAttribute(const String&, const Variant&);
  7018. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7019. void SetAttributeAnimationSpeed(const String&, float);
  7020. void SetAttributeAnimationTime(const String&, float);
  7021. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7022. void SetDeepEnabled(bool);
  7023. void SetEnabledRecursive(bool);
  7024. void SetInterceptNetworkUpdate(const String&, bool);
  7025. void SetPosition2D(float, float);
  7026. void SetScale(float);
  7027. void SetScale2D(float, float);
  7028. void SetTransform(const Vector3&, const Quaternion&);
  7029. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7030. void SetTransform(const Vector3&, const Quaternion&, float);
  7031. void SetTransform2D(const Vector2&, float);
  7032. void SetTransform2D(const Vector2&, float, const Vector2&);
  7033. void SetTransform2D(const Vector2&, float, float);
  7034. void SetWorldTransform(const Vector3&, const Quaternion&);
  7035. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7036. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7037. void SetWorldTransform2D(const Vector2&, float);
  7038. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7039. void SetWorldTransform2D(const Vector2&, float, float);
  7040. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7041. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7042. Vector3 WorldToLocal(const Vector3&) const;
  7043. Vector3 WorldToLocal(const Vector4&) const;
  7044. Vector2 WorldToLocal2D(const Vector2&) const;
  7045. void Yaw(float, TransformSpace = TS_LOCAL);
  7046. // Properties:
  7047. bool animationEnabled;
  7048. /* readonly */
  7049. Array<Variant> attributeDefaults;
  7050. /* readonly */
  7051. Array<AttributeInfo> attributeInfos;
  7052. Array<Variant> attributes;
  7053. /* readonly */
  7054. String category;
  7055. /* readonly */
  7056. Array<Node> children;
  7057. /* readonly */
  7058. Array<Component> components;
  7059. Vector3 direction;
  7060. bool enabled;
  7061. /* readonly */
  7062. bool enabledSelf;
  7063. uint id;
  7064. String name;
  7065. /* readonly */
  7066. uint numAllChildren;
  7067. /* readonly */
  7068. uint numAttributes;
  7069. /* readonly */
  7070. uint numChildren;
  7071. /* readonly */
  7072. uint numComponents;
  7073. ObjectAnimation objectAnimation;
  7074. Connection owner;
  7075. Node parent;
  7076. Vector3 position;
  7077. Vector2 position2D;
  7078. /* readonly */
  7079. int refs;
  7080. /* readonly */
  7081. Vector3 right;
  7082. Quaternion rotation;
  7083. float rotation2D;
  7084. Vector3 scale;
  7085. Vector2 scale2D;
  7086. /* readonly */
  7087. Scene scene;
  7088. /* readonly */
  7089. ScriptObject scriptObject;
  7090. /* readonly */
  7091. Array<String> tags;
  7092. bool temporary;
  7093. /* readonly */
  7094. Matrix3x4 transform;
  7095. /* readonly */
  7096. StringHash type;
  7097. /* readonly */
  7098. String typeName;
  7099. /* readonly */
  7100. Vector3 up;
  7101. /* readonly */
  7102. VariantMap vars;
  7103. /* readonly */
  7104. int weakRefs;
  7105. Vector3 worldDirection;
  7106. Vector3 worldPosition;
  7107. Vector2 worldPosition2D;
  7108. /* readonly */
  7109. Vector3 worldRight;
  7110. Quaternion worldRotation;
  7111. float worldRotation2D;
  7112. Vector3 worldScale;
  7113. Vector2 worldScale2D;
  7114. /* readonly */
  7115. Matrix3x4 worldTransform;
  7116. /* readonly */
  7117. Vector3 worldUp;
  7118. };
  7119. class Object
  7120. {
  7121. // Methods:
  7122. bool HasSubscribedToEvent(Object, const String&);
  7123. bool HasSubscribedToEvent(const String&);
  7124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7125. // Properties:
  7126. /* readonly */
  7127. String category;
  7128. /* readonly */
  7129. int refs;
  7130. /* readonly */
  7131. StringHash type;
  7132. /* readonly */
  7133. String typeName;
  7134. /* readonly */
  7135. int weakRefs;
  7136. };
  7137. class ObjectAnimation
  7138. {
  7139. // Methods:
  7140. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7141. ValueAnimation GetAttributeAnimation(const String&) const;
  7142. float GetAttributeAnimationSpeed(const String&) const;
  7143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7144. bool HasSubscribedToEvent(Object, const String&);
  7145. bool HasSubscribedToEvent(const String&);
  7146. bool Load(File);
  7147. bool Load(VectorBuffer&);
  7148. void RemoveAttributeAnimation(ValueAnimation);
  7149. void RemoveAttributeAnimation(const String&);
  7150. bool Save(File) const;
  7151. bool Save(VectorBuffer&) const;
  7152. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7153. // Properties:
  7154. /* readonly */
  7155. Array<Variant> attributeAnimations;
  7156. /* readonly */
  7157. String category;
  7158. /* readonly */
  7159. uint memoryUse;
  7160. String name;
  7161. /* readonly */
  7162. int refs;
  7163. /* readonly */
  7164. Array<Variant> speeds;
  7165. /* readonly */
  7166. StringHash type;
  7167. /* readonly */
  7168. String typeName;
  7169. /* readonly */
  7170. uint useTimer;
  7171. /* readonly */
  7172. int weakRefs;
  7173. /* readonly */
  7174. Array<Variant> wrapModes;
  7175. };
  7176. class Obstacle
  7177. {
  7178. // Methods:
  7179. void ApplyAttributes();
  7180. void DrawDebugGeometry(DebugRenderer, bool);
  7181. void DrawDebugGeometry(bool);
  7182. Variant GetAttribute(const String&) const;
  7183. ValueAnimation GetAttributeAnimation(const String&) const;
  7184. float GetAttributeAnimationSpeed(const String&) const;
  7185. float GetAttributeAnimationTime(const String&) const;
  7186. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7187. Variant GetAttributeDefault(const String&) const;
  7188. bool GetInterceptNetworkUpdate(const String&) const;
  7189. bool HasSubscribedToEvent(Object, const String&);
  7190. bool HasSubscribedToEvent(const String&);
  7191. bool Load(File, bool = false);
  7192. bool Load(VectorBuffer&, bool = false);
  7193. bool LoadJSON(const JSONValue&, bool = false);
  7194. bool LoadXML(const XMLElement&, bool = false);
  7195. void MarkNetworkUpdate() const;
  7196. void Remove();
  7197. void RemoveAttributeAnimation(const String&);
  7198. void RemoveInstanceDefault();
  7199. void RemoveObjectAnimation();
  7200. void ResetToDefault();
  7201. bool Save(File) const;
  7202. bool Save(VectorBuffer&) const;
  7203. bool SaveJSON(JSONValue&) const;
  7204. bool SaveXML(XMLElement&) const;
  7205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7206. void SetAnimationTime(float);
  7207. bool SetAttribute(const String&, const Variant&);
  7208. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7209. void SetAttributeAnimationSpeed(const String&, float);
  7210. void SetAttributeAnimationTime(const String&, float);
  7211. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7212. void SetInterceptNetworkUpdate(const String&, bool);
  7213. // Properties:
  7214. bool animationEnabled;
  7215. /* readonly */
  7216. Array<Variant> attributeDefaults;
  7217. /* readonly */
  7218. Array<AttributeInfo> attributeInfos;
  7219. Array<Variant> attributes;
  7220. /* readonly */
  7221. String category;
  7222. bool enabled;
  7223. /* readonly */
  7224. bool enabledEffective;
  7225. float height;
  7226. /* readonly */
  7227. uint id;
  7228. /* readonly */
  7229. Node node;
  7230. /* readonly */
  7231. uint numAttributes;
  7232. ObjectAnimation objectAnimation;
  7233. /* readonly */
  7234. uint obstacleId;
  7235. float radius;
  7236. /* readonly */
  7237. int refs;
  7238. bool temporary;
  7239. /* readonly */
  7240. StringHash type;
  7241. /* readonly */
  7242. String typeName;
  7243. /* readonly */
  7244. int weakRefs;
  7245. };
  7246. class Octree
  7247. {
  7248. // Methods:
  7249. void AddManualDrawable(Drawable);
  7250. void ApplyAttributes();
  7251. void DrawDebugGeometry(DebugRenderer, bool);
  7252. void DrawDebugGeometry(bool) const;
  7253. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7254. Variant GetAttribute(const String&) const;
  7255. ValueAnimation GetAttributeAnimation(const String&) const;
  7256. float GetAttributeAnimationSpeed(const String&) const;
  7257. float GetAttributeAnimationTime(const String&) const;
  7258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7259. Variant GetAttributeDefault(const String&) const;
  7260. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7261. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7262. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7263. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7264. bool GetInterceptNetworkUpdate(const String&) const;
  7265. bool HasSubscribedToEvent(Object, const String&);
  7266. bool HasSubscribedToEvent(const String&);
  7267. bool Load(File, bool = false);
  7268. bool Load(VectorBuffer&, bool = false);
  7269. bool LoadJSON(const JSONValue&, bool = false);
  7270. bool LoadXML(const XMLElement&, bool = false);
  7271. void MarkNetworkUpdate() const;
  7272. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7273. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7274. void Remove();
  7275. void RemoveAttributeAnimation(const String&);
  7276. void RemoveInstanceDefault();
  7277. void RemoveManualDrawable(Drawable);
  7278. void RemoveObjectAnimation();
  7279. void ResetToDefault();
  7280. bool Save(File) const;
  7281. bool Save(VectorBuffer&) const;
  7282. bool SaveJSON(JSONValue&) const;
  7283. bool SaveXML(XMLElement&) const;
  7284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7285. void SetAnimationTime(float);
  7286. bool SetAttribute(const String&, const Variant&);
  7287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7288. void SetAttributeAnimationSpeed(const String&, float);
  7289. void SetAttributeAnimationTime(const String&, float);
  7290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7291. void SetInterceptNetworkUpdate(const String&, bool);
  7292. void SetSize(const BoundingBox&, uint);
  7293. // Properties:
  7294. bool animationEnabled;
  7295. /* readonly */
  7296. Array<Variant> attributeDefaults;
  7297. /* readonly */
  7298. Array<AttributeInfo> attributeInfos;
  7299. Array<Variant> attributes;
  7300. /* readonly */
  7301. String category;
  7302. bool enabled;
  7303. /* readonly */
  7304. bool enabledEffective;
  7305. /* readonly */
  7306. uint id;
  7307. /* readonly */
  7308. Node node;
  7309. /* readonly */
  7310. uint numAttributes;
  7311. /* readonly */
  7312. uint numLevels;
  7313. ObjectAnimation objectAnimation;
  7314. /* readonly */
  7315. int refs;
  7316. bool temporary;
  7317. /* readonly */
  7318. StringHash type;
  7319. /* readonly */
  7320. String typeName;
  7321. /* readonly */
  7322. int weakRefs;
  7323. /* readonly */
  7324. BoundingBox worldBoundingBox;
  7325. };
  7326. class OffMeshConnection
  7327. {
  7328. // Methods:
  7329. void ApplyAttributes();
  7330. void DrawDebugGeometry(DebugRenderer, bool);
  7331. Variant GetAttribute(const String&) const;
  7332. ValueAnimation GetAttributeAnimation(const String&) const;
  7333. float GetAttributeAnimationSpeed(const String&) const;
  7334. float GetAttributeAnimationTime(const String&) const;
  7335. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7336. Variant GetAttributeDefault(const String&) const;
  7337. bool GetInterceptNetworkUpdate(const String&) const;
  7338. bool HasSubscribedToEvent(Object, const String&);
  7339. bool HasSubscribedToEvent(const String&);
  7340. bool Load(File, bool = false);
  7341. bool Load(VectorBuffer&, bool = false);
  7342. bool LoadJSON(const JSONValue&, bool = false);
  7343. bool LoadXML(const XMLElement&, bool = false);
  7344. void MarkNetworkUpdate() const;
  7345. void Remove();
  7346. void RemoveAttributeAnimation(const String&);
  7347. void RemoveInstanceDefault();
  7348. void RemoveObjectAnimation();
  7349. void ResetToDefault();
  7350. bool Save(File) const;
  7351. bool Save(VectorBuffer&) const;
  7352. bool SaveJSON(JSONValue&) const;
  7353. bool SaveXML(XMLElement&) const;
  7354. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7355. void SetAnimationTime(float);
  7356. bool SetAttribute(const String&, const Variant&);
  7357. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7358. void SetAttributeAnimationSpeed(const String&, float);
  7359. void SetAttributeAnimationTime(const String&, float);
  7360. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7361. void SetInterceptNetworkUpdate(const String&, bool);
  7362. // Properties:
  7363. bool animationEnabled;
  7364. uint areaID;
  7365. /* readonly */
  7366. Array<Variant> attributeDefaults;
  7367. /* readonly */
  7368. Array<AttributeInfo> attributeInfos;
  7369. Array<Variant> attributes;
  7370. bool bidirectional;
  7371. /* readonly */
  7372. String category;
  7373. bool enabled;
  7374. /* readonly */
  7375. bool enabledEffective;
  7376. Node endPoint;
  7377. /* readonly */
  7378. uint id;
  7379. uint mask;
  7380. /* readonly */
  7381. Node node;
  7382. /* readonly */
  7383. uint numAttributes;
  7384. ObjectAnimation objectAnimation;
  7385. float radius;
  7386. /* readonly */
  7387. int refs;
  7388. bool temporary;
  7389. /* readonly */
  7390. StringHash type;
  7391. /* readonly */
  7392. String typeName;
  7393. /* readonly */
  7394. int weakRefs;
  7395. };
  7396. class PackageFile
  7397. {
  7398. // Methods:
  7399. bool Exists(const String&) const;
  7400. Array<String> GetEntryNames() const;
  7401. bool HasSubscribedToEvent(Object, const String&);
  7402. bool HasSubscribedToEvent(const String&);
  7403. bool Open(const String&, uint = 0) const;
  7404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7405. bool compressed() const;
  7406. // Properties:
  7407. /* readonly */
  7408. String category;
  7409. /* readonly */
  7410. uint checksum;
  7411. /* readonly */
  7412. String name;
  7413. /* readonly */
  7414. uint numFiles;
  7415. /* readonly */
  7416. int refs;
  7417. /* readonly */
  7418. uint totalDataSize;
  7419. /* readonly */
  7420. uint totalSize;
  7421. /* readonly */
  7422. StringHash type;
  7423. /* readonly */
  7424. String typeName;
  7425. /* readonly */
  7426. int weakRefs;
  7427. };
  7428. class ParticleEffect
  7429. {
  7430. // Methods:
  7431. void AddColorFrame(ColorFrame);
  7432. void AddColorTime(Color&, float);
  7433. void AddTextureFrame(TextureFrame);
  7434. void AddTextureTime(Rect&, float);
  7435. ParticleEffect Clone(const String& = String ( )) const;
  7436. ColorFrame GetColorFrame(uint) const;
  7437. TextureFrame GetTextureFrame(uint) const;
  7438. bool HasSubscribedToEvent(Object, const String&);
  7439. bool HasSubscribedToEvent(const String&);
  7440. bool Load(File);
  7441. bool Load(VectorBuffer&);
  7442. bool Load(const XMLElement&);
  7443. void RemoveColorFrame(uint);
  7444. void RemoveTextureFrame(uint);
  7445. bool Save(File) const;
  7446. bool Save(VectorBuffer&) const;
  7447. bool Save(XMLElement&) const;
  7448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7449. void SetColorFrame(uint, ColorFrame);
  7450. void SetTextureFrame(uint, TextureFrame);
  7451. void SortColorFrames();
  7452. void SortTextureFrames();
  7453. // Properties:
  7454. float activeTime;
  7455. float animationLodBias;
  7456. /* readonly */
  7457. String category;
  7458. Vector3 constantForce;
  7459. float dampingForce;
  7460. Vector3 emitterSize;
  7461. EmitterType emitterType;
  7462. FaceCameraMode faceCameraMode;
  7463. bool fixedScreenSize;
  7464. float inactiveTime;
  7465. Material material;
  7466. Vector3 maxDirection;
  7467. float maxEmissionRate;
  7468. Vector2 maxParticleSize;
  7469. float maxRotation;
  7470. float maxRotationSpeed;
  7471. float maxTimeToLive;
  7472. float maxVelocity;
  7473. /* readonly */
  7474. uint memoryUse;
  7475. Vector3 minDirection;
  7476. float minEmissionRate;
  7477. Vector2 minParticleSize;
  7478. float minRotation;
  7479. float minRotationSpeed;
  7480. float minTimeToLive;
  7481. float minVelocity;
  7482. String name;
  7483. uint numColorFrames;
  7484. uint numParticles;
  7485. uint numTextureFrames;
  7486. /* readonly */
  7487. int refs;
  7488. bool relative;
  7489. bool scaled;
  7490. float sizeAdd;
  7491. float sizeMul;
  7492. bool sorted;
  7493. /* readonly */
  7494. StringHash type;
  7495. /* readonly */
  7496. String typeName;
  7497. bool updateInvisible;
  7498. /* readonly */
  7499. uint useTimer;
  7500. /* readonly */
  7501. int weakRefs;
  7502. };
  7503. class ParticleEffect2D
  7504. {
  7505. // Methods:
  7506. ParticleEffect2D Clone(const String& = String ( )) const;
  7507. bool HasSubscribedToEvent(Object, const String&);
  7508. bool HasSubscribedToEvent(const String&);
  7509. bool Load(File);
  7510. bool Load(VectorBuffer&);
  7511. bool Save(File) const;
  7512. bool Save(VectorBuffer&) const;
  7513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7514. // Properties:
  7515. /* readonly */
  7516. String category;
  7517. /* readonly */
  7518. uint memoryUse;
  7519. String name;
  7520. /* readonly */
  7521. int refs;
  7522. /* readonly */
  7523. StringHash type;
  7524. /* readonly */
  7525. String typeName;
  7526. /* readonly */
  7527. uint useTimer;
  7528. /* readonly */
  7529. int weakRefs;
  7530. };
  7531. class ParticleEmitter
  7532. {
  7533. // Methods:
  7534. void ApplyAttributes();
  7535. void ApplyEffect();
  7536. void Commit();
  7537. void DrawDebugGeometry(DebugRenderer, bool);
  7538. Variant GetAttribute(const String&) const;
  7539. ValueAnimation GetAttributeAnimation(const String&) const;
  7540. float GetAttributeAnimationSpeed(const String&) const;
  7541. float GetAttributeAnimationTime(const String&) const;
  7542. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7543. Variant GetAttributeDefault(const String&) const;
  7544. bool GetInterceptNetworkUpdate(const String&) const;
  7545. bool HasSubscribedToEvent(Object, const String&);
  7546. bool HasSubscribedToEvent(const String&);
  7547. bool IsInView(Camera) const;
  7548. bool Load(File, bool = false);
  7549. bool Load(VectorBuffer&, bool = false);
  7550. bool LoadJSON(const JSONValue&, bool = false);
  7551. bool LoadXML(const XMLElement&, bool = false);
  7552. void MarkNetworkUpdate() const;
  7553. void Remove();
  7554. void RemoveAllParticles();
  7555. void RemoveAttributeAnimation(const String&);
  7556. void RemoveInstanceDefault();
  7557. void RemoveObjectAnimation();
  7558. void Reset();
  7559. void ResetEmissionTimer();
  7560. void ResetToDefault();
  7561. bool Save(File) const;
  7562. bool Save(VectorBuffer&) const;
  7563. bool SaveJSON(JSONValue&) const;
  7564. bool SaveXML(XMLElement&) const;
  7565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7566. void SetAnimationTime(float);
  7567. bool SetAttribute(const String&, const Variant&);
  7568. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7569. void SetAttributeAnimationSpeed(const String&, float);
  7570. void SetAttributeAnimationTime(const String&, float);
  7571. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7572. void SetInterceptNetworkUpdate(const String&, bool);
  7573. // Properties:
  7574. bool animationEnabled;
  7575. float animationLodBias;
  7576. /* readonly */
  7577. Array<Variant> attributeDefaults;
  7578. /* readonly */
  7579. Array<AttributeInfo> attributeInfos;
  7580. Array<Variant> attributes;
  7581. /* readonly */
  7582. Array<Billboard> billboards;
  7583. /* readonly */
  7584. BoundingBox boundingBox;
  7585. bool castShadows;
  7586. /* readonly */
  7587. String category;
  7588. float drawDistance;
  7589. ParticleEffect effect;
  7590. bool emitting;
  7591. bool enabled;
  7592. /* readonly */
  7593. bool enabledEffective;
  7594. FaceCameraMode faceCameraMode;
  7595. bool fixedScreenSize;
  7596. /* readonly */
  7597. uint id;
  7598. /* readonly */
  7599. bool inView;
  7600. uint lightMask;
  7601. float lodBias;
  7602. Material material;
  7603. uint maxLights;
  7604. /* readonly */
  7605. Node node;
  7606. /* readonly */
  7607. uint numAttributes;
  7608. uint numBillboards;
  7609. uint numParticles;
  7610. ObjectAnimation objectAnimation;
  7611. bool occludee;
  7612. bool occluder;
  7613. /* readonly */
  7614. int refs;
  7615. bool relative;
  7616. bool scaled;
  7617. bool serializeParticles;
  7618. float shadowDistance;
  7619. uint shadowMask;
  7620. bool sorted;
  7621. bool temporary;
  7622. /* readonly */
  7623. StringHash type;
  7624. /* readonly */
  7625. String typeName;
  7626. uint viewMask;
  7627. /* readonly */
  7628. int weakRefs;
  7629. /* readonly */
  7630. BoundingBox worldBoundingBox;
  7631. /* readonly */
  7632. Zone zone;
  7633. uint zoneMask;
  7634. };
  7635. class ParticleEmitter2D
  7636. {
  7637. // Methods:
  7638. void ApplyAttributes();
  7639. void DrawDebugGeometry(DebugRenderer, bool);
  7640. Variant GetAttribute(const String&) const;
  7641. ValueAnimation GetAttributeAnimation(const String&) const;
  7642. float GetAttributeAnimationSpeed(const String&) const;
  7643. float GetAttributeAnimationTime(const String&) const;
  7644. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7645. Variant GetAttributeDefault(const String&) const;
  7646. bool GetInterceptNetworkUpdate(const String&) const;
  7647. bool HasSubscribedToEvent(Object, const String&);
  7648. bool HasSubscribedToEvent(const String&);
  7649. bool IsInView(Camera) const;
  7650. bool Load(File, bool = false);
  7651. bool Load(VectorBuffer&, bool = false);
  7652. bool LoadJSON(const JSONValue&, bool = false);
  7653. bool LoadXML(const XMLElement&, bool = false);
  7654. void MarkNetworkUpdate() const;
  7655. void Remove();
  7656. void RemoveAttributeAnimation(const String&);
  7657. void RemoveInstanceDefault();
  7658. void RemoveObjectAnimation();
  7659. void ResetToDefault();
  7660. bool Save(File) const;
  7661. bool Save(VectorBuffer&) const;
  7662. bool SaveJSON(JSONValue&) const;
  7663. bool SaveXML(XMLElement&) const;
  7664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7665. void SetAnimationTime(float);
  7666. bool SetAttribute(const String&, const Variant&);
  7667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7668. void SetAttributeAnimationSpeed(const String&, float);
  7669. void SetAttributeAnimationTime(const String&, float);
  7670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7671. void SetInterceptNetworkUpdate(const String&, bool);
  7672. // Properties:
  7673. bool animationEnabled;
  7674. /* readonly */
  7675. Array<Variant> attributeDefaults;
  7676. /* readonly */
  7677. Array<AttributeInfo> attributeInfos;
  7678. Array<Variant> attributes;
  7679. BlendMode blendMode;
  7680. /* readonly */
  7681. BoundingBox boundingBox;
  7682. bool castShadows;
  7683. /* readonly */
  7684. String category;
  7685. float drawDistance;
  7686. ParticleEffect2D effect;
  7687. bool enabled;
  7688. /* readonly */
  7689. bool enabledEffective;
  7690. /* readonly */
  7691. uint id;
  7692. /* readonly */
  7693. bool inView;
  7694. int layer;
  7695. uint lightMask;
  7696. float lodBias;
  7697. uint maxLights;
  7698. /* readonly */
  7699. Node node;
  7700. /* readonly */
  7701. uint numAttributes;
  7702. ObjectAnimation objectAnimation;
  7703. bool occludee;
  7704. bool occluder;
  7705. int orderInLayer;
  7706. /* readonly */
  7707. int refs;
  7708. float shadowDistance;
  7709. uint shadowMask;
  7710. Sprite2D sprite;
  7711. bool temporary;
  7712. /* readonly */
  7713. StringHash type;
  7714. /* readonly */
  7715. String typeName;
  7716. uint viewMask;
  7717. /* readonly */
  7718. int weakRefs;
  7719. /* readonly */
  7720. BoundingBox worldBoundingBox;
  7721. uint zoneMask;
  7722. };
  7723. class Pass
  7724. {
  7725. // Properties:
  7726. bool alphaMask;
  7727. BlendMode blendMode;
  7728. CullMode cullMode;
  7729. CompareMode depthTestMode;
  7730. bool depthWrite;
  7731. bool desktop;
  7732. PassLightingMode lightingMode;
  7733. String pixelShader;
  7734. String pixelShaderDefines;
  7735. /* readonly */
  7736. int refs;
  7737. String vertexShader;
  7738. String vertexShaderDefines;
  7739. /* readonly */
  7740. int weakRefs;
  7741. };
  7742. class PhysicsRaycastResult
  7743. {
  7744. // Properties:
  7745. /* readonly */
  7746. RigidBody body;
  7747. float distance;
  7748. float hitFraction;
  7749. Vector3 normal;
  7750. Vector3 position;
  7751. };
  7752. class PhysicsRaycastResult2D
  7753. {
  7754. // Properties:
  7755. /* readonly */
  7756. RigidBody2D body;
  7757. float distance;
  7758. Vector2 normal;
  7759. Vector2 position;
  7760. };
  7761. class PhysicsWorld
  7762. {
  7763. // Methods:
  7764. void ApplyAttributes();
  7765. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7766. void DrawDebugGeometry(DebugRenderer, bool);
  7767. void DrawDebugGeometry(bool);
  7768. Variant GetAttribute(const String&) const;
  7769. ValueAnimation GetAttributeAnimation(const String&) const;
  7770. float GetAttributeAnimationSpeed(const String&) const;
  7771. float GetAttributeAnimationTime(const String&) const;
  7772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7773. Variant GetAttributeDefault(const String&) const;
  7774. Array<RigidBody> GetCollidingBodies(RigidBody);
  7775. bool GetInterceptNetworkUpdate(const String&) const;
  7776. Array<RigidBody> GetRigidBodies(RigidBody);
  7777. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7778. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7779. bool HasSubscribedToEvent(Object, const String&);
  7780. bool HasSubscribedToEvent(const String&);
  7781. bool Load(File, bool = false);
  7782. bool Load(VectorBuffer&, bool = false);
  7783. bool LoadJSON(const JSONValue&, bool = false);
  7784. bool LoadXML(const XMLElement&, bool = false);
  7785. void MarkNetworkUpdate() const;
  7786. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7787. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7788. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7789. void Remove();
  7790. void RemoveAttributeAnimation(const String&);
  7791. void RemoveCachedGeometry(Model);
  7792. void RemoveInstanceDefault();
  7793. void RemoveObjectAnimation();
  7794. void ResetToDefault();
  7795. bool Save(File) const;
  7796. bool Save(VectorBuffer&) const;
  7797. bool SaveJSON(JSONValue&) const;
  7798. bool SaveXML(XMLElement&) const;
  7799. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7800. void SetAnimationTime(float);
  7801. bool SetAttribute(const String&, const Variant&);
  7802. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7803. void SetAttributeAnimationSpeed(const String&, float);
  7804. void SetAttributeAnimationTime(const String&, float);
  7805. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7806. void SetInterceptNetworkUpdate(const String&, bool);
  7807. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7808. void Update(float);
  7809. void UpdateCollisions();
  7810. // Properties:
  7811. bool animationEnabled;
  7812. /* readonly */
  7813. Array<Variant> attributeDefaults;
  7814. /* readonly */
  7815. Array<AttributeInfo> attributeInfos;
  7816. Array<Variant> attributes;
  7817. /* readonly */
  7818. String category;
  7819. bool enabled;
  7820. /* readonly */
  7821. bool enabledEffective;
  7822. int fps;
  7823. Vector3 gravity;
  7824. /* readonly */
  7825. uint id;
  7826. bool internalEdge;
  7827. bool interpolation;
  7828. int maxSubSteps;
  7829. /* readonly */
  7830. Node node;
  7831. /* readonly */
  7832. uint numAttributes;
  7833. int numIterations;
  7834. ObjectAnimation objectAnimation;
  7835. /* readonly */
  7836. int refs;
  7837. bool splitImpulse;
  7838. bool temporary;
  7839. /* readonly */
  7840. StringHash type;
  7841. /* readonly */
  7842. String typeName;
  7843. bool updateEnabled;
  7844. /* readonly */
  7845. int weakRefs;
  7846. };
  7847. class PhysicsWorld2D
  7848. {
  7849. // Methods:
  7850. void ApplyAttributes();
  7851. void DrawDebugGeometry() const;
  7852. void DrawDebugGeometry(DebugRenderer, bool);
  7853. Variant GetAttribute(const String&) const;
  7854. ValueAnimation GetAttributeAnimation(const String&) const;
  7855. float GetAttributeAnimationSpeed(const String&) const;
  7856. float GetAttributeAnimationTime(const String&) const;
  7857. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7858. Variant GetAttributeDefault(const String&) const;
  7859. bool GetInterceptNetworkUpdate(const String&) const;
  7860. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7861. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7862. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7863. bool HasSubscribedToEvent(Object, const String&);
  7864. bool HasSubscribedToEvent(const String&);
  7865. bool Load(File, bool = false);
  7866. bool Load(VectorBuffer&, bool = false);
  7867. bool LoadJSON(const JSONValue&, bool = false);
  7868. bool LoadXML(const XMLElement&, bool = false);
  7869. void MarkNetworkUpdate() const;
  7870. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7871. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7872. void Remove();
  7873. void RemoveAttributeAnimation(const String&);
  7874. void RemoveInstanceDefault();
  7875. void RemoveObjectAnimation();
  7876. void ResetToDefault();
  7877. bool Save(File) const;
  7878. bool Save(VectorBuffer&) const;
  7879. bool SaveJSON(JSONValue&) const;
  7880. bool SaveXML(XMLElement&) const;
  7881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7882. void SetAnimationTime(float);
  7883. bool SetAttribute(const String&, const Variant&);
  7884. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7885. void SetAttributeAnimationSpeed(const String&, float);
  7886. void SetAttributeAnimationTime(const String&, float);
  7887. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7888. void SetInterceptNetworkUpdate(const String&, bool);
  7889. // Properties:
  7890. bool allowSleeping;
  7891. bool animationEnabled;
  7892. /* readonly */
  7893. Array<Variant> attributeDefaults;
  7894. /* readonly */
  7895. Array<AttributeInfo> attributeInfos;
  7896. Array<Variant> attributes;
  7897. bool autoClearForces;
  7898. /* readonly */
  7899. String category;
  7900. bool continuousPhysics;
  7901. bool drawAabb;
  7902. bool drawCenterOfMass;
  7903. bool drawJoint;
  7904. bool drawPair;
  7905. bool drawShape;
  7906. bool enabled;
  7907. /* readonly */
  7908. bool enabledEffective;
  7909. Vector2 gravity;
  7910. /* readonly */
  7911. uint id;
  7912. /* readonly */
  7913. Node node;
  7914. /* readonly */
  7915. uint numAttributes;
  7916. ObjectAnimation objectAnimation;
  7917. uint positionIterations;
  7918. /* readonly */
  7919. int refs;
  7920. bool subStepping;
  7921. bool temporary;
  7922. /* readonly */
  7923. StringHash type;
  7924. /* readonly */
  7925. String typeName;
  7926. bool updateEnabled;
  7927. uint velocityIterations;
  7928. bool warmStarting;
  7929. /* readonly */
  7930. int weakRefs;
  7931. };
  7932. class Plane
  7933. {
  7934. // Methods:
  7935. void Define(const Vector3&, const Vector3&);
  7936. void Define(const Vector3&, const Vector3&, const Vector3&);
  7937. void Define(const Vector4&);
  7938. float Distance(const Vector3&) const;
  7939. Vector3 Project(const Vector3&) const;
  7940. Vector3 Reflect(const Vector3&) const;
  7941. Vector4 ToVector4() const;
  7942. void Transform(const Matrix3&);
  7943. void Transform(const Matrix3x4&);
  7944. void Transform(const Matrix4&);
  7945. Plane Transformed(const Matrix3&) const;
  7946. Plane Transformed(const Matrix3x4&) const;
  7947. Plane Transformed(const Matrix4&) const;
  7948. // Properties:
  7949. Vector3 absNormal;
  7950. float d;
  7951. Vector3 normal;
  7952. /* readonly */
  7953. Matrix3x4 reflectionMatrix;
  7954. };
  7955. class Polyhedron
  7956. {
  7957. // Methods:
  7958. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7959. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7960. void AddFace(const Array<Vector3>);
  7961. void Clear();
  7962. void Clip(const BoundingBox&);
  7963. void Clip(const Frustum&);
  7964. void Define(const BoundingBox&);
  7965. void Define(const Frustum&);
  7966. void Transform(const Matrix3&);
  7967. void Transform(const Matrix3x4&);
  7968. Polyhedron Transformed(const Matrix3&) const;
  7969. Polyhedron Transformed(const Matrix3x4&) const;
  7970. // Properties:
  7971. /* readonly */
  7972. Array<Array<Vector3>> face;
  7973. /* readonly */
  7974. uint numFaces;
  7975. };
  7976. class PropertySet2D
  7977. {
  7978. // Methods:
  7979. bool HasProperty(const String&) const;
  7980. const String& GetProperty(const String&) const;
  7981. // Properties:
  7982. /* readonly */
  7983. int refs;
  7984. /* readonly */
  7985. int weakRefs;
  7986. };
  7987. class Quaternion
  7988. {
  7989. // Methods:
  7990. Quaternion Conjugate() const;
  7991. float DotProduct(const Quaternion&) const;
  7992. bool Equals(const Quaternion&) const;
  7993. void FromAngleAxis(float, const Vector3&);
  7994. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7995. void FromEulerAngles(float, float, float);
  7996. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7997. void FromRotationMatrix(const Matrix3&);
  7998. void FromRotationTo(const Vector3&, const Vector3&);
  7999. Quaternion Inverse() const;
  8000. bool IsNaN() const;
  8001. float LengthSquared() const;
  8002. Quaternion Nlerp(Quaternion, float, bool) const;
  8003. void Normalize();
  8004. Quaternion Normalized() const;
  8005. Quaternion Slerp(Quaternion, float) const;
  8006. String ToString() const;
  8007. // Properties:
  8008. /* readonly */
  8009. Vector3 eulerAngles;
  8010. /* readonly */
  8011. float pitch;
  8012. /* readonly */
  8013. float roll;
  8014. /* readonly */
  8015. Matrix3 rotationMatrix;
  8016. float w;
  8017. float x;
  8018. float y;
  8019. /* readonly */
  8020. float yaw;
  8021. float z;
  8022. };
  8023. class Ray
  8024. {
  8025. // Methods:
  8026. Vector3 ClosestPoint(const Ray&) const;
  8027. void Define(const Vector3&, const Vector3&);
  8028. float Distance(const Vector3&) const;
  8029. float HitDistance(const BoundingBox&) const;
  8030. float HitDistance(const Frustum&, bool = true) const;
  8031. float HitDistance(const Plane&) const;
  8032. float HitDistance(const Sphere&) const;
  8033. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8034. Vector3 Project(const Vector3&) const;
  8035. Ray Transformed(const Matrix3x4&) const;
  8036. // Properties:
  8037. Vector3 direction;
  8038. Vector3 origin;
  8039. };
  8040. class RayQueryResult
  8041. {
  8042. // Properties:
  8043. float distance;
  8044. /* readonly */
  8045. Drawable drawable;
  8046. /* readonly */
  8047. Node node;
  8048. Vector3 normal;
  8049. Vector3 position;
  8050. uint subObject;
  8051. Vector2 textureUV;
  8052. };
  8053. class Rect
  8054. {
  8055. // Methods:
  8056. void Clear();
  8057. void Clip(const Rect&);
  8058. void Define(const Vector2&);
  8059. void Define(const Vector2&, const Vector2&);
  8060. bool Defined() const;
  8061. bool Equals(const Rect&) const;
  8062. Intersection IsInside(const Vector2&) const;
  8063. void Merge(const Rect&);
  8064. void Merge(const Vector2&);
  8065. Vector4 ToVector4() const;
  8066. // Properties:
  8067. float bottom;
  8068. /* readonly */
  8069. Vector2 center;
  8070. /* readonly */
  8071. Vector2 halfSize;
  8072. float left;
  8073. Vector2 max;
  8074. Vector2 min;
  8075. float right;
  8076. /* readonly */
  8077. Vector2 size;
  8078. float top;
  8079. };
  8080. class RefCounted
  8081. {
  8082. // Properties:
  8083. /* readonly */
  8084. int refs;
  8085. /* readonly */
  8086. int weakRefs;
  8087. };
  8088. class RenderPath
  8089. {
  8090. // Methods:
  8091. void AddCommand(const RenderPathCommand&);
  8092. void AddRenderTarget(const RenderTargetInfo&);
  8093. bool Append(XMLFile);
  8094. RenderPath Clone();
  8095. void InsertCommand(uint, const RenderPathCommand&);
  8096. bool Load(XMLFile);
  8097. void RemoveCommand(uint);
  8098. void RemoveCommands(const String&);
  8099. void RemoveRenderTarget(const String&);
  8100. void RemoveRenderTarget(uint);
  8101. void RemoveRenderTargts(const String&);
  8102. void SetEnabled(const String&, bool);
  8103. void ToggleEnabled(const String&);
  8104. // Properties:
  8105. Array<RenderPathCommand> commands;
  8106. /* readonly */
  8107. uint numCommands;
  8108. /* readonly */
  8109. uint numRenderTargets;
  8110. /* readonly */
  8111. int refs;
  8112. Array<RenderTargetInfo> renderTargets;
  8113. Array<Variant> shaderParameters;
  8114. /* readonly */
  8115. int weakRefs;
  8116. };
  8117. class RenderPathCommand
  8118. {
  8119. // Methods:
  8120. void RemoveShaderParameter(const String&);
  8121. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8122. // Properties:
  8123. BlendMode blendMode;
  8124. Color clearColor;
  8125. float clearDepth;
  8126. uint clearFlags;
  8127. uint clearStencil;
  8128. String depthStencilName;
  8129. bool enabled;
  8130. String eventName;
  8131. bool markToStencil;
  8132. String metadata;
  8133. uint numOutputs;
  8134. Array<CubeMapFace> outputFaces;
  8135. Array<String> outputNames;
  8136. String pass;
  8137. String pixelShaderDefines;
  8138. String pixelShaderName;
  8139. Array<Variant> shaderParameters;
  8140. RenderCommandSortMode sortMode;
  8141. String tag;
  8142. Array<String> textureNames;
  8143. RenderCommandType type;
  8144. bool useFogColor;
  8145. bool useLitBase;
  8146. bool vertexLights;
  8147. String vertexShaderDefines;
  8148. String vertexShaderName;
  8149. };
  8150. class RenderSurface
  8151. {
  8152. // Methods:
  8153. void QueueUpdate();
  8154. // Properties:
  8155. /* readonly */
  8156. int height;
  8157. RenderSurface linkedDepthStencil;
  8158. RenderSurface linkedRenderTarget;
  8159. uint numViewports;
  8160. /* readonly */
  8161. Texture parentTexture;
  8162. RenderSurfaceUpdateMode updateMode;
  8163. /* readonly */
  8164. TextureUsage usage;
  8165. Array<Viewport> viewports;
  8166. /* readonly */
  8167. int width;
  8168. };
  8169. class RenderTargetInfo
  8170. {
  8171. // Properties:
  8172. bool cubemap;
  8173. bool enabled;
  8174. bool filtered;
  8175. uint format;
  8176. String name;
  8177. bool persistent;
  8178. bool sRGB;
  8179. Vector2 size;
  8180. RenderTargetSizeMode sizeMode;
  8181. String tag;
  8182. };
  8183. class Renderer
  8184. {
  8185. // Methods:
  8186. void DrawDebugGeometry(bool) const;
  8187. bool HasSubscribedToEvent(Object, const String&);
  8188. bool HasSubscribedToEvent(const String&);
  8189. void ReloadShaders() const;
  8190. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8191. void SetDefaultRenderPath(XMLFile);
  8192. void SetVSMShadowParameters(float, float);
  8193. // Properties:
  8194. /* readonly */
  8195. String category;
  8196. /* readonly */
  8197. Material defaultLightRamp;
  8198. /* readonly */
  8199. Material defaultLightSpot;
  8200. /* readonly */
  8201. Material defaultMaterial;
  8202. RenderPath defaultRenderPath;
  8203. Technique defaultTechnique;
  8204. /* readonly */
  8205. Zone defaultZone;
  8206. bool drawShadows;
  8207. bool dynamicInstancing;
  8208. bool hdrRendering;
  8209. int materialQuality;
  8210. int maxOccluderTriangles;
  8211. int maxShadowMaps;
  8212. int maxSortedInstances;
  8213. int minInstances;
  8214. float mobileNormalOffsetMul;
  8215. float mobileShadowBiasAdd;
  8216. float mobileShadowBiasMul;
  8217. /* readonly */
  8218. uint numBatches;
  8219. int numExtraInstancingBufferElements;
  8220. /* readonly */
  8221. Array<uint> numGeometries;
  8222. /* readonly */
  8223. Array<uint> numLights;
  8224. /* readonly */
  8225. Array<uint> numOccluders;
  8226. /* readonly */
  8227. uint numPrimitives;
  8228. /* readonly */
  8229. Array<uint> numShadowMaps;
  8230. uint numViewports;
  8231. /* readonly */
  8232. uint numViews;
  8233. float occluderSizeThreshold;
  8234. int occlusionBufferSize;
  8235. /* readonly */
  8236. int refs;
  8237. bool reuseShadowMaps;
  8238. int shadowMapSize;
  8239. ShadowQuality shadowQuality;
  8240. float shadowSoftness;
  8241. bool specularLighting;
  8242. int textureAnisotropy;
  8243. TextureFilterMode textureFilterMode;
  8244. int textureQuality;
  8245. bool threadedOcclusion;
  8246. /* readonly */
  8247. StringHash type;
  8248. /* readonly */
  8249. String typeName;
  8250. Array<Viewport> viewports;
  8251. Vector2 vsmShadowParameters;
  8252. /* readonly */
  8253. int weakRefs;
  8254. };
  8255. class Resource
  8256. {
  8257. // Methods:
  8258. bool HasSubscribedToEvent(Object, const String&);
  8259. bool HasSubscribedToEvent(const String&);
  8260. bool Load(File);
  8261. bool Load(VectorBuffer&);
  8262. bool Save(File) const;
  8263. bool Save(VectorBuffer&) const;
  8264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8265. // Properties:
  8266. /* readonly */
  8267. String category;
  8268. /* readonly */
  8269. uint memoryUse;
  8270. String name;
  8271. /* readonly */
  8272. int refs;
  8273. /* readonly */
  8274. StringHash type;
  8275. /* readonly */
  8276. String typeName;
  8277. /* readonly */
  8278. uint useTimer;
  8279. /* readonly */
  8280. int weakRefs;
  8281. };
  8282. class ResourceCache
  8283. {
  8284. // Methods:
  8285. bool AddManualResource(Resource);
  8286. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8287. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8288. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8289. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8290. bool Exists(const String&) const;
  8291. Resource GetExistingResource(StringHash, const String&);
  8292. Resource GetExistingResource(const String&, const String&);
  8293. File GetFile(const String&);
  8294. String GetPreferredResourceDir(const String&) const;
  8295. Resource GetResource(StringHash, const String&, bool = true);
  8296. Resource GetResource(const String&, const String&, bool = true);
  8297. String GetResourceFileName(const String&) const;
  8298. bool HasSubscribedToEvent(Object, const String&);
  8299. bool HasSubscribedToEvent(const String&);
  8300. void ReleaseAllResources(bool = false);
  8301. void ReleaseResource(const String&, const String&, bool = false);
  8302. void ReleaseResources(StringHash, bool = false);
  8303. void ReleaseResources(const String&, bool = false);
  8304. void ReleaseResources(const String&, const String&, bool = false);
  8305. bool ReloadResource(Resource);
  8306. void ReloadResourceWithDependencies(const String&);
  8307. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8308. void RemovePackageFile(const String&, bool = true, bool = false);
  8309. void RemoveResourceDir(const String&);
  8310. String SanitateResourceDirName(const String&) const;
  8311. String SanitateResourceName(const String&) const;
  8312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8313. // Properties:
  8314. bool autoReloadResources;
  8315. /* readonly */
  8316. String category;
  8317. int finishBackgroundResourcesMs;
  8318. Array<uint64> memoryBudget;
  8319. /* readonly */
  8320. Array<uint64> memoryUse;
  8321. /* readonly */
  8322. uint numBackgroundLoadResources;
  8323. /* readonly */
  8324. Array<PackageFile> packageFiles;
  8325. /* readonly */
  8326. int refs;
  8327. /* readonly */
  8328. Array<String> resourceDirs;
  8329. bool returnFailedResources;
  8330. /* readonly */
  8331. bool seachPackagesFirst;
  8332. /* writeonly */
  8333. bool searchPackagesFirst;
  8334. /* readonly */
  8335. uint64 totalMemoryUse;
  8336. /* readonly */
  8337. StringHash type;
  8338. /* readonly */
  8339. String typeName;
  8340. /* readonly */
  8341. int weakRefs;
  8342. };
  8343. class ResourceRef
  8344. {
  8345. // Properties:
  8346. String name;
  8347. StringHash type;
  8348. };
  8349. class ResourceRefList
  8350. {
  8351. // Methods:
  8352. void Resize(uint);
  8353. // Properties:
  8354. /* readonly */
  8355. bool empty;
  8356. /* readonly */
  8357. uint length;
  8358. Array<String> names;
  8359. StringHash type;
  8360. };
  8361. class RibbonTrail
  8362. {
  8363. // Methods:
  8364. void ApplyAttributes();
  8365. void Commit();
  8366. void DrawDebugGeometry(DebugRenderer, bool);
  8367. Variant GetAttribute(const String&) const;
  8368. ValueAnimation GetAttributeAnimation(const String&) const;
  8369. float GetAttributeAnimationSpeed(const String&) const;
  8370. float GetAttributeAnimationTime(const String&) const;
  8371. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8372. Variant GetAttributeDefault(const String&) const;
  8373. bool GetInterceptNetworkUpdate(const String&) const;
  8374. bool HasSubscribedToEvent(Object, const String&);
  8375. bool HasSubscribedToEvent(const String&);
  8376. bool IsInView(Camera) const;
  8377. bool Load(File, bool = false);
  8378. bool Load(VectorBuffer&, bool = false);
  8379. bool LoadJSON(const JSONValue&, bool = false);
  8380. bool LoadXML(const XMLElement&, bool = false);
  8381. void MarkNetworkUpdate() const;
  8382. void Remove();
  8383. void RemoveAttributeAnimation(const String&);
  8384. void RemoveInstanceDefault();
  8385. void RemoveObjectAnimation();
  8386. void ResetToDefault();
  8387. bool Save(File) const;
  8388. bool Save(VectorBuffer&) const;
  8389. bool SaveJSON(JSONValue&) const;
  8390. bool SaveXML(XMLElement&) const;
  8391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8392. void SetAnimationTime(float);
  8393. bool SetAttribute(const String&, const Variant&);
  8394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8395. void SetAttributeAnimationSpeed(const String&, float);
  8396. void SetAttributeAnimationTime(const String&, float);
  8397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8398. void SetInterceptNetworkUpdate(const String&, bool);
  8399. // Properties:
  8400. bool animationEnabled;
  8401. float animationLodBias;
  8402. /* readonly */
  8403. Array<Variant> attributeDefaults;
  8404. /* readonly */
  8405. Array<AttributeInfo> attributeInfos;
  8406. Array<Variant> attributes;
  8407. /* readonly */
  8408. BoundingBox boundingBox;
  8409. bool castShadows;
  8410. /* readonly */
  8411. String category;
  8412. float drawDistance;
  8413. bool emitting;
  8414. bool enabled;
  8415. /* readonly */
  8416. bool enabledEffective;
  8417. Color endColor;
  8418. float endScale;
  8419. /* readonly */
  8420. uint id;
  8421. /* readonly */
  8422. bool inView;
  8423. float lifetime;
  8424. uint lightMask;
  8425. float lodBias;
  8426. Material material;
  8427. uint maxLights;
  8428. /* readonly */
  8429. Node node;
  8430. /* readonly */
  8431. uint numAttributes;
  8432. ObjectAnimation objectAnimation;
  8433. bool occludee;
  8434. bool occluder;
  8435. /* readonly */
  8436. int refs;
  8437. float shadowDistance;
  8438. uint shadowMask;
  8439. bool sorted;
  8440. Color startColor;
  8441. float startScale;
  8442. uint tailColumn;
  8443. bool temporary;
  8444. TrailType trailType;
  8445. /* readonly */
  8446. StringHash type;
  8447. /* readonly */
  8448. String typeName;
  8449. bool updateInvisible;
  8450. float vertexDistance;
  8451. uint viewMask;
  8452. /* readonly */
  8453. int weakRefs;
  8454. float width;
  8455. /* readonly */
  8456. BoundingBox worldBoundingBox;
  8457. /* readonly */
  8458. Zone zone;
  8459. uint zoneMask;
  8460. };
  8461. class RigidBody
  8462. {
  8463. // Methods:
  8464. void Activate();
  8465. void ApplyAttributes();
  8466. void ApplyForce(const Vector3&);
  8467. void ApplyForce(const Vector3&, const Vector3&);
  8468. void ApplyImpulse(const Vector3&);
  8469. void ApplyImpulse(const Vector3&, const Vector3&);
  8470. void ApplyTorque(const Vector3&);
  8471. void ApplyTorqueImpulse(const Vector3&);
  8472. void DisableMassUpdate();
  8473. void DrawDebugGeometry(DebugRenderer, bool);
  8474. void EnableMassUpdate();
  8475. Variant GetAttribute(const String&) const;
  8476. ValueAnimation GetAttributeAnimation(const String&) const;
  8477. float GetAttributeAnimationSpeed(const String&) const;
  8478. float GetAttributeAnimationTime(const String&) const;
  8479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8480. Variant GetAttributeDefault(const String&) const;
  8481. bool GetInterceptNetworkUpdate(const String&) const;
  8482. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8483. bool HasSubscribedToEvent(Object, const String&);
  8484. bool HasSubscribedToEvent(const String&);
  8485. bool Load(File, bool = false);
  8486. bool Load(VectorBuffer&, bool = false);
  8487. bool LoadJSON(const JSONValue&, bool = false);
  8488. bool LoadXML(const XMLElement&, bool = false);
  8489. void MarkNetworkUpdate() const;
  8490. void ReAddBodyToWorld();
  8491. void Remove();
  8492. void RemoveAttributeAnimation(const String&);
  8493. void RemoveInstanceDefault();
  8494. void RemoveObjectAnimation();
  8495. void ResetForces();
  8496. void ResetToDefault();
  8497. bool Save(File) const;
  8498. bool Save(VectorBuffer&) const;
  8499. bool SaveJSON(JSONValue&) const;
  8500. bool SaveXML(XMLElement&) const;
  8501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8502. void SetAnimationTime(float);
  8503. bool SetAttribute(const String&, const Variant&);
  8504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8505. void SetAttributeAnimationSpeed(const String&, float);
  8506. void SetAttributeAnimationTime(const String&, float);
  8507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8508. void SetCollisionLayerAndMask(uint, uint);
  8509. void SetInterceptNetworkUpdate(const String&, bool);
  8510. void SetTransform(const Vector3&, const Quaternion&);
  8511. // Properties:
  8512. /* readonly */
  8513. bool active;
  8514. float angularDamping;
  8515. Vector3 angularFactor;
  8516. float angularRestThreshold;
  8517. Vector3 angularVelocity;
  8518. bool animationEnabled;
  8519. Vector3 anisotropicFriction;
  8520. /* readonly */
  8521. Array<Variant> attributeDefaults;
  8522. /* readonly */
  8523. Array<AttributeInfo> attributeInfos;
  8524. Array<Variant> attributes;
  8525. /* readonly */
  8526. String category;
  8527. float ccdMotionThreshold;
  8528. float ccdRadius;
  8529. /* readonly */
  8530. Vector3 centerOfMass;
  8531. /* readonly */
  8532. Array<RigidBody> collidingBodies;
  8533. CollisionEventMode collisionEventMode;
  8534. uint collisionLayer;
  8535. uint collisionMask;
  8536. float contactProcessingThreshold;
  8537. bool enabled;
  8538. /* readonly */
  8539. bool enabledEffective;
  8540. float friction;
  8541. Vector3 gravityOverride;
  8542. /* readonly */
  8543. uint id;
  8544. bool kinematic;
  8545. float linearDamping;
  8546. Vector3 linearFactor;
  8547. float linearRestThreshold;
  8548. Vector3 linearVelocity;
  8549. float mass;
  8550. /* readonly */
  8551. Node node;
  8552. /* readonly */
  8553. uint numAttributes;
  8554. ObjectAnimation objectAnimation;
  8555. Vector3 position;
  8556. /* readonly */
  8557. int refs;
  8558. float restitution;
  8559. float rollingFriction;
  8560. Quaternion rotation;
  8561. bool temporary;
  8562. bool trigger;
  8563. /* readonly */
  8564. StringHash type;
  8565. /* readonly */
  8566. String typeName;
  8567. bool useGravity;
  8568. /* readonly */
  8569. int weakRefs;
  8570. };
  8571. class RigidBody2D
  8572. {
  8573. // Methods:
  8574. void ApplyAngularImpulse(float, bool);
  8575. void ApplyAttributes();
  8576. void ApplyForce(const Vector2&, const Vector2&, bool);
  8577. void ApplyForceToCenter(const Vector2&, bool);
  8578. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8579. void ApplyTorque(float, bool);
  8580. void DrawDebugGeometry(DebugRenderer, bool);
  8581. Variant GetAttribute(const String&) const;
  8582. ValueAnimation GetAttributeAnimation(const String&) const;
  8583. float GetAttributeAnimationSpeed(const String&) const;
  8584. float GetAttributeAnimationTime(const String&) const;
  8585. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8586. Variant GetAttributeDefault(const String&) const;
  8587. bool GetInterceptNetworkUpdate(const String&) const;
  8588. bool HasSubscribedToEvent(Object, const String&);
  8589. bool HasSubscribedToEvent(const String&);
  8590. bool Load(File, bool = false);
  8591. bool Load(VectorBuffer&, bool = false);
  8592. bool LoadJSON(const JSONValue&, bool = false);
  8593. bool LoadXML(const XMLElement&, bool = false);
  8594. void MarkNetworkUpdate() const;
  8595. void Remove();
  8596. void RemoveAttributeAnimation(const String&);
  8597. void RemoveInstanceDefault();
  8598. void RemoveObjectAnimation();
  8599. void ResetToDefault();
  8600. bool Save(File) const;
  8601. bool Save(VectorBuffer&) const;
  8602. bool SaveJSON(JSONValue&) const;
  8603. bool SaveXML(XMLElement&) const;
  8604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8605. void SetAnimationTime(float);
  8606. bool SetAttribute(const String&, const Variant&);
  8607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8608. void SetAttributeAnimationSpeed(const String&, float);
  8609. void SetAttributeAnimationTime(const String&, float);
  8610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8611. void SetInterceptNetworkUpdate(const String&, bool);
  8612. // Properties:
  8613. bool allowSleep;
  8614. float angularDamping;
  8615. bool animationEnabled;
  8616. /* readonly */
  8617. Array<Variant> attributeDefaults;
  8618. /* readonly */
  8619. Array<AttributeInfo> attributeInfos;
  8620. Array<Variant> attributes;
  8621. bool awake;
  8622. BodyType2D bodyType;
  8623. bool bullet;
  8624. /* readonly */
  8625. String category;
  8626. bool enabled;
  8627. /* readonly */
  8628. bool enabledEffective;
  8629. bool fixedRotation;
  8630. float gravityScale;
  8631. /* readonly */
  8632. uint id;
  8633. float inertia;
  8634. float linearDamping;
  8635. Vector2 linearVelocity;
  8636. float mass;
  8637. Vector2 massCenter;
  8638. /* readonly */
  8639. Node node;
  8640. /* readonly */
  8641. uint numAttributes;
  8642. ObjectAnimation objectAnimation;
  8643. /* readonly */
  8644. int refs;
  8645. bool temporary;
  8646. /* readonly */
  8647. StringHash type;
  8648. /* readonly */
  8649. String typeName;
  8650. bool useFixtureMass;
  8651. /* readonly */
  8652. int weakRefs;
  8653. };
  8654. class Scene
  8655. {
  8656. // Methods:
  8657. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8658. void AddRequiredPackageFile(PackageFile);
  8659. void AddTag(const String&);
  8660. void AddTags(const String&, int8 = ';');
  8661. void ApplyAttributes();
  8662. void Clear(bool = true, bool = true);
  8663. void ClearRequiredPackageFiles();
  8664. Component CloneComponent(Component, CreateMode, uint = 0);
  8665. Component CloneComponent(Component, uint = 0);
  8666. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8667. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8668. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8669. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8670. Variant GetAttribute(const String&) const;
  8671. ValueAnimation GetAttributeAnimation(const String&) const;
  8672. float GetAttributeAnimationSpeed(const String&) const;
  8673. float GetAttributeAnimationTime(const String&) const;
  8674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8675. Variant GetAttributeDefault(const String&) const;
  8676. Node GetChild(const String&, bool = false) const;
  8677. Array<Node> GetChildren(bool = false) const;
  8678. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8679. Array<Node> GetChildrenWithScript(bool = false) const;
  8680. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8681. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8682. Component GetComponent(const String&, bool = false) const;
  8683. Component GetComponent(uint) const;
  8684. Array<Component> GetComponents() const;
  8685. Array<Component> GetComponents(const String&, bool = false) const;
  8686. bool GetInterceptNetworkUpdate(const String&) const;
  8687. Node GetNode(uint) const;
  8688. Array<Node> GetNodesWithTag(const String&) const;
  8689. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8690. Component GetParentComponent(const String&, bool = false) const;
  8691. ScriptObject GetScriptObject() const;
  8692. ScriptObject GetScriptObject(const String&) const;
  8693. bool HasComponent(const String&) const;
  8694. bool HasSubscribedToEvent(Object, const String&);
  8695. bool HasSubscribedToEvent(const String&);
  8696. bool HasTag(const String&);
  8697. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8698. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8699. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8700. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8701. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8702. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8703. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8704. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8705. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8706. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8707. bool Load(File, bool = false);
  8708. bool Load(VectorBuffer&, bool = false);
  8709. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8710. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8711. bool LoadJSON(File);
  8712. bool LoadJSON(VectorBuffer&);
  8713. bool LoadJSON(const JSONValue&, bool = false);
  8714. bool LoadXML(File);
  8715. bool LoadXML(VectorBuffer&);
  8716. bool LoadXML(const XMLElement&, bool = false);
  8717. Vector3 LocalToWorld(const Vector3&) const;
  8718. Vector3 LocalToWorld(const Vector4&) const;
  8719. Vector2 LocalToWorld2D(const Vector2&) const;
  8720. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8721. void MarkNetworkUpdate() const;
  8722. void Pitch(float, TransformSpace = TS_LOCAL);
  8723. void RegisterVar(const String&);
  8724. void Remove();
  8725. void RemoveAllChildren();
  8726. void RemoveAllComponents();
  8727. void RemoveAllTags();
  8728. void RemoveAttributeAnimation(const String&);
  8729. void RemoveChild(Node);
  8730. void RemoveChildren(bool, bool, bool);
  8731. void RemoveComponent(Component);
  8732. void RemoveComponent(const String&);
  8733. void RemoveComponents(bool, bool);
  8734. void RemoveComponents(const String&);
  8735. void RemoveInstanceDefault();
  8736. void RemoveObjectAnimation();
  8737. bool RemoveTag(const String&);
  8738. void ResetToDefault();
  8739. void Roll(float, TransformSpace = TS_LOCAL);
  8740. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8741. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8742. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8743. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8744. bool Save(File) const;
  8745. bool Save(VectorBuffer&) const;
  8746. bool SaveJSON(File, const String& = "\t");
  8747. bool SaveJSON(JSONValue&) const;
  8748. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8749. bool SaveXML(File, const String& = "\t");
  8750. bool SaveXML(VectorBuffer&, const String& = "\t");
  8751. bool SaveXML(XMLElement&) const;
  8752. void Scale(const Vector3&);
  8753. void Scale(float);
  8754. void Scale2D(const Vector2&);
  8755. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8756. void SetAnimationTime(float);
  8757. bool SetAttribute(const String&, const Variant&);
  8758. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8759. void SetAttributeAnimationSpeed(const String&, float);
  8760. void SetAttributeAnimationTime(const String&, float);
  8761. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8762. void SetInterceptNetworkUpdate(const String&, bool);
  8763. void SetPosition2D(float, float);
  8764. void SetScale(float);
  8765. void SetScale2D(float, float);
  8766. void SetTransform(const Vector3&, const Quaternion&);
  8767. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8768. void SetTransform(const Vector3&, const Quaternion&, float);
  8769. void SetTransform2D(const Vector2&, float);
  8770. void SetTransform2D(const Vector2&, float, const Vector2&);
  8771. void SetTransform2D(const Vector2&, float, float);
  8772. void SetWorldTransform(const Vector3&, const Quaternion&);
  8773. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8774. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8775. void SetWorldTransform2D(const Vector2&, float);
  8776. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8777. void SetWorldTransform2D(const Vector2&, float, float);
  8778. void StopAsyncLoading();
  8779. const String& GetVarName(StringHash) const;
  8780. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8781. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8782. void UnregisterAllVars(const String&);
  8783. void UnregisterVar(const String&);
  8784. void Update(float);
  8785. Vector3 WorldToLocal(const Vector3&) const;
  8786. Vector3 WorldToLocal(const Vector4&) const;
  8787. Vector2 WorldToLocal2D(const Vector2&) const;
  8788. void Yaw(float, TransformSpace = TS_LOCAL);
  8789. // Properties:
  8790. bool animationEnabled;
  8791. /* readonly */
  8792. LoadMode asyncLoadMode;
  8793. /* readonly */
  8794. bool asyncLoading;
  8795. int asyncLoadingMs;
  8796. /* readonly */
  8797. float asyncProgress;
  8798. /* readonly */
  8799. Array<Variant> attributeDefaults;
  8800. /* readonly */
  8801. Array<AttributeInfo> attributeInfos;
  8802. Array<Variant> attributes;
  8803. /* readonly */
  8804. String category;
  8805. /* readonly */
  8806. uint checksum;
  8807. /* readonly */
  8808. Array<Node> children;
  8809. /* readonly */
  8810. Array<Component> components;
  8811. /* readonly */
  8812. DebugRenderer debugRenderer;
  8813. Vector3 direction;
  8814. float elapsedTime;
  8815. /* readonly */
  8816. String fileName;
  8817. uint id;
  8818. String name;
  8819. /* readonly */
  8820. uint numAllChildren;
  8821. /* readonly */
  8822. uint numAttributes;
  8823. /* readonly */
  8824. uint numChildren;
  8825. /* readonly */
  8826. uint numComponents;
  8827. ObjectAnimation objectAnimation;
  8828. /* readonly */
  8829. Octree octree;
  8830. Node parent;
  8831. /* readonly */
  8832. PhysicsWorld physicsWorld;
  8833. /* readonly */
  8834. PhysicsWorld2D physicsWorld2D;
  8835. Vector3 position;
  8836. Vector2 position2D;
  8837. /* readonly */
  8838. int refs;
  8839. /* readonly */
  8840. Array<PackageFile> requiredPackageFiles;
  8841. /* readonly */
  8842. Vector3 right;
  8843. Quaternion rotation;
  8844. float rotation2D;
  8845. Vector3 scale;
  8846. Vector2 scale2D;
  8847. /* readonly */
  8848. ScriptObject scriptObject;
  8849. float smoothingConstant;
  8850. float snapThreshold;
  8851. /* readonly */
  8852. Array<String> tags;
  8853. bool temporary;
  8854. float timeScale;
  8855. /* readonly */
  8856. Matrix3x4 transform;
  8857. /* readonly */
  8858. StringHash type;
  8859. /* readonly */
  8860. String typeName;
  8861. /* readonly */
  8862. Vector3 up;
  8863. bool updateEnabled;
  8864. /* readonly */
  8865. VariantMap vars;
  8866. /* readonly */
  8867. int weakRefs;
  8868. Vector3 worldDirection;
  8869. Vector3 worldPosition;
  8870. Vector2 worldPosition2D;
  8871. /* readonly */
  8872. Vector3 worldRight;
  8873. Quaternion worldRotation;
  8874. float worldRotation2D;
  8875. Vector3 worldScale;
  8876. Vector2 worldScale2D;
  8877. /* readonly */
  8878. Matrix3x4 worldTransform;
  8879. /* readonly */
  8880. Vector3 worldUp;
  8881. };
  8882. class Script
  8883. {
  8884. // Methods:
  8885. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8886. bool Execute(const String&);
  8887. bool HasSubscribedToEvent(Object, const String&);
  8888. bool HasSubscribedToEvent(const String&);
  8889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8890. // Properties:
  8891. /* readonly */
  8892. String category;
  8893. Scene defaultScene;
  8894. ScriptFile defaultScriptFile;
  8895. bool executeConsoleCommands;
  8896. /* readonly */
  8897. int refs;
  8898. /* readonly */
  8899. StringHash type;
  8900. /* readonly */
  8901. String typeName;
  8902. /* readonly */
  8903. int weakRefs;
  8904. };
  8905. class ScriptFile
  8906. {
  8907. // Methods:
  8908. void ClearDelayedExecute(const String& = String ( ));
  8909. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8910. bool Execute(const String&, const Array<Variant> = null);
  8911. bool HasSubscribedToEvent(Object, const String&);
  8912. bool HasSubscribedToEvent(const String&);
  8913. bool Load(File);
  8914. bool Load(VectorBuffer&);
  8915. bool Save(File) const;
  8916. bool Save(VectorBuffer&) const;
  8917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8918. // Properties:
  8919. /* readonly */
  8920. String category;
  8921. /* readonly */
  8922. bool compiled;
  8923. /* readonly */
  8924. uint memoryUse;
  8925. String name;
  8926. /* readonly */
  8927. int refs;
  8928. /* readonly */
  8929. StringHash type;
  8930. /* readonly */
  8931. String typeName;
  8932. /* readonly */
  8933. uint useTimer;
  8934. /* readonly */
  8935. int weakRefs;
  8936. };
  8937. class ScriptInstance
  8938. {
  8939. // Methods:
  8940. void ApplyAttributes();
  8941. void ClearDelayedExecute(const String& = String ( ));
  8942. bool CreateObject(ScriptFile, const String&);
  8943. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8944. void DrawDebugGeometry(DebugRenderer, bool);
  8945. bool Execute(const String&, const Array<Variant> = null);
  8946. Variant GetAttribute(const String&) const;
  8947. ValueAnimation GetAttributeAnimation(const String&) const;
  8948. float GetAttributeAnimationSpeed(const String&) const;
  8949. float GetAttributeAnimationTime(const String&) const;
  8950. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8951. Variant GetAttributeDefault(const String&) const;
  8952. bool GetInterceptNetworkUpdate(const String&) const;
  8953. bool HasMethod(const String&) const;
  8954. bool HasSubscribedToEvent(Object, const String&);
  8955. bool HasSubscribedToEvent(const String&);
  8956. bool IsA(const String&) const;
  8957. bool Load(File, bool = false);
  8958. bool Load(VectorBuffer&, bool = false);
  8959. bool LoadJSON(const JSONValue&, bool = false);
  8960. bool LoadXML(const XMLElement&, bool = false);
  8961. void MarkNetworkUpdate() const;
  8962. void Remove();
  8963. void RemoveAttributeAnimation(const String&);
  8964. void RemoveInstanceDefault();
  8965. void RemoveObjectAnimation();
  8966. void ResetToDefault();
  8967. bool Save(File) const;
  8968. bool Save(VectorBuffer&) const;
  8969. bool SaveJSON(JSONValue&) const;
  8970. bool SaveXML(XMLElement&) const;
  8971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8972. void SetAnimationTime(float);
  8973. bool SetAttribute(const String&, const Variant&);
  8974. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8975. void SetAttributeAnimationSpeed(const String&, float);
  8976. void SetAttributeAnimationTime(const String&, float);
  8977. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8978. void SetInterceptNetworkUpdate(const String&, bool);
  8979. // Properties:
  8980. bool animationEnabled;
  8981. /* readonly */
  8982. Array<Variant> attributeDefaults;
  8983. /* readonly */
  8984. Array<AttributeInfo> attributeInfos;
  8985. Array<Variant> attributes;
  8986. /* readonly */
  8987. String category;
  8988. String className;
  8989. bool enabled;
  8990. /* readonly */
  8991. bool enabledEffective;
  8992. /* readonly */
  8993. uint id;
  8994. /* readonly */
  8995. Node node;
  8996. /* readonly */
  8997. uint numAttributes;
  8998. ObjectAnimation objectAnimation;
  8999. /* readonly */
  9000. int refs;
  9001. ScriptFile scriptFile;
  9002. /* readonly */
  9003. ScriptObject scriptObject;
  9004. bool temporary;
  9005. /* readonly */
  9006. StringHash type;
  9007. /* readonly */
  9008. String typeName;
  9009. /* readonly */
  9010. int weakRefs;
  9011. };
  9012. class ScriptObject
  9013. {
  9014. };
  9015. class ScrollBar
  9016. {
  9017. // Methods:
  9018. void AddChild(UIElement);
  9019. void AddTag(const String&);
  9020. void AddTags(const String&, int8 = ';');
  9021. void ApplyAttributes();
  9022. void BringToFront();
  9023. void ChangeValue(float);
  9024. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9025. void DisableLayoutUpdate();
  9026. IntVector2 ElementToScreen(const IntVector2&);
  9027. void EnableLayoutUpdate();
  9028. uint FindChild(UIElement) const;
  9029. Variant GetAttribute(const String&) const;
  9030. ValueAnimation GetAttributeAnimation(const String&) const;
  9031. float GetAttributeAnimationSpeed(const String&) const;
  9032. float GetAttributeAnimationTime(const String&) const;
  9033. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9034. Variant GetAttributeDefault(const String&) const;
  9035. UIElement GetChild(const String&, bool = false) const;
  9036. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9037. Array<UIElement> GetChildren(bool = false) const;
  9038. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9039. UIElement GetElementEventSender() const;
  9040. bool GetInterceptNetworkUpdate(const String&) const;
  9041. uint GetNumChildren(bool) const;
  9042. bool HasSubscribedToEvent(Object, const String&);
  9043. bool HasSubscribedToEvent(const String&);
  9044. bool HasTag(const String&) const;
  9045. void InsertChild(uint, UIElement);
  9046. bool IsInside(IntVector2, bool);
  9047. bool IsInsideCombined(IntVector2, bool);
  9048. bool Load(File, bool = false);
  9049. bool Load(VectorBuffer&, bool = false);
  9050. bool LoadChildXML(XMLFile, XMLFile = null);
  9051. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9052. bool LoadJSON(const JSONValue&, bool = false);
  9053. bool LoadXML(File);
  9054. bool LoadXML(VectorBuffer&);
  9055. bool LoadXML(XMLFile, XMLFile);
  9056. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9057. bool LoadXML(const XMLElement&, bool = false);
  9058. void MarkNetworkUpdate() const;
  9059. void Remove();
  9060. void RemoveAllChildren();
  9061. void RemoveAllTags();
  9062. void RemoveAttributeAnimation(const String&);
  9063. void RemoveChild(UIElement, uint = 0);
  9064. void RemoveChild(uint);
  9065. void RemoveInstanceDefault();
  9066. void RemoveObjectAnimation();
  9067. bool RemoveTag(const String&);
  9068. void ResetDeepEnabled();
  9069. void ResetToDefault();
  9070. bool Save(File) const;
  9071. bool Save(VectorBuffer&) const;
  9072. bool SaveJSON(JSONValue&) const;
  9073. bool SaveXML(File, const String& = "\t");
  9074. bool SaveXML(VectorBuffer&, const String& = "\t");
  9075. bool SaveXML(XMLElement&) const;
  9076. IntVector2 ScreenToElement(const IntVector2&);
  9077. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9078. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9079. void SetAnimationTime(float);
  9080. bool SetAttribute(const String&, const Variant&);
  9081. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9082. void SetAttributeAnimationSpeed(const String&, float);
  9083. void SetAttributeAnimationTime(const String&, float);
  9084. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9085. void SetDeepEnabled(bool);
  9086. void SetEnabledRecursive(bool);
  9087. void SetFixedHeight(int);
  9088. void SetFixedSize(int, int);
  9089. void SetFixedWidth(int);
  9090. void SetInterceptNetworkUpdate(const String&, bool);
  9091. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9092. void SetMaxSize(int, int);
  9093. void SetMinSize(int, int);
  9094. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9095. void SetPosition(int, int);
  9096. void SetSize(int, int);
  9097. bool SetStyle(const String&, XMLFile = null);
  9098. bool SetStyle(const XMLElement&);
  9099. bool SetStyleAuto(XMLFile = null);
  9100. void StepBack();
  9101. void StepForward();
  9102. void UpdateLayout();
  9103. const Variant& GetVar(const StringHash&);
  9104. // Properties:
  9105. bool animationEnabled;
  9106. /* readonly */
  9107. Array<Variant> attributeDefaults;
  9108. /* readonly */
  9109. Array<AttributeInfo> attributeInfos;
  9110. Array<Variant> attributes;
  9111. /* readonly */
  9112. Button backButton;
  9113. bool bringToBack;
  9114. bool bringToFront;
  9115. /* readonly */
  9116. String category;
  9117. /* readonly */
  9118. IntVector2 childOffset;
  9119. /* readonly */
  9120. Array<UIElement> children;
  9121. IntRect clipBorder;
  9122. bool clipChildren;
  9123. /* writeonly */
  9124. Color color;
  9125. /* readonly */
  9126. bool colorGradient;
  9127. Array<Color> colors;
  9128. /* readonly */
  9129. IntRect combinedScreenRect;
  9130. XMLFile defaultStyle;
  9131. /* readonly */
  9132. float derivedOpacity;
  9133. /* readonly */
  9134. uint dragButtonCombo;
  9135. /* readonly */
  9136. int dragButtonCount;
  9137. uint dragDropMode;
  9138. bool editable;
  9139. /* readonly */
  9140. float effectiveScrollStep;
  9141. bool elementEventSender;
  9142. bool enabled;
  9143. /* readonly */
  9144. bool enabledSelf;
  9145. /* readonly */
  9146. bool fixedHeight;
  9147. /* readonly */
  9148. bool fixedSize;
  9149. /* readonly */
  9150. bool fixedWidth;
  9151. bool focus;
  9152. FocusMode focusMode;
  9153. /* readonly */
  9154. Button forwardButton;
  9155. int height;
  9156. HorizontalAlignment horizontalAlignment;
  9157. /* readonly */
  9158. bool hovering;
  9159. int indent;
  9160. int indentSpacing;
  9161. /* readonly */
  9162. int indentWidth;
  9163. bool internal;
  9164. IntRect layoutBorder;
  9165. Vector2 layoutFlexScale;
  9166. LayoutMode layoutMode;
  9167. int layoutSpacing;
  9168. int maxHeight;
  9169. IntVector2 maxSize;
  9170. int maxWidth;
  9171. int minHeight;
  9172. IntVector2 minSize;
  9173. int minWidth;
  9174. String name;
  9175. /* readonly */
  9176. uint numAllChildren;
  9177. /* readonly */
  9178. uint numAttributes;
  9179. /* readonly */
  9180. uint numChildren;
  9181. ObjectAnimation objectAnimation;
  9182. float opacity;
  9183. Orientation orientation;
  9184. UIElement parent;
  9185. IntVector2 position;
  9186. int priority;
  9187. float range;
  9188. /* readonly */
  9189. int refs;
  9190. /* readonly */
  9191. UIElement root;
  9192. /* readonly */
  9193. IntVector2 screenPosition;
  9194. float scrollStep;
  9195. bool selected;
  9196. IntVector2 size;
  9197. /* readonly */
  9198. Slider slider;
  9199. bool sortChildren;
  9200. float stepFactor;
  9201. String style;
  9202. /* readonly */
  9203. Array<String> tags;
  9204. bool temporary;
  9205. TraversalMode traversalMode;
  9206. /* readonly */
  9207. StringHash type;
  9208. /* readonly */
  9209. String typeName;
  9210. bool useDerivedOpacity;
  9211. float value;
  9212. /* readonly */
  9213. VariantMap vars;
  9214. VerticalAlignment verticalAlignment;
  9215. bool visible;
  9216. /* readonly */
  9217. bool visibleEffective;
  9218. /* readonly */
  9219. int weakRefs;
  9220. int width;
  9221. };
  9222. class ScrollView
  9223. {
  9224. // Methods:
  9225. void AddChild(UIElement);
  9226. void AddTag(const String&);
  9227. void AddTags(const String&, int8 = ';');
  9228. void ApplyAttributes();
  9229. void BringToFront();
  9230. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9231. void DisableLayoutUpdate();
  9232. IntVector2 ElementToScreen(const IntVector2&);
  9233. void EnableLayoutUpdate();
  9234. uint FindChild(UIElement) const;
  9235. Variant GetAttribute(const String&) const;
  9236. ValueAnimation GetAttributeAnimation(const String&) const;
  9237. float GetAttributeAnimationSpeed(const String&) const;
  9238. float GetAttributeAnimationTime(const String&) const;
  9239. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9240. Variant GetAttributeDefault(const String&) const;
  9241. UIElement GetChild(const String&, bool = false) const;
  9242. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9243. Array<UIElement> GetChildren(bool = false) const;
  9244. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9245. UIElement GetElementEventSender() const;
  9246. bool GetInterceptNetworkUpdate(const String&) const;
  9247. uint GetNumChildren(bool) const;
  9248. bool HasSubscribedToEvent(Object, const String&);
  9249. bool HasSubscribedToEvent(const String&);
  9250. bool HasTag(const String&) const;
  9251. void InsertChild(uint, UIElement);
  9252. bool IsInside(IntVector2, bool);
  9253. bool IsInsideCombined(IntVector2, bool);
  9254. bool Load(File, bool = false);
  9255. bool Load(VectorBuffer&, bool = false);
  9256. bool LoadChildXML(XMLFile, XMLFile = null);
  9257. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9258. bool LoadJSON(const JSONValue&, bool = false);
  9259. bool LoadXML(File);
  9260. bool LoadXML(VectorBuffer&);
  9261. bool LoadXML(XMLFile, XMLFile);
  9262. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9263. bool LoadXML(const XMLElement&, bool = false);
  9264. void MarkNetworkUpdate() const;
  9265. void Remove();
  9266. void RemoveAllChildren();
  9267. void RemoveAllTags();
  9268. void RemoveAttributeAnimation(const String&);
  9269. void RemoveChild(UIElement, uint = 0);
  9270. void RemoveChild(uint);
  9271. void RemoveInstanceDefault();
  9272. void RemoveObjectAnimation();
  9273. bool RemoveTag(const String&);
  9274. void ResetDeepEnabled();
  9275. void ResetToDefault();
  9276. bool Save(File) const;
  9277. bool Save(VectorBuffer&) const;
  9278. bool SaveJSON(JSONValue&) const;
  9279. bool SaveXML(File, const String& = "\t");
  9280. bool SaveXML(VectorBuffer&, const String& = "\t");
  9281. bool SaveXML(XMLElement&) const;
  9282. IntVector2 ScreenToElement(const IntVector2&);
  9283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9284. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9285. void SetAnimationTime(float);
  9286. bool SetAttribute(const String&, const Variant&);
  9287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9288. void SetAttributeAnimationSpeed(const String&, float);
  9289. void SetAttributeAnimationTime(const String&, float);
  9290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9291. void SetDeepEnabled(bool);
  9292. void SetEnabledRecursive(bool);
  9293. void SetFixedHeight(int);
  9294. void SetFixedSize(int, int);
  9295. void SetFixedWidth(int);
  9296. void SetInterceptNetworkUpdate(const String&, bool);
  9297. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9298. void SetMaxSize(int, int);
  9299. void SetMinSize(int, int);
  9300. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9301. void SetPosition(int, int);
  9302. void SetScrollBarsVisible(bool, bool);
  9303. void SetSize(int, int);
  9304. bool SetStyle(const String&, XMLFile = null);
  9305. bool SetStyle(const XMLElement&);
  9306. bool SetStyleAuto(XMLFile = null);
  9307. void SetViewPosition(int, int);
  9308. void UpdateLayout();
  9309. const Variant& GetVar(const StringHash&);
  9310. // Properties:
  9311. bool animationEnabled;
  9312. /* readonly */
  9313. Array<Variant> attributeDefaults;
  9314. /* readonly */
  9315. Array<AttributeInfo> attributeInfos;
  9316. Array<Variant> attributes;
  9317. bool autoDisableChildren;
  9318. float autoDisableThreshold;
  9319. bool bringToBack;
  9320. bool bringToFront;
  9321. /* readonly */
  9322. String category;
  9323. /* readonly */
  9324. IntVector2 childOffset;
  9325. /* readonly */
  9326. Array<UIElement> children;
  9327. IntRect clipBorder;
  9328. bool clipChildren;
  9329. /* writeonly */
  9330. Color color;
  9331. /* readonly */
  9332. bool colorGradient;
  9333. Array<Color> colors;
  9334. /* readonly */
  9335. IntRect combinedScreenRect;
  9336. UIElement contentElement;
  9337. XMLFile defaultStyle;
  9338. /* readonly */
  9339. float derivedOpacity;
  9340. /* readonly */
  9341. uint dragButtonCombo;
  9342. /* readonly */
  9343. int dragButtonCount;
  9344. uint dragDropMode;
  9345. bool editable;
  9346. bool elementEventSender;
  9347. bool enabled;
  9348. /* readonly */
  9349. bool enabledSelf;
  9350. /* readonly */
  9351. bool fixedHeight;
  9352. /* readonly */
  9353. bool fixedSize;
  9354. /* readonly */
  9355. bool fixedWidth;
  9356. bool focus;
  9357. FocusMode focusMode;
  9358. int height;
  9359. HorizontalAlignment horizontalAlignment;
  9360. /* readonly */
  9361. ScrollBar horizontalScrollBar;
  9362. /* readonly */
  9363. bool hovering;
  9364. int indent;
  9365. int indentSpacing;
  9366. /* readonly */
  9367. int indentWidth;
  9368. bool internal;
  9369. IntRect layoutBorder;
  9370. Vector2 layoutFlexScale;
  9371. LayoutMode layoutMode;
  9372. int layoutSpacing;
  9373. int maxHeight;
  9374. IntVector2 maxSize;
  9375. int maxWidth;
  9376. int minHeight;
  9377. IntVector2 minSize;
  9378. int minWidth;
  9379. String name;
  9380. /* readonly */
  9381. uint numAllChildren;
  9382. /* readonly */
  9383. uint numAttributes;
  9384. /* readonly */
  9385. uint numChildren;
  9386. ObjectAnimation objectAnimation;
  9387. float opacity;
  9388. float pageStep;
  9389. UIElement parent;
  9390. IntVector2 position;
  9391. int priority;
  9392. /* readonly */
  9393. int refs;
  9394. /* readonly */
  9395. UIElement root;
  9396. /* readonly */
  9397. IntVector2 screenPosition;
  9398. bool scrollBarsAutoVisible;
  9399. float scrollDeceleration;
  9400. /* readonly */
  9401. BorderImage scrollPanel;
  9402. float scrollSnapEpsilon;
  9403. float scrollStep;
  9404. bool selected;
  9405. IntVector2 size;
  9406. bool sortChildren;
  9407. String style;
  9408. /* readonly */
  9409. Array<String> tags;
  9410. bool temporary;
  9411. TraversalMode traversalMode;
  9412. /* readonly */
  9413. StringHash type;
  9414. /* readonly */
  9415. String typeName;
  9416. bool useDerivedOpacity;
  9417. /* readonly */
  9418. VariantMap vars;
  9419. VerticalAlignment verticalAlignment;
  9420. /* readonly */
  9421. ScrollBar verticalScrollBar;
  9422. IntVector2 viewPosition;
  9423. bool visible;
  9424. /* readonly */
  9425. bool visibleEffective;
  9426. /* readonly */
  9427. int weakRefs;
  9428. int width;
  9429. };
  9430. class Serializable
  9431. {
  9432. // Methods:
  9433. void ApplyAttributes();
  9434. Variant GetAttribute(const String&) const;
  9435. Variant GetAttributeDefault(const String&) const;
  9436. bool GetInterceptNetworkUpdate(const String&) const;
  9437. bool HasSubscribedToEvent(Object, const String&);
  9438. bool HasSubscribedToEvent(const String&);
  9439. bool Load(File, bool = false);
  9440. bool Load(VectorBuffer&, bool = false);
  9441. bool LoadJSON(const JSONValue&, bool = false);
  9442. bool LoadXML(const XMLElement&, bool = false);
  9443. void MarkNetworkUpdate() const;
  9444. void RemoveInstanceDefault();
  9445. void ResetToDefault();
  9446. bool Save(File) const;
  9447. bool Save(VectorBuffer&) const;
  9448. bool SaveJSON(JSONValue&) const;
  9449. bool SaveXML(XMLElement&) const;
  9450. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9451. bool SetAttribute(const String&, const Variant&);
  9452. void SetInterceptNetworkUpdate(const String&, bool);
  9453. // Properties:
  9454. /* readonly */
  9455. Array<Variant> attributeDefaults;
  9456. /* readonly */
  9457. Array<AttributeInfo> attributeInfos;
  9458. Array<Variant> attributes;
  9459. /* readonly */
  9460. String category;
  9461. /* readonly */
  9462. uint numAttributes;
  9463. /* readonly */
  9464. int refs;
  9465. bool temporary;
  9466. /* readonly */
  9467. StringHash type;
  9468. /* readonly */
  9469. String typeName;
  9470. /* readonly */
  9471. int weakRefs;
  9472. };
  9473. class Serializer
  9474. {
  9475. // Methods:
  9476. uint Write(Array<uint8>);
  9477. bool WriteBool(bool);
  9478. bool WriteBoundingBox(const BoundingBox&);
  9479. bool WriteByte(int8);
  9480. bool WriteColor(const Color&);
  9481. bool WriteDouble(double);
  9482. bool WriteFileID(const String&);
  9483. bool WriteFloat(float);
  9484. bool WriteInt(int);
  9485. bool WriteInt64(int64);
  9486. bool WriteIntRect(const IntRect&);
  9487. bool WriteIntVector2(const IntVector2&);
  9488. bool WriteLine(const String&);
  9489. bool WriteMatrix3(const Matrix3&);
  9490. bool WriteMatrix3x4(const Matrix3x4&);
  9491. bool WriteMatrix4(const Matrix4&);
  9492. bool WriteNetID(uint);
  9493. bool WritePackedQuaternion(const Quaternion&);
  9494. bool WritePackedVector3(const Vector3&, float);
  9495. bool WriteQuaternion(const Quaternion&);
  9496. bool WriteShort(int16);
  9497. bool WriteString(const String&);
  9498. bool WriteStringHash(const StringHash&);
  9499. bool WriteUByte(uint8);
  9500. bool WriteUInt(uint);
  9501. bool WriteUInt64(uint64);
  9502. bool WriteUShort(uint16);
  9503. bool WriteVLE(uint);
  9504. bool WriteVariant(const Variant&);
  9505. bool WriteVariantMap(const VariantMap&);
  9506. bool WriteVector2(const Vector2&);
  9507. bool WriteVector3(const Vector3&);
  9508. bool WriteVector4(const Vector4&);
  9509. bool WriteVectorBuffer(const VectorBuffer&);
  9510. };
  9511. class Skeleton
  9512. {
  9513. // Methods:
  9514. Bone GetBone(const String&) const;
  9515. void Reset();
  9516. // Properties:
  9517. /* readonly */
  9518. Array<Bone> bones;
  9519. /* readonly */
  9520. uint numBones;
  9521. /* readonly */
  9522. Bone rootBone;
  9523. };
  9524. class Skybox
  9525. {
  9526. // Methods:
  9527. void ApplyAttributes();
  9528. void ApplyMaterialList(const String& = String ( ));
  9529. void DrawDebugGeometry(DebugRenderer, bool);
  9530. Variant GetAttribute(const String&) const;
  9531. ValueAnimation GetAttributeAnimation(const String&) const;
  9532. float GetAttributeAnimationSpeed(const String&) const;
  9533. float GetAttributeAnimationTime(const String&) const;
  9534. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9535. Variant GetAttributeDefault(const String&) const;
  9536. bool GetInterceptNetworkUpdate(const String&) const;
  9537. bool HasSubscribedToEvent(Object, const String&);
  9538. bool HasSubscribedToEvent(const String&);
  9539. bool IsInView(Camera) const;
  9540. bool Load(File, bool = false);
  9541. bool Load(VectorBuffer&, bool = false);
  9542. bool LoadJSON(const JSONValue&, bool = false);
  9543. bool LoadXML(const XMLElement&, bool = false);
  9544. void MarkNetworkUpdate() const;
  9545. void Remove();
  9546. void RemoveAttributeAnimation(const String&);
  9547. void RemoveInstanceDefault();
  9548. void RemoveObjectAnimation();
  9549. void ResetToDefault();
  9550. bool Save(File) const;
  9551. bool Save(VectorBuffer&) const;
  9552. bool SaveJSON(JSONValue&) const;
  9553. bool SaveXML(XMLElement&) const;
  9554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9555. void SetAnimationTime(float);
  9556. bool SetAttribute(const String&, const Variant&);
  9557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9558. void SetAttributeAnimationSpeed(const String&, float);
  9559. void SetAttributeAnimationTime(const String&, float);
  9560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9561. void SetInterceptNetworkUpdate(const String&, bool);
  9562. // Properties:
  9563. bool animationEnabled;
  9564. /* readonly */
  9565. Array<Variant> attributeDefaults;
  9566. /* readonly */
  9567. Array<AttributeInfo> attributeInfos;
  9568. Array<Variant> attributes;
  9569. /* readonly */
  9570. BoundingBox boundingBox;
  9571. bool castShadows;
  9572. /* readonly */
  9573. String category;
  9574. float drawDistance;
  9575. bool enabled;
  9576. /* readonly */
  9577. bool enabledEffective;
  9578. /* readonly */
  9579. uint id;
  9580. /* readonly */
  9581. bool inView;
  9582. uint lightMask;
  9583. float lodBias;
  9584. /* writeonly */
  9585. Material material;
  9586. Array<Material> materials;
  9587. uint maxLights;
  9588. Model model;
  9589. /* readonly */
  9590. Node node;
  9591. /* readonly */
  9592. uint numAttributes;
  9593. /* readonly */
  9594. uint numGeometries;
  9595. ObjectAnimation objectAnimation;
  9596. bool occludee;
  9597. bool occluder;
  9598. /* readonly */
  9599. int refs;
  9600. float shadowDistance;
  9601. uint shadowMask;
  9602. bool temporary;
  9603. /* readonly */
  9604. StringHash type;
  9605. /* readonly */
  9606. String typeName;
  9607. uint viewMask;
  9608. /* readonly */
  9609. int weakRefs;
  9610. /* readonly */
  9611. BoundingBox worldBoundingBox;
  9612. /* readonly */
  9613. Zone zone;
  9614. uint zoneMask;
  9615. };
  9616. class Slider
  9617. {
  9618. // Methods:
  9619. void AddChild(UIElement);
  9620. void AddTag(const String&);
  9621. void AddTags(const String&, int8 = ';');
  9622. void ApplyAttributes();
  9623. void BringToFront();
  9624. void ChangeValue(float);
  9625. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9626. void DisableLayoutUpdate();
  9627. IntVector2 ElementToScreen(const IntVector2&);
  9628. void EnableLayoutUpdate();
  9629. uint FindChild(UIElement) const;
  9630. Variant GetAttribute(const String&) const;
  9631. ValueAnimation GetAttributeAnimation(const String&) const;
  9632. float GetAttributeAnimationSpeed(const String&) const;
  9633. float GetAttributeAnimationTime(const String&) const;
  9634. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9635. Variant GetAttributeDefault(const String&) const;
  9636. UIElement GetChild(const String&, bool = false) const;
  9637. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9638. Array<UIElement> GetChildren(bool = false) const;
  9639. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9640. UIElement GetElementEventSender() const;
  9641. bool GetInterceptNetworkUpdate(const String&) const;
  9642. uint GetNumChildren(bool) const;
  9643. bool HasSubscribedToEvent(Object, const String&);
  9644. bool HasSubscribedToEvent(const String&);
  9645. bool HasTag(const String&) const;
  9646. void InsertChild(uint, UIElement);
  9647. bool IsInside(IntVector2, bool);
  9648. bool IsInsideCombined(IntVector2, bool);
  9649. bool Load(File, bool = false);
  9650. bool Load(VectorBuffer&, bool = false);
  9651. bool LoadChildXML(XMLFile, XMLFile = null);
  9652. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9653. bool LoadJSON(const JSONValue&, bool = false);
  9654. bool LoadXML(File);
  9655. bool LoadXML(VectorBuffer&);
  9656. bool LoadXML(XMLFile, XMLFile);
  9657. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9658. bool LoadXML(const XMLElement&, bool = false);
  9659. void MarkNetworkUpdate() const;
  9660. void Remove();
  9661. void RemoveAllChildren();
  9662. void RemoveAllTags();
  9663. void RemoveAttributeAnimation(const String&);
  9664. void RemoveChild(UIElement, uint = 0);
  9665. void RemoveChild(uint);
  9666. void RemoveInstanceDefault();
  9667. void RemoveObjectAnimation();
  9668. bool RemoveTag(const String&);
  9669. void ResetDeepEnabled();
  9670. void ResetToDefault();
  9671. bool Save(File) const;
  9672. bool Save(VectorBuffer&) const;
  9673. bool SaveJSON(JSONValue&) const;
  9674. bool SaveXML(File, const String& = "\t");
  9675. bool SaveXML(VectorBuffer&, const String& = "\t");
  9676. bool SaveXML(XMLElement&) const;
  9677. IntVector2 ScreenToElement(const IntVector2&);
  9678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9679. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9680. void SetAnimationTime(float);
  9681. bool SetAttribute(const String&, const Variant&);
  9682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9683. void SetAttributeAnimationSpeed(const String&, float);
  9684. void SetAttributeAnimationTime(const String&, float);
  9685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9686. void SetDeepEnabled(bool);
  9687. void SetEnabledRecursive(bool);
  9688. void SetFixedHeight(int);
  9689. void SetFixedSize(int, int);
  9690. void SetFixedWidth(int);
  9691. void SetFullImageRect();
  9692. void SetHoverOffset(int, int);
  9693. void SetInterceptNetworkUpdate(const String&, bool);
  9694. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9695. void SetMaxSize(int, int);
  9696. void SetMinSize(int, int);
  9697. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9698. void SetPosition(int, int);
  9699. void SetSize(int, int);
  9700. bool SetStyle(const String&, XMLFile = null);
  9701. bool SetStyle(const XMLElement&);
  9702. bool SetStyleAuto(XMLFile = null);
  9703. void UpdateLayout();
  9704. const Variant& GetVar(const StringHash&);
  9705. // Properties:
  9706. bool animationEnabled;
  9707. /* readonly */
  9708. Array<Variant> attributeDefaults;
  9709. /* readonly */
  9710. Array<AttributeInfo> attributeInfos;
  9711. Array<Variant> attributes;
  9712. BlendMode blendMode;
  9713. IntRect border;
  9714. bool bringToBack;
  9715. bool bringToFront;
  9716. /* readonly */
  9717. String category;
  9718. /* readonly */
  9719. IntVector2 childOffset;
  9720. /* readonly */
  9721. Array<UIElement> children;
  9722. IntRect clipBorder;
  9723. bool clipChildren;
  9724. /* writeonly */
  9725. Color color;
  9726. /* readonly */
  9727. bool colorGradient;
  9728. Array<Color> colors;
  9729. /* readonly */
  9730. IntRect combinedScreenRect;
  9731. XMLFile defaultStyle;
  9732. /* readonly */
  9733. float derivedOpacity;
  9734. /* readonly */
  9735. uint dragButtonCombo;
  9736. /* readonly */
  9737. int dragButtonCount;
  9738. uint dragDropMode;
  9739. bool editable;
  9740. bool elementEventSender;
  9741. bool enabled;
  9742. /* readonly */
  9743. bool enabledSelf;
  9744. /* readonly */
  9745. bool fixedHeight;
  9746. /* readonly */
  9747. bool fixedSize;
  9748. /* readonly */
  9749. bool fixedWidth;
  9750. bool focus;
  9751. FocusMode focusMode;
  9752. int height;
  9753. HorizontalAlignment horizontalAlignment;
  9754. IntVector2 hoverOffset;
  9755. /* readonly */
  9756. bool hovering;
  9757. IntRect imageBorder;
  9758. IntRect imageRect;
  9759. int indent;
  9760. int indentSpacing;
  9761. /* readonly */
  9762. int indentWidth;
  9763. bool internal;
  9764. /* readonly */
  9765. BorderImage knob;
  9766. IntRect layoutBorder;
  9767. Vector2 layoutFlexScale;
  9768. LayoutMode layoutMode;
  9769. int layoutSpacing;
  9770. int maxHeight;
  9771. IntVector2 maxSize;
  9772. int maxWidth;
  9773. int minHeight;
  9774. IntVector2 minSize;
  9775. int minWidth;
  9776. String name;
  9777. /* readonly */
  9778. uint numAllChildren;
  9779. /* readonly */
  9780. uint numAttributes;
  9781. /* readonly */
  9782. uint numChildren;
  9783. ObjectAnimation objectAnimation;
  9784. float opacity;
  9785. Orientation orientation;
  9786. UIElement parent;
  9787. IntVector2 position;
  9788. int priority;
  9789. float range;
  9790. /* readonly */
  9791. int refs;
  9792. float repeatRate;
  9793. /* readonly */
  9794. UIElement root;
  9795. /* readonly */
  9796. IntVector2 screenPosition;
  9797. bool selected;
  9798. IntVector2 size;
  9799. bool sortChildren;
  9800. String style;
  9801. /* readonly */
  9802. Array<String> tags;
  9803. bool temporary;
  9804. Texture texture;
  9805. bool tiled;
  9806. TraversalMode traversalMode;
  9807. /* readonly */
  9808. StringHash type;
  9809. /* readonly */
  9810. String typeName;
  9811. bool useDerivedOpacity;
  9812. float value;
  9813. /* readonly */
  9814. VariantMap vars;
  9815. VerticalAlignment verticalAlignment;
  9816. bool visible;
  9817. /* readonly */
  9818. bool visibleEffective;
  9819. /* readonly */
  9820. int weakRefs;
  9821. int width;
  9822. };
  9823. class SmoothedTransform
  9824. {
  9825. // Methods:
  9826. void ApplyAttributes();
  9827. void DrawDebugGeometry(DebugRenderer, bool);
  9828. Variant GetAttribute(const String&) const;
  9829. ValueAnimation GetAttributeAnimation(const String&) const;
  9830. float GetAttributeAnimationSpeed(const String&) const;
  9831. float GetAttributeAnimationTime(const String&) const;
  9832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9833. Variant GetAttributeDefault(const String&) const;
  9834. bool GetInterceptNetworkUpdate(const String&) const;
  9835. bool HasSubscribedToEvent(Object, const String&);
  9836. bool HasSubscribedToEvent(const String&);
  9837. bool Load(File, bool = false);
  9838. bool Load(VectorBuffer&, bool = false);
  9839. bool LoadJSON(const JSONValue&, bool = false);
  9840. bool LoadXML(const XMLElement&, bool = false);
  9841. void MarkNetworkUpdate() const;
  9842. void Remove();
  9843. void RemoveAttributeAnimation(const String&);
  9844. void RemoveInstanceDefault();
  9845. void RemoveObjectAnimation();
  9846. void ResetToDefault();
  9847. bool Save(File) const;
  9848. bool Save(VectorBuffer&) const;
  9849. bool SaveJSON(JSONValue&) const;
  9850. bool SaveXML(XMLElement&) const;
  9851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9852. void SetAnimationTime(float);
  9853. bool SetAttribute(const String&, const Variant&);
  9854. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9855. void SetAttributeAnimationSpeed(const String&, float);
  9856. void SetAttributeAnimationTime(const String&, float);
  9857. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9858. void SetInterceptNetworkUpdate(const String&, bool);
  9859. void Update(float, float);
  9860. // Properties:
  9861. bool animationEnabled;
  9862. /* readonly */
  9863. Array<Variant> attributeDefaults;
  9864. /* readonly */
  9865. Array<AttributeInfo> attributeInfos;
  9866. Array<Variant> attributes;
  9867. /* readonly */
  9868. String category;
  9869. bool enabled;
  9870. /* readonly */
  9871. bool enabledEffective;
  9872. /* readonly */
  9873. uint id;
  9874. /* readonly */
  9875. bool inProgress;
  9876. /* readonly */
  9877. Node node;
  9878. /* readonly */
  9879. uint numAttributes;
  9880. ObjectAnimation objectAnimation;
  9881. /* readonly */
  9882. int refs;
  9883. Vector3 targetPosition;
  9884. Quaternion targetRotation;
  9885. Vector3 targetWorldPosition;
  9886. Quaternion targetWorldRotation;
  9887. bool temporary;
  9888. /* readonly */
  9889. StringHash type;
  9890. /* readonly */
  9891. String typeName;
  9892. /* readonly */
  9893. int weakRefs;
  9894. };
  9895. class Sound
  9896. {
  9897. // Methods:
  9898. bool HasSubscribedToEvent(Object, const String&);
  9899. bool HasSubscribedToEvent(const String&);
  9900. bool Load(File);
  9901. bool Load(VectorBuffer&);
  9902. bool Save(File) const;
  9903. bool Save(VectorBuffer&) const;
  9904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9905. // Properties:
  9906. /* readonly */
  9907. String category;
  9908. /* readonly */
  9909. bool compressed;
  9910. /* readonly */
  9911. float frequency;
  9912. /* readonly */
  9913. float length;
  9914. bool looped;
  9915. /* readonly */
  9916. uint memoryUse;
  9917. String name;
  9918. /* readonly */
  9919. int refs;
  9920. /* readonly */
  9921. uint sampleSize;
  9922. /* readonly */
  9923. bool sixteenBit;
  9924. /* readonly */
  9925. bool stereo;
  9926. /* readonly */
  9927. StringHash type;
  9928. /* readonly */
  9929. String typeName;
  9930. /* readonly */
  9931. uint useTimer;
  9932. /* readonly */
  9933. int weakRefs;
  9934. };
  9935. class SoundListener
  9936. {
  9937. // Methods:
  9938. void ApplyAttributes();
  9939. void DrawDebugGeometry(DebugRenderer, bool);
  9940. Variant GetAttribute(const String&) const;
  9941. ValueAnimation GetAttributeAnimation(const String&) const;
  9942. float GetAttributeAnimationSpeed(const String&) const;
  9943. float GetAttributeAnimationTime(const String&) const;
  9944. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9945. Variant GetAttributeDefault(const String&) const;
  9946. bool GetInterceptNetworkUpdate(const String&) const;
  9947. bool HasSubscribedToEvent(Object, const String&);
  9948. bool HasSubscribedToEvent(const String&);
  9949. bool Load(File, bool = false);
  9950. bool Load(VectorBuffer&, bool = false);
  9951. bool LoadJSON(const JSONValue&, bool = false);
  9952. bool LoadXML(const XMLElement&, bool = false);
  9953. void MarkNetworkUpdate() const;
  9954. void Remove();
  9955. void RemoveAttributeAnimation(const String&);
  9956. void RemoveInstanceDefault();
  9957. void RemoveObjectAnimation();
  9958. void ResetToDefault();
  9959. bool Save(File) const;
  9960. bool Save(VectorBuffer&) const;
  9961. bool SaveJSON(JSONValue&) const;
  9962. bool SaveXML(XMLElement&) const;
  9963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9964. void SetAnimationTime(float);
  9965. bool SetAttribute(const String&, const Variant&);
  9966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9967. void SetAttributeAnimationSpeed(const String&, float);
  9968. void SetAttributeAnimationTime(const String&, float);
  9969. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9970. void SetInterceptNetworkUpdate(const String&, bool);
  9971. // Properties:
  9972. bool animationEnabled;
  9973. /* readonly */
  9974. Array<Variant> attributeDefaults;
  9975. /* readonly */
  9976. Array<AttributeInfo> attributeInfos;
  9977. Array<Variant> attributes;
  9978. /* readonly */
  9979. String category;
  9980. bool enabled;
  9981. /* readonly */
  9982. bool enabledEffective;
  9983. /* readonly */
  9984. uint id;
  9985. /* readonly */
  9986. Node node;
  9987. /* readonly */
  9988. uint numAttributes;
  9989. ObjectAnimation objectAnimation;
  9990. /* readonly */
  9991. int refs;
  9992. bool temporary;
  9993. /* readonly */
  9994. StringHash type;
  9995. /* readonly */
  9996. String typeName;
  9997. /* readonly */
  9998. int weakRefs;
  9999. };
  10000. class SoundSource
  10001. {
  10002. // Methods:
  10003. void ApplyAttributes();
  10004. void DrawDebugGeometry(DebugRenderer, bool);
  10005. Variant GetAttribute(const String&) const;
  10006. ValueAnimation GetAttributeAnimation(const String&) const;
  10007. float GetAttributeAnimationSpeed(const String&) const;
  10008. float GetAttributeAnimationTime(const String&) const;
  10009. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10010. Variant GetAttributeDefault(const String&) const;
  10011. bool GetInterceptNetworkUpdate(const String&) const;
  10012. bool HasSubscribedToEvent(Object, const String&);
  10013. bool HasSubscribedToEvent(const String&);
  10014. bool Load(File, bool = false);
  10015. bool Load(VectorBuffer&, bool = false);
  10016. bool LoadJSON(const JSONValue&, bool = false);
  10017. bool LoadXML(const XMLElement&, bool = false);
  10018. void MarkNetworkUpdate() const;
  10019. void Play(Sound);
  10020. void Play(Sound, float);
  10021. void Play(Sound, float, float);
  10022. void Play(Sound, float, float, float);
  10023. void Remove();
  10024. void RemoveAttributeAnimation(const String&);
  10025. void RemoveInstanceDefault();
  10026. void RemoveObjectAnimation();
  10027. void ResetToDefault();
  10028. bool Save(File) const;
  10029. bool Save(VectorBuffer&) const;
  10030. bool SaveJSON(JSONValue&) const;
  10031. bool SaveXML(XMLElement&) const;
  10032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10033. void SetAnimationTime(float);
  10034. bool SetAttribute(const String&, const Variant&);
  10035. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10036. void SetAttributeAnimationSpeed(const String&, float);
  10037. void SetAttributeAnimationTime(const String&, float);
  10038. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10039. void SetInterceptNetworkUpdate(const String&, bool);
  10040. void Stop();
  10041. // Properties:
  10042. bool animationEnabled;
  10043. /* readonly */
  10044. float attenuation;
  10045. /* readonly */
  10046. Array<Variant> attributeDefaults;
  10047. /* readonly */
  10048. Array<AttributeInfo> attributeInfos;
  10049. Array<Variant> attributes;
  10050. bool autoRemove;
  10051. /* readonly */
  10052. String category;
  10053. bool enabled;
  10054. /* readonly */
  10055. bool enabledEffective;
  10056. float frequency;
  10057. float gain;
  10058. /* readonly */
  10059. uint id;
  10060. /* readonly */
  10061. Node node;
  10062. /* readonly */
  10063. uint numAttributes;
  10064. ObjectAnimation objectAnimation;
  10065. float panning;
  10066. /* readonly */
  10067. bool playing;
  10068. /* readonly */
  10069. int refs;
  10070. /* readonly */
  10071. Sound sound;
  10072. String soundType;
  10073. bool temporary;
  10074. /* readonly */
  10075. float timePosition;
  10076. /* readonly */
  10077. StringHash type;
  10078. /* readonly */
  10079. String typeName;
  10080. /* readonly */
  10081. int weakRefs;
  10082. };
  10083. class SoundSource3D
  10084. {
  10085. // Methods:
  10086. void ApplyAttributes();
  10087. void DrawDebugGeometry(DebugRenderer, bool);
  10088. Variant GetAttribute(const String&) const;
  10089. ValueAnimation GetAttributeAnimation(const String&) const;
  10090. float GetAttributeAnimationSpeed(const String&) const;
  10091. float GetAttributeAnimationTime(const String&) const;
  10092. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10093. Variant GetAttributeDefault(const String&) const;
  10094. bool GetInterceptNetworkUpdate(const String&) const;
  10095. bool HasSubscribedToEvent(Object, const String&);
  10096. bool HasSubscribedToEvent(const String&);
  10097. bool Load(File, bool = false);
  10098. bool Load(VectorBuffer&, bool = false);
  10099. bool LoadJSON(const JSONValue&, bool = false);
  10100. bool LoadXML(const XMLElement&, bool = false);
  10101. void MarkNetworkUpdate() const;
  10102. void Play(Sound);
  10103. void Play(Sound, float);
  10104. void Play(Sound, float, float);
  10105. void Play(Sound, float, float, float);
  10106. void Remove();
  10107. void RemoveAttributeAnimation(const String&);
  10108. void RemoveInstanceDefault();
  10109. void RemoveObjectAnimation();
  10110. void ResetToDefault();
  10111. bool Save(File) const;
  10112. bool Save(VectorBuffer&) const;
  10113. bool SaveJSON(JSONValue&) const;
  10114. bool SaveXML(XMLElement&) const;
  10115. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10116. void SetAngleAttenuation(float, float);
  10117. void SetAnimationTime(float);
  10118. bool SetAttribute(const String&, const Variant&);
  10119. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10120. void SetAttributeAnimationSpeed(const String&, float);
  10121. void SetAttributeAnimationTime(const String&, float);
  10122. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10123. void SetDistanceAttenuation(float, float, float);
  10124. void SetInterceptNetworkUpdate(const String&, bool);
  10125. void Stop();
  10126. // Properties:
  10127. bool animationEnabled;
  10128. /* readonly */
  10129. float attenuation;
  10130. /* readonly */
  10131. Array<Variant> attributeDefaults;
  10132. /* readonly */
  10133. Array<AttributeInfo> attributeInfos;
  10134. Array<Variant> attributes;
  10135. bool autoRemove;
  10136. /* readonly */
  10137. String category;
  10138. bool enabled;
  10139. /* readonly */
  10140. bool enabledEffective;
  10141. float farDistance;
  10142. float frequency;
  10143. float gain;
  10144. /* readonly */
  10145. uint id;
  10146. float innerAngle;
  10147. float nearDistance;
  10148. /* readonly */
  10149. Node node;
  10150. /* readonly */
  10151. uint numAttributes;
  10152. ObjectAnimation objectAnimation;
  10153. float outerAngle;
  10154. float panning;
  10155. /* readonly */
  10156. bool playing;
  10157. /* readonly */
  10158. int refs;
  10159. float rolloffFactor;
  10160. /* readonly */
  10161. Sound sound;
  10162. String soundType;
  10163. bool temporary;
  10164. /* readonly */
  10165. float timePosition;
  10166. /* readonly */
  10167. StringHash type;
  10168. /* readonly */
  10169. String typeName;
  10170. /* readonly */
  10171. int weakRefs;
  10172. };
  10173. class Sphere
  10174. {
  10175. // Methods:
  10176. void Clear();
  10177. void Define(const BoundingBox&);
  10178. void Define(const Frustum&);
  10179. void Define(const Polyhedron&);
  10180. void Define(const Sphere&);
  10181. void Define(const Vector3&, float);
  10182. bool Defined() const;
  10183. float Distance(const Vector3&) const;
  10184. Intersection IsInside(const BoundingBox&) const;
  10185. Intersection IsInside(const Sphere&) const;
  10186. Intersection IsInside(const Vector3&) const;
  10187. Intersection IsInsideFast(const BoundingBox&) const;
  10188. Intersection IsInsideFast(const Sphere&) const;
  10189. void Merge(const BoundingBox&);
  10190. void Merge(const Frustum&);
  10191. void Merge(const Sphere&);
  10192. void Merge(const Vector3&);
  10193. // Properties:
  10194. Vector3 center;
  10195. float radius;
  10196. };
  10197. class Spline
  10198. {
  10199. // Methods:
  10200. void AddKnot(const Variant&);
  10201. void AddKnot(const Variant&, uint);
  10202. void Clear();
  10203. Variant GetPoint(float);
  10204. void RemoveKnot();
  10205. void RemoveKnot(uint);
  10206. // Properties:
  10207. InterpolationMode interpolationMode;
  10208. Array<Variant> knot;
  10209. Array<Variant> knots;
  10210. };
  10211. class SplinePath
  10212. {
  10213. // Methods:
  10214. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10215. void ApplyAttributes();
  10216. void ClearControlPoints();
  10217. void DrawDebugGeometry(DebugRenderer, bool);
  10218. Variant GetAttribute(const String&) const;
  10219. ValueAnimation GetAttributeAnimation(const String&) const;
  10220. float GetAttributeAnimationSpeed(const String&) const;
  10221. float GetAttributeAnimationTime(const String&) const;
  10222. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10223. Variant GetAttributeDefault(const String&) const;
  10224. bool GetInterceptNetworkUpdate(const String&) const;
  10225. Vector3 GetPoint(float) const;
  10226. Vector3 GetPosition() const;
  10227. bool HasSubscribedToEvent(Object, const String&);
  10228. bool HasSubscribedToEvent(const String&);
  10229. bool Load(File, bool = false);
  10230. bool Load(VectorBuffer&, bool = false);
  10231. bool LoadJSON(const JSONValue&, bool = false);
  10232. bool LoadXML(const XMLElement&, bool = false);
  10233. void MarkNetworkUpdate() const;
  10234. void Move(float);
  10235. void Remove();
  10236. void RemoveAttributeAnimation(const String&);
  10237. void RemoveControlPoint(Node);
  10238. void RemoveInstanceDefault();
  10239. void RemoveObjectAnimation();
  10240. void Reset();
  10241. void ResetToDefault();
  10242. bool Save(File) const;
  10243. bool Save(VectorBuffer&) const;
  10244. bool SaveJSON(JSONValue&) const;
  10245. bool SaveXML(XMLElement&) const;
  10246. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10247. void SetAnimationTime(float);
  10248. bool SetAttribute(const String&, const Variant&);
  10249. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10250. void SetAttributeAnimationSpeed(const String&, float);
  10251. void SetAttributeAnimationTime(const String&, float);
  10252. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10253. void SetInterceptNetworkUpdate(const String&, bool);
  10254. void SetPosition(float);
  10255. // Properties:
  10256. bool animationEnabled;
  10257. /* readonly */
  10258. Array<Variant> attributeDefaults;
  10259. /* readonly */
  10260. Array<AttributeInfo> attributeInfos;
  10261. Array<Variant> attributes;
  10262. /* readonly */
  10263. String category;
  10264. Node controlledNode;
  10265. bool enabled;
  10266. /* readonly */
  10267. bool enabledEffective;
  10268. /* readonly */
  10269. uint id;
  10270. InterpolationMode interpolationMode;
  10271. /* readonly */
  10272. bool isFinished;
  10273. /* readonly */
  10274. float length;
  10275. /* readonly */
  10276. Node node;
  10277. /* readonly */
  10278. uint numAttributes;
  10279. ObjectAnimation objectAnimation;
  10280. /* readonly */
  10281. int refs;
  10282. float speed;
  10283. bool temporary;
  10284. /* readonly */
  10285. StringHash type;
  10286. /* readonly */
  10287. String typeName;
  10288. /* readonly */
  10289. int weakRefs;
  10290. };
  10291. class Sprite
  10292. {
  10293. // Methods:
  10294. void AddChild(UIElement);
  10295. void AddTag(const String&);
  10296. void AddTags(const String&, int8 = ';');
  10297. void ApplyAttributes();
  10298. void BringToFront();
  10299. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10300. void DisableLayoutUpdate();
  10301. IntVector2 ElementToScreen(const IntVector2&);
  10302. void EnableLayoutUpdate();
  10303. uint FindChild(UIElement) const;
  10304. Variant GetAttribute(const String&) const;
  10305. ValueAnimation GetAttributeAnimation(const String&) const;
  10306. float GetAttributeAnimationSpeed(const String&) const;
  10307. float GetAttributeAnimationTime(const String&) const;
  10308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10309. Variant GetAttributeDefault(const String&) const;
  10310. UIElement GetChild(const String&, bool = false) const;
  10311. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10312. Array<UIElement> GetChildren(bool = false) const;
  10313. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10314. UIElement GetElementEventSender() const;
  10315. bool GetInterceptNetworkUpdate(const String&) const;
  10316. uint GetNumChildren(bool) const;
  10317. bool HasSubscribedToEvent(Object, const String&);
  10318. bool HasSubscribedToEvent(const String&);
  10319. bool HasTag(const String&) const;
  10320. void InsertChild(uint, UIElement);
  10321. bool IsInside(IntVector2, bool);
  10322. bool IsInsideCombined(IntVector2, bool);
  10323. bool Load(File, bool = false);
  10324. bool Load(VectorBuffer&, bool = false);
  10325. bool LoadChildXML(XMLFile, XMLFile = null);
  10326. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10327. bool LoadJSON(const JSONValue&, bool = false);
  10328. bool LoadXML(File);
  10329. bool LoadXML(VectorBuffer&);
  10330. bool LoadXML(XMLFile, XMLFile);
  10331. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10332. bool LoadXML(const XMLElement&, bool = false);
  10333. void MarkNetworkUpdate() const;
  10334. void Remove();
  10335. void RemoveAllChildren();
  10336. void RemoveAllTags();
  10337. void RemoveAttributeAnimation(const String&);
  10338. void RemoveChild(UIElement, uint = 0);
  10339. void RemoveChild(uint);
  10340. void RemoveInstanceDefault();
  10341. void RemoveObjectAnimation();
  10342. bool RemoveTag(const String&);
  10343. void ResetDeepEnabled();
  10344. void ResetToDefault();
  10345. bool Save(File) const;
  10346. bool Save(VectorBuffer&) const;
  10347. bool SaveJSON(JSONValue&) const;
  10348. bool SaveXML(File, const String& = "\t");
  10349. bool SaveXML(VectorBuffer&, const String& = "\t");
  10350. bool SaveXML(XMLElement&) const;
  10351. IntVector2 ScreenToElement(const IntVector2&);
  10352. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10353. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10354. void SetAnimationTime(float);
  10355. bool SetAttribute(const String&, const Variant&);
  10356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10357. void SetAttributeAnimationSpeed(const String&, float);
  10358. void SetAttributeAnimationTime(const String&, float);
  10359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10360. void SetDeepEnabled(bool);
  10361. void SetEnabledRecursive(bool);
  10362. void SetFixedHeight(int);
  10363. void SetFixedSize(int, int);
  10364. void SetFixedWidth(int);
  10365. void SetFullImageRect();
  10366. void SetHotSpot(int, int);
  10367. void SetInterceptNetworkUpdate(const String&, bool);
  10368. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10369. void SetMaxSize(int, int);
  10370. void SetMinSize(int, int);
  10371. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10372. void SetPosition(float, float);
  10373. void SetScale(float);
  10374. void SetScale(float, float);
  10375. void SetSize(int, int);
  10376. bool SetStyle(const String&, XMLFile = null);
  10377. bool SetStyle(const XMLElement&);
  10378. bool SetStyleAuto(XMLFile = null);
  10379. void UpdateLayout();
  10380. const Variant& GetVar(const StringHash&);
  10381. // Properties:
  10382. bool animationEnabled;
  10383. /* readonly */
  10384. Array<Variant> attributeDefaults;
  10385. /* readonly */
  10386. Array<AttributeInfo> attributeInfos;
  10387. Array<Variant> attributes;
  10388. BlendMode blendMode;
  10389. bool bringToBack;
  10390. bool bringToFront;
  10391. /* readonly */
  10392. String category;
  10393. /* readonly */
  10394. IntVector2 childOffset;
  10395. /* readonly */
  10396. Array<UIElement> children;
  10397. IntRect clipBorder;
  10398. bool clipChildren;
  10399. /* writeonly */
  10400. Color color;
  10401. /* readonly */
  10402. bool colorGradient;
  10403. Array<Color> colors;
  10404. /* readonly */
  10405. IntRect combinedScreenRect;
  10406. XMLFile defaultStyle;
  10407. /* readonly */
  10408. float derivedOpacity;
  10409. /* readonly */
  10410. uint dragButtonCombo;
  10411. /* readonly */
  10412. int dragButtonCount;
  10413. uint dragDropMode;
  10414. bool editable;
  10415. bool elementEventSender;
  10416. bool enabled;
  10417. /* readonly */
  10418. bool enabledSelf;
  10419. /* readonly */
  10420. bool fixedHeight;
  10421. /* readonly */
  10422. bool fixedSize;
  10423. /* readonly */
  10424. bool fixedWidth;
  10425. bool focus;
  10426. FocusMode focusMode;
  10427. int height;
  10428. HorizontalAlignment horizontalAlignment;
  10429. IntVector2 hotSpot;
  10430. /* readonly */
  10431. bool hovering;
  10432. IntRect imageRect;
  10433. int indent;
  10434. int indentSpacing;
  10435. /* readonly */
  10436. int indentWidth;
  10437. bool internal;
  10438. IntRect layoutBorder;
  10439. Vector2 layoutFlexScale;
  10440. LayoutMode layoutMode;
  10441. int layoutSpacing;
  10442. int maxHeight;
  10443. IntVector2 maxSize;
  10444. int maxWidth;
  10445. int minHeight;
  10446. IntVector2 minSize;
  10447. int minWidth;
  10448. String name;
  10449. /* readonly */
  10450. uint numAllChildren;
  10451. /* readonly */
  10452. uint numAttributes;
  10453. /* readonly */
  10454. uint numChildren;
  10455. ObjectAnimation objectAnimation;
  10456. float opacity;
  10457. UIElement parent;
  10458. Vector2 position;
  10459. int priority;
  10460. /* readonly */
  10461. int refs;
  10462. /* readonly */
  10463. UIElement root;
  10464. float rotation;
  10465. Vector2 scale;
  10466. /* readonly */
  10467. IntVector2 screenPosition;
  10468. bool selected;
  10469. IntVector2 size;
  10470. bool sortChildren;
  10471. String style;
  10472. /* readonly */
  10473. Array<String> tags;
  10474. bool temporary;
  10475. Texture texture;
  10476. TraversalMode traversalMode;
  10477. /* readonly */
  10478. StringHash type;
  10479. /* readonly */
  10480. String typeName;
  10481. bool useDerivedOpacity;
  10482. /* readonly */
  10483. VariantMap vars;
  10484. VerticalAlignment verticalAlignment;
  10485. bool visible;
  10486. /* readonly */
  10487. bool visibleEffective;
  10488. /* readonly */
  10489. int weakRefs;
  10490. int width;
  10491. };
  10492. class Sprite2D
  10493. {
  10494. // Methods:
  10495. bool HasSubscribedToEvent(Object, const String&);
  10496. bool HasSubscribedToEvent(const String&);
  10497. bool Load(File);
  10498. bool Load(VectorBuffer&);
  10499. bool Save(File) const;
  10500. bool Save(VectorBuffer&) const;
  10501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10502. // Properties:
  10503. /* readonly */
  10504. String category;
  10505. Vector2 hotSpot;
  10506. /* readonly */
  10507. uint memoryUse;
  10508. String name;
  10509. IntVector2 offset;
  10510. IntRect rectangle;
  10511. /* readonly */
  10512. int refs;
  10513. Texture2D texture;
  10514. float textureEdgeOffset;
  10515. /* readonly */
  10516. StringHash type;
  10517. /* readonly */
  10518. String typeName;
  10519. /* readonly */
  10520. uint useTimer;
  10521. /* readonly */
  10522. int weakRefs;
  10523. };
  10524. class SpriteSheet2D
  10525. {
  10526. // Methods:
  10527. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10528. Sprite2D GetSprite(const String&);
  10529. bool HasSubscribedToEvent(Object, const String&);
  10530. bool HasSubscribedToEvent(const String&);
  10531. bool Load(File);
  10532. bool Load(VectorBuffer&);
  10533. bool Save(File) const;
  10534. bool Save(VectorBuffer&) const;
  10535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10536. // Properties:
  10537. /* readonly */
  10538. String category;
  10539. /* readonly */
  10540. uint memoryUse;
  10541. String name;
  10542. /* readonly */
  10543. int refs;
  10544. Texture2D texture;
  10545. /* readonly */
  10546. StringHash type;
  10547. /* readonly */
  10548. String typeName;
  10549. /* readonly */
  10550. uint useTimer;
  10551. /* readonly */
  10552. int weakRefs;
  10553. };
  10554. class StaticModel
  10555. {
  10556. // Methods:
  10557. void ApplyAttributes();
  10558. void ApplyMaterialList(const String& = String ( ));
  10559. void DrawDebugGeometry(DebugRenderer, bool);
  10560. Variant GetAttribute(const String&) const;
  10561. ValueAnimation GetAttributeAnimation(const String&) const;
  10562. float GetAttributeAnimationSpeed(const String&) const;
  10563. float GetAttributeAnimationTime(const String&) const;
  10564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10565. Variant GetAttributeDefault(const String&) const;
  10566. bool GetInterceptNetworkUpdate(const String&) const;
  10567. bool HasSubscribedToEvent(Object, const String&);
  10568. bool HasSubscribedToEvent(const String&);
  10569. bool IsInView(Camera) const;
  10570. bool IsInside(const Vector3&) const;
  10571. bool IsInsideLocal(const Vector3&) const;
  10572. bool Load(File, bool = false);
  10573. bool Load(VectorBuffer&, bool = false);
  10574. bool LoadJSON(const JSONValue&, bool = false);
  10575. bool LoadXML(const XMLElement&, bool = false);
  10576. void MarkNetworkUpdate() const;
  10577. void Remove();
  10578. void RemoveAttributeAnimation(const String&);
  10579. void RemoveInstanceDefault();
  10580. void RemoveObjectAnimation();
  10581. void ResetToDefault();
  10582. bool Save(File) const;
  10583. bool Save(VectorBuffer&) const;
  10584. bool SaveJSON(JSONValue&) const;
  10585. bool SaveXML(XMLElement&) const;
  10586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10587. void SetAnimationTime(float);
  10588. bool SetAttribute(const String&, const Variant&);
  10589. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10590. void SetAttributeAnimationSpeed(const String&, float);
  10591. void SetAttributeAnimationTime(const String&, float);
  10592. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10593. void SetInterceptNetworkUpdate(const String&, bool);
  10594. // Properties:
  10595. bool animationEnabled;
  10596. /* readonly */
  10597. Array<Variant> attributeDefaults;
  10598. /* readonly */
  10599. Array<AttributeInfo> attributeInfos;
  10600. Array<Variant> attributes;
  10601. /* readonly */
  10602. BoundingBox boundingBox;
  10603. bool castShadows;
  10604. /* readonly */
  10605. String category;
  10606. float drawDistance;
  10607. bool enabled;
  10608. /* readonly */
  10609. bool enabledEffective;
  10610. /* readonly */
  10611. uint id;
  10612. /* readonly */
  10613. bool inView;
  10614. uint lightMask;
  10615. float lodBias;
  10616. /* writeonly */
  10617. Material material;
  10618. Array<Material> materials;
  10619. uint maxLights;
  10620. Model model;
  10621. /* readonly */
  10622. Node node;
  10623. /* readonly */
  10624. uint numAttributes;
  10625. /* readonly */
  10626. uint numGeometries;
  10627. ObjectAnimation objectAnimation;
  10628. bool occludee;
  10629. bool occluder;
  10630. uint occlusionLodLevel;
  10631. /* readonly */
  10632. int refs;
  10633. float shadowDistance;
  10634. uint shadowMask;
  10635. bool temporary;
  10636. /* readonly */
  10637. StringHash type;
  10638. /* readonly */
  10639. String typeName;
  10640. uint viewMask;
  10641. /* readonly */
  10642. int weakRefs;
  10643. /* readonly */
  10644. BoundingBox worldBoundingBox;
  10645. uint zoneMask;
  10646. };
  10647. class StaticModelGroup
  10648. {
  10649. // Methods:
  10650. void AddInstanceNode(Node);
  10651. void ApplyAttributes();
  10652. void ApplyMaterialList(const String& = String ( ));
  10653. void DrawDebugGeometry(DebugRenderer, bool);
  10654. Variant GetAttribute(const String&) const;
  10655. ValueAnimation GetAttributeAnimation(const String&) const;
  10656. float GetAttributeAnimationSpeed(const String&) const;
  10657. float GetAttributeAnimationTime(const String&) const;
  10658. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10659. Variant GetAttributeDefault(const String&) const;
  10660. bool GetInterceptNetworkUpdate(const String&) const;
  10661. bool HasSubscribedToEvent(Object, const String&);
  10662. bool HasSubscribedToEvent(const String&);
  10663. bool IsInView(Camera) const;
  10664. bool Load(File, bool = false);
  10665. bool Load(VectorBuffer&, bool = false);
  10666. bool LoadJSON(const JSONValue&, bool = false);
  10667. bool LoadXML(const XMLElement&, bool = false);
  10668. void MarkNetworkUpdate() const;
  10669. void Remove();
  10670. void RemoveAllInstanceNodes();
  10671. void RemoveAttributeAnimation(const String&);
  10672. void RemoveInstanceDefault();
  10673. void RemoveInstanceNode(Node);
  10674. void RemoveObjectAnimation();
  10675. void ResetToDefault();
  10676. bool Save(File) const;
  10677. bool Save(VectorBuffer&) const;
  10678. bool SaveJSON(JSONValue&) const;
  10679. bool SaveXML(XMLElement&) const;
  10680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10681. void SetAnimationTime(float);
  10682. bool SetAttribute(const String&, const Variant&);
  10683. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10684. void SetAttributeAnimationSpeed(const String&, float);
  10685. void SetAttributeAnimationTime(const String&, float);
  10686. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10687. void SetInterceptNetworkUpdate(const String&, bool);
  10688. // Properties:
  10689. bool animationEnabled;
  10690. /* readonly */
  10691. Array<Variant> attributeDefaults;
  10692. /* readonly */
  10693. Array<AttributeInfo> attributeInfos;
  10694. Array<Variant> attributes;
  10695. /* readonly */
  10696. BoundingBox boundingBox;
  10697. bool castShadows;
  10698. /* readonly */
  10699. String category;
  10700. float drawDistance;
  10701. bool enabled;
  10702. /* readonly */
  10703. bool enabledEffective;
  10704. /* readonly */
  10705. uint id;
  10706. /* readonly */
  10707. bool inView;
  10708. /* readonly */
  10709. Array<Node> instanceNodes;
  10710. uint lightMask;
  10711. float lodBias;
  10712. /* writeonly */
  10713. Material material;
  10714. Array<Material> materials;
  10715. uint maxLights;
  10716. Model model;
  10717. /* readonly */
  10718. Node node;
  10719. /* readonly */
  10720. uint numAttributes;
  10721. /* readonly */
  10722. uint numGeometries;
  10723. /* readonly */
  10724. uint numInstanceNodes;
  10725. ObjectAnimation objectAnimation;
  10726. bool occludee;
  10727. bool occluder;
  10728. uint occlusionLodLevel;
  10729. /* readonly */
  10730. int refs;
  10731. float shadowDistance;
  10732. uint shadowMask;
  10733. bool temporary;
  10734. /* readonly */
  10735. StringHash type;
  10736. /* readonly */
  10737. String typeName;
  10738. uint viewMask;
  10739. /* readonly */
  10740. int weakRefs;
  10741. /* readonly */
  10742. BoundingBox worldBoundingBox;
  10743. /* readonly */
  10744. Zone zone;
  10745. uint zoneMask;
  10746. };
  10747. class StaticSprite2D
  10748. {
  10749. // Methods:
  10750. void ApplyAttributes();
  10751. void DrawDebugGeometry(DebugRenderer, bool);
  10752. Variant GetAttribute(const String&) const;
  10753. ValueAnimation GetAttributeAnimation(const String&) const;
  10754. float GetAttributeAnimationSpeed(const String&) const;
  10755. float GetAttributeAnimationTime(const String&) const;
  10756. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10757. Variant GetAttributeDefault(const String&) const;
  10758. bool GetInterceptNetworkUpdate(const String&) const;
  10759. bool HasSubscribedToEvent(Object, const String&);
  10760. bool HasSubscribedToEvent(const String&);
  10761. bool IsInView(Camera) const;
  10762. bool Load(File, bool = false);
  10763. bool Load(VectorBuffer&, bool = false);
  10764. bool LoadJSON(const JSONValue&, bool = false);
  10765. bool LoadXML(const XMLElement&, bool = false);
  10766. void MarkNetworkUpdate() const;
  10767. void Remove();
  10768. void RemoveAttributeAnimation(const String&);
  10769. void RemoveInstanceDefault();
  10770. void RemoveObjectAnimation();
  10771. void ResetToDefault();
  10772. bool Save(File) const;
  10773. bool Save(VectorBuffer&) const;
  10774. bool SaveJSON(JSONValue&) const;
  10775. bool SaveXML(XMLElement&) const;
  10776. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10777. void SetAnimationTime(float);
  10778. bool SetAttribute(const String&, const Variant&);
  10779. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10780. void SetAttributeAnimationSpeed(const String&, float);
  10781. void SetAttributeAnimationTime(const String&, float);
  10782. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10783. void SetFlip(bool, bool);
  10784. void SetInterceptNetworkUpdate(const String&, bool);
  10785. // Properties:
  10786. float alpha;
  10787. bool animationEnabled;
  10788. /* readonly */
  10789. Array<Variant> attributeDefaults;
  10790. /* readonly */
  10791. Array<AttributeInfo> attributeInfos;
  10792. Array<Variant> attributes;
  10793. BlendMode blendMode;
  10794. /* readonly */
  10795. BoundingBox boundingBox;
  10796. bool castShadows;
  10797. /* readonly */
  10798. String category;
  10799. Color color;
  10800. Material customMaterial;
  10801. float drawDistance;
  10802. bool enabled;
  10803. /* readonly */
  10804. bool enabledEffective;
  10805. bool flipX;
  10806. bool flipY;
  10807. Vector2 hotSpot;
  10808. /* readonly */
  10809. uint id;
  10810. /* readonly */
  10811. bool inView;
  10812. int layer;
  10813. uint lightMask;
  10814. float lodBias;
  10815. uint maxLights;
  10816. /* readonly */
  10817. Node node;
  10818. /* readonly */
  10819. uint numAttributes;
  10820. ObjectAnimation objectAnimation;
  10821. bool occludee;
  10822. bool occluder;
  10823. int orderInLayer;
  10824. /* readonly */
  10825. int refs;
  10826. float shadowDistance;
  10827. uint shadowMask;
  10828. Sprite2D sprite;
  10829. bool temporary;
  10830. /* readonly */
  10831. StringHash type;
  10832. /* readonly */
  10833. String typeName;
  10834. bool useHotSpot;
  10835. uint viewMask;
  10836. /* readonly */
  10837. int weakRefs;
  10838. /* readonly */
  10839. BoundingBox worldBoundingBox;
  10840. uint zoneMask;
  10841. };
  10842. class String
  10843. {
  10844. // Methods:
  10845. void AppendUTF8(uint);
  10846. uint AtUTF8(uint) const;
  10847. uint ByteOffsetUTF8(uint) const;
  10848. void Clear();
  10849. int Compare(const String&, bool = true) const;
  10850. bool Contains(const String&, bool = true) const;
  10851. bool Contains(uint8, bool = true) const;
  10852. bool EndsWith(const String&, bool = true) const;
  10853. uint Find(const String&, uint = 0, bool = true) const;
  10854. uint Find(uint8, uint = 0, bool = true) const;
  10855. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10856. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10857. void Join(Array<String>&, const String&);
  10858. uint NextUTF8Char(uint&) const;
  10859. void Replace(const String&, const String&, bool = true);
  10860. void Replace(uint8, uint8, bool = true);
  10861. void ReplaceUTF8(uint, uint);
  10862. String Replaced(const String&, const String&, bool = true) const;
  10863. String Replaced(uint8, uint8, bool = true) const;
  10864. void Resize(uint);
  10865. void SetUTF8FromLatin1(const String&);
  10866. Array<String> Split(uint8, bool = false) const;
  10867. bool StartsWith(const String&, bool = true) const;
  10868. String Substring(uint) const;
  10869. String Substring(uint, uint) const;
  10870. String SubstringUTF8(uint) const;
  10871. String SubstringUTF8(uint, uint) const;
  10872. bool ToBool() const;
  10873. Color ToColor() const;
  10874. double ToDouble() const;
  10875. float ToFloat() const;
  10876. int ToInt() const;
  10877. IntRect ToIntRect() const;
  10878. IntVector2 ToIntVector2() const;
  10879. String ToLower() const;
  10880. Matrix3 ToMatrix3() const;
  10881. Matrix3x4 ToMatrix3x4() const;
  10882. Matrix4 ToMatrix4() const;
  10883. Quaternion ToQuaternion() const;
  10884. uint ToUInt() const;
  10885. String ToUpper() const;
  10886. Vector2 ToVector2() const;
  10887. Vector3 ToVector3() const;
  10888. Vector4 ToVector4(bool = false) const;
  10889. Variant ToVectorVariant() const;
  10890. String Trimmed() const;
  10891. // Properties:
  10892. /* readonly */
  10893. bool empty;
  10894. /* readonly */
  10895. uint length;
  10896. /* readonly */
  10897. uint utf8Length;
  10898. };
  10899. class StringHash
  10900. {
  10901. // Methods:
  10902. String ToString() const;
  10903. // Properties:
  10904. /* readonly */
  10905. uint value;
  10906. };
  10907. class Technique
  10908. {
  10909. // Methods:
  10910. Technique Clone(const String& = String ( )) const;
  10911. Pass CreatePass(const String&);
  10912. Pass GetPass(const String&);
  10913. Pass GetSupportedPass(const String&);
  10914. bool HasPass(const String&) const;
  10915. bool HasSubscribedToEvent(Object, const String&);
  10916. bool HasSubscribedToEvent(const String&);
  10917. bool Load(File);
  10918. bool Load(VectorBuffer&);
  10919. void RemovePass(const String&);
  10920. bool Save(File) const;
  10921. bool Save(VectorBuffer&) const;
  10922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10923. // Properties:
  10924. /* readonly */
  10925. String category;
  10926. bool desktop;
  10927. /* readonly */
  10928. uint memoryUse;
  10929. String name;
  10930. /* readonly */
  10931. uint numPasses;
  10932. /* readonly */
  10933. Array<String> passNames;
  10934. /* readonly */
  10935. Array<Pass> passes;
  10936. /* readonly */
  10937. int refs;
  10938. /* readonly */
  10939. bool supported;
  10940. /* readonly */
  10941. StringHash type;
  10942. /* readonly */
  10943. String typeName;
  10944. /* readonly */
  10945. uint useTimer;
  10946. /* readonly */
  10947. int weakRefs;
  10948. };
  10949. class TechniqueEntry
  10950. {
  10951. // Properties:
  10952. float lodDistance;
  10953. int qualityLevel;
  10954. Technique technique;
  10955. };
  10956. class Terrain
  10957. {
  10958. // Methods:
  10959. void ApplyAttributes();
  10960. void ApplyHeightMap();
  10961. void DrawDebugGeometry(DebugRenderer, bool);
  10962. Variant GetAttribute(const String&) const;
  10963. ValueAnimation GetAttributeAnimation(const String&) const;
  10964. float GetAttributeAnimationSpeed(const String&) const;
  10965. float GetAttributeAnimationTime(const String&) const;
  10966. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10967. Variant GetAttributeDefault(const String&) const;
  10968. float GetHeight(const Vector3&) const;
  10969. bool GetInterceptNetworkUpdate(const String&) const;
  10970. Vector3 GetNormal(const Vector3&) const;
  10971. TerrainPatch GetPatch(int, int) const;
  10972. bool HasSubscribedToEvent(Object, const String&);
  10973. bool HasSubscribedToEvent(const String&);
  10974. bool Load(File, bool = false);
  10975. bool Load(VectorBuffer&, bool = false);
  10976. bool LoadJSON(const JSONValue&, bool = false);
  10977. bool LoadXML(const XMLElement&, bool = false);
  10978. void MarkNetworkUpdate() const;
  10979. void Remove();
  10980. void RemoveAttributeAnimation(const String&);
  10981. void RemoveInstanceDefault();
  10982. void RemoveObjectAnimation();
  10983. void ResetToDefault();
  10984. bool Save(File) const;
  10985. bool Save(VectorBuffer&) const;
  10986. bool SaveJSON(JSONValue&) const;
  10987. bool SaveXML(XMLElement&) const;
  10988. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10989. void SetAnimationTime(float);
  10990. bool SetAttribute(const String&, const Variant&);
  10991. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10992. void SetAttributeAnimationSpeed(const String&, float);
  10993. void SetAttributeAnimationTime(const String&, float);
  10994. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10995. void SetInterceptNetworkUpdate(const String&, bool);
  10996. IntVector2 WorldToHeightMap(const Vector3&) const;
  10997. // Properties:
  10998. bool animationEnabled;
  10999. /* readonly */
  11000. Array<Variant> attributeDefaults;
  11001. /* readonly */
  11002. Array<AttributeInfo> attributeInfos;
  11003. Array<Variant> attributes;
  11004. bool castShadows;
  11005. /* readonly */
  11006. String category;
  11007. float drawDistance;
  11008. bool enabled;
  11009. /* readonly */
  11010. bool enabledEffective;
  11011. Image heightMap;
  11012. /* readonly */
  11013. uint id;
  11014. uint lightMask;
  11015. float lodBias;
  11016. Material material;
  11017. uint maxLights;
  11018. uint maxLodLevels;
  11019. /* readonly */
  11020. Node node;
  11021. /* readonly */
  11022. uint numAttributes;
  11023. /* readonly */
  11024. IntVector2 numPatches;
  11025. /* readonly */
  11026. IntVector2 numVertices;
  11027. ObjectAnimation objectAnimation;
  11028. bool occludee;
  11029. bool occluder;
  11030. uint occlusionLodLevel;
  11031. int patchSize;
  11032. /* readonly */
  11033. Array<TerrainPatch> patches;
  11034. /* readonly */
  11035. int refs;
  11036. float shadowDistance;
  11037. uint shadowMask;
  11038. bool smoothing;
  11039. Vector3 spacing;
  11040. bool temporary;
  11041. /* readonly */
  11042. StringHash type;
  11043. /* readonly */
  11044. String typeName;
  11045. uint viewMask;
  11046. /* readonly */
  11047. int weakRefs;
  11048. uint zoneMask;
  11049. };
  11050. class TerrainPatch
  11051. {
  11052. // Methods:
  11053. void ApplyAttributes();
  11054. void DrawDebugGeometry(DebugRenderer, bool);
  11055. Variant GetAttribute(const String&) const;
  11056. ValueAnimation GetAttributeAnimation(const String&) const;
  11057. float GetAttributeAnimationSpeed(const String&) const;
  11058. float GetAttributeAnimationTime(const String&) const;
  11059. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11060. Variant GetAttributeDefault(const String&) const;
  11061. bool GetInterceptNetworkUpdate(const String&) const;
  11062. bool HasSubscribedToEvent(Object, const String&);
  11063. bool HasSubscribedToEvent(const String&);
  11064. bool IsInView(Camera) const;
  11065. bool Load(File, bool = false);
  11066. bool Load(VectorBuffer&, bool = false);
  11067. bool LoadJSON(const JSONValue&, bool = false);
  11068. bool LoadXML(const XMLElement&, bool = false);
  11069. void MarkNetworkUpdate() const;
  11070. void Remove();
  11071. void RemoveAttributeAnimation(const String&);
  11072. void RemoveInstanceDefault();
  11073. void RemoveObjectAnimation();
  11074. void ResetToDefault();
  11075. bool Save(File) const;
  11076. bool Save(VectorBuffer&) const;
  11077. bool SaveJSON(JSONValue&) const;
  11078. bool SaveXML(XMLElement&) const;
  11079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11080. void SetAnimationTime(float);
  11081. bool SetAttribute(const String&, const Variant&);
  11082. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11083. void SetAttributeAnimationSpeed(const String&, float);
  11084. void SetAttributeAnimationTime(const String&, float);
  11085. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11086. void SetInterceptNetworkUpdate(const String&, bool);
  11087. // Properties:
  11088. bool animationEnabled;
  11089. /* readonly */
  11090. Array<Variant> attributeDefaults;
  11091. /* readonly */
  11092. Array<AttributeInfo> attributeInfos;
  11093. Array<Variant> attributes;
  11094. /* readonly */
  11095. BoundingBox boundingBox;
  11096. bool castShadows;
  11097. /* readonly */
  11098. String category;
  11099. float drawDistance;
  11100. bool enabled;
  11101. /* readonly */
  11102. bool enabledEffective;
  11103. /* readonly */
  11104. uint id;
  11105. /* readonly */
  11106. bool inView;
  11107. uint lightMask;
  11108. float lodBias;
  11109. uint maxLights;
  11110. /* readonly */
  11111. Node node;
  11112. /* readonly */
  11113. uint numAttributes;
  11114. ObjectAnimation objectAnimation;
  11115. bool occludee;
  11116. bool occluder;
  11117. /* readonly */
  11118. int refs;
  11119. float shadowDistance;
  11120. uint shadowMask;
  11121. bool temporary;
  11122. /* readonly */
  11123. StringHash type;
  11124. /* readonly */
  11125. String typeName;
  11126. uint viewMask;
  11127. /* readonly */
  11128. int weakRefs;
  11129. /* readonly */
  11130. BoundingBox worldBoundingBox;
  11131. uint zoneMask;
  11132. };
  11133. class Text
  11134. {
  11135. // Methods:
  11136. void AddChild(UIElement);
  11137. void AddTag(const String&);
  11138. void AddTags(const String&, int8 = ';');
  11139. void ApplyAttributes();
  11140. void BringToFront();
  11141. void ClearSelection();
  11142. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11143. void DisableLayoutUpdate();
  11144. IntVector2 ElementToScreen(const IntVector2&);
  11145. void EnableLayoutUpdate();
  11146. uint FindChild(UIElement) const;
  11147. Variant GetAttribute(const String&) const;
  11148. ValueAnimation GetAttributeAnimation(const String&) const;
  11149. float GetAttributeAnimationSpeed(const String&) const;
  11150. float GetAttributeAnimationTime(const String&) const;
  11151. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11152. Variant GetAttributeDefault(const String&) const;
  11153. UIElement GetChild(const String&, bool = false) const;
  11154. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11155. Array<UIElement> GetChildren(bool = false) const;
  11156. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11157. UIElement GetElementEventSender() const;
  11158. bool GetInterceptNetworkUpdate(const String&) const;
  11159. uint GetNumChildren(bool) const;
  11160. bool HasSubscribedToEvent(Object, const String&);
  11161. bool HasSubscribedToEvent(const String&);
  11162. bool HasTag(const String&) const;
  11163. void InsertChild(uint, UIElement);
  11164. bool IsInside(IntVector2, bool);
  11165. bool IsInsideCombined(IntVector2, bool);
  11166. bool Load(File, bool = false);
  11167. bool Load(VectorBuffer&, bool = false);
  11168. bool LoadChildXML(XMLFile, XMLFile = null);
  11169. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11170. bool LoadJSON(const JSONValue&, bool = false);
  11171. bool LoadXML(File);
  11172. bool LoadXML(VectorBuffer&);
  11173. bool LoadXML(XMLFile, XMLFile);
  11174. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11175. bool LoadXML(const XMLElement&, bool = false);
  11176. void MarkNetworkUpdate() const;
  11177. void Remove();
  11178. void RemoveAllChildren();
  11179. void RemoveAllTags();
  11180. void RemoveAttributeAnimation(const String&);
  11181. void RemoveChild(UIElement, uint = 0);
  11182. void RemoveChild(uint);
  11183. void RemoveInstanceDefault();
  11184. void RemoveObjectAnimation();
  11185. bool RemoveTag(const String&);
  11186. void ResetDeepEnabled();
  11187. void ResetToDefault();
  11188. bool Save(File) const;
  11189. bool Save(VectorBuffer&) const;
  11190. bool SaveJSON(JSONValue&) const;
  11191. bool SaveXML(File, const String& = "\t");
  11192. bool SaveXML(VectorBuffer&, const String& = "\t");
  11193. bool SaveXML(XMLElement&) const;
  11194. IntVector2 ScreenToElement(const IntVector2&);
  11195. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11196. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11197. void SetAnimationTime(float);
  11198. bool SetAttribute(const String&, const Variant&);
  11199. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11200. void SetAttributeAnimationSpeed(const String&, float);
  11201. void SetAttributeAnimationTime(const String&, float);
  11202. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11203. void SetDeepEnabled(bool);
  11204. void SetEnabledRecursive(bool);
  11205. void SetFixedHeight(int);
  11206. void SetFixedSize(int, int);
  11207. void SetFixedWidth(int);
  11208. bool SetFont(Font, int);
  11209. bool SetFont(const String&, int);
  11210. void SetInterceptNetworkUpdate(const String&, bool);
  11211. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11212. void SetMaxSize(int, int);
  11213. void SetMinSize(int, int);
  11214. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11215. void SetPosition(int, int);
  11216. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11217. void SetSize(int, int);
  11218. bool SetStyle(const String&, XMLFile = null);
  11219. bool SetStyle(const XMLElement&);
  11220. bool SetStyleAuto(XMLFile = null);
  11221. void UpdateLayout();
  11222. const Variant& GetVar(const StringHash&);
  11223. // Properties:
  11224. bool animationEnabled;
  11225. /* readonly */
  11226. Array<Variant> attributeDefaults;
  11227. /* readonly */
  11228. Array<AttributeInfo> attributeInfos;
  11229. Array<Variant> attributes;
  11230. bool autoLocalizable;
  11231. bool bringToBack;
  11232. bool bringToFront;
  11233. /* readonly */
  11234. String category;
  11235. /* readonly */
  11236. Array<IntVector2> charPositions;
  11237. /* readonly */
  11238. Array<IntVector2> charSizes;
  11239. /* readonly */
  11240. IntVector2 childOffset;
  11241. /* readonly */
  11242. Array<UIElement> children;
  11243. IntRect clipBorder;
  11244. bool clipChildren;
  11245. /* writeonly */
  11246. Color color;
  11247. /* readonly */
  11248. bool colorGradient;
  11249. Array<Color> colors;
  11250. /* readonly */
  11251. IntRect combinedScreenRect;
  11252. XMLFile defaultStyle;
  11253. /* readonly */
  11254. float derivedOpacity;
  11255. /* readonly */
  11256. uint dragButtonCombo;
  11257. /* readonly */
  11258. int dragButtonCount;
  11259. uint dragDropMode;
  11260. bool editable;
  11261. Color effectColor;
  11262. bool effectRoundStroke;
  11263. IntVector2 effectShadowOffset;
  11264. int effectStrokeThickness;
  11265. bool elementEventSender;
  11266. bool enabled;
  11267. /* readonly */
  11268. bool enabledSelf;
  11269. /* readonly */
  11270. bool fixedHeight;
  11271. /* readonly */
  11272. bool fixedSize;
  11273. /* readonly */
  11274. bool fixedWidth;
  11275. bool focus;
  11276. FocusMode focusMode;
  11277. /* readonly */
  11278. Font font;
  11279. int fontSize;
  11280. int height;
  11281. HorizontalAlignment horizontalAlignment;
  11282. Color hoverColor;
  11283. /* readonly */
  11284. bool hovering;
  11285. int indent;
  11286. int indentSpacing;
  11287. /* readonly */
  11288. int indentWidth;
  11289. bool internal;
  11290. IntRect layoutBorder;
  11291. Vector2 layoutFlexScale;
  11292. LayoutMode layoutMode;
  11293. int layoutSpacing;
  11294. int maxHeight;
  11295. IntVector2 maxSize;
  11296. int maxWidth;
  11297. int minHeight;
  11298. IntVector2 minSize;
  11299. int minWidth;
  11300. String name;
  11301. /* readonly */
  11302. uint numAllChildren;
  11303. /* readonly */
  11304. uint numAttributes;
  11305. /* readonly */
  11306. uint numChars;
  11307. /* readonly */
  11308. uint numChildren;
  11309. /* readonly */
  11310. uint numRows;
  11311. ObjectAnimation objectAnimation;
  11312. float opacity;
  11313. UIElement parent;
  11314. IntVector2 position;
  11315. int priority;
  11316. /* readonly */
  11317. int refs;
  11318. /* readonly */
  11319. UIElement root;
  11320. /* readonly */
  11321. int rowHeight;
  11322. float rowSpacing;
  11323. /* readonly */
  11324. Array<int> rowWidths;
  11325. /* readonly */
  11326. IntVector2 screenPosition;
  11327. bool selected;
  11328. Color selectionColor;
  11329. /* readonly */
  11330. uint selectionLength;
  11331. /* readonly */
  11332. uint selectionStart;
  11333. IntVector2 size;
  11334. bool sortChildren;
  11335. String style;
  11336. /* readonly */
  11337. Array<String> tags;
  11338. bool temporary;
  11339. String text;
  11340. HorizontalAlignment textAlignment;
  11341. TextEffect textEffect;
  11342. TraversalMode traversalMode;
  11343. /* readonly */
  11344. StringHash type;
  11345. /* readonly */
  11346. String typeName;
  11347. bool useDerivedOpacity;
  11348. /* readonly */
  11349. VariantMap vars;
  11350. VerticalAlignment verticalAlignment;
  11351. bool visible;
  11352. /* readonly */
  11353. bool visibleEffective;
  11354. /* readonly */
  11355. int weakRefs;
  11356. int width;
  11357. bool wordwrap;
  11358. };
  11359. class Text3D
  11360. {
  11361. // Methods:
  11362. void ApplyAttributes();
  11363. void DrawDebugGeometry(DebugRenderer, bool);
  11364. Variant GetAttribute(const String&) const;
  11365. ValueAnimation GetAttributeAnimation(const String&) const;
  11366. float GetAttributeAnimationSpeed(const String&) const;
  11367. float GetAttributeAnimationTime(const String&) const;
  11368. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11369. Variant GetAttributeDefault(const String&) const;
  11370. bool GetInterceptNetworkUpdate(const String&) const;
  11371. bool HasSubscribedToEvent(Object, const String&);
  11372. bool HasSubscribedToEvent(const String&);
  11373. bool IsInView(Camera) const;
  11374. bool Load(File, bool = false);
  11375. bool Load(VectorBuffer&, bool = false);
  11376. bool LoadJSON(const JSONValue&, bool = false);
  11377. bool LoadXML(const XMLElement&, bool = false);
  11378. void MarkNetworkUpdate() const;
  11379. void Remove();
  11380. void RemoveAttributeAnimation(const String&);
  11381. void RemoveInstanceDefault();
  11382. void RemoveObjectAnimation();
  11383. void ResetToDefault();
  11384. bool Save(File) const;
  11385. bool Save(VectorBuffer&) const;
  11386. bool SaveJSON(JSONValue&) const;
  11387. bool SaveXML(XMLElement&) const;
  11388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11389. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11390. void SetAnimationTime(float);
  11391. bool SetAttribute(const String&, const Variant&);
  11392. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11393. void SetAttributeAnimationSpeed(const String&, float);
  11394. void SetAttributeAnimationTime(const String&, float);
  11395. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11396. bool SetFont(Font, int);
  11397. bool SetFont(const String&, int);
  11398. void SetInterceptNetworkUpdate(const String&, bool);
  11399. // Properties:
  11400. bool animationEnabled;
  11401. /* readonly */
  11402. Array<Variant> attributeDefaults;
  11403. /* readonly */
  11404. Array<AttributeInfo> attributeInfos;
  11405. Array<Variant> attributes;
  11406. /* readonly */
  11407. BoundingBox boundingBox;
  11408. bool castShadows;
  11409. /* readonly */
  11410. String category;
  11411. /* readonly */
  11412. Array<IntVector2> charPositions;
  11413. /* readonly */
  11414. Array<IntVector2> charSizes;
  11415. /* writeonly */
  11416. Color color;
  11417. Array<Color> colors;
  11418. float drawDistance;
  11419. Color effectColor;
  11420. float effectDepthBias;
  11421. bool effectRoundStroke;
  11422. IntVector2 effectShadowOffset;
  11423. int effectStrokeThickness;
  11424. bool enabled;
  11425. /* readonly */
  11426. bool enabledEffective;
  11427. FaceCameraMode faceCameraMode;
  11428. bool fixedScreenSize;
  11429. /* readonly */
  11430. Font font;
  11431. int fontSize;
  11432. HorizontalAlignment horizontalAlignment;
  11433. /* readonly */
  11434. uint id;
  11435. /* readonly */
  11436. bool inView;
  11437. uint lightMask;
  11438. float lodBias;
  11439. Material material;
  11440. uint maxLights;
  11441. /* readonly */
  11442. Node node;
  11443. /* readonly */
  11444. uint numAttributes;
  11445. /* readonly */
  11446. uint numChars;
  11447. /* readonly */
  11448. uint numRows;
  11449. ObjectAnimation objectAnimation;
  11450. bool occludee;
  11451. bool occluder;
  11452. float opacity;
  11453. /* readonly */
  11454. int refs;
  11455. /* readonly */
  11456. int rowHeight;
  11457. float rowSpacing;
  11458. /* readonly */
  11459. Array<int> rowWidths;
  11460. float shadowDistance;
  11461. uint shadowMask;
  11462. bool temporary;
  11463. String text;
  11464. HorizontalAlignment textAlignment;
  11465. TextEffect textEffect;
  11466. /* readonly */
  11467. StringHash type;
  11468. /* readonly */
  11469. String typeName;
  11470. VerticalAlignment verticalAlignment;
  11471. uint viewMask;
  11472. /* readonly */
  11473. int weakRefs;
  11474. int width;
  11475. bool wordwrap;
  11476. /* readonly */
  11477. BoundingBox worldBoundingBox;
  11478. uint zoneMask;
  11479. };
  11480. class Texture
  11481. {
  11482. // Methods:
  11483. void ClearDataLost();
  11484. bool HasSubscribedToEvent(Object, const String&);
  11485. bool HasSubscribedToEvent(const String&);
  11486. bool Load(File);
  11487. bool Load(VectorBuffer&);
  11488. bool Save(File) const;
  11489. bool Save(VectorBuffer&) const;
  11490. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11491. void SetNumLevels(uint);
  11492. // Properties:
  11493. Array<TextureAddressMode> addressMode;
  11494. Texture backupTexture;
  11495. Color borderColor;
  11496. /* readonly */
  11497. String category;
  11498. /* readonly */
  11499. uint components;
  11500. /* readonly */
  11501. bool compressed;
  11502. /* readonly */
  11503. bool dataLost;
  11504. TextureFilterMode filterMode;
  11505. /* readonly */
  11506. uint format;
  11507. /* readonly */
  11508. int height;
  11509. /* readonly */
  11510. Array<int> levelHeight;
  11511. /* readonly */
  11512. Array<int> levelWidth;
  11513. /* readonly */
  11514. uint levels;
  11515. /* readonly */
  11516. uint memoryUse;
  11517. Array<int> mipsToSkip;
  11518. String name;
  11519. /* readonly */
  11520. int refs;
  11521. bool sRGB;
  11522. /* readonly */
  11523. StringHash type;
  11524. /* readonly */
  11525. String typeName;
  11526. /* readonly */
  11527. TextureUsage usage;
  11528. /* readonly */
  11529. uint useTimer;
  11530. /* readonly */
  11531. int weakRefs;
  11532. /* readonly */
  11533. int width;
  11534. };
  11535. class Texture2D
  11536. {
  11537. // Methods:
  11538. void ClearDataLost();
  11539. Image GetImage() const;
  11540. bool HasSubscribedToEvent(Object, const String&);
  11541. bool HasSubscribedToEvent(const String&);
  11542. bool Load(File);
  11543. bool Load(VectorBuffer&);
  11544. bool Save(File) const;
  11545. bool Save(VectorBuffer&) const;
  11546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11547. bool SetData(Image, bool = false);
  11548. void SetNumLevels(uint);
  11549. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11550. // Properties:
  11551. Array<TextureAddressMode> addressMode;
  11552. Texture backupTexture;
  11553. Color borderColor;
  11554. /* readonly */
  11555. String category;
  11556. /* readonly */
  11557. uint components;
  11558. /* readonly */
  11559. bool compressed;
  11560. /* readonly */
  11561. bool dataLost;
  11562. TextureFilterMode filterMode;
  11563. /* readonly */
  11564. uint format;
  11565. /* readonly */
  11566. int height;
  11567. /* readonly */
  11568. Array<int> levelHeight;
  11569. /* readonly */
  11570. Array<int> levelWidth;
  11571. /* readonly */
  11572. uint levels;
  11573. /* readonly */
  11574. uint memoryUse;
  11575. Array<int> mipsToSkip;
  11576. String name;
  11577. /* readonly */
  11578. int refs;
  11579. /* readonly */
  11580. RenderSurface renderSurface;
  11581. bool sRGB;
  11582. /* readonly */
  11583. StringHash type;
  11584. /* readonly */
  11585. String typeName;
  11586. /* readonly */
  11587. TextureUsage usage;
  11588. /* readonly */
  11589. uint useTimer;
  11590. /* readonly */
  11591. int weakRefs;
  11592. /* readonly */
  11593. int width;
  11594. };
  11595. class Texture2DArray
  11596. {
  11597. // Methods:
  11598. void ClearDataLost();
  11599. bool HasSubscribedToEvent(Object, const String&);
  11600. bool HasSubscribedToEvent(const String&);
  11601. bool Load(File);
  11602. bool Load(VectorBuffer&);
  11603. bool Save(File) const;
  11604. bool Save(VectorBuffer&) const;
  11605. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11606. bool SetData(uint, Image, bool = false);
  11607. void SetNumLevels(uint);
  11608. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11609. // Properties:
  11610. Array<TextureAddressMode> addressMode;
  11611. Texture backupTexture;
  11612. Color borderColor;
  11613. /* readonly */
  11614. String category;
  11615. /* readonly */
  11616. uint components;
  11617. /* readonly */
  11618. bool compressed;
  11619. /* readonly */
  11620. bool dataLost;
  11621. TextureFilterMode filterMode;
  11622. /* readonly */
  11623. uint format;
  11624. /* readonly */
  11625. int height;
  11626. uint layers;
  11627. /* readonly */
  11628. Array<int> levelHeight;
  11629. /* readonly */
  11630. Array<int> levelWidth;
  11631. /* readonly */
  11632. uint levels;
  11633. /* readonly */
  11634. uint memoryUse;
  11635. Array<int> mipsToSkip;
  11636. String name;
  11637. /* readonly */
  11638. int refs;
  11639. /* readonly */
  11640. RenderSurface renderSurface;
  11641. bool sRGB;
  11642. /* readonly */
  11643. StringHash type;
  11644. /* readonly */
  11645. String typeName;
  11646. /* readonly */
  11647. TextureUsage usage;
  11648. /* readonly */
  11649. uint useTimer;
  11650. /* readonly */
  11651. int weakRefs;
  11652. /* readonly */
  11653. int width;
  11654. };
  11655. class Texture3D
  11656. {
  11657. // Methods:
  11658. void ClearDataLost();
  11659. bool HasSubscribedToEvent(Object, const String&);
  11660. bool HasSubscribedToEvent(const String&);
  11661. bool Load(File);
  11662. bool Load(VectorBuffer&);
  11663. bool Save(File) const;
  11664. bool Save(VectorBuffer&) const;
  11665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11666. bool SetData(Image, bool = false);
  11667. void SetNumLevels(uint);
  11668. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11669. // Properties:
  11670. Array<TextureAddressMode> addressMode;
  11671. Texture backupTexture;
  11672. Color borderColor;
  11673. /* readonly */
  11674. String category;
  11675. /* readonly */
  11676. uint components;
  11677. /* readonly */
  11678. bool compressed;
  11679. /* readonly */
  11680. bool dataLost;
  11681. TextureFilterMode filterMode;
  11682. /* readonly */
  11683. uint format;
  11684. /* readonly */
  11685. int height;
  11686. /* readonly */
  11687. Array<int> levelHeight;
  11688. /* readonly */
  11689. Array<int> levelWidth;
  11690. /* readonly */
  11691. uint levels;
  11692. /* readonly */
  11693. uint memoryUse;
  11694. Array<int> mipsToSkip;
  11695. String name;
  11696. /* readonly */
  11697. int refs;
  11698. bool sRGB;
  11699. /* readonly */
  11700. StringHash type;
  11701. /* readonly */
  11702. String typeName;
  11703. /* readonly */
  11704. TextureUsage usage;
  11705. /* readonly */
  11706. uint useTimer;
  11707. /* readonly */
  11708. int weakRefs;
  11709. /* readonly */
  11710. int width;
  11711. };
  11712. class TextureCube
  11713. {
  11714. // Methods:
  11715. void ClearDataLost();
  11716. Image GetImage(CubeMapFace) const;
  11717. bool HasSubscribedToEvent(Object, const String&);
  11718. bool HasSubscribedToEvent(const String&);
  11719. bool Load(File);
  11720. bool Load(VectorBuffer&);
  11721. bool Save(File) const;
  11722. bool Save(VectorBuffer&) const;
  11723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11724. bool SetData(CubeMapFace, Image, bool = false);
  11725. void SetNumLevels(uint);
  11726. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11727. // Properties:
  11728. Array<TextureAddressMode> addressMode;
  11729. Texture backupTexture;
  11730. Color borderColor;
  11731. /* readonly */
  11732. String category;
  11733. /* readonly */
  11734. uint components;
  11735. /* readonly */
  11736. bool compressed;
  11737. /* readonly */
  11738. bool dataLost;
  11739. TextureFilterMode filterMode;
  11740. /* readonly */
  11741. uint format;
  11742. /* readonly */
  11743. int height;
  11744. /* readonly */
  11745. Array<int> levelHeight;
  11746. /* readonly */
  11747. Array<int> levelWidth;
  11748. /* readonly */
  11749. uint levels;
  11750. /* readonly */
  11751. uint memoryUse;
  11752. Array<int> mipsToSkip;
  11753. String name;
  11754. /* readonly */
  11755. int refs;
  11756. /* readonly */
  11757. Array<RenderSurface> renderSurfaces;
  11758. bool sRGB;
  11759. /* readonly */
  11760. StringHash type;
  11761. /* readonly */
  11762. String typeName;
  11763. /* readonly */
  11764. TextureUsage usage;
  11765. /* readonly */
  11766. uint useTimer;
  11767. /* readonly */
  11768. int weakRefs;
  11769. /* readonly */
  11770. int width;
  11771. };
  11772. class TextureFrame
  11773. {
  11774. // Properties:
  11775. float time;
  11776. Rect uv;
  11777. };
  11778. class Tile2D
  11779. {
  11780. // Methods:
  11781. bool HasProperty(const String&) const;
  11782. const String& GetProperty(const String&) const;
  11783. // Properties:
  11784. /* readonly */
  11785. int gid;
  11786. /* readonly */
  11787. int refs;
  11788. /* readonly */
  11789. Sprite2D sprite;
  11790. /* readonly */
  11791. int weakRefs;
  11792. };
  11793. class TileMap2D
  11794. {
  11795. // Methods:
  11796. void ApplyAttributes();
  11797. void DrawDebugGeometry(DebugRenderer, bool);
  11798. Variant GetAttribute(const String&) const;
  11799. ValueAnimation GetAttributeAnimation(const String&) const;
  11800. float GetAttributeAnimationSpeed(const String&) const;
  11801. float GetAttributeAnimationTime(const String&) const;
  11802. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11803. Variant GetAttributeDefault(const String&) const;
  11804. bool GetInterceptNetworkUpdate(const String&) const;
  11805. TileMapLayer2D GetLayer(uint) const;
  11806. bool HasSubscribedToEvent(Object, const String&);
  11807. bool HasSubscribedToEvent(const String&);
  11808. bool Load(File, bool = false);
  11809. bool Load(VectorBuffer&, bool = false);
  11810. bool LoadJSON(const JSONValue&, bool = false);
  11811. bool LoadXML(const XMLElement&, bool = false);
  11812. void MarkNetworkUpdate() const;
  11813. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11814. void Remove();
  11815. void RemoveAttributeAnimation(const String&);
  11816. void RemoveInstanceDefault();
  11817. void RemoveObjectAnimation();
  11818. void ResetToDefault();
  11819. bool Save(File) const;
  11820. bool Save(VectorBuffer&) const;
  11821. bool SaveJSON(JSONValue&) const;
  11822. bool SaveXML(XMLElement&) const;
  11823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11824. void SetAnimationTime(float);
  11825. bool SetAttribute(const String&, const Variant&);
  11826. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11827. void SetAttributeAnimationSpeed(const String&, float);
  11828. void SetAttributeAnimationTime(const String&, float);
  11829. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11830. void SetInterceptNetworkUpdate(const String&, bool);
  11831. Vector2 TileIndexToPosition(int, int) const;
  11832. // Properties:
  11833. bool animationEnabled;
  11834. /* readonly */
  11835. Array<Variant> attributeDefaults;
  11836. /* readonly */
  11837. Array<AttributeInfo> attributeInfos;
  11838. Array<Variant> attributes;
  11839. /* readonly */
  11840. String category;
  11841. bool enabled;
  11842. /* readonly */
  11843. bool enabledEffective;
  11844. /* readonly */
  11845. uint id;
  11846. /* readonly */
  11847. TileMapInfo2D info;
  11848. /* readonly */
  11849. Node node;
  11850. /* readonly */
  11851. uint numAttributes;
  11852. /* readonly */
  11853. uint numLayers;
  11854. ObjectAnimation objectAnimation;
  11855. /* readonly */
  11856. int refs;
  11857. bool temporary;
  11858. TmxFile2D tmxFile;
  11859. /* readonly */
  11860. StringHash type;
  11861. /* readonly */
  11862. String typeName;
  11863. /* readonly */
  11864. int weakRefs;
  11865. };
  11866. class TileMapInfo2D
  11867. {
  11868. // Properties:
  11869. int height;
  11870. /* readonly */
  11871. float mapHeight;
  11872. /* readonly */
  11873. float mapWidth;
  11874. Orientation2D orientation;
  11875. float tileHeight;
  11876. float tileWidth;
  11877. int width;
  11878. };
  11879. class TileMapLayer2D
  11880. {
  11881. // Methods:
  11882. void ApplyAttributes();
  11883. void DrawDebugGeometry(DebugRenderer, bool);
  11884. Variant GetAttribute(const String&) const;
  11885. ValueAnimation GetAttributeAnimation(const String&) const;
  11886. float GetAttributeAnimationSpeed(const String&) const;
  11887. float GetAttributeAnimationTime(const String&) const;
  11888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11889. Variant GetAttributeDefault(const String&) const;
  11890. bool GetInterceptNetworkUpdate(const String&) const;
  11891. TileMapObject2D GetObject(uint) const;
  11892. Node GetObjectNode(uint) const;
  11893. Tile2D GetTile(int, int) const;
  11894. Node GetTileNode(int, int) const;
  11895. bool HasProperty(const String&) const;
  11896. bool HasSubscribedToEvent(Object, const String&);
  11897. bool HasSubscribedToEvent(const String&);
  11898. bool Load(File, bool = false);
  11899. bool Load(VectorBuffer&, bool = false);
  11900. bool LoadJSON(const JSONValue&, bool = false);
  11901. bool LoadXML(const XMLElement&, bool = false);
  11902. void MarkNetworkUpdate() const;
  11903. void Remove();
  11904. void RemoveAttributeAnimation(const String&);
  11905. void RemoveInstanceDefault();
  11906. void RemoveObjectAnimation();
  11907. void ResetToDefault();
  11908. bool Save(File) const;
  11909. bool Save(VectorBuffer&) const;
  11910. bool SaveJSON(JSONValue&) const;
  11911. bool SaveXML(XMLElement&) const;
  11912. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11913. void SetAnimationTime(float);
  11914. bool SetAttribute(const String&, const Variant&);
  11915. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11916. void SetAttributeAnimationSpeed(const String&, float);
  11917. void SetAttributeAnimationTime(const String&, float);
  11918. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11919. void SetInterceptNetworkUpdate(const String&, bool);
  11920. const String& GetProperty(const String&) const;
  11921. // Properties:
  11922. bool animationEnabled;
  11923. /* readonly */
  11924. Array<Variant> attributeDefaults;
  11925. /* readonly */
  11926. Array<AttributeInfo> attributeInfos;
  11927. Array<Variant> attributes;
  11928. /* readonly */
  11929. String category;
  11930. int drawOrder;
  11931. bool enabled;
  11932. /* readonly */
  11933. bool enabledEffective;
  11934. /* readonly */
  11935. int height;
  11936. /* readonly */
  11937. uint id;
  11938. /* readonly */
  11939. Node imageNode;
  11940. /* readonly */
  11941. TileMapLayerType2D layerType;
  11942. /* readonly */
  11943. Node node;
  11944. /* readonly */
  11945. uint numAttributes;
  11946. /* readonly */
  11947. uint numObjects;
  11948. ObjectAnimation objectAnimation;
  11949. /* readonly */
  11950. int refs;
  11951. bool temporary;
  11952. /* readonly */
  11953. StringHash type;
  11954. /* readonly */
  11955. String typeName;
  11956. bool visible;
  11957. /* readonly */
  11958. int weakRefs;
  11959. /* readonly */
  11960. int width;
  11961. };
  11962. class TileMapObject2D
  11963. {
  11964. // Methods:
  11965. bool HasProperty(const String&) const;
  11966. const String& GetProperty(const String&) const;
  11967. const Vector2& GetPoint(uint) const;
  11968. // Properties:
  11969. /* readonly */
  11970. String name;
  11971. /* readonly */
  11972. uint numPoints;
  11973. /* readonly */
  11974. TileObjectType2D objectType;
  11975. /* readonly */
  11976. Vector2 position;
  11977. /* readonly */
  11978. int refs;
  11979. /* readonly */
  11980. Vector2 size;
  11981. /* readonly */
  11982. int tileGid;
  11983. /* readonly */
  11984. Sprite2D tileSprite;
  11985. /* readonly */
  11986. String type;
  11987. /* readonly */
  11988. int weakRefs;
  11989. };
  11990. class Time
  11991. {
  11992. // Methods:
  11993. bool HasSubscribedToEvent(Object, const String&);
  11994. bool HasSubscribedToEvent(const String&);
  11995. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11996. // Properties:
  11997. /* readonly */
  11998. String category;
  11999. /* readonly */
  12000. float elapsedTime;
  12001. /* readonly */
  12002. uint frameNumber;
  12003. /* readonly */
  12004. int refs;
  12005. /* readonly */
  12006. uint systemTime;
  12007. /* readonly */
  12008. uint timeSinceEpoch;
  12009. /* readonly */
  12010. String timeStamp;
  12011. /* readonly */
  12012. float timeStep;
  12013. /* readonly */
  12014. StringHash type;
  12015. /* readonly */
  12016. String typeName;
  12017. /* readonly */
  12018. int weakRefs;
  12019. };
  12020. class Timer
  12021. {
  12022. // Methods:
  12023. uint GetMSec(bool);
  12024. void Reset();
  12025. };
  12026. class TmxFile2D
  12027. {
  12028. // Methods:
  12029. bool HasSubscribedToEvent(Object, const String&);
  12030. bool HasSubscribedToEvent(const String&);
  12031. bool Load(File);
  12032. bool Load(VectorBuffer&);
  12033. bool Save(File) const;
  12034. bool Save(VectorBuffer&) const;
  12035. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12036. // Properties:
  12037. /* readonly */
  12038. String category;
  12039. /* readonly */
  12040. uint memoryUse;
  12041. String name;
  12042. /* readonly */
  12043. int refs;
  12044. /* readonly */
  12045. StringHash type;
  12046. /* readonly */
  12047. String typeName;
  12048. /* readonly */
  12049. uint useTimer;
  12050. /* readonly */
  12051. int weakRefs;
  12052. };
  12053. class ToolTip
  12054. {
  12055. // Methods:
  12056. void AddChild(UIElement);
  12057. void AddTag(const String&);
  12058. void AddTags(const String&, int8 = ';');
  12059. void ApplyAttributes();
  12060. void BringToFront();
  12061. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12062. void DisableLayoutUpdate();
  12063. IntVector2 ElementToScreen(const IntVector2&);
  12064. void EnableLayoutUpdate();
  12065. uint FindChild(UIElement) const;
  12066. Variant GetAttribute(const String&) const;
  12067. ValueAnimation GetAttributeAnimation(const String&) const;
  12068. float GetAttributeAnimationSpeed(const String&) const;
  12069. float GetAttributeAnimationTime(const String&) const;
  12070. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12071. Variant GetAttributeDefault(const String&) const;
  12072. UIElement GetChild(const String&, bool = false) const;
  12073. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12074. Array<UIElement> GetChildren(bool = false) const;
  12075. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12076. UIElement GetElementEventSender() const;
  12077. bool GetInterceptNetworkUpdate(const String&) const;
  12078. uint GetNumChildren(bool) const;
  12079. bool HasSubscribedToEvent(Object, const String&);
  12080. bool HasSubscribedToEvent(const String&);
  12081. bool HasTag(const String&) const;
  12082. void InsertChild(uint, UIElement);
  12083. bool IsInside(IntVector2, bool);
  12084. bool IsInsideCombined(IntVector2, bool);
  12085. bool Load(File, bool = false);
  12086. bool Load(VectorBuffer&, bool = false);
  12087. bool LoadChildXML(XMLFile, XMLFile = null);
  12088. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12089. bool LoadJSON(const JSONValue&, bool = false);
  12090. bool LoadXML(File);
  12091. bool LoadXML(VectorBuffer&);
  12092. bool LoadXML(XMLFile, XMLFile);
  12093. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12094. bool LoadXML(const XMLElement&, bool = false);
  12095. void MarkNetworkUpdate() const;
  12096. void Remove();
  12097. void RemoveAllChildren();
  12098. void RemoveAllTags();
  12099. void RemoveAttributeAnimation(const String&);
  12100. void RemoveChild(UIElement, uint = 0);
  12101. void RemoveChild(uint);
  12102. void RemoveInstanceDefault();
  12103. void RemoveObjectAnimation();
  12104. bool RemoveTag(const String&);
  12105. void ResetDeepEnabled();
  12106. void ResetToDefault();
  12107. bool Save(File) const;
  12108. bool Save(VectorBuffer&) const;
  12109. bool SaveJSON(JSONValue&) const;
  12110. bool SaveXML(File, const String& = "\t");
  12111. bool SaveXML(VectorBuffer&, const String& = "\t");
  12112. bool SaveXML(XMLElement&) const;
  12113. IntVector2 ScreenToElement(const IntVector2&);
  12114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12115. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12116. void SetAnimationTime(float);
  12117. bool SetAttribute(const String&, const Variant&);
  12118. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12119. void SetAttributeAnimationSpeed(const String&, float);
  12120. void SetAttributeAnimationTime(const String&, float);
  12121. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12122. void SetDeepEnabled(bool);
  12123. void SetEnabledRecursive(bool);
  12124. void SetFixedHeight(int);
  12125. void SetFixedSize(int, int);
  12126. void SetFixedWidth(int);
  12127. void SetInterceptNetworkUpdate(const String&, bool);
  12128. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12129. void SetMaxSize(int, int);
  12130. void SetMinSize(int, int);
  12131. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12132. void SetPosition(int, int);
  12133. void SetSize(int, int);
  12134. bool SetStyle(const String&, XMLFile = null);
  12135. bool SetStyle(const XMLElement&);
  12136. bool SetStyleAuto(XMLFile = null);
  12137. void UpdateLayout();
  12138. const Variant& GetVar(const StringHash&);
  12139. // Properties:
  12140. bool animationEnabled;
  12141. /* readonly */
  12142. Array<Variant> attributeDefaults;
  12143. /* readonly */
  12144. Array<AttributeInfo> attributeInfos;
  12145. Array<Variant> attributes;
  12146. bool bringToBack;
  12147. bool bringToFront;
  12148. /* readonly */
  12149. String category;
  12150. /* readonly */
  12151. IntVector2 childOffset;
  12152. /* readonly */
  12153. Array<UIElement> children;
  12154. IntRect clipBorder;
  12155. bool clipChildren;
  12156. /* writeonly */
  12157. Color color;
  12158. /* readonly */
  12159. bool colorGradient;
  12160. Array<Color> colors;
  12161. /* readonly */
  12162. IntRect combinedScreenRect;
  12163. XMLFile defaultStyle;
  12164. float delay;
  12165. /* readonly */
  12166. float derivedOpacity;
  12167. /* readonly */
  12168. uint dragButtonCombo;
  12169. /* readonly */
  12170. int dragButtonCount;
  12171. uint dragDropMode;
  12172. bool editable;
  12173. bool elementEventSender;
  12174. bool enabled;
  12175. /* readonly */
  12176. bool enabledSelf;
  12177. /* readonly */
  12178. bool fixedHeight;
  12179. /* readonly */
  12180. bool fixedSize;
  12181. /* readonly */
  12182. bool fixedWidth;
  12183. bool focus;
  12184. FocusMode focusMode;
  12185. int height;
  12186. HorizontalAlignment horizontalAlignment;
  12187. /* readonly */
  12188. bool hovering;
  12189. int indent;
  12190. int indentSpacing;
  12191. /* readonly */
  12192. int indentWidth;
  12193. bool internal;
  12194. IntRect layoutBorder;
  12195. Vector2 layoutFlexScale;
  12196. LayoutMode layoutMode;
  12197. int layoutSpacing;
  12198. int maxHeight;
  12199. IntVector2 maxSize;
  12200. int maxWidth;
  12201. int minHeight;
  12202. IntVector2 minSize;
  12203. int minWidth;
  12204. String name;
  12205. /* readonly */
  12206. uint numAllChildren;
  12207. /* readonly */
  12208. uint numAttributes;
  12209. /* readonly */
  12210. uint numChildren;
  12211. ObjectAnimation objectAnimation;
  12212. float opacity;
  12213. UIElement parent;
  12214. IntVector2 position;
  12215. int priority;
  12216. /* readonly */
  12217. int refs;
  12218. /* readonly */
  12219. UIElement root;
  12220. /* readonly */
  12221. IntVector2 screenPosition;
  12222. bool selected;
  12223. IntVector2 size;
  12224. bool sortChildren;
  12225. String style;
  12226. /* readonly */
  12227. Array<String> tags;
  12228. bool temporary;
  12229. TraversalMode traversalMode;
  12230. /* readonly */
  12231. StringHash type;
  12232. /* readonly */
  12233. String typeName;
  12234. bool useDerivedOpacity;
  12235. /* readonly */
  12236. VariantMap vars;
  12237. VerticalAlignment verticalAlignment;
  12238. bool visible;
  12239. /* readonly */
  12240. bool visibleEffective;
  12241. /* readonly */
  12242. int weakRefs;
  12243. int width;
  12244. };
  12245. class TouchState
  12246. {
  12247. // Properties:
  12248. IntVector2 delta;
  12249. IntVector2 lastPosition;
  12250. IntVector2 position;
  12251. float pressure;
  12252. int touchID;
  12253. /* readonly */
  12254. UIElement touchedElement;
  12255. };
  12256. class UI
  12257. {
  12258. // Methods:
  12259. void Clear();
  12260. void DebugDraw(UIElement);
  12261. UIElement GetElementAt(const IntVector2&, bool = true);
  12262. UIElement GetElementAt(int, int, bool = true);
  12263. bool HasModalElement() const;
  12264. bool HasSubscribedToEvent(Object, const String&);
  12265. bool HasSubscribedToEvent(const String&);
  12266. bool IsDragging() const;
  12267. UIElement LoadLayout(File);
  12268. UIElement LoadLayout(File, XMLFile);
  12269. UIElement LoadLayout(VectorBuffer&);
  12270. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12271. UIElement LoadLayout(XMLFile);
  12272. UIElement LoadLayout(XMLFile, XMLFile);
  12273. bool SaveLayout(File, UIElement);
  12274. bool SaveLayout(VectorBuffer&, UIElement);
  12275. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12276. void SetFocusElement(UIElement, bool = false);
  12277. void SetHeight(float);
  12278. void SetWidth(float);
  12279. const Array<UIElement> GetDragElements();
  12280. // Properties:
  12281. /* readonly */
  12282. String category;
  12283. String clipBoardText;
  12284. Cursor cursor;
  12285. /* readonly */
  12286. IntVector2 cursorPosition;
  12287. float defaultToolTipDelay;
  12288. float doubleClickInterval;
  12289. int dragBeginDistance;
  12290. float dragBeginInterval;
  12291. UIElement focusElement;
  12292. bool forceAutoHint;
  12293. /* readonly */
  12294. UIElement frontElement;
  12295. int maxFontTextureSize;
  12296. /* readonly */
  12297. UIElement modalRoot;
  12298. bool nonFocusedMouseWheel;
  12299. /* readonly */
  12300. int refs;
  12301. /* readonly */
  12302. UIElement root;
  12303. float scale;
  12304. /* readonly */
  12305. StringHash type;
  12306. /* readonly */
  12307. String typeName;
  12308. bool useMutableGlyphs;
  12309. bool useScreenKeyboard;
  12310. bool useSystemClipboard;
  12311. /* readonly */
  12312. int weakRefs;
  12313. };
  12314. class UIElement
  12315. {
  12316. // Methods:
  12317. void AddChild(UIElement);
  12318. void AddTag(const String&);
  12319. void AddTags(const String&, int8 = ';');
  12320. void ApplyAttributes();
  12321. void BringToFront();
  12322. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12323. void DisableLayoutUpdate();
  12324. IntVector2 ElementToScreen(const IntVector2&);
  12325. void EnableLayoutUpdate();
  12326. uint FindChild(UIElement) const;
  12327. Variant GetAttribute(const String&) const;
  12328. ValueAnimation GetAttributeAnimation(const String&) const;
  12329. float GetAttributeAnimationSpeed(const String&) const;
  12330. float GetAttributeAnimationTime(const String&) const;
  12331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12332. Variant GetAttributeDefault(const String&) const;
  12333. UIElement GetChild(const String&, bool = false) const;
  12334. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12335. Array<UIElement> GetChildren(bool = false) const;
  12336. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12337. UIElement GetElementEventSender() const;
  12338. bool GetInterceptNetworkUpdate(const String&) const;
  12339. uint GetNumChildren(bool) const;
  12340. bool HasSubscribedToEvent(Object, const String&);
  12341. bool HasSubscribedToEvent(const String&);
  12342. bool HasTag(const String&) const;
  12343. void InsertChild(uint, UIElement);
  12344. bool IsInside(IntVector2, bool);
  12345. bool IsInsideCombined(IntVector2, bool);
  12346. bool Load(File, bool = false);
  12347. bool Load(VectorBuffer&, bool = false);
  12348. bool LoadChildXML(XMLFile, XMLFile = null);
  12349. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12350. bool LoadJSON(const JSONValue&, bool = false);
  12351. bool LoadXML(File);
  12352. bool LoadXML(VectorBuffer&);
  12353. bool LoadXML(XMLFile, XMLFile);
  12354. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12355. bool LoadXML(const XMLElement&, bool = false);
  12356. void MarkNetworkUpdate() const;
  12357. void Remove();
  12358. void RemoveAllChildren();
  12359. void RemoveAllTags();
  12360. void RemoveAttributeAnimation(const String&);
  12361. void RemoveChild(UIElement, uint = 0);
  12362. void RemoveChild(uint);
  12363. void RemoveInstanceDefault();
  12364. void RemoveObjectAnimation();
  12365. bool RemoveTag(const String&);
  12366. void ResetDeepEnabled();
  12367. void ResetToDefault();
  12368. bool Save(File) const;
  12369. bool Save(VectorBuffer&) const;
  12370. bool SaveJSON(JSONValue&) const;
  12371. bool SaveXML(File, const String& = "\t");
  12372. bool SaveXML(VectorBuffer&, const String& = "\t");
  12373. bool SaveXML(XMLElement&) const;
  12374. IntVector2 ScreenToElement(const IntVector2&);
  12375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12376. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12377. void SetAnimationTime(float);
  12378. bool SetAttribute(const String&, const Variant&);
  12379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12380. void SetAttributeAnimationSpeed(const String&, float);
  12381. void SetAttributeAnimationTime(const String&, float);
  12382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12383. void SetDeepEnabled(bool);
  12384. void SetEnabledRecursive(bool);
  12385. void SetFixedHeight(int);
  12386. void SetFixedSize(int, int);
  12387. void SetFixedWidth(int);
  12388. void SetInterceptNetworkUpdate(const String&, bool);
  12389. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12390. void SetMaxSize(int, int);
  12391. void SetMinSize(int, int);
  12392. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12393. void SetPosition(int, int);
  12394. void SetSize(int, int);
  12395. bool SetStyle(const String&, XMLFile = null);
  12396. bool SetStyle(const XMLElement&);
  12397. bool SetStyleAuto(XMLFile = null);
  12398. void UpdateLayout();
  12399. const Variant& GetVar(const StringHash&);
  12400. // Properties:
  12401. bool animationEnabled;
  12402. /* readonly */
  12403. Array<Variant> attributeDefaults;
  12404. /* readonly */
  12405. Array<AttributeInfo> attributeInfos;
  12406. Array<Variant> attributes;
  12407. bool bringToBack;
  12408. bool bringToFront;
  12409. /* readonly */
  12410. String category;
  12411. /* readonly */
  12412. IntVector2 childOffset;
  12413. /* readonly */
  12414. Array<UIElement> children;
  12415. IntRect clipBorder;
  12416. bool clipChildren;
  12417. /* writeonly */
  12418. Color color;
  12419. /* readonly */
  12420. bool colorGradient;
  12421. Array<Color> colors;
  12422. /* readonly */
  12423. IntRect combinedScreenRect;
  12424. XMLFile defaultStyle;
  12425. /* readonly */
  12426. float derivedOpacity;
  12427. /* readonly */
  12428. uint dragButtonCombo;
  12429. /* readonly */
  12430. int dragButtonCount;
  12431. uint dragDropMode;
  12432. bool editable;
  12433. bool elementEventSender;
  12434. bool enabled;
  12435. /* readonly */
  12436. bool enabledSelf;
  12437. /* readonly */
  12438. bool fixedHeight;
  12439. /* readonly */
  12440. bool fixedSize;
  12441. /* readonly */
  12442. bool fixedWidth;
  12443. bool focus;
  12444. FocusMode focusMode;
  12445. int height;
  12446. HorizontalAlignment horizontalAlignment;
  12447. /* readonly */
  12448. bool hovering;
  12449. int indent;
  12450. int indentSpacing;
  12451. /* readonly */
  12452. int indentWidth;
  12453. bool internal;
  12454. IntRect layoutBorder;
  12455. Vector2 layoutFlexScale;
  12456. LayoutMode layoutMode;
  12457. int layoutSpacing;
  12458. int maxHeight;
  12459. IntVector2 maxSize;
  12460. int maxWidth;
  12461. int minHeight;
  12462. IntVector2 minSize;
  12463. int minWidth;
  12464. String name;
  12465. /* readonly */
  12466. uint numAllChildren;
  12467. /* readonly */
  12468. uint numAttributes;
  12469. /* readonly */
  12470. uint numChildren;
  12471. ObjectAnimation objectAnimation;
  12472. float opacity;
  12473. UIElement parent;
  12474. IntVector2 position;
  12475. int priority;
  12476. /* readonly */
  12477. int refs;
  12478. /* readonly */
  12479. UIElement root;
  12480. /* readonly */
  12481. IntVector2 screenPosition;
  12482. bool selected;
  12483. IntVector2 size;
  12484. bool sortChildren;
  12485. String style;
  12486. /* readonly */
  12487. Array<String> tags;
  12488. bool temporary;
  12489. TraversalMode traversalMode;
  12490. /* readonly */
  12491. StringHash type;
  12492. /* readonly */
  12493. String typeName;
  12494. bool useDerivedOpacity;
  12495. /* readonly */
  12496. VariantMap vars;
  12497. VerticalAlignment verticalAlignment;
  12498. bool visible;
  12499. /* readonly */
  12500. bool visibleEffective;
  12501. /* readonly */
  12502. int weakRefs;
  12503. int width;
  12504. };
  12505. class ValueAnimation
  12506. {
  12507. // Methods:
  12508. bool HasSubscribedToEvent(Object, const String&);
  12509. bool HasSubscribedToEvent(const String&);
  12510. bool Load(File);
  12511. bool Load(VectorBuffer&);
  12512. bool Save(File) const;
  12513. bool Save(VectorBuffer&) const;
  12514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12515. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12516. void SetKeyFrame(float, const Variant&);
  12517. // Properties:
  12518. /* readonly */
  12519. String category;
  12520. InterpMethod interpolationMethod;
  12521. /* readonly */
  12522. uint memoryUse;
  12523. String name;
  12524. /* readonly */
  12525. int refs;
  12526. float splineTension;
  12527. /* readonly */
  12528. StringHash type;
  12529. /* readonly */
  12530. String typeName;
  12531. /* readonly */
  12532. uint useTimer;
  12533. VariantType valueType;
  12534. /* readonly */
  12535. int weakRefs;
  12536. };
  12537. class Variant
  12538. {
  12539. // Methods:
  12540. void Clear();
  12541. const Color& GetColor() const;
  12542. void FromString(VariantType, const String&);
  12543. void FromString(const String&, const String&);
  12544. bool GetBool() const;
  12545. VectorBuffer GetBuffer() const;
  12546. double GetDouble() const;
  12547. float GetFloat() const;
  12548. int GetInt() const;
  12549. RefCounted GetPtr() const;
  12550. ScriptObject GetScriptObject() const;
  12551. StringHash GetStringHash() const;
  12552. Array<String> GetStringVector() const;
  12553. uint GetUInt() const;
  12554. Array<Variant> GetVariantVector() const;
  12555. const IntRect& GetIntRect() const;
  12556. const IntVector2& GetIntVector2() const;
  12557. const Matrix3& GetMatrix3() const;
  12558. const Matrix3x4& GetMatrix3x4() const;
  12559. const Matrix4& GetMatrix4() const;
  12560. const Quaternion& GetQuaternion() const;
  12561. const ResourceRef& GetResourceRef() const;
  12562. const ResourceRefList& GetResourceRefList() const;
  12563. const String& GetString() const;
  12564. String ToString() const;
  12565. const VariantMap& GetVariantMap() const;
  12566. const Vector2& GetVector2() const;
  12567. const Vector3& GetVector3() const;
  12568. const Vector4& GetVector4() const;
  12569. // Properties:
  12570. /* readonly */
  12571. bool empty;
  12572. /* readonly */
  12573. VariantType type;
  12574. /* readonly */
  12575. String typeName;
  12576. /* readonly */
  12577. bool zero;
  12578. };
  12579. class VariantMap
  12580. {
  12581. // Methods:
  12582. void Clear();
  12583. bool Contains(StringHash) const;
  12584. bool Contains(const String&) const;
  12585. bool Erase(StringHash);
  12586. bool Erase(const String&);
  12587. // Properties:
  12588. /* readonly */
  12589. Array<StringHash> keys;
  12590. /* readonly */
  12591. uint length;
  12592. /* readonly */
  12593. Array<Variant> values;
  12594. };
  12595. class Vector2
  12596. {
  12597. // Methods:
  12598. Vector2 Abs() const;
  12599. float AbsDotProduct(const Vector2&) const;
  12600. float Angle(const Vector2&) const;
  12601. float DotProduct(const Vector2&) const;
  12602. bool Equals(const Vector2&) const;
  12603. bool IsNaN() const;
  12604. Vector2 Lerp(const Vector2&, float) const;
  12605. void Normalize();
  12606. Vector2 Normalized() const;
  12607. String ToString() const;
  12608. // Properties:
  12609. /* readonly */
  12610. Array<float> data;
  12611. /* readonly */
  12612. float length;
  12613. /* readonly */
  12614. float lengthSquared;
  12615. float x;
  12616. float y;
  12617. };
  12618. class Vector3
  12619. {
  12620. // Methods:
  12621. Vector3 Abs() const;
  12622. float AbsDotProduct(const Vector3&) const;
  12623. float Angle(const Vector3&) const;
  12624. Vector3 CrossProduct(const Vector3&) const;
  12625. float DotProduct(const Vector3&) const;
  12626. bool Equals(const Vector3&) const;
  12627. bool IsNaN() const;
  12628. Vector3 Lerp(const Vector3&, float) const;
  12629. void Normalize();
  12630. Vector3 Normalized() const;
  12631. String ToString() const;
  12632. // Properties:
  12633. /* readonly */
  12634. Array<float> data;
  12635. /* readonly */
  12636. float length;
  12637. /* readonly */
  12638. float lengthSquared;
  12639. float x;
  12640. float y;
  12641. float z;
  12642. };
  12643. class Vector4
  12644. {
  12645. // Methods:
  12646. Vector4 Abs() const;
  12647. float AbsDotProduct(const Vector4&) const;
  12648. float DotProduct(const Vector4&) const;
  12649. bool Equals(const Vector4&) const;
  12650. bool IsNaN() const;
  12651. Vector4 Lerp(const Vector4&, float) const;
  12652. String ToString() const;
  12653. // Properties:
  12654. /* readonly */
  12655. Array<float> data;
  12656. float w;
  12657. float x;
  12658. float y;
  12659. float z;
  12660. };
  12661. class VectorBuffer
  12662. {
  12663. // Methods:
  12664. void Clear();
  12665. Array<uint8> Read(uint);
  12666. bool ReadBool();
  12667. BoundingBox ReadBoundingBox();
  12668. int8 ReadByte();
  12669. Color ReadColor();
  12670. double ReadDouble();
  12671. String ReadFileID();
  12672. float ReadFloat();
  12673. int ReadInt();
  12674. int64 ReadInt64();
  12675. IntRect ReadIntRect();
  12676. IntVector2 ReadIntVector2();
  12677. String ReadLine();
  12678. Matrix3 ReadMatrix3();
  12679. Matrix3x4 ReadMatrix3x4();
  12680. Matrix4 ReadMatrix4();
  12681. uint ReadNetID();
  12682. Quaternion ReadPackedQuaternion();
  12683. Vector3 ReadPackedVector3(float);
  12684. Quaternion ReadQuaternion();
  12685. int16 ReadShort();
  12686. String ReadString();
  12687. StringHash ReadStringHash();
  12688. uint8 ReadUByte();
  12689. uint ReadUInt();
  12690. uint64 ReadUInt64();
  12691. uint16 ReadUShort();
  12692. uint ReadVLE();
  12693. Variant ReadVariant();
  12694. VariantMap ReadVariantMap();
  12695. Vector2 ReadVector2();
  12696. Vector3 ReadVector3();
  12697. Vector4 ReadVector4();
  12698. VectorBuffer ReadVectorBuffer(uint);
  12699. void Resize(uint);
  12700. uint Seek(uint);
  12701. void SetData(Deserializer, uint);
  12702. uint Write(Array<uint8>);
  12703. bool WriteBool(bool);
  12704. bool WriteBoundingBox(const BoundingBox&);
  12705. bool WriteByte(int8);
  12706. bool WriteColor(const Color&);
  12707. bool WriteDouble(double);
  12708. bool WriteFileID(const String&);
  12709. bool WriteFloat(float);
  12710. bool WriteInt(int);
  12711. bool WriteInt64(int64);
  12712. bool WriteIntRect(const IntRect&);
  12713. bool WriteIntVector2(const IntVector2&);
  12714. bool WriteLine(const String&);
  12715. bool WriteMatrix3(const Matrix3&);
  12716. bool WriteMatrix3x4(const Matrix3x4&);
  12717. bool WriteMatrix4(const Matrix4&);
  12718. bool WriteNetID(uint);
  12719. bool WritePackedQuaternion(const Quaternion&);
  12720. bool WritePackedVector3(const Vector3&, float);
  12721. bool WriteQuaternion(const Quaternion&);
  12722. bool WriteShort(int16);
  12723. bool WriteString(const String&);
  12724. bool WriteStringHash(const StringHash&);
  12725. bool WriteUByte(uint8);
  12726. bool WriteUInt(uint);
  12727. bool WriteUInt64(uint64);
  12728. bool WriteUShort(uint16);
  12729. bool WriteVLE(uint);
  12730. bool WriteVariant(const Variant&);
  12731. bool WriteVariantMap(const VariantMap&);
  12732. bool WriteVector2(const Vector2&);
  12733. bool WriteVector3(const Vector3&);
  12734. bool WriteVector4(const Vector4&);
  12735. bool WriteVectorBuffer(const VectorBuffer&);
  12736. // Properties:
  12737. /* readonly */
  12738. uint checksum;
  12739. /* readonly */
  12740. bool eof;
  12741. /* readonly */
  12742. String name;
  12743. /* readonly */
  12744. uint position;
  12745. /* readonly */
  12746. uint size;
  12747. };
  12748. class VertexBuffer
  12749. {
  12750. // Methods:
  12751. VectorBuffer GetData() const;
  12752. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12753. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12754. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12755. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12756. bool HasSubscribedToEvent(Object, const String&);
  12757. bool HasSubscribedToEvent(const String&);
  12758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12759. bool SetData(VectorBuffer&);
  12760. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12761. void SetSize(uint, Array<VertexElement>, bool = false);
  12762. void SetSize(uint, uint, bool = false);
  12763. // Properties:
  12764. /* readonly */
  12765. String category;
  12766. /* readonly */
  12767. bool dynamic;
  12768. /* readonly */
  12769. uint elementMask;
  12770. /* readonly */
  12771. Array<VertexElement> elements;
  12772. /* readonly */
  12773. int refs;
  12774. bool shadowed;
  12775. /* readonly */
  12776. StringHash type;
  12777. /* readonly */
  12778. String typeName;
  12779. /* readonly */
  12780. uint vertexCount;
  12781. /* readonly */
  12782. uint vertexSize;
  12783. /* readonly */
  12784. int weakRefs;
  12785. };
  12786. class VertexElement
  12787. {
  12788. // Properties:
  12789. uint8 index;
  12790. uint offset;
  12791. bool perInstance;
  12792. VertexElementSemantic semantic;
  12793. VertexElementType type;
  12794. };
  12795. class View3D
  12796. {
  12797. // Methods:
  12798. void AddChild(UIElement);
  12799. void AddTag(const String&);
  12800. void AddTags(const String&, int8 = ';');
  12801. void ApplyAttributes();
  12802. void BringToFront();
  12803. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12804. void DisableLayoutUpdate();
  12805. IntVector2 ElementToScreen(const IntVector2&);
  12806. void EnableLayoutUpdate();
  12807. uint FindChild(UIElement) const;
  12808. Variant GetAttribute(const String&) const;
  12809. ValueAnimation GetAttributeAnimation(const String&) const;
  12810. float GetAttributeAnimationSpeed(const String&) const;
  12811. float GetAttributeAnimationTime(const String&) const;
  12812. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12813. Variant GetAttributeDefault(const String&) const;
  12814. UIElement GetChild(const String&, bool = false) const;
  12815. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12816. Array<UIElement> GetChildren(bool = false) const;
  12817. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12818. UIElement GetElementEventSender() const;
  12819. bool GetInterceptNetworkUpdate(const String&) const;
  12820. uint GetNumChildren(bool) const;
  12821. bool HasSubscribedToEvent(Object, const String&);
  12822. bool HasSubscribedToEvent(const String&);
  12823. bool HasTag(const String&) const;
  12824. void InsertChild(uint, UIElement);
  12825. bool IsInside(IntVector2, bool);
  12826. bool IsInsideCombined(IntVector2, bool);
  12827. bool Load(File, bool = false);
  12828. bool Load(VectorBuffer&, bool = false);
  12829. bool LoadChildXML(XMLFile, XMLFile = null);
  12830. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12831. bool LoadJSON(const JSONValue&, bool = false);
  12832. bool LoadXML(File);
  12833. bool LoadXML(VectorBuffer&);
  12834. bool LoadXML(XMLFile, XMLFile);
  12835. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12836. bool LoadXML(const XMLElement&, bool = false);
  12837. void MarkNetworkUpdate() const;
  12838. void QueueUpdate();
  12839. void Remove();
  12840. void RemoveAllChildren();
  12841. void RemoveAllTags();
  12842. void RemoveAttributeAnimation(const String&);
  12843. void RemoveChild(UIElement, uint = 0);
  12844. void RemoveChild(uint);
  12845. void RemoveInstanceDefault();
  12846. void RemoveObjectAnimation();
  12847. bool RemoveTag(const String&);
  12848. void ResetDeepEnabled();
  12849. void ResetToDefault();
  12850. bool Save(File) const;
  12851. bool Save(VectorBuffer&) const;
  12852. bool SaveJSON(JSONValue&) const;
  12853. bool SaveXML(File, const String& = "\t");
  12854. bool SaveXML(VectorBuffer&, const String& = "\t");
  12855. bool SaveXML(XMLElement&) const;
  12856. IntVector2 ScreenToElement(const IntVector2&);
  12857. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12858. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12859. void SetAnimationTime(float);
  12860. bool SetAttribute(const String&, const Variant&);
  12861. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12862. void SetAttributeAnimationSpeed(const String&, float);
  12863. void SetAttributeAnimationTime(const String&, float);
  12864. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12865. void SetDeepEnabled(bool);
  12866. void SetEnabledRecursive(bool);
  12867. void SetFixedHeight(int);
  12868. void SetFixedSize(int, int);
  12869. void SetFixedWidth(int);
  12870. void SetFullImageRect();
  12871. void SetHoverOffset(int, int);
  12872. void SetInterceptNetworkUpdate(const String&, bool);
  12873. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12874. void SetMaxSize(int, int);
  12875. void SetMinSize(int, int);
  12876. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12877. void SetPosition(int, int);
  12878. void SetSize(int, int);
  12879. bool SetStyle(const String&, XMLFile = null);
  12880. bool SetStyle(const XMLElement&);
  12881. bool SetStyleAuto(XMLFile = null);
  12882. void SetView(Scene, Camera, bool = true);
  12883. void UpdateLayout();
  12884. const Variant& GetVar(const StringHash&);
  12885. // Properties:
  12886. bool animationEnabled;
  12887. /* readonly */
  12888. Array<Variant> attributeDefaults;
  12889. /* readonly */
  12890. Array<AttributeInfo> attributeInfos;
  12891. Array<Variant> attributes;
  12892. bool autoUpdate;
  12893. BlendMode blendMode;
  12894. IntRect border;
  12895. bool bringToBack;
  12896. bool bringToFront;
  12897. /* readonly */
  12898. Node cameraNode;
  12899. /* readonly */
  12900. String category;
  12901. /* readonly */
  12902. IntVector2 childOffset;
  12903. /* readonly */
  12904. Array<UIElement> children;
  12905. IntRect clipBorder;
  12906. bool clipChildren;
  12907. /* writeonly */
  12908. Color color;
  12909. /* readonly */
  12910. bool colorGradient;
  12911. Array<Color> colors;
  12912. /* readonly */
  12913. IntRect combinedScreenRect;
  12914. XMLFile defaultStyle;
  12915. /* readonly */
  12916. Texture2D depthTexture;
  12917. /* readonly */
  12918. float derivedOpacity;
  12919. /* readonly */
  12920. uint dragButtonCombo;
  12921. /* readonly */
  12922. int dragButtonCount;
  12923. uint dragDropMode;
  12924. bool editable;
  12925. bool elementEventSender;
  12926. bool enabled;
  12927. /* readonly */
  12928. bool enabledSelf;
  12929. /* readonly */
  12930. bool fixedHeight;
  12931. bool fixedHeightResizing;
  12932. /* readonly */
  12933. bool fixedSize;
  12934. /* readonly */
  12935. bool fixedWidth;
  12936. bool fixedWidthResizing;
  12937. bool focus;
  12938. FocusMode focusMode;
  12939. uint format;
  12940. int height;
  12941. HorizontalAlignment horizontalAlignment;
  12942. IntVector2 hoverOffset;
  12943. /* readonly */
  12944. bool hovering;
  12945. IntRect imageBorder;
  12946. IntRect imageRect;
  12947. int indent;
  12948. int indentSpacing;
  12949. /* readonly */
  12950. int indentWidth;
  12951. bool internal;
  12952. IntRect layoutBorder;
  12953. Vector2 layoutFlexScale;
  12954. LayoutMode layoutMode;
  12955. int layoutSpacing;
  12956. int maxHeight;
  12957. IntVector2 maxSize;
  12958. int maxWidth;
  12959. int minHeight;
  12960. IntVector2 minSize;
  12961. int minWidth;
  12962. bool modal;
  12963. bool modalAutoDismiss;
  12964. Color modalFrameColor;
  12965. IntVector2 modalFrameSize;
  12966. Color modalShadeColor;
  12967. bool movable;
  12968. String name;
  12969. /* readonly */
  12970. uint numAllChildren;
  12971. /* readonly */
  12972. uint numAttributes;
  12973. /* readonly */
  12974. uint numChildren;
  12975. ObjectAnimation objectAnimation;
  12976. float opacity;
  12977. UIElement parent;
  12978. IntVector2 position;
  12979. int priority;
  12980. /* readonly */
  12981. int refs;
  12982. /* readonly */
  12983. Texture2D renderTexture;
  12984. bool resizable;
  12985. IntRect resizeBorder;
  12986. /* readonly */
  12987. UIElement root;
  12988. /* readonly */
  12989. Scene scene;
  12990. /* readonly */
  12991. IntVector2 screenPosition;
  12992. bool selected;
  12993. IntVector2 size;
  12994. bool sortChildren;
  12995. String style;
  12996. /* readonly */
  12997. Array<String> tags;
  12998. bool temporary;
  12999. Texture texture;
  13000. bool tiled;
  13001. TraversalMode traversalMode;
  13002. /* readonly */
  13003. StringHash type;
  13004. /* readonly */
  13005. String typeName;
  13006. bool useDerivedOpacity;
  13007. /* readonly */
  13008. VariantMap vars;
  13009. VerticalAlignment verticalAlignment;
  13010. /* readonly */
  13011. Viewport viewport;
  13012. bool visible;
  13013. /* readonly */
  13014. bool visibleEffective;
  13015. /* readonly */
  13016. int weakRefs;
  13017. int width;
  13018. };
  13019. class Viewport
  13020. {
  13021. // Methods:
  13022. Ray GetScreenRay(int, int) const;
  13023. bool HasSubscribedToEvent(Object, const String&);
  13024. bool HasSubscribedToEvent(const String&);
  13025. Vector3 ScreenToWorldPoint(int, int, float) const;
  13026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13027. void SetRenderPath(XMLFile);
  13028. Vector2 WorldToScreenPoint(const Vector3&) const;
  13029. // Properties:
  13030. Camera camera;
  13031. /* readonly */
  13032. String category;
  13033. Camera cullCamera;
  13034. bool drawDebug;
  13035. IntRect rect;
  13036. /* readonly */
  13037. int refs;
  13038. RenderPath renderPath;
  13039. Scene scene;
  13040. /* readonly */
  13041. StringHash type;
  13042. /* readonly */
  13043. String typeName;
  13044. /* readonly */
  13045. int weakRefs;
  13046. };
  13047. class WeakHandle
  13048. {
  13049. // Methods:
  13050. RefCounted Get() const;
  13051. // Properties:
  13052. /* readonly */
  13053. bool expired;
  13054. /* readonly */
  13055. int refs;
  13056. /* readonly */
  13057. int weakRefs;
  13058. };
  13059. class Window
  13060. {
  13061. // Methods:
  13062. void AddChild(UIElement);
  13063. void AddTag(const String&);
  13064. void AddTags(const String&, int8 = ';');
  13065. void ApplyAttributes();
  13066. void BringToFront();
  13067. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13068. void DisableLayoutUpdate();
  13069. IntVector2 ElementToScreen(const IntVector2&);
  13070. void EnableLayoutUpdate();
  13071. uint FindChild(UIElement) const;
  13072. Variant GetAttribute(const String&) const;
  13073. ValueAnimation GetAttributeAnimation(const String&) const;
  13074. float GetAttributeAnimationSpeed(const String&) const;
  13075. float GetAttributeAnimationTime(const String&) const;
  13076. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13077. Variant GetAttributeDefault(const String&) const;
  13078. UIElement GetChild(const String&, bool = false) const;
  13079. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13080. Array<UIElement> GetChildren(bool = false) const;
  13081. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13082. UIElement GetElementEventSender() const;
  13083. bool GetInterceptNetworkUpdate(const String&) const;
  13084. uint GetNumChildren(bool) const;
  13085. bool HasSubscribedToEvent(Object, const String&);
  13086. bool HasSubscribedToEvent(const String&);
  13087. bool HasTag(const String&) const;
  13088. void InsertChild(uint, UIElement);
  13089. bool IsInside(IntVector2, bool);
  13090. bool IsInsideCombined(IntVector2, bool);
  13091. bool Load(File, bool = false);
  13092. bool Load(VectorBuffer&, bool = false);
  13093. bool LoadChildXML(XMLFile, XMLFile = null);
  13094. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13095. bool LoadJSON(const JSONValue&, bool = false);
  13096. bool LoadXML(File);
  13097. bool LoadXML(VectorBuffer&);
  13098. bool LoadXML(XMLFile, XMLFile);
  13099. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13100. bool LoadXML(const XMLElement&, bool = false);
  13101. void MarkNetworkUpdate() const;
  13102. void Remove();
  13103. void RemoveAllChildren();
  13104. void RemoveAllTags();
  13105. void RemoveAttributeAnimation(const String&);
  13106. void RemoveChild(UIElement, uint = 0);
  13107. void RemoveChild(uint);
  13108. void RemoveInstanceDefault();
  13109. void RemoveObjectAnimation();
  13110. bool RemoveTag(const String&);
  13111. void ResetDeepEnabled();
  13112. void ResetToDefault();
  13113. bool Save(File) const;
  13114. bool Save(VectorBuffer&) const;
  13115. bool SaveJSON(JSONValue&) const;
  13116. bool SaveXML(File, const String& = "\t");
  13117. bool SaveXML(VectorBuffer&, const String& = "\t");
  13118. bool SaveXML(XMLElement&) const;
  13119. IntVector2 ScreenToElement(const IntVector2&);
  13120. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13121. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13122. void SetAnimationTime(float);
  13123. bool SetAttribute(const String&, const Variant&);
  13124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13125. void SetAttributeAnimationSpeed(const String&, float);
  13126. void SetAttributeAnimationTime(const String&, float);
  13127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13128. void SetDeepEnabled(bool);
  13129. void SetEnabledRecursive(bool);
  13130. void SetFixedHeight(int);
  13131. void SetFixedSize(int, int);
  13132. void SetFixedWidth(int);
  13133. void SetFullImageRect();
  13134. void SetHoverOffset(int, int);
  13135. void SetInterceptNetworkUpdate(const String&, bool);
  13136. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13137. void SetMaxSize(int, int);
  13138. void SetMinSize(int, int);
  13139. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13140. void SetPosition(int, int);
  13141. void SetSize(int, int);
  13142. bool SetStyle(const String&, XMLFile = null);
  13143. bool SetStyle(const XMLElement&);
  13144. bool SetStyleAuto(XMLFile = null);
  13145. void UpdateLayout();
  13146. const Variant& GetVar(const StringHash&);
  13147. // Properties:
  13148. bool animationEnabled;
  13149. /* readonly */
  13150. Array<Variant> attributeDefaults;
  13151. /* readonly */
  13152. Array<AttributeInfo> attributeInfos;
  13153. Array<Variant> attributes;
  13154. BlendMode blendMode;
  13155. IntRect border;
  13156. bool bringToBack;
  13157. bool bringToFront;
  13158. /* readonly */
  13159. String category;
  13160. /* readonly */
  13161. IntVector2 childOffset;
  13162. /* readonly */
  13163. Array<UIElement> children;
  13164. IntRect clipBorder;
  13165. bool clipChildren;
  13166. /* writeonly */
  13167. Color color;
  13168. /* readonly */
  13169. bool colorGradient;
  13170. Array<Color> colors;
  13171. /* readonly */
  13172. IntRect combinedScreenRect;
  13173. XMLFile defaultStyle;
  13174. /* readonly */
  13175. float derivedOpacity;
  13176. /* readonly */
  13177. uint dragButtonCombo;
  13178. /* readonly */
  13179. int dragButtonCount;
  13180. uint dragDropMode;
  13181. bool editable;
  13182. bool elementEventSender;
  13183. bool enabled;
  13184. /* readonly */
  13185. bool enabledSelf;
  13186. /* readonly */
  13187. bool fixedHeight;
  13188. bool fixedHeightResizing;
  13189. /* readonly */
  13190. bool fixedSize;
  13191. /* readonly */
  13192. bool fixedWidth;
  13193. bool fixedWidthResizing;
  13194. bool focus;
  13195. FocusMode focusMode;
  13196. int height;
  13197. HorizontalAlignment horizontalAlignment;
  13198. IntVector2 hoverOffset;
  13199. /* readonly */
  13200. bool hovering;
  13201. IntRect imageBorder;
  13202. IntRect imageRect;
  13203. int indent;
  13204. int indentSpacing;
  13205. /* readonly */
  13206. int indentWidth;
  13207. bool internal;
  13208. IntRect layoutBorder;
  13209. Vector2 layoutFlexScale;
  13210. LayoutMode layoutMode;
  13211. int layoutSpacing;
  13212. int maxHeight;
  13213. IntVector2 maxSize;
  13214. int maxWidth;
  13215. int minHeight;
  13216. IntVector2 minSize;
  13217. int minWidth;
  13218. bool modal;
  13219. bool modalAutoDismiss;
  13220. Color modalFrameColor;
  13221. IntVector2 modalFrameSize;
  13222. Color modalShadeColor;
  13223. bool movable;
  13224. String name;
  13225. /* readonly */
  13226. uint numAllChildren;
  13227. /* readonly */
  13228. uint numAttributes;
  13229. /* readonly */
  13230. uint numChildren;
  13231. ObjectAnimation objectAnimation;
  13232. float opacity;
  13233. UIElement parent;
  13234. IntVector2 position;
  13235. int priority;
  13236. /* readonly */
  13237. int refs;
  13238. bool resizable;
  13239. IntRect resizeBorder;
  13240. /* readonly */
  13241. UIElement root;
  13242. /* readonly */
  13243. IntVector2 screenPosition;
  13244. bool selected;
  13245. IntVector2 size;
  13246. bool sortChildren;
  13247. String style;
  13248. /* readonly */
  13249. Array<String> tags;
  13250. bool temporary;
  13251. Texture texture;
  13252. bool tiled;
  13253. TraversalMode traversalMode;
  13254. /* readonly */
  13255. StringHash type;
  13256. /* readonly */
  13257. String typeName;
  13258. bool useDerivedOpacity;
  13259. /* readonly */
  13260. VariantMap vars;
  13261. VerticalAlignment verticalAlignment;
  13262. bool visible;
  13263. /* readonly */
  13264. bool visibleEffective;
  13265. /* readonly */
  13266. int weakRefs;
  13267. int width;
  13268. };
  13269. class XMLElement
  13270. {
  13271. // Methods:
  13272. XMLElement CreateChild(const String&);
  13273. String GetAttribute(const String& = String ( )) const;
  13274. String GetAttributeLower(const String&) const;
  13275. Array<String> GetAttributeNames() const;
  13276. String GetAttributeUpper(const String&) const;
  13277. bool GetBool(const String&) const;
  13278. BoundingBox GetBoundingBox() const;
  13279. XMLElement GetChild(const String& = String ( )) const;
  13280. Color GetColor(const String&) const;
  13281. double GetDouble(const String&) const;
  13282. float GetFloat(const String&) const;
  13283. int GetInt(const String&) const;
  13284. IntRect GetIntRect(const String&) const;
  13285. IntVector2 GetIntVector2(const String&) const;
  13286. Matrix3 GetMatrix3(const String&) const;
  13287. Matrix3x4 GetMatrix3x4(const String&) const;
  13288. Matrix4 GetMatrix4(const String&) const;
  13289. XMLElement GetNext(const String& = String ( )) const;
  13290. Quaternion GetQuaternion(const String&) const;
  13291. ResourceRef GetResourceRef() const;
  13292. ResourceRefList GetResourceRefList() const;
  13293. uint GetUInt(const String&) const;
  13294. String GetValue() const;
  13295. Variant GetVariant() const;
  13296. VariantMap GetVariantMap() const;
  13297. Array<Variant> GetVariantVector() const;
  13298. Vector2 GetVector2(const String&) const;
  13299. Vector3 GetVector3(const String&) const;
  13300. Vector4 GetVector4(const String&) const;
  13301. Variant GetVectorVariant(const String&) const;
  13302. bool HasAttribute(const String&) const;
  13303. bool HasChild(const String&) const;
  13304. bool RemoveAttribute(const String& = String ( ));
  13305. bool RemoveChild(const String&);
  13306. bool RemoveChild(const XMLElement&);
  13307. bool RemoveChildren(const String& = String ( ));
  13308. XPathResultSet Select(const String&);
  13309. XPathResultSet SelectPrepared(const XPathQuery&);
  13310. XMLElement SelectSingle(const String&);
  13311. XMLElement SelectSinglePrepared(const XPathQuery&);
  13312. bool SetAttribute(const String&);
  13313. bool SetAttribute(const String&, const String&);
  13314. bool SetBool(const String&, bool);
  13315. bool SetBoundingBox(const BoundingBox&);
  13316. bool SetColor(const String&, const Color&);
  13317. bool SetDouble(const String&, double);
  13318. bool SetFloat(const String&, float);
  13319. bool SetInt(const String&, int);
  13320. bool SetIntRect(const String&, const IntRect&);
  13321. bool SetIntVector2(const String&, const IntVector2&);
  13322. bool SetMatrix3(const String&, const Matrix3&);
  13323. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13324. bool SetMatrix4(const String&, const Matrix4&);
  13325. bool SetQuaternion(const String&, const Quaternion&);
  13326. bool SetResourceRef(const String&, const ResourceRef&);
  13327. bool SetResourceRefList(const String&, const ResourceRefList&);
  13328. bool SetUInt(const String&, uint);
  13329. bool SetValue(const String&);
  13330. bool SetVariant(const Variant&);
  13331. bool SetVariantMap(const VariantMap&);
  13332. bool SetVariantVector(Array<Variant>);
  13333. bool SetVector2(const String&, const Vector2&);
  13334. bool SetVector3(const String&, const Vector3&);
  13335. bool SetVector4(const String&, const Vector4&);
  13336. bool SetVectorVariant(const String&, const Variant&);
  13337. // Properties:
  13338. /* readonly */
  13339. XMLFile file;
  13340. /* readonly */
  13341. bool isNull;
  13342. /* readonly */
  13343. String name;
  13344. /* readonly */
  13345. XMLElement nextResult;
  13346. /* readonly */
  13347. bool notNull;
  13348. /* readonly */
  13349. uint numAttributes;
  13350. /* readonly */
  13351. XMLElement parent;
  13352. String value;
  13353. };
  13354. class XMLFile
  13355. {
  13356. // Methods:
  13357. XMLElement CreateRoot(const String&);
  13358. bool FromString(const String&);
  13359. XMLElement GetRoot(const String& = String ( ));
  13360. bool HasSubscribedToEvent(Object, const String&);
  13361. bool HasSubscribedToEvent(const String&);
  13362. bool Load(File);
  13363. bool Load(VectorBuffer&);
  13364. void Patch(XMLElement);
  13365. void Patch(XMLFile);
  13366. bool Save(File) const;
  13367. bool Save(File, const String&) const;
  13368. bool Save(VectorBuffer&) const;
  13369. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13370. String ToString(const String& = String ( "\t" )) const;
  13371. // Properties:
  13372. /* readonly */
  13373. String category;
  13374. /* readonly */
  13375. uint memoryUse;
  13376. String name;
  13377. /* readonly */
  13378. int refs;
  13379. /* readonly */
  13380. XMLElement root;
  13381. /* readonly */
  13382. StringHash type;
  13383. /* readonly */
  13384. String typeName;
  13385. /* readonly */
  13386. uint useTimer;
  13387. /* readonly */
  13388. int weakRefs;
  13389. };
  13390. class XPathQuery
  13391. {
  13392. // Methods:
  13393. void Bind();
  13394. void Clear();
  13395. XPathResultSet Evaluate(XMLElement);
  13396. bool EvaluateToBool(XMLElement);
  13397. float EvaluateToFloat(XMLElement);
  13398. String EvaluateToString(XMLElement);
  13399. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13400. bool SetVariable(const String&, bool);
  13401. bool SetVariable(const String&, const String&);
  13402. bool SetVariable(const String&, const XPathResultSet&);
  13403. bool SetVariable(const String&, float);
  13404. // Properties:
  13405. String query;
  13406. };
  13407. class XPathResultSet
  13408. {
  13409. // Properties:
  13410. /* readonly */
  13411. bool empty;
  13412. /* readonly */
  13413. XMLElement firstResult;
  13414. /* readonly */
  13415. uint size;
  13416. };
  13417. class Zone
  13418. {
  13419. // Methods:
  13420. void ApplyAttributes();
  13421. void DrawDebugGeometry(DebugRenderer, bool);
  13422. Variant GetAttribute(const String&) const;
  13423. ValueAnimation GetAttributeAnimation(const String&) const;
  13424. float GetAttributeAnimationSpeed(const String&) const;
  13425. float GetAttributeAnimationTime(const String&) const;
  13426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13427. Variant GetAttributeDefault(const String&) const;
  13428. bool GetInterceptNetworkUpdate(const String&) const;
  13429. bool HasSubscribedToEvent(Object, const String&);
  13430. bool HasSubscribedToEvent(const String&);
  13431. bool IsInView(Camera) const;
  13432. bool Load(File, bool = false);
  13433. bool Load(VectorBuffer&, bool = false);
  13434. bool LoadJSON(const JSONValue&, bool = false);
  13435. bool LoadXML(const XMLElement&, bool = false);
  13436. void MarkNetworkUpdate() const;
  13437. void Remove();
  13438. void RemoveAttributeAnimation(const String&);
  13439. void RemoveInstanceDefault();
  13440. void RemoveObjectAnimation();
  13441. void ResetToDefault();
  13442. bool Save(File) const;
  13443. bool Save(VectorBuffer&) const;
  13444. bool SaveJSON(JSONValue&) const;
  13445. bool SaveXML(XMLElement&) const;
  13446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13447. void SetAnimationTime(float);
  13448. bool SetAttribute(const String&, const Variant&);
  13449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13450. void SetAttributeAnimationSpeed(const String&, float);
  13451. void SetAttributeAnimationTime(const String&, float);
  13452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13453. void SetInterceptNetworkUpdate(const String&, bool);
  13454. // Properties:
  13455. Color ambientColor;
  13456. /* readonly */
  13457. Color ambientEndColor;
  13458. bool ambientGradient;
  13459. /* readonly */
  13460. Color ambientStartColor;
  13461. bool animationEnabled;
  13462. /* readonly */
  13463. Array<Variant> attributeDefaults;
  13464. /* readonly */
  13465. Array<AttributeInfo> attributeInfos;
  13466. Array<Variant> attributes;
  13467. BoundingBox boundingBox;
  13468. bool castShadows;
  13469. /* readonly */
  13470. String category;
  13471. float drawDistance;
  13472. bool enabled;
  13473. /* readonly */
  13474. bool enabledEffective;
  13475. Color fogColor;
  13476. float fogEnd;
  13477. float fogHeight;
  13478. float fogHeightScale;
  13479. float fogStart;
  13480. bool heightFog;
  13481. /* readonly */
  13482. uint id;
  13483. /* readonly */
  13484. bool inView;
  13485. /* readonly */
  13486. Matrix3x4 inverseWorldTransform;
  13487. uint lightMask;
  13488. float lodBias;
  13489. uint maxLights;
  13490. /* readonly */
  13491. Node node;
  13492. /* readonly */
  13493. uint numAttributes;
  13494. ObjectAnimation objectAnimation;
  13495. bool occludee;
  13496. bool occluder;
  13497. bool override;
  13498. int priority;
  13499. /* readonly */
  13500. int refs;
  13501. float shadowDistance;
  13502. uint shadowMask;
  13503. bool temporary;
  13504. /* readonly */
  13505. StringHash type;
  13506. /* readonly */
  13507. String typeName;
  13508. uint viewMask;
  13509. /* readonly */
  13510. int weakRefs;
  13511. /* readonly */
  13512. BoundingBox worldBoundingBox;
  13513. uint zoneMask;
  13514. Texture zoneTexture;
  13515. };
  13516. // Enumerations
  13517. enum AnimationBlendMode
  13518. {
  13519. ABM_LERP,
  13520. ABM_ADDITIVE,
  13521. };
  13522. enum BlendMode
  13523. {
  13524. BLEND_REPLACE,
  13525. BLEND_ADD,
  13526. BLEND_MULTIPLY,
  13527. BLEND_ALPHA,
  13528. BLEND_ADDALPHA,
  13529. BLEND_PREMULALPHA,
  13530. BLEND_INVDESTALPHA,
  13531. BLEND_SUBTRACT,
  13532. BLEND_SUBTRACTALPHA,
  13533. };
  13534. enum BodyType2D
  13535. {
  13536. BT_STATIC,
  13537. BT_KINEMATIC,
  13538. BT_DYNAMIC,
  13539. };
  13540. enum CollisionEventMode
  13541. {
  13542. COLLISION_NEVER,
  13543. COLLISION_ACTIVE,
  13544. COLLISION_ALWAYS,
  13545. };
  13546. enum CompareMode
  13547. {
  13548. CMP_ALWAYS,
  13549. CMP_EQUAL,
  13550. CMP_NOTEQUAL,
  13551. CMP_LESS,
  13552. CMP_LESSEQUAL,
  13553. CMP_GREATER,
  13554. CMP_GREATEREQUAL,
  13555. };
  13556. enum CompressedFormat
  13557. {
  13558. CF_NONE,
  13559. CF_RGBA,
  13560. CF_DXT1,
  13561. CF_DXT3,
  13562. CF_DXT5,
  13563. CF_ETC1,
  13564. CF_PVRTC_RGB_2BPP,
  13565. CF_PVRTC_RGBA_2BPP,
  13566. CF_PVRTC_RGB_4BPP,
  13567. CF_PVRTC_RGBA_4BPP,
  13568. };
  13569. enum ConstraintType
  13570. {
  13571. CONSTRAINT_POINT,
  13572. CONSTRAINT_HINGE,
  13573. CONSTRAINT_SLIDER,
  13574. CONSTRAINT_CONETWIST,
  13575. };
  13576. enum Corner
  13577. {
  13578. C_TOPLEFT,
  13579. C_TOPRIGHT,
  13580. C_BOTTOMLEFT,
  13581. C_BOTTOMRIGHT,
  13582. };
  13583. enum CreateMode
  13584. {
  13585. REPLICATED,
  13586. LOCAL,
  13587. };
  13588. enum CrowdAgentRequestedTarget
  13589. {
  13590. CA_REQUESTEDTARGET_NONE,
  13591. CA_REQUESTEDTARGET_POSITION,
  13592. CA_REQUESTEDTARGET_VELOCITY,
  13593. };
  13594. enum CrowdAgentState
  13595. {
  13596. CA_STATE_INVALID,
  13597. CA_STATE_WALKING,
  13598. CA_STATE_OFFMESH,
  13599. };
  13600. enum CrowdAgentTargetState
  13601. {
  13602. CA_TARGET_NONE,
  13603. CA_TARGET_FAILED,
  13604. CA_TARGET_VALID,
  13605. CA_TARGET_REQUESTING,
  13606. CA_TARGET_WAITINGFORQUEUE,
  13607. CA_TARGET_WAITINGFORPATH,
  13608. CA_TARGET_VELOCITY,
  13609. };
  13610. enum CubeMapFace
  13611. {
  13612. FACE_POSITIVE_X,
  13613. FACE_NEGATIVE_X,
  13614. FACE_POSITIVE_Y,
  13615. FACE_NEGATIVE_Y,
  13616. FACE_POSITIVE_Z,
  13617. FACE_NEGATIVE_Z,
  13618. };
  13619. enum CullMode
  13620. {
  13621. CULL_NONE,
  13622. CULL_CCW,
  13623. CULL_CW,
  13624. };
  13625. enum CursorShape
  13626. {
  13627. CS_NORMAL,
  13628. CS_IBEAM,
  13629. CS_CROSS,
  13630. CS_RESIZEVERTICAL,
  13631. CS_RESIZEDIAGONAL_TOPRIGHT,
  13632. CS_RESIZEHORIZONTAL,
  13633. CS_RESIZEDIAGONAL_TOPLEFT,
  13634. CS_RESIZE_ALL,
  13635. CS_ACCEPTDROP,
  13636. CS_REJECTDROP,
  13637. CS_BUSY,
  13638. CS_BUSY_ARROW,
  13639. };
  13640. enum DBAPI
  13641. {
  13642. DBAPI_SQLITE,
  13643. DBAPI_ODBC,
  13644. };
  13645. enum DumpMode
  13646. {
  13647. DOXYGEN,
  13648. C_HEADER,
  13649. };
  13650. enum EmitterType
  13651. {
  13652. EMITTER_SPHERE,
  13653. EMITTER_BOX,
  13654. };
  13655. enum EmitterType2D
  13656. {
  13657. EMITTER_TYPE_GRAVITY,
  13658. EMITTER_TYPE_RADIAL,
  13659. };
  13660. enum FaceCameraMode
  13661. {
  13662. FC_NONE,
  13663. FC_ROTATE_XYZ,
  13664. FC_ROTATE_Y,
  13665. FC_LOOKAT_XYZ,
  13666. FC_LOOKAT_Y,
  13667. FC_DIRECTION,
  13668. };
  13669. enum FileMode
  13670. {
  13671. FILE_READ,
  13672. FILE_WRITE,
  13673. FILE_READWRITE,
  13674. };
  13675. enum FillMode
  13676. {
  13677. FILL_SOLID,
  13678. FILL_WIREFRAME,
  13679. FILL_POINT,
  13680. };
  13681. enum FocusMode
  13682. {
  13683. FM_NOTFOCUSABLE,
  13684. FM_RESETFOCUS,
  13685. FM_FOCUSABLE,
  13686. FM_FOCUSABLE_DEFOCUSABLE,
  13687. };
  13688. enum HighlightMode
  13689. {
  13690. HM_NEVER,
  13691. HM_FOCUS,
  13692. HM_ALWAYS,
  13693. };
  13694. enum HorizontalAlignment
  13695. {
  13696. HA_LEFT,
  13697. HA_CENTER,
  13698. HA_RIGHT,
  13699. };
  13700. enum HttpRequestState
  13701. {
  13702. HTTP_INITIALIZING,
  13703. HTTP_ERROR,
  13704. HTTP_OPEN,
  13705. HTTP_CLOSED,
  13706. };
  13707. enum InterpMethod
  13708. {
  13709. IM_NONE,
  13710. IM_LINEAR,
  13711. IM_SPLINE,
  13712. };
  13713. enum InterpolationMode
  13714. {
  13715. BEZIER_CURVE,
  13716. CATMULL_ROM_CURVE,
  13717. LINEAR_CURVE,
  13718. CATMULL_ROM_FULL_CURVE,
  13719. };
  13720. enum Intersection
  13721. {
  13722. OUTSIDE,
  13723. INTERSECTS,
  13724. INSIDE,
  13725. };
  13726. enum JSONValueType
  13727. {
  13728. JSON_NULL,
  13729. JSON_BOOL,
  13730. JSON_NUMBER,
  13731. JSON_STRING,
  13732. JSON_ARRAY,
  13733. JSON_OBJECT,
  13734. };
  13735. enum LayoutMode
  13736. {
  13737. LM_FREE,
  13738. LM_HORIZONTAL,
  13739. LM_VERTICAL,
  13740. };
  13741. enum LightType
  13742. {
  13743. LIGHT_DIRECTIONAL,
  13744. LIGHT_SPOT,
  13745. LIGHT_POINT,
  13746. };
  13747. enum LoadMode
  13748. {
  13749. LOAD_RESOURCES_ONLY,
  13750. LOAD_SCENE,
  13751. LOAD_SCENE_AND_RESOURCES,
  13752. };
  13753. enum LoopMode2D
  13754. {
  13755. LM_DEFAULT,
  13756. LM_FORCE_LOOPED,
  13757. LM_FORCE_CLAMPED,
  13758. };
  13759. enum MouseMode
  13760. {
  13761. MM_ABSOLUTE,
  13762. MM_RELATIVE,
  13763. MM_WRAP,
  13764. MM_FREE,
  13765. };
  13766. enum NavigationPushiness
  13767. {
  13768. NAVIGATIONPUSHINESS_LOW,
  13769. NAVIGATIONPUSHINESS_MEDIUM,
  13770. NAVIGATIONPUSHINESS_HIGH,
  13771. };
  13772. enum NavigationQuality
  13773. {
  13774. NAVIGATIONQUALITY_LOW,
  13775. NAVIGATIONQUALITY_MEDIUM,
  13776. NAVIGATIONQUALITY_HIGH,
  13777. };
  13778. enum NavmeshPartitionType
  13779. {
  13780. NAVMESH_PARTITION_WATERSHED,
  13781. NAVMESH_PARTITION_MONOTONE,
  13782. };
  13783. enum Orientation
  13784. {
  13785. O_HORIZONTAL,
  13786. O_VERTICAL,
  13787. };
  13788. enum Orientation2D
  13789. {
  13790. O_ORTHOGONAL,
  13791. O_ISOMETRIC,
  13792. O_STAGGERED,
  13793. O_HEXAGONAL,
  13794. };
  13795. enum PassLightingMode
  13796. {
  13797. LIGHTING_UNLIT,
  13798. LIGHTING_PERVERTEX,
  13799. LIGHTING_PERPIXEL,
  13800. };
  13801. enum PrimitiveType
  13802. {
  13803. TRIANGLE_LIST,
  13804. LINE_LIST,
  13805. POINT_LIST,
  13806. TRIANGLE_STRIP,
  13807. LINE_STRIP,
  13808. TRIANGLE_FAN,
  13809. };
  13810. enum RayQueryLevel
  13811. {
  13812. RAY_AABB,
  13813. RAY_OBB,
  13814. RAY_TRIANGLE,
  13815. RAY_TRIANGLE_UV,
  13816. };
  13817. enum RenderCommandSortMode
  13818. {
  13819. SORT_FRONTTOBACK,
  13820. SORT_BACKTOFRONT,
  13821. };
  13822. enum RenderCommandType
  13823. {
  13824. CMD_NONE,
  13825. CMD_CLEAR,
  13826. CMD_SCENEPASS,
  13827. CMD_QUAD,
  13828. CMD_FORWARDLIGHTS,
  13829. CMD_LIGHTVOLUMES,
  13830. CMD_RENDERUI,
  13831. CMD_SENDEVENT,
  13832. };
  13833. enum RenderSurfaceUpdateMode
  13834. {
  13835. SURFACE_MANUALUPDATE,
  13836. SURFACE_UPDATEVISIBLE,
  13837. SURFACE_UPDATEALWAYS,
  13838. };
  13839. enum RenderTargetSizeMode
  13840. {
  13841. SIZE_ABSOLUTE,
  13842. SIZE_VIEWPORTDIVISOR,
  13843. SIZE_VIEWPORTMULTIPLIER,
  13844. };
  13845. enum ShadowQuality
  13846. {
  13847. SHADOWQUALITY_SIMPLE_16BIT,
  13848. SHADOWQUALITY_SIMPLE_24BIT,
  13849. SHADOWQUALITY_PCF_16BIT,
  13850. SHADOWQUALITY_PCF_24BIT,
  13851. SHADOWQUALITY_VSM,
  13852. SHADOWQUALITY_BLUR_VSM,
  13853. };
  13854. enum ShapeType
  13855. {
  13856. SHAPE_BOX,
  13857. SHAPE_SPHERE,
  13858. SHAPE_STATICPLANE,
  13859. SHAPE_CYLINDER,
  13860. SHAPE_CAPSULE,
  13861. SHAPE_CONE,
  13862. SHAPE_TRIANGLEMESH,
  13863. SHAPE_CONVEXHULL,
  13864. SHAPE_TERRAIN,
  13865. };
  13866. enum TextEffect
  13867. {
  13868. TE_NONE,
  13869. TE_SHADOW,
  13870. TE_STROKE,
  13871. };
  13872. enum TextureAddressMode
  13873. {
  13874. ADDRESS_WRAP,
  13875. ADDRESS_MIRROR,
  13876. ADDRESS_CLAMP,
  13877. ADDRESS_BORDER,
  13878. };
  13879. enum TextureCoordinate
  13880. {
  13881. COORD_U,
  13882. COORD_V,
  13883. COORD_W,
  13884. };
  13885. enum TextureFilterMode
  13886. {
  13887. FILTER_NEAREST,
  13888. FILTER_BILINEAR,
  13889. FILTER_TRILINEAR,
  13890. FILTER_ANISOTROPIC,
  13891. FILTER_DEFAULT,
  13892. };
  13893. enum TextureUnit
  13894. {
  13895. TU_DIFFUSE,
  13896. TU_ALBEDOBUFFER,
  13897. TU_NORMAL,
  13898. TU_NORMALBUFFER,
  13899. TU_SPECULAR,
  13900. TU_EMISSIVE,
  13901. TU_ENVIRONMENT,
  13902. TU_LIGHTRAMP,
  13903. TU_LIGHTSHAPE,
  13904. TU_SHADOWMAP,
  13905. TU_CUSTOM1,
  13906. TU_CUSTOM2,
  13907. TU_VOLUMEMAP,
  13908. TU_FACESELECT,
  13909. TU_INDIRECTION,
  13910. TU_DEPTHBUFFER,
  13911. TU_LIGHTBUFFER,
  13912. TU_ZONE,
  13913. MAX_MATERIAL_TEXTURE_UNITS,
  13914. MAX_TEXTURE_UNITS,
  13915. };
  13916. enum TextureUsage
  13917. {
  13918. TEXTURE_STATIC,
  13919. TEXTURE_DYNAMIC,
  13920. TEXTURE_RENDERTARGET,
  13921. TEXTURE_DEPTHSTENCIL,
  13922. };
  13923. enum TileMapLayerType2D
  13924. {
  13925. LT_TILE_LAYER,
  13926. LT_OBJECT_GROUP,
  13927. LT_IMAGE_LAYER,
  13928. LT_INVALID,
  13929. };
  13930. enum TileObjectType2D
  13931. {
  13932. OT_RECTANGLE,
  13933. OT_ELLIPSE,
  13934. OT_POLYGON,
  13935. OT_POLYLINE,
  13936. OT_TILE,
  13937. OT_INVALID,
  13938. };
  13939. enum TrailType
  13940. {
  13941. TT_FACE_CAMERA,
  13942. TT_BONE,
  13943. };
  13944. enum TransformSpace
  13945. {
  13946. TS_LOCAL,
  13947. TS_PARENT,
  13948. TS_WORLD,
  13949. };
  13950. enum TraversalMode
  13951. {
  13952. TM_BREADTH_FIRST,
  13953. TM_DEPTH_FIRST,
  13954. };
  13955. enum VariantType
  13956. {
  13957. VAR_NONE,
  13958. VAR_INT,
  13959. VAR_BOOL,
  13960. VAR_FLOAT,
  13961. VAR_VECTOR2,
  13962. VAR_VECTOR3,
  13963. VAR_VECTOR4,
  13964. VAR_QUATERNION,
  13965. VAR_COLOR,
  13966. VAR_STRING,
  13967. VAR_BUFFER,
  13968. VAR_VOIDPTR,
  13969. VAR_RESOURCEREF,
  13970. VAR_RESOURCEREFLIST,
  13971. VAR_VARIANTVECTOR,
  13972. VAR_VARIANTMAP,
  13973. VAR_INTRECT,
  13974. VAR_INTVECTOR2,
  13975. VAR_PTR,
  13976. VAR_MATRIX3,
  13977. VAR_MATRIX3X4,
  13978. VAR_MATRIX4,
  13979. VAR_DOUBLE,
  13980. VAR_STRINGVECTOR,
  13981. };
  13982. enum VertexElementSemantic
  13983. {
  13984. SEM_POSITION,
  13985. SEM_NORMAL,
  13986. SEM_BINORMAL,
  13987. SEM_TANGENT,
  13988. SEM_TEXCOORD,
  13989. SEM_COLOR,
  13990. SEM_BLENDWEIGHTS,
  13991. SEM_BLENDINDICES,
  13992. SEM_OBJECTINDEX,
  13993. MAX_VERTEX_ELEMENT_SEMANTICS,
  13994. };
  13995. enum VertexElementType
  13996. {
  13997. TYPE_INT,
  13998. TYPE_FLOAT,
  13999. TYPE_VECTOR2,
  14000. TYPE_VECTOR3,
  14001. TYPE_VECTOR4,
  14002. TYPE_UBYTE4,
  14003. TYPE_UBYTE4_NORM,
  14004. MAX_VERTEX_ELEMENT_TYPES,
  14005. };
  14006. enum VerticalAlignment
  14007. {
  14008. VA_TOP,
  14009. VA_CENTER,
  14010. VA_BOTTOM,
  14011. };
  14012. enum WrapMode
  14013. {
  14014. WM_LOOP,
  14015. WM_ONCE,
  14016. WM_CLAMP,
  14017. };
  14018. // Global functions
  14019. float Abs(float);
  14020. float Acos(float);
  14021. String AddTrailingSlash(const String&);
  14022. float Asin(float);
  14023. float Atan(float);
  14024. float Atan2(float, float);
  14025. float Ceil(float);
  14026. float Clamp(float, float, float);
  14027. int Clamp(int, int, int);
  14028. void ClearDelayedExecute(const String& = String ( ));
  14029. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14030. float Cos(float);
  14031. uint CountSetBits(uint);
  14032. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14033. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14034. bool Equals(float, float);
  14035. void ErrorDialog(const String&, const String&);
  14036. float Floor(float);
  14037. uint GetAlphaFormat();
  14038. Array<String> GetArguments();
  14039. String GetConsoleInput();
  14040. uint GetDepthStencilFormat();
  14041. Object GetEventSender();
  14042. String GetExtension(const String&, bool = true);
  14043. String GetFileName(const String&);
  14044. String GetFileNameAndExtension(const String&, bool = false);
  14045. String GetFileSizeString(uint64);
  14046. uint GetFloat16Format();
  14047. uint GetFloat32Format();
  14048. uint GetFormat(const String&);
  14049. Variant GetGlobalVar(const String&);
  14050. String GetInternalPath(const String&);
  14051. uint GetLinearDepthFormat();
  14052. uint GetLuminanceAlphaFormat();
  14053. uint GetLuminanceFormat();
  14054. uint GetMaxBones();
  14055. String GetMiniDumpDir();
  14056. uint GetNumLogicalCPUs();
  14057. uint GetNumPhysicalCPUs();
  14058. Array<String> GetObjectCategories();
  14059. Array<String> GetObjectsByCategory(const String&);
  14060. String GetParentPath(const String&);
  14061. String GetPath(const String&);
  14062. String GetPlatform();
  14063. uint GetRG16Format();
  14064. uint GetRGBA16Format();
  14065. uint GetRGBAFloat16Format();
  14066. uint GetRGBAFloat32Format();
  14067. uint GetRGBAFormat();
  14068. uint GetRGBFormat();
  14069. uint GetRGFloat16Format();
  14070. uint GetRGFloat32Format();
  14071. uint GetRandomSeed();
  14072. uint GetReadableDepthFormat();
  14073. String GetTextureUnitName(TextureUnit);
  14074. bool HasSubscribedToEvent(Object, const String&);
  14075. bool HasSubscribedToEvent(const String&);
  14076. bool IsAbsolutePath(const String&);
  14077. bool IsAlpha(uint);
  14078. bool IsDigit(uint);
  14079. bool IsNaN(float);
  14080. bool IsPowerOfTwo(uint);
  14081. String Join(Array<String>&, const String&);
  14082. float Lerp(float, float, float);
  14083. void MarkNetworkUpdate();
  14084. float Max(float, float);
  14085. int Max(int, int);
  14086. float Min(float, float);
  14087. int Min(int, int);
  14088. float Mod(float, float);
  14089. uint NextPowerOfTwo(uint);
  14090. void OpenConsoleWindow();
  14091. float Pow(float, float);
  14092. void Print(bool, bool = false);
  14093. void Print(const String&, bool = false);
  14094. void Print(const Variant&, bool = false);
  14095. void Print(float, bool = false);
  14096. void Print(int, bool = false);
  14097. void Print(uint, bool = false);
  14098. void PrintCallStack(bool = false);
  14099. float Random();
  14100. float Random(float);
  14101. float Random(float, float);
  14102. int RandomInt();
  14103. int RandomInt(int);
  14104. int RandomInt(int, int);
  14105. float RandomNormal(float, float);
  14106. void RegisterEventName(const String&);
  14107. void Remove();
  14108. String RemoveTrailingSlash(const String&);
  14109. String ReplaceExtension(const String&, const String&);
  14110. uint SDBMHash(uint, uint8);
  14111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14112. void SetGlobalVar(const String&, Variant&);
  14113. void SetMiniDumpDir(const String&);
  14114. void SetRandomSeed(uint);
  14115. float Sign(float);
  14116. float Sin(float);
  14117. float SmoothStep(float, float, float);
  14118. float Sqrt(float);
  14119. const String& GetTypeName(StringHash);
  14120. void SubscribeToEvent(Object, const String&, const String&);
  14121. void SubscribeToEvent(const String&, const String&);
  14122. float Tan(float);
  14123. uint ToLower(uint);
  14124. String ToStringHex(int);
  14125. uint ToUpper(uint);
  14126. void UnsubscribeFromAllEvents();
  14127. void UnsubscribeFromAllEventsExcept(Array<String>);
  14128. void UnsubscribeFromEvent(Object, const String&);
  14129. void UnsubscribeFromEvent(const String&);
  14130. void UnsubscribeFromEvents(Object);
  14131. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14132. // Global properties
  14133. DBAPI DBAPI;
  14134. Audio audio;
  14135. ResourceCache cache;
  14136. Console console;
  14137. Database database;
  14138. DebugHud debugHud;
  14139. DebugRenderer debugRenderer;
  14140. Engine engine;
  14141. FileSystem fileSystem;
  14142. VariantMap globalVars;
  14143. Graphics graphics;
  14144. Input input;
  14145. Localization localization;
  14146. Log log;
  14147. Network network;
  14148. Node node;
  14149. Octree octree;
  14150. PhysicsWorld physicsWorld;
  14151. PhysicsWorld2D physicsWorld2D;
  14152. Renderer renderer;
  14153. ResourceCache resourceCache;
  14154. Scene scene;
  14155. Script script;
  14156. ScriptFile scriptFile;
  14157. ScriptInstance self;
  14158. Time time;
  14159. UI ui;
  14160. // Global constants
  14161. uint AM_COMPONENTID;
  14162. uint AM_DEFAULT;
  14163. uint AM_FILE;
  14164. uint AM_LATESTDATA;
  14165. uint AM_NET;
  14166. uint AM_NODEID;
  14167. uint AM_NODEIDVECTOR;
  14168. uint AM_NOEDIT;
  14169. Color BLACK;
  14170. Color BLUE;
  14171. uint8 CHANNEL_POSITION;
  14172. uint8 CHANNEL_ROTATION;
  14173. uint8 CHANNEL_SCALE;
  14174. uint CLEAR_COLOR;
  14175. uint CLEAR_DEPTH;
  14176. uint CLEAR_STENCIL;
  14177. int CONTROLLER_AXIS_LEFTX;
  14178. int CONTROLLER_AXIS_LEFTY;
  14179. int CONTROLLER_AXIS_RIGHTX;
  14180. int CONTROLLER_AXIS_RIGHTY;
  14181. int CONTROLLER_AXIS_TRIGGERLEFT;
  14182. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14183. int CONTROLLER_BUTTON_A;
  14184. int CONTROLLER_BUTTON_B;
  14185. int CONTROLLER_BUTTON_BACK;
  14186. int CONTROLLER_BUTTON_DPAD_DOWN;
  14187. int CONTROLLER_BUTTON_DPAD_LEFT;
  14188. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14189. int CONTROLLER_BUTTON_DPAD_UP;
  14190. int CONTROLLER_BUTTON_GUIDE;
  14191. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14192. int CONTROLLER_BUTTON_LEFTSTICK;
  14193. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14194. int CONTROLLER_BUTTON_RIGHTSTICK;
  14195. int CONTROLLER_BUTTON_START;
  14196. int CONTROLLER_BUTTON_X;
  14197. int CONTROLLER_BUTTON_Y;
  14198. Color CYAN;
  14199. uint DD_DISABLED;
  14200. uint DD_SOURCE;
  14201. uint DD_SOURCE_AND_TARGET;
  14202. uint DD_TARGET;
  14203. uint DEBUGHUD_SHOW_ALL;
  14204. uint DEBUGHUD_SHOW_ALL_MEMORY;
  14205. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14206. uint DEBUGHUD_SHOW_MEMORY;
  14207. uint DEBUGHUD_SHOW_MODE;
  14208. uint DEBUGHUD_SHOW_NONE;
  14209. uint DEBUGHUD_SHOW_PROFILER;
  14210. uint DEBUGHUD_SHOW_STATS;
  14211. uint DEFAULT_LIGHTMASK;
  14212. uint DEFAULT_VIEWMASK;
  14213. uint DRAWABLE_ANY;
  14214. uint DRAWABLE_GEOMETRY;
  14215. uint DRAWABLE_GEOMETRY2D;
  14216. uint DRAWABLE_LIGHT;
  14217. uint DRAWABLE_ZONE;
  14218. uint FIRST_LOCAL_ID;
  14219. uint FIRST_REPLICATED_ID;
  14220. Color GRAY;
  14221. Color GREEN;
  14222. int HAT_CENTER;
  14223. int HAT_DOWN;
  14224. int HAT_LEFT;
  14225. int HAT_RIGHT;
  14226. int HAT_UP;
  14227. int KEY_0;
  14228. int KEY_1;
  14229. int KEY_2;
  14230. int KEY_3;
  14231. int KEY_4;
  14232. int KEY_5;
  14233. int KEY_6;
  14234. int KEY_7;
  14235. int KEY_8;
  14236. int KEY_9;
  14237. int KEY_A;
  14238. int KEY_ALT;
  14239. int KEY_APPLICATION;
  14240. int KEY_B;
  14241. int KEY_BACKSPACE;
  14242. int KEY_C;
  14243. int KEY_CAPSLOCK;
  14244. int KEY_CTRL;
  14245. int KEY_D;
  14246. int KEY_DELETE;
  14247. int KEY_DOWN;
  14248. int KEY_E;
  14249. int KEY_END;
  14250. int KEY_ESCAPE;
  14251. int KEY_F;
  14252. int KEY_F1;
  14253. int KEY_F10;
  14254. int KEY_F11;
  14255. int KEY_F12;
  14256. int KEY_F13;
  14257. int KEY_F14;
  14258. int KEY_F15;
  14259. int KEY_F16;
  14260. int KEY_F17;
  14261. int KEY_F18;
  14262. int KEY_F19;
  14263. int KEY_F2;
  14264. int KEY_F20;
  14265. int KEY_F21;
  14266. int KEY_F22;
  14267. int KEY_F23;
  14268. int KEY_F24;
  14269. int KEY_F3;
  14270. int KEY_F4;
  14271. int KEY_F5;
  14272. int KEY_F6;
  14273. int KEY_F7;
  14274. int KEY_F8;
  14275. int KEY_F9;
  14276. int KEY_G;
  14277. int KEY_GUI;
  14278. int KEY_H;
  14279. int KEY_HOME;
  14280. int KEY_I;
  14281. int KEY_INSERT;
  14282. int KEY_J;
  14283. int KEY_K;
  14284. int KEY_KP_0;
  14285. int KEY_KP_1;
  14286. int KEY_KP_2;
  14287. int KEY_KP_3;
  14288. int KEY_KP_4;
  14289. int KEY_KP_5;
  14290. int KEY_KP_6;
  14291. int KEY_KP_7;
  14292. int KEY_KP_8;
  14293. int KEY_KP_9;
  14294. int KEY_KP_DIVIDE;
  14295. int KEY_KP_ENTER;
  14296. int KEY_KP_MINUS;
  14297. int KEY_KP_MULTIPLY;
  14298. int KEY_KP_PERIOD;
  14299. int KEY_KP_PLUS;
  14300. int KEY_L;
  14301. int KEY_LALT;
  14302. int KEY_LCTRL;
  14303. int KEY_LEFT;
  14304. int KEY_LGUI;
  14305. int KEY_LSHIFT;
  14306. int KEY_M;
  14307. int KEY_N;
  14308. int KEY_NUMLOCKCLEAR;
  14309. int KEY_O;
  14310. int KEY_P;
  14311. int KEY_PAGEDOWN;
  14312. int KEY_PAGEUP;
  14313. int KEY_PAUSE;
  14314. int KEY_PRINTSCREEN;
  14315. int KEY_Q;
  14316. int KEY_R;
  14317. int KEY_RALT;
  14318. int KEY_RCTRL;
  14319. int KEY_RETURN;
  14320. int KEY_RETURN2;
  14321. int KEY_RGUI;
  14322. int KEY_RIGHT;
  14323. int KEY_RSHIFT;
  14324. int KEY_S;
  14325. int KEY_SCROLLLOCK;
  14326. int KEY_SELECT;
  14327. int KEY_SHIFT;
  14328. int KEY_SPACE;
  14329. int KEY_T;
  14330. int KEY_TAB;
  14331. int KEY_U;
  14332. int KEY_UP;
  14333. int KEY_V;
  14334. int KEY_W;
  14335. int KEY_X;
  14336. int KEY_Y;
  14337. int KEY_Z;
  14338. uint LAST_LOCAL_ID;
  14339. uint LAST_REPLICATED_ID;
  14340. int LOG_DEBUG;
  14341. int LOG_ERROR;
  14342. int LOG_INFO;
  14343. int LOG_NONE;
  14344. int LOG_WARNING;
  14345. Color MAGENTA;
  14346. uint MASK_BLENDINDICES;
  14347. uint MASK_BLENDWEIGHTS;
  14348. uint MASK_COLOR;
  14349. uint MASK_CUBETEXCOORD1;
  14350. uint MASK_CUBETEXCOORD2;
  14351. uint MASK_INSTANCEMATRIX1;
  14352. uint MASK_INSTANCEMATRIX2;
  14353. uint MASK_INSTANCEMATRIX3;
  14354. uint MASK_NONE;
  14355. uint MASK_NORMAL;
  14356. uint MASK_OBJECTINDEX;
  14357. uint MASK_POSITION;
  14358. uint MASK_TANGENT;
  14359. uint MASK_TEXCOORD1;
  14360. uint MASK_TEXCOORD2;
  14361. int MOUSEB_LEFT;
  14362. int MOUSEB_MIDDLE;
  14363. int MOUSEB_RIGHT;
  14364. float M_DEGTORAD;
  14365. float M_DEGTORAD_2;
  14366. float M_EPSILON;
  14367. float M_HALF_PI;
  14368. float M_INFINITY;
  14369. float M_LARGE_EPSILON;
  14370. float M_LARGE_VALUE;
  14371. int M_MAX_INT;
  14372. uint M_MAX_UNSIGNED;
  14373. int M_MIN_INT;
  14374. uint M_MIN_UNSIGNED;
  14375. float M_PI;
  14376. float M_RADTODEG;
  14377. uint NPOS;
  14378. float PIXEL_SIZE;
  14379. int QUALITY_HIGH;
  14380. int QUALITY_LOW;
  14381. int QUALITY_MAX;
  14382. int QUALITY_MEDIUM;
  14383. int QUAL_ALT;
  14384. int QUAL_ANY;
  14385. int QUAL_CTRL;
  14386. int QUAL_SHIFT;
  14387. Color RED;
  14388. int SCANCODE_0;
  14389. int SCANCODE_1;
  14390. int SCANCODE_2;
  14391. int SCANCODE_3;
  14392. int SCANCODE_4;
  14393. int SCANCODE_5;
  14394. int SCANCODE_6;
  14395. int SCANCODE_7;
  14396. int SCANCODE_8;
  14397. int SCANCODE_9;
  14398. int SCANCODE_A;
  14399. int SCANCODE_AC_BACK;
  14400. int SCANCODE_AC_BOOKMARKS;
  14401. int SCANCODE_AC_FORWARD;
  14402. int SCANCODE_AC_HOME;
  14403. int SCANCODE_AC_REFRESH;
  14404. int SCANCODE_AC_SEARCH;
  14405. int SCANCODE_AC_STOP;
  14406. int SCANCODE_AGAIN;
  14407. int SCANCODE_ALT;
  14408. int SCANCODE_ALTERASE;
  14409. int SCANCODE_APOSTROPHE;
  14410. int SCANCODE_APP1;
  14411. int SCANCODE_APP2;
  14412. int SCANCODE_APPLICATION;
  14413. int SCANCODE_AUDIOMUTE;
  14414. int SCANCODE_AUDIONEXT;
  14415. int SCANCODE_AUDIOPLAY;
  14416. int SCANCODE_AUDIOPREV;
  14417. int SCANCODE_AUDIOSTOP;
  14418. int SCANCODE_B;
  14419. int SCANCODE_BACKSLASH;
  14420. int SCANCODE_BACKSPACE;
  14421. int SCANCODE_BRIGHTNESSDOWN;
  14422. int SCANCODE_BRIGHTNESSUP;
  14423. int SCANCODE_C;
  14424. int SCANCODE_CALCULATOR;
  14425. int SCANCODE_CANCEL;
  14426. int SCANCODE_CAPSLOCK;
  14427. int SCANCODE_CLEAR;
  14428. int SCANCODE_CLEARAGAIN;
  14429. int SCANCODE_COMMA;
  14430. int SCANCODE_COMPUTER;
  14431. int SCANCODE_COPY;
  14432. int SCANCODE_CRSEL;
  14433. int SCANCODE_CTRL;
  14434. int SCANCODE_CURRENCYSUBUNIT;
  14435. int SCANCODE_CURRENCYUNIT;
  14436. int SCANCODE_CUT;
  14437. int SCANCODE_D;
  14438. int SCANCODE_DECIMALSEPARATOR;
  14439. int SCANCODE_DELETE;
  14440. int SCANCODE_DISPLAYSWITCH;
  14441. int SCANCODE_DOWN;
  14442. int SCANCODE_E;
  14443. int SCANCODE_EJECT;
  14444. int SCANCODE_END;
  14445. int SCANCODE_EQUALS;
  14446. int SCANCODE_ESCAPE;
  14447. int SCANCODE_EXECUTE;
  14448. int SCANCODE_EXSEL;
  14449. int SCANCODE_F;
  14450. int SCANCODE_F1;
  14451. int SCANCODE_F10;
  14452. int SCANCODE_F11;
  14453. int SCANCODE_F12;
  14454. int SCANCODE_F13;
  14455. int SCANCODE_F14;
  14456. int SCANCODE_F15;
  14457. int SCANCODE_F16;
  14458. int SCANCODE_F17;
  14459. int SCANCODE_F18;
  14460. int SCANCODE_F19;
  14461. int SCANCODE_F2;
  14462. int SCANCODE_F20;
  14463. int SCANCODE_F21;
  14464. int SCANCODE_F22;
  14465. int SCANCODE_F23;
  14466. int SCANCODE_F24;
  14467. int SCANCODE_F3;
  14468. int SCANCODE_F4;
  14469. int SCANCODE_F5;
  14470. int SCANCODE_F6;
  14471. int SCANCODE_F7;
  14472. int SCANCODE_F8;
  14473. int SCANCODE_F9;
  14474. int SCANCODE_FIND;
  14475. int SCANCODE_G;
  14476. int SCANCODE_GRAVE;
  14477. int SCANCODE_GUI;
  14478. int SCANCODE_H;
  14479. int SCANCODE_HELP;
  14480. int SCANCODE_HOME;
  14481. int SCANCODE_I;
  14482. int SCANCODE_INSERT;
  14483. int SCANCODE_INTERNATIONAL1;
  14484. int SCANCODE_INTERNATIONAL2;
  14485. int SCANCODE_INTERNATIONAL3;
  14486. int SCANCODE_INTERNATIONAL4;
  14487. int SCANCODE_INTERNATIONAL5;
  14488. int SCANCODE_INTERNATIONAL6;
  14489. int SCANCODE_INTERNATIONAL7;
  14490. int SCANCODE_INTERNATIONAL8;
  14491. int SCANCODE_INTERNATIONAL9;
  14492. int SCANCODE_J;
  14493. int SCANCODE_K;
  14494. int SCANCODE_KBDILLUMDOWN;
  14495. int SCANCODE_KBDILLUMTOGGLE;
  14496. int SCANCODE_KBDILLUMUP;
  14497. int SCANCODE_KP_0;
  14498. int SCANCODE_KP_00;
  14499. int SCANCODE_KP_000;
  14500. int SCANCODE_KP_1;
  14501. int SCANCODE_KP_2;
  14502. int SCANCODE_KP_3;
  14503. int SCANCODE_KP_4;
  14504. int SCANCODE_KP_5;
  14505. int SCANCODE_KP_6;
  14506. int SCANCODE_KP_7;
  14507. int SCANCODE_KP_8;
  14508. int SCANCODE_KP_9;
  14509. int SCANCODE_KP_A;
  14510. int SCANCODE_KP_AMPERSAND;
  14511. int SCANCODE_KP_AT;
  14512. int SCANCODE_KP_B;
  14513. int SCANCODE_KP_BACKSPACE;
  14514. int SCANCODE_KP_BINARY;
  14515. int SCANCODE_KP_C;
  14516. int SCANCODE_KP_CLEAR;
  14517. int SCANCODE_KP_CLEARENTRY;
  14518. int SCANCODE_KP_COLON;
  14519. int SCANCODE_KP_COMMA;
  14520. int SCANCODE_KP_D;
  14521. int SCANCODE_KP_DBLAMPERSAND;
  14522. int SCANCODE_KP_DBLVERTICALBAR;
  14523. int SCANCODE_KP_DECIMAL;
  14524. int SCANCODE_KP_DIVIDE;
  14525. int SCANCODE_KP_E;
  14526. int SCANCODE_KP_ENTER;
  14527. int SCANCODE_KP_EQUALS;
  14528. int SCANCODE_KP_EQUALSAS400;
  14529. int SCANCODE_KP_EXCLAM;
  14530. int SCANCODE_KP_F;
  14531. int SCANCODE_KP_GREATER;
  14532. int SCANCODE_KP_HASH;
  14533. int SCANCODE_KP_HEXADECIMAL;
  14534. int SCANCODE_KP_LEFTBRACE;
  14535. int SCANCODE_KP_LEFTPAREN;
  14536. int SCANCODE_KP_LESS;
  14537. int SCANCODE_KP_MEMADD;
  14538. int SCANCODE_KP_MEMCLEAR;
  14539. int SCANCODE_KP_MEMDIVIDE;
  14540. int SCANCODE_KP_MEMMULTIPLY;
  14541. int SCANCODE_KP_MEMRECALL;
  14542. int SCANCODE_KP_MEMSTORE;
  14543. int SCANCODE_KP_MEMSUBTRACT;
  14544. int SCANCODE_KP_MINUS;
  14545. int SCANCODE_KP_MULTIPLY;
  14546. int SCANCODE_KP_OCTAL;
  14547. int SCANCODE_KP_PERCENT;
  14548. int SCANCODE_KP_PERIOD;
  14549. int SCANCODE_KP_PLUS;
  14550. int SCANCODE_KP_PLUSMINUS;
  14551. int SCANCODE_KP_POWER;
  14552. int SCANCODE_KP_RIGHTBRACE;
  14553. int SCANCODE_KP_RIGHTPAREN;
  14554. int SCANCODE_KP_SPACE;
  14555. int SCANCODE_KP_TAB;
  14556. int SCANCODE_KP_VERTICALBAR;
  14557. int SCANCODE_KP_XOR;
  14558. int SCANCODE_L;
  14559. int SCANCODE_LALT;
  14560. int SCANCODE_LANG1;
  14561. int SCANCODE_LANG2;
  14562. int SCANCODE_LANG3;
  14563. int SCANCODE_LANG4;
  14564. int SCANCODE_LANG5;
  14565. int SCANCODE_LANG6;
  14566. int SCANCODE_LANG7;
  14567. int SCANCODE_LANG8;
  14568. int SCANCODE_LANG9;
  14569. int SCANCODE_LCTRL;
  14570. int SCANCODE_LEFT;
  14571. int SCANCODE_LEFTBRACKET;
  14572. int SCANCODE_LGUI;
  14573. int SCANCODE_LSHIFT;
  14574. int SCANCODE_M;
  14575. int SCANCODE_MAIL;
  14576. int SCANCODE_MEDIASELECT;
  14577. int SCANCODE_MENU;
  14578. int SCANCODE_MINUS;
  14579. int SCANCODE_MODE;
  14580. int SCANCODE_MUTE;
  14581. int SCANCODE_N;
  14582. int SCANCODE_NONUSBACKSLASH;
  14583. int SCANCODE_NONUSHASH;
  14584. int SCANCODE_NUMLOCKCLEAR;
  14585. int SCANCODE_O;
  14586. int SCANCODE_OPER;
  14587. int SCANCODE_OUT;
  14588. int SCANCODE_P;
  14589. int SCANCODE_PAGEDOWN;
  14590. int SCANCODE_PAGEUP;
  14591. int SCANCODE_PASTE;
  14592. int SCANCODE_PAUSE;
  14593. int SCANCODE_PERIOD;
  14594. int SCANCODE_POWER;
  14595. int SCANCODE_PRINTSCREEN;
  14596. int SCANCODE_PRIOR;
  14597. int SCANCODE_Q;
  14598. int SCANCODE_R;
  14599. int SCANCODE_RALT;
  14600. int SCANCODE_RCTRL;
  14601. int SCANCODE_RETURN;
  14602. int SCANCODE_RETURN2;
  14603. int SCANCODE_RGUI;
  14604. int SCANCODE_RIGHT;
  14605. int SCANCODE_RIGHTBRACKET;
  14606. int SCANCODE_RSHIFT;
  14607. int SCANCODE_S;
  14608. int SCANCODE_SCROLLLOCK;
  14609. int SCANCODE_SELECT;
  14610. int SCANCODE_SEMICOLON;
  14611. int SCANCODE_SEPARATOR;
  14612. int SCANCODE_SHIFT;
  14613. int SCANCODE_SLASH;
  14614. int SCANCODE_SLEEP;
  14615. int SCANCODE_SPACE;
  14616. int SCANCODE_STOP;
  14617. int SCANCODE_SYSREQ;
  14618. int SCANCODE_T;
  14619. int SCANCODE_TAB;
  14620. int SCANCODE_THOUSANDSSEPARATOR;
  14621. int SCANCODE_U;
  14622. int SCANCODE_UNDO;
  14623. int SCANCODE_UNKNOWN;
  14624. int SCANCODE_UP;
  14625. int SCANCODE_V;
  14626. int SCANCODE_VOLUMEDOWN;
  14627. int SCANCODE_VOLUMEUP;
  14628. int SCANCODE_W;
  14629. int SCANCODE_WWW;
  14630. int SCANCODE_X;
  14631. int SCANCODE_Y;
  14632. int SCANCODE_Z;
  14633. uint SCAN_DIRS;
  14634. uint SCAN_FILES;
  14635. uint SCAN_HIDDEN;
  14636. String SOUND_AMBIENT;
  14637. String SOUND_EFFECT;
  14638. String SOUND_MASTER;
  14639. String SOUND_MUSIC;
  14640. String SOUND_VOICE;
  14641. Color TRANSPARENT;
  14642. uint VO_DISABLE_OCCLUSION;
  14643. uint VO_DISABLE_SHADOWS;
  14644. uint VO_LOW_MATERIAL_QUALITY;
  14645. uint VO_NONE;
  14646. Color WHITE;
  14647. Color YELLOW;