AngelScriptAPI.h 375 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138
  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 ReorderComponent(Component, uint);
  6998. void ResetDeepEnabled();
  6999. void ResetToDefault();
  7000. void Roll(float, TransformSpace = TS_LOCAL);
  7001. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7002. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7003. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7004. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7005. bool Save(File) const;
  7006. bool Save(VectorBuffer&) const;
  7007. bool SaveJSON(File);
  7008. bool SaveJSON(JSONValue&) const;
  7009. bool SaveJSON(VectorBuffer&);
  7010. bool SaveXML(File, const String& = "\t");
  7011. bool SaveXML(VectorBuffer&, const String& = "\t");
  7012. bool SaveXML(XMLElement&) const;
  7013. void Scale(const Vector3&);
  7014. void Scale(float);
  7015. void Scale2D(const Vector2&);
  7016. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7017. void SetAnimationTime(float);
  7018. bool SetAttribute(const String&, const Variant&);
  7019. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7020. void SetAttributeAnimationSpeed(const String&, float);
  7021. void SetAttributeAnimationTime(const String&, float);
  7022. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7023. void SetDeepEnabled(bool);
  7024. void SetEnabledRecursive(bool);
  7025. void SetInterceptNetworkUpdate(const String&, bool);
  7026. void SetPosition2D(float, float);
  7027. void SetScale(float);
  7028. void SetScale2D(float, float);
  7029. void SetTransform(const Vector3&, const Quaternion&);
  7030. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7031. void SetTransform(const Vector3&, const Quaternion&, float);
  7032. void SetTransform2D(const Vector2&, float);
  7033. void SetTransform2D(const Vector2&, float, const Vector2&);
  7034. void SetTransform2D(const Vector2&, float, float);
  7035. void SetWorldTransform(const Vector3&, const Quaternion&);
  7036. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7037. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7038. void SetWorldTransform2D(const Vector2&, float);
  7039. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7040. void SetWorldTransform2D(const Vector2&, float, float);
  7041. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7042. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7043. Vector3 WorldToLocal(const Vector3&) const;
  7044. Vector3 WorldToLocal(const Vector4&) const;
  7045. Vector2 WorldToLocal2D(const Vector2&) const;
  7046. void Yaw(float, TransformSpace = TS_LOCAL);
  7047. // Properties:
  7048. bool animationEnabled;
  7049. /* readonly */
  7050. Array<Variant> attributeDefaults;
  7051. /* readonly */
  7052. Array<AttributeInfo> attributeInfos;
  7053. Array<Variant> attributes;
  7054. /* readonly */
  7055. String category;
  7056. /* readonly */
  7057. Array<Node> children;
  7058. /* readonly */
  7059. Array<Component> components;
  7060. Vector3 direction;
  7061. bool enabled;
  7062. /* readonly */
  7063. bool enabledSelf;
  7064. uint id;
  7065. String name;
  7066. /* readonly */
  7067. uint numAllChildren;
  7068. /* readonly */
  7069. uint numAttributes;
  7070. /* readonly */
  7071. uint numChildren;
  7072. /* readonly */
  7073. uint numComponents;
  7074. ObjectAnimation objectAnimation;
  7075. Connection owner;
  7076. Node parent;
  7077. Vector3 position;
  7078. Vector2 position2D;
  7079. /* readonly */
  7080. int refs;
  7081. /* readonly */
  7082. Vector3 right;
  7083. Quaternion rotation;
  7084. float rotation2D;
  7085. Vector3 scale;
  7086. Vector2 scale2D;
  7087. /* readonly */
  7088. Scene scene;
  7089. /* readonly */
  7090. ScriptObject scriptObject;
  7091. /* readonly */
  7092. Array<String> tags;
  7093. bool temporary;
  7094. /* readonly */
  7095. Matrix3x4 transform;
  7096. /* readonly */
  7097. StringHash type;
  7098. /* readonly */
  7099. String typeName;
  7100. /* readonly */
  7101. Vector3 up;
  7102. /* readonly */
  7103. VariantMap vars;
  7104. /* readonly */
  7105. int weakRefs;
  7106. Vector3 worldDirection;
  7107. Vector3 worldPosition;
  7108. Vector2 worldPosition2D;
  7109. /* readonly */
  7110. Vector3 worldRight;
  7111. Quaternion worldRotation;
  7112. float worldRotation2D;
  7113. Vector3 worldScale;
  7114. Vector2 worldScale2D;
  7115. /* readonly */
  7116. Matrix3x4 worldTransform;
  7117. /* readonly */
  7118. Vector3 worldUp;
  7119. };
  7120. class Object
  7121. {
  7122. // Methods:
  7123. bool HasSubscribedToEvent(Object, const String&);
  7124. bool HasSubscribedToEvent(const String&);
  7125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7126. // Properties:
  7127. /* readonly */
  7128. String category;
  7129. /* readonly */
  7130. int refs;
  7131. /* readonly */
  7132. StringHash type;
  7133. /* readonly */
  7134. String typeName;
  7135. /* readonly */
  7136. int weakRefs;
  7137. };
  7138. class ObjectAnimation
  7139. {
  7140. // Methods:
  7141. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7142. ValueAnimation GetAttributeAnimation(const String&) const;
  7143. float GetAttributeAnimationSpeed(const String&) const;
  7144. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7145. bool HasSubscribedToEvent(Object, const String&);
  7146. bool HasSubscribedToEvent(const String&);
  7147. bool Load(File);
  7148. bool Load(VectorBuffer&);
  7149. void RemoveAttributeAnimation(ValueAnimation);
  7150. void RemoveAttributeAnimation(const String&);
  7151. bool Save(File) const;
  7152. bool Save(VectorBuffer&) const;
  7153. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7154. // Properties:
  7155. /* readonly */
  7156. Array<Variant> attributeAnimations;
  7157. /* readonly */
  7158. String category;
  7159. /* readonly */
  7160. uint memoryUse;
  7161. String name;
  7162. /* readonly */
  7163. int refs;
  7164. /* readonly */
  7165. Array<Variant> speeds;
  7166. /* readonly */
  7167. StringHash type;
  7168. /* readonly */
  7169. String typeName;
  7170. /* readonly */
  7171. uint useTimer;
  7172. /* readonly */
  7173. int weakRefs;
  7174. /* readonly */
  7175. Array<Variant> wrapModes;
  7176. };
  7177. class Obstacle
  7178. {
  7179. // Methods:
  7180. void ApplyAttributes();
  7181. void DrawDebugGeometry(DebugRenderer, bool);
  7182. void DrawDebugGeometry(bool);
  7183. Variant GetAttribute(const String&) const;
  7184. ValueAnimation GetAttributeAnimation(const String&) const;
  7185. float GetAttributeAnimationSpeed(const String&) const;
  7186. float GetAttributeAnimationTime(const String&) const;
  7187. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7188. Variant GetAttributeDefault(const String&) const;
  7189. bool GetInterceptNetworkUpdate(const String&) const;
  7190. bool HasSubscribedToEvent(Object, const String&);
  7191. bool HasSubscribedToEvent(const String&);
  7192. bool Load(File, bool = false);
  7193. bool Load(VectorBuffer&, bool = false);
  7194. bool LoadJSON(const JSONValue&, bool = false);
  7195. bool LoadXML(const XMLElement&, bool = false);
  7196. void MarkNetworkUpdate() const;
  7197. void Remove();
  7198. void RemoveAttributeAnimation(const String&);
  7199. void RemoveInstanceDefault();
  7200. void RemoveObjectAnimation();
  7201. void ResetToDefault();
  7202. bool Save(File) const;
  7203. bool Save(VectorBuffer&) const;
  7204. bool SaveJSON(JSONValue&) const;
  7205. bool SaveXML(XMLElement&) const;
  7206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7207. void SetAnimationTime(float);
  7208. bool SetAttribute(const String&, const Variant&);
  7209. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7210. void SetAttributeAnimationSpeed(const String&, float);
  7211. void SetAttributeAnimationTime(const String&, float);
  7212. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7213. void SetInterceptNetworkUpdate(const String&, bool);
  7214. // Properties:
  7215. bool animationEnabled;
  7216. /* readonly */
  7217. Array<Variant> attributeDefaults;
  7218. /* readonly */
  7219. Array<AttributeInfo> attributeInfos;
  7220. Array<Variant> attributes;
  7221. /* readonly */
  7222. String category;
  7223. bool enabled;
  7224. /* readonly */
  7225. bool enabledEffective;
  7226. float height;
  7227. /* readonly */
  7228. uint id;
  7229. /* readonly */
  7230. Node node;
  7231. /* readonly */
  7232. uint numAttributes;
  7233. ObjectAnimation objectAnimation;
  7234. /* readonly */
  7235. uint obstacleId;
  7236. float radius;
  7237. /* readonly */
  7238. int refs;
  7239. bool temporary;
  7240. /* readonly */
  7241. StringHash type;
  7242. /* readonly */
  7243. String typeName;
  7244. /* readonly */
  7245. int weakRefs;
  7246. };
  7247. class Octree
  7248. {
  7249. // Methods:
  7250. void AddManualDrawable(Drawable);
  7251. void ApplyAttributes();
  7252. void DrawDebugGeometry(DebugRenderer, bool);
  7253. void DrawDebugGeometry(bool) const;
  7254. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7255. Variant GetAttribute(const String&) const;
  7256. ValueAnimation GetAttributeAnimation(const String&) const;
  7257. float GetAttributeAnimationSpeed(const String&) const;
  7258. float GetAttributeAnimationTime(const String&) const;
  7259. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7260. Variant GetAttributeDefault(const String&) const;
  7261. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7262. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7263. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7264. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7265. bool GetInterceptNetworkUpdate(const String&) const;
  7266. bool HasSubscribedToEvent(Object, const String&);
  7267. bool HasSubscribedToEvent(const String&);
  7268. bool Load(File, bool = false);
  7269. bool Load(VectorBuffer&, bool = false);
  7270. bool LoadJSON(const JSONValue&, bool = false);
  7271. bool LoadXML(const XMLElement&, bool = false);
  7272. void MarkNetworkUpdate() const;
  7273. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7274. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7275. void Remove();
  7276. void RemoveAttributeAnimation(const String&);
  7277. void RemoveInstanceDefault();
  7278. void RemoveManualDrawable(Drawable);
  7279. void RemoveObjectAnimation();
  7280. void ResetToDefault();
  7281. bool Save(File) const;
  7282. bool Save(VectorBuffer&) const;
  7283. bool SaveJSON(JSONValue&) const;
  7284. bool SaveXML(XMLElement&) const;
  7285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7286. void SetAnimationTime(float);
  7287. bool SetAttribute(const String&, const Variant&);
  7288. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7289. void SetAttributeAnimationSpeed(const String&, float);
  7290. void SetAttributeAnimationTime(const String&, float);
  7291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7292. void SetInterceptNetworkUpdate(const String&, bool);
  7293. void SetSize(const BoundingBox&, uint);
  7294. // Properties:
  7295. bool animationEnabled;
  7296. /* readonly */
  7297. Array<Variant> attributeDefaults;
  7298. /* readonly */
  7299. Array<AttributeInfo> attributeInfos;
  7300. Array<Variant> attributes;
  7301. /* readonly */
  7302. String category;
  7303. bool enabled;
  7304. /* readonly */
  7305. bool enabledEffective;
  7306. /* readonly */
  7307. uint id;
  7308. /* readonly */
  7309. Node node;
  7310. /* readonly */
  7311. uint numAttributes;
  7312. /* readonly */
  7313. uint numLevels;
  7314. ObjectAnimation objectAnimation;
  7315. /* readonly */
  7316. int refs;
  7317. bool temporary;
  7318. /* readonly */
  7319. StringHash type;
  7320. /* readonly */
  7321. String typeName;
  7322. /* readonly */
  7323. int weakRefs;
  7324. /* readonly */
  7325. BoundingBox worldBoundingBox;
  7326. };
  7327. class OffMeshConnection
  7328. {
  7329. // Methods:
  7330. void ApplyAttributes();
  7331. void DrawDebugGeometry(DebugRenderer, bool);
  7332. Variant GetAttribute(const String&) const;
  7333. ValueAnimation GetAttributeAnimation(const String&) const;
  7334. float GetAttributeAnimationSpeed(const String&) const;
  7335. float GetAttributeAnimationTime(const String&) const;
  7336. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7337. Variant GetAttributeDefault(const String&) const;
  7338. bool GetInterceptNetworkUpdate(const String&) const;
  7339. bool HasSubscribedToEvent(Object, const String&);
  7340. bool HasSubscribedToEvent(const String&);
  7341. bool Load(File, bool = false);
  7342. bool Load(VectorBuffer&, bool = false);
  7343. bool LoadJSON(const JSONValue&, bool = false);
  7344. bool LoadXML(const XMLElement&, bool = false);
  7345. void MarkNetworkUpdate() const;
  7346. void Remove();
  7347. void RemoveAttributeAnimation(const String&);
  7348. void RemoveInstanceDefault();
  7349. void RemoveObjectAnimation();
  7350. void ResetToDefault();
  7351. bool Save(File) const;
  7352. bool Save(VectorBuffer&) const;
  7353. bool SaveJSON(JSONValue&) const;
  7354. bool SaveXML(XMLElement&) const;
  7355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7356. void SetAnimationTime(float);
  7357. bool SetAttribute(const String&, const Variant&);
  7358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7359. void SetAttributeAnimationSpeed(const String&, float);
  7360. void SetAttributeAnimationTime(const String&, float);
  7361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7362. void SetInterceptNetworkUpdate(const String&, bool);
  7363. // Properties:
  7364. bool animationEnabled;
  7365. uint areaID;
  7366. /* readonly */
  7367. Array<Variant> attributeDefaults;
  7368. /* readonly */
  7369. Array<AttributeInfo> attributeInfos;
  7370. Array<Variant> attributes;
  7371. bool bidirectional;
  7372. /* readonly */
  7373. String category;
  7374. bool enabled;
  7375. /* readonly */
  7376. bool enabledEffective;
  7377. Node endPoint;
  7378. /* readonly */
  7379. uint id;
  7380. uint mask;
  7381. /* readonly */
  7382. Node node;
  7383. /* readonly */
  7384. uint numAttributes;
  7385. ObjectAnimation objectAnimation;
  7386. float radius;
  7387. /* readonly */
  7388. int refs;
  7389. bool temporary;
  7390. /* readonly */
  7391. StringHash type;
  7392. /* readonly */
  7393. String typeName;
  7394. /* readonly */
  7395. int weakRefs;
  7396. };
  7397. class PackageFile
  7398. {
  7399. // Methods:
  7400. bool Exists(const String&) const;
  7401. Array<String> GetEntryNames() const;
  7402. bool HasSubscribedToEvent(Object, const String&);
  7403. bool HasSubscribedToEvent(const String&);
  7404. bool Open(const String&, uint = 0) const;
  7405. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7406. bool compressed() const;
  7407. // Properties:
  7408. /* readonly */
  7409. String category;
  7410. /* readonly */
  7411. uint checksum;
  7412. /* readonly */
  7413. String name;
  7414. /* readonly */
  7415. uint numFiles;
  7416. /* readonly */
  7417. int refs;
  7418. /* readonly */
  7419. uint totalDataSize;
  7420. /* readonly */
  7421. uint totalSize;
  7422. /* readonly */
  7423. StringHash type;
  7424. /* readonly */
  7425. String typeName;
  7426. /* readonly */
  7427. int weakRefs;
  7428. };
  7429. class ParticleEffect
  7430. {
  7431. // Methods:
  7432. void AddColorFrame(ColorFrame);
  7433. void AddColorTime(Color&, float);
  7434. void AddTextureFrame(TextureFrame);
  7435. void AddTextureTime(Rect&, float);
  7436. ParticleEffect Clone(const String& = String ( )) const;
  7437. ColorFrame GetColorFrame(uint) const;
  7438. TextureFrame GetTextureFrame(uint) const;
  7439. bool HasSubscribedToEvent(Object, const String&);
  7440. bool HasSubscribedToEvent(const String&);
  7441. bool Load(File);
  7442. bool Load(VectorBuffer&);
  7443. bool Load(const XMLElement&);
  7444. void RemoveColorFrame(uint);
  7445. void RemoveTextureFrame(uint);
  7446. bool Save(File) const;
  7447. bool Save(VectorBuffer&) const;
  7448. bool Save(XMLElement&) const;
  7449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7450. void SetColorFrame(uint, ColorFrame);
  7451. void SetTextureFrame(uint, TextureFrame);
  7452. void SortColorFrames();
  7453. void SortTextureFrames();
  7454. // Properties:
  7455. float activeTime;
  7456. float animationLodBias;
  7457. /* readonly */
  7458. String category;
  7459. Vector3 constantForce;
  7460. float dampingForce;
  7461. Vector3 emitterSize;
  7462. EmitterType emitterType;
  7463. FaceCameraMode faceCameraMode;
  7464. bool fixedScreenSize;
  7465. float inactiveTime;
  7466. Material material;
  7467. Vector3 maxDirection;
  7468. float maxEmissionRate;
  7469. Vector2 maxParticleSize;
  7470. float maxRotation;
  7471. float maxRotationSpeed;
  7472. float maxTimeToLive;
  7473. float maxVelocity;
  7474. /* readonly */
  7475. uint memoryUse;
  7476. Vector3 minDirection;
  7477. float minEmissionRate;
  7478. Vector2 minParticleSize;
  7479. float minRotation;
  7480. float minRotationSpeed;
  7481. float minTimeToLive;
  7482. float minVelocity;
  7483. String name;
  7484. uint numColorFrames;
  7485. uint numParticles;
  7486. uint numTextureFrames;
  7487. /* readonly */
  7488. int refs;
  7489. bool relative;
  7490. bool scaled;
  7491. float sizeAdd;
  7492. float sizeMul;
  7493. bool sorted;
  7494. /* readonly */
  7495. StringHash type;
  7496. /* readonly */
  7497. String typeName;
  7498. bool updateInvisible;
  7499. /* readonly */
  7500. uint useTimer;
  7501. /* readonly */
  7502. int weakRefs;
  7503. };
  7504. class ParticleEffect2D
  7505. {
  7506. // Methods:
  7507. ParticleEffect2D Clone(const String& = String ( )) const;
  7508. bool HasSubscribedToEvent(Object, const String&);
  7509. bool HasSubscribedToEvent(const String&);
  7510. bool Load(File);
  7511. bool Load(VectorBuffer&);
  7512. bool Save(File) const;
  7513. bool Save(VectorBuffer&) const;
  7514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7515. // Properties:
  7516. /* readonly */
  7517. String category;
  7518. /* readonly */
  7519. uint memoryUse;
  7520. String name;
  7521. /* readonly */
  7522. int refs;
  7523. /* readonly */
  7524. StringHash type;
  7525. /* readonly */
  7526. String typeName;
  7527. /* readonly */
  7528. uint useTimer;
  7529. /* readonly */
  7530. int weakRefs;
  7531. };
  7532. class ParticleEmitter
  7533. {
  7534. // Methods:
  7535. void ApplyAttributes();
  7536. void ApplyEffect();
  7537. void Commit();
  7538. void DrawDebugGeometry(DebugRenderer, bool);
  7539. Variant GetAttribute(const String&) const;
  7540. ValueAnimation GetAttributeAnimation(const String&) const;
  7541. float GetAttributeAnimationSpeed(const String&) const;
  7542. float GetAttributeAnimationTime(const String&) const;
  7543. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7544. Variant GetAttributeDefault(const String&) const;
  7545. bool GetInterceptNetworkUpdate(const String&) const;
  7546. bool HasSubscribedToEvent(Object, const String&);
  7547. bool HasSubscribedToEvent(const String&);
  7548. bool IsInView(Camera) const;
  7549. bool Load(File, bool = false);
  7550. bool Load(VectorBuffer&, bool = false);
  7551. bool LoadJSON(const JSONValue&, bool = false);
  7552. bool LoadXML(const XMLElement&, bool = false);
  7553. void MarkNetworkUpdate() const;
  7554. void Remove();
  7555. void RemoveAllParticles();
  7556. void RemoveAttributeAnimation(const String&);
  7557. void RemoveInstanceDefault();
  7558. void RemoveObjectAnimation();
  7559. void Reset();
  7560. void ResetEmissionTimer();
  7561. void ResetToDefault();
  7562. bool Save(File) const;
  7563. bool Save(VectorBuffer&) const;
  7564. bool SaveJSON(JSONValue&) const;
  7565. bool SaveXML(XMLElement&) const;
  7566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7567. void SetAnimationTime(float);
  7568. bool SetAttribute(const String&, const Variant&);
  7569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7570. void SetAttributeAnimationSpeed(const String&, float);
  7571. void SetAttributeAnimationTime(const String&, float);
  7572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7573. void SetInterceptNetworkUpdate(const String&, bool);
  7574. // Properties:
  7575. bool animationEnabled;
  7576. float animationLodBias;
  7577. /* readonly */
  7578. Array<Variant> attributeDefaults;
  7579. /* readonly */
  7580. Array<AttributeInfo> attributeInfos;
  7581. Array<Variant> attributes;
  7582. /* readonly */
  7583. Array<Billboard> billboards;
  7584. /* readonly */
  7585. BoundingBox boundingBox;
  7586. bool castShadows;
  7587. /* readonly */
  7588. String category;
  7589. float drawDistance;
  7590. ParticleEffect effect;
  7591. bool emitting;
  7592. bool enabled;
  7593. /* readonly */
  7594. bool enabledEffective;
  7595. FaceCameraMode faceCameraMode;
  7596. bool fixedScreenSize;
  7597. /* readonly */
  7598. uint id;
  7599. /* readonly */
  7600. bool inView;
  7601. uint lightMask;
  7602. float lodBias;
  7603. Material material;
  7604. uint maxLights;
  7605. /* readonly */
  7606. Node node;
  7607. /* readonly */
  7608. uint numAttributes;
  7609. uint numBillboards;
  7610. uint numParticles;
  7611. ObjectAnimation objectAnimation;
  7612. bool occludee;
  7613. bool occluder;
  7614. /* readonly */
  7615. int refs;
  7616. bool relative;
  7617. bool scaled;
  7618. bool serializeParticles;
  7619. float shadowDistance;
  7620. uint shadowMask;
  7621. bool sorted;
  7622. bool temporary;
  7623. /* readonly */
  7624. StringHash type;
  7625. /* readonly */
  7626. String typeName;
  7627. uint viewMask;
  7628. /* readonly */
  7629. int weakRefs;
  7630. /* readonly */
  7631. BoundingBox worldBoundingBox;
  7632. /* readonly */
  7633. Zone zone;
  7634. uint zoneMask;
  7635. };
  7636. class ParticleEmitter2D
  7637. {
  7638. // Methods:
  7639. void ApplyAttributes();
  7640. void DrawDebugGeometry(DebugRenderer, bool);
  7641. Variant GetAttribute(const String&) const;
  7642. ValueAnimation GetAttributeAnimation(const String&) const;
  7643. float GetAttributeAnimationSpeed(const String&) const;
  7644. float GetAttributeAnimationTime(const String&) const;
  7645. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7646. Variant GetAttributeDefault(const String&) const;
  7647. bool GetInterceptNetworkUpdate(const String&) const;
  7648. bool HasSubscribedToEvent(Object, const String&);
  7649. bool HasSubscribedToEvent(const String&);
  7650. bool IsInView(Camera) const;
  7651. bool Load(File, bool = false);
  7652. bool Load(VectorBuffer&, bool = false);
  7653. bool LoadJSON(const JSONValue&, bool = false);
  7654. bool LoadXML(const XMLElement&, bool = false);
  7655. void MarkNetworkUpdate() const;
  7656. void Remove();
  7657. void RemoveAttributeAnimation(const String&);
  7658. void RemoveInstanceDefault();
  7659. void RemoveObjectAnimation();
  7660. void ResetToDefault();
  7661. bool Save(File) const;
  7662. bool Save(VectorBuffer&) const;
  7663. bool SaveJSON(JSONValue&) const;
  7664. bool SaveXML(XMLElement&) const;
  7665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7666. void SetAnimationTime(float);
  7667. bool SetAttribute(const String&, const Variant&);
  7668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7669. void SetAttributeAnimationSpeed(const String&, float);
  7670. void SetAttributeAnimationTime(const String&, float);
  7671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7672. void SetInterceptNetworkUpdate(const String&, bool);
  7673. // Properties:
  7674. bool animationEnabled;
  7675. /* readonly */
  7676. Array<Variant> attributeDefaults;
  7677. /* readonly */
  7678. Array<AttributeInfo> attributeInfos;
  7679. Array<Variant> attributes;
  7680. BlendMode blendMode;
  7681. /* readonly */
  7682. BoundingBox boundingBox;
  7683. bool castShadows;
  7684. /* readonly */
  7685. String category;
  7686. float drawDistance;
  7687. ParticleEffect2D effect;
  7688. bool enabled;
  7689. /* readonly */
  7690. bool enabledEffective;
  7691. /* readonly */
  7692. uint id;
  7693. /* readonly */
  7694. bool inView;
  7695. int layer;
  7696. uint lightMask;
  7697. float lodBias;
  7698. uint maxLights;
  7699. /* readonly */
  7700. Node node;
  7701. /* readonly */
  7702. uint numAttributes;
  7703. ObjectAnimation objectAnimation;
  7704. bool occludee;
  7705. bool occluder;
  7706. int orderInLayer;
  7707. /* readonly */
  7708. int refs;
  7709. float shadowDistance;
  7710. uint shadowMask;
  7711. Sprite2D sprite;
  7712. bool temporary;
  7713. /* readonly */
  7714. StringHash type;
  7715. /* readonly */
  7716. String typeName;
  7717. uint viewMask;
  7718. /* readonly */
  7719. int weakRefs;
  7720. /* readonly */
  7721. BoundingBox worldBoundingBox;
  7722. uint zoneMask;
  7723. };
  7724. class Pass
  7725. {
  7726. // Properties:
  7727. bool alphaMask;
  7728. BlendMode blendMode;
  7729. CullMode cullMode;
  7730. CompareMode depthTestMode;
  7731. bool depthWrite;
  7732. bool desktop;
  7733. PassLightingMode lightingMode;
  7734. String pixelShader;
  7735. String pixelShaderDefines;
  7736. /* readonly */
  7737. int refs;
  7738. String vertexShader;
  7739. String vertexShaderDefines;
  7740. /* readonly */
  7741. int weakRefs;
  7742. };
  7743. class PhysicsRaycastResult
  7744. {
  7745. // Properties:
  7746. /* readonly */
  7747. RigidBody body;
  7748. float distance;
  7749. float hitFraction;
  7750. Vector3 normal;
  7751. Vector3 position;
  7752. };
  7753. class PhysicsRaycastResult2D
  7754. {
  7755. // Properties:
  7756. /* readonly */
  7757. RigidBody2D body;
  7758. float distance;
  7759. Vector2 normal;
  7760. Vector2 position;
  7761. };
  7762. class PhysicsWorld
  7763. {
  7764. // Methods:
  7765. void ApplyAttributes();
  7766. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7767. void DrawDebugGeometry(DebugRenderer, bool);
  7768. void DrawDebugGeometry(bool);
  7769. Variant GetAttribute(const String&) const;
  7770. ValueAnimation GetAttributeAnimation(const String&) const;
  7771. float GetAttributeAnimationSpeed(const String&) const;
  7772. float GetAttributeAnimationTime(const String&) const;
  7773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7774. Variant GetAttributeDefault(const String&) const;
  7775. Array<RigidBody> GetCollidingBodies(RigidBody);
  7776. bool GetInterceptNetworkUpdate(const String&) const;
  7777. Array<RigidBody> GetRigidBodies(RigidBody);
  7778. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7779. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7780. bool HasSubscribedToEvent(Object, const String&);
  7781. bool HasSubscribedToEvent(const String&);
  7782. bool Load(File, bool = false);
  7783. bool Load(VectorBuffer&, bool = false);
  7784. bool LoadJSON(const JSONValue&, bool = false);
  7785. bool LoadXML(const XMLElement&, bool = false);
  7786. void MarkNetworkUpdate() const;
  7787. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7788. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7789. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7790. void Remove();
  7791. void RemoveAttributeAnimation(const String&);
  7792. void RemoveCachedGeometry(Model);
  7793. void RemoveInstanceDefault();
  7794. void RemoveObjectAnimation();
  7795. void ResetToDefault();
  7796. bool Save(File) const;
  7797. bool Save(VectorBuffer&) const;
  7798. bool SaveJSON(JSONValue&) const;
  7799. bool SaveXML(XMLElement&) const;
  7800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7801. void SetAnimationTime(float);
  7802. bool SetAttribute(const String&, const Variant&);
  7803. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7804. void SetAttributeAnimationSpeed(const String&, float);
  7805. void SetAttributeAnimationTime(const String&, float);
  7806. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7807. void SetInterceptNetworkUpdate(const String&, bool);
  7808. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7809. void Update(float);
  7810. void UpdateCollisions();
  7811. // Properties:
  7812. bool animationEnabled;
  7813. /* readonly */
  7814. Array<Variant> attributeDefaults;
  7815. /* readonly */
  7816. Array<AttributeInfo> attributeInfos;
  7817. Array<Variant> attributes;
  7818. /* readonly */
  7819. String category;
  7820. bool enabled;
  7821. /* readonly */
  7822. bool enabledEffective;
  7823. int fps;
  7824. Vector3 gravity;
  7825. /* readonly */
  7826. uint id;
  7827. bool internalEdge;
  7828. bool interpolation;
  7829. int maxSubSteps;
  7830. /* readonly */
  7831. Node node;
  7832. /* readonly */
  7833. uint numAttributes;
  7834. int numIterations;
  7835. ObjectAnimation objectAnimation;
  7836. /* readonly */
  7837. int refs;
  7838. bool splitImpulse;
  7839. bool temporary;
  7840. /* readonly */
  7841. StringHash type;
  7842. /* readonly */
  7843. String typeName;
  7844. bool updateEnabled;
  7845. /* readonly */
  7846. int weakRefs;
  7847. };
  7848. class PhysicsWorld2D
  7849. {
  7850. // Methods:
  7851. void ApplyAttributes();
  7852. void DrawDebugGeometry() const;
  7853. void DrawDebugGeometry(DebugRenderer, bool);
  7854. Variant GetAttribute(const String&) const;
  7855. ValueAnimation GetAttributeAnimation(const String&) const;
  7856. float GetAttributeAnimationSpeed(const String&) const;
  7857. float GetAttributeAnimationTime(const String&) const;
  7858. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7859. Variant GetAttributeDefault(const String&) const;
  7860. bool GetInterceptNetworkUpdate(const String&) const;
  7861. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7862. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7863. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7864. bool HasSubscribedToEvent(Object, const String&);
  7865. bool HasSubscribedToEvent(const String&);
  7866. bool Load(File, bool = false);
  7867. bool Load(VectorBuffer&, bool = false);
  7868. bool LoadJSON(const JSONValue&, bool = false);
  7869. bool LoadXML(const XMLElement&, bool = false);
  7870. void MarkNetworkUpdate() const;
  7871. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7872. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7873. void Remove();
  7874. void RemoveAttributeAnimation(const String&);
  7875. void RemoveInstanceDefault();
  7876. void RemoveObjectAnimation();
  7877. void ResetToDefault();
  7878. bool Save(File) const;
  7879. bool Save(VectorBuffer&) const;
  7880. bool SaveJSON(JSONValue&) const;
  7881. bool SaveXML(XMLElement&) const;
  7882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7883. void SetAnimationTime(float);
  7884. bool SetAttribute(const String&, const Variant&);
  7885. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7886. void SetAttributeAnimationSpeed(const String&, float);
  7887. void SetAttributeAnimationTime(const String&, float);
  7888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7889. void SetInterceptNetworkUpdate(const String&, bool);
  7890. // Properties:
  7891. bool allowSleeping;
  7892. bool animationEnabled;
  7893. /* readonly */
  7894. Array<Variant> attributeDefaults;
  7895. /* readonly */
  7896. Array<AttributeInfo> attributeInfos;
  7897. Array<Variant> attributes;
  7898. bool autoClearForces;
  7899. /* readonly */
  7900. String category;
  7901. bool continuousPhysics;
  7902. bool drawAabb;
  7903. bool drawCenterOfMass;
  7904. bool drawJoint;
  7905. bool drawPair;
  7906. bool drawShape;
  7907. bool enabled;
  7908. /* readonly */
  7909. bool enabledEffective;
  7910. Vector2 gravity;
  7911. /* readonly */
  7912. uint id;
  7913. /* readonly */
  7914. Node node;
  7915. /* readonly */
  7916. uint numAttributes;
  7917. ObjectAnimation objectAnimation;
  7918. uint positionIterations;
  7919. /* readonly */
  7920. int refs;
  7921. bool subStepping;
  7922. bool temporary;
  7923. /* readonly */
  7924. StringHash type;
  7925. /* readonly */
  7926. String typeName;
  7927. bool updateEnabled;
  7928. uint velocityIterations;
  7929. bool warmStarting;
  7930. /* readonly */
  7931. int weakRefs;
  7932. };
  7933. class Plane
  7934. {
  7935. // Methods:
  7936. void Define(const Vector3&, const Vector3&);
  7937. void Define(const Vector3&, const Vector3&, const Vector3&);
  7938. void Define(const Vector4&);
  7939. float Distance(const Vector3&) const;
  7940. Vector3 Project(const Vector3&) const;
  7941. Vector3 Reflect(const Vector3&) const;
  7942. Vector4 ToVector4() const;
  7943. void Transform(const Matrix3&);
  7944. void Transform(const Matrix3x4&);
  7945. void Transform(const Matrix4&);
  7946. Plane Transformed(const Matrix3&) const;
  7947. Plane Transformed(const Matrix3x4&) const;
  7948. Plane Transformed(const Matrix4&) const;
  7949. // Properties:
  7950. Vector3 absNormal;
  7951. float d;
  7952. Vector3 normal;
  7953. /* readonly */
  7954. Matrix3x4 reflectionMatrix;
  7955. };
  7956. class Polyhedron
  7957. {
  7958. // Methods:
  7959. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7960. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7961. void AddFace(const Array<Vector3>);
  7962. void Clear();
  7963. void Clip(const BoundingBox&);
  7964. void Clip(const Frustum&);
  7965. void Define(const BoundingBox&);
  7966. void Define(const Frustum&);
  7967. void Transform(const Matrix3&);
  7968. void Transform(const Matrix3x4&);
  7969. Polyhedron Transformed(const Matrix3&) const;
  7970. Polyhedron Transformed(const Matrix3x4&) const;
  7971. // Properties:
  7972. /* readonly */
  7973. Array<Array<Vector3>> face;
  7974. /* readonly */
  7975. uint numFaces;
  7976. };
  7977. class PropertySet2D
  7978. {
  7979. // Methods:
  7980. bool HasProperty(const String&) const;
  7981. const String& GetProperty(const String&) const;
  7982. // Properties:
  7983. /* readonly */
  7984. int refs;
  7985. /* readonly */
  7986. int weakRefs;
  7987. };
  7988. class Quaternion
  7989. {
  7990. // Methods:
  7991. Quaternion Conjugate() const;
  7992. float DotProduct(const Quaternion&) const;
  7993. bool Equals(const Quaternion&) const;
  7994. void FromAngleAxis(float, const Vector3&);
  7995. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7996. void FromEulerAngles(float, float, float);
  7997. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7998. void FromRotationMatrix(const Matrix3&);
  7999. void FromRotationTo(const Vector3&, const Vector3&);
  8000. Quaternion Inverse() const;
  8001. bool IsNaN() const;
  8002. float LengthSquared() const;
  8003. Quaternion Nlerp(Quaternion, float, bool) const;
  8004. void Normalize();
  8005. Quaternion Normalized() const;
  8006. Quaternion Slerp(Quaternion, float) const;
  8007. String ToString() const;
  8008. // Properties:
  8009. /* readonly */
  8010. Vector3 eulerAngles;
  8011. /* readonly */
  8012. float pitch;
  8013. /* readonly */
  8014. float roll;
  8015. /* readonly */
  8016. Matrix3 rotationMatrix;
  8017. float w;
  8018. float x;
  8019. float y;
  8020. /* readonly */
  8021. float yaw;
  8022. float z;
  8023. };
  8024. class Ray
  8025. {
  8026. // Methods:
  8027. Vector3 ClosestPoint(const Ray&) const;
  8028. void Define(const Vector3&, const Vector3&);
  8029. float Distance(const Vector3&) const;
  8030. float HitDistance(const BoundingBox&) const;
  8031. float HitDistance(const Frustum&, bool = true) const;
  8032. float HitDistance(const Plane&) const;
  8033. float HitDistance(const Sphere&) const;
  8034. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8035. Vector3 Project(const Vector3&) const;
  8036. Ray Transformed(const Matrix3x4&) const;
  8037. // Properties:
  8038. Vector3 direction;
  8039. Vector3 origin;
  8040. };
  8041. class RayQueryResult
  8042. {
  8043. // Properties:
  8044. float distance;
  8045. /* readonly */
  8046. Drawable drawable;
  8047. /* readonly */
  8048. Node node;
  8049. Vector3 normal;
  8050. Vector3 position;
  8051. uint subObject;
  8052. Vector2 textureUV;
  8053. };
  8054. class Rect
  8055. {
  8056. // Methods:
  8057. void Clear();
  8058. void Clip(const Rect&);
  8059. void Define(const Vector2&);
  8060. void Define(const Vector2&, const Vector2&);
  8061. bool Defined() const;
  8062. bool Equals(const Rect&) const;
  8063. Intersection IsInside(const Vector2&) const;
  8064. void Merge(const Rect&);
  8065. void Merge(const Vector2&);
  8066. Vector4 ToVector4() const;
  8067. // Properties:
  8068. float bottom;
  8069. /* readonly */
  8070. Vector2 center;
  8071. /* readonly */
  8072. Vector2 halfSize;
  8073. float left;
  8074. Vector2 max;
  8075. Vector2 min;
  8076. float right;
  8077. /* readonly */
  8078. Vector2 size;
  8079. float top;
  8080. };
  8081. class RefCounted
  8082. {
  8083. // Properties:
  8084. /* readonly */
  8085. int refs;
  8086. /* readonly */
  8087. int weakRefs;
  8088. };
  8089. class RenderPath
  8090. {
  8091. // Methods:
  8092. void AddCommand(const RenderPathCommand&);
  8093. void AddRenderTarget(const RenderTargetInfo&);
  8094. bool Append(XMLFile);
  8095. RenderPath Clone();
  8096. void InsertCommand(uint, const RenderPathCommand&);
  8097. bool Load(XMLFile);
  8098. void RemoveCommand(uint);
  8099. void RemoveCommands(const String&);
  8100. void RemoveRenderTarget(const String&);
  8101. void RemoveRenderTarget(uint);
  8102. void RemoveRenderTargts(const String&);
  8103. void SetEnabled(const String&, bool);
  8104. void ToggleEnabled(const String&);
  8105. // Properties:
  8106. Array<RenderPathCommand> commands;
  8107. /* readonly */
  8108. uint numCommands;
  8109. /* readonly */
  8110. uint numRenderTargets;
  8111. /* readonly */
  8112. int refs;
  8113. Array<RenderTargetInfo> renderTargets;
  8114. Array<Variant> shaderParameters;
  8115. /* readonly */
  8116. int weakRefs;
  8117. };
  8118. class RenderPathCommand
  8119. {
  8120. // Methods:
  8121. void RemoveShaderParameter(const String&);
  8122. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8123. // Properties:
  8124. BlendMode blendMode;
  8125. Color clearColor;
  8126. float clearDepth;
  8127. uint clearFlags;
  8128. uint clearStencil;
  8129. String depthStencilName;
  8130. bool enabled;
  8131. String eventName;
  8132. bool markToStencil;
  8133. String metadata;
  8134. uint numOutputs;
  8135. Array<CubeMapFace> outputFaces;
  8136. Array<String> outputNames;
  8137. String pass;
  8138. String pixelShaderDefines;
  8139. String pixelShaderName;
  8140. Array<Variant> shaderParameters;
  8141. RenderCommandSortMode sortMode;
  8142. String tag;
  8143. Array<String> textureNames;
  8144. RenderCommandType type;
  8145. bool useFogColor;
  8146. bool useLitBase;
  8147. bool vertexLights;
  8148. String vertexShaderDefines;
  8149. String vertexShaderName;
  8150. };
  8151. class RenderSurface
  8152. {
  8153. // Methods:
  8154. void QueueUpdate();
  8155. // Properties:
  8156. /* readonly */
  8157. int height;
  8158. RenderSurface linkedDepthStencil;
  8159. RenderSurface linkedRenderTarget;
  8160. uint numViewports;
  8161. /* readonly */
  8162. Texture parentTexture;
  8163. RenderSurfaceUpdateMode updateMode;
  8164. /* readonly */
  8165. TextureUsage usage;
  8166. Array<Viewport> viewports;
  8167. /* readonly */
  8168. int width;
  8169. };
  8170. class RenderTargetInfo
  8171. {
  8172. // Properties:
  8173. bool cubemap;
  8174. bool enabled;
  8175. bool filtered;
  8176. uint format;
  8177. String name;
  8178. bool persistent;
  8179. bool sRGB;
  8180. Vector2 size;
  8181. RenderTargetSizeMode sizeMode;
  8182. String tag;
  8183. };
  8184. class Renderer
  8185. {
  8186. // Methods:
  8187. void DrawDebugGeometry(bool) const;
  8188. bool HasSubscribedToEvent(Object, const String&);
  8189. bool HasSubscribedToEvent(const String&);
  8190. void ReloadShaders() const;
  8191. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8192. void SetDefaultRenderPath(XMLFile);
  8193. void SetVSMShadowParameters(float, float);
  8194. // Properties:
  8195. /* readonly */
  8196. String category;
  8197. /* readonly */
  8198. Material defaultLightRamp;
  8199. /* readonly */
  8200. Material defaultLightSpot;
  8201. /* readonly */
  8202. Material defaultMaterial;
  8203. RenderPath defaultRenderPath;
  8204. Technique defaultTechnique;
  8205. /* readonly */
  8206. Zone defaultZone;
  8207. bool drawShadows;
  8208. bool dynamicInstancing;
  8209. bool hdrRendering;
  8210. int materialQuality;
  8211. int maxOccluderTriangles;
  8212. int maxShadowMaps;
  8213. int maxSortedInstances;
  8214. int minInstances;
  8215. float mobileNormalOffsetMul;
  8216. float mobileShadowBiasAdd;
  8217. float mobileShadowBiasMul;
  8218. /* readonly */
  8219. uint numBatches;
  8220. int numExtraInstancingBufferElements;
  8221. /* readonly */
  8222. Array<uint> numGeometries;
  8223. /* readonly */
  8224. Array<uint> numLights;
  8225. /* readonly */
  8226. Array<uint> numOccluders;
  8227. /* readonly */
  8228. uint numPrimitives;
  8229. /* readonly */
  8230. Array<uint> numShadowMaps;
  8231. uint numViewports;
  8232. /* readonly */
  8233. uint numViews;
  8234. float occluderSizeThreshold;
  8235. int occlusionBufferSize;
  8236. /* readonly */
  8237. int refs;
  8238. bool reuseShadowMaps;
  8239. int shadowMapSize;
  8240. ShadowQuality shadowQuality;
  8241. float shadowSoftness;
  8242. bool specularLighting;
  8243. int textureAnisotropy;
  8244. TextureFilterMode textureFilterMode;
  8245. int textureQuality;
  8246. bool threadedOcclusion;
  8247. /* readonly */
  8248. StringHash type;
  8249. /* readonly */
  8250. String typeName;
  8251. Array<Viewport> viewports;
  8252. Vector2 vsmShadowParameters;
  8253. /* readonly */
  8254. int weakRefs;
  8255. };
  8256. class Resource
  8257. {
  8258. // Methods:
  8259. bool HasSubscribedToEvent(Object, const String&);
  8260. bool HasSubscribedToEvent(const String&);
  8261. bool Load(File);
  8262. bool Load(VectorBuffer&);
  8263. bool Save(File) const;
  8264. bool Save(VectorBuffer&) const;
  8265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8266. // Properties:
  8267. /* readonly */
  8268. String category;
  8269. /* readonly */
  8270. uint memoryUse;
  8271. String name;
  8272. /* readonly */
  8273. int refs;
  8274. /* readonly */
  8275. StringHash type;
  8276. /* readonly */
  8277. String typeName;
  8278. /* readonly */
  8279. uint useTimer;
  8280. /* readonly */
  8281. int weakRefs;
  8282. };
  8283. class ResourceCache
  8284. {
  8285. // Methods:
  8286. bool AddManualResource(Resource);
  8287. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8288. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8289. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8290. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8291. bool Exists(const String&) const;
  8292. Resource GetExistingResource(StringHash, const String&);
  8293. Resource GetExistingResource(const String&, const String&);
  8294. File GetFile(const String&);
  8295. String GetPreferredResourceDir(const String&) const;
  8296. Resource GetResource(StringHash, const String&, bool = true);
  8297. Resource GetResource(const String&, const String&, bool = true);
  8298. String GetResourceFileName(const String&) const;
  8299. bool HasSubscribedToEvent(Object, const String&);
  8300. bool HasSubscribedToEvent(const String&);
  8301. void ReleaseAllResources(bool = false);
  8302. void ReleaseResource(const String&, const String&, bool = false);
  8303. void ReleaseResources(StringHash, bool = false);
  8304. void ReleaseResources(const String&, bool = false);
  8305. void ReleaseResources(const String&, const String&, bool = false);
  8306. bool ReloadResource(Resource);
  8307. void ReloadResourceWithDependencies(const String&);
  8308. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8309. void RemovePackageFile(const String&, bool = true, bool = false);
  8310. void RemoveResourceDir(const String&);
  8311. String SanitateResourceDirName(const String&) const;
  8312. String SanitateResourceName(const String&) const;
  8313. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8314. // Properties:
  8315. bool autoReloadResources;
  8316. /* readonly */
  8317. String category;
  8318. int finishBackgroundResourcesMs;
  8319. Array<uint64> memoryBudget;
  8320. /* readonly */
  8321. Array<uint64> memoryUse;
  8322. /* readonly */
  8323. uint numBackgroundLoadResources;
  8324. /* readonly */
  8325. Array<PackageFile> packageFiles;
  8326. /* readonly */
  8327. int refs;
  8328. /* readonly */
  8329. Array<String> resourceDirs;
  8330. bool returnFailedResources;
  8331. /* readonly */
  8332. bool seachPackagesFirst;
  8333. /* writeonly */
  8334. bool searchPackagesFirst;
  8335. /* readonly */
  8336. uint64 totalMemoryUse;
  8337. /* readonly */
  8338. StringHash type;
  8339. /* readonly */
  8340. String typeName;
  8341. /* readonly */
  8342. int weakRefs;
  8343. };
  8344. class ResourceRef
  8345. {
  8346. // Properties:
  8347. String name;
  8348. StringHash type;
  8349. };
  8350. class ResourceRefList
  8351. {
  8352. // Methods:
  8353. void Resize(uint);
  8354. // Properties:
  8355. /* readonly */
  8356. bool empty;
  8357. /* readonly */
  8358. uint length;
  8359. Array<String> names;
  8360. StringHash type;
  8361. };
  8362. class RibbonTrail
  8363. {
  8364. // Methods:
  8365. void ApplyAttributes();
  8366. void Commit();
  8367. void DrawDebugGeometry(DebugRenderer, bool);
  8368. Variant GetAttribute(const String&) const;
  8369. ValueAnimation GetAttributeAnimation(const String&) const;
  8370. float GetAttributeAnimationSpeed(const String&) const;
  8371. float GetAttributeAnimationTime(const String&) const;
  8372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8373. Variant GetAttributeDefault(const String&) const;
  8374. bool GetInterceptNetworkUpdate(const String&) const;
  8375. bool HasSubscribedToEvent(Object, const String&);
  8376. bool HasSubscribedToEvent(const String&);
  8377. bool IsInView(Camera) const;
  8378. bool Load(File, bool = false);
  8379. bool Load(VectorBuffer&, bool = false);
  8380. bool LoadJSON(const JSONValue&, bool = false);
  8381. bool LoadXML(const XMLElement&, bool = false);
  8382. void MarkNetworkUpdate() const;
  8383. void Remove();
  8384. void RemoveAttributeAnimation(const String&);
  8385. void RemoveInstanceDefault();
  8386. void RemoveObjectAnimation();
  8387. void ResetToDefault();
  8388. bool Save(File) const;
  8389. bool Save(VectorBuffer&) const;
  8390. bool SaveJSON(JSONValue&) const;
  8391. bool SaveXML(XMLElement&) const;
  8392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8393. void SetAnimationTime(float);
  8394. bool SetAttribute(const String&, const Variant&);
  8395. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8396. void SetAttributeAnimationSpeed(const String&, float);
  8397. void SetAttributeAnimationTime(const String&, float);
  8398. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8399. void SetInterceptNetworkUpdate(const String&, bool);
  8400. // Properties:
  8401. bool animationEnabled;
  8402. float animationLodBias;
  8403. /* readonly */
  8404. Array<Variant> attributeDefaults;
  8405. /* readonly */
  8406. Array<AttributeInfo> attributeInfos;
  8407. Array<Variant> attributes;
  8408. /* readonly */
  8409. BoundingBox boundingBox;
  8410. bool castShadows;
  8411. /* readonly */
  8412. String category;
  8413. float drawDistance;
  8414. bool emitting;
  8415. bool enabled;
  8416. /* readonly */
  8417. bool enabledEffective;
  8418. Color endColor;
  8419. float endScale;
  8420. /* readonly */
  8421. uint id;
  8422. /* readonly */
  8423. bool inView;
  8424. float lifetime;
  8425. uint lightMask;
  8426. float lodBias;
  8427. Material material;
  8428. uint maxLights;
  8429. /* readonly */
  8430. Node node;
  8431. /* readonly */
  8432. uint numAttributes;
  8433. ObjectAnimation objectAnimation;
  8434. bool occludee;
  8435. bool occluder;
  8436. /* readonly */
  8437. int refs;
  8438. float shadowDistance;
  8439. uint shadowMask;
  8440. bool sorted;
  8441. Color startColor;
  8442. float startScale;
  8443. uint tailColumn;
  8444. bool temporary;
  8445. TrailType trailType;
  8446. /* readonly */
  8447. StringHash type;
  8448. /* readonly */
  8449. String typeName;
  8450. bool updateInvisible;
  8451. float vertexDistance;
  8452. uint viewMask;
  8453. /* readonly */
  8454. int weakRefs;
  8455. float width;
  8456. /* readonly */
  8457. BoundingBox worldBoundingBox;
  8458. /* readonly */
  8459. Zone zone;
  8460. uint zoneMask;
  8461. };
  8462. class RigidBody
  8463. {
  8464. // Methods:
  8465. void Activate();
  8466. void ApplyAttributes();
  8467. void ApplyForce(const Vector3&);
  8468. void ApplyForce(const Vector3&, const Vector3&);
  8469. void ApplyImpulse(const Vector3&);
  8470. void ApplyImpulse(const Vector3&, const Vector3&);
  8471. void ApplyTorque(const Vector3&);
  8472. void ApplyTorqueImpulse(const Vector3&);
  8473. void DisableMassUpdate();
  8474. void DrawDebugGeometry(DebugRenderer, bool);
  8475. void EnableMassUpdate();
  8476. Variant GetAttribute(const String&) const;
  8477. ValueAnimation GetAttributeAnimation(const String&) const;
  8478. float GetAttributeAnimationSpeed(const String&) const;
  8479. float GetAttributeAnimationTime(const String&) const;
  8480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8481. Variant GetAttributeDefault(const String&) const;
  8482. bool GetInterceptNetworkUpdate(const String&) const;
  8483. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8484. bool HasSubscribedToEvent(Object, const String&);
  8485. bool HasSubscribedToEvent(const String&);
  8486. bool Load(File, bool = false);
  8487. bool Load(VectorBuffer&, bool = false);
  8488. bool LoadJSON(const JSONValue&, bool = false);
  8489. bool LoadXML(const XMLElement&, bool = false);
  8490. void MarkNetworkUpdate() const;
  8491. void ReAddBodyToWorld();
  8492. void Remove();
  8493. void RemoveAttributeAnimation(const String&);
  8494. void RemoveInstanceDefault();
  8495. void RemoveObjectAnimation();
  8496. void ResetForces();
  8497. void ResetToDefault();
  8498. bool Save(File) const;
  8499. bool Save(VectorBuffer&) const;
  8500. bool SaveJSON(JSONValue&) const;
  8501. bool SaveXML(XMLElement&) const;
  8502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8503. void SetAnimationTime(float);
  8504. bool SetAttribute(const String&, const Variant&);
  8505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8506. void SetAttributeAnimationSpeed(const String&, float);
  8507. void SetAttributeAnimationTime(const String&, float);
  8508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8509. void SetCollisionLayerAndMask(uint, uint);
  8510. void SetInterceptNetworkUpdate(const String&, bool);
  8511. void SetTransform(const Vector3&, const Quaternion&);
  8512. // Properties:
  8513. /* readonly */
  8514. bool active;
  8515. float angularDamping;
  8516. Vector3 angularFactor;
  8517. float angularRestThreshold;
  8518. Vector3 angularVelocity;
  8519. bool animationEnabled;
  8520. Vector3 anisotropicFriction;
  8521. /* readonly */
  8522. Array<Variant> attributeDefaults;
  8523. /* readonly */
  8524. Array<AttributeInfo> attributeInfos;
  8525. Array<Variant> attributes;
  8526. /* readonly */
  8527. String category;
  8528. float ccdMotionThreshold;
  8529. float ccdRadius;
  8530. /* readonly */
  8531. Vector3 centerOfMass;
  8532. /* readonly */
  8533. Array<RigidBody> collidingBodies;
  8534. CollisionEventMode collisionEventMode;
  8535. uint collisionLayer;
  8536. uint collisionMask;
  8537. float contactProcessingThreshold;
  8538. bool enabled;
  8539. /* readonly */
  8540. bool enabledEffective;
  8541. float friction;
  8542. Vector3 gravityOverride;
  8543. /* readonly */
  8544. uint id;
  8545. bool kinematic;
  8546. float linearDamping;
  8547. Vector3 linearFactor;
  8548. float linearRestThreshold;
  8549. Vector3 linearVelocity;
  8550. float mass;
  8551. /* readonly */
  8552. Node node;
  8553. /* readonly */
  8554. uint numAttributes;
  8555. ObjectAnimation objectAnimation;
  8556. Vector3 position;
  8557. /* readonly */
  8558. int refs;
  8559. float restitution;
  8560. float rollingFriction;
  8561. Quaternion rotation;
  8562. bool temporary;
  8563. bool trigger;
  8564. /* readonly */
  8565. StringHash type;
  8566. /* readonly */
  8567. String typeName;
  8568. bool useGravity;
  8569. /* readonly */
  8570. int weakRefs;
  8571. };
  8572. class RigidBody2D
  8573. {
  8574. // Methods:
  8575. void ApplyAngularImpulse(float, bool);
  8576. void ApplyAttributes();
  8577. void ApplyForce(const Vector2&, const Vector2&, bool);
  8578. void ApplyForceToCenter(const Vector2&, bool);
  8579. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8580. void ApplyTorque(float, bool);
  8581. void DrawDebugGeometry(DebugRenderer, bool);
  8582. Variant GetAttribute(const String&) const;
  8583. ValueAnimation GetAttributeAnimation(const String&) const;
  8584. float GetAttributeAnimationSpeed(const String&) const;
  8585. float GetAttributeAnimationTime(const String&) const;
  8586. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8587. Variant GetAttributeDefault(const String&) const;
  8588. bool GetInterceptNetworkUpdate(const String&) const;
  8589. bool HasSubscribedToEvent(Object, const String&);
  8590. bool HasSubscribedToEvent(const String&);
  8591. bool Load(File, bool = false);
  8592. bool Load(VectorBuffer&, bool = false);
  8593. bool LoadJSON(const JSONValue&, bool = false);
  8594. bool LoadXML(const XMLElement&, bool = false);
  8595. void MarkNetworkUpdate() const;
  8596. void Remove();
  8597. void RemoveAttributeAnimation(const String&);
  8598. void RemoveInstanceDefault();
  8599. void RemoveObjectAnimation();
  8600. void ResetToDefault();
  8601. bool Save(File) const;
  8602. bool Save(VectorBuffer&) const;
  8603. bool SaveJSON(JSONValue&) const;
  8604. bool SaveXML(XMLElement&) const;
  8605. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8606. void SetAnimationTime(float);
  8607. bool SetAttribute(const String&, const Variant&);
  8608. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8609. void SetAttributeAnimationSpeed(const String&, float);
  8610. void SetAttributeAnimationTime(const String&, float);
  8611. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8612. void SetInterceptNetworkUpdate(const String&, bool);
  8613. // Properties:
  8614. bool allowSleep;
  8615. float angularDamping;
  8616. bool animationEnabled;
  8617. /* readonly */
  8618. Array<Variant> attributeDefaults;
  8619. /* readonly */
  8620. Array<AttributeInfo> attributeInfos;
  8621. Array<Variant> attributes;
  8622. bool awake;
  8623. BodyType2D bodyType;
  8624. bool bullet;
  8625. /* readonly */
  8626. String category;
  8627. bool enabled;
  8628. /* readonly */
  8629. bool enabledEffective;
  8630. bool fixedRotation;
  8631. float gravityScale;
  8632. /* readonly */
  8633. uint id;
  8634. float inertia;
  8635. float linearDamping;
  8636. Vector2 linearVelocity;
  8637. float mass;
  8638. Vector2 massCenter;
  8639. /* readonly */
  8640. Node node;
  8641. /* readonly */
  8642. uint numAttributes;
  8643. ObjectAnimation objectAnimation;
  8644. /* readonly */
  8645. int refs;
  8646. bool temporary;
  8647. /* readonly */
  8648. StringHash type;
  8649. /* readonly */
  8650. String typeName;
  8651. bool useFixtureMass;
  8652. /* readonly */
  8653. int weakRefs;
  8654. };
  8655. class Scene
  8656. {
  8657. // Methods:
  8658. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8659. void AddRequiredPackageFile(PackageFile);
  8660. void AddTag(const String&);
  8661. void AddTags(const String&, int8 = ';');
  8662. void ApplyAttributes();
  8663. void Clear(bool = true, bool = true);
  8664. void ClearRequiredPackageFiles();
  8665. Component CloneComponent(Component, CreateMode, uint = 0);
  8666. Component CloneComponent(Component, uint = 0);
  8667. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8668. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8669. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8670. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8671. Variant GetAttribute(const String&) const;
  8672. ValueAnimation GetAttributeAnimation(const String&) const;
  8673. float GetAttributeAnimationSpeed(const String&) const;
  8674. float GetAttributeAnimationTime(const String&) const;
  8675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8676. Variant GetAttributeDefault(const String&) const;
  8677. Node GetChild(const String&, bool = false) const;
  8678. Array<Node> GetChildren(bool = false) const;
  8679. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8680. Array<Node> GetChildrenWithScript(bool = false) const;
  8681. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8682. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8683. Component GetComponent(const String&, bool = false) const;
  8684. Component GetComponent(uint) const;
  8685. Array<Component> GetComponents() const;
  8686. Array<Component> GetComponents(const String&, bool = false) const;
  8687. bool GetInterceptNetworkUpdate(const String&) const;
  8688. Node GetNode(uint) const;
  8689. Array<Node> GetNodesWithTag(const String&) const;
  8690. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8691. Component GetParentComponent(const String&, bool = false) const;
  8692. ScriptObject GetScriptObject() const;
  8693. ScriptObject GetScriptObject(const String&) const;
  8694. bool HasComponent(const String&) const;
  8695. bool HasSubscribedToEvent(Object, const String&);
  8696. bool HasSubscribedToEvent(const String&);
  8697. bool HasTag(const String&);
  8698. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8699. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8700. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8701. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8702. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8703. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8704. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8705. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8706. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8707. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8708. bool Load(File, bool = false);
  8709. bool Load(VectorBuffer&, bool = false);
  8710. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8711. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8712. bool LoadJSON(File);
  8713. bool LoadJSON(VectorBuffer&);
  8714. bool LoadJSON(const JSONValue&, bool = false);
  8715. bool LoadXML(File);
  8716. bool LoadXML(VectorBuffer&);
  8717. bool LoadXML(const XMLElement&, bool = false);
  8718. Vector3 LocalToWorld(const Vector3&) const;
  8719. Vector3 LocalToWorld(const Vector4&) const;
  8720. Vector2 LocalToWorld2D(const Vector2&) const;
  8721. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8722. void MarkNetworkUpdate() const;
  8723. void Pitch(float, TransformSpace = TS_LOCAL);
  8724. void RegisterVar(const String&);
  8725. void Remove();
  8726. void RemoveAllChildren();
  8727. void RemoveAllComponents();
  8728. void RemoveAllTags();
  8729. void RemoveAttributeAnimation(const String&);
  8730. void RemoveChild(Node);
  8731. void RemoveChildren(bool, bool, bool);
  8732. void RemoveComponent(Component);
  8733. void RemoveComponent(const String&);
  8734. void RemoveComponents(bool, bool);
  8735. void RemoveComponents(const String&);
  8736. void RemoveInstanceDefault();
  8737. void RemoveObjectAnimation();
  8738. bool RemoveTag(const String&);
  8739. void ReorderComponent(Component, uint);
  8740. void ResetToDefault();
  8741. void Roll(float, TransformSpace = TS_LOCAL);
  8742. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8743. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8744. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8745. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8746. bool Save(File) const;
  8747. bool Save(VectorBuffer&) const;
  8748. bool SaveJSON(File, const String& = "\t");
  8749. bool SaveJSON(JSONValue&) const;
  8750. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8751. bool SaveXML(File, const String& = "\t");
  8752. bool SaveXML(VectorBuffer&, const String& = "\t");
  8753. bool SaveXML(XMLElement&) const;
  8754. void Scale(const Vector3&);
  8755. void Scale(float);
  8756. void Scale2D(const Vector2&);
  8757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8758. void SetAnimationTime(float);
  8759. bool SetAttribute(const String&, const Variant&);
  8760. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8761. void SetAttributeAnimationSpeed(const String&, float);
  8762. void SetAttributeAnimationTime(const String&, float);
  8763. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8764. void SetInterceptNetworkUpdate(const String&, bool);
  8765. void SetPosition2D(float, float);
  8766. void SetScale(float);
  8767. void SetScale2D(float, float);
  8768. void SetTransform(const Vector3&, const Quaternion&);
  8769. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8770. void SetTransform(const Vector3&, const Quaternion&, float);
  8771. void SetTransform2D(const Vector2&, float);
  8772. void SetTransform2D(const Vector2&, float, const Vector2&);
  8773. void SetTransform2D(const Vector2&, float, float);
  8774. void SetWorldTransform(const Vector3&, const Quaternion&);
  8775. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8776. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8777. void SetWorldTransform2D(const Vector2&, float);
  8778. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8779. void SetWorldTransform2D(const Vector2&, float, float);
  8780. void StopAsyncLoading();
  8781. const String& GetVarName(StringHash) const;
  8782. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8783. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8784. void UnregisterAllVars(const String&);
  8785. void UnregisterVar(const String&);
  8786. void Update(float);
  8787. Vector3 WorldToLocal(const Vector3&) const;
  8788. Vector3 WorldToLocal(const Vector4&) const;
  8789. Vector2 WorldToLocal2D(const Vector2&) const;
  8790. void Yaw(float, TransformSpace = TS_LOCAL);
  8791. // Properties:
  8792. bool animationEnabled;
  8793. /* readonly */
  8794. LoadMode asyncLoadMode;
  8795. /* readonly */
  8796. bool asyncLoading;
  8797. int asyncLoadingMs;
  8798. /* readonly */
  8799. float asyncProgress;
  8800. /* readonly */
  8801. Array<Variant> attributeDefaults;
  8802. /* readonly */
  8803. Array<AttributeInfo> attributeInfos;
  8804. Array<Variant> attributes;
  8805. /* readonly */
  8806. String category;
  8807. /* readonly */
  8808. uint checksum;
  8809. /* readonly */
  8810. Array<Node> children;
  8811. /* readonly */
  8812. Array<Component> components;
  8813. /* readonly */
  8814. DebugRenderer debugRenderer;
  8815. Vector3 direction;
  8816. float elapsedTime;
  8817. /* readonly */
  8818. String fileName;
  8819. uint id;
  8820. String name;
  8821. /* readonly */
  8822. uint numAllChildren;
  8823. /* readonly */
  8824. uint numAttributes;
  8825. /* readonly */
  8826. uint numChildren;
  8827. /* readonly */
  8828. uint numComponents;
  8829. ObjectAnimation objectAnimation;
  8830. /* readonly */
  8831. Octree octree;
  8832. Node parent;
  8833. /* readonly */
  8834. PhysicsWorld physicsWorld;
  8835. /* readonly */
  8836. PhysicsWorld2D physicsWorld2D;
  8837. Vector3 position;
  8838. Vector2 position2D;
  8839. /* readonly */
  8840. int refs;
  8841. /* readonly */
  8842. Array<PackageFile> requiredPackageFiles;
  8843. /* readonly */
  8844. Vector3 right;
  8845. Quaternion rotation;
  8846. float rotation2D;
  8847. Vector3 scale;
  8848. Vector2 scale2D;
  8849. /* readonly */
  8850. ScriptObject scriptObject;
  8851. float smoothingConstant;
  8852. float snapThreshold;
  8853. /* readonly */
  8854. Array<String> tags;
  8855. bool temporary;
  8856. float timeScale;
  8857. /* readonly */
  8858. Matrix3x4 transform;
  8859. /* readonly */
  8860. StringHash type;
  8861. /* readonly */
  8862. String typeName;
  8863. /* readonly */
  8864. Vector3 up;
  8865. bool updateEnabled;
  8866. /* readonly */
  8867. VariantMap vars;
  8868. /* readonly */
  8869. int weakRefs;
  8870. Vector3 worldDirection;
  8871. Vector3 worldPosition;
  8872. Vector2 worldPosition2D;
  8873. /* readonly */
  8874. Vector3 worldRight;
  8875. Quaternion worldRotation;
  8876. float worldRotation2D;
  8877. Vector3 worldScale;
  8878. Vector2 worldScale2D;
  8879. /* readonly */
  8880. Matrix3x4 worldTransform;
  8881. /* readonly */
  8882. Vector3 worldUp;
  8883. };
  8884. class Script
  8885. {
  8886. // Methods:
  8887. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8888. bool Execute(const String&);
  8889. bool HasSubscribedToEvent(Object, const String&);
  8890. bool HasSubscribedToEvent(const String&);
  8891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8892. // Properties:
  8893. /* readonly */
  8894. String category;
  8895. Scene defaultScene;
  8896. ScriptFile defaultScriptFile;
  8897. bool executeConsoleCommands;
  8898. /* readonly */
  8899. int refs;
  8900. /* readonly */
  8901. StringHash type;
  8902. /* readonly */
  8903. String typeName;
  8904. /* readonly */
  8905. int weakRefs;
  8906. };
  8907. class ScriptFile
  8908. {
  8909. // Methods:
  8910. void ClearDelayedExecute(const String& = String ( ));
  8911. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8912. bool Execute(const String&, const Array<Variant> = null);
  8913. bool HasSubscribedToEvent(Object, const String&);
  8914. bool HasSubscribedToEvent(const String&);
  8915. bool Load(File);
  8916. bool Load(VectorBuffer&);
  8917. bool Save(File) const;
  8918. bool Save(VectorBuffer&) const;
  8919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8920. // Properties:
  8921. /* readonly */
  8922. String category;
  8923. /* readonly */
  8924. bool compiled;
  8925. /* readonly */
  8926. uint memoryUse;
  8927. String name;
  8928. /* readonly */
  8929. int refs;
  8930. /* readonly */
  8931. StringHash type;
  8932. /* readonly */
  8933. String typeName;
  8934. /* readonly */
  8935. uint useTimer;
  8936. /* readonly */
  8937. int weakRefs;
  8938. };
  8939. class ScriptInstance
  8940. {
  8941. // Methods:
  8942. void ApplyAttributes();
  8943. void ClearDelayedExecute(const String& = String ( ));
  8944. bool CreateObject(ScriptFile, const String&);
  8945. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8946. void DrawDebugGeometry(DebugRenderer, bool);
  8947. bool Execute(const String&, const Array<Variant> = null);
  8948. Variant GetAttribute(const String&) const;
  8949. ValueAnimation GetAttributeAnimation(const String&) const;
  8950. float GetAttributeAnimationSpeed(const String&) const;
  8951. float GetAttributeAnimationTime(const String&) const;
  8952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8953. Variant GetAttributeDefault(const String&) const;
  8954. bool GetInterceptNetworkUpdate(const String&) const;
  8955. bool HasMethod(const String&) const;
  8956. bool HasSubscribedToEvent(Object, const String&);
  8957. bool HasSubscribedToEvent(const String&);
  8958. bool IsA(const String&) const;
  8959. bool Load(File, bool = false);
  8960. bool Load(VectorBuffer&, bool = false);
  8961. bool LoadJSON(const JSONValue&, bool = false);
  8962. bool LoadXML(const XMLElement&, bool = false);
  8963. void MarkNetworkUpdate() const;
  8964. void Remove();
  8965. void RemoveAttributeAnimation(const String&);
  8966. void RemoveInstanceDefault();
  8967. void RemoveObjectAnimation();
  8968. void ResetToDefault();
  8969. bool Save(File) const;
  8970. bool Save(VectorBuffer&) const;
  8971. bool SaveJSON(JSONValue&) const;
  8972. bool SaveXML(XMLElement&) const;
  8973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8974. void SetAnimationTime(float);
  8975. bool SetAttribute(const String&, const Variant&);
  8976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8977. void SetAttributeAnimationSpeed(const String&, float);
  8978. void SetAttributeAnimationTime(const String&, float);
  8979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8980. void SetInterceptNetworkUpdate(const String&, bool);
  8981. // Properties:
  8982. bool animationEnabled;
  8983. /* readonly */
  8984. Array<Variant> attributeDefaults;
  8985. /* readonly */
  8986. Array<AttributeInfo> attributeInfos;
  8987. Array<Variant> attributes;
  8988. /* readonly */
  8989. String category;
  8990. String className;
  8991. bool enabled;
  8992. /* readonly */
  8993. bool enabledEffective;
  8994. /* readonly */
  8995. uint id;
  8996. /* readonly */
  8997. Node node;
  8998. /* readonly */
  8999. uint numAttributes;
  9000. ObjectAnimation objectAnimation;
  9001. /* readonly */
  9002. int refs;
  9003. ScriptFile scriptFile;
  9004. /* readonly */
  9005. ScriptObject scriptObject;
  9006. bool temporary;
  9007. /* readonly */
  9008. StringHash type;
  9009. /* readonly */
  9010. String typeName;
  9011. /* readonly */
  9012. int weakRefs;
  9013. };
  9014. class ScriptObject
  9015. {
  9016. };
  9017. class ScrollBar
  9018. {
  9019. // Methods:
  9020. void AddChild(UIElement);
  9021. void AddTag(const String&);
  9022. void AddTags(const String&, int8 = ';');
  9023. void ApplyAttributes();
  9024. void BringToFront();
  9025. void ChangeValue(float);
  9026. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9027. void DisableLayoutUpdate();
  9028. IntVector2 ElementToScreen(const IntVector2&);
  9029. void EnableLayoutUpdate();
  9030. uint FindChild(UIElement) const;
  9031. Variant GetAttribute(const String&) const;
  9032. ValueAnimation GetAttributeAnimation(const String&) const;
  9033. float GetAttributeAnimationSpeed(const String&) const;
  9034. float GetAttributeAnimationTime(const String&) const;
  9035. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9036. Variant GetAttributeDefault(const String&) const;
  9037. UIElement GetChild(const String&, bool = false) const;
  9038. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9039. Array<UIElement> GetChildren(bool = false) const;
  9040. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9041. UIElement GetElementEventSender() const;
  9042. bool GetInterceptNetworkUpdate(const String&) const;
  9043. uint GetNumChildren(bool) const;
  9044. bool HasSubscribedToEvent(Object, const String&);
  9045. bool HasSubscribedToEvent(const String&);
  9046. bool HasTag(const String&) const;
  9047. void InsertChild(uint, UIElement);
  9048. bool IsInside(IntVector2, bool);
  9049. bool IsInsideCombined(IntVector2, bool);
  9050. bool Load(File, bool = false);
  9051. bool Load(VectorBuffer&, bool = false);
  9052. bool LoadChildXML(XMLFile, XMLFile = null);
  9053. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9054. bool LoadJSON(const JSONValue&, bool = false);
  9055. bool LoadXML(File);
  9056. bool LoadXML(VectorBuffer&);
  9057. bool LoadXML(XMLFile, XMLFile);
  9058. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9059. bool LoadXML(const XMLElement&, bool = false);
  9060. void MarkNetworkUpdate() const;
  9061. void Remove();
  9062. void RemoveAllChildren();
  9063. void RemoveAllTags();
  9064. void RemoveAttributeAnimation(const String&);
  9065. void RemoveChild(UIElement, uint = 0);
  9066. void RemoveChild(uint);
  9067. void RemoveInstanceDefault();
  9068. void RemoveObjectAnimation();
  9069. bool RemoveTag(const String&);
  9070. void ResetDeepEnabled();
  9071. void ResetToDefault();
  9072. bool Save(File) const;
  9073. bool Save(VectorBuffer&) const;
  9074. bool SaveJSON(JSONValue&) const;
  9075. bool SaveXML(File, const String& = "\t");
  9076. bool SaveXML(VectorBuffer&, const String& = "\t");
  9077. bool SaveXML(XMLElement&) const;
  9078. IntVector2 ScreenToElement(const IntVector2&);
  9079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9080. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9081. void SetAnimationTime(float);
  9082. bool SetAttribute(const String&, const Variant&);
  9083. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9084. void SetAttributeAnimationSpeed(const String&, float);
  9085. void SetAttributeAnimationTime(const String&, float);
  9086. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9087. void SetDeepEnabled(bool);
  9088. void SetEnabledRecursive(bool);
  9089. void SetFixedHeight(int);
  9090. void SetFixedSize(int, int);
  9091. void SetFixedWidth(int);
  9092. void SetInterceptNetworkUpdate(const String&, bool);
  9093. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9094. void SetMaxSize(int, int);
  9095. void SetMinSize(int, int);
  9096. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9097. void SetPosition(int, int);
  9098. void SetSize(int, int);
  9099. bool SetStyle(const String&, XMLFile = null);
  9100. bool SetStyle(const XMLElement&);
  9101. bool SetStyleAuto(XMLFile = null);
  9102. void StepBack();
  9103. void StepForward();
  9104. void UpdateLayout();
  9105. const Variant& GetVar(const StringHash&);
  9106. // Properties:
  9107. bool animationEnabled;
  9108. /* readonly */
  9109. Array<Variant> attributeDefaults;
  9110. /* readonly */
  9111. Array<AttributeInfo> attributeInfos;
  9112. Array<Variant> attributes;
  9113. /* readonly */
  9114. Button backButton;
  9115. bool bringToBack;
  9116. bool bringToFront;
  9117. /* readonly */
  9118. String category;
  9119. /* readonly */
  9120. IntVector2 childOffset;
  9121. /* readonly */
  9122. Array<UIElement> children;
  9123. IntRect clipBorder;
  9124. bool clipChildren;
  9125. /* writeonly */
  9126. Color color;
  9127. /* readonly */
  9128. bool colorGradient;
  9129. Array<Color> colors;
  9130. /* readonly */
  9131. IntRect combinedScreenRect;
  9132. XMLFile defaultStyle;
  9133. /* readonly */
  9134. float derivedOpacity;
  9135. /* readonly */
  9136. uint dragButtonCombo;
  9137. /* readonly */
  9138. int dragButtonCount;
  9139. uint dragDropMode;
  9140. bool editable;
  9141. /* readonly */
  9142. float effectiveScrollStep;
  9143. bool elementEventSender;
  9144. bool enabled;
  9145. /* readonly */
  9146. bool enabledSelf;
  9147. /* readonly */
  9148. bool fixedHeight;
  9149. /* readonly */
  9150. bool fixedSize;
  9151. /* readonly */
  9152. bool fixedWidth;
  9153. bool focus;
  9154. FocusMode focusMode;
  9155. /* readonly */
  9156. Button forwardButton;
  9157. int height;
  9158. HorizontalAlignment horizontalAlignment;
  9159. /* readonly */
  9160. bool hovering;
  9161. int indent;
  9162. int indentSpacing;
  9163. /* readonly */
  9164. int indentWidth;
  9165. bool internal;
  9166. IntRect layoutBorder;
  9167. Vector2 layoutFlexScale;
  9168. LayoutMode layoutMode;
  9169. int layoutSpacing;
  9170. int maxHeight;
  9171. IntVector2 maxSize;
  9172. int maxWidth;
  9173. int minHeight;
  9174. IntVector2 minSize;
  9175. int minWidth;
  9176. String name;
  9177. /* readonly */
  9178. uint numAllChildren;
  9179. /* readonly */
  9180. uint numAttributes;
  9181. /* readonly */
  9182. uint numChildren;
  9183. ObjectAnimation objectAnimation;
  9184. float opacity;
  9185. Orientation orientation;
  9186. UIElement parent;
  9187. IntVector2 position;
  9188. int priority;
  9189. float range;
  9190. /* readonly */
  9191. int refs;
  9192. /* readonly */
  9193. UIElement root;
  9194. /* readonly */
  9195. IntVector2 screenPosition;
  9196. float scrollStep;
  9197. bool selected;
  9198. IntVector2 size;
  9199. /* readonly */
  9200. Slider slider;
  9201. bool sortChildren;
  9202. float stepFactor;
  9203. String style;
  9204. /* readonly */
  9205. Array<String> tags;
  9206. bool temporary;
  9207. TraversalMode traversalMode;
  9208. /* readonly */
  9209. StringHash type;
  9210. /* readonly */
  9211. String typeName;
  9212. bool useDerivedOpacity;
  9213. float value;
  9214. /* readonly */
  9215. VariantMap vars;
  9216. VerticalAlignment verticalAlignment;
  9217. bool visible;
  9218. /* readonly */
  9219. bool visibleEffective;
  9220. /* readonly */
  9221. int weakRefs;
  9222. int width;
  9223. };
  9224. class ScrollView
  9225. {
  9226. // Methods:
  9227. void AddChild(UIElement);
  9228. void AddTag(const String&);
  9229. void AddTags(const String&, int8 = ';');
  9230. void ApplyAttributes();
  9231. void BringToFront();
  9232. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9233. void DisableLayoutUpdate();
  9234. IntVector2 ElementToScreen(const IntVector2&);
  9235. void EnableLayoutUpdate();
  9236. uint FindChild(UIElement) const;
  9237. Variant GetAttribute(const String&) const;
  9238. ValueAnimation GetAttributeAnimation(const String&) const;
  9239. float GetAttributeAnimationSpeed(const String&) const;
  9240. float GetAttributeAnimationTime(const String&) const;
  9241. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9242. Variant GetAttributeDefault(const String&) const;
  9243. UIElement GetChild(const String&, bool = false) const;
  9244. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9245. Array<UIElement> GetChildren(bool = false) const;
  9246. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9247. UIElement GetElementEventSender() const;
  9248. bool GetInterceptNetworkUpdate(const String&) const;
  9249. uint GetNumChildren(bool) const;
  9250. bool HasSubscribedToEvent(Object, const String&);
  9251. bool HasSubscribedToEvent(const String&);
  9252. bool HasTag(const String&) const;
  9253. void InsertChild(uint, UIElement);
  9254. bool IsInside(IntVector2, bool);
  9255. bool IsInsideCombined(IntVector2, bool);
  9256. bool Load(File, bool = false);
  9257. bool Load(VectorBuffer&, bool = false);
  9258. bool LoadChildXML(XMLFile, XMLFile = null);
  9259. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9260. bool LoadJSON(const JSONValue&, bool = false);
  9261. bool LoadXML(File);
  9262. bool LoadXML(VectorBuffer&);
  9263. bool LoadXML(XMLFile, XMLFile);
  9264. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9265. bool LoadXML(const XMLElement&, bool = false);
  9266. void MarkNetworkUpdate() const;
  9267. void Remove();
  9268. void RemoveAllChildren();
  9269. void RemoveAllTags();
  9270. void RemoveAttributeAnimation(const String&);
  9271. void RemoveChild(UIElement, uint = 0);
  9272. void RemoveChild(uint);
  9273. void RemoveInstanceDefault();
  9274. void RemoveObjectAnimation();
  9275. bool RemoveTag(const String&);
  9276. void ResetDeepEnabled();
  9277. void ResetToDefault();
  9278. bool Save(File) const;
  9279. bool Save(VectorBuffer&) const;
  9280. bool SaveJSON(JSONValue&) const;
  9281. bool SaveXML(File, const String& = "\t");
  9282. bool SaveXML(VectorBuffer&, const String& = "\t");
  9283. bool SaveXML(XMLElement&) const;
  9284. IntVector2 ScreenToElement(const IntVector2&);
  9285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9286. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9287. void SetAnimationTime(float);
  9288. bool SetAttribute(const String&, const Variant&);
  9289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9290. void SetAttributeAnimationSpeed(const String&, float);
  9291. void SetAttributeAnimationTime(const String&, float);
  9292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9293. void SetDeepEnabled(bool);
  9294. void SetEnabledRecursive(bool);
  9295. void SetFixedHeight(int);
  9296. void SetFixedSize(int, int);
  9297. void SetFixedWidth(int);
  9298. void SetInterceptNetworkUpdate(const String&, bool);
  9299. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9300. void SetMaxSize(int, int);
  9301. void SetMinSize(int, int);
  9302. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9303. void SetPosition(int, int);
  9304. void SetScrollBarsVisible(bool, bool);
  9305. void SetSize(int, int);
  9306. bool SetStyle(const String&, XMLFile = null);
  9307. bool SetStyle(const XMLElement&);
  9308. bool SetStyleAuto(XMLFile = null);
  9309. void SetViewPosition(int, int);
  9310. void UpdateLayout();
  9311. const Variant& GetVar(const StringHash&);
  9312. // Properties:
  9313. bool animationEnabled;
  9314. /* readonly */
  9315. Array<Variant> attributeDefaults;
  9316. /* readonly */
  9317. Array<AttributeInfo> attributeInfos;
  9318. Array<Variant> attributes;
  9319. bool autoDisableChildren;
  9320. float autoDisableThreshold;
  9321. bool bringToBack;
  9322. bool bringToFront;
  9323. /* readonly */
  9324. String category;
  9325. /* readonly */
  9326. IntVector2 childOffset;
  9327. /* readonly */
  9328. Array<UIElement> children;
  9329. IntRect clipBorder;
  9330. bool clipChildren;
  9331. /* writeonly */
  9332. Color color;
  9333. /* readonly */
  9334. bool colorGradient;
  9335. Array<Color> colors;
  9336. /* readonly */
  9337. IntRect combinedScreenRect;
  9338. UIElement contentElement;
  9339. XMLFile defaultStyle;
  9340. /* readonly */
  9341. float derivedOpacity;
  9342. /* readonly */
  9343. uint dragButtonCombo;
  9344. /* readonly */
  9345. int dragButtonCount;
  9346. uint dragDropMode;
  9347. bool editable;
  9348. bool elementEventSender;
  9349. bool enabled;
  9350. /* readonly */
  9351. bool enabledSelf;
  9352. /* readonly */
  9353. bool fixedHeight;
  9354. /* readonly */
  9355. bool fixedSize;
  9356. /* readonly */
  9357. bool fixedWidth;
  9358. bool focus;
  9359. FocusMode focusMode;
  9360. int height;
  9361. HorizontalAlignment horizontalAlignment;
  9362. /* readonly */
  9363. ScrollBar horizontalScrollBar;
  9364. /* readonly */
  9365. bool hovering;
  9366. int indent;
  9367. int indentSpacing;
  9368. /* readonly */
  9369. int indentWidth;
  9370. bool internal;
  9371. IntRect layoutBorder;
  9372. Vector2 layoutFlexScale;
  9373. LayoutMode layoutMode;
  9374. int layoutSpacing;
  9375. int maxHeight;
  9376. IntVector2 maxSize;
  9377. int maxWidth;
  9378. int minHeight;
  9379. IntVector2 minSize;
  9380. int minWidth;
  9381. String name;
  9382. /* readonly */
  9383. uint numAllChildren;
  9384. /* readonly */
  9385. uint numAttributes;
  9386. /* readonly */
  9387. uint numChildren;
  9388. ObjectAnimation objectAnimation;
  9389. float opacity;
  9390. float pageStep;
  9391. UIElement parent;
  9392. IntVector2 position;
  9393. int priority;
  9394. /* readonly */
  9395. int refs;
  9396. /* readonly */
  9397. UIElement root;
  9398. /* readonly */
  9399. IntVector2 screenPosition;
  9400. bool scrollBarsAutoVisible;
  9401. float scrollDeceleration;
  9402. /* readonly */
  9403. BorderImage scrollPanel;
  9404. float scrollSnapEpsilon;
  9405. float scrollStep;
  9406. bool selected;
  9407. IntVector2 size;
  9408. bool sortChildren;
  9409. String style;
  9410. /* readonly */
  9411. Array<String> tags;
  9412. bool temporary;
  9413. TraversalMode traversalMode;
  9414. /* readonly */
  9415. StringHash type;
  9416. /* readonly */
  9417. String typeName;
  9418. bool useDerivedOpacity;
  9419. /* readonly */
  9420. VariantMap vars;
  9421. VerticalAlignment verticalAlignment;
  9422. /* readonly */
  9423. ScrollBar verticalScrollBar;
  9424. IntVector2 viewPosition;
  9425. bool visible;
  9426. /* readonly */
  9427. bool visibleEffective;
  9428. /* readonly */
  9429. int weakRefs;
  9430. int width;
  9431. };
  9432. class Serializable
  9433. {
  9434. // Methods:
  9435. void ApplyAttributes();
  9436. Variant GetAttribute(const String&) const;
  9437. Variant GetAttributeDefault(const String&) const;
  9438. bool GetInterceptNetworkUpdate(const String&) const;
  9439. bool HasSubscribedToEvent(Object, const String&);
  9440. bool HasSubscribedToEvent(const String&);
  9441. bool Load(File, bool = false);
  9442. bool Load(VectorBuffer&, bool = false);
  9443. bool LoadJSON(const JSONValue&, bool = false);
  9444. bool LoadXML(const XMLElement&, bool = false);
  9445. void MarkNetworkUpdate() const;
  9446. void RemoveInstanceDefault();
  9447. void ResetToDefault();
  9448. bool Save(File) const;
  9449. bool Save(VectorBuffer&) const;
  9450. bool SaveJSON(JSONValue&) const;
  9451. bool SaveXML(XMLElement&) const;
  9452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9453. bool SetAttribute(const String&, const Variant&);
  9454. void SetInterceptNetworkUpdate(const String&, bool);
  9455. // Properties:
  9456. /* readonly */
  9457. Array<Variant> attributeDefaults;
  9458. /* readonly */
  9459. Array<AttributeInfo> attributeInfos;
  9460. Array<Variant> attributes;
  9461. /* readonly */
  9462. String category;
  9463. /* readonly */
  9464. uint numAttributes;
  9465. /* readonly */
  9466. int refs;
  9467. bool temporary;
  9468. /* readonly */
  9469. StringHash type;
  9470. /* readonly */
  9471. String typeName;
  9472. /* readonly */
  9473. int weakRefs;
  9474. };
  9475. class Serializer
  9476. {
  9477. // Methods:
  9478. uint Write(Array<uint8>);
  9479. bool WriteBool(bool);
  9480. bool WriteBoundingBox(const BoundingBox&);
  9481. bool WriteByte(int8);
  9482. bool WriteColor(const Color&);
  9483. bool WriteDouble(double);
  9484. bool WriteFileID(const String&);
  9485. bool WriteFloat(float);
  9486. bool WriteInt(int);
  9487. bool WriteInt64(int64);
  9488. bool WriteIntRect(const IntRect&);
  9489. bool WriteIntVector2(const IntVector2&);
  9490. bool WriteLine(const String&);
  9491. bool WriteMatrix3(const Matrix3&);
  9492. bool WriteMatrix3x4(const Matrix3x4&);
  9493. bool WriteMatrix4(const Matrix4&);
  9494. bool WriteNetID(uint);
  9495. bool WritePackedQuaternion(const Quaternion&);
  9496. bool WritePackedVector3(const Vector3&, float);
  9497. bool WriteQuaternion(const Quaternion&);
  9498. bool WriteShort(int16);
  9499. bool WriteString(const String&);
  9500. bool WriteStringHash(const StringHash&);
  9501. bool WriteUByte(uint8);
  9502. bool WriteUInt(uint);
  9503. bool WriteUInt64(uint64);
  9504. bool WriteUShort(uint16);
  9505. bool WriteVLE(uint);
  9506. bool WriteVariant(const Variant&);
  9507. bool WriteVariantMap(const VariantMap&);
  9508. bool WriteVector2(const Vector2&);
  9509. bool WriteVector3(const Vector3&);
  9510. bool WriteVector4(const Vector4&);
  9511. bool WriteVectorBuffer(const VectorBuffer&);
  9512. };
  9513. class Skeleton
  9514. {
  9515. // Methods:
  9516. Bone GetBone(const String&) const;
  9517. void Reset();
  9518. // Properties:
  9519. /* readonly */
  9520. Array<Bone> bones;
  9521. /* readonly */
  9522. uint numBones;
  9523. /* readonly */
  9524. Bone rootBone;
  9525. };
  9526. class Skybox
  9527. {
  9528. // Methods:
  9529. void ApplyAttributes();
  9530. void ApplyMaterialList(const String& = String ( ));
  9531. void DrawDebugGeometry(DebugRenderer, bool);
  9532. Variant GetAttribute(const String&) const;
  9533. ValueAnimation GetAttributeAnimation(const String&) const;
  9534. float GetAttributeAnimationSpeed(const String&) const;
  9535. float GetAttributeAnimationTime(const String&) const;
  9536. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9537. Variant GetAttributeDefault(const String&) const;
  9538. bool GetInterceptNetworkUpdate(const String&) const;
  9539. bool HasSubscribedToEvent(Object, const String&);
  9540. bool HasSubscribedToEvent(const String&);
  9541. bool IsInView(Camera) const;
  9542. bool Load(File, bool = false);
  9543. bool Load(VectorBuffer&, bool = false);
  9544. bool LoadJSON(const JSONValue&, bool = false);
  9545. bool LoadXML(const XMLElement&, bool = false);
  9546. void MarkNetworkUpdate() const;
  9547. void Remove();
  9548. void RemoveAttributeAnimation(const String&);
  9549. void RemoveInstanceDefault();
  9550. void RemoveObjectAnimation();
  9551. void ResetToDefault();
  9552. bool Save(File) const;
  9553. bool Save(VectorBuffer&) const;
  9554. bool SaveJSON(JSONValue&) const;
  9555. bool SaveXML(XMLElement&) const;
  9556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9557. void SetAnimationTime(float);
  9558. bool SetAttribute(const String&, const Variant&);
  9559. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9560. void SetAttributeAnimationSpeed(const String&, float);
  9561. void SetAttributeAnimationTime(const String&, float);
  9562. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9563. void SetInterceptNetworkUpdate(const String&, bool);
  9564. // Properties:
  9565. bool animationEnabled;
  9566. /* readonly */
  9567. Array<Variant> attributeDefaults;
  9568. /* readonly */
  9569. Array<AttributeInfo> attributeInfos;
  9570. Array<Variant> attributes;
  9571. /* readonly */
  9572. BoundingBox boundingBox;
  9573. bool castShadows;
  9574. /* readonly */
  9575. String category;
  9576. float drawDistance;
  9577. bool enabled;
  9578. /* readonly */
  9579. bool enabledEffective;
  9580. /* readonly */
  9581. uint id;
  9582. /* readonly */
  9583. bool inView;
  9584. uint lightMask;
  9585. float lodBias;
  9586. /* writeonly */
  9587. Material material;
  9588. Array<Material> materials;
  9589. uint maxLights;
  9590. Model model;
  9591. /* readonly */
  9592. Node node;
  9593. /* readonly */
  9594. uint numAttributes;
  9595. /* readonly */
  9596. uint numGeometries;
  9597. ObjectAnimation objectAnimation;
  9598. bool occludee;
  9599. bool occluder;
  9600. /* readonly */
  9601. int refs;
  9602. float shadowDistance;
  9603. uint shadowMask;
  9604. bool temporary;
  9605. /* readonly */
  9606. StringHash type;
  9607. /* readonly */
  9608. String typeName;
  9609. uint viewMask;
  9610. /* readonly */
  9611. int weakRefs;
  9612. /* readonly */
  9613. BoundingBox worldBoundingBox;
  9614. /* readonly */
  9615. Zone zone;
  9616. uint zoneMask;
  9617. };
  9618. class Slider
  9619. {
  9620. // Methods:
  9621. void AddChild(UIElement);
  9622. void AddTag(const String&);
  9623. void AddTags(const String&, int8 = ';');
  9624. void ApplyAttributes();
  9625. void BringToFront();
  9626. void ChangeValue(float);
  9627. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9628. void DisableLayoutUpdate();
  9629. IntVector2 ElementToScreen(const IntVector2&);
  9630. void EnableLayoutUpdate();
  9631. uint FindChild(UIElement) const;
  9632. Variant GetAttribute(const String&) const;
  9633. ValueAnimation GetAttributeAnimation(const String&) const;
  9634. float GetAttributeAnimationSpeed(const String&) const;
  9635. float GetAttributeAnimationTime(const String&) const;
  9636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9637. Variant GetAttributeDefault(const String&) const;
  9638. UIElement GetChild(const String&, bool = false) const;
  9639. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9640. Array<UIElement> GetChildren(bool = false) const;
  9641. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9642. UIElement GetElementEventSender() const;
  9643. bool GetInterceptNetworkUpdate(const String&) const;
  9644. uint GetNumChildren(bool) const;
  9645. bool HasSubscribedToEvent(Object, const String&);
  9646. bool HasSubscribedToEvent(const String&);
  9647. bool HasTag(const String&) const;
  9648. void InsertChild(uint, UIElement);
  9649. bool IsInside(IntVector2, bool);
  9650. bool IsInsideCombined(IntVector2, bool);
  9651. bool Load(File, bool = false);
  9652. bool Load(VectorBuffer&, bool = false);
  9653. bool LoadChildXML(XMLFile, XMLFile = null);
  9654. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9655. bool LoadJSON(const JSONValue&, bool = false);
  9656. bool LoadXML(File);
  9657. bool LoadXML(VectorBuffer&);
  9658. bool LoadXML(XMLFile, XMLFile);
  9659. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9660. bool LoadXML(const XMLElement&, bool = false);
  9661. void MarkNetworkUpdate() const;
  9662. void Remove();
  9663. void RemoveAllChildren();
  9664. void RemoveAllTags();
  9665. void RemoveAttributeAnimation(const String&);
  9666. void RemoveChild(UIElement, uint = 0);
  9667. void RemoveChild(uint);
  9668. void RemoveInstanceDefault();
  9669. void RemoveObjectAnimation();
  9670. bool RemoveTag(const String&);
  9671. void ResetDeepEnabled();
  9672. void ResetToDefault();
  9673. bool Save(File) const;
  9674. bool Save(VectorBuffer&) const;
  9675. bool SaveJSON(JSONValue&) const;
  9676. bool SaveXML(File, const String& = "\t");
  9677. bool SaveXML(VectorBuffer&, const String& = "\t");
  9678. bool SaveXML(XMLElement&) const;
  9679. IntVector2 ScreenToElement(const IntVector2&);
  9680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9681. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9682. void SetAnimationTime(float);
  9683. bool SetAttribute(const String&, const Variant&);
  9684. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9685. void SetAttributeAnimationSpeed(const String&, float);
  9686. void SetAttributeAnimationTime(const String&, float);
  9687. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9688. void SetDeepEnabled(bool);
  9689. void SetEnabledRecursive(bool);
  9690. void SetFixedHeight(int);
  9691. void SetFixedSize(int, int);
  9692. void SetFixedWidth(int);
  9693. void SetFullImageRect();
  9694. void SetHoverOffset(int, int);
  9695. void SetInterceptNetworkUpdate(const String&, bool);
  9696. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9697. void SetMaxSize(int, int);
  9698. void SetMinSize(int, int);
  9699. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9700. void SetPosition(int, int);
  9701. void SetSize(int, int);
  9702. bool SetStyle(const String&, XMLFile = null);
  9703. bool SetStyle(const XMLElement&);
  9704. bool SetStyleAuto(XMLFile = null);
  9705. void UpdateLayout();
  9706. const Variant& GetVar(const StringHash&);
  9707. // Properties:
  9708. bool animationEnabled;
  9709. /* readonly */
  9710. Array<Variant> attributeDefaults;
  9711. /* readonly */
  9712. Array<AttributeInfo> attributeInfos;
  9713. Array<Variant> attributes;
  9714. BlendMode blendMode;
  9715. IntRect border;
  9716. bool bringToBack;
  9717. bool bringToFront;
  9718. /* readonly */
  9719. String category;
  9720. /* readonly */
  9721. IntVector2 childOffset;
  9722. /* readonly */
  9723. Array<UIElement> children;
  9724. IntRect clipBorder;
  9725. bool clipChildren;
  9726. /* writeonly */
  9727. Color color;
  9728. /* readonly */
  9729. bool colorGradient;
  9730. Array<Color> colors;
  9731. /* readonly */
  9732. IntRect combinedScreenRect;
  9733. XMLFile defaultStyle;
  9734. /* readonly */
  9735. float derivedOpacity;
  9736. /* readonly */
  9737. uint dragButtonCombo;
  9738. /* readonly */
  9739. int dragButtonCount;
  9740. uint dragDropMode;
  9741. bool editable;
  9742. bool elementEventSender;
  9743. bool enabled;
  9744. /* readonly */
  9745. bool enabledSelf;
  9746. /* readonly */
  9747. bool fixedHeight;
  9748. /* readonly */
  9749. bool fixedSize;
  9750. /* readonly */
  9751. bool fixedWidth;
  9752. bool focus;
  9753. FocusMode focusMode;
  9754. int height;
  9755. HorizontalAlignment horizontalAlignment;
  9756. IntVector2 hoverOffset;
  9757. /* readonly */
  9758. bool hovering;
  9759. IntRect imageBorder;
  9760. IntRect imageRect;
  9761. int indent;
  9762. int indentSpacing;
  9763. /* readonly */
  9764. int indentWidth;
  9765. bool internal;
  9766. /* readonly */
  9767. BorderImage knob;
  9768. IntRect layoutBorder;
  9769. Vector2 layoutFlexScale;
  9770. LayoutMode layoutMode;
  9771. int layoutSpacing;
  9772. int maxHeight;
  9773. IntVector2 maxSize;
  9774. int maxWidth;
  9775. int minHeight;
  9776. IntVector2 minSize;
  9777. int minWidth;
  9778. String name;
  9779. /* readonly */
  9780. uint numAllChildren;
  9781. /* readonly */
  9782. uint numAttributes;
  9783. /* readonly */
  9784. uint numChildren;
  9785. ObjectAnimation objectAnimation;
  9786. float opacity;
  9787. Orientation orientation;
  9788. UIElement parent;
  9789. IntVector2 position;
  9790. int priority;
  9791. float range;
  9792. /* readonly */
  9793. int refs;
  9794. float repeatRate;
  9795. /* readonly */
  9796. UIElement root;
  9797. /* readonly */
  9798. IntVector2 screenPosition;
  9799. bool selected;
  9800. IntVector2 size;
  9801. bool sortChildren;
  9802. String style;
  9803. /* readonly */
  9804. Array<String> tags;
  9805. bool temporary;
  9806. Texture texture;
  9807. bool tiled;
  9808. TraversalMode traversalMode;
  9809. /* readonly */
  9810. StringHash type;
  9811. /* readonly */
  9812. String typeName;
  9813. bool useDerivedOpacity;
  9814. float value;
  9815. /* readonly */
  9816. VariantMap vars;
  9817. VerticalAlignment verticalAlignment;
  9818. bool visible;
  9819. /* readonly */
  9820. bool visibleEffective;
  9821. /* readonly */
  9822. int weakRefs;
  9823. int width;
  9824. };
  9825. class SmoothedTransform
  9826. {
  9827. // Methods:
  9828. void ApplyAttributes();
  9829. void DrawDebugGeometry(DebugRenderer, bool);
  9830. Variant GetAttribute(const String&) const;
  9831. ValueAnimation GetAttributeAnimation(const String&) const;
  9832. float GetAttributeAnimationSpeed(const String&) const;
  9833. float GetAttributeAnimationTime(const String&) const;
  9834. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9835. Variant GetAttributeDefault(const String&) const;
  9836. bool GetInterceptNetworkUpdate(const String&) const;
  9837. bool HasSubscribedToEvent(Object, const String&);
  9838. bool HasSubscribedToEvent(const String&);
  9839. bool Load(File, bool = false);
  9840. bool Load(VectorBuffer&, bool = false);
  9841. bool LoadJSON(const JSONValue&, bool = false);
  9842. bool LoadXML(const XMLElement&, bool = false);
  9843. void MarkNetworkUpdate() const;
  9844. void Remove();
  9845. void RemoveAttributeAnimation(const String&);
  9846. void RemoveInstanceDefault();
  9847. void RemoveObjectAnimation();
  9848. void ResetToDefault();
  9849. bool Save(File) const;
  9850. bool Save(VectorBuffer&) const;
  9851. bool SaveJSON(JSONValue&) const;
  9852. bool SaveXML(XMLElement&) const;
  9853. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9854. void SetAnimationTime(float);
  9855. bool SetAttribute(const String&, const Variant&);
  9856. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9857. void SetAttributeAnimationSpeed(const String&, float);
  9858. void SetAttributeAnimationTime(const String&, float);
  9859. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9860. void SetInterceptNetworkUpdate(const String&, bool);
  9861. void Update(float, float);
  9862. // Properties:
  9863. bool animationEnabled;
  9864. /* readonly */
  9865. Array<Variant> attributeDefaults;
  9866. /* readonly */
  9867. Array<AttributeInfo> attributeInfos;
  9868. Array<Variant> attributes;
  9869. /* readonly */
  9870. String category;
  9871. bool enabled;
  9872. /* readonly */
  9873. bool enabledEffective;
  9874. /* readonly */
  9875. uint id;
  9876. /* readonly */
  9877. bool inProgress;
  9878. /* readonly */
  9879. Node node;
  9880. /* readonly */
  9881. uint numAttributes;
  9882. ObjectAnimation objectAnimation;
  9883. /* readonly */
  9884. int refs;
  9885. Vector3 targetPosition;
  9886. Quaternion targetRotation;
  9887. Vector3 targetWorldPosition;
  9888. Quaternion targetWorldRotation;
  9889. bool temporary;
  9890. /* readonly */
  9891. StringHash type;
  9892. /* readonly */
  9893. String typeName;
  9894. /* readonly */
  9895. int weakRefs;
  9896. };
  9897. class Sound
  9898. {
  9899. // Methods:
  9900. bool HasSubscribedToEvent(Object, const String&);
  9901. bool HasSubscribedToEvent(const String&);
  9902. bool Load(File);
  9903. bool Load(VectorBuffer&);
  9904. bool Save(File) const;
  9905. bool Save(VectorBuffer&) const;
  9906. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9907. // Properties:
  9908. /* readonly */
  9909. String category;
  9910. /* readonly */
  9911. bool compressed;
  9912. /* readonly */
  9913. float frequency;
  9914. /* readonly */
  9915. float length;
  9916. bool looped;
  9917. /* readonly */
  9918. uint memoryUse;
  9919. String name;
  9920. /* readonly */
  9921. int refs;
  9922. /* readonly */
  9923. uint sampleSize;
  9924. /* readonly */
  9925. bool sixteenBit;
  9926. /* readonly */
  9927. bool stereo;
  9928. /* readonly */
  9929. StringHash type;
  9930. /* readonly */
  9931. String typeName;
  9932. /* readonly */
  9933. uint useTimer;
  9934. /* readonly */
  9935. int weakRefs;
  9936. };
  9937. class SoundListener
  9938. {
  9939. // Methods:
  9940. void ApplyAttributes();
  9941. void DrawDebugGeometry(DebugRenderer, bool);
  9942. Variant GetAttribute(const String&) const;
  9943. ValueAnimation GetAttributeAnimation(const String&) const;
  9944. float GetAttributeAnimationSpeed(const String&) const;
  9945. float GetAttributeAnimationTime(const String&) const;
  9946. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9947. Variant GetAttributeDefault(const String&) const;
  9948. bool GetInterceptNetworkUpdate(const String&) const;
  9949. bool HasSubscribedToEvent(Object, const String&);
  9950. bool HasSubscribedToEvent(const String&);
  9951. bool Load(File, bool = false);
  9952. bool Load(VectorBuffer&, bool = false);
  9953. bool LoadJSON(const JSONValue&, bool = false);
  9954. bool LoadXML(const XMLElement&, bool = false);
  9955. void MarkNetworkUpdate() const;
  9956. void Remove();
  9957. void RemoveAttributeAnimation(const String&);
  9958. void RemoveInstanceDefault();
  9959. void RemoveObjectAnimation();
  9960. void ResetToDefault();
  9961. bool Save(File) const;
  9962. bool Save(VectorBuffer&) const;
  9963. bool SaveJSON(JSONValue&) const;
  9964. bool SaveXML(XMLElement&) const;
  9965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9966. void SetAnimationTime(float);
  9967. bool SetAttribute(const String&, const Variant&);
  9968. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9969. void SetAttributeAnimationSpeed(const String&, float);
  9970. void SetAttributeAnimationTime(const String&, float);
  9971. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9972. void SetInterceptNetworkUpdate(const String&, bool);
  9973. // Properties:
  9974. bool animationEnabled;
  9975. /* readonly */
  9976. Array<Variant> attributeDefaults;
  9977. /* readonly */
  9978. Array<AttributeInfo> attributeInfos;
  9979. Array<Variant> attributes;
  9980. /* readonly */
  9981. String category;
  9982. bool enabled;
  9983. /* readonly */
  9984. bool enabledEffective;
  9985. /* readonly */
  9986. uint id;
  9987. /* readonly */
  9988. Node node;
  9989. /* readonly */
  9990. uint numAttributes;
  9991. ObjectAnimation objectAnimation;
  9992. /* readonly */
  9993. int refs;
  9994. bool temporary;
  9995. /* readonly */
  9996. StringHash type;
  9997. /* readonly */
  9998. String typeName;
  9999. /* readonly */
  10000. int weakRefs;
  10001. };
  10002. class SoundSource
  10003. {
  10004. // Methods:
  10005. void ApplyAttributes();
  10006. void DrawDebugGeometry(DebugRenderer, bool);
  10007. Variant GetAttribute(const String&) const;
  10008. ValueAnimation GetAttributeAnimation(const String&) const;
  10009. float GetAttributeAnimationSpeed(const String&) const;
  10010. float GetAttributeAnimationTime(const String&) const;
  10011. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10012. Variant GetAttributeDefault(const String&) const;
  10013. bool GetInterceptNetworkUpdate(const String&) const;
  10014. bool HasSubscribedToEvent(Object, const String&);
  10015. bool HasSubscribedToEvent(const String&);
  10016. bool Load(File, bool = false);
  10017. bool Load(VectorBuffer&, bool = false);
  10018. bool LoadJSON(const JSONValue&, bool = false);
  10019. bool LoadXML(const XMLElement&, bool = false);
  10020. void MarkNetworkUpdate() const;
  10021. void Play(Sound);
  10022. void Play(Sound, float);
  10023. void Play(Sound, float, float);
  10024. void Play(Sound, float, float, float);
  10025. void Remove();
  10026. void RemoveAttributeAnimation(const String&);
  10027. void RemoveInstanceDefault();
  10028. void RemoveObjectAnimation();
  10029. void ResetToDefault();
  10030. bool Save(File) const;
  10031. bool Save(VectorBuffer&) const;
  10032. bool SaveJSON(JSONValue&) const;
  10033. bool SaveXML(XMLElement&) const;
  10034. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10035. void SetAnimationTime(float);
  10036. bool SetAttribute(const String&, const Variant&);
  10037. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10038. void SetAttributeAnimationSpeed(const String&, float);
  10039. void SetAttributeAnimationTime(const String&, float);
  10040. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10041. void SetInterceptNetworkUpdate(const String&, bool);
  10042. void Stop();
  10043. // Properties:
  10044. bool animationEnabled;
  10045. /* readonly */
  10046. float attenuation;
  10047. /* readonly */
  10048. Array<Variant> attributeDefaults;
  10049. /* readonly */
  10050. Array<AttributeInfo> attributeInfos;
  10051. Array<Variant> attributes;
  10052. bool autoRemove;
  10053. /* readonly */
  10054. String category;
  10055. bool enabled;
  10056. /* readonly */
  10057. bool enabledEffective;
  10058. float frequency;
  10059. float gain;
  10060. /* readonly */
  10061. uint id;
  10062. /* readonly */
  10063. Node node;
  10064. /* readonly */
  10065. uint numAttributes;
  10066. ObjectAnimation objectAnimation;
  10067. float panning;
  10068. /* readonly */
  10069. bool playing;
  10070. /* readonly */
  10071. int refs;
  10072. /* readonly */
  10073. Sound sound;
  10074. String soundType;
  10075. bool temporary;
  10076. /* readonly */
  10077. float timePosition;
  10078. /* readonly */
  10079. StringHash type;
  10080. /* readonly */
  10081. String typeName;
  10082. /* readonly */
  10083. int weakRefs;
  10084. };
  10085. class SoundSource3D
  10086. {
  10087. // Methods:
  10088. void ApplyAttributes();
  10089. void DrawDebugGeometry(DebugRenderer, bool);
  10090. Variant GetAttribute(const String&) const;
  10091. ValueAnimation GetAttributeAnimation(const String&) const;
  10092. float GetAttributeAnimationSpeed(const String&) const;
  10093. float GetAttributeAnimationTime(const String&) const;
  10094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10095. Variant GetAttributeDefault(const String&) const;
  10096. bool GetInterceptNetworkUpdate(const String&) const;
  10097. bool HasSubscribedToEvent(Object, const String&);
  10098. bool HasSubscribedToEvent(const String&);
  10099. bool Load(File, bool = false);
  10100. bool Load(VectorBuffer&, bool = false);
  10101. bool LoadJSON(const JSONValue&, bool = false);
  10102. bool LoadXML(const XMLElement&, bool = false);
  10103. void MarkNetworkUpdate() const;
  10104. void Play(Sound);
  10105. void Play(Sound, float);
  10106. void Play(Sound, float, float);
  10107. void Play(Sound, float, float, float);
  10108. void Remove();
  10109. void RemoveAttributeAnimation(const String&);
  10110. void RemoveInstanceDefault();
  10111. void RemoveObjectAnimation();
  10112. void ResetToDefault();
  10113. bool Save(File) const;
  10114. bool Save(VectorBuffer&) const;
  10115. bool SaveJSON(JSONValue&) const;
  10116. bool SaveXML(XMLElement&) const;
  10117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10118. void SetAngleAttenuation(float, float);
  10119. void SetAnimationTime(float);
  10120. bool SetAttribute(const String&, const Variant&);
  10121. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10122. void SetAttributeAnimationSpeed(const String&, float);
  10123. void SetAttributeAnimationTime(const String&, float);
  10124. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10125. void SetDistanceAttenuation(float, float, float);
  10126. void SetInterceptNetworkUpdate(const String&, bool);
  10127. void Stop();
  10128. // Properties:
  10129. bool animationEnabled;
  10130. /* readonly */
  10131. float attenuation;
  10132. /* readonly */
  10133. Array<Variant> attributeDefaults;
  10134. /* readonly */
  10135. Array<AttributeInfo> attributeInfos;
  10136. Array<Variant> attributes;
  10137. bool autoRemove;
  10138. /* readonly */
  10139. String category;
  10140. bool enabled;
  10141. /* readonly */
  10142. bool enabledEffective;
  10143. float farDistance;
  10144. float frequency;
  10145. float gain;
  10146. /* readonly */
  10147. uint id;
  10148. float innerAngle;
  10149. float nearDistance;
  10150. /* readonly */
  10151. Node node;
  10152. /* readonly */
  10153. uint numAttributes;
  10154. ObjectAnimation objectAnimation;
  10155. float outerAngle;
  10156. float panning;
  10157. /* readonly */
  10158. bool playing;
  10159. /* readonly */
  10160. int refs;
  10161. float rolloffFactor;
  10162. /* readonly */
  10163. Sound sound;
  10164. String soundType;
  10165. bool temporary;
  10166. /* readonly */
  10167. float timePosition;
  10168. /* readonly */
  10169. StringHash type;
  10170. /* readonly */
  10171. String typeName;
  10172. /* readonly */
  10173. int weakRefs;
  10174. };
  10175. class Sphere
  10176. {
  10177. // Methods:
  10178. void Clear();
  10179. void Define(const BoundingBox&);
  10180. void Define(const Frustum&);
  10181. void Define(const Polyhedron&);
  10182. void Define(const Sphere&);
  10183. void Define(const Vector3&, float);
  10184. bool Defined() const;
  10185. float Distance(const Vector3&) const;
  10186. Intersection IsInside(const BoundingBox&) const;
  10187. Intersection IsInside(const Sphere&) const;
  10188. Intersection IsInside(const Vector3&) const;
  10189. Intersection IsInsideFast(const BoundingBox&) const;
  10190. Intersection IsInsideFast(const Sphere&) const;
  10191. void Merge(const BoundingBox&);
  10192. void Merge(const Frustum&);
  10193. void Merge(const Sphere&);
  10194. void Merge(const Vector3&);
  10195. // Properties:
  10196. Vector3 center;
  10197. float radius;
  10198. };
  10199. class Spline
  10200. {
  10201. // Methods:
  10202. void AddKnot(const Variant&);
  10203. void AddKnot(const Variant&, uint);
  10204. void Clear();
  10205. Variant GetPoint(float);
  10206. void RemoveKnot();
  10207. void RemoveKnot(uint);
  10208. // Properties:
  10209. InterpolationMode interpolationMode;
  10210. Array<Variant> knot;
  10211. Array<Variant> knots;
  10212. };
  10213. class SplinePath
  10214. {
  10215. // Methods:
  10216. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10217. void ApplyAttributes();
  10218. void ClearControlPoints();
  10219. void DrawDebugGeometry(DebugRenderer, bool);
  10220. Variant GetAttribute(const String&) const;
  10221. ValueAnimation GetAttributeAnimation(const String&) const;
  10222. float GetAttributeAnimationSpeed(const String&) const;
  10223. float GetAttributeAnimationTime(const String&) const;
  10224. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10225. Variant GetAttributeDefault(const String&) const;
  10226. bool GetInterceptNetworkUpdate(const String&) const;
  10227. Vector3 GetPoint(float) const;
  10228. Vector3 GetPosition() const;
  10229. bool HasSubscribedToEvent(Object, const String&);
  10230. bool HasSubscribedToEvent(const String&);
  10231. bool Load(File, bool = false);
  10232. bool Load(VectorBuffer&, bool = false);
  10233. bool LoadJSON(const JSONValue&, bool = false);
  10234. bool LoadXML(const XMLElement&, bool = false);
  10235. void MarkNetworkUpdate() const;
  10236. void Move(float);
  10237. void Remove();
  10238. void RemoveAttributeAnimation(const String&);
  10239. void RemoveControlPoint(Node);
  10240. void RemoveInstanceDefault();
  10241. void RemoveObjectAnimation();
  10242. void Reset();
  10243. void ResetToDefault();
  10244. bool Save(File) const;
  10245. bool Save(VectorBuffer&) const;
  10246. bool SaveJSON(JSONValue&) const;
  10247. bool SaveXML(XMLElement&) const;
  10248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10249. void SetAnimationTime(float);
  10250. bool SetAttribute(const String&, const Variant&);
  10251. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10252. void SetAttributeAnimationSpeed(const String&, float);
  10253. void SetAttributeAnimationTime(const String&, float);
  10254. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10255. void SetInterceptNetworkUpdate(const String&, bool);
  10256. void SetPosition(float);
  10257. // Properties:
  10258. bool animationEnabled;
  10259. /* readonly */
  10260. Array<Variant> attributeDefaults;
  10261. /* readonly */
  10262. Array<AttributeInfo> attributeInfos;
  10263. Array<Variant> attributes;
  10264. /* readonly */
  10265. String category;
  10266. Node controlledNode;
  10267. bool enabled;
  10268. /* readonly */
  10269. bool enabledEffective;
  10270. /* readonly */
  10271. uint id;
  10272. InterpolationMode interpolationMode;
  10273. /* readonly */
  10274. bool isFinished;
  10275. /* readonly */
  10276. float length;
  10277. /* readonly */
  10278. Node node;
  10279. /* readonly */
  10280. uint numAttributes;
  10281. ObjectAnimation objectAnimation;
  10282. /* readonly */
  10283. int refs;
  10284. float speed;
  10285. bool temporary;
  10286. /* readonly */
  10287. StringHash type;
  10288. /* readonly */
  10289. String typeName;
  10290. /* readonly */
  10291. int weakRefs;
  10292. };
  10293. class Sprite
  10294. {
  10295. // Methods:
  10296. void AddChild(UIElement);
  10297. void AddTag(const String&);
  10298. void AddTags(const String&, int8 = ';');
  10299. void ApplyAttributes();
  10300. void BringToFront();
  10301. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10302. void DisableLayoutUpdate();
  10303. IntVector2 ElementToScreen(const IntVector2&);
  10304. void EnableLayoutUpdate();
  10305. uint FindChild(UIElement) const;
  10306. Variant GetAttribute(const String&) const;
  10307. ValueAnimation GetAttributeAnimation(const String&) const;
  10308. float GetAttributeAnimationSpeed(const String&) const;
  10309. float GetAttributeAnimationTime(const String&) const;
  10310. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10311. Variant GetAttributeDefault(const String&) const;
  10312. UIElement GetChild(const String&, bool = false) const;
  10313. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10314. Array<UIElement> GetChildren(bool = false) const;
  10315. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10316. UIElement GetElementEventSender() const;
  10317. bool GetInterceptNetworkUpdate(const String&) const;
  10318. uint GetNumChildren(bool) const;
  10319. bool HasSubscribedToEvent(Object, const String&);
  10320. bool HasSubscribedToEvent(const String&);
  10321. bool HasTag(const String&) const;
  10322. void InsertChild(uint, UIElement);
  10323. bool IsInside(IntVector2, bool);
  10324. bool IsInsideCombined(IntVector2, bool);
  10325. bool Load(File, bool = false);
  10326. bool Load(VectorBuffer&, bool = false);
  10327. bool LoadChildXML(XMLFile, XMLFile = null);
  10328. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10329. bool LoadJSON(const JSONValue&, bool = false);
  10330. bool LoadXML(File);
  10331. bool LoadXML(VectorBuffer&);
  10332. bool LoadXML(XMLFile, XMLFile);
  10333. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10334. bool LoadXML(const XMLElement&, bool = false);
  10335. void MarkNetworkUpdate() const;
  10336. void Remove();
  10337. void RemoveAllChildren();
  10338. void RemoveAllTags();
  10339. void RemoveAttributeAnimation(const String&);
  10340. void RemoveChild(UIElement, uint = 0);
  10341. void RemoveChild(uint);
  10342. void RemoveInstanceDefault();
  10343. void RemoveObjectAnimation();
  10344. bool RemoveTag(const String&);
  10345. void ResetDeepEnabled();
  10346. void ResetToDefault();
  10347. bool Save(File) const;
  10348. bool Save(VectorBuffer&) const;
  10349. bool SaveJSON(JSONValue&) const;
  10350. bool SaveXML(File, const String& = "\t");
  10351. bool SaveXML(VectorBuffer&, const String& = "\t");
  10352. bool SaveXML(XMLElement&) const;
  10353. IntVector2 ScreenToElement(const IntVector2&);
  10354. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10355. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10356. void SetAnimationTime(float);
  10357. bool SetAttribute(const String&, const Variant&);
  10358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10359. void SetAttributeAnimationSpeed(const String&, float);
  10360. void SetAttributeAnimationTime(const String&, float);
  10361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10362. void SetDeepEnabled(bool);
  10363. void SetEnabledRecursive(bool);
  10364. void SetFixedHeight(int);
  10365. void SetFixedSize(int, int);
  10366. void SetFixedWidth(int);
  10367. void SetFullImageRect();
  10368. void SetHotSpot(int, int);
  10369. void SetInterceptNetworkUpdate(const String&, bool);
  10370. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10371. void SetMaxSize(int, int);
  10372. void SetMinSize(int, int);
  10373. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10374. void SetPosition(float, float);
  10375. void SetScale(float);
  10376. void SetScale(float, float);
  10377. void SetSize(int, int);
  10378. bool SetStyle(const String&, XMLFile = null);
  10379. bool SetStyle(const XMLElement&);
  10380. bool SetStyleAuto(XMLFile = null);
  10381. void UpdateLayout();
  10382. const Variant& GetVar(const StringHash&);
  10383. // Properties:
  10384. bool animationEnabled;
  10385. /* readonly */
  10386. Array<Variant> attributeDefaults;
  10387. /* readonly */
  10388. Array<AttributeInfo> attributeInfos;
  10389. Array<Variant> attributes;
  10390. BlendMode blendMode;
  10391. bool bringToBack;
  10392. bool bringToFront;
  10393. /* readonly */
  10394. String category;
  10395. /* readonly */
  10396. IntVector2 childOffset;
  10397. /* readonly */
  10398. Array<UIElement> children;
  10399. IntRect clipBorder;
  10400. bool clipChildren;
  10401. /* writeonly */
  10402. Color color;
  10403. /* readonly */
  10404. bool colorGradient;
  10405. Array<Color> colors;
  10406. /* readonly */
  10407. IntRect combinedScreenRect;
  10408. XMLFile defaultStyle;
  10409. /* readonly */
  10410. float derivedOpacity;
  10411. /* readonly */
  10412. uint dragButtonCombo;
  10413. /* readonly */
  10414. int dragButtonCount;
  10415. uint dragDropMode;
  10416. bool editable;
  10417. bool elementEventSender;
  10418. bool enabled;
  10419. /* readonly */
  10420. bool enabledSelf;
  10421. /* readonly */
  10422. bool fixedHeight;
  10423. /* readonly */
  10424. bool fixedSize;
  10425. /* readonly */
  10426. bool fixedWidth;
  10427. bool focus;
  10428. FocusMode focusMode;
  10429. int height;
  10430. HorizontalAlignment horizontalAlignment;
  10431. IntVector2 hotSpot;
  10432. /* readonly */
  10433. bool hovering;
  10434. IntRect imageRect;
  10435. int indent;
  10436. int indentSpacing;
  10437. /* readonly */
  10438. int indentWidth;
  10439. bool internal;
  10440. IntRect layoutBorder;
  10441. Vector2 layoutFlexScale;
  10442. LayoutMode layoutMode;
  10443. int layoutSpacing;
  10444. int maxHeight;
  10445. IntVector2 maxSize;
  10446. int maxWidth;
  10447. int minHeight;
  10448. IntVector2 minSize;
  10449. int minWidth;
  10450. String name;
  10451. /* readonly */
  10452. uint numAllChildren;
  10453. /* readonly */
  10454. uint numAttributes;
  10455. /* readonly */
  10456. uint numChildren;
  10457. ObjectAnimation objectAnimation;
  10458. float opacity;
  10459. UIElement parent;
  10460. Vector2 position;
  10461. int priority;
  10462. /* readonly */
  10463. int refs;
  10464. /* readonly */
  10465. UIElement root;
  10466. float rotation;
  10467. Vector2 scale;
  10468. /* readonly */
  10469. IntVector2 screenPosition;
  10470. bool selected;
  10471. IntVector2 size;
  10472. bool sortChildren;
  10473. String style;
  10474. /* readonly */
  10475. Array<String> tags;
  10476. bool temporary;
  10477. Texture texture;
  10478. TraversalMode traversalMode;
  10479. /* readonly */
  10480. StringHash type;
  10481. /* readonly */
  10482. String typeName;
  10483. bool useDerivedOpacity;
  10484. /* readonly */
  10485. VariantMap vars;
  10486. VerticalAlignment verticalAlignment;
  10487. bool visible;
  10488. /* readonly */
  10489. bool visibleEffective;
  10490. /* readonly */
  10491. int weakRefs;
  10492. int width;
  10493. };
  10494. class Sprite2D
  10495. {
  10496. // Methods:
  10497. bool HasSubscribedToEvent(Object, const String&);
  10498. bool HasSubscribedToEvent(const String&);
  10499. bool Load(File);
  10500. bool Load(VectorBuffer&);
  10501. bool Save(File) const;
  10502. bool Save(VectorBuffer&) const;
  10503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10504. // Properties:
  10505. /* readonly */
  10506. String category;
  10507. Vector2 hotSpot;
  10508. /* readonly */
  10509. uint memoryUse;
  10510. String name;
  10511. IntVector2 offset;
  10512. IntRect rectangle;
  10513. /* readonly */
  10514. int refs;
  10515. Texture2D texture;
  10516. float textureEdgeOffset;
  10517. /* readonly */
  10518. StringHash type;
  10519. /* readonly */
  10520. String typeName;
  10521. /* readonly */
  10522. uint useTimer;
  10523. /* readonly */
  10524. int weakRefs;
  10525. };
  10526. class SpriteSheet2D
  10527. {
  10528. // Methods:
  10529. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10530. Sprite2D GetSprite(const String&);
  10531. bool HasSubscribedToEvent(Object, const String&);
  10532. bool HasSubscribedToEvent(const String&);
  10533. bool Load(File);
  10534. bool Load(VectorBuffer&);
  10535. bool Save(File) const;
  10536. bool Save(VectorBuffer&) const;
  10537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10538. // Properties:
  10539. /* readonly */
  10540. String category;
  10541. /* readonly */
  10542. uint memoryUse;
  10543. String name;
  10544. /* readonly */
  10545. int refs;
  10546. Texture2D texture;
  10547. /* readonly */
  10548. StringHash type;
  10549. /* readonly */
  10550. String typeName;
  10551. /* readonly */
  10552. uint useTimer;
  10553. /* readonly */
  10554. int weakRefs;
  10555. };
  10556. class StaticModel
  10557. {
  10558. // Methods:
  10559. void ApplyAttributes();
  10560. void ApplyMaterialList(const String& = String ( ));
  10561. void DrawDebugGeometry(DebugRenderer, bool);
  10562. Variant GetAttribute(const String&) const;
  10563. ValueAnimation GetAttributeAnimation(const String&) const;
  10564. float GetAttributeAnimationSpeed(const String&) const;
  10565. float GetAttributeAnimationTime(const String&) const;
  10566. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10567. Variant GetAttributeDefault(const String&) const;
  10568. bool GetInterceptNetworkUpdate(const String&) const;
  10569. bool HasSubscribedToEvent(Object, const String&);
  10570. bool HasSubscribedToEvent(const String&);
  10571. bool IsInView(Camera) const;
  10572. bool IsInside(const Vector3&) const;
  10573. bool IsInsideLocal(const Vector3&) const;
  10574. bool Load(File, bool = false);
  10575. bool Load(VectorBuffer&, bool = false);
  10576. bool LoadJSON(const JSONValue&, bool = false);
  10577. bool LoadXML(const XMLElement&, bool = false);
  10578. void MarkNetworkUpdate() const;
  10579. void Remove();
  10580. void RemoveAttributeAnimation(const String&);
  10581. void RemoveInstanceDefault();
  10582. void RemoveObjectAnimation();
  10583. void ResetToDefault();
  10584. bool Save(File) const;
  10585. bool Save(VectorBuffer&) const;
  10586. bool SaveJSON(JSONValue&) const;
  10587. bool SaveXML(XMLElement&) const;
  10588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10589. void SetAnimationTime(float);
  10590. bool SetAttribute(const String&, const Variant&);
  10591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10592. void SetAttributeAnimationSpeed(const String&, float);
  10593. void SetAttributeAnimationTime(const String&, float);
  10594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10595. void SetInterceptNetworkUpdate(const String&, bool);
  10596. // Properties:
  10597. bool animationEnabled;
  10598. /* readonly */
  10599. Array<Variant> attributeDefaults;
  10600. /* readonly */
  10601. Array<AttributeInfo> attributeInfos;
  10602. Array<Variant> attributes;
  10603. /* readonly */
  10604. BoundingBox boundingBox;
  10605. bool castShadows;
  10606. /* readonly */
  10607. String category;
  10608. float drawDistance;
  10609. bool enabled;
  10610. /* readonly */
  10611. bool enabledEffective;
  10612. /* readonly */
  10613. uint id;
  10614. /* readonly */
  10615. bool inView;
  10616. uint lightMask;
  10617. float lodBias;
  10618. /* writeonly */
  10619. Material material;
  10620. Array<Material> materials;
  10621. uint maxLights;
  10622. Model model;
  10623. /* readonly */
  10624. Node node;
  10625. /* readonly */
  10626. uint numAttributes;
  10627. /* readonly */
  10628. uint numGeometries;
  10629. ObjectAnimation objectAnimation;
  10630. bool occludee;
  10631. bool occluder;
  10632. uint occlusionLodLevel;
  10633. /* readonly */
  10634. int refs;
  10635. float shadowDistance;
  10636. uint shadowMask;
  10637. bool temporary;
  10638. /* readonly */
  10639. StringHash type;
  10640. /* readonly */
  10641. String typeName;
  10642. uint viewMask;
  10643. /* readonly */
  10644. int weakRefs;
  10645. /* readonly */
  10646. BoundingBox worldBoundingBox;
  10647. uint zoneMask;
  10648. };
  10649. class StaticModelGroup
  10650. {
  10651. // Methods:
  10652. void AddInstanceNode(Node);
  10653. void ApplyAttributes();
  10654. void ApplyMaterialList(const String& = String ( ));
  10655. void DrawDebugGeometry(DebugRenderer, bool);
  10656. Variant GetAttribute(const String&) const;
  10657. ValueAnimation GetAttributeAnimation(const String&) const;
  10658. float GetAttributeAnimationSpeed(const String&) const;
  10659. float GetAttributeAnimationTime(const String&) const;
  10660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10661. Variant GetAttributeDefault(const String&) const;
  10662. bool GetInterceptNetworkUpdate(const String&) const;
  10663. bool HasSubscribedToEvent(Object, const String&);
  10664. bool HasSubscribedToEvent(const String&);
  10665. bool IsInView(Camera) const;
  10666. bool Load(File, bool = false);
  10667. bool Load(VectorBuffer&, bool = false);
  10668. bool LoadJSON(const JSONValue&, bool = false);
  10669. bool LoadXML(const XMLElement&, bool = false);
  10670. void MarkNetworkUpdate() const;
  10671. void Remove();
  10672. void RemoveAllInstanceNodes();
  10673. void RemoveAttributeAnimation(const String&);
  10674. void RemoveInstanceDefault();
  10675. void RemoveInstanceNode(Node);
  10676. void RemoveObjectAnimation();
  10677. void ResetToDefault();
  10678. bool Save(File) const;
  10679. bool Save(VectorBuffer&) const;
  10680. bool SaveJSON(JSONValue&) const;
  10681. bool SaveXML(XMLElement&) const;
  10682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10683. void SetAnimationTime(float);
  10684. bool SetAttribute(const String&, const Variant&);
  10685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10686. void SetAttributeAnimationSpeed(const String&, float);
  10687. void SetAttributeAnimationTime(const String&, float);
  10688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10689. void SetInterceptNetworkUpdate(const String&, bool);
  10690. // Properties:
  10691. bool animationEnabled;
  10692. /* readonly */
  10693. Array<Variant> attributeDefaults;
  10694. /* readonly */
  10695. Array<AttributeInfo> attributeInfos;
  10696. Array<Variant> attributes;
  10697. /* readonly */
  10698. BoundingBox boundingBox;
  10699. bool castShadows;
  10700. /* readonly */
  10701. String category;
  10702. float drawDistance;
  10703. bool enabled;
  10704. /* readonly */
  10705. bool enabledEffective;
  10706. /* readonly */
  10707. uint id;
  10708. /* readonly */
  10709. bool inView;
  10710. /* readonly */
  10711. Array<Node> instanceNodes;
  10712. uint lightMask;
  10713. float lodBias;
  10714. /* writeonly */
  10715. Material material;
  10716. Array<Material> materials;
  10717. uint maxLights;
  10718. Model model;
  10719. /* readonly */
  10720. Node node;
  10721. /* readonly */
  10722. uint numAttributes;
  10723. /* readonly */
  10724. uint numGeometries;
  10725. /* readonly */
  10726. uint numInstanceNodes;
  10727. ObjectAnimation objectAnimation;
  10728. bool occludee;
  10729. bool occluder;
  10730. uint occlusionLodLevel;
  10731. /* readonly */
  10732. int refs;
  10733. float shadowDistance;
  10734. uint shadowMask;
  10735. bool temporary;
  10736. /* readonly */
  10737. StringHash type;
  10738. /* readonly */
  10739. String typeName;
  10740. uint viewMask;
  10741. /* readonly */
  10742. int weakRefs;
  10743. /* readonly */
  10744. BoundingBox worldBoundingBox;
  10745. /* readonly */
  10746. Zone zone;
  10747. uint zoneMask;
  10748. };
  10749. class StaticSprite2D
  10750. {
  10751. // Methods:
  10752. void ApplyAttributes();
  10753. void DrawDebugGeometry(DebugRenderer, bool);
  10754. Variant GetAttribute(const String&) const;
  10755. ValueAnimation GetAttributeAnimation(const String&) const;
  10756. float GetAttributeAnimationSpeed(const String&) const;
  10757. float GetAttributeAnimationTime(const String&) const;
  10758. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10759. Variant GetAttributeDefault(const String&) const;
  10760. bool GetInterceptNetworkUpdate(const String&) const;
  10761. bool HasSubscribedToEvent(Object, const String&);
  10762. bool HasSubscribedToEvent(const String&);
  10763. bool IsInView(Camera) const;
  10764. bool Load(File, bool = false);
  10765. bool Load(VectorBuffer&, bool = false);
  10766. bool LoadJSON(const JSONValue&, bool = false);
  10767. bool LoadXML(const XMLElement&, bool = false);
  10768. void MarkNetworkUpdate() const;
  10769. void Remove();
  10770. void RemoveAttributeAnimation(const String&);
  10771. void RemoveInstanceDefault();
  10772. void RemoveObjectAnimation();
  10773. void ResetToDefault();
  10774. bool Save(File) const;
  10775. bool Save(VectorBuffer&) const;
  10776. bool SaveJSON(JSONValue&) const;
  10777. bool SaveXML(XMLElement&) const;
  10778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10779. void SetAnimationTime(float);
  10780. bool SetAttribute(const String&, const Variant&);
  10781. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10782. void SetAttributeAnimationSpeed(const String&, float);
  10783. void SetAttributeAnimationTime(const String&, float);
  10784. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10785. void SetFlip(bool, bool);
  10786. void SetInterceptNetworkUpdate(const String&, bool);
  10787. // Properties:
  10788. float alpha;
  10789. bool animationEnabled;
  10790. /* readonly */
  10791. Array<Variant> attributeDefaults;
  10792. /* readonly */
  10793. Array<AttributeInfo> attributeInfos;
  10794. Array<Variant> attributes;
  10795. BlendMode blendMode;
  10796. /* readonly */
  10797. BoundingBox boundingBox;
  10798. bool castShadows;
  10799. /* readonly */
  10800. String category;
  10801. Color color;
  10802. Material customMaterial;
  10803. float drawDistance;
  10804. bool enabled;
  10805. /* readonly */
  10806. bool enabledEffective;
  10807. bool flipX;
  10808. bool flipY;
  10809. Vector2 hotSpot;
  10810. /* readonly */
  10811. uint id;
  10812. /* readonly */
  10813. bool inView;
  10814. int layer;
  10815. uint lightMask;
  10816. float lodBias;
  10817. uint maxLights;
  10818. /* readonly */
  10819. Node node;
  10820. /* readonly */
  10821. uint numAttributes;
  10822. ObjectAnimation objectAnimation;
  10823. bool occludee;
  10824. bool occluder;
  10825. int orderInLayer;
  10826. /* readonly */
  10827. int refs;
  10828. float shadowDistance;
  10829. uint shadowMask;
  10830. Sprite2D sprite;
  10831. bool temporary;
  10832. /* readonly */
  10833. StringHash type;
  10834. /* readonly */
  10835. String typeName;
  10836. bool useHotSpot;
  10837. uint viewMask;
  10838. /* readonly */
  10839. int weakRefs;
  10840. /* readonly */
  10841. BoundingBox worldBoundingBox;
  10842. uint zoneMask;
  10843. };
  10844. class String
  10845. {
  10846. // Methods:
  10847. void AppendUTF8(uint);
  10848. uint AtUTF8(uint) const;
  10849. uint ByteOffsetUTF8(uint) const;
  10850. void Clear();
  10851. int Compare(const String&, bool = true) const;
  10852. bool Contains(const String&, bool = true) const;
  10853. bool Contains(uint8, bool = true) const;
  10854. bool EndsWith(const String&, bool = true) const;
  10855. uint Find(const String&, uint = 0, bool = true) const;
  10856. uint Find(uint8, uint = 0, bool = true) const;
  10857. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10858. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10859. void Join(Array<String>&, const String&);
  10860. uint NextUTF8Char(uint&) const;
  10861. void Replace(const String&, const String&, bool = true);
  10862. void Replace(uint8, uint8, bool = true);
  10863. void ReplaceUTF8(uint, uint);
  10864. String Replaced(const String&, const String&, bool = true) const;
  10865. String Replaced(uint8, uint8, bool = true) const;
  10866. void Resize(uint);
  10867. void SetUTF8FromLatin1(const String&);
  10868. Array<String> Split(uint8, bool = false) const;
  10869. bool StartsWith(const String&, bool = true) const;
  10870. String Substring(uint) const;
  10871. String Substring(uint, uint) const;
  10872. String SubstringUTF8(uint) const;
  10873. String SubstringUTF8(uint, uint) const;
  10874. bool ToBool() const;
  10875. Color ToColor() const;
  10876. double ToDouble() const;
  10877. float ToFloat() const;
  10878. int ToInt(int = 10) const;
  10879. IntRect ToIntRect() const;
  10880. IntVector2 ToIntVector2() const;
  10881. String ToLower() const;
  10882. Matrix3 ToMatrix3() const;
  10883. Matrix3x4 ToMatrix3x4() const;
  10884. Matrix4 ToMatrix4() const;
  10885. Quaternion ToQuaternion() const;
  10886. uint ToUInt(int = 10) const;
  10887. String ToUpper() const;
  10888. Vector2 ToVector2() const;
  10889. Vector3 ToVector3() const;
  10890. Vector4 ToVector4(bool = false) const;
  10891. Variant ToVectorVariant() const;
  10892. String Trimmed() const;
  10893. // Properties:
  10894. /* readonly */
  10895. bool empty;
  10896. /* readonly */
  10897. uint length;
  10898. /* readonly */
  10899. uint utf8Length;
  10900. };
  10901. class StringHash
  10902. {
  10903. // Methods:
  10904. String ToString() const;
  10905. // Properties:
  10906. /* readonly */
  10907. uint value;
  10908. };
  10909. class Technique
  10910. {
  10911. // Methods:
  10912. Technique Clone(const String& = String ( )) const;
  10913. Pass CreatePass(const String&);
  10914. Pass GetPass(const String&);
  10915. Pass GetSupportedPass(const String&);
  10916. bool HasPass(const String&) const;
  10917. bool HasSubscribedToEvent(Object, const String&);
  10918. bool HasSubscribedToEvent(const String&);
  10919. bool Load(File);
  10920. bool Load(VectorBuffer&);
  10921. void RemovePass(const String&);
  10922. bool Save(File) const;
  10923. bool Save(VectorBuffer&) const;
  10924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10925. // Properties:
  10926. /* readonly */
  10927. String category;
  10928. bool desktop;
  10929. /* readonly */
  10930. uint memoryUse;
  10931. String name;
  10932. /* readonly */
  10933. uint numPasses;
  10934. /* readonly */
  10935. Array<String> passNames;
  10936. /* readonly */
  10937. Array<Pass> passes;
  10938. /* readonly */
  10939. int refs;
  10940. /* readonly */
  10941. bool supported;
  10942. /* readonly */
  10943. StringHash type;
  10944. /* readonly */
  10945. String typeName;
  10946. /* readonly */
  10947. uint useTimer;
  10948. /* readonly */
  10949. int weakRefs;
  10950. };
  10951. class TechniqueEntry
  10952. {
  10953. // Properties:
  10954. float lodDistance;
  10955. int qualityLevel;
  10956. Technique technique;
  10957. };
  10958. class Terrain
  10959. {
  10960. // Methods:
  10961. void ApplyAttributes();
  10962. void ApplyHeightMap();
  10963. void DrawDebugGeometry(DebugRenderer, bool);
  10964. Variant GetAttribute(const String&) const;
  10965. ValueAnimation GetAttributeAnimation(const String&) const;
  10966. float GetAttributeAnimationSpeed(const String&) const;
  10967. float GetAttributeAnimationTime(const String&) const;
  10968. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10969. Variant GetAttributeDefault(const String&) const;
  10970. float GetHeight(const Vector3&) const;
  10971. bool GetInterceptNetworkUpdate(const String&) const;
  10972. Vector3 GetNormal(const Vector3&) const;
  10973. TerrainPatch GetPatch(int, int) const;
  10974. bool HasSubscribedToEvent(Object, const String&);
  10975. bool HasSubscribedToEvent(const String&);
  10976. bool Load(File, bool = false);
  10977. bool Load(VectorBuffer&, bool = false);
  10978. bool LoadJSON(const JSONValue&, bool = false);
  10979. bool LoadXML(const XMLElement&, bool = false);
  10980. void MarkNetworkUpdate() const;
  10981. void Remove();
  10982. void RemoveAttributeAnimation(const String&);
  10983. void RemoveInstanceDefault();
  10984. void RemoveObjectAnimation();
  10985. void ResetToDefault();
  10986. bool Save(File) const;
  10987. bool Save(VectorBuffer&) const;
  10988. bool SaveJSON(JSONValue&) const;
  10989. bool SaveXML(XMLElement&) const;
  10990. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10991. void SetAnimationTime(float);
  10992. bool SetAttribute(const String&, const Variant&);
  10993. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10994. void SetAttributeAnimationSpeed(const String&, float);
  10995. void SetAttributeAnimationTime(const String&, float);
  10996. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10997. void SetInterceptNetworkUpdate(const String&, bool);
  10998. IntVector2 WorldToHeightMap(const Vector3&) const;
  10999. // Properties:
  11000. bool animationEnabled;
  11001. /* readonly */
  11002. Array<Variant> attributeDefaults;
  11003. /* readonly */
  11004. Array<AttributeInfo> attributeInfos;
  11005. Array<Variant> attributes;
  11006. bool castShadows;
  11007. /* readonly */
  11008. String category;
  11009. float drawDistance;
  11010. bool enabled;
  11011. /* readonly */
  11012. bool enabledEffective;
  11013. Image heightMap;
  11014. /* readonly */
  11015. uint id;
  11016. uint lightMask;
  11017. float lodBias;
  11018. Material material;
  11019. uint maxLights;
  11020. uint maxLodLevels;
  11021. /* readonly */
  11022. Node node;
  11023. /* readonly */
  11024. uint numAttributes;
  11025. /* readonly */
  11026. IntVector2 numPatches;
  11027. /* readonly */
  11028. IntVector2 numVertices;
  11029. ObjectAnimation objectAnimation;
  11030. bool occludee;
  11031. bool occluder;
  11032. uint occlusionLodLevel;
  11033. int patchSize;
  11034. /* readonly */
  11035. Array<TerrainPatch> patches;
  11036. /* readonly */
  11037. int refs;
  11038. float shadowDistance;
  11039. uint shadowMask;
  11040. bool smoothing;
  11041. Vector3 spacing;
  11042. bool temporary;
  11043. /* readonly */
  11044. StringHash type;
  11045. /* readonly */
  11046. String typeName;
  11047. uint viewMask;
  11048. /* readonly */
  11049. int weakRefs;
  11050. uint zoneMask;
  11051. };
  11052. class TerrainPatch
  11053. {
  11054. // Methods:
  11055. void ApplyAttributes();
  11056. void DrawDebugGeometry(DebugRenderer, bool);
  11057. Variant GetAttribute(const String&) const;
  11058. ValueAnimation GetAttributeAnimation(const String&) const;
  11059. float GetAttributeAnimationSpeed(const String&) const;
  11060. float GetAttributeAnimationTime(const String&) const;
  11061. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11062. Variant GetAttributeDefault(const String&) const;
  11063. bool GetInterceptNetworkUpdate(const String&) const;
  11064. bool HasSubscribedToEvent(Object, const String&);
  11065. bool HasSubscribedToEvent(const String&);
  11066. bool IsInView(Camera) const;
  11067. bool Load(File, bool = false);
  11068. bool Load(VectorBuffer&, bool = false);
  11069. bool LoadJSON(const JSONValue&, bool = false);
  11070. bool LoadXML(const XMLElement&, bool = false);
  11071. void MarkNetworkUpdate() const;
  11072. void Remove();
  11073. void RemoveAttributeAnimation(const String&);
  11074. void RemoveInstanceDefault();
  11075. void RemoveObjectAnimation();
  11076. void ResetToDefault();
  11077. bool Save(File) const;
  11078. bool Save(VectorBuffer&) const;
  11079. bool SaveJSON(JSONValue&) const;
  11080. bool SaveXML(XMLElement&) const;
  11081. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11082. void SetAnimationTime(float);
  11083. bool SetAttribute(const String&, const Variant&);
  11084. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11085. void SetAttributeAnimationSpeed(const String&, float);
  11086. void SetAttributeAnimationTime(const String&, float);
  11087. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11088. void SetInterceptNetworkUpdate(const String&, bool);
  11089. // Properties:
  11090. bool animationEnabled;
  11091. /* readonly */
  11092. Array<Variant> attributeDefaults;
  11093. /* readonly */
  11094. Array<AttributeInfo> attributeInfos;
  11095. Array<Variant> attributes;
  11096. /* readonly */
  11097. BoundingBox boundingBox;
  11098. bool castShadows;
  11099. /* readonly */
  11100. String category;
  11101. float drawDistance;
  11102. bool enabled;
  11103. /* readonly */
  11104. bool enabledEffective;
  11105. /* readonly */
  11106. uint id;
  11107. /* readonly */
  11108. bool inView;
  11109. uint lightMask;
  11110. float lodBias;
  11111. uint maxLights;
  11112. /* readonly */
  11113. Node node;
  11114. /* readonly */
  11115. uint numAttributes;
  11116. ObjectAnimation objectAnimation;
  11117. bool occludee;
  11118. bool occluder;
  11119. /* readonly */
  11120. int refs;
  11121. float shadowDistance;
  11122. uint shadowMask;
  11123. bool temporary;
  11124. /* readonly */
  11125. StringHash type;
  11126. /* readonly */
  11127. String typeName;
  11128. uint viewMask;
  11129. /* readonly */
  11130. int weakRefs;
  11131. /* readonly */
  11132. BoundingBox worldBoundingBox;
  11133. uint zoneMask;
  11134. };
  11135. class Text
  11136. {
  11137. // Methods:
  11138. void AddChild(UIElement);
  11139. void AddTag(const String&);
  11140. void AddTags(const String&, int8 = ';');
  11141. void ApplyAttributes();
  11142. void BringToFront();
  11143. void ClearSelection();
  11144. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11145. void DisableLayoutUpdate();
  11146. IntVector2 ElementToScreen(const IntVector2&);
  11147. void EnableLayoutUpdate();
  11148. uint FindChild(UIElement) const;
  11149. Variant GetAttribute(const String&) const;
  11150. ValueAnimation GetAttributeAnimation(const String&) const;
  11151. float GetAttributeAnimationSpeed(const String&) const;
  11152. float GetAttributeAnimationTime(const String&) const;
  11153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11154. Variant GetAttributeDefault(const String&) const;
  11155. UIElement GetChild(const String&, bool = false) const;
  11156. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11157. Array<UIElement> GetChildren(bool = false) const;
  11158. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11159. UIElement GetElementEventSender() const;
  11160. bool GetInterceptNetworkUpdate(const String&) const;
  11161. uint GetNumChildren(bool) const;
  11162. bool HasSubscribedToEvent(Object, const String&);
  11163. bool HasSubscribedToEvent(const String&);
  11164. bool HasTag(const String&) const;
  11165. void InsertChild(uint, UIElement);
  11166. bool IsInside(IntVector2, bool);
  11167. bool IsInsideCombined(IntVector2, bool);
  11168. bool Load(File, bool = false);
  11169. bool Load(VectorBuffer&, bool = false);
  11170. bool LoadChildXML(XMLFile, XMLFile = null);
  11171. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11172. bool LoadJSON(const JSONValue&, bool = false);
  11173. bool LoadXML(File);
  11174. bool LoadXML(VectorBuffer&);
  11175. bool LoadXML(XMLFile, XMLFile);
  11176. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11177. bool LoadXML(const XMLElement&, bool = false);
  11178. void MarkNetworkUpdate() const;
  11179. void Remove();
  11180. void RemoveAllChildren();
  11181. void RemoveAllTags();
  11182. void RemoveAttributeAnimation(const String&);
  11183. void RemoveChild(UIElement, uint = 0);
  11184. void RemoveChild(uint);
  11185. void RemoveInstanceDefault();
  11186. void RemoveObjectAnimation();
  11187. bool RemoveTag(const String&);
  11188. void ResetDeepEnabled();
  11189. void ResetToDefault();
  11190. bool Save(File) const;
  11191. bool Save(VectorBuffer&) const;
  11192. bool SaveJSON(JSONValue&) const;
  11193. bool SaveXML(File, const String& = "\t");
  11194. bool SaveXML(VectorBuffer&, const String& = "\t");
  11195. bool SaveXML(XMLElement&) const;
  11196. IntVector2 ScreenToElement(const IntVector2&);
  11197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11198. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11199. void SetAnimationTime(float);
  11200. bool SetAttribute(const String&, const Variant&);
  11201. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11202. void SetAttributeAnimationSpeed(const String&, float);
  11203. void SetAttributeAnimationTime(const String&, float);
  11204. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11205. void SetDeepEnabled(bool);
  11206. void SetEnabledRecursive(bool);
  11207. void SetFixedHeight(int);
  11208. void SetFixedSize(int, int);
  11209. void SetFixedWidth(int);
  11210. bool SetFont(Font, int);
  11211. bool SetFont(const String&, int);
  11212. void SetInterceptNetworkUpdate(const String&, bool);
  11213. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11214. void SetMaxSize(int, int);
  11215. void SetMinSize(int, int);
  11216. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11217. void SetPosition(int, int);
  11218. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11219. void SetSize(int, int);
  11220. bool SetStyle(const String&, XMLFile = null);
  11221. bool SetStyle(const XMLElement&);
  11222. bool SetStyleAuto(XMLFile = null);
  11223. void UpdateLayout();
  11224. const Variant& GetVar(const StringHash&);
  11225. // Properties:
  11226. bool animationEnabled;
  11227. /* readonly */
  11228. Array<Variant> attributeDefaults;
  11229. /* readonly */
  11230. Array<AttributeInfo> attributeInfos;
  11231. Array<Variant> attributes;
  11232. bool autoLocalizable;
  11233. bool bringToBack;
  11234. bool bringToFront;
  11235. /* readonly */
  11236. String category;
  11237. /* readonly */
  11238. Array<IntVector2> charPositions;
  11239. /* readonly */
  11240. Array<IntVector2> charSizes;
  11241. /* readonly */
  11242. IntVector2 childOffset;
  11243. /* readonly */
  11244. Array<UIElement> children;
  11245. IntRect clipBorder;
  11246. bool clipChildren;
  11247. /* writeonly */
  11248. Color color;
  11249. /* readonly */
  11250. bool colorGradient;
  11251. Array<Color> colors;
  11252. /* readonly */
  11253. IntRect combinedScreenRect;
  11254. XMLFile defaultStyle;
  11255. /* readonly */
  11256. float derivedOpacity;
  11257. /* readonly */
  11258. uint dragButtonCombo;
  11259. /* readonly */
  11260. int dragButtonCount;
  11261. uint dragDropMode;
  11262. bool editable;
  11263. Color effectColor;
  11264. bool effectRoundStroke;
  11265. IntVector2 effectShadowOffset;
  11266. int effectStrokeThickness;
  11267. bool elementEventSender;
  11268. bool enabled;
  11269. /* readonly */
  11270. bool enabledSelf;
  11271. /* readonly */
  11272. bool fixedHeight;
  11273. /* readonly */
  11274. bool fixedSize;
  11275. /* readonly */
  11276. bool fixedWidth;
  11277. bool focus;
  11278. FocusMode focusMode;
  11279. /* readonly */
  11280. Font font;
  11281. int fontSize;
  11282. int height;
  11283. HorizontalAlignment horizontalAlignment;
  11284. Color hoverColor;
  11285. /* readonly */
  11286. bool hovering;
  11287. int indent;
  11288. int indentSpacing;
  11289. /* readonly */
  11290. int indentWidth;
  11291. bool internal;
  11292. IntRect layoutBorder;
  11293. Vector2 layoutFlexScale;
  11294. LayoutMode layoutMode;
  11295. int layoutSpacing;
  11296. int maxHeight;
  11297. IntVector2 maxSize;
  11298. int maxWidth;
  11299. int minHeight;
  11300. IntVector2 minSize;
  11301. int minWidth;
  11302. String name;
  11303. /* readonly */
  11304. uint numAllChildren;
  11305. /* readonly */
  11306. uint numAttributes;
  11307. /* readonly */
  11308. uint numChars;
  11309. /* readonly */
  11310. uint numChildren;
  11311. /* readonly */
  11312. uint numRows;
  11313. ObjectAnimation objectAnimation;
  11314. float opacity;
  11315. UIElement parent;
  11316. IntVector2 position;
  11317. int priority;
  11318. /* readonly */
  11319. int refs;
  11320. /* readonly */
  11321. UIElement root;
  11322. /* readonly */
  11323. int rowHeight;
  11324. float rowSpacing;
  11325. /* readonly */
  11326. Array<int> rowWidths;
  11327. /* readonly */
  11328. IntVector2 screenPosition;
  11329. bool selected;
  11330. Color selectionColor;
  11331. /* readonly */
  11332. uint selectionLength;
  11333. /* readonly */
  11334. uint selectionStart;
  11335. IntVector2 size;
  11336. bool sortChildren;
  11337. String style;
  11338. /* readonly */
  11339. Array<String> tags;
  11340. bool temporary;
  11341. String text;
  11342. HorizontalAlignment textAlignment;
  11343. TextEffect textEffect;
  11344. TraversalMode traversalMode;
  11345. /* readonly */
  11346. StringHash type;
  11347. /* readonly */
  11348. String typeName;
  11349. bool useDerivedOpacity;
  11350. /* readonly */
  11351. VariantMap vars;
  11352. VerticalAlignment verticalAlignment;
  11353. bool visible;
  11354. /* readonly */
  11355. bool visibleEffective;
  11356. /* readonly */
  11357. int weakRefs;
  11358. int width;
  11359. bool wordwrap;
  11360. };
  11361. class Text3D
  11362. {
  11363. // Methods:
  11364. void ApplyAttributes();
  11365. void DrawDebugGeometry(DebugRenderer, bool);
  11366. Variant GetAttribute(const String&) const;
  11367. ValueAnimation GetAttributeAnimation(const String&) const;
  11368. float GetAttributeAnimationSpeed(const String&) const;
  11369. float GetAttributeAnimationTime(const String&) const;
  11370. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11371. Variant GetAttributeDefault(const String&) const;
  11372. bool GetInterceptNetworkUpdate(const String&) const;
  11373. bool HasSubscribedToEvent(Object, const String&);
  11374. bool HasSubscribedToEvent(const String&);
  11375. bool IsInView(Camera) const;
  11376. bool Load(File, bool = false);
  11377. bool Load(VectorBuffer&, bool = false);
  11378. bool LoadJSON(const JSONValue&, bool = false);
  11379. bool LoadXML(const XMLElement&, bool = false);
  11380. void MarkNetworkUpdate() const;
  11381. void Remove();
  11382. void RemoveAttributeAnimation(const String&);
  11383. void RemoveInstanceDefault();
  11384. void RemoveObjectAnimation();
  11385. void ResetToDefault();
  11386. bool Save(File) const;
  11387. bool Save(VectorBuffer&) const;
  11388. bool SaveJSON(JSONValue&) const;
  11389. bool SaveXML(XMLElement&) const;
  11390. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11391. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11392. void SetAnimationTime(float);
  11393. bool SetAttribute(const String&, const Variant&);
  11394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11395. void SetAttributeAnimationSpeed(const String&, float);
  11396. void SetAttributeAnimationTime(const String&, float);
  11397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11398. bool SetFont(Font, int);
  11399. bool SetFont(const String&, int);
  11400. void SetInterceptNetworkUpdate(const String&, bool);
  11401. // Properties:
  11402. bool animationEnabled;
  11403. /* readonly */
  11404. Array<Variant> attributeDefaults;
  11405. /* readonly */
  11406. Array<AttributeInfo> attributeInfos;
  11407. Array<Variant> attributes;
  11408. /* readonly */
  11409. BoundingBox boundingBox;
  11410. bool castShadows;
  11411. /* readonly */
  11412. String category;
  11413. /* readonly */
  11414. Array<IntVector2> charPositions;
  11415. /* readonly */
  11416. Array<IntVector2> charSizes;
  11417. /* writeonly */
  11418. Color color;
  11419. Array<Color> colors;
  11420. float drawDistance;
  11421. Color effectColor;
  11422. float effectDepthBias;
  11423. bool effectRoundStroke;
  11424. IntVector2 effectShadowOffset;
  11425. int effectStrokeThickness;
  11426. bool enabled;
  11427. /* readonly */
  11428. bool enabledEffective;
  11429. FaceCameraMode faceCameraMode;
  11430. bool fixedScreenSize;
  11431. /* readonly */
  11432. Font font;
  11433. int fontSize;
  11434. HorizontalAlignment horizontalAlignment;
  11435. /* readonly */
  11436. uint id;
  11437. /* readonly */
  11438. bool inView;
  11439. uint lightMask;
  11440. float lodBias;
  11441. Material material;
  11442. uint maxLights;
  11443. /* readonly */
  11444. Node node;
  11445. /* readonly */
  11446. uint numAttributes;
  11447. /* readonly */
  11448. uint numChars;
  11449. /* readonly */
  11450. uint numRows;
  11451. ObjectAnimation objectAnimation;
  11452. bool occludee;
  11453. bool occluder;
  11454. float opacity;
  11455. /* readonly */
  11456. int refs;
  11457. /* readonly */
  11458. int rowHeight;
  11459. float rowSpacing;
  11460. /* readonly */
  11461. Array<int> rowWidths;
  11462. float shadowDistance;
  11463. uint shadowMask;
  11464. bool temporary;
  11465. String text;
  11466. HorizontalAlignment textAlignment;
  11467. TextEffect textEffect;
  11468. /* readonly */
  11469. StringHash type;
  11470. /* readonly */
  11471. String typeName;
  11472. VerticalAlignment verticalAlignment;
  11473. uint viewMask;
  11474. /* readonly */
  11475. int weakRefs;
  11476. int width;
  11477. bool wordwrap;
  11478. /* readonly */
  11479. BoundingBox worldBoundingBox;
  11480. uint zoneMask;
  11481. };
  11482. class Texture
  11483. {
  11484. // Methods:
  11485. void ClearDataLost();
  11486. bool HasSubscribedToEvent(Object, const String&);
  11487. bool HasSubscribedToEvent(const String&);
  11488. bool Load(File);
  11489. bool Load(VectorBuffer&);
  11490. bool Save(File) const;
  11491. bool Save(VectorBuffer&) const;
  11492. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11493. void SetNumLevels(uint);
  11494. // Properties:
  11495. Array<TextureAddressMode> addressMode;
  11496. Texture backupTexture;
  11497. Color borderColor;
  11498. /* readonly */
  11499. String category;
  11500. /* readonly */
  11501. uint components;
  11502. /* readonly */
  11503. bool compressed;
  11504. /* readonly */
  11505. bool dataLost;
  11506. TextureFilterMode filterMode;
  11507. /* readonly */
  11508. uint format;
  11509. /* readonly */
  11510. int height;
  11511. /* readonly */
  11512. Array<int> levelHeight;
  11513. /* readonly */
  11514. Array<int> levelWidth;
  11515. /* readonly */
  11516. uint levels;
  11517. /* readonly */
  11518. uint memoryUse;
  11519. Array<int> mipsToSkip;
  11520. String name;
  11521. /* readonly */
  11522. int refs;
  11523. bool sRGB;
  11524. /* readonly */
  11525. StringHash type;
  11526. /* readonly */
  11527. String typeName;
  11528. /* readonly */
  11529. TextureUsage usage;
  11530. /* readonly */
  11531. uint useTimer;
  11532. /* readonly */
  11533. int weakRefs;
  11534. /* readonly */
  11535. int width;
  11536. };
  11537. class Texture2D
  11538. {
  11539. // Methods:
  11540. void ClearDataLost();
  11541. Image GetImage() const;
  11542. bool HasSubscribedToEvent(Object, const String&);
  11543. bool HasSubscribedToEvent(const String&);
  11544. bool Load(File);
  11545. bool Load(VectorBuffer&);
  11546. bool Save(File) const;
  11547. bool Save(VectorBuffer&) const;
  11548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11549. bool SetData(Image, bool = false);
  11550. void SetNumLevels(uint);
  11551. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11552. // Properties:
  11553. Array<TextureAddressMode> addressMode;
  11554. Texture backupTexture;
  11555. Color borderColor;
  11556. /* readonly */
  11557. String category;
  11558. /* readonly */
  11559. uint components;
  11560. /* readonly */
  11561. bool compressed;
  11562. /* readonly */
  11563. bool dataLost;
  11564. TextureFilterMode filterMode;
  11565. /* readonly */
  11566. uint format;
  11567. /* readonly */
  11568. int height;
  11569. /* readonly */
  11570. Array<int> levelHeight;
  11571. /* readonly */
  11572. Array<int> levelWidth;
  11573. /* readonly */
  11574. uint levels;
  11575. /* readonly */
  11576. uint memoryUse;
  11577. Array<int> mipsToSkip;
  11578. String name;
  11579. /* readonly */
  11580. int refs;
  11581. /* readonly */
  11582. RenderSurface renderSurface;
  11583. bool sRGB;
  11584. /* readonly */
  11585. StringHash type;
  11586. /* readonly */
  11587. String typeName;
  11588. /* readonly */
  11589. TextureUsage usage;
  11590. /* readonly */
  11591. uint useTimer;
  11592. /* readonly */
  11593. int weakRefs;
  11594. /* readonly */
  11595. int width;
  11596. };
  11597. class Texture2DArray
  11598. {
  11599. // Methods:
  11600. void ClearDataLost();
  11601. bool HasSubscribedToEvent(Object, const String&);
  11602. bool HasSubscribedToEvent(const String&);
  11603. bool Load(File);
  11604. bool Load(VectorBuffer&);
  11605. bool Save(File) const;
  11606. bool Save(VectorBuffer&) const;
  11607. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11608. bool SetData(uint, Image, bool = false);
  11609. void SetNumLevels(uint);
  11610. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11611. // Properties:
  11612. Array<TextureAddressMode> addressMode;
  11613. Texture backupTexture;
  11614. Color borderColor;
  11615. /* readonly */
  11616. String category;
  11617. /* readonly */
  11618. uint components;
  11619. /* readonly */
  11620. bool compressed;
  11621. /* readonly */
  11622. bool dataLost;
  11623. TextureFilterMode filterMode;
  11624. /* readonly */
  11625. uint format;
  11626. /* readonly */
  11627. int height;
  11628. uint layers;
  11629. /* readonly */
  11630. Array<int> levelHeight;
  11631. /* readonly */
  11632. Array<int> levelWidth;
  11633. /* readonly */
  11634. uint levels;
  11635. /* readonly */
  11636. uint memoryUse;
  11637. Array<int> mipsToSkip;
  11638. String name;
  11639. /* readonly */
  11640. int refs;
  11641. /* readonly */
  11642. RenderSurface renderSurface;
  11643. bool sRGB;
  11644. /* readonly */
  11645. StringHash type;
  11646. /* readonly */
  11647. String typeName;
  11648. /* readonly */
  11649. TextureUsage usage;
  11650. /* readonly */
  11651. uint useTimer;
  11652. /* readonly */
  11653. int weakRefs;
  11654. /* readonly */
  11655. int width;
  11656. };
  11657. class Texture3D
  11658. {
  11659. // Methods:
  11660. void ClearDataLost();
  11661. bool HasSubscribedToEvent(Object, const String&);
  11662. bool HasSubscribedToEvent(const String&);
  11663. bool Load(File);
  11664. bool Load(VectorBuffer&);
  11665. bool Save(File) const;
  11666. bool Save(VectorBuffer&) const;
  11667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11668. bool SetData(Image, bool = false);
  11669. void SetNumLevels(uint);
  11670. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11671. // Properties:
  11672. Array<TextureAddressMode> addressMode;
  11673. Texture backupTexture;
  11674. Color borderColor;
  11675. /* readonly */
  11676. String category;
  11677. /* readonly */
  11678. uint components;
  11679. /* readonly */
  11680. bool compressed;
  11681. /* readonly */
  11682. bool dataLost;
  11683. TextureFilterMode filterMode;
  11684. /* readonly */
  11685. uint format;
  11686. /* readonly */
  11687. int height;
  11688. /* readonly */
  11689. Array<int> levelHeight;
  11690. /* readonly */
  11691. Array<int> levelWidth;
  11692. /* readonly */
  11693. uint levels;
  11694. /* readonly */
  11695. uint memoryUse;
  11696. Array<int> mipsToSkip;
  11697. String name;
  11698. /* readonly */
  11699. int refs;
  11700. bool sRGB;
  11701. /* readonly */
  11702. StringHash type;
  11703. /* readonly */
  11704. String typeName;
  11705. /* readonly */
  11706. TextureUsage usage;
  11707. /* readonly */
  11708. uint useTimer;
  11709. /* readonly */
  11710. int weakRefs;
  11711. /* readonly */
  11712. int width;
  11713. };
  11714. class TextureCube
  11715. {
  11716. // Methods:
  11717. void ClearDataLost();
  11718. Image GetImage(CubeMapFace) const;
  11719. bool HasSubscribedToEvent(Object, const String&);
  11720. bool HasSubscribedToEvent(const String&);
  11721. bool Load(File);
  11722. bool Load(VectorBuffer&);
  11723. bool Save(File) const;
  11724. bool Save(VectorBuffer&) const;
  11725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11726. bool SetData(CubeMapFace, Image, bool = false);
  11727. void SetNumLevels(uint);
  11728. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11729. // Properties:
  11730. Array<TextureAddressMode> addressMode;
  11731. Texture backupTexture;
  11732. Color borderColor;
  11733. /* readonly */
  11734. String category;
  11735. /* readonly */
  11736. uint components;
  11737. /* readonly */
  11738. bool compressed;
  11739. /* readonly */
  11740. bool dataLost;
  11741. TextureFilterMode filterMode;
  11742. /* readonly */
  11743. uint format;
  11744. /* readonly */
  11745. int height;
  11746. /* readonly */
  11747. Array<int> levelHeight;
  11748. /* readonly */
  11749. Array<int> levelWidth;
  11750. /* readonly */
  11751. uint levels;
  11752. /* readonly */
  11753. uint memoryUse;
  11754. Array<int> mipsToSkip;
  11755. String name;
  11756. /* readonly */
  11757. int refs;
  11758. /* readonly */
  11759. Array<RenderSurface> renderSurfaces;
  11760. bool sRGB;
  11761. /* readonly */
  11762. StringHash type;
  11763. /* readonly */
  11764. String typeName;
  11765. /* readonly */
  11766. TextureUsage usage;
  11767. /* readonly */
  11768. uint useTimer;
  11769. /* readonly */
  11770. int weakRefs;
  11771. /* readonly */
  11772. int width;
  11773. };
  11774. class TextureFrame
  11775. {
  11776. // Properties:
  11777. float time;
  11778. Rect uv;
  11779. };
  11780. class Tile2D
  11781. {
  11782. // Methods:
  11783. bool HasProperty(const String&) const;
  11784. const String& GetProperty(const String&) const;
  11785. // Properties:
  11786. /* readonly */
  11787. int gid;
  11788. /* readonly */
  11789. int refs;
  11790. /* readonly */
  11791. Sprite2D sprite;
  11792. /* readonly */
  11793. int weakRefs;
  11794. };
  11795. class TileMap2D
  11796. {
  11797. // Methods:
  11798. void ApplyAttributes();
  11799. void DrawDebugGeometry(DebugRenderer, bool);
  11800. Variant GetAttribute(const String&) const;
  11801. ValueAnimation GetAttributeAnimation(const String&) const;
  11802. float GetAttributeAnimationSpeed(const String&) const;
  11803. float GetAttributeAnimationTime(const String&) const;
  11804. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11805. Variant GetAttributeDefault(const String&) const;
  11806. bool GetInterceptNetworkUpdate(const String&) const;
  11807. TileMapLayer2D GetLayer(uint) const;
  11808. bool HasSubscribedToEvent(Object, const String&);
  11809. bool HasSubscribedToEvent(const String&);
  11810. bool Load(File, bool = false);
  11811. bool Load(VectorBuffer&, bool = false);
  11812. bool LoadJSON(const JSONValue&, bool = false);
  11813. bool LoadXML(const XMLElement&, bool = false);
  11814. void MarkNetworkUpdate() const;
  11815. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11816. void Remove();
  11817. void RemoveAttributeAnimation(const String&);
  11818. void RemoveInstanceDefault();
  11819. void RemoveObjectAnimation();
  11820. void ResetToDefault();
  11821. bool Save(File) const;
  11822. bool Save(VectorBuffer&) const;
  11823. bool SaveJSON(JSONValue&) const;
  11824. bool SaveXML(XMLElement&) const;
  11825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11826. void SetAnimationTime(float);
  11827. bool SetAttribute(const String&, const Variant&);
  11828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11829. void SetAttributeAnimationSpeed(const String&, float);
  11830. void SetAttributeAnimationTime(const String&, float);
  11831. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11832. void SetInterceptNetworkUpdate(const String&, bool);
  11833. Vector2 TileIndexToPosition(int, int) const;
  11834. // Properties:
  11835. bool animationEnabled;
  11836. /* readonly */
  11837. Array<Variant> attributeDefaults;
  11838. /* readonly */
  11839. Array<AttributeInfo> attributeInfos;
  11840. Array<Variant> attributes;
  11841. /* readonly */
  11842. String category;
  11843. bool enabled;
  11844. /* readonly */
  11845. bool enabledEffective;
  11846. /* readonly */
  11847. uint id;
  11848. /* readonly */
  11849. TileMapInfo2D info;
  11850. /* readonly */
  11851. Node node;
  11852. /* readonly */
  11853. uint numAttributes;
  11854. /* readonly */
  11855. uint numLayers;
  11856. ObjectAnimation objectAnimation;
  11857. /* readonly */
  11858. int refs;
  11859. bool temporary;
  11860. TmxFile2D tmxFile;
  11861. /* readonly */
  11862. StringHash type;
  11863. /* readonly */
  11864. String typeName;
  11865. /* readonly */
  11866. int weakRefs;
  11867. };
  11868. class TileMapInfo2D
  11869. {
  11870. // Properties:
  11871. int height;
  11872. /* readonly */
  11873. float mapHeight;
  11874. /* readonly */
  11875. float mapWidth;
  11876. Orientation2D orientation;
  11877. float tileHeight;
  11878. float tileWidth;
  11879. int width;
  11880. };
  11881. class TileMapLayer2D
  11882. {
  11883. // Methods:
  11884. void ApplyAttributes();
  11885. void DrawDebugGeometry(DebugRenderer, bool);
  11886. Variant GetAttribute(const String&) const;
  11887. ValueAnimation GetAttributeAnimation(const String&) const;
  11888. float GetAttributeAnimationSpeed(const String&) const;
  11889. float GetAttributeAnimationTime(const String&) const;
  11890. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11891. Variant GetAttributeDefault(const String&) const;
  11892. bool GetInterceptNetworkUpdate(const String&) const;
  11893. TileMapObject2D GetObject(uint) const;
  11894. Node GetObjectNode(uint) const;
  11895. Tile2D GetTile(int, int) const;
  11896. Node GetTileNode(int, int) const;
  11897. bool HasProperty(const String&) const;
  11898. bool HasSubscribedToEvent(Object, const String&);
  11899. bool HasSubscribedToEvent(const String&);
  11900. bool Load(File, bool = false);
  11901. bool Load(VectorBuffer&, bool = false);
  11902. bool LoadJSON(const JSONValue&, bool = false);
  11903. bool LoadXML(const XMLElement&, bool = false);
  11904. void MarkNetworkUpdate() const;
  11905. void Remove();
  11906. void RemoveAttributeAnimation(const String&);
  11907. void RemoveInstanceDefault();
  11908. void RemoveObjectAnimation();
  11909. void ResetToDefault();
  11910. bool Save(File) const;
  11911. bool Save(VectorBuffer&) const;
  11912. bool SaveJSON(JSONValue&) const;
  11913. bool SaveXML(XMLElement&) const;
  11914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11915. void SetAnimationTime(float);
  11916. bool SetAttribute(const String&, const Variant&);
  11917. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11918. void SetAttributeAnimationSpeed(const String&, float);
  11919. void SetAttributeAnimationTime(const String&, float);
  11920. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11921. void SetInterceptNetworkUpdate(const String&, bool);
  11922. const String& GetProperty(const String&) const;
  11923. // Properties:
  11924. bool animationEnabled;
  11925. /* readonly */
  11926. Array<Variant> attributeDefaults;
  11927. /* readonly */
  11928. Array<AttributeInfo> attributeInfos;
  11929. Array<Variant> attributes;
  11930. /* readonly */
  11931. String category;
  11932. int drawOrder;
  11933. bool enabled;
  11934. /* readonly */
  11935. bool enabledEffective;
  11936. /* readonly */
  11937. int height;
  11938. /* readonly */
  11939. uint id;
  11940. /* readonly */
  11941. Node imageNode;
  11942. /* readonly */
  11943. TileMapLayerType2D layerType;
  11944. /* readonly */
  11945. Node node;
  11946. /* readonly */
  11947. uint numAttributes;
  11948. /* readonly */
  11949. uint numObjects;
  11950. ObjectAnimation objectAnimation;
  11951. /* readonly */
  11952. int refs;
  11953. bool temporary;
  11954. /* readonly */
  11955. StringHash type;
  11956. /* readonly */
  11957. String typeName;
  11958. bool visible;
  11959. /* readonly */
  11960. int weakRefs;
  11961. /* readonly */
  11962. int width;
  11963. };
  11964. class TileMapObject2D
  11965. {
  11966. // Methods:
  11967. bool HasProperty(const String&) const;
  11968. const String& GetProperty(const String&) const;
  11969. const Vector2& GetPoint(uint) const;
  11970. // Properties:
  11971. /* readonly */
  11972. String name;
  11973. /* readonly */
  11974. uint numPoints;
  11975. /* readonly */
  11976. TileObjectType2D objectType;
  11977. /* readonly */
  11978. Vector2 position;
  11979. /* readonly */
  11980. int refs;
  11981. /* readonly */
  11982. Vector2 size;
  11983. /* readonly */
  11984. int tileGid;
  11985. /* readonly */
  11986. Sprite2D tileSprite;
  11987. /* readonly */
  11988. String type;
  11989. /* readonly */
  11990. int weakRefs;
  11991. };
  11992. class Time
  11993. {
  11994. // Methods:
  11995. bool HasSubscribedToEvent(Object, const String&);
  11996. bool HasSubscribedToEvent(const String&);
  11997. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11998. // Properties:
  11999. /* readonly */
  12000. String category;
  12001. /* readonly */
  12002. float elapsedTime;
  12003. /* readonly */
  12004. uint frameNumber;
  12005. /* readonly */
  12006. int refs;
  12007. /* readonly */
  12008. uint systemTime;
  12009. /* readonly */
  12010. uint timeSinceEpoch;
  12011. /* readonly */
  12012. String timeStamp;
  12013. /* readonly */
  12014. float timeStep;
  12015. /* readonly */
  12016. StringHash type;
  12017. /* readonly */
  12018. String typeName;
  12019. /* readonly */
  12020. int weakRefs;
  12021. };
  12022. class Timer
  12023. {
  12024. // Methods:
  12025. uint GetMSec(bool);
  12026. void Reset();
  12027. };
  12028. class TmxFile2D
  12029. {
  12030. // Methods:
  12031. bool HasSubscribedToEvent(Object, const String&);
  12032. bool HasSubscribedToEvent(const String&);
  12033. bool Load(File);
  12034. bool Load(VectorBuffer&);
  12035. bool Save(File) const;
  12036. bool Save(VectorBuffer&) const;
  12037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12038. // Properties:
  12039. /* readonly */
  12040. String category;
  12041. /* readonly */
  12042. uint memoryUse;
  12043. String name;
  12044. /* readonly */
  12045. int refs;
  12046. /* readonly */
  12047. StringHash type;
  12048. /* readonly */
  12049. String typeName;
  12050. /* readonly */
  12051. uint useTimer;
  12052. /* readonly */
  12053. int weakRefs;
  12054. };
  12055. class ToolTip
  12056. {
  12057. // Methods:
  12058. void AddChild(UIElement);
  12059. void AddTag(const String&);
  12060. void AddTags(const String&, int8 = ';');
  12061. void ApplyAttributes();
  12062. void BringToFront();
  12063. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12064. void DisableLayoutUpdate();
  12065. IntVector2 ElementToScreen(const IntVector2&);
  12066. void EnableLayoutUpdate();
  12067. uint FindChild(UIElement) const;
  12068. Variant GetAttribute(const String&) const;
  12069. ValueAnimation GetAttributeAnimation(const String&) const;
  12070. float GetAttributeAnimationSpeed(const String&) const;
  12071. float GetAttributeAnimationTime(const String&) const;
  12072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12073. Variant GetAttributeDefault(const String&) const;
  12074. UIElement GetChild(const String&, bool = false) const;
  12075. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12076. Array<UIElement> GetChildren(bool = false) const;
  12077. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12078. UIElement GetElementEventSender() const;
  12079. bool GetInterceptNetworkUpdate(const String&) const;
  12080. uint GetNumChildren(bool) const;
  12081. bool HasSubscribedToEvent(Object, const String&);
  12082. bool HasSubscribedToEvent(const String&);
  12083. bool HasTag(const String&) const;
  12084. void InsertChild(uint, UIElement);
  12085. bool IsInside(IntVector2, bool);
  12086. bool IsInsideCombined(IntVector2, bool);
  12087. bool Load(File, bool = false);
  12088. bool Load(VectorBuffer&, bool = false);
  12089. bool LoadChildXML(XMLFile, XMLFile = null);
  12090. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12091. bool LoadJSON(const JSONValue&, bool = false);
  12092. bool LoadXML(File);
  12093. bool LoadXML(VectorBuffer&);
  12094. bool LoadXML(XMLFile, XMLFile);
  12095. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12096. bool LoadXML(const XMLElement&, bool = false);
  12097. void MarkNetworkUpdate() const;
  12098. void Remove();
  12099. void RemoveAllChildren();
  12100. void RemoveAllTags();
  12101. void RemoveAttributeAnimation(const String&);
  12102. void RemoveChild(UIElement, uint = 0);
  12103. void RemoveChild(uint);
  12104. void RemoveInstanceDefault();
  12105. void RemoveObjectAnimation();
  12106. bool RemoveTag(const String&);
  12107. void ResetDeepEnabled();
  12108. void ResetToDefault();
  12109. bool Save(File) const;
  12110. bool Save(VectorBuffer&) const;
  12111. bool SaveJSON(JSONValue&) const;
  12112. bool SaveXML(File, const String& = "\t");
  12113. bool SaveXML(VectorBuffer&, const String& = "\t");
  12114. bool SaveXML(XMLElement&) const;
  12115. IntVector2 ScreenToElement(const IntVector2&);
  12116. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12117. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12118. void SetAnimationTime(float);
  12119. bool SetAttribute(const String&, const Variant&);
  12120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12121. void SetAttributeAnimationSpeed(const String&, float);
  12122. void SetAttributeAnimationTime(const String&, float);
  12123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12124. void SetDeepEnabled(bool);
  12125. void SetEnabledRecursive(bool);
  12126. void SetFixedHeight(int);
  12127. void SetFixedSize(int, int);
  12128. void SetFixedWidth(int);
  12129. void SetInterceptNetworkUpdate(const String&, bool);
  12130. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12131. void SetMaxSize(int, int);
  12132. void SetMinSize(int, int);
  12133. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12134. void SetPosition(int, int);
  12135. void SetSize(int, int);
  12136. bool SetStyle(const String&, XMLFile = null);
  12137. bool SetStyle(const XMLElement&);
  12138. bool SetStyleAuto(XMLFile = null);
  12139. void UpdateLayout();
  12140. const Variant& GetVar(const StringHash&);
  12141. // Properties:
  12142. bool animationEnabled;
  12143. /* readonly */
  12144. Array<Variant> attributeDefaults;
  12145. /* readonly */
  12146. Array<AttributeInfo> attributeInfos;
  12147. Array<Variant> attributes;
  12148. bool bringToBack;
  12149. bool bringToFront;
  12150. /* readonly */
  12151. String category;
  12152. /* readonly */
  12153. IntVector2 childOffset;
  12154. /* readonly */
  12155. Array<UIElement> children;
  12156. IntRect clipBorder;
  12157. bool clipChildren;
  12158. /* writeonly */
  12159. Color color;
  12160. /* readonly */
  12161. bool colorGradient;
  12162. Array<Color> colors;
  12163. /* readonly */
  12164. IntRect combinedScreenRect;
  12165. XMLFile defaultStyle;
  12166. float delay;
  12167. /* readonly */
  12168. float derivedOpacity;
  12169. /* readonly */
  12170. uint dragButtonCombo;
  12171. /* readonly */
  12172. int dragButtonCount;
  12173. uint dragDropMode;
  12174. bool editable;
  12175. bool elementEventSender;
  12176. bool enabled;
  12177. /* readonly */
  12178. bool enabledSelf;
  12179. /* readonly */
  12180. bool fixedHeight;
  12181. /* readonly */
  12182. bool fixedSize;
  12183. /* readonly */
  12184. bool fixedWidth;
  12185. bool focus;
  12186. FocusMode focusMode;
  12187. int height;
  12188. HorizontalAlignment horizontalAlignment;
  12189. /* readonly */
  12190. bool hovering;
  12191. int indent;
  12192. int indentSpacing;
  12193. /* readonly */
  12194. int indentWidth;
  12195. bool internal;
  12196. IntRect layoutBorder;
  12197. Vector2 layoutFlexScale;
  12198. LayoutMode layoutMode;
  12199. int layoutSpacing;
  12200. int maxHeight;
  12201. IntVector2 maxSize;
  12202. int maxWidth;
  12203. int minHeight;
  12204. IntVector2 minSize;
  12205. int minWidth;
  12206. String name;
  12207. /* readonly */
  12208. uint numAllChildren;
  12209. /* readonly */
  12210. uint numAttributes;
  12211. /* readonly */
  12212. uint numChildren;
  12213. ObjectAnimation objectAnimation;
  12214. float opacity;
  12215. UIElement parent;
  12216. IntVector2 position;
  12217. int priority;
  12218. /* readonly */
  12219. int refs;
  12220. /* readonly */
  12221. UIElement root;
  12222. /* readonly */
  12223. IntVector2 screenPosition;
  12224. bool selected;
  12225. IntVector2 size;
  12226. bool sortChildren;
  12227. String style;
  12228. /* readonly */
  12229. Array<String> tags;
  12230. bool temporary;
  12231. TraversalMode traversalMode;
  12232. /* readonly */
  12233. StringHash type;
  12234. /* readonly */
  12235. String typeName;
  12236. bool useDerivedOpacity;
  12237. /* readonly */
  12238. VariantMap vars;
  12239. VerticalAlignment verticalAlignment;
  12240. bool visible;
  12241. /* readonly */
  12242. bool visibleEffective;
  12243. /* readonly */
  12244. int weakRefs;
  12245. int width;
  12246. };
  12247. class TouchState
  12248. {
  12249. // Properties:
  12250. IntVector2 delta;
  12251. IntVector2 lastPosition;
  12252. IntVector2 position;
  12253. float pressure;
  12254. int touchID;
  12255. /* readonly */
  12256. UIElement touchedElement;
  12257. };
  12258. class UI
  12259. {
  12260. // Methods:
  12261. void Clear();
  12262. void DebugDraw(UIElement);
  12263. UIElement GetElementAt(const IntVector2&, bool = true);
  12264. UIElement GetElementAt(int, int, bool = true);
  12265. bool HasModalElement() const;
  12266. bool HasSubscribedToEvent(Object, const String&);
  12267. bool HasSubscribedToEvent(const String&);
  12268. bool IsDragging() const;
  12269. UIElement LoadLayout(File);
  12270. UIElement LoadLayout(File, XMLFile);
  12271. UIElement LoadLayout(VectorBuffer&);
  12272. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12273. UIElement LoadLayout(XMLFile);
  12274. UIElement LoadLayout(XMLFile, XMLFile);
  12275. bool SaveLayout(File, UIElement);
  12276. bool SaveLayout(VectorBuffer&, UIElement);
  12277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12278. void SetFocusElement(UIElement, bool = false);
  12279. void SetHeight(float);
  12280. void SetWidth(float);
  12281. const Array<UIElement> GetDragElements();
  12282. // Properties:
  12283. /* readonly */
  12284. String category;
  12285. String clipBoardText;
  12286. Cursor cursor;
  12287. /* readonly */
  12288. IntVector2 cursorPosition;
  12289. float defaultToolTipDelay;
  12290. float doubleClickInterval;
  12291. int dragBeginDistance;
  12292. float dragBeginInterval;
  12293. UIElement focusElement;
  12294. bool forceAutoHint;
  12295. /* readonly */
  12296. UIElement frontElement;
  12297. int maxFontTextureSize;
  12298. /* readonly */
  12299. UIElement modalRoot;
  12300. bool nonFocusedMouseWheel;
  12301. /* readonly */
  12302. int refs;
  12303. /* readonly */
  12304. UIElement root;
  12305. float scale;
  12306. /* readonly */
  12307. StringHash type;
  12308. /* readonly */
  12309. String typeName;
  12310. bool useMutableGlyphs;
  12311. bool useScreenKeyboard;
  12312. bool useSystemClipboard;
  12313. /* readonly */
  12314. int weakRefs;
  12315. };
  12316. class UIElement
  12317. {
  12318. // Methods:
  12319. void AddChild(UIElement);
  12320. void AddTag(const String&);
  12321. void AddTags(const String&, int8 = ';');
  12322. void ApplyAttributes();
  12323. void BringToFront();
  12324. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12325. void DisableLayoutUpdate();
  12326. IntVector2 ElementToScreen(const IntVector2&);
  12327. void EnableLayoutUpdate();
  12328. uint FindChild(UIElement) const;
  12329. Variant GetAttribute(const String&) const;
  12330. ValueAnimation GetAttributeAnimation(const String&) const;
  12331. float GetAttributeAnimationSpeed(const String&) const;
  12332. float GetAttributeAnimationTime(const String&) const;
  12333. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12334. Variant GetAttributeDefault(const String&) const;
  12335. UIElement GetChild(const String&, bool = false) const;
  12336. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12337. Array<UIElement> GetChildren(bool = false) const;
  12338. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12339. UIElement GetElementEventSender() const;
  12340. bool GetInterceptNetworkUpdate(const String&) const;
  12341. uint GetNumChildren(bool) const;
  12342. bool HasSubscribedToEvent(Object, const String&);
  12343. bool HasSubscribedToEvent(const String&);
  12344. bool HasTag(const String&) const;
  12345. void InsertChild(uint, UIElement);
  12346. bool IsInside(IntVector2, bool);
  12347. bool IsInsideCombined(IntVector2, bool);
  12348. bool Load(File, bool = false);
  12349. bool Load(VectorBuffer&, bool = false);
  12350. bool LoadChildXML(XMLFile, XMLFile = null);
  12351. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12352. bool LoadJSON(const JSONValue&, bool = false);
  12353. bool LoadXML(File);
  12354. bool LoadXML(VectorBuffer&);
  12355. bool LoadXML(XMLFile, XMLFile);
  12356. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12357. bool LoadXML(const XMLElement&, bool = false);
  12358. void MarkNetworkUpdate() const;
  12359. void Remove();
  12360. void RemoveAllChildren();
  12361. void RemoveAllTags();
  12362. void RemoveAttributeAnimation(const String&);
  12363. void RemoveChild(UIElement, uint = 0);
  12364. void RemoveChild(uint);
  12365. void RemoveInstanceDefault();
  12366. void RemoveObjectAnimation();
  12367. bool RemoveTag(const String&);
  12368. void ResetDeepEnabled();
  12369. void ResetToDefault();
  12370. bool Save(File) const;
  12371. bool Save(VectorBuffer&) const;
  12372. bool SaveJSON(JSONValue&) const;
  12373. bool SaveXML(File, const String& = "\t");
  12374. bool SaveXML(VectorBuffer&, const String& = "\t");
  12375. bool SaveXML(XMLElement&) const;
  12376. IntVector2 ScreenToElement(const IntVector2&);
  12377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12378. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12379. void SetAnimationTime(float);
  12380. bool SetAttribute(const String&, const Variant&);
  12381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12382. void SetAttributeAnimationSpeed(const String&, float);
  12383. void SetAttributeAnimationTime(const String&, float);
  12384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12385. void SetDeepEnabled(bool);
  12386. void SetEnabledRecursive(bool);
  12387. void SetFixedHeight(int);
  12388. void SetFixedSize(int, int);
  12389. void SetFixedWidth(int);
  12390. void SetInterceptNetworkUpdate(const String&, bool);
  12391. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12392. void SetMaxSize(int, int);
  12393. void SetMinSize(int, int);
  12394. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12395. void SetPosition(int, int);
  12396. void SetSize(int, int);
  12397. bool SetStyle(const String&, XMLFile = null);
  12398. bool SetStyle(const XMLElement&);
  12399. bool SetStyleAuto(XMLFile = null);
  12400. void UpdateLayout();
  12401. const Variant& GetVar(const StringHash&);
  12402. // Properties:
  12403. bool animationEnabled;
  12404. /* readonly */
  12405. Array<Variant> attributeDefaults;
  12406. /* readonly */
  12407. Array<AttributeInfo> attributeInfos;
  12408. Array<Variant> attributes;
  12409. bool bringToBack;
  12410. bool bringToFront;
  12411. /* readonly */
  12412. String category;
  12413. /* readonly */
  12414. IntVector2 childOffset;
  12415. /* readonly */
  12416. Array<UIElement> children;
  12417. IntRect clipBorder;
  12418. bool clipChildren;
  12419. /* writeonly */
  12420. Color color;
  12421. /* readonly */
  12422. bool colorGradient;
  12423. Array<Color> colors;
  12424. /* readonly */
  12425. IntRect combinedScreenRect;
  12426. XMLFile defaultStyle;
  12427. /* readonly */
  12428. float derivedOpacity;
  12429. /* readonly */
  12430. uint dragButtonCombo;
  12431. /* readonly */
  12432. int dragButtonCount;
  12433. uint dragDropMode;
  12434. bool editable;
  12435. bool elementEventSender;
  12436. bool enabled;
  12437. /* readonly */
  12438. bool enabledSelf;
  12439. /* readonly */
  12440. bool fixedHeight;
  12441. /* readonly */
  12442. bool fixedSize;
  12443. /* readonly */
  12444. bool fixedWidth;
  12445. bool focus;
  12446. FocusMode focusMode;
  12447. int height;
  12448. HorizontalAlignment horizontalAlignment;
  12449. /* readonly */
  12450. bool hovering;
  12451. int indent;
  12452. int indentSpacing;
  12453. /* readonly */
  12454. int indentWidth;
  12455. bool internal;
  12456. IntRect layoutBorder;
  12457. Vector2 layoutFlexScale;
  12458. LayoutMode layoutMode;
  12459. int layoutSpacing;
  12460. int maxHeight;
  12461. IntVector2 maxSize;
  12462. int maxWidth;
  12463. int minHeight;
  12464. IntVector2 minSize;
  12465. int minWidth;
  12466. String name;
  12467. /* readonly */
  12468. uint numAllChildren;
  12469. /* readonly */
  12470. uint numAttributes;
  12471. /* readonly */
  12472. uint numChildren;
  12473. ObjectAnimation objectAnimation;
  12474. float opacity;
  12475. UIElement parent;
  12476. IntVector2 position;
  12477. int priority;
  12478. /* readonly */
  12479. int refs;
  12480. /* readonly */
  12481. UIElement root;
  12482. /* readonly */
  12483. IntVector2 screenPosition;
  12484. bool selected;
  12485. IntVector2 size;
  12486. bool sortChildren;
  12487. String style;
  12488. /* readonly */
  12489. Array<String> tags;
  12490. bool temporary;
  12491. TraversalMode traversalMode;
  12492. /* readonly */
  12493. StringHash type;
  12494. /* readonly */
  12495. String typeName;
  12496. bool useDerivedOpacity;
  12497. /* readonly */
  12498. VariantMap vars;
  12499. VerticalAlignment verticalAlignment;
  12500. bool visible;
  12501. /* readonly */
  12502. bool visibleEffective;
  12503. /* readonly */
  12504. int weakRefs;
  12505. int width;
  12506. };
  12507. class ValueAnimation
  12508. {
  12509. // Methods:
  12510. bool HasSubscribedToEvent(Object, const String&);
  12511. bool HasSubscribedToEvent(const String&);
  12512. bool Load(File);
  12513. bool Load(VectorBuffer&);
  12514. bool Save(File) const;
  12515. bool Save(VectorBuffer&) const;
  12516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12517. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12518. void SetKeyFrame(float, const Variant&);
  12519. // Properties:
  12520. /* readonly */
  12521. String category;
  12522. InterpMethod interpolationMethod;
  12523. /* readonly */
  12524. uint memoryUse;
  12525. String name;
  12526. /* readonly */
  12527. int refs;
  12528. float splineTension;
  12529. /* readonly */
  12530. StringHash type;
  12531. /* readonly */
  12532. String typeName;
  12533. /* readonly */
  12534. uint useTimer;
  12535. VariantType valueType;
  12536. /* readonly */
  12537. int weakRefs;
  12538. };
  12539. class Variant
  12540. {
  12541. // Methods:
  12542. void Clear();
  12543. const Color& GetColor() const;
  12544. void FromString(VariantType, const String&);
  12545. void FromString(const String&, const String&);
  12546. bool GetBool() const;
  12547. VectorBuffer GetBuffer() const;
  12548. double GetDouble() const;
  12549. float GetFloat() const;
  12550. int GetInt() const;
  12551. RefCounted GetPtr() const;
  12552. ScriptObject GetScriptObject() const;
  12553. StringHash GetStringHash() const;
  12554. Array<String> GetStringVector() const;
  12555. uint GetUInt() const;
  12556. Array<Variant> GetVariantVector() const;
  12557. const IntRect& GetIntRect() const;
  12558. const IntVector2& GetIntVector2() const;
  12559. const Matrix3& GetMatrix3() const;
  12560. const Matrix3x4& GetMatrix3x4() const;
  12561. const Matrix4& GetMatrix4() const;
  12562. const Quaternion& GetQuaternion() const;
  12563. const ResourceRef& GetResourceRef() const;
  12564. const ResourceRefList& GetResourceRefList() const;
  12565. const String& GetString() const;
  12566. String ToString() const;
  12567. const VariantMap& GetVariantMap() const;
  12568. const Vector2& GetVector2() const;
  12569. const Vector3& GetVector3() const;
  12570. const Vector4& GetVector4() const;
  12571. // Properties:
  12572. /* readonly */
  12573. bool empty;
  12574. /* readonly */
  12575. VariantType type;
  12576. /* readonly */
  12577. String typeName;
  12578. /* readonly */
  12579. bool zero;
  12580. };
  12581. class VariantMap
  12582. {
  12583. // Methods:
  12584. void Clear();
  12585. bool Contains(StringHash) const;
  12586. bool Contains(const String&) const;
  12587. bool Erase(StringHash);
  12588. bool Erase(const String&);
  12589. // Properties:
  12590. /* readonly */
  12591. Array<StringHash> keys;
  12592. /* readonly */
  12593. uint length;
  12594. /* readonly */
  12595. Array<Variant> values;
  12596. };
  12597. class Vector2
  12598. {
  12599. // Methods:
  12600. Vector2 Abs() const;
  12601. float AbsDotProduct(const Vector2&) const;
  12602. float Angle(const Vector2&) const;
  12603. float DotProduct(const Vector2&) const;
  12604. bool Equals(const Vector2&) const;
  12605. bool IsNaN() const;
  12606. Vector2 Lerp(const Vector2&, float) const;
  12607. void Normalize();
  12608. Vector2 Normalized() const;
  12609. String ToString() const;
  12610. // Properties:
  12611. /* readonly */
  12612. Array<float> data;
  12613. /* readonly */
  12614. float length;
  12615. /* readonly */
  12616. float lengthSquared;
  12617. float x;
  12618. float y;
  12619. };
  12620. class Vector3
  12621. {
  12622. // Methods:
  12623. Vector3 Abs() const;
  12624. float AbsDotProduct(const Vector3&) const;
  12625. float Angle(const Vector3&) const;
  12626. Vector3 CrossProduct(const Vector3&) const;
  12627. float DotProduct(const Vector3&) const;
  12628. bool Equals(const Vector3&) const;
  12629. bool IsNaN() const;
  12630. Vector3 Lerp(const Vector3&, float) const;
  12631. void Normalize();
  12632. Vector3 Normalized() const;
  12633. String ToString() const;
  12634. // Properties:
  12635. /* readonly */
  12636. Array<float> data;
  12637. /* readonly */
  12638. float length;
  12639. /* readonly */
  12640. float lengthSquared;
  12641. float x;
  12642. float y;
  12643. float z;
  12644. };
  12645. class Vector4
  12646. {
  12647. // Methods:
  12648. Vector4 Abs() const;
  12649. float AbsDotProduct(const Vector4&) const;
  12650. float DotProduct(const Vector4&) const;
  12651. bool Equals(const Vector4&) const;
  12652. bool IsNaN() const;
  12653. Vector4 Lerp(const Vector4&, float) const;
  12654. String ToString() const;
  12655. // Properties:
  12656. /* readonly */
  12657. Array<float> data;
  12658. float w;
  12659. float x;
  12660. float y;
  12661. float z;
  12662. };
  12663. class VectorBuffer
  12664. {
  12665. // Methods:
  12666. void Clear();
  12667. Array<uint8> Read(uint);
  12668. bool ReadBool();
  12669. BoundingBox ReadBoundingBox();
  12670. int8 ReadByte();
  12671. Color ReadColor();
  12672. double ReadDouble();
  12673. String ReadFileID();
  12674. float ReadFloat();
  12675. int ReadInt();
  12676. int64 ReadInt64();
  12677. IntRect ReadIntRect();
  12678. IntVector2 ReadIntVector2();
  12679. String ReadLine();
  12680. Matrix3 ReadMatrix3();
  12681. Matrix3x4 ReadMatrix3x4();
  12682. Matrix4 ReadMatrix4();
  12683. uint ReadNetID();
  12684. Quaternion ReadPackedQuaternion();
  12685. Vector3 ReadPackedVector3(float);
  12686. Quaternion ReadQuaternion();
  12687. int16 ReadShort();
  12688. String ReadString();
  12689. StringHash ReadStringHash();
  12690. uint8 ReadUByte();
  12691. uint ReadUInt();
  12692. uint64 ReadUInt64();
  12693. uint16 ReadUShort();
  12694. uint ReadVLE();
  12695. Variant ReadVariant();
  12696. VariantMap ReadVariantMap();
  12697. Vector2 ReadVector2();
  12698. Vector3 ReadVector3();
  12699. Vector4 ReadVector4();
  12700. VectorBuffer ReadVectorBuffer(uint);
  12701. void Resize(uint);
  12702. uint Seek(uint);
  12703. void SetData(Deserializer, uint);
  12704. uint Write(Array<uint8>);
  12705. bool WriteBool(bool);
  12706. bool WriteBoundingBox(const BoundingBox&);
  12707. bool WriteByte(int8);
  12708. bool WriteColor(const Color&);
  12709. bool WriteDouble(double);
  12710. bool WriteFileID(const String&);
  12711. bool WriteFloat(float);
  12712. bool WriteInt(int);
  12713. bool WriteInt64(int64);
  12714. bool WriteIntRect(const IntRect&);
  12715. bool WriteIntVector2(const IntVector2&);
  12716. bool WriteLine(const String&);
  12717. bool WriteMatrix3(const Matrix3&);
  12718. bool WriteMatrix3x4(const Matrix3x4&);
  12719. bool WriteMatrix4(const Matrix4&);
  12720. bool WriteNetID(uint);
  12721. bool WritePackedQuaternion(const Quaternion&);
  12722. bool WritePackedVector3(const Vector3&, float);
  12723. bool WriteQuaternion(const Quaternion&);
  12724. bool WriteShort(int16);
  12725. bool WriteString(const String&);
  12726. bool WriteStringHash(const StringHash&);
  12727. bool WriteUByte(uint8);
  12728. bool WriteUInt(uint);
  12729. bool WriteUInt64(uint64);
  12730. bool WriteUShort(uint16);
  12731. bool WriteVLE(uint);
  12732. bool WriteVariant(const Variant&);
  12733. bool WriteVariantMap(const VariantMap&);
  12734. bool WriteVector2(const Vector2&);
  12735. bool WriteVector3(const Vector3&);
  12736. bool WriteVector4(const Vector4&);
  12737. bool WriteVectorBuffer(const VectorBuffer&);
  12738. // Properties:
  12739. /* readonly */
  12740. uint checksum;
  12741. /* readonly */
  12742. bool eof;
  12743. /* readonly */
  12744. String name;
  12745. /* readonly */
  12746. uint position;
  12747. /* readonly */
  12748. uint size;
  12749. };
  12750. class VertexBuffer
  12751. {
  12752. // Methods:
  12753. VectorBuffer GetData() const;
  12754. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12755. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12756. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12757. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12758. bool HasSubscribedToEvent(Object, const String&);
  12759. bool HasSubscribedToEvent(const String&);
  12760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12761. bool SetData(VectorBuffer&);
  12762. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12763. void SetSize(uint, Array<VertexElement>, bool = false);
  12764. void SetSize(uint, uint, bool = false);
  12765. // Properties:
  12766. /* readonly */
  12767. String category;
  12768. /* readonly */
  12769. bool dynamic;
  12770. /* readonly */
  12771. uint elementMask;
  12772. /* readonly */
  12773. Array<VertexElement> elements;
  12774. /* readonly */
  12775. int refs;
  12776. bool shadowed;
  12777. /* readonly */
  12778. StringHash type;
  12779. /* readonly */
  12780. String typeName;
  12781. /* readonly */
  12782. uint vertexCount;
  12783. /* readonly */
  12784. uint vertexSize;
  12785. /* readonly */
  12786. int weakRefs;
  12787. };
  12788. class VertexElement
  12789. {
  12790. // Properties:
  12791. uint8 index;
  12792. uint offset;
  12793. bool perInstance;
  12794. VertexElementSemantic semantic;
  12795. VertexElementType type;
  12796. };
  12797. class View3D
  12798. {
  12799. // Methods:
  12800. void AddChild(UIElement);
  12801. void AddTag(const String&);
  12802. void AddTags(const String&, int8 = ';');
  12803. void ApplyAttributes();
  12804. void BringToFront();
  12805. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12806. void DisableLayoutUpdate();
  12807. IntVector2 ElementToScreen(const IntVector2&);
  12808. void EnableLayoutUpdate();
  12809. uint FindChild(UIElement) const;
  12810. Variant GetAttribute(const String&) const;
  12811. ValueAnimation GetAttributeAnimation(const String&) const;
  12812. float GetAttributeAnimationSpeed(const String&) const;
  12813. float GetAttributeAnimationTime(const String&) const;
  12814. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12815. Variant GetAttributeDefault(const String&) const;
  12816. UIElement GetChild(const String&, bool = false) const;
  12817. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12818. Array<UIElement> GetChildren(bool = false) const;
  12819. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12820. UIElement GetElementEventSender() const;
  12821. bool GetInterceptNetworkUpdate(const String&) const;
  12822. uint GetNumChildren(bool) const;
  12823. bool HasSubscribedToEvent(Object, const String&);
  12824. bool HasSubscribedToEvent(const String&);
  12825. bool HasTag(const String&) const;
  12826. void InsertChild(uint, UIElement);
  12827. bool IsInside(IntVector2, bool);
  12828. bool IsInsideCombined(IntVector2, bool);
  12829. bool Load(File, bool = false);
  12830. bool Load(VectorBuffer&, bool = false);
  12831. bool LoadChildXML(XMLFile, XMLFile = null);
  12832. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12833. bool LoadJSON(const JSONValue&, bool = false);
  12834. bool LoadXML(File);
  12835. bool LoadXML(VectorBuffer&);
  12836. bool LoadXML(XMLFile, XMLFile);
  12837. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12838. bool LoadXML(const XMLElement&, bool = false);
  12839. void MarkNetworkUpdate() const;
  12840. void QueueUpdate();
  12841. void Remove();
  12842. void RemoveAllChildren();
  12843. void RemoveAllTags();
  12844. void RemoveAttributeAnimation(const String&);
  12845. void RemoveChild(UIElement, uint = 0);
  12846. void RemoveChild(uint);
  12847. void RemoveInstanceDefault();
  12848. void RemoveObjectAnimation();
  12849. bool RemoveTag(const String&);
  12850. void ResetDeepEnabled();
  12851. void ResetToDefault();
  12852. bool Save(File) const;
  12853. bool Save(VectorBuffer&) const;
  12854. bool SaveJSON(JSONValue&) const;
  12855. bool SaveXML(File, const String& = "\t");
  12856. bool SaveXML(VectorBuffer&, const String& = "\t");
  12857. bool SaveXML(XMLElement&) const;
  12858. IntVector2 ScreenToElement(const IntVector2&);
  12859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12860. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12861. void SetAnimationTime(float);
  12862. bool SetAttribute(const String&, const Variant&);
  12863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12864. void SetAttributeAnimationSpeed(const String&, float);
  12865. void SetAttributeAnimationTime(const String&, float);
  12866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12867. void SetDeepEnabled(bool);
  12868. void SetEnabledRecursive(bool);
  12869. void SetFixedHeight(int);
  12870. void SetFixedSize(int, int);
  12871. void SetFixedWidth(int);
  12872. void SetFullImageRect();
  12873. void SetHoverOffset(int, int);
  12874. void SetInterceptNetworkUpdate(const String&, bool);
  12875. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12876. void SetMaxSize(int, int);
  12877. void SetMinSize(int, int);
  12878. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12879. void SetPosition(int, int);
  12880. void SetSize(int, int);
  12881. bool SetStyle(const String&, XMLFile = null);
  12882. bool SetStyle(const XMLElement&);
  12883. bool SetStyleAuto(XMLFile = null);
  12884. void SetView(Scene, Camera, bool = true);
  12885. void UpdateLayout();
  12886. const Variant& GetVar(const StringHash&);
  12887. // Properties:
  12888. bool animationEnabled;
  12889. /* readonly */
  12890. Array<Variant> attributeDefaults;
  12891. /* readonly */
  12892. Array<AttributeInfo> attributeInfos;
  12893. Array<Variant> attributes;
  12894. bool autoUpdate;
  12895. BlendMode blendMode;
  12896. IntRect border;
  12897. bool bringToBack;
  12898. bool bringToFront;
  12899. /* readonly */
  12900. Node cameraNode;
  12901. /* readonly */
  12902. String category;
  12903. /* readonly */
  12904. IntVector2 childOffset;
  12905. /* readonly */
  12906. Array<UIElement> children;
  12907. IntRect clipBorder;
  12908. bool clipChildren;
  12909. /* writeonly */
  12910. Color color;
  12911. /* readonly */
  12912. bool colorGradient;
  12913. Array<Color> colors;
  12914. /* readonly */
  12915. IntRect combinedScreenRect;
  12916. XMLFile defaultStyle;
  12917. /* readonly */
  12918. Texture2D depthTexture;
  12919. /* readonly */
  12920. float derivedOpacity;
  12921. /* readonly */
  12922. uint dragButtonCombo;
  12923. /* readonly */
  12924. int dragButtonCount;
  12925. uint dragDropMode;
  12926. bool editable;
  12927. bool elementEventSender;
  12928. bool enabled;
  12929. /* readonly */
  12930. bool enabledSelf;
  12931. /* readonly */
  12932. bool fixedHeight;
  12933. bool fixedHeightResizing;
  12934. /* readonly */
  12935. bool fixedSize;
  12936. /* readonly */
  12937. bool fixedWidth;
  12938. bool fixedWidthResizing;
  12939. bool focus;
  12940. FocusMode focusMode;
  12941. uint format;
  12942. int height;
  12943. HorizontalAlignment horizontalAlignment;
  12944. IntVector2 hoverOffset;
  12945. /* readonly */
  12946. bool hovering;
  12947. IntRect imageBorder;
  12948. IntRect imageRect;
  12949. int indent;
  12950. int indentSpacing;
  12951. /* readonly */
  12952. int indentWidth;
  12953. bool internal;
  12954. IntRect layoutBorder;
  12955. Vector2 layoutFlexScale;
  12956. LayoutMode layoutMode;
  12957. int layoutSpacing;
  12958. int maxHeight;
  12959. IntVector2 maxSize;
  12960. int maxWidth;
  12961. int minHeight;
  12962. IntVector2 minSize;
  12963. int minWidth;
  12964. bool modal;
  12965. bool modalAutoDismiss;
  12966. Color modalFrameColor;
  12967. IntVector2 modalFrameSize;
  12968. Color modalShadeColor;
  12969. bool movable;
  12970. String name;
  12971. /* readonly */
  12972. uint numAllChildren;
  12973. /* readonly */
  12974. uint numAttributes;
  12975. /* readonly */
  12976. uint numChildren;
  12977. ObjectAnimation objectAnimation;
  12978. float opacity;
  12979. UIElement parent;
  12980. IntVector2 position;
  12981. int priority;
  12982. /* readonly */
  12983. int refs;
  12984. /* readonly */
  12985. Texture2D renderTexture;
  12986. bool resizable;
  12987. IntRect resizeBorder;
  12988. /* readonly */
  12989. UIElement root;
  12990. /* readonly */
  12991. Scene scene;
  12992. /* readonly */
  12993. IntVector2 screenPosition;
  12994. bool selected;
  12995. IntVector2 size;
  12996. bool sortChildren;
  12997. String style;
  12998. /* readonly */
  12999. Array<String> tags;
  13000. bool temporary;
  13001. Texture texture;
  13002. bool tiled;
  13003. TraversalMode traversalMode;
  13004. /* readonly */
  13005. StringHash type;
  13006. /* readonly */
  13007. String typeName;
  13008. bool useDerivedOpacity;
  13009. /* readonly */
  13010. VariantMap vars;
  13011. VerticalAlignment verticalAlignment;
  13012. /* readonly */
  13013. Viewport viewport;
  13014. bool visible;
  13015. /* readonly */
  13016. bool visibleEffective;
  13017. /* readonly */
  13018. int weakRefs;
  13019. int width;
  13020. };
  13021. class Viewport
  13022. {
  13023. // Methods:
  13024. Ray GetScreenRay(int, int) const;
  13025. bool HasSubscribedToEvent(Object, const String&);
  13026. bool HasSubscribedToEvent(const String&);
  13027. Vector3 ScreenToWorldPoint(int, int, float) const;
  13028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13029. void SetRenderPath(XMLFile);
  13030. Vector2 WorldToScreenPoint(const Vector3&) const;
  13031. // Properties:
  13032. Camera camera;
  13033. /* readonly */
  13034. String category;
  13035. Camera cullCamera;
  13036. bool drawDebug;
  13037. IntRect rect;
  13038. /* readonly */
  13039. int refs;
  13040. RenderPath renderPath;
  13041. Scene scene;
  13042. /* readonly */
  13043. StringHash type;
  13044. /* readonly */
  13045. String typeName;
  13046. /* readonly */
  13047. int weakRefs;
  13048. };
  13049. class WeakHandle
  13050. {
  13051. // Methods:
  13052. RefCounted Get() const;
  13053. // Properties:
  13054. /* readonly */
  13055. bool expired;
  13056. /* readonly */
  13057. int refs;
  13058. /* readonly */
  13059. int weakRefs;
  13060. };
  13061. class Window
  13062. {
  13063. // Methods:
  13064. void AddChild(UIElement);
  13065. void AddTag(const String&);
  13066. void AddTags(const String&, int8 = ';');
  13067. void ApplyAttributes();
  13068. void BringToFront();
  13069. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13070. void DisableLayoutUpdate();
  13071. IntVector2 ElementToScreen(const IntVector2&);
  13072. void EnableLayoutUpdate();
  13073. uint FindChild(UIElement) const;
  13074. Variant GetAttribute(const String&) const;
  13075. ValueAnimation GetAttributeAnimation(const String&) const;
  13076. float GetAttributeAnimationSpeed(const String&) const;
  13077. float GetAttributeAnimationTime(const String&) const;
  13078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13079. Variant GetAttributeDefault(const String&) const;
  13080. UIElement GetChild(const String&, bool = false) const;
  13081. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13082. Array<UIElement> GetChildren(bool = false) const;
  13083. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13084. UIElement GetElementEventSender() const;
  13085. bool GetInterceptNetworkUpdate(const String&) const;
  13086. uint GetNumChildren(bool) const;
  13087. bool HasSubscribedToEvent(Object, const String&);
  13088. bool HasSubscribedToEvent(const String&);
  13089. bool HasTag(const String&) const;
  13090. void InsertChild(uint, UIElement);
  13091. bool IsInside(IntVector2, bool);
  13092. bool IsInsideCombined(IntVector2, bool);
  13093. bool Load(File, bool = false);
  13094. bool Load(VectorBuffer&, bool = false);
  13095. bool LoadChildXML(XMLFile, XMLFile = null);
  13096. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13097. bool LoadJSON(const JSONValue&, bool = false);
  13098. bool LoadXML(File);
  13099. bool LoadXML(VectorBuffer&);
  13100. bool LoadXML(XMLFile, XMLFile);
  13101. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13102. bool LoadXML(const XMLElement&, bool = false);
  13103. void MarkNetworkUpdate() const;
  13104. void Remove();
  13105. void RemoveAllChildren();
  13106. void RemoveAllTags();
  13107. void RemoveAttributeAnimation(const String&);
  13108. void RemoveChild(UIElement, uint = 0);
  13109. void RemoveChild(uint);
  13110. void RemoveInstanceDefault();
  13111. void RemoveObjectAnimation();
  13112. bool RemoveTag(const String&);
  13113. void ResetDeepEnabled();
  13114. void ResetToDefault();
  13115. bool Save(File) const;
  13116. bool Save(VectorBuffer&) const;
  13117. bool SaveJSON(JSONValue&) const;
  13118. bool SaveXML(File, const String& = "\t");
  13119. bool SaveXML(VectorBuffer&, const String& = "\t");
  13120. bool SaveXML(XMLElement&) const;
  13121. IntVector2 ScreenToElement(const IntVector2&);
  13122. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13123. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13124. void SetAnimationTime(float);
  13125. bool SetAttribute(const String&, const Variant&);
  13126. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13127. void SetAttributeAnimationSpeed(const String&, float);
  13128. void SetAttributeAnimationTime(const String&, float);
  13129. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13130. void SetDeepEnabled(bool);
  13131. void SetEnabledRecursive(bool);
  13132. void SetFixedHeight(int);
  13133. void SetFixedSize(int, int);
  13134. void SetFixedWidth(int);
  13135. void SetFullImageRect();
  13136. void SetHoverOffset(int, int);
  13137. void SetInterceptNetworkUpdate(const String&, bool);
  13138. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13139. void SetMaxSize(int, int);
  13140. void SetMinSize(int, int);
  13141. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13142. void SetPosition(int, int);
  13143. void SetSize(int, int);
  13144. bool SetStyle(const String&, XMLFile = null);
  13145. bool SetStyle(const XMLElement&);
  13146. bool SetStyleAuto(XMLFile = null);
  13147. void UpdateLayout();
  13148. const Variant& GetVar(const StringHash&);
  13149. // Properties:
  13150. bool animationEnabled;
  13151. /* readonly */
  13152. Array<Variant> attributeDefaults;
  13153. /* readonly */
  13154. Array<AttributeInfo> attributeInfos;
  13155. Array<Variant> attributes;
  13156. BlendMode blendMode;
  13157. IntRect border;
  13158. bool bringToBack;
  13159. bool bringToFront;
  13160. /* readonly */
  13161. String category;
  13162. /* readonly */
  13163. IntVector2 childOffset;
  13164. /* readonly */
  13165. Array<UIElement> children;
  13166. IntRect clipBorder;
  13167. bool clipChildren;
  13168. /* writeonly */
  13169. Color color;
  13170. /* readonly */
  13171. bool colorGradient;
  13172. Array<Color> colors;
  13173. /* readonly */
  13174. IntRect combinedScreenRect;
  13175. XMLFile defaultStyle;
  13176. /* readonly */
  13177. float derivedOpacity;
  13178. /* readonly */
  13179. uint dragButtonCombo;
  13180. /* readonly */
  13181. int dragButtonCount;
  13182. uint dragDropMode;
  13183. bool editable;
  13184. bool elementEventSender;
  13185. bool enabled;
  13186. /* readonly */
  13187. bool enabledSelf;
  13188. /* readonly */
  13189. bool fixedHeight;
  13190. bool fixedHeightResizing;
  13191. /* readonly */
  13192. bool fixedSize;
  13193. /* readonly */
  13194. bool fixedWidth;
  13195. bool fixedWidthResizing;
  13196. bool focus;
  13197. FocusMode focusMode;
  13198. int height;
  13199. HorizontalAlignment horizontalAlignment;
  13200. IntVector2 hoverOffset;
  13201. /* readonly */
  13202. bool hovering;
  13203. IntRect imageBorder;
  13204. IntRect imageRect;
  13205. int indent;
  13206. int indentSpacing;
  13207. /* readonly */
  13208. int indentWidth;
  13209. bool internal;
  13210. IntRect layoutBorder;
  13211. Vector2 layoutFlexScale;
  13212. LayoutMode layoutMode;
  13213. int layoutSpacing;
  13214. int maxHeight;
  13215. IntVector2 maxSize;
  13216. int maxWidth;
  13217. int minHeight;
  13218. IntVector2 minSize;
  13219. int minWidth;
  13220. bool modal;
  13221. bool modalAutoDismiss;
  13222. Color modalFrameColor;
  13223. IntVector2 modalFrameSize;
  13224. Color modalShadeColor;
  13225. bool movable;
  13226. String name;
  13227. /* readonly */
  13228. uint numAllChildren;
  13229. /* readonly */
  13230. uint numAttributes;
  13231. /* readonly */
  13232. uint numChildren;
  13233. ObjectAnimation objectAnimation;
  13234. float opacity;
  13235. UIElement parent;
  13236. IntVector2 position;
  13237. int priority;
  13238. /* readonly */
  13239. int refs;
  13240. bool resizable;
  13241. IntRect resizeBorder;
  13242. /* readonly */
  13243. UIElement root;
  13244. /* readonly */
  13245. IntVector2 screenPosition;
  13246. bool selected;
  13247. IntVector2 size;
  13248. bool sortChildren;
  13249. String style;
  13250. /* readonly */
  13251. Array<String> tags;
  13252. bool temporary;
  13253. Texture texture;
  13254. bool tiled;
  13255. TraversalMode traversalMode;
  13256. /* readonly */
  13257. StringHash type;
  13258. /* readonly */
  13259. String typeName;
  13260. bool useDerivedOpacity;
  13261. /* readonly */
  13262. VariantMap vars;
  13263. VerticalAlignment verticalAlignment;
  13264. bool visible;
  13265. /* readonly */
  13266. bool visibleEffective;
  13267. /* readonly */
  13268. int weakRefs;
  13269. int width;
  13270. };
  13271. class XMLElement
  13272. {
  13273. // Methods:
  13274. XMLElement CreateChild(const String&);
  13275. String GetAttribute(const String& = String ( )) const;
  13276. String GetAttributeLower(const String&) const;
  13277. Array<String> GetAttributeNames() const;
  13278. String GetAttributeUpper(const String&) const;
  13279. bool GetBool(const String&) const;
  13280. BoundingBox GetBoundingBox() const;
  13281. XMLElement GetChild(const String& = String ( )) const;
  13282. Color GetColor(const String&) const;
  13283. double GetDouble(const String&) const;
  13284. float GetFloat(const String&) const;
  13285. int GetInt(const String&) const;
  13286. IntRect GetIntRect(const String&) const;
  13287. IntVector2 GetIntVector2(const String&) const;
  13288. Matrix3 GetMatrix3(const String&) const;
  13289. Matrix3x4 GetMatrix3x4(const String&) const;
  13290. Matrix4 GetMatrix4(const String&) const;
  13291. XMLElement GetNext(const String& = String ( )) const;
  13292. Quaternion GetQuaternion(const String&) const;
  13293. ResourceRef GetResourceRef() const;
  13294. ResourceRefList GetResourceRefList() const;
  13295. uint GetUInt(const String&) const;
  13296. String GetValue() const;
  13297. Variant GetVariant() const;
  13298. VariantMap GetVariantMap() const;
  13299. Array<Variant> GetVariantVector() const;
  13300. Vector2 GetVector2(const String&) const;
  13301. Vector3 GetVector3(const String&) const;
  13302. Vector4 GetVector4(const String&) const;
  13303. Variant GetVectorVariant(const String&) const;
  13304. bool HasAttribute(const String&) const;
  13305. bool HasChild(const String&) const;
  13306. bool RemoveAttribute(const String& = String ( ));
  13307. bool RemoveChild(const String&);
  13308. bool RemoveChild(const XMLElement&);
  13309. bool RemoveChildren(const String& = String ( ));
  13310. XPathResultSet Select(const String&);
  13311. XPathResultSet SelectPrepared(const XPathQuery&);
  13312. XMLElement SelectSingle(const String&);
  13313. XMLElement SelectSinglePrepared(const XPathQuery&);
  13314. bool SetAttribute(const String&);
  13315. bool SetAttribute(const String&, const String&);
  13316. bool SetBool(const String&, bool);
  13317. bool SetBoundingBox(const BoundingBox&);
  13318. bool SetColor(const String&, const Color&);
  13319. bool SetDouble(const String&, double);
  13320. bool SetFloat(const String&, float);
  13321. bool SetInt(const String&, int);
  13322. bool SetIntRect(const String&, const IntRect&);
  13323. bool SetIntVector2(const String&, const IntVector2&);
  13324. bool SetMatrix3(const String&, const Matrix3&);
  13325. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13326. bool SetMatrix4(const String&, const Matrix4&);
  13327. bool SetQuaternion(const String&, const Quaternion&);
  13328. bool SetResourceRef(const String&, const ResourceRef&);
  13329. bool SetResourceRefList(const String&, const ResourceRefList&);
  13330. bool SetUInt(const String&, uint);
  13331. bool SetValue(const String&);
  13332. bool SetVariant(const Variant&);
  13333. bool SetVariantMap(const VariantMap&);
  13334. bool SetVariantVector(Array<Variant>);
  13335. bool SetVector2(const String&, const Vector2&);
  13336. bool SetVector3(const String&, const Vector3&);
  13337. bool SetVector4(const String&, const Vector4&);
  13338. bool SetVectorVariant(const String&, const Variant&);
  13339. // Properties:
  13340. /* readonly */
  13341. XMLFile file;
  13342. /* readonly */
  13343. bool isNull;
  13344. /* readonly */
  13345. String name;
  13346. /* readonly */
  13347. XMLElement nextResult;
  13348. /* readonly */
  13349. bool notNull;
  13350. /* readonly */
  13351. uint numAttributes;
  13352. /* readonly */
  13353. XMLElement parent;
  13354. String value;
  13355. };
  13356. class XMLFile
  13357. {
  13358. // Methods:
  13359. XMLElement CreateRoot(const String&);
  13360. bool FromString(const String&);
  13361. XMLElement GetRoot(const String& = String ( ));
  13362. bool HasSubscribedToEvent(Object, const String&);
  13363. bool HasSubscribedToEvent(const String&);
  13364. bool Load(File);
  13365. bool Load(VectorBuffer&);
  13366. void Patch(XMLElement);
  13367. void Patch(XMLFile);
  13368. bool Save(File) const;
  13369. bool Save(File, const String&) const;
  13370. bool Save(VectorBuffer&) const;
  13371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13372. String ToString(const String& = String ( "\t" )) const;
  13373. // Properties:
  13374. /* readonly */
  13375. String category;
  13376. /* readonly */
  13377. uint memoryUse;
  13378. String name;
  13379. /* readonly */
  13380. int refs;
  13381. /* readonly */
  13382. XMLElement root;
  13383. /* readonly */
  13384. StringHash type;
  13385. /* readonly */
  13386. String typeName;
  13387. /* readonly */
  13388. uint useTimer;
  13389. /* readonly */
  13390. int weakRefs;
  13391. };
  13392. class XPathQuery
  13393. {
  13394. // Methods:
  13395. void Bind();
  13396. void Clear();
  13397. XPathResultSet Evaluate(XMLElement);
  13398. bool EvaluateToBool(XMLElement);
  13399. float EvaluateToFloat(XMLElement);
  13400. String EvaluateToString(XMLElement);
  13401. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13402. bool SetVariable(const String&, bool);
  13403. bool SetVariable(const String&, const String&);
  13404. bool SetVariable(const String&, const XPathResultSet&);
  13405. bool SetVariable(const String&, float);
  13406. // Properties:
  13407. String query;
  13408. };
  13409. class XPathResultSet
  13410. {
  13411. // Properties:
  13412. /* readonly */
  13413. bool empty;
  13414. /* readonly */
  13415. XMLElement firstResult;
  13416. /* readonly */
  13417. uint size;
  13418. };
  13419. class Zone
  13420. {
  13421. // Methods:
  13422. void ApplyAttributes();
  13423. void DrawDebugGeometry(DebugRenderer, bool);
  13424. Variant GetAttribute(const String&) const;
  13425. ValueAnimation GetAttributeAnimation(const String&) const;
  13426. float GetAttributeAnimationSpeed(const String&) const;
  13427. float GetAttributeAnimationTime(const String&) const;
  13428. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13429. Variant GetAttributeDefault(const String&) const;
  13430. bool GetInterceptNetworkUpdate(const String&) const;
  13431. bool HasSubscribedToEvent(Object, const String&);
  13432. bool HasSubscribedToEvent(const String&);
  13433. bool IsInView(Camera) const;
  13434. bool Load(File, bool = false);
  13435. bool Load(VectorBuffer&, bool = false);
  13436. bool LoadJSON(const JSONValue&, bool = false);
  13437. bool LoadXML(const XMLElement&, bool = false);
  13438. void MarkNetworkUpdate() const;
  13439. void Remove();
  13440. void RemoveAttributeAnimation(const String&);
  13441. void RemoveInstanceDefault();
  13442. void RemoveObjectAnimation();
  13443. void ResetToDefault();
  13444. bool Save(File) const;
  13445. bool Save(VectorBuffer&) const;
  13446. bool SaveJSON(JSONValue&) const;
  13447. bool SaveXML(XMLElement&) const;
  13448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13449. void SetAnimationTime(float);
  13450. bool SetAttribute(const String&, const Variant&);
  13451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13452. void SetAttributeAnimationSpeed(const String&, float);
  13453. void SetAttributeAnimationTime(const String&, float);
  13454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13455. void SetInterceptNetworkUpdate(const String&, bool);
  13456. // Properties:
  13457. Color ambientColor;
  13458. /* readonly */
  13459. Color ambientEndColor;
  13460. bool ambientGradient;
  13461. /* readonly */
  13462. Color ambientStartColor;
  13463. bool animationEnabled;
  13464. /* readonly */
  13465. Array<Variant> attributeDefaults;
  13466. /* readonly */
  13467. Array<AttributeInfo> attributeInfos;
  13468. Array<Variant> attributes;
  13469. BoundingBox boundingBox;
  13470. bool castShadows;
  13471. /* readonly */
  13472. String category;
  13473. float drawDistance;
  13474. bool enabled;
  13475. /* readonly */
  13476. bool enabledEffective;
  13477. Color fogColor;
  13478. float fogEnd;
  13479. float fogHeight;
  13480. float fogHeightScale;
  13481. float fogStart;
  13482. bool heightFog;
  13483. /* readonly */
  13484. uint id;
  13485. /* readonly */
  13486. bool inView;
  13487. /* readonly */
  13488. Matrix3x4 inverseWorldTransform;
  13489. uint lightMask;
  13490. float lodBias;
  13491. uint maxLights;
  13492. /* readonly */
  13493. Node node;
  13494. /* readonly */
  13495. uint numAttributes;
  13496. ObjectAnimation objectAnimation;
  13497. bool occludee;
  13498. bool occluder;
  13499. bool override;
  13500. int priority;
  13501. /* readonly */
  13502. int refs;
  13503. float shadowDistance;
  13504. uint shadowMask;
  13505. bool temporary;
  13506. /* readonly */
  13507. StringHash type;
  13508. /* readonly */
  13509. String typeName;
  13510. uint viewMask;
  13511. /* readonly */
  13512. int weakRefs;
  13513. /* readonly */
  13514. BoundingBox worldBoundingBox;
  13515. uint zoneMask;
  13516. Texture zoneTexture;
  13517. };
  13518. // Enumerations
  13519. enum AnimationBlendMode
  13520. {
  13521. ABM_LERP,
  13522. ABM_ADDITIVE,
  13523. };
  13524. enum BlendMode
  13525. {
  13526. BLEND_REPLACE,
  13527. BLEND_ADD,
  13528. BLEND_MULTIPLY,
  13529. BLEND_ALPHA,
  13530. BLEND_ADDALPHA,
  13531. BLEND_PREMULALPHA,
  13532. BLEND_INVDESTALPHA,
  13533. BLEND_SUBTRACT,
  13534. BLEND_SUBTRACTALPHA,
  13535. };
  13536. enum BodyType2D
  13537. {
  13538. BT_STATIC,
  13539. BT_KINEMATIC,
  13540. BT_DYNAMIC,
  13541. };
  13542. enum CollisionEventMode
  13543. {
  13544. COLLISION_NEVER,
  13545. COLLISION_ACTIVE,
  13546. COLLISION_ALWAYS,
  13547. };
  13548. enum CompareMode
  13549. {
  13550. CMP_ALWAYS,
  13551. CMP_EQUAL,
  13552. CMP_NOTEQUAL,
  13553. CMP_LESS,
  13554. CMP_LESSEQUAL,
  13555. CMP_GREATER,
  13556. CMP_GREATEREQUAL,
  13557. };
  13558. enum CompressedFormat
  13559. {
  13560. CF_NONE,
  13561. CF_RGBA,
  13562. CF_DXT1,
  13563. CF_DXT3,
  13564. CF_DXT5,
  13565. CF_ETC1,
  13566. CF_PVRTC_RGB_2BPP,
  13567. CF_PVRTC_RGBA_2BPP,
  13568. CF_PVRTC_RGB_4BPP,
  13569. CF_PVRTC_RGBA_4BPP,
  13570. };
  13571. enum ConstraintType
  13572. {
  13573. CONSTRAINT_POINT,
  13574. CONSTRAINT_HINGE,
  13575. CONSTRAINT_SLIDER,
  13576. CONSTRAINT_CONETWIST,
  13577. };
  13578. enum Corner
  13579. {
  13580. C_TOPLEFT,
  13581. C_TOPRIGHT,
  13582. C_BOTTOMLEFT,
  13583. C_BOTTOMRIGHT,
  13584. };
  13585. enum CreateMode
  13586. {
  13587. REPLICATED,
  13588. LOCAL,
  13589. };
  13590. enum CrowdAgentRequestedTarget
  13591. {
  13592. CA_REQUESTEDTARGET_NONE,
  13593. CA_REQUESTEDTARGET_POSITION,
  13594. CA_REQUESTEDTARGET_VELOCITY,
  13595. };
  13596. enum CrowdAgentState
  13597. {
  13598. CA_STATE_INVALID,
  13599. CA_STATE_WALKING,
  13600. CA_STATE_OFFMESH,
  13601. };
  13602. enum CrowdAgentTargetState
  13603. {
  13604. CA_TARGET_NONE,
  13605. CA_TARGET_FAILED,
  13606. CA_TARGET_VALID,
  13607. CA_TARGET_REQUESTING,
  13608. CA_TARGET_WAITINGFORQUEUE,
  13609. CA_TARGET_WAITINGFORPATH,
  13610. CA_TARGET_VELOCITY,
  13611. };
  13612. enum CubeMapFace
  13613. {
  13614. FACE_POSITIVE_X,
  13615. FACE_NEGATIVE_X,
  13616. FACE_POSITIVE_Y,
  13617. FACE_NEGATIVE_Y,
  13618. FACE_POSITIVE_Z,
  13619. FACE_NEGATIVE_Z,
  13620. };
  13621. enum CullMode
  13622. {
  13623. CULL_NONE,
  13624. CULL_CCW,
  13625. CULL_CW,
  13626. };
  13627. enum CursorShape
  13628. {
  13629. CS_NORMAL,
  13630. CS_IBEAM,
  13631. CS_CROSS,
  13632. CS_RESIZEVERTICAL,
  13633. CS_RESIZEDIAGONAL_TOPRIGHT,
  13634. CS_RESIZEHORIZONTAL,
  13635. CS_RESIZEDIAGONAL_TOPLEFT,
  13636. CS_RESIZE_ALL,
  13637. CS_ACCEPTDROP,
  13638. CS_REJECTDROP,
  13639. CS_BUSY,
  13640. CS_BUSY_ARROW,
  13641. };
  13642. enum DBAPI
  13643. {
  13644. DBAPI_SQLITE,
  13645. DBAPI_ODBC,
  13646. };
  13647. enum DumpMode
  13648. {
  13649. DOXYGEN,
  13650. C_HEADER,
  13651. };
  13652. enum EmitterType
  13653. {
  13654. EMITTER_SPHERE,
  13655. EMITTER_BOX,
  13656. };
  13657. enum EmitterType2D
  13658. {
  13659. EMITTER_TYPE_GRAVITY,
  13660. EMITTER_TYPE_RADIAL,
  13661. };
  13662. enum FaceCameraMode
  13663. {
  13664. FC_NONE,
  13665. FC_ROTATE_XYZ,
  13666. FC_ROTATE_Y,
  13667. FC_LOOKAT_XYZ,
  13668. FC_LOOKAT_Y,
  13669. FC_DIRECTION,
  13670. };
  13671. enum FileMode
  13672. {
  13673. FILE_READ,
  13674. FILE_WRITE,
  13675. FILE_READWRITE,
  13676. };
  13677. enum FillMode
  13678. {
  13679. FILL_SOLID,
  13680. FILL_WIREFRAME,
  13681. FILL_POINT,
  13682. };
  13683. enum FocusMode
  13684. {
  13685. FM_NOTFOCUSABLE,
  13686. FM_RESETFOCUS,
  13687. FM_FOCUSABLE,
  13688. FM_FOCUSABLE_DEFOCUSABLE,
  13689. };
  13690. enum HighlightMode
  13691. {
  13692. HM_NEVER,
  13693. HM_FOCUS,
  13694. HM_ALWAYS,
  13695. };
  13696. enum HorizontalAlignment
  13697. {
  13698. HA_LEFT,
  13699. HA_CENTER,
  13700. HA_RIGHT,
  13701. };
  13702. enum HttpRequestState
  13703. {
  13704. HTTP_INITIALIZING,
  13705. HTTP_ERROR,
  13706. HTTP_OPEN,
  13707. HTTP_CLOSED,
  13708. };
  13709. enum InterpMethod
  13710. {
  13711. IM_NONE,
  13712. IM_LINEAR,
  13713. IM_SPLINE,
  13714. };
  13715. enum InterpolationMode
  13716. {
  13717. BEZIER_CURVE,
  13718. CATMULL_ROM_CURVE,
  13719. LINEAR_CURVE,
  13720. CATMULL_ROM_FULL_CURVE,
  13721. };
  13722. enum Intersection
  13723. {
  13724. OUTSIDE,
  13725. INTERSECTS,
  13726. INSIDE,
  13727. };
  13728. enum JSONValueType
  13729. {
  13730. JSON_NULL,
  13731. JSON_BOOL,
  13732. JSON_NUMBER,
  13733. JSON_STRING,
  13734. JSON_ARRAY,
  13735. JSON_OBJECT,
  13736. };
  13737. enum LayoutMode
  13738. {
  13739. LM_FREE,
  13740. LM_HORIZONTAL,
  13741. LM_VERTICAL,
  13742. };
  13743. enum LightType
  13744. {
  13745. LIGHT_DIRECTIONAL,
  13746. LIGHT_SPOT,
  13747. LIGHT_POINT,
  13748. };
  13749. enum LoadMode
  13750. {
  13751. LOAD_RESOURCES_ONLY,
  13752. LOAD_SCENE,
  13753. LOAD_SCENE_AND_RESOURCES,
  13754. };
  13755. enum LoopMode2D
  13756. {
  13757. LM_DEFAULT,
  13758. LM_FORCE_LOOPED,
  13759. LM_FORCE_CLAMPED,
  13760. };
  13761. enum MouseMode
  13762. {
  13763. MM_ABSOLUTE,
  13764. MM_RELATIVE,
  13765. MM_WRAP,
  13766. MM_FREE,
  13767. };
  13768. enum NavigationPushiness
  13769. {
  13770. NAVIGATIONPUSHINESS_LOW,
  13771. NAVIGATIONPUSHINESS_MEDIUM,
  13772. NAVIGATIONPUSHINESS_HIGH,
  13773. };
  13774. enum NavigationQuality
  13775. {
  13776. NAVIGATIONQUALITY_LOW,
  13777. NAVIGATIONQUALITY_MEDIUM,
  13778. NAVIGATIONQUALITY_HIGH,
  13779. };
  13780. enum NavmeshPartitionType
  13781. {
  13782. NAVMESH_PARTITION_WATERSHED,
  13783. NAVMESH_PARTITION_MONOTONE,
  13784. };
  13785. enum Orientation
  13786. {
  13787. O_HORIZONTAL,
  13788. O_VERTICAL,
  13789. };
  13790. enum Orientation2D
  13791. {
  13792. O_ORTHOGONAL,
  13793. O_ISOMETRIC,
  13794. O_STAGGERED,
  13795. O_HEXAGONAL,
  13796. };
  13797. enum PassLightingMode
  13798. {
  13799. LIGHTING_UNLIT,
  13800. LIGHTING_PERVERTEX,
  13801. LIGHTING_PERPIXEL,
  13802. };
  13803. enum PrimitiveType
  13804. {
  13805. TRIANGLE_LIST,
  13806. LINE_LIST,
  13807. POINT_LIST,
  13808. TRIANGLE_STRIP,
  13809. LINE_STRIP,
  13810. TRIANGLE_FAN,
  13811. };
  13812. enum RayQueryLevel
  13813. {
  13814. RAY_AABB,
  13815. RAY_OBB,
  13816. RAY_TRIANGLE,
  13817. RAY_TRIANGLE_UV,
  13818. };
  13819. enum RenderCommandSortMode
  13820. {
  13821. SORT_FRONTTOBACK,
  13822. SORT_BACKTOFRONT,
  13823. };
  13824. enum RenderCommandType
  13825. {
  13826. CMD_NONE,
  13827. CMD_CLEAR,
  13828. CMD_SCENEPASS,
  13829. CMD_QUAD,
  13830. CMD_FORWARDLIGHTS,
  13831. CMD_LIGHTVOLUMES,
  13832. CMD_RENDERUI,
  13833. CMD_SENDEVENT,
  13834. };
  13835. enum RenderSurfaceUpdateMode
  13836. {
  13837. SURFACE_MANUALUPDATE,
  13838. SURFACE_UPDATEVISIBLE,
  13839. SURFACE_UPDATEALWAYS,
  13840. };
  13841. enum RenderTargetSizeMode
  13842. {
  13843. SIZE_ABSOLUTE,
  13844. SIZE_VIEWPORTDIVISOR,
  13845. SIZE_VIEWPORTMULTIPLIER,
  13846. };
  13847. enum ShadowQuality
  13848. {
  13849. SHADOWQUALITY_SIMPLE_16BIT,
  13850. SHADOWQUALITY_SIMPLE_24BIT,
  13851. SHADOWQUALITY_PCF_16BIT,
  13852. SHADOWQUALITY_PCF_24BIT,
  13853. SHADOWQUALITY_VSM,
  13854. SHADOWQUALITY_BLUR_VSM,
  13855. };
  13856. enum ShapeType
  13857. {
  13858. SHAPE_BOX,
  13859. SHAPE_SPHERE,
  13860. SHAPE_STATICPLANE,
  13861. SHAPE_CYLINDER,
  13862. SHAPE_CAPSULE,
  13863. SHAPE_CONE,
  13864. SHAPE_TRIANGLEMESH,
  13865. SHAPE_CONVEXHULL,
  13866. SHAPE_TERRAIN,
  13867. };
  13868. enum TextEffect
  13869. {
  13870. TE_NONE,
  13871. TE_SHADOW,
  13872. TE_STROKE,
  13873. };
  13874. enum TextureAddressMode
  13875. {
  13876. ADDRESS_WRAP,
  13877. ADDRESS_MIRROR,
  13878. ADDRESS_CLAMP,
  13879. ADDRESS_BORDER,
  13880. };
  13881. enum TextureCoordinate
  13882. {
  13883. COORD_U,
  13884. COORD_V,
  13885. COORD_W,
  13886. };
  13887. enum TextureFilterMode
  13888. {
  13889. FILTER_NEAREST,
  13890. FILTER_BILINEAR,
  13891. FILTER_TRILINEAR,
  13892. FILTER_ANISOTROPIC,
  13893. FILTER_DEFAULT,
  13894. };
  13895. enum TextureUnit
  13896. {
  13897. TU_DIFFUSE,
  13898. TU_ALBEDOBUFFER,
  13899. TU_NORMAL,
  13900. TU_NORMALBUFFER,
  13901. TU_SPECULAR,
  13902. TU_EMISSIVE,
  13903. TU_ENVIRONMENT,
  13904. TU_LIGHTRAMP,
  13905. TU_LIGHTSHAPE,
  13906. TU_SHADOWMAP,
  13907. TU_CUSTOM1,
  13908. TU_CUSTOM2,
  13909. TU_VOLUMEMAP,
  13910. TU_FACESELECT,
  13911. TU_INDIRECTION,
  13912. TU_DEPTHBUFFER,
  13913. TU_LIGHTBUFFER,
  13914. TU_ZONE,
  13915. MAX_MATERIAL_TEXTURE_UNITS,
  13916. MAX_TEXTURE_UNITS,
  13917. };
  13918. enum TextureUsage
  13919. {
  13920. TEXTURE_STATIC,
  13921. TEXTURE_DYNAMIC,
  13922. TEXTURE_RENDERTARGET,
  13923. TEXTURE_DEPTHSTENCIL,
  13924. };
  13925. enum TileMapLayerType2D
  13926. {
  13927. LT_TILE_LAYER,
  13928. LT_OBJECT_GROUP,
  13929. LT_IMAGE_LAYER,
  13930. LT_INVALID,
  13931. };
  13932. enum TileObjectType2D
  13933. {
  13934. OT_RECTANGLE,
  13935. OT_ELLIPSE,
  13936. OT_POLYGON,
  13937. OT_POLYLINE,
  13938. OT_TILE,
  13939. OT_INVALID,
  13940. };
  13941. enum TrailType
  13942. {
  13943. TT_FACE_CAMERA,
  13944. TT_BONE,
  13945. };
  13946. enum TransformSpace
  13947. {
  13948. TS_LOCAL,
  13949. TS_PARENT,
  13950. TS_WORLD,
  13951. };
  13952. enum TraversalMode
  13953. {
  13954. TM_BREADTH_FIRST,
  13955. TM_DEPTH_FIRST,
  13956. };
  13957. enum VariantType
  13958. {
  13959. VAR_NONE,
  13960. VAR_INT,
  13961. VAR_BOOL,
  13962. VAR_FLOAT,
  13963. VAR_VECTOR2,
  13964. VAR_VECTOR3,
  13965. VAR_VECTOR4,
  13966. VAR_QUATERNION,
  13967. VAR_COLOR,
  13968. VAR_STRING,
  13969. VAR_BUFFER,
  13970. VAR_VOIDPTR,
  13971. VAR_RESOURCEREF,
  13972. VAR_RESOURCEREFLIST,
  13973. VAR_VARIANTVECTOR,
  13974. VAR_VARIANTMAP,
  13975. VAR_INTRECT,
  13976. VAR_INTVECTOR2,
  13977. VAR_PTR,
  13978. VAR_MATRIX3,
  13979. VAR_MATRIX3X4,
  13980. VAR_MATRIX4,
  13981. VAR_DOUBLE,
  13982. VAR_STRINGVECTOR,
  13983. };
  13984. enum VertexElementSemantic
  13985. {
  13986. SEM_POSITION,
  13987. SEM_NORMAL,
  13988. SEM_BINORMAL,
  13989. SEM_TANGENT,
  13990. SEM_TEXCOORD,
  13991. SEM_COLOR,
  13992. SEM_BLENDWEIGHTS,
  13993. SEM_BLENDINDICES,
  13994. SEM_OBJECTINDEX,
  13995. MAX_VERTEX_ELEMENT_SEMANTICS,
  13996. };
  13997. enum VertexElementType
  13998. {
  13999. TYPE_INT,
  14000. TYPE_FLOAT,
  14001. TYPE_VECTOR2,
  14002. TYPE_VECTOR3,
  14003. TYPE_VECTOR4,
  14004. TYPE_UBYTE4,
  14005. TYPE_UBYTE4_NORM,
  14006. MAX_VERTEX_ELEMENT_TYPES,
  14007. };
  14008. enum VerticalAlignment
  14009. {
  14010. VA_TOP,
  14011. VA_CENTER,
  14012. VA_BOTTOM,
  14013. };
  14014. enum WrapMode
  14015. {
  14016. WM_LOOP,
  14017. WM_ONCE,
  14018. WM_CLAMP,
  14019. };
  14020. // Global functions
  14021. float Abs(float);
  14022. float Acos(float);
  14023. String AddTrailingSlash(const String&);
  14024. float Asin(float);
  14025. float Atan(float);
  14026. float Atan2(float, float);
  14027. float Ceil(float);
  14028. float Clamp(float, float, float);
  14029. int Clamp(int, int, int);
  14030. void ClearDelayedExecute(const String& = String ( ));
  14031. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14032. float Cos(float);
  14033. uint CountSetBits(uint);
  14034. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14035. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14036. bool Equals(float, float);
  14037. void ErrorDialog(const String&, const String&);
  14038. float Floor(float);
  14039. uint GetAlphaFormat();
  14040. Array<String> GetArguments();
  14041. String GetConsoleInput();
  14042. uint GetDepthStencilFormat();
  14043. Object GetEventSender();
  14044. String GetExtension(const String&, bool = true);
  14045. String GetFileName(const String&);
  14046. String GetFileNameAndExtension(const String&, bool = false);
  14047. String GetFileSizeString(uint64);
  14048. uint GetFloat16Format();
  14049. uint GetFloat32Format();
  14050. uint GetFormat(const String&);
  14051. Variant GetGlobalVar(const String&);
  14052. String GetInternalPath(const String&);
  14053. uint GetLinearDepthFormat();
  14054. uint GetLuminanceAlphaFormat();
  14055. uint GetLuminanceFormat();
  14056. uint GetMaxBones();
  14057. String GetMiniDumpDir();
  14058. uint GetNumLogicalCPUs();
  14059. uint GetNumPhysicalCPUs();
  14060. Array<String> GetObjectCategories();
  14061. Array<String> GetObjectsByCategory(const String&);
  14062. String GetParentPath(const String&);
  14063. String GetPath(const String&);
  14064. String GetPlatform();
  14065. uint GetRG16Format();
  14066. uint GetRGBA16Format();
  14067. uint GetRGBAFloat16Format();
  14068. uint GetRGBAFloat32Format();
  14069. uint GetRGBAFormat();
  14070. uint GetRGBFormat();
  14071. uint GetRGFloat16Format();
  14072. uint GetRGFloat32Format();
  14073. uint GetRandomSeed();
  14074. uint GetReadableDepthFormat();
  14075. String GetTextureUnitName(TextureUnit);
  14076. bool HasSubscribedToEvent(Object, const String&);
  14077. bool HasSubscribedToEvent(const String&);
  14078. bool IsAbsolutePath(const String&);
  14079. bool IsAlpha(uint);
  14080. bool IsDigit(uint);
  14081. bool IsNaN(float);
  14082. bool IsPowerOfTwo(uint);
  14083. String Join(Array<String>&, const String&);
  14084. float Lerp(float, float, float);
  14085. void MarkNetworkUpdate();
  14086. float Max(float, float);
  14087. int Max(int, int);
  14088. float Min(float, float);
  14089. int Min(int, int);
  14090. float Mod(float, float);
  14091. uint NextPowerOfTwo(uint);
  14092. void OpenConsoleWindow();
  14093. float Pow(float, float);
  14094. void Print(bool, bool = false);
  14095. void Print(const String&, bool = false);
  14096. void Print(const Variant&, bool = false);
  14097. void Print(float, bool = false);
  14098. void Print(int, bool = false);
  14099. void Print(uint, bool = false);
  14100. void PrintCallStack(bool = false);
  14101. float Random();
  14102. float Random(float);
  14103. float Random(float, float);
  14104. int RandomInt();
  14105. int RandomInt(int);
  14106. int RandomInt(int, int);
  14107. float RandomNormal(float, float);
  14108. void RegisterEventName(const String&);
  14109. void Remove();
  14110. String RemoveTrailingSlash(const String&);
  14111. String ReplaceExtension(const String&, const String&);
  14112. uint SDBMHash(uint, uint8);
  14113. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14114. void SetGlobalVar(const String&, Variant&);
  14115. void SetMiniDumpDir(const String&);
  14116. void SetRandomSeed(uint);
  14117. float Sign(float);
  14118. float Sin(float);
  14119. float SmoothStep(float, float, float);
  14120. float Sqrt(float);
  14121. const String& GetTypeName(StringHash);
  14122. void SubscribeToEvent(Object, const String&, const String&);
  14123. void SubscribeToEvent(const String&, const String&);
  14124. float Tan(float);
  14125. uint ToLower(uint);
  14126. String ToStringHex(int);
  14127. uint ToUpper(uint);
  14128. void UnsubscribeFromAllEvents();
  14129. void UnsubscribeFromAllEventsExcept(Array<String>);
  14130. void UnsubscribeFromEvent(Object, const String&);
  14131. void UnsubscribeFromEvent(const String&);
  14132. void UnsubscribeFromEvents(Object);
  14133. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14134. // Global properties
  14135. DBAPI DBAPI;
  14136. Audio audio;
  14137. ResourceCache cache;
  14138. Console console;
  14139. Database database;
  14140. DebugHud debugHud;
  14141. DebugRenderer debugRenderer;
  14142. Engine engine;
  14143. FileSystem fileSystem;
  14144. VariantMap globalVars;
  14145. Graphics graphics;
  14146. Input input;
  14147. Localization localization;
  14148. Log log;
  14149. Network network;
  14150. Node node;
  14151. Octree octree;
  14152. PhysicsWorld physicsWorld;
  14153. PhysicsWorld2D physicsWorld2D;
  14154. Renderer renderer;
  14155. ResourceCache resourceCache;
  14156. Scene scene;
  14157. Script script;
  14158. ScriptFile scriptFile;
  14159. ScriptInstance self;
  14160. Time time;
  14161. UI ui;
  14162. // Global constants
  14163. uint AM_COMPONENTID;
  14164. uint AM_DEFAULT;
  14165. uint AM_FILE;
  14166. uint AM_LATESTDATA;
  14167. uint AM_NET;
  14168. uint AM_NODEID;
  14169. uint AM_NODEIDVECTOR;
  14170. uint AM_NOEDIT;
  14171. Color BLACK;
  14172. Color BLUE;
  14173. uint8 CHANNEL_POSITION;
  14174. uint8 CHANNEL_ROTATION;
  14175. uint8 CHANNEL_SCALE;
  14176. uint CLEAR_COLOR;
  14177. uint CLEAR_DEPTH;
  14178. uint CLEAR_STENCIL;
  14179. int CONTROLLER_AXIS_LEFTX;
  14180. int CONTROLLER_AXIS_LEFTY;
  14181. int CONTROLLER_AXIS_RIGHTX;
  14182. int CONTROLLER_AXIS_RIGHTY;
  14183. int CONTROLLER_AXIS_TRIGGERLEFT;
  14184. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14185. int CONTROLLER_BUTTON_A;
  14186. int CONTROLLER_BUTTON_B;
  14187. int CONTROLLER_BUTTON_BACK;
  14188. int CONTROLLER_BUTTON_DPAD_DOWN;
  14189. int CONTROLLER_BUTTON_DPAD_LEFT;
  14190. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14191. int CONTROLLER_BUTTON_DPAD_UP;
  14192. int CONTROLLER_BUTTON_GUIDE;
  14193. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14194. int CONTROLLER_BUTTON_LEFTSTICK;
  14195. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14196. int CONTROLLER_BUTTON_RIGHTSTICK;
  14197. int CONTROLLER_BUTTON_START;
  14198. int CONTROLLER_BUTTON_X;
  14199. int CONTROLLER_BUTTON_Y;
  14200. Color CYAN;
  14201. uint DD_DISABLED;
  14202. uint DD_SOURCE;
  14203. uint DD_SOURCE_AND_TARGET;
  14204. uint DD_TARGET;
  14205. uint DEBUGHUD_SHOW_ALL;
  14206. uint DEBUGHUD_SHOW_ALL_MEMORY;
  14207. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14208. uint DEBUGHUD_SHOW_MEMORY;
  14209. uint DEBUGHUD_SHOW_MODE;
  14210. uint DEBUGHUD_SHOW_NONE;
  14211. uint DEBUGHUD_SHOW_PROFILER;
  14212. uint DEBUGHUD_SHOW_STATS;
  14213. uint DEFAULT_LIGHTMASK;
  14214. uint DEFAULT_VIEWMASK;
  14215. uint DRAWABLE_ANY;
  14216. uint DRAWABLE_GEOMETRY;
  14217. uint DRAWABLE_GEOMETRY2D;
  14218. uint DRAWABLE_LIGHT;
  14219. uint DRAWABLE_ZONE;
  14220. uint FIRST_LOCAL_ID;
  14221. uint FIRST_REPLICATED_ID;
  14222. Color GRAY;
  14223. Color GREEN;
  14224. int HAT_CENTER;
  14225. int HAT_DOWN;
  14226. int HAT_LEFT;
  14227. int HAT_RIGHT;
  14228. int HAT_UP;
  14229. int KEY_0;
  14230. int KEY_1;
  14231. int KEY_2;
  14232. int KEY_3;
  14233. int KEY_4;
  14234. int KEY_5;
  14235. int KEY_6;
  14236. int KEY_7;
  14237. int KEY_8;
  14238. int KEY_9;
  14239. int KEY_A;
  14240. int KEY_ALT;
  14241. int KEY_APPLICATION;
  14242. int KEY_B;
  14243. int KEY_BACKSPACE;
  14244. int KEY_C;
  14245. int KEY_CAPSLOCK;
  14246. int KEY_CTRL;
  14247. int KEY_D;
  14248. int KEY_DELETE;
  14249. int KEY_DOWN;
  14250. int KEY_E;
  14251. int KEY_END;
  14252. int KEY_ESCAPE;
  14253. int KEY_F;
  14254. int KEY_F1;
  14255. int KEY_F10;
  14256. int KEY_F11;
  14257. int KEY_F12;
  14258. int KEY_F13;
  14259. int KEY_F14;
  14260. int KEY_F15;
  14261. int KEY_F16;
  14262. int KEY_F17;
  14263. int KEY_F18;
  14264. int KEY_F19;
  14265. int KEY_F2;
  14266. int KEY_F20;
  14267. int KEY_F21;
  14268. int KEY_F22;
  14269. int KEY_F23;
  14270. int KEY_F24;
  14271. int KEY_F3;
  14272. int KEY_F4;
  14273. int KEY_F5;
  14274. int KEY_F6;
  14275. int KEY_F7;
  14276. int KEY_F8;
  14277. int KEY_F9;
  14278. int KEY_G;
  14279. int KEY_GUI;
  14280. int KEY_H;
  14281. int KEY_HOME;
  14282. int KEY_I;
  14283. int KEY_INSERT;
  14284. int KEY_J;
  14285. int KEY_K;
  14286. int KEY_KP_0;
  14287. int KEY_KP_1;
  14288. int KEY_KP_2;
  14289. int KEY_KP_3;
  14290. int KEY_KP_4;
  14291. int KEY_KP_5;
  14292. int KEY_KP_6;
  14293. int KEY_KP_7;
  14294. int KEY_KP_8;
  14295. int KEY_KP_9;
  14296. int KEY_KP_DIVIDE;
  14297. int KEY_KP_ENTER;
  14298. int KEY_KP_MINUS;
  14299. int KEY_KP_MULTIPLY;
  14300. int KEY_KP_PERIOD;
  14301. int KEY_KP_PLUS;
  14302. int KEY_L;
  14303. int KEY_LALT;
  14304. int KEY_LCTRL;
  14305. int KEY_LEFT;
  14306. int KEY_LGUI;
  14307. int KEY_LSHIFT;
  14308. int KEY_M;
  14309. int KEY_N;
  14310. int KEY_NUMLOCKCLEAR;
  14311. int KEY_O;
  14312. int KEY_P;
  14313. int KEY_PAGEDOWN;
  14314. int KEY_PAGEUP;
  14315. int KEY_PAUSE;
  14316. int KEY_PRINTSCREEN;
  14317. int KEY_Q;
  14318. int KEY_R;
  14319. int KEY_RALT;
  14320. int KEY_RCTRL;
  14321. int KEY_RETURN;
  14322. int KEY_RETURN2;
  14323. int KEY_RGUI;
  14324. int KEY_RIGHT;
  14325. int KEY_RSHIFT;
  14326. int KEY_S;
  14327. int KEY_SCROLLLOCK;
  14328. int KEY_SELECT;
  14329. int KEY_SHIFT;
  14330. int KEY_SPACE;
  14331. int KEY_T;
  14332. int KEY_TAB;
  14333. int KEY_U;
  14334. int KEY_UP;
  14335. int KEY_V;
  14336. int KEY_W;
  14337. int KEY_X;
  14338. int KEY_Y;
  14339. int KEY_Z;
  14340. uint LAST_LOCAL_ID;
  14341. uint LAST_REPLICATED_ID;
  14342. int LOG_DEBUG;
  14343. int LOG_ERROR;
  14344. int LOG_INFO;
  14345. int LOG_NONE;
  14346. int LOG_WARNING;
  14347. Color MAGENTA;
  14348. uint MASK_BLENDINDICES;
  14349. uint MASK_BLENDWEIGHTS;
  14350. uint MASK_COLOR;
  14351. uint MASK_CUBETEXCOORD1;
  14352. uint MASK_CUBETEXCOORD2;
  14353. uint MASK_INSTANCEMATRIX1;
  14354. uint MASK_INSTANCEMATRIX2;
  14355. uint MASK_INSTANCEMATRIX3;
  14356. uint MASK_NONE;
  14357. uint MASK_NORMAL;
  14358. uint MASK_OBJECTINDEX;
  14359. uint MASK_POSITION;
  14360. uint MASK_TANGENT;
  14361. uint MASK_TEXCOORD1;
  14362. uint MASK_TEXCOORD2;
  14363. int MOUSEB_LEFT;
  14364. int MOUSEB_MIDDLE;
  14365. int MOUSEB_RIGHT;
  14366. float M_DEGTORAD;
  14367. float M_DEGTORAD_2;
  14368. float M_EPSILON;
  14369. float M_HALF_PI;
  14370. float M_INFINITY;
  14371. float M_LARGE_EPSILON;
  14372. float M_LARGE_VALUE;
  14373. int M_MAX_INT;
  14374. uint M_MAX_UNSIGNED;
  14375. int M_MIN_INT;
  14376. uint M_MIN_UNSIGNED;
  14377. float M_PI;
  14378. float M_RADTODEG;
  14379. uint NPOS;
  14380. float PIXEL_SIZE;
  14381. int QUALITY_HIGH;
  14382. int QUALITY_LOW;
  14383. int QUALITY_MAX;
  14384. int QUALITY_MEDIUM;
  14385. int QUAL_ALT;
  14386. int QUAL_ANY;
  14387. int QUAL_CTRL;
  14388. int QUAL_SHIFT;
  14389. Color RED;
  14390. int SCANCODE_0;
  14391. int SCANCODE_1;
  14392. int SCANCODE_2;
  14393. int SCANCODE_3;
  14394. int SCANCODE_4;
  14395. int SCANCODE_5;
  14396. int SCANCODE_6;
  14397. int SCANCODE_7;
  14398. int SCANCODE_8;
  14399. int SCANCODE_9;
  14400. int SCANCODE_A;
  14401. int SCANCODE_AC_BACK;
  14402. int SCANCODE_AC_BOOKMARKS;
  14403. int SCANCODE_AC_FORWARD;
  14404. int SCANCODE_AC_HOME;
  14405. int SCANCODE_AC_REFRESH;
  14406. int SCANCODE_AC_SEARCH;
  14407. int SCANCODE_AC_STOP;
  14408. int SCANCODE_AGAIN;
  14409. int SCANCODE_ALT;
  14410. int SCANCODE_ALTERASE;
  14411. int SCANCODE_APOSTROPHE;
  14412. int SCANCODE_APP1;
  14413. int SCANCODE_APP2;
  14414. int SCANCODE_APPLICATION;
  14415. int SCANCODE_AUDIOMUTE;
  14416. int SCANCODE_AUDIONEXT;
  14417. int SCANCODE_AUDIOPLAY;
  14418. int SCANCODE_AUDIOPREV;
  14419. int SCANCODE_AUDIOSTOP;
  14420. int SCANCODE_B;
  14421. int SCANCODE_BACKSLASH;
  14422. int SCANCODE_BACKSPACE;
  14423. int SCANCODE_BRIGHTNESSDOWN;
  14424. int SCANCODE_BRIGHTNESSUP;
  14425. int SCANCODE_C;
  14426. int SCANCODE_CALCULATOR;
  14427. int SCANCODE_CANCEL;
  14428. int SCANCODE_CAPSLOCK;
  14429. int SCANCODE_CLEAR;
  14430. int SCANCODE_CLEARAGAIN;
  14431. int SCANCODE_COMMA;
  14432. int SCANCODE_COMPUTER;
  14433. int SCANCODE_COPY;
  14434. int SCANCODE_CRSEL;
  14435. int SCANCODE_CTRL;
  14436. int SCANCODE_CURRENCYSUBUNIT;
  14437. int SCANCODE_CURRENCYUNIT;
  14438. int SCANCODE_CUT;
  14439. int SCANCODE_D;
  14440. int SCANCODE_DECIMALSEPARATOR;
  14441. int SCANCODE_DELETE;
  14442. int SCANCODE_DISPLAYSWITCH;
  14443. int SCANCODE_DOWN;
  14444. int SCANCODE_E;
  14445. int SCANCODE_EJECT;
  14446. int SCANCODE_END;
  14447. int SCANCODE_EQUALS;
  14448. int SCANCODE_ESCAPE;
  14449. int SCANCODE_EXECUTE;
  14450. int SCANCODE_EXSEL;
  14451. int SCANCODE_F;
  14452. int SCANCODE_F1;
  14453. int SCANCODE_F10;
  14454. int SCANCODE_F11;
  14455. int SCANCODE_F12;
  14456. int SCANCODE_F13;
  14457. int SCANCODE_F14;
  14458. int SCANCODE_F15;
  14459. int SCANCODE_F16;
  14460. int SCANCODE_F17;
  14461. int SCANCODE_F18;
  14462. int SCANCODE_F19;
  14463. int SCANCODE_F2;
  14464. int SCANCODE_F20;
  14465. int SCANCODE_F21;
  14466. int SCANCODE_F22;
  14467. int SCANCODE_F23;
  14468. int SCANCODE_F24;
  14469. int SCANCODE_F3;
  14470. int SCANCODE_F4;
  14471. int SCANCODE_F5;
  14472. int SCANCODE_F6;
  14473. int SCANCODE_F7;
  14474. int SCANCODE_F8;
  14475. int SCANCODE_F9;
  14476. int SCANCODE_FIND;
  14477. int SCANCODE_G;
  14478. int SCANCODE_GRAVE;
  14479. int SCANCODE_GUI;
  14480. int SCANCODE_H;
  14481. int SCANCODE_HELP;
  14482. int SCANCODE_HOME;
  14483. int SCANCODE_I;
  14484. int SCANCODE_INSERT;
  14485. int SCANCODE_INTERNATIONAL1;
  14486. int SCANCODE_INTERNATIONAL2;
  14487. int SCANCODE_INTERNATIONAL3;
  14488. int SCANCODE_INTERNATIONAL4;
  14489. int SCANCODE_INTERNATIONAL5;
  14490. int SCANCODE_INTERNATIONAL6;
  14491. int SCANCODE_INTERNATIONAL7;
  14492. int SCANCODE_INTERNATIONAL8;
  14493. int SCANCODE_INTERNATIONAL9;
  14494. int SCANCODE_J;
  14495. int SCANCODE_K;
  14496. int SCANCODE_KBDILLUMDOWN;
  14497. int SCANCODE_KBDILLUMTOGGLE;
  14498. int SCANCODE_KBDILLUMUP;
  14499. int SCANCODE_KP_0;
  14500. int SCANCODE_KP_00;
  14501. int SCANCODE_KP_000;
  14502. int SCANCODE_KP_1;
  14503. int SCANCODE_KP_2;
  14504. int SCANCODE_KP_3;
  14505. int SCANCODE_KP_4;
  14506. int SCANCODE_KP_5;
  14507. int SCANCODE_KP_6;
  14508. int SCANCODE_KP_7;
  14509. int SCANCODE_KP_8;
  14510. int SCANCODE_KP_9;
  14511. int SCANCODE_KP_A;
  14512. int SCANCODE_KP_AMPERSAND;
  14513. int SCANCODE_KP_AT;
  14514. int SCANCODE_KP_B;
  14515. int SCANCODE_KP_BACKSPACE;
  14516. int SCANCODE_KP_BINARY;
  14517. int SCANCODE_KP_C;
  14518. int SCANCODE_KP_CLEAR;
  14519. int SCANCODE_KP_CLEARENTRY;
  14520. int SCANCODE_KP_COLON;
  14521. int SCANCODE_KP_COMMA;
  14522. int SCANCODE_KP_D;
  14523. int SCANCODE_KP_DBLAMPERSAND;
  14524. int SCANCODE_KP_DBLVERTICALBAR;
  14525. int SCANCODE_KP_DECIMAL;
  14526. int SCANCODE_KP_DIVIDE;
  14527. int SCANCODE_KP_E;
  14528. int SCANCODE_KP_ENTER;
  14529. int SCANCODE_KP_EQUALS;
  14530. int SCANCODE_KP_EQUALSAS400;
  14531. int SCANCODE_KP_EXCLAM;
  14532. int SCANCODE_KP_F;
  14533. int SCANCODE_KP_GREATER;
  14534. int SCANCODE_KP_HASH;
  14535. int SCANCODE_KP_HEXADECIMAL;
  14536. int SCANCODE_KP_LEFTBRACE;
  14537. int SCANCODE_KP_LEFTPAREN;
  14538. int SCANCODE_KP_LESS;
  14539. int SCANCODE_KP_MEMADD;
  14540. int SCANCODE_KP_MEMCLEAR;
  14541. int SCANCODE_KP_MEMDIVIDE;
  14542. int SCANCODE_KP_MEMMULTIPLY;
  14543. int SCANCODE_KP_MEMRECALL;
  14544. int SCANCODE_KP_MEMSTORE;
  14545. int SCANCODE_KP_MEMSUBTRACT;
  14546. int SCANCODE_KP_MINUS;
  14547. int SCANCODE_KP_MULTIPLY;
  14548. int SCANCODE_KP_OCTAL;
  14549. int SCANCODE_KP_PERCENT;
  14550. int SCANCODE_KP_PERIOD;
  14551. int SCANCODE_KP_PLUS;
  14552. int SCANCODE_KP_PLUSMINUS;
  14553. int SCANCODE_KP_POWER;
  14554. int SCANCODE_KP_RIGHTBRACE;
  14555. int SCANCODE_KP_RIGHTPAREN;
  14556. int SCANCODE_KP_SPACE;
  14557. int SCANCODE_KP_TAB;
  14558. int SCANCODE_KP_VERTICALBAR;
  14559. int SCANCODE_KP_XOR;
  14560. int SCANCODE_L;
  14561. int SCANCODE_LALT;
  14562. int SCANCODE_LANG1;
  14563. int SCANCODE_LANG2;
  14564. int SCANCODE_LANG3;
  14565. int SCANCODE_LANG4;
  14566. int SCANCODE_LANG5;
  14567. int SCANCODE_LANG6;
  14568. int SCANCODE_LANG7;
  14569. int SCANCODE_LANG8;
  14570. int SCANCODE_LANG9;
  14571. int SCANCODE_LCTRL;
  14572. int SCANCODE_LEFT;
  14573. int SCANCODE_LEFTBRACKET;
  14574. int SCANCODE_LGUI;
  14575. int SCANCODE_LSHIFT;
  14576. int SCANCODE_M;
  14577. int SCANCODE_MAIL;
  14578. int SCANCODE_MEDIASELECT;
  14579. int SCANCODE_MENU;
  14580. int SCANCODE_MINUS;
  14581. int SCANCODE_MODE;
  14582. int SCANCODE_MUTE;
  14583. int SCANCODE_N;
  14584. int SCANCODE_NONUSBACKSLASH;
  14585. int SCANCODE_NONUSHASH;
  14586. int SCANCODE_NUMLOCKCLEAR;
  14587. int SCANCODE_O;
  14588. int SCANCODE_OPER;
  14589. int SCANCODE_OUT;
  14590. int SCANCODE_P;
  14591. int SCANCODE_PAGEDOWN;
  14592. int SCANCODE_PAGEUP;
  14593. int SCANCODE_PASTE;
  14594. int SCANCODE_PAUSE;
  14595. int SCANCODE_PERIOD;
  14596. int SCANCODE_POWER;
  14597. int SCANCODE_PRINTSCREEN;
  14598. int SCANCODE_PRIOR;
  14599. int SCANCODE_Q;
  14600. int SCANCODE_R;
  14601. int SCANCODE_RALT;
  14602. int SCANCODE_RCTRL;
  14603. int SCANCODE_RETURN;
  14604. int SCANCODE_RETURN2;
  14605. int SCANCODE_RGUI;
  14606. int SCANCODE_RIGHT;
  14607. int SCANCODE_RIGHTBRACKET;
  14608. int SCANCODE_RSHIFT;
  14609. int SCANCODE_S;
  14610. int SCANCODE_SCROLLLOCK;
  14611. int SCANCODE_SELECT;
  14612. int SCANCODE_SEMICOLON;
  14613. int SCANCODE_SEPARATOR;
  14614. int SCANCODE_SHIFT;
  14615. int SCANCODE_SLASH;
  14616. int SCANCODE_SLEEP;
  14617. int SCANCODE_SPACE;
  14618. int SCANCODE_STOP;
  14619. int SCANCODE_SYSREQ;
  14620. int SCANCODE_T;
  14621. int SCANCODE_TAB;
  14622. int SCANCODE_THOUSANDSSEPARATOR;
  14623. int SCANCODE_U;
  14624. int SCANCODE_UNDO;
  14625. int SCANCODE_UNKNOWN;
  14626. int SCANCODE_UP;
  14627. int SCANCODE_V;
  14628. int SCANCODE_VOLUMEDOWN;
  14629. int SCANCODE_VOLUMEUP;
  14630. int SCANCODE_W;
  14631. int SCANCODE_WWW;
  14632. int SCANCODE_X;
  14633. int SCANCODE_Y;
  14634. int SCANCODE_Z;
  14635. uint SCAN_DIRS;
  14636. uint SCAN_FILES;
  14637. uint SCAN_HIDDEN;
  14638. String SOUND_AMBIENT;
  14639. String SOUND_EFFECT;
  14640. String SOUND_MASTER;
  14641. String SOUND_MUSIC;
  14642. String SOUND_VOICE;
  14643. Color TRANSPARENT;
  14644. uint VO_DISABLE_OCCLUSION;
  14645. uint VO_DISABLE_SHADOWS;
  14646. uint VO_LOW_MATERIAL_QUALITY;
  14647. uint VO_NONE;
  14648. Color WHITE;
  14649. Color YELLOW;