AngelScriptAPI.h 376 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174
  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. Matrix4 gpuProjection;
  1236. /* readonly */
  1237. float halfViewSize;
  1238. /* readonly */
  1239. uint id;
  1240. float lodBias;
  1241. float nearClip;
  1242. /* readonly */
  1243. Node node;
  1244. /* readonly */
  1245. uint numAttributes;
  1246. ObjectAnimation objectAnimation;
  1247. float orthoSize;
  1248. bool orthographic;
  1249. Matrix4 projection;
  1250. Vector2 projectionOffset;
  1251. Plane reflectionPlane;
  1252. /* readonly */
  1253. int refs;
  1254. bool temporary;
  1255. /* readonly */
  1256. StringHash type;
  1257. /* readonly */
  1258. String typeName;
  1259. bool useClipping;
  1260. bool useReflection;
  1261. /* readonly */
  1262. Matrix3x4 view;
  1263. uint viewMask;
  1264. uint viewOverrideFlags;
  1265. /* readonly */
  1266. Frustum viewSpaceFrustum;
  1267. /* readonly */
  1268. int weakRefs;
  1269. float zoom;
  1270. };
  1271. class CascadeParameters
  1272. {
  1273. // Properties:
  1274. float biasAutoAdjust;
  1275. float fadeStart;
  1276. float split1;
  1277. float split2;
  1278. float split3;
  1279. float split4;
  1280. };
  1281. class CheckBox
  1282. {
  1283. // Methods:
  1284. void AddChild(UIElement);
  1285. void AddTag(const String&);
  1286. void AddTags(const String&, int8 = ';');
  1287. void ApplyAttributes();
  1288. void BringToFront();
  1289. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1290. void DisableLayoutUpdate();
  1291. IntVector2 ElementToScreen(const IntVector2&);
  1292. void EnableLayoutUpdate();
  1293. uint FindChild(UIElement) const;
  1294. Variant GetAttribute(const String&) const;
  1295. ValueAnimation GetAttributeAnimation(const String&) const;
  1296. float GetAttributeAnimationSpeed(const String&) const;
  1297. float GetAttributeAnimationTime(const String&) const;
  1298. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1299. Variant GetAttributeDefault(const String&) const;
  1300. UIElement GetChild(const String&, bool = false) const;
  1301. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1302. Array<UIElement> GetChildren(bool = false) const;
  1303. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1304. UIElement GetElementEventSender() const;
  1305. bool GetInterceptNetworkUpdate(const String&) const;
  1306. uint GetNumChildren(bool) const;
  1307. bool HasSubscribedToEvent(Object, const String&);
  1308. bool HasSubscribedToEvent(const String&);
  1309. bool HasTag(const String&) const;
  1310. void InsertChild(uint, UIElement);
  1311. bool IsInside(IntVector2, bool);
  1312. bool IsInsideCombined(IntVector2, bool);
  1313. bool Load(File, bool = false);
  1314. bool Load(VectorBuffer&, bool = false);
  1315. bool LoadChildXML(XMLFile, XMLFile = null);
  1316. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1317. bool LoadJSON(const JSONValue&, bool = false);
  1318. bool LoadXML(File);
  1319. bool LoadXML(VectorBuffer&);
  1320. bool LoadXML(XMLFile, XMLFile);
  1321. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1322. bool LoadXML(const XMLElement&, bool = false);
  1323. void MarkNetworkUpdate() const;
  1324. void Remove();
  1325. void RemoveAllChildren();
  1326. void RemoveAllTags();
  1327. void RemoveAttributeAnimation(const String&);
  1328. void RemoveChild(UIElement, uint = 0);
  1329. void RemoveChild(uint);
  1330. void RemoveInstanceDefault();
  1331. void RemoveObjectAnimation();
  1332. bool RemoveTag(const String&);
  1333. void ResetDeepEnabled();
  1334. void ResetToDefault();
  1335. bool Save(File) const;
  1336. bool Save(VectorBuffer&) const;
  1337. bool SaveJSON(JSONValue&) const;
  1338. bool SaveXML(File, const String& = "\t");
  1339. bool SaveXML(VectorBuffer&, const String& = "\t");
  1340. bool SaveXML(XMLElement&) const;
  1341. IntVector2 ScreenToElement(const IntVector2&);
  1342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1343. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1344. void SetAnimationTime(float);
  1345. bool SetAttribute(const String&, const Variant&);
  1346. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1347. void SetAttributeAnimationSpeed(const String&, float);
  1348. void SetAttributeAnimationTime(const String&, float);
  1349. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1350. void SetCheckedOffset(int, int);
  1351. void SetDeepEnabled(bool);
  1352. void SetEnabledRecursive(bool);
  1353. void SetFixedHeight(int);
  1354. void SetFixedSize(int, int);
  1355. void SetFixedWidth(int);
  1356. void SetFullImageRect();
  1357. void SetHoverOffset(int, int);
  1358. void SetInterceptNetworkUpdate(const String&, bool);
  1359. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1360. void SetMaxSize(int, int);
  1361. void SetMinSize(int, int);
  1362. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1363. void SetPosition(int, int);
  1364. void SetSize(int, int);
  1365. bool SetStyle(const String&, XMLFile = null);
  1366. bool SetStyle(const XMLElement&);
  1367. bool SetStyleAuto(XMLFile = null);
  1368. void UpdateLayout();
  1369. const Variant& GetVar(const StringHash&);
  1370. // Properties:
  1371. bool animationEnabled;
  1372. /* readonly */
  1373. Array<Variant> attributeDefaults;
  1374. /* readonly */
  1375. Array<AttributeInfo> attributeInfos;
  1376. Array<Variant> attributes;
  1377. BlendMode blendMode;
  1378. IntRect border;
  1379. bool bringToBack;
  1380. bool bringToFront;
  1381. /* readonly */
  1382. String category;
  1383. bool checked;
  1384. IntVector2 checkedOffset;
  1385. /* readonly */
  1386. IntVector2 childOffset;
  1387. /* readonly */
  1388. Array<UIElement> children;
  1389. IntRect clipBorder;
  1390. bool clipChildren;
  1391. /* writeonly */
  1392. Color color;
  1393. /* readonly */
  1394. bool colorGradient;
  1395. Array<Color> colors;
  1396. /* readonly */
  1397. IntRect combinedScreenRect;
  1398. XMLFile defaultStyle;
  1399. /* readonly */
  1400. float derivedOpacity;
  1401. /* readonly */
  1402. uint dragButtonCombo;
  1403. /* readonly */
  1404. int dragButtonCount;
  1405. uint dragDropMode;
  1406. bool editable;
  1407. bool elementEventSender;
  1408. bool enabled;
  1409. /* readonly */
  1410. bool enabledSelf;
  1411. /* readonly */
  1412. bool fixedHeight;
  1413. /* readonly */
  1414. bool fixedSize;
  1415. /* readonly */
  1416. bool fixedWidth;
  1417. bool focus;
  1418. FocusMode focusMode;
  1419. int height;
  1420. HorizontalAlignment horizontalAlignment;
  1421. IntVector2 hoverOffset;
  1422. /* readonly */
  1423. bool hovering;
  1424. IntRect imageBorder;
  1425. IntRect imageRect;
  1426. int indent;
  1427. int indentSpacing;
  1428. /* readonly */
  1429. int indentWidth;
  1430. bool internal;
  1431. IntRect layoutBorder;
  1432. Vector2 layoutFlexScale;
  1433. LayoutMode layoutMode;
  1434. int layoutSpacing;
  1435. int maxHeight;
  1436. IntVector2 maxSize;
  1437. int maxWidth;
  1438. int minHeight;
  1439. IntVector2 minSize;
  1440. int minWidth;
  1441. String name;
  1442. /* readonly */
  1443. uint numAllChildren;
  1444. /* readonly */
  1445. uint numAttributes;
  1446. /* readonly */
  1447. uint numChildren;
  1448. ObjectAnimation objectAnimation;
  1449. float opacity;
  1450. UIElement parent;
  1451. IntVector2 position;
  1452. int priority;
  1453. /* readonly */
  1454. int refs;
  1455. /* readonly */
  1456. UIElement root;
  1457. /* readonly */
  1458. IntVector2 screenPosition;
  1459. bool selected;
  1460. IntVector2 size;
  1461. bool sortChildren;
  1462. String style;
  1463. /* readonly */
  1464. Array<String> tags;
  1465. bool temporary;
  1466. Texture texture;
  1467. bool tiled;
  1468. TraversalMode traversalMode;
  1469. /* readonly */
  1470. StringHash type;
  1471. /* readonly */
  1472. String typeName;
  1473. bool useDerivedOpacity;
  1474. /* readonly */
  1475. VariantMap vars;
  1476. VerticalAlignment verticalAlignment;
  1477. bool visible;
  1478. /* readonly */
  1479. bool visibleEffective;
  1480. /* readonly */
  1481. int weakRefs;
  1482. int width;
  1483. };
  1484. class CollisionBox2D
  1485. {
  1486. // Methods:
  1487. void ApplyAttributes();
  1488. void DrawDebugGeometry(DebugRenderer, bool);
  1489. Variant GetAttribute(const String&) const;
  1490. ValueAnimation GetAttributeAnimation(const String&) const;
  1491. float GetAttributeAnimationSpeed(const String&) const;
  1492. float GetAttributeAnimationTime(const String&) const;
  1493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1494. Variant GetAttributeDefault(const String&) const;
  1495. bool GetInterceptNetworkUpdate(const String&) const;
  1496. bool HasSubscribedToEvent(Object, const String&);
  1497. bool HasSubscribedToEvent(const String&);
  1498. bool Load(File, bool = false);
  1499. bool Load(VectorBuffer&, bool = false);
  1500. bool LoadJSON(const JSONValue&, bool = false);
  1501. bool LoadXML(const XMLElement&, bool = false);
  1502. void MarkNetworkUpdate() const;
  1503. void Remove();
  1504. void RemoveAttributeAnimation(const String&);
  1505. void RemoveInstanceDefault();
  1506. void RemoveObjectAnimation();
  1507. void ResetToDefault();
  1508. bool Save(File) const;
  1509. bool Save(VectorBuffer&) const;
  1510. bool SaveJSON(JSONValue&) const;
  1511. bool SaveXML(XMLElement&) const;
  1512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1513. void SetAnimationTime(float);
  1514. bool SetAttribute(const String&, const Variant&);
  1515. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1516. void SetAttributeAnimationSpeed(const String&, float);
  1517. void SetAttributeAnimationTime(const String&, float);
  1518. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1519. void SetCenter(float, float);
  1520. void SetInterceptNetworkUpdate(const String&, bool);
  1521. void SetSize(float, float);
  1522. // Properties:
  1523. float angle;
  1524. bool animationEnabled;
  1525. /* readonly */
  1526. Array<Variant> attributeDefaults;
  1527. /* readonly */
  1528. Array<AttributeInfo> attributeInfos;
  1529. Array<Variant> attributes;
  1530. /* readonly */
  1531. String category;
  1532. int categoryBits;
  1533. Vector2 center;
  1534. float density;
  1535. bool enabled;
  1536. /* readonly */
  1537. bool enabledEffective;
  1538. float friction;
  1539. int groupIndex;
  1540. /* readonly */
  1541. uint id;
  1542. /* readonly */
  1543. float inertia;
  1544. int maskBits;
  1545. /* readonly */
  1546. float mass;
  1547. /* readonly */
  1548. Vector2 massCenter;
  1549. /* readonly */
  1550. Node node;
  1551. /* readonly */
  1552. uint numAttributes;
  1553. ObjectAnimation objectAnimation;
  1554. /* readonly */
  1555. int refs;
  1556. float restitution;
  1557. Vector2 size;
  1558. bool temporary;
  1559. bool trigger;
  1560. /* readonly */
  1561. StringHash type;
  1562. /* readonly */
  1563. String typeName;
  1564. /* readonly */
  1565. int weakRefs;
  1566. };
  1567. class CollisionChain2D
  1568. {
  1569. // Methods:
  1570. void ApplyAttributes();
  1571. void DrawDebugGeometry(DebugRenderer, bool);
  1572. Variant GetAttribute(const String&) const;
  1573. ValueAnimation GetAttributeAnimation(const String&) const;
  1574. float GetAttributeAnimationSpeed(const String&) const;
  1575. float GetAttributeAnimationTime(const String&) const;
  1576. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1577. Variant GetAttributeDefault(const String&) const;
  1578. bool GetInterceptNetworkUpdate(const String&) const;
  1579. Array<Vector2> GetVertices() const;
  1580. bool HasSubscribedToEvent(Object, const String&);
  1581. bool HasSubscribedToEvent(const String&);
  1582. bool Load(File, bool = false);
  1583. bool Load(VectorBuffer&, bool = false);
  1584. bool LoadJSON(const JSONValue&, bool = false);
  1585. bool LoadXML(const XMLElement&, bool = false);
  1586. void MarkNetworkUpdate() const;
  1587. void Remove();
  1588. void RemoveAttributeAnimation(const String&);
  1589. void RemoveInstanceDefault();
  1590. void RemoveObjectAnimation();
  1591. void ResetToDefault();
  1592. bool Save(File) const;
  1593. bool Save(VectorBuffer&) const;
  1594. bool SaveJSON(JSONValue&) const;
  1595. bool SaveXML(XMLElement&) const;
  1596. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1597. void SetAnimationTime(float);
  1598. bool SetAttribute(const String&, const Variant&);
  1599. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1600. void SetAttributeAnimationSpeed(const String&, float);
  1601. void SetAttributeAnimationTime(const String&, float);
  1602. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1603. void SetInterceptNetworkUpdate(const String&, bool);
  1604. void SetVertex(uint, const Vector2&);
  1605. void SetVertices(Array<Vector2>);
  1606. const Vector2& GetVertex(uint) const;
  1607. // Properties:
  1608. bool animationEnabled;
  1609. /* readonly */
  1610. Array<Variant> attributeDefaults;
  1611. /* readonly */
  1612. Array<AttributeInfo> attributeInfos;
  1613. Array<Variant> attributes;
  1614. /* readonly */
  1615. String category;
  1616. int categoryBits;
  1617. float density;
  1618. bool enabled;
  1619. /* readonly */
  1620. bool enabledEffective;
  1621. float friction;
  1622. int groupIndex;
  1623. /* readonly */
  1624. uint id;
  1625. /* readonly */
  1626. float inertia;
  1627. bool loop;
  1628. int maskBits;
  1629. /* readonly */
  1630. float mass;
  1631. /* readonly */
  1632. Vector2 massCenter;
  1633. /* readonly */
  1634. Node node;
  1635. /* readonly */
  1636. uint numAttributes;
  1637. ObjectAnimation objectAnimation;
  1638. /* readonly */
  1639. int refs;
  1640. float restitution;
  1641. bool temporary;
  1642. bool trigger;
  1643. /* readonly */
  1644. StringHash type;
  1645. /* readonly */
  1646. String typeName;
  1647. uint vertexCount;
  1648. /* readonly */
  1649. int weakRefs;
  1650. };
  1651. class CollisionCircle2D
  1652. {
  1653. // Methods:
  1654. void ApplyAttributes();
  1655. void DrawDebugGeometry(DebugRenderer, bool);
  1656. Variant GetAttribute(const String&) const;
  1657. ValueAnimation GetAttributeAnimation(const String&) const;
  1658. float GetAttributeAnimationSpeed(const String&) const;
  1659. float GetAttributeAnimationTime(const String&) const;
  1660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1661. Variant GetAttributeDefault(const String&) const;
  1662. bool GetInterceptNetworkUpdate(const String&) const;
  1663. bool HasSubscribedToEvent(Object, const String&);
  1664. bool HasSubscribedToEvent(const String&);
  1665. bool Load(File, bool = false);
  1666. bool Load(VectorBuffer&, bool = false);
  1667. bool LoadJSON(const JSONValue&, bool = false);
  1668. bool LoadXML(const XMLElement&, bool = false);
  1669. void MarkNetworkUpdate() const;
  1670. void Remove();
  1671. void RemoveAttributeAnimation(const String&);
  1672. void RemoveInstanceDefault();
  1673. void RemoveObjectAnimation();
  1674. void ResetToDefault();
  1675. bool Save(File) const;
  1676. bool Save(VectorBuffer&) const;
  1677. bool SaveJSON(JSONValue&) const;
  1678. bool SaveXML(XMLElement&) const;
  1679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1680. void SetAnimationTime(float);
  1681. bool SetAttribute(const String&, const Variant&);
  1682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1683. void SetAttributeAnimationSpeed(const String&, float);
  1684. void SetAttributeAnimationTime(const String&, float);
  1685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1686. void SetCenter(float, float);
  1687. void SetInterceptNetworkUpdate(const String&, bool);
  1688. // Properties:
  1689. bool animationEnabled;
  1690. /* readonly */
  1691. Array<Variant> attributeDefaults;
  1692. /* readonly */
  1693. Array<AttributeInfo> attributeInfos;
  1694. Array<Variant> attributes;
  1695. /* readonly */
  1696. String category;
  1697. int categoryBits;
  1698. Vector2 center;
  1699. float density;
  1700. bool enabled;
  1701. /* readonly */
  1702. bool enabledEffective;
  1703. float friction;
  1704. int groupIndex;
  1705. /* readonly */
  1706. uint id;
  1707. /* readonly */
  1708. float inertia;
  1709. int maskBits;
  1710. /* readonly */
  1711. float mass;
  1712. /* readonly */
  1713. Vector2 massCenter;
  1714. /* readonly */
  1715. Node node;
  1716. /* readonly */
  1717. uint numAttributes;
  1718. ObjectAnimation objectAnimation;
  1719. float radius;
  1720. /* readonly */
  1721. int refs;
  1722. float restitution;
  1723. bool temporary;
  1724. bool trigger;
  1725. /* readonly */
  1726. StringHash type;
  1727. /* readonly */
  1728. String typeName;
  1729. /* readonly */
  1730. int weakRefs;
  1731. };
  1732. class CollisionEdge2D
  1733. {
  1734. // Methods:
  1735. void ApplyAttributes();
  1736. void DrawDebugGeometry(DebugRenderer, bool);
  1737. Variant GetAttribute(const String&) const;
  1738. ValueAnimation GetAttributeAnimation(const String&) const;
  1739. float GetAttributeAnimationSpeed(const String&) const;
  1740. float GetAttributeAnimationTime(const String&) const;
  1741. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1742. Variant GetAttributeDefault(const String&) const;
  1743. bool GetInterceptNetworkUpdate(const String&) const;
  1744. bool HasSubscribedToEvent(Object, const String&);
  1745. bool HasSubscribedToEvent(const String&);
  1746. bool Load(File, bool = false);
  1747. bool Load(VectorBuffer&, bool = false);
  1748. bool LoadJSON(const JSONValue&, bool = false);
  1749. bool LoadXML(const XMLElement&, bool = false);
  1750. void MarkNetworkUpdate() const;
  1751. void Remove();
  1752. void RemoveAttributeAnimation(const String&);
  1753. void RemoveInstanceDefault();
  1754. void RemoveObjectAnimation();
  1755. void ResetToDefault();
  1756. bool Save(File) const;
  1757. bool Save(VectorBuffer&) const;
  1758. bool SaveJSON(JSONValue&) const;
  1759. bool SaveXML(XMLElement&) const;
  1760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1761. void SetAnimationTime(float);
  1762. bool SetAttribute(const String&, const Variant&);
  1763. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1764. void SetAttributeAnimationSpeed(const String&, float);
  1765. void SetAttributeAnimationTime(const String&, float);
  1766. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1767. void SetInterceptNetworkUpdate(const String&, bool);
  1768. void SetVertices(const Vector2&, const Vector2&);
  1769. // Properties:
  1770. bool animationEnabled;
  1771. /* readonly */
  1772. Array<Variant> attributeDefaults;
  1773. /* readonly */
  1774. Array<AttributeInfo> attributeInfos;
  1775. Array<Variant> attributes;
  1776. /* readonly */
  1777. String category;
  1778. int categoryBits;
  1779. float density;
  1780. bool enabled;
  1781. /* readonly */
  1782. bool enabledEffective;
  1783. float friction;
  1784. int groupIndex;
  1785. /* readonly */
  1786. uint id;
  1787. /* readonly */
  1788. float inertia;
  1789. int maskBits;
  1790. /* readonly */
  1791. float mass;
  1792. /* readonly */
  1793. Vector2 massCenter;
  1794. /* readonly */
  1795. Node node;
  1796. /* readonly */
  1797. uint numAttributes;
  1798. ObjectAnimation objectAnimation;
  1799. /* readonly */
  1800. int refs;
  1801. float restitution;
  1802. bool temporary;
  1803. bool trigger;
  1804. /* readonly */
  1805. StringHash type;
  1806. /* readonly */
  1807. String typeName;
  1808. Vector2 vertex1;
  1809. Vector2 vertex2;
  1810. /* readonly */
  1811. int weakRefs;
  1812. };
  1813. class CollisionPolygon2D
  1814. {
  1815. // Methods:
  1816. void ApplyAttributes();
  1817. void DrawDebugGeometry(DebugRenderer, bool);
  1818. Variant GetAttribute(const String&) const;
  1819. ValueAnimation GetAttributeAnimation(const String&) const;
  1820. float GetAttributeAnimationSpeed(const String&) const;
  1821. float GetAttributeAnimationTime(const String&) const;
  1822. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1823. Variant GetAttributeDefault(const String&) const;
  1824. bool GetInterceptNetworkUpdate(const String&) const;
  1825. Array<Vector2> GetVertices() const;
  1826. bool HasSubscribedToEvent(Object, const String&);
  1827. bool HasSubscribedToEvent(const String&);
  1828. bool Load(File, bool = false);
  1829. bool Load(VectorBuffer&, bool = false);
  1830. bool LoadJSON(const JSONValue&, bool = false);
  1831. bool LoadXML(const XMLElement&, bool = false);
  1832. void MarkNetworkUpdate() const;
  1833. void Remove();
  1834. void RemoveAttributeAnimation(const String&);
  1835. void RemoveInstanceDefault();
  1836. void RemoveObjectAnimation();
  1837. void ResetToDefault();
  1838. bool Save(File) const;
  1839. bool Save(VectorBuffer&) const;
  1840. bool SaveJSON(JSONValue&) const;
  1841. bool SaveXML(XMLElement&) const;
  1842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1843. void SetAnimationTime(float);
  1844. bool SetAttribute(const String&, const Variant&);
  1845. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1846. void SetAttributeAnimationSpeed(const String&, float);
  1847. void SetAttributeAnimationTime(const String&, float);
  1848. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1849. void SetInterceptNetworkUpdate(const String&, bool);
  1850. void SetVertex(uint, const Vector2&);
  1851. void SetVertices(Array<Vector2>);
  1852. const Vector2& GetVertex(uint) const;
  1853. // Properties:
  1854. bool animationEnabled;
  1855. /* readonly */
  1856. Array<Variant> attributeDefaults;
  1857. /* readonly */
  1858. Array<AttributeInfo> attributeInfos;
  1859. Array<Variant> attributes;
  1860. /* readonly */
  1861. String category;
  1862. int categoryBits;
  1863. float density;
  1864. bool enabled;
  1865. /* readonly */
  1866. bool enabledEffective;
  1867. float friction;
  1868. int groupIndex;
  1869. /* readonly */
  1870. uint id;
  1871. /* readonly */
  1872. float inertia;
  1873. int maskBits;
  1874. /* readonly */
  1875. float mass;
  1876. /* readonly */
  1877. Vector2 massCenter;
  1878. /* readonly */
  1879. Node node;
  1880. /* readonly */
  1881. uint numAttributes;
  1882. ObjectAnimation objectAnimation;
  1883. /* readonly */
  1884. int refs;
  1885. float restitution;
  1886. bool temporary;
  1887. bool trigger;
  1888. /* readonly */
  1889. StringHash type;
  1890. /* readonly */
  1891. String typeName;
  1892. uint vertexCount;
  1893. /* readonly */
  1894. int weakRefs;
  1895. };
  1896. class CollisionShape
  1897. {
  1898. // Methods:
  1899. void ApplyAttributes();
  1900. void DrawDebugGeometry(DebugRenderer, bool);
  1901. Variant GetAttribute(const String&) const;
  1902. ValueAnimation GetAttributeAnimation(const String&) const;
  1903. float GetAttributeAnimationSpeed(const String&) const;
  1904. float GetAttributeAnimationTime(const String&) const;
  1905. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1906. Variant GetAttributeDefault(const String&) const;
  1907. bool GetInterceptNetworkUpdate(const String&) const;
  1908. bool HasSubscribedToEvent(Object, const String&);
  1909. bool HasSubscribedToEvent(const String&);
  1910. bool Load(File, bool = false);
  1911. bool Load(VectorBuffer&, bool = false);
  1912. bool LoadJSON(const JSONValue&, bool = false);
  1913. bool LoadXML(const XMLElement&, bool = false);
  1914. void MarkNetworkUpdate() const;
  1915. void Remove();
  1916. void RemoveAttributeAnimation(const String&);
  1917. void RemoveInstanceDefault();
  1918. void RemoveObjectAnimation();
  1919. void ResetToDefault();
  1920. bool Save(File) const;
  1921. bool Save(VectorBuffer&) const;
  1922. bool SaveJSON(JSONValue&) const;
  1923. bool SaveXML(XMLElement&) const;
  1924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1925. void SetAnimationTime(float);
  1926. bool SetAttribute(const String&, const Variant&);
  1927. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1928. void SetAttributeAnimationSpeed(const String&, float);
  1929. void SetAttributeAnimationTime(const String&, float);
  1930. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1931. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1938. void SetInterceptNetworkUpdate(const String&, bool);
  1939. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1940. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1941. void SetTerrain(uint = 0);
  1942. void SetTransform(const Vector3&, const Quaternion&);
  1943. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1944. // Properties:
  1945. bool animationEnabled;
  1946. /* readonly */
  1947. Array<Variant> attributeDefaults;
  1948. /* readonly */
  1949. Array<AttributeInfo> attributeInfos;
  1950. Array<Variant> attributes;
  1951. /* readonly */
  1952. String category;
  1953. bool enabled;
  1954. /* readonly */
  1955. bool enabledEffective;
  1956. /* readonly */
  1957. uint id;
  1958. uint lodLevel;
  1959. float margin;
  1960. Model model;
  1961. /* readonly */
  1962. Node node;
  1963. /* readonly */
  1964. uint numAttributes;
  1965. ObjectAnimation objectAnimation;
  1966. Vector3 position;
  1967. /* readonly */
  1968. int refs;
  1969. Quaternion rotation;
  1970. ShapeType shapeType;
  1971. Vector3 size;
  1972. bool temporary;
  1973. /* readonly */
  1974. StringHash type;
  1975. /* readonly */
  1976. String typeName;
  1977. /* readonly */
  1978. int weakRefs;
  1979. /* readonly */
  1980. BoundingBox worldBoundingBox;
  1981. };
  1982. class CollisionShape2D
  1983. {
  1984. // Methods:
  1985. void ApplyAttributes();
  1986. void DrawDebugGeometry(DebugRenderer, bool);
  1987. Variant GetAttribute(const String&) const;
  1988. ValueAnimation GetAttributeAnimation(const String&) const;
  1989. float GetAttributeAnimationSpeed(const String&) const;
  1990. float GetAttributeAnimationTime(const String&) const;
  1991. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1992. Variant GetAttributeDefault(const String&) const;
  1993. bool GetInterceptNetworkUpdate(const String&) const;
  1994. bool HasSubscribedToEvent(Object, const String&);
  1995. bool HasSubscribedToEvent(const String&);
  1996. bool Load(File, bool = false);
  1997. bool Load(VectorBuffer&, bool = false);
  1998. bool LoadJSON(const JSONValue&, bool = false);
  1999. bool LoadXML(const XMLElement&, bool = false);
  2000. void MarkNetworkUpdate() const;
  2001. void Remove();
  2002. void RemoveAttributeAnimation(const String&);
  2003. void RemoveInstanceDefault();
  2004. void RemoveObjectAnimation();
  2005. void ResetToDefault();
  2006. bool Save(File) const;
  2007. bool Save(VectorBuffer&) const;
  2008. bool SaveJSON(JSONValue&) const;
  2009. bool SaveXML(XMLElement&) const;
  2010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2011. void SetAnimationTime(float);
  2012. bool SetAttribute(const String&, const Variant&);
  2013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2014. void SetAttributeAnimationSpeed(const String&, float);
  2015. void SetAttributeAnimationTime(const String&, float);
  2016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2017. void SetInterceptNetworkUpdate(const String&, bool);
  2018. // Properties:
  2019. bool animationEnabled;
  2020. /* readonly */
  2021. Array<Variant> attributeDefaults;
  2022. /* readonly */
  2023. Array<AttributeInfo> attributeInfos;
  2024. Array<Variant> attributes;
  2025. /* readonly */
  2026. String category;
  2027. int categoryBits;
  2028. float density;
  2029. bool enabled;
  2030. /* readonly */
  2031. bool enabledEffective;
  2032. float friction;
  2033. int groupIndex;
  2034. /* readonly */
  2035. uint id;
  2036. /* readonly */
  2037. float inertia;
  2038. int maskBits;
  2039. /* readonly */
  2040. float mass;
  2041. /* readonly */
  2042. Vector2 massCenter;
  2043. /* readonly */
  2044. Node node;
  2045. /* readonly */
  2046. uint numAttributes;
  2047. ObjectAnimation objectAnimation;
  2048. /* readonly */
  2049. int refs;
  2050. float restitution;
  2051. bool temporary;
  2052. bool trigger;
  2053. /* readonly */
  2054. StringHash type;
  2055. /* readonly */
  2056. String typeName;
  2057. /* readonly */
  2058. int weakRefs;
  2059. };
  2060. class Color
  2061. {
  2062. // Methods:
  2063. Color Abs() const;
  2064. float Average() const;
  2065. float Chroma() const;
  2066. void Clip(bool);
  2067. bool Equals() const;
  2068. void FromHSL(float, float, float, float);
  2069. void FromHSV(float, float, float, float);
  2070. float Hue() const;
  2071. void Invert(bool);
  2072. Color Lerp(const Color&, float) const;
  2073. float Lightness() const;
  2074. float Luma() const;
  2075. float MaxRGB() const;
  2076. float MinRGB() const;
  2077. float Range() const;
  2078. float SaturationHSL() const;
  2079. float SaturationHSV() const;
  2080. float SumRGB() const;
  2081. Vector3 ToHSL() const;
  2082. Vector3 ToHSV() const;
  2083. String ToString() const;
  2084. uint ToUInt() const;
  2085. float Value() const;
  2086. // Properties:
  2087. float a;
  2088. float b;
  2089. /* readonly */
  2090. Array<float> data;
  2091. float g;
  2092. float r;
  2093. /* readonly */
  2094. Vector3 rgb;
  2095. /* readonly */
  2096. Vector4 rgba;
  2097. };
  2098. class ColorFrame
  2099. {
  2100. // Properties:
  2101. Color color;
  2102. float time;
  2103. };
  2104. class Component
  2105. {
  2106. // Methods:
  2107. void ApplyAttributes();
  2108. void DrawDebugGeometry(DebugRenderer, bool);
  2109. Variant GetAttribute(const String&) const;
  2110. ValueAnimation GetAttributeAnimation(const String&) const;
  2111. float GetAttributeAnimationSpeed(const String&) const;
  2112. float GetAttributeAnimationTime(const String&) const;
  2113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2114. Variant GetAttributeDefault(const String&) const;
  2115. bool GetInterceptNetworkUpdate(const String&) const;
  2116. bool HasSubscribedToEvent(Object, const String&);
  2117. bool HasSubscribedToEvent(const String&);
  2118. bool Load(File, bool = false);
  2119. bool Load(VectorBuffer&, bool = false);
  2120. bool LoadJSON(const JSONValue&, bool = false);
  2121. bool LoadXML(const XMLElement&, bool = false);
  2122. void MarkNetworkUpdate() const;
  2123. void Remove();
  2124. void RemoveAttributeAnimation(const String&);
  2125. void RemoveInstanceDefault();
  2126. void RemoveObjectAnimation();
  2127. void ResetToDefault();
  2128. bool Save(File) const;
  2129. bool Save(VectorBuffer&) const;
  2130. bool SaveJSON(JSONValue&) const;
  2131. bool SaveXML(XMLElement&) const;
  2132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2133. void SetAnimationTime(float);
  2134. bool SetAttribute(const String&, const Variant&);
  2135. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2136. void SetAttributeAnimationSpeed(const String&, float);
  2137. void SetAttributeAnimationTime(const String&, float);
  2138. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2139. void SetInterceptNetworkUpdate(const String&, bool);
  2140. // Properties:
  2141. bool animationEnabled;
  2142. /* readonly */
  2143. Array<Variant> attributeDefaults;
  2144. /* readonly */
  2145. Array<AttributeInfo> attributeInfos;
  2146. Array<Variant> attributes;
  2147. /* readonly */
  2148. String category;
  2149. bool enabled;
  2150. /* readonly */
  2151. bool enabledEffective;
  2152. /* readonly */
  2153. uint id;
  2154. /* readonly */
  2155. Node node;
  2156. /* readonly */
  2157. uint numAttributes;
  2158. ObjectAnimation objectAnimation;
  2159. /* readonly */
  2160. int refs;
  2161. bool temporary;
  2162. /* readonly */
  2163. StringHash type;
  2164. /* readonly */
  2165. String typeName;
  2166. /* readonly */
  2167. int weakRefs;
  2168. };
  2169. class Connection
  2170. {
  2171. // Methods:
  2172. void Disconnect(int = 0);
  2173. bool HasSubscribedToEvent(Object, const String&);
  2174. bool HasSubscribedToEvent(const String&);
  2175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2176. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2177. void SendPackageToClient(PackageFile);
  2178. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2179. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2180. String ToString() const;
  2181. // Properties:
  2182. /* readonly */
  2183. String address;
  2184. /* readonly */
  2185. float bytesInPerSec;
  2186. /* readonly */
  2187. float bytesOutPerSec;
  2188. /* readonly */
  2189. String category;
  2190. /* readonly */
  2191. bool client;
  2192. /* readonly */
  2193. bool connectPending;
  2194. /* readonly */
  2195. bool connected;
  2196. Controls controls;
  2197. /* readonly */
  2198. String downloadName;
  2199. /* readonly */
  2200. float downloadProgress;
  2201. VariantMap identity;
  2202. /* readonly */
  2203. float lastHeardTime;
  2204. bool logStatistics;
  2205. /* readonly */
  2206. uint numDownloads;
  2207. /* readonly */
  2208. float packetsInPerSec;
  2209. /* readonly */
  2210. float packetsOutPerSec;
  2211. /* readonly */
  2212. uint16 port;
  2213. Vector3 position;
  2214. /* readonly */
  2215. int refs;
  2216. Quaternion rotation;
  2217. /* readonly */
  2218. float roundTripTime;
  2219. Scene scene;
  2220. /* readonly */
  2221. bool sceneLoaded;
  2222. uint8 timeStamp;
  2223. /* readonly */
  2224. StringHash type;
  2225. /* readonly */
  2226. String typeName;
  2227. /* readonly */
  2228. int weakRefs;
  2229. };
  2230. class Console
  2231. {
  2232. // Methods:
  2233. void CopySelectedRows() const;
  2234. bool HasSubscribedToEvent(Object, const String&);
  2235. bool HasSubscribedToEvent(const String&);
  2236. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2237. void Toggle();
  2238. void UpdateElements();
  2239. // Properties:
  2240. bool autoVisibleOnError;
  2241. /* readonly */
  2242. BorderImage background;
  2243. /* readonly */
  2244. String category;
  2245. /* readonly */
  2246. Button closeButton;
  2247. String commandInterpreter;
  2248. XMLFile defaultStyle;
  2249. bool focusOnShow;
  2250. /* readonly */
  2251. uint historyPosition;
  2252. /* readonly */
  2253. Array<String> historyRow;
  2254. /* readonly */
  2255. LineEdit lineEdit;
  2256. uint numBufferedRows;
  2257. uint numHistoryRows;
  2258. uint numRows;
  2259. /* readonly */
  2260. int refs;
  2261. /* readonly */
  2262. StringHash type;
  2263. /* readonly */
  2264. String typeName;
  2265. bool visible;
  2266. /* readonly */
  2267. int weakRefs;
  2268. };
  2269. class Constraint
  2270. {
  2271. // Methods:
  2272. void ApplyAttributes();
  2273. void DrawDebugGeometry(DebugRenderer, bool);
  2274. Variant GetAttribute(const String&) const;
  2275. ValueAnimation GetAttributeAnimation(const String&) const;
  2276. float GetAttributeAnimationSpeed(const String&) const;
  2277. float GetAttributeAnimationTime(const String&) const;
  2278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2279. Variant GetAttributeDefault(const String&) const;
  2280. bool GetInterceptNetworkUpdate(const String&) const;
  2281. bool HasSubscribedToEvent(Object, const String&);
  2282. bool HasSubscribedToEvent(const String&);
  2283. bool Load(File, bool = false);
  2284. bool Load(VectorBuffer&, bool = false);
  2285. bool LoadJSON(const JSONValue&, bool = false);
  2286. bool LoadXML(const XMLElement&, bool = false);
  2287. void MarkNetworkUpdate() const;
  2288. void Remove();
  2289. void RemoveAttributeAnimation(const String&);
  2290. void RemoveInstanceDefault();
  2291. void RemoveObjectAnimation();
  2292. void ResetToDefault();
  2293. bool Save(File) const;
  2294. bool Save(VectorBuffer&) const;
  2295. bool SaveJSON(JSONValue&) const;
  2296. bool SaveXML(XMLElement&) const;
  2297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2298. void SetAnimationTime(float);
  2299. bool SetAttribute(const String&, const Variant&);
  2300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2301. void SetAttributeAnimationSpeed(const String&, float);
  2302. void SetAttributeAnimationTime(const String&, float);
  2303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2304. void SetInterceptNetworkUpdate(const String&, bool);
  2305. // Properties:
  2306. bool animationEnabled;
  2307. /* readonly */
  2308. Array<Variant> attributeDefaults;
  2309. /* readonly */
  2310. Array<AttributeInfo> attributeInfos;
  2311. Array<Variant> attributes;
  2312. /* writeonly */
  2313. Vector3 axis;
  2314. /* readonly */
  2315. String category;
  2316. float cfm;
  2317. ConstraintType constraintType;
  2318. bool disableCollision;
  2319. bool enabled;
  2320. /* readonly */
  2321. bool enabledEffective;
  2322. float erp;
  2323. Vector2 highLimit;
  2324. /* readonly */
  2325. uint id;
  2326. Vector2 lowLimit;
  2327. /* readonly */
  2328. Node node;
  2329. /* readonly */
  2330. uint numAttributes;
  2331. ObjectAnimation objectAnimation;
  2332. /* writeonly */
  2333. Vector3 otherAxis;
  2334. RigidBody otherBody;
  2335. Vector3 otherPosition;
  2336. Quaternion otherRotation;
  2337. /* readonly */
  2338. RigidBody ownBody;
  2339. Vector3 position;
  2340. /* readonly */
  2341. int refs;
  2342. Quaternion rotation;
  2343. bool temporary;
  2344. /* readonly */
  2345. StringHash type;
  2346. /* readonly */
  2347. String typeName;
  2348. /* readonly */
  2349. int weakRefs;
  2350. Vector3 worldPosition;
  2351. };
  2352. class Constraint2D
  2353. {
  2354. // Methods:
  2355. void ApplyAttributes();
  2356. void DrawDebugGeometry(DebugRenderer, bool);
  2357. Variant GetAttribute(const String&) const;
  2358. ValueAnimation GetAttributeAnimation(const String&) const;
  2359. float GetAttributeAnimationSpeed(const String&) const;
  2360. float GetAttributeAnimationTime(const String&) const;
  2361. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2362. Variant GetAttributeDefault(const String&) const;
  2363. bool GetInterceptNetworkUpdate(const String&) const;
  2364. bool HasSubscribedToEvent(Object, const String&);
  2365. bool HasSubscribedToEvent(const String&);
  2366. bool Load(File, bool = false);
  2367. bool Load(VectorBuffer&, bool = false);
  2368. bool LoadJSON(const JSONValue&, bool = false);
  2369. bool LoadXML(const XMLElement&, bool = false);
  2370. void MarkNetworkUpdate() const;
  2371. void Remove();
  2372. void RemoveAttributeAnimation(const String&);
  2373. void RemoveInstanceDefault();
  2374. void RemoveObjectAnimation();
  2375. void ResetToDefault();
  2376. bool Save(File) const;
  2377. bool Save(VectorBuffer&) const;
  2378. bool SaveJSON(JSONValue&) const;
  2379. bool SaveXML(XMLElement&) const;
  2380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2381. void SetAnimationTime(float);
  2382. bool SetAttribute(const String&, const Variant&);
  2383. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2384. void SetAttributeAnimationSpeed(const String&, float);
  2385. void SetAttributeAnimationTime(const String&, float);
  2386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2387. void SetInterceptNetworkUpdate(const String&, bool);
  2388. // Properties:
  2389. bool animationEnabled;
  2390. /* readonly */
  2391. Array<Variant> attributeDefaults;
  2392. /* readonly */
  2393. Array<AttributeInfo> attributeInfos;
  2394. Array<Variant> attributes;
  2395. /* readonly */
  2396. String category;
  2397. bool collideConnected;
  2398. bool enabled;
  2399. /* readonly */
  2400. bool enabledEffective;
  2401. /* readonly */
  2402. uint id;
  2403. /* readonly */
  2404. Node node;
  2405. /* readonly */
  2406. uint numAttributes;
  2407. ObjectAnimation objectAnimation;
  2408. RigidBody2D otherBody;
  2409. /* readonly */
  2410. RigidBody2D ownerBody;
  2411. /* readonly */
  2412. int refs;
  2413. bool temporary;
  2414. /* readonly */
  2415. StringHash type;
  2416. /* readonly */
  2417. String typeName;
  2418. /* readonly */
  2419. int weakRefs;
  2420. };
  2421. class ConstraintDistance2D
  2422. {
  2423. // Methods:
  2424. void ApplyAttributes();
  2425. void DrawDebugGeometry(DebugRenderer, bool);
  2426. Variant GetAttribute(const String&) const;
  2427. ValueAnimation GetAttributeAnimation(const String&) const;
  2428. float GetAttributeAnimationSpeed(const String&) const;
  2429. float GetAttributeAnimationTime(const String&) const;
  2430. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2431. Variant GetAttributeDefault(const String&) const;
  2432. bool GetInterceptNetworkUpdate(const String&) const;
  2433. bool HasSubscribedToEvent(Object, const String&);
  2434. bool HasSubscribedToEvent(const String&);
  2435. bool Load(File, bool = false);
  2436. bool Load(VectorBuffer&, bool = false);
  2437. bool LoadJSON(const JSONValue&, bool = false);
  2438. bool LoadXML(const XMLElement&, bool = false);
  2439. void MarkNetworkUpdate() const;
  2440. void Remove();
  2441. void RemoveAttributeAnimation(const String&);
  2442. void RemoveInstanceDefault();
  2443. void RemoveObjectAnimation();
  2444. void ResetToDefault();
  2445. bool Save(File) const;
  2446. bool Save(VectorBuffer&) const;
  2447. bool SaveJSON(JSONValue&) const;
  2448. bool SaveXML(XMLElement&) const;
  2449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2450. void SetAnimationTime(float);
  2451. bool SetAttribute(const String&, const Variant&);
  2452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2453. void SetAttributeAnimationSpeed(const String&, float);
  2454. void SetAttributeAnimationTime(const String&, float);
  2455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2456. void SetInterceptNetworkUpdate(const String&, bool);
  2457. // Properties:
  2458. bool animationEnabled;
  2459. /* readonly */
  2460. Array<Variant> attributeDefaults;
  2461. /* readonly */
  2462. Array<AttributeInfo> attributeInfos;
  2463. Array<Variant> attributes;
  2464. /* readonly */
  2465. String category;
  2466. bool collideConnected;
  2467. float dampingRatio;
  2468. bool enabled;
  2469. /* readonly */
  2470. bool enabledEffective;
  2471. float frequencyHz;
  2472. /* readonly */
  2473. uint id;
  2474. /* readonly */
  2475. Node node;
  2476. /* readonly */
  2477. uint numAttributes;
  2478. ObjectAnimation objectAnimation;
  2479. RigidBody2D otherBody;
  2480. Vector2 otherBodyAnchor;
  2481. /* readonly */
  2482. RigidBody2D ownerBody;
  2483. Vector2 ownerBodyAnchor;
  2484. /* readonly */
  2485. int refs;
  2486. bool temporary;
  2487. /* readonly */
  2488. StringHash type;
  2489. /* readonly */
  2490. String typeName;
  2491. /* readonly */
  2492. int weakRefs;
  2493. };
  2494. class ConstraintFriction2D
  2495. {
  2496. // Methods:
  2497. void ApplyAttributes();
  2498. void DrawDebugGeometry(DebugRenderer, bool);
  2499. Variant GetAttribute(const String&) const;
  2500. ValueAnimation GetAttributeAnimation(const String&) const;
  2501. float GetAttributeAnimationSpeed(const String&) const;
  2502. float GetAttributeAnimationTime(const String&) const;
  2503. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2504. Variant GetAttributeDefault(const String&) const;
  2505. bool GetInterceptNetworkUpdate(const String&) const;
  2506. bool HasSubscribedToEvent(Object, const String&);
  2507. bool HasSubscribedToEvent(const String&);
  2508. bool Load(File, bool = false);
  2509. bool Load(VectorBuffer&, bool = false);
  2510. bool LoadJSON(const JSONValue&, bool = false);
  2511. bool LoadXML(const XMLElement&, bool = false);
  2512. void MarkNetworkUpdate() const;
  2513. void Remove();
  2514. void RemoveAttributeAnimation(const String&);
  2515. void RemoveInstanceDefault();
  2516. void RemoveObjectAnimation();
  2517. void ResetToDefault();
  2518. bool Save(File) const;
  2519. bool Save(VectorBuffer&) const;
  2520. bool SaveJSON(JSONValue&) const;
  2521. bool SaveXML(XMLElement&) const;
  2522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2523. void SetAnimationTime(float);
  2524. bool SetAttribute(const String&, const Variant&);
  2525. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2526. void SetAttributeAnimationSpeed(const String&, float);
  2527. void SetAttributeAnimationTime(const String&, float);
  2528. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2529. void SetInterceptNetworkUpdate(const String&, bool);
  2530. // Properties:
  2531. Vector2 anchor;
  2532. bool animationEnabled;
  2533. /* readonly */
  2534. Array<Variant> attributeDefaults;
  2535. /* readonly */
  2536. Array<AttributeInfo> attributeInfos;
  2537. Array<Variant> attributes;
  2538. /* readonly */
  2539. String category;
  2540. bool collideConnected;
  2541. bool enabled;
  2542. /* readonly */
  2543. bool enabledEffective;
  2544. /* readonly */
  2545. uint id;
  2546. float maxForce;
  2547. float maxTorque;
  2548. /* readonly */
  2549. Node node;
  2550. /* readonly */
  2551. uint numAttributes;
  2552. ObjectAnimation objectAnimation;
  2553. RigidBody2D otherBody;
  2554. /* readonly */
  2555. RigidBody2D ownerBody;
  2556. /* readonly */
  2557. int refs;
  2558. bool temporary;
  2559. /* readonly */
  2560. StringHash type;
  2561. /* readonly */
  2562. String typeName;
  2563. /* readonly */
  2564. int weakRefs;
  2565. };
  2566. class ConstraintGear2D
  2567. {
  2568. // Methods:
  2569. void ApplyAttributes();
  2570. void DrawDebugGeometry(DebugRenderer, bool);
  2571. Variant GetAttribute(const String&) const;
  2572. ValueAnimation GetAttributeAnimation(const String&) const;
  2573. float GetAttributeAnimationSpeed(const String&) const;
  2574. float GetAttributeAnimationTime(const String&) const;
  2575. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2576. Variant GetAttributeDefault(const String&) const;
  2577. bool GetInterceptNetworkUpdate(const String&) const;
  2578. bool HasSubscribedToEvent(Object, const String&);
  2579. bool HasSubscribedToEvent(const String&);
  2580. bool Load(File, bool = false);
  2581. bool Load(VectorBuffer&, bool = false);
  2582. bool LoadJSON(const JSONValue&, bool = false);
  2583. bool LoadXML(const XMLElement&, bool = false);
  2584. void MarkNetworkUpdate() const;
  2585. void Remove();
  2586. void RemoveAttributeAnimation(const String&);
  2587. void RemoveInstanceDefault();
  2588. void RemoveObjectAnimation();
  2589. void ResetToDefault();
  2590. bool Save(File) const;
  2591. bool Save(VectorBuffer&) const;
  2592. bool SaveJSON(JSONValue&) const;
  2593. bool SaveXML(XMLElement&) const;
  2594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2595. void SetAnimationTime(float);
  2596. bool SetAttribute(const String&, const Variant&);
  2597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2598. void SetAttributeAnimationSpeed(const String&, float);
  2599. void SetAttributeAnimationTime(const String&, float);
  2600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2601. void SetInterceptNetworkUpdate(const String&, bool);
  2602. // Properties:
  2603. bool animationEnabled;
  2604. /* readonly */
  2605. Array<Variant> attributeDefaults;
  2606. /* readonly */
  2607. Array<AttributeInfo> attributeInfos;
  2608. Array<Variant> attributes;
  2609. /* readonly */
  2610. String category;
  2611. bool collideConnected;
  2612. bool enabled;
  2613. /* readonly */
  2614. bool enabledEffective;
  2615. /* readonly */
  2616. uint id;
  2617. /* readonly */
  2618. Node node;
  2619. /* readonly */
  2620. uint numAttributes;
  2621. ObjectAnimation objectAnimation;
  2622. RigidBody2D otherBody;
  2623. Constraint2D otherConstraint;
  2624. /* readonly */
  2625. RigidBody2D ownerBody;
  2626. Constraint2D ownerConstraint;
  2627. float ratio;
  2628. /* readonly */
  2629. int refs;
  2630. bool temporary;
  2631. /* readonly */
  2632. StringHash type;
  2633. /* readonly */
  2634. String typeName;
  2635. /* readonly */
  2636. int weakRefs;
  2637. };
  2638. class ConstraintMotor2D
  2639. {
  2640. // Methods:
  2641. void ApplyAttributes();
  2642. void DrawDebugGeometry(DebugRenderer, bool);
  2643. Variant GetAttribute(const String&) const;
  2644. ValueAnimation GetAttributeAnimation(const String&) const;
  2645. float GetAttributeAnimationSpeed(const String&) const;
  2646. float GetAttributeAnimationTime(const String&) const;
  2647. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2648. Variant GetAttributeDefault(const String&) const;
  2649. bool GetInterceptNetworkUpdate(const String&) const;
  2650. bool HasSubscribedToEvent(Object, const String&);
  2651. bool HasSubscribedToEvent(const String&);
  2652. bool Load(File, bool = false);
  2653. bool Load(VectorBuffer&, bool = false);
  2654. bool LoadJSON(const JSONValue&, bool = false);
  2655. bool LoadXML(const XMLElement&, bool = false);
  2656. void MarkNetworkUpdate() const;
  2657. void Remove();
  2658. void RemoveAttributeAnimation(const String&);
  2659. void RemoveInstanceDefault();
  2660. void RemoveObjectAnimation();
  2661. void ResetToDefault();
  2662. bool Save(File) const;
  2663. bool Save(VectorBuffer&) const;
  2664. bool SaveJSON(JSONValue&) const;
  2665. bool SaveXML(XMLElement&) const;
  2666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2667. void SetAnimationTime(float);
  2668. bool SetAttribute(const String&, const Variant&);
  2669. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2670. void SetAttributeAnimationSpeed(const String&, float);
  2671. void SetAttributeAnimationTime(const String&, float);
  2672. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2673. void SetInterceptNetworkUpdate(const String&, bool);
  2674. // Properties:
  2675. float angularOffset;
  2676. bool animationEnabled;
  2677. /* readonly */
  2678. Array<Variant> attributeDefaults;
  2679. /* readonly */
  2680. Array<AttributeInfo> attributeInfos;
  2681. Array<Variant> attributes;
  2682. /* readonly */
  2683. String category;
  2684. bool collideConnected;
  2685. float correctionFactor;
  2686. bool enabled;
  2687. /* readonly */
  2688. bool enabledEffective;
  2689. /* readonly */
  2690. uint id;
  2691. Vector2 linearOffset;
  2692. float maxForce;
  2693. float maxTorque;
  2694. /* readonly */
  2695. Node node;
  2696. /* readonly */
  2697. uint numAttributes;
  2698. ObjectAnimation objectAnimation;
  2699. RigidBody2D otherBody;
  2700. /* readonly */
  2701. RigidBody2D ownerBody;
  2702. /* readonly */
  2703. int refs;
  2704. bool temporary;
  2705. /* readonly */
  2706. StringHash type;
  2707. /* readonly */
  2708. String typeName;
  2709. /* readonly */
  2710. int weakRefs;
  2711. };
  2712. class ConstraintMouse2D
  2713. {
  2714. // Methods:
  2715. void ApplyAttributes();
  2716. void DrawDebugGeometry(DebugRenderer, bool);
  2717. Variant GetAttribute(const String&) const;
  2718. ValueAnimation GetAttributeAnimation(const String&) const;
  2719. float GetAttributeAnimationSpeed(const String&) const;
  2720. float GetAttributeAnimationTime(const String&) const;
  2721. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2722. Variant GetAttributeDefault(const String&) const;
  2723. bool GetInterceptNetworkUpdate(const String&) const;
  2724. bool HasSubscribedToEvent(Object, const String&);
  2725. bool HasSubscribedToEvent(const String&);
  2726. bool Load(File, bool = false);
  2727. bool Load(VectorBuffer&, bool = false);
  2728. bool LoadJSON(const JSONValue&, bool = false);
  2729. bool LoadXML(const XMLElement&, bool = false);
  2730. void MarkNetworkUpdate() const;
  2731. void Remove();
  2732. void RemoveAttributeAnimation(const String&);
  2733. void RemoveInstanceDefault();
  2734. void RemoveObjectAnimation();
  2735. void ResetToDefault();
  2736. bool Save(File) const;
  2737. bool Save(VectorBuffer&) const;
  2738. bool SaveJSON(JSONValue&) const;
  2739. bool SaveXML(XMLElement&) const;
  2740. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2741. void SetAnimationTime(float);
  2742. bool SetAttribute(const String&, const Variant&);
  2743. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2744. void SetAttributeAnimationSpeed(const String&, float);
  2745. void SetAttributeAnimationTime(const String&, float);
  2746. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2747. void SetInterceptNetworkUpdate(const String&, bool);
  2748. // Properties:
  2749. bool animationEnabled;
  2750. /* readonly */
  2751. Array<Variant> attributeDefaults;
  2752. /* readonly */
  2753. Array<AttributeInfo> attributeInfos;
  2754. Array<Variant> attributes;
  2755. /* readonly */
  2756. String category;
  2757. bool collideConnected;
  2758. float dampingRatio;
  2759. bool enabled;
  2760. /* readonly */
  2761. bool enabledEffective;
  2762. float frequencyHz;
  2763. /* readonly */
  2764. uint id;
  2765. float maxForce;
  2766. /* readonly */
  2767. Node node;
  2768. /* readonly */
  2769. uint numAttributes;
  2770. ObjectAnimation objectAnimation;
  2771. RigidBody2D otherBody;
  2772. /* readonly */
  2773. RigidBody2D ownerBody;
  2774. /* readonly */
  2775. int refs;
  2776. Vector2 target;
  2777. bool temporary;
  2778. /* readonly */
  2779. StringHash type;
  2780. /* readonly */
  2781. String typeName;
  2782. /* readonly */
  2783. int weakRefs;
  2784. };
  2785. class ConstraintPrismatic2D
  2786. {
  2787. // Methods:
  2788. void ApplyAttributes();
  2789. void DrawDebugGeometry(DebugRenderer, bool);
  2790. Variant GetAttribute(const String&) const;
  2791. ValueAnimation GetAttributeAnimation(const String&) const;
  2792. float GetAttributeAnimationSpeed(const String&) const;
  2793. float GetAttributeAnimationTime(const String&) const;
  2794. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2795. Variant GetAttributeDefault(const String&) const;
  2796. bool GetInterceptNetworkUpdate(const String&) const;
  2797. bool HasSubscribedToEvent(Object, const String&);
  2798. bool HasSubscribedToEvent(const String&);
  2799. bool Load(File, bool = false);
  2800. bool Load(VectorBuffer&, bool = false);
  2801. bool LoadJSON(const JSONValue&, bool = false);
  2802. bool LoadXML(const XMLElement&, bool = false);
  2803. void MarkNetworkUpdate() const;
  2804. void Remove();
  2805. void RemoveAttributeAnimation(const String&);
  2806. void RemoveInstanceDefault();
  2807. void RemoveObjectAnimation();
  2808. void ResetToDefault();
  2809. bool Save(File) const;
  2810. bool Save(VectorBuffer&) const;
  2811. bool SaveJSON(JSONValue&) const;
  2812. bool SaveXML(XMLElement&) const;
  2813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2814. void SetAnimationTime(float);
  2815. bool SetAttribute(const String&, const Variant&);
  2816. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2817. void SetAttributeAnimationSpeed(const String&, float);
  2818. void SetAttributeAnimationTime(const String&, float);
  2819. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2820. void SetInterceptNetworkUpdate(const String&, bool);
  2821. // Properties:
  2822. Vector2 anchor;
  2823. bool animationEnabled;
  2824. /* readonly */
  2825. Array<Variant> attributeDefaults;
  2826. /* readonly */
  2827. Array<AttributeInfo> attributeInfos;
  2828. Array<Variant> attributes;
  2829. Vector2 axis;
  2830. /* readonly */
  2831. String category;
  2832. bool collideConnected;
  2833. bool enableLimit;
  2834. bool enableMotor;
  2835. bool enabled;
  2836. /* readonly */
  2837. bool enabledEffective;
  2838. /* readonly */
  2839. uint id;
  2840. float lowerTranslation;
  2841. float maxMotorForce;
  2842. float motorSpeed;
  2843. /* readonly */
  2844. Node node;
  2845. /* readonly */
  2846. uint numAttributes;
  2847. ObjectAnimation objectAnimation;
  2848. RigidBody2D otherBody;
  2849. /* readonly */
  2850. RigidBody2D ownerBody;
  2851. /* readonly */
  2852. int refs;
  2853. bool temporary;
  2854. /* readonly */
  2855. StringHash type;
  2856. /* readonly */
  2857. String typeName;
  2858. float upperTranslation;
  2859. /* readonly */
  2860. int weakRefs;
  2861. };
  2862. class ConstraintPulley2D
  2863. {
  2864. // Methods:
  2865. void ApplyAttributes();
  2866. void DrawDebugGeometry(DebugRenderer, bool);
  2867. Variant GetAttribute(const String&) const;
  2868. ValueAnimation GetAttributeAnimation(const String&) const;
  2869. float GetAttributeAnimationSpeed(const String&) const;
  2870. float GetAttributeAnimationTime(const String&) const;
  2871. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2872. Variant GetAttributeDefault(const String&) const;
  2873. bool GetInterceptNetworkUpdate(const String&) const;
  2874. bool HasSubscribedToEvent(Object, const String&);
  2875. bool HasSubscribedToEvent(const String&);
  2876. bool Load(File, bool = false);
  2877. bool Load(VectorBuffer&, bool = false);
  2878. bool LoadJSON(const JSONValue&, bool = false);
  2879. bool LoadXML(const XMLElement&, bool = false);
  2880. void MarkNetworkUpdate() const;
  2881. void Remove();
  2882. void RemoveAttributeAnimation(const String&);
  2883. void RemoveInstanceDefault();
  2884. void RemoveObjectAnimation();
  2885. void ResetToDefault();
  2886. bool Save(File) const;
  2887. bool Save(VectorBuffer&) const;
  2888. bool SaveJSON(JSONValue&) const;
  2889. bool SaveXML(XMLElement&) const;
  2890. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2891. void SetAnimationTime(float);
  2892. bool SetAttribute(const String&, const Variant&);
  2893. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2894. void SetAttributeAnimationSpeed(const String&, float);
  2895. void SetAttributeAnimationTime(const String&, float);
  2896. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2897. void SetInterceptNetworkUpdate(const String&, bool);
  2898. // Properties:
  2899. bool animationEnabled;
  2900. /* readonly */
  2901. Array<Variant> attributeDefaults;
  2902. /* readonly */
  2903. Array<AttributeInfo> attributeInfos;
  2904. Array<Variant> attributes;
  2905. /* readonly */
  2906. String category;
  2907. bool collideConnected;
  2908. bool enabled;
  2909. /* readonly */
  2910. bool enabledEffective;
  2911. /* readonly */
  2912. uint id;
  2913. /* readonly */
  2914. Node node;
  2915. /* readonly */
  2916. uint numAttributes;
  2917. ObjectAnimation objectAnimation;
  2918. RigidBody2D otherBody;
  2919. Vector2 otherBodyAnchor;
  2920. Vector2 otherBodyGroundAnchor;
  2921. /* readonly */
  2922. RigidBody2D ownerBody;
  2923. Vector2 ownerBodyAnchor;
  2924. Vector2 ownerBodyGroundAnchor;
  2925. float ratio;
  2926. /* readonly */
  2927. int refs;
  2928. bool temporary;
  2929. /* readonly */
  2930. StringHash type;
  2931. /* readonly */
  2932. String typeName;
  2933. /* readonly */
  2934. int weakRefs;
  2935. };
  2936. class ConstraintRevolute2D
  2937. {
  2938. // Methods:
  2939. void ApplyAttributes();
  2940. void DrawDebugGeometry(DebugRenderer, bool);
  2941. Variant GetAttribute(const String&) const;
  2942. ValueAnimation GetAttributeAnimation(const String&) const;
  2943. float GetAttributeAnimationSpeed(const String&) const;
  2944. float GetAttributeAnimationTime(const String&) const;
  2945. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2946. Variant GetAttributeDefault(const String&) const;
  2947. bool GetInterceptNetworkUpdate(const String&) const;
  2948. bool HasSubscribedToEvent(Object, const String&);
  2949. bool HasSubscribedToEvent(const String&);
  2950. bool Load(File, bool = false);
  2951. bool Load(VectorBuffer&, bool = false);
  2952. bool LoadJSON(const JSONValue&, bool = false);
  2953. bool LoadXML(const XMLElement&, bool = false);
  2954. void MarkNetworkUpdate() const;
  2955. void Remove();
  2956. void RemoveAttributeAnimation(const String&);
  2957. void RemoveInstanceDefault();
  2958. void RemoveObjectAnimation();
  2959. void ResetToDefault();
  2960. bool Save(File) const;
  2961. bool Save(VectorBuffer&) const;
  2962. bool SaveJSON(JSONValue&) const;
  2963. bool SaveXML(XMLElement&) const;
  2964. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2965. void SetAnimationTime(float);
  2966. bool SetAttribute(const String&, const Variant&);
  2967. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2968. void SetAttributeAnimationSpeed(const String&, float);
  2969. void SetAttributeAnimationTime(const String&, float);
  2970. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2971. void SetInterceptNetworkUpdate(const String&, bool);
  2972. // Properties:
  2973. Vector2 anchor;
  2974. bool animationEnabled;
  2975. /* readonly */
  2976. Array<Variant> attributeDefaults;
  2977. /* readonly */
  2978. Array<AttributeInfo> attributeInfos;
  2979. Array<Variant> attributes;
  2980. /* readonly */
  2981. String category;
  2982. bool collideConnected;
  2983. bool enableLimit;
  2984. bool enableMotor;
  2985. bool enabled;
  2986. /* readonly */
  2987. bool enabledEffective;
  2988. /* readonly */
  2989. uint id;
  2990. float lowerAngle;
  2991. float maxMotorTorque;
  2992. float motorSpeed;
  2993. /* readonly */
  2994. Node node;
  2995. /* readonly */
  2996. uint numAttributes;
  2997. ObjectAnimation objectAnimation;
  2998. RigidBody2D otherBody;
  2999. /* readonly */
  3000. RigidBody2D ownerBody;
  3001. /* readonly */
  3002. int refs;
  3003. bool temporary;
  3004. /* readonly */
  3005. StringHash type;
  3006. /* readonly */
  3007. String typeName;
  3008. float upperAngle;
  3009. /* readonly */
  3010. int weakRefs;
  3011. };
  3012. class ConstraintRope2D
  3013. {
  3014. // Methods:
  3015. void ApplyAttributes();
  3016. void DrawDebugGeometry(DebugRenderer, bool);
  3017. Variant GetAttribute(const String&) const;
  3018. ValueAnimation GetAttributeAnimation(const String&) const;
  3019. float GetAttributeAnimationSpeed(const String&) const;
  3020. float GetAttributeAnimationTime(const String&) const;
  3021. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3022. Variant GetAttributeDefault(const String&) const;
  3023. bool GetInterceptNetworkUpdate(const String&) const;
  3024. bool HasSubscribedToEvent(Object, const String&);
  3025. bool HasSubscribedToEvent(const String&);
  3026. bool Load(File, bool = false);
  3027. bool Load(VectorBuffer&, bool = false);
  3028. bool LoadJSON(const JSONValue&, bool = false);
  3029. bool LoadXML(const XMLElement&, bool = false);
  3030. void MarkNetworkUpdate() const;
  3031. void Remove();
  3032. void RemoveAttributeAnimation(const String&);
  3033. void RemoveInstanceDefault();
  3034. void RemoveObjectAnimation();
  3035. void ResetToDefault();
  3036. bool Save(File) const;
  3037. bool Save(VectorBuffer&) const;
  3038. bool SaveJSON(JSONValue&) const;
  3039. bool SaveXML(XMLElement&) const;
  3040. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3041. void SetAnimationTime(float);
  3042. bool SetAttribute(const String&, const Variant&);
  3043. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3044. void SetAttributeAnimationSpeed(const String&, float);
  3045. void SetAttributeAnimationTime(const String&, float);
  3046. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3047. void SetInterceptNetworkUpdate(const String&, bool);
  3048. // Properties:
  3049. bool animationEnabled;
  3050. /* readonly */
  3051. Array<Variant> attributeDefaults;
  3052. /* readonly */
  3053. Array<AttributeInfo> attributeInfos;
  3054. Array<Variant> attributes;
  3055. /* readonly */
  3056. String category;
  3057. bool collideConnected;
  3058. bool enabled;
  3059. /* readonly */
  3060. bool enabledEffective;
  3061. /* readonly */
  3062. uint id;
  3063. float maxLength;
  3064. /* readonly */
  3065. Node node;
  3066. /* readonly */
  3067. uint numAttributes;
  3068. ObjectAnimation objectAnimation;
  3069. RigidBody2D otherBody;
  3070. Vector2 otherBodyAnchor;
  3071. /* readonly */
  3072. RigidBody2D ownerBody;
  3073. Vector2 ownerBodyAnchor;
  3074. /* readonly */
  3075. int refs;
  3076. bool temporary;
  3077. /* readonly */
  3078. StringHash type;
  3079. /* readonly */
  3080. String typeName;
  3081. /* readonly */
  3082. int weakRefs;
  3083. };
  3084. class ConstraintWeld2D
  3085. {
  3086. // Methods:
  3087. void ApplyAttributes();
  3088. void DrawDebugGeometry(DebugRenderer, bool);
  3089. Variant GetAttribute(const String&) const;
  3090. ValueAnimation GetAttributeAnimation(const String&) const;
  3091. float GetAttributeAnimationSpeed(const String&) const;
  3092. float GetAttributeAnimationTime(const String&) const;
  3093. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3094. Variant GetAttributeDefault(const String&) const;
  3095. bool GetInterceptNetworkUpdate(const String&) const;
  3096. bool HasSubscribedToEvent(Object, const String&);
  3097. bool HasSubscribedToEvent(const String&);
  3098. bool Load(File, bool = false);
  3099. bool Load(VectorBuffer&, bool = false);
  3100. bool LoadJSON(const JSONValue&, bool = false);
  3101. bool LoadXML(const XMLElement&, bool = false);
  3102. void MarkNetworkUpdate() const;
  3103. void Remove();
  3104. void RemoveAttributeAnimation(const String&);
  3105. void RemoveInstanceDefault();
  3106. void RemoveObjectAnimation();
  3107. void ResetToDefault();
  3108. bool Save(File) const;
  3109. bool Save(VectorBuffer&) const;
  3110. bool SaveJSON(JSONValue&) const;
  3111. bool SaveXML(XMLElement&) const;
  3112. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3113. void SetAnimationTime(float);
  3114. bool SetAttribute(const String&, const Variant&);
  3115. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3116. void SetAttributeAnimationSpeed(const String&, float);
  3117. void SetAttributeAnimationTime(const String&, float);
  3118. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3119. void SetInterceptNetworkUpdate(const String&, bool);
  3120. // Properties:
  3121. Vector2 anchor;
  3122. bool animationEnabled;
  3123. /* readonly */
  3124. Array<Variant> attributeDefaults;
  3125. /* readonly */
  3126. Array<AttributeInfo> attributeInfos;
  3127. Array<Variant> attributes;
  3128. /* readonly */
  3129. String category;
  3130. bool collideConnected;
  3131. float dampingRatio;
  3132. bool enabled;
  3133. /* readonly */
  3134. bool enabledEffective;
  3135. float frequencyHz;
  3136. /* readonly */
  3137. uint id;
  3138. /* readonly */
  3139. Node node;
  3140. /* readonly */
  3141. uint numAttributes;
  3142. ObjectAnimation objectAnimation;
  3143. RigidBody2D otherBody;
  3144. /* readonly */
  3145. RigidBody2D ownerBody;
  3146. /* readonly */
  3147. int refs;
  3148. bool temporary;
  3149. /* readonly */
  3150. StringHash type;
  3151. /* readonly */
  3152. String typeName;
  3153. /* readonly */
  3154. int weakRefs;
  3155. };
  3156. class ConstraintWheel2D
  3157. {
  3158. // Methods:
  3159. void ApplyAttributes();
  3160. void DrawDebugGeometry(DebugRenderer, bool);
  3161. Variant GetAttribute(const String&) const;
  3162. ValueAnimation GetAttributeAnimation(const String&) const;
  3163. float GetAttributeAnimationSpeed(const String&) const;
  3164. float GetAttributeAnimationTime(const String&) const;
  3165. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3166. Variant GetAttributeDefault(const String&) const;
  3167. bool GetInterceptNetworkUpdate(const String&) const;
  3168. bool HasSubscribedToEvent(Object, const String&);
  3169. bool HasSubscribedToEvent(const String&);
  3170. bool Load(File, bool = false);
  3171. bool Load(VectorBuffer&, bool = false);
  3172. bool LoadJSON(const JSONValue&, bool = false);
  3173. bool LoadXML(const XMLElement&, bool = false);
  3174. void MarkNetworkUpdate() const;
  3175. void Remove();
  3176. void RemoveAttributeAnimation(const String&);
  3177. void RemoveInstanceDefault();
  3178. void RemoveObjectAnimation();
  3179. void ResetToDefault();
  3180. bool Save(File) const;
  3181. bool Save(VectorBuffer&) const;
  3182. bool SaveJSON(JSONValue&) const;
  3183. bool SaveXML(XMLElement&) const;
  3184. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3185. void SetAnimationTime(float);
  3186. bool SetAttribute(const String&, const Variant&);
  3187. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3188. void SetAttributeAnimationSpeed(const String&, float);
  3189. void SetAttributeAnimationTime(const String&, float);
  3190. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3191. void SetInterceptNetworkUpdate(const String&, bool);
  3192. // Properties:
  3193. Vector2 anchor;
  3194. bool animationEnabled;
  3195. /* readonly */
  3196. Array<Variant> attributeDefaults;
  3197. /* readonly */
  3198. Array<AttributeInfo> attributeInfos;
  3199. Array<Variant> attributes;
  3200. Vector2 axis;
  3201. /* readonly */
  3202. String category;
  3203. bool collideConnected;
  3204. float dampingRatio;
  3205. bool enableMotor;
  3206. bool enabled;
  3207. /* readonly */
  3208. bool enabledEffective;
  3209. float frequencyHz;
  3210. /* readonly */
  3211. uint id;
  3212. float maxMotorTorque;
  3213. float motorSpeed;
  3214. /* readonly */
  3215. Node node;
  3216. /* readonly */
  3217. uint numAttributes;
  3218. ObjectAnimation objectAnimation;
  3219. RigidBody2D otherBody;
  3220. /* readonly */
  3221. RigidBody2D ownerBody;
  3222. /* readonly */
  3223. int refs;
  3224. bool temporary;
  3225. /* readonly */
  3226. StringHash type;
  3227. /* readonly */
  3228. String typeName;
  3229. /* readonly */
  3230. int weakRefs;
  3231. };
  3232. class Controls
  3233. {
  3234. // Methods:
  3235. bool IsDown(uint) const;
  3236. bool IsPressed(uint, const Controls&) const;
  3237. void Reset();
  3238. void Set(uint, bool);
  3239. // Properties:
  3240. uint buttons;
  3241. VariantMap extraData;
  3242. float pitch;
  3243. float yaw;
  3244. };
  3245. class CrowdAgent
  3246. {
  3247. // Methods:
  3248. void ApplyAttributes();
  3249. void DrawDebugGeometry(DebugRenderer, bool);
  3250. void DrawDebugGeometry(bool);
  3251. Variant GetAttribute(const String&) const;
  3252. ValueAnimation GetAttributeAnimation(const String&) const;
  3253. float GetAttributeAnimationSpeed(const String&) const;
  3254. float GetAttributeAnimationTime(const String&) const;
  3255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3256. Variant GetAttributeDefault(const String&) const;
  3257. bool GetInterceptNetworkUpdate(const String&) const;
  3258. bool HasSubscribedToEvent(Object, const String&);
  3259. bool HasSubscribedToEvent(const String&);
  3260. bool Load(File, bool = false);
  3261. bool Load(VectorBuffer&, bool = false);
  3262. bool LoadJSON(const JSONValue&, bool = false);
  3263. bool LoadXML(const XMLElement&, bool = false);
  3264. void MarkNetworkUpdate() const;
  3265. void Remove();
  3266. void RemoveAttributeAnimation(const String&);
  3267. void RemoveInstanceDefault();
  3268. void RemoveObjectAnimation();
  3269. void ResetTarget();
  3270. void ResetToDefault();
  3271. bool Save(File) const;
  3272. bool Save(VectorBuffer&) const;
  3273. bool SaveJSON(JSONValue&) const;
  3274. bool SaveXML(XMLElement&) const;
  3275. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3276. void SetAnimationTime(float);
  3277. bool SetAttribute(const String&, const Variant&);
  3278. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3279. void SetAttributeAnimationSpeed(const String&, float);
  3280. void SetAttributeAnimationTime(const String&, float);
  3281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3282. void SetInterceptNetworkUpdate(const String&, bool);
  3283. // Properties:
  3284. /* readonly */
  3285. Vector3 actualVelocity;
  3286. /* readonly */
  3287. CrowdAgentState agentState;
  3288. bool animationEnabled;
  3289. /* readonly */
  3290. bool arrived;
  3291. /* readonly */
  3292. Array<Variant> attributeDefaults;
  3293. /* readonly */
  3294. Array<AttributeInfo> attributeInfos;
  3295. Array<Variant> attributes;
  3296. /* readonly */
  3297. String category;
  3298. /* readonly */
  3299. Vector3 desiredVelocity;
  3300. bool enabled;
  3301. /* readonly */
  3302. bool enabledEffective;
  3303. float height;
  3304. /* readonly */
  3305. uint id;
  3306. /* readonly */
  3307. bool inCrowd;
  3308. float maxAccel;
  3309. float maxSpeed;
  3310. NavigationPushiness navigationPushiness;
  3311. NavigationQuality navigationQuality;
  3312. /* readonly */
  3313. Node node;
  3314. /* readonly */
  3315. uint numAttributes;
  3316. ObjectAnimation objectAnimation;
  3317. uint obstacleAvoidanceType;
  3318. /* readonly */
  3319. Vector3 position;
  3320. uint queryFilterType;
  3321. float radius;
  3322. /* readonly */
  3323. int refs;
  3324. /* readonly */
  3325. bool requestedTarget;
  3326. /* readonly */
  3327. CrowdAgentRequestedTarget requestedTargetType;
  3328. Vector3 targetPosition;
  3329. /* readonly */
  3330. CrowdAgentTargetState targetState;
  3331. Vector3 targetVelocity;
  3332. bool temporary;
  3333. /* readonly */
  3334. StringHash type;
  3335. /* readonly */
  3336. String typeName;
  3337. bool updateNodePosition;
  3338. /* readonly */
  3339. int weakRefs;
  3340. };
  3341. class CrowdManager
  3342. {
  3343. // Methods:
  3344. void ApplyAttributes();
  3345. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3346. void DrawDebugGeometry(DebugRenderer, bool);
  3347. void DrawDebugGeometry(bool);
  3348. Vector3 FindNearestPoint(const Vector3&, int);
  3349. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3350. float GetAreaCost(uint, uint);
  3351. Variant GetAttribute(const String&) const;
  3352. ValueAnimation GetAttributeAnimation(const String&) const;
  3353. float GetAttributeAnimationSpeed(const String&) const;
  3354. float GetAttributeAnimationTime(const String&) const;
  3355. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3356. Variant GetAttributeDefault(const String&) const;
  3357. float GetDistanceToWall(const Vector3&, float, int);
  3358. uint16 GetExcludeFlags(uint);
  3359. uint16 GetIncludeFlags(uint);
  3360. bool GetInterceptNetworkUpdate(const String&) const;
  3361. Vector3 GetRandomPoint(int);
  3362. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3363. bool HasSubscribedToEvent(Object, const String&);
  3364. bool HasSubscribedToEvent(const String&);
  3365. bool Load(File, bool = false);
  3366. bool Load(VectorBuffer&, bool = false);
  3367. bool LoadJSON(const JSONValue&, bool = false);
  3368. bool LoadXML(const XMLElement&, bool = false);
  3369. void MarkNetworkUpdate() const;
  3370. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3371. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3372. void Remove();
  3373. void RemoveAttributeAnimation(const String&);
  3374. void RemoveInstanceDefault();
  3375. void RemoveObjectAnimation();
  3376. void ResetCrowdTarget(Node = null);
  3377. void ResetToDefault();
  3378. bool Save(File) const;
  3379. bool Save(VectorBuffer&) const;
  3380. bool SaveJSON(JSONValue&) const;
  3381. bool SaveXML(XMLElement&) const;
  3382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3383. void SetAnimationTime(float);
  3384. void SetAreaCost(uint, uint, float);
  3385. bool SetAttribute(const String&, const Variant&);
  3386. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3387. void SetAttributeAnimationSpeed(const String&, float);
  3388. void SetAttributeAnimationTime(const String&, float);
  3389. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3390. void SetCrowdTarget(const Vector3&, Node = null);
  3391. void SetCrowdVelocity(const Vector3&, Node = null);
  3392. void SetExcludeFlags(uint, uint16);
  3393. void SetIncludeFlags(uint, uint16);
  3394. void SetInterceptNetworkUpdate(const String&, bool);
  3395. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3396. // Properties:
  3397. bool animationEnabled;
  3398. /* readonly */
  3399. Array<Variant> attributeDefaults;
  3400. /* readonly */
  3401. Array<AttributeInfo> attributeInfos;
  3402. Array<Variant> attributes;
  3403. /* readonly */
  3404. String category;
  3405. bool enabled;
  3406. /* readonly */
  3407. bool enabledEffective;
  3408. /* readonly */
  3409. uint id;
  3410. float maxAgentRadius;
  3411. int maxAgents;
  3412. NavigationMesh navMesh;
  3413. /* readonly */
  3414. Node node;
  3415. /* readonly */
  3416. Array<uint> numAreas;
  3417. /* readonly */
  3418. uint numAttributes;
  3419. /* readonly */
  3420. uint numObstacleAvoidanceTypes;
  3421. /* readonly */
  3422. uint numQueryFilterTypes;
  3423. ObjectAnimation objectAnimation;
  3424. /* readonly */
  3425. int refs;
  3426. bool temporary;
  3427. /* readonly */
  3428. StringHash type;
  3429. /* readonly */
  3430. String typeName;
  3431. /* readonly */
  3432. int weakRefs;
  3433. };
  3434. class CrowdObstacleAvoidanceParams
  3435. {
  3436. // Properties:
  3437. uint8 adaptiveDepth;
  3438. uint8 adaptiveDivs;
  3439. uint8 adaptiveRings;
  3440. uint8 gridSize;
  3441. float horizTime;
  3442. float velBias;
  3443. float weightCurVel;
  3444. float weightDesVel;
  3445. float weightSide;
  3446. float weightToi;
  3447. };
  3448. class Cursor
  3449. {
  3450. // Methods:
  3451. void AddChild(UIElement);
  3452. void AddTag(const String&);
  3453. void AddTags(const String&, int8 = ';');
  3454. void ApplyAttributes();
  3455. void BringToFront();
  3456. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3457. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3458. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3459. void DisableLayoutUpdate();
  3460. IntVector2 ElementToScreen(const IntVector2&);
  3461. void EnableLayoutUpdate();
  3462. uint FindChild(UIElement) const;
  3463. Variant GetAttribute(const String&) const;
  3464. ValueAnimation GetAttributeAnimation(const String&) const;
  3465. float GetAttributeAnimationSpeed(const String&) const;
  3466. float GetAttributeAnimationTime(const String&) const;
  3467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3468. Variant GetAttributeDefault(const String&) const;
  3469. UIElement GetChild(const String&, bool = false) const;
  3470. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3471. Array<UIElement> GetChildren(bool = false) const;
  3472. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3473. UIElement GetElementEventSender() const;
  3474. bool GetInterceptNetworkUpdate(const String&) const;
  3475. uint GetNumChildren(bool) const;
  3476. bool HasSubscribedToEvent(Object, const String&);
  3477. bool HasSubscribedToEvent(const String&);
  3478. bool HasTag(const String&) const;
  3479. void InsertChild(uint, UIElement);
  3480. bool IsInside(IntVector2, bool);
  3481. bool IsInsideCombined(IntVector2, bool);
  3482. bool Load(File, bool = false);
  3483. bool Load(VectorBuffer&, bool = false);
  3484. bool LoadChildXML(XMLFile, XMLFile = null);
  3485. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3486. bool LoadJSON(const JSONValue&, bool = false);
  3487. bool LoadXML(File);
  3488. bool LoadXML(VectorBuffer&);
  3489. bool LoadXML(XMLFile, XMLFile);
  3490. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3491. bool LoadXML(const XMLElement&, bool = false);
  3492. void MarkNetworkUpdate() const;
  3493. void Remove();
  3494. void RemoveAllChildren();
  3495. void RemoveAllTags();
  3496. void RemoveAttributeAnimation(const String&);
  3497. void RemoveChild(UIElement, uint = 0);
  3498. void RemoveChild(uint);
  3499. void RemoveInstanceDefault();
  3500. void RemoveObjectAnimation();
  3501. bool RemoveTag(const String&);
  3502. void ResetDeepEnabled();
  3503. void ResetToDefault();
  3504. bool Save(File) const;
  3505. bool Save(VectorBuffer&) const;
  3506. bool SaveJSON(JSONValue&) const;
  3507. bool SaveXML(File, const String& = "\t");
  3508. bool SaveXML(VectorBuffer&, const String& = "\t");
  3509. bool SaveXML(XMLElement&) const;
  3510. IntVector2 ScreenToElement(const IntVector2&);
  3511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3512. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3513. void SetAnimationTime(float);
  3514. bool SetAttribute(const String&, const Variant&);
  3515. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3516. void SetAttributeAnimationSpeed(const String&, float);
  3517. void SetAttributeAnimationTime(const String&, float);
  3518. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3519. void SetDeepEnabled(bool);
  3520. void SetEnabledRecursive(bool);
  3521. void SetFixedHeight(int);
  3522. void SetFixedSize(int, int);
  3523. void SetFixedWidth(int);
  3524. void SetFullImageRect();
  3525. void SetHoverOffset(int, int);
  3526. void SetInterceptNetworkUpdate(const String&, bool);
  3527. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3528. void SetMaxSize(int, int);
  3529. void SetMinSize(int, int);
  3530. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3531. void SetPosition(int, int);
  3532. void SetShape(CursorShape);
  3533. void SetShape(const String&);
  3534. void SetSize(int, int);
  3535. bool SetStyle(const String&, XMLFile = null);
  3536. bool SetStyle(const XMLElement&);
  3537. bool SetStyleAuto(XMLFile = null);
  3538. void UpdateLayout();
  3539. const Variant& GetVar(const StringHash&);
  3540. // Properties:
  3541. bool animationEnabled;
  3542. /* readonly */
  3543. Array<Variant> attributeDefaults;
  3544. /* readonly */
  3545. Array<AttributeInfo> attributeInfos;
  3546. Array<Variant> attributes;
  3547. BlendMode blendMode;
  3548. IntRect border;
  3549. bool bringToBack;
  3550. bool bringToFront;
  3551. /* readonly */
  3552. String category;
  3553. /* readonly */
  3554. IntVector2 childOffset;
  3555. /* readonly */
  3556. Array<UIElement> children;
  3557. IntRect clipBorder;
  3558. bool clipChildren;
  3559. /* writeonly */
  3560. Color color;
  3561. /* readonly */
  3562. bool colorGradient;
  3563. Array<Color> colors;
  3564. /* readonly */
  3565. IntRect combinedScreenRect;
  3566. XMLFile defaultStyle;
  3567. /* readonly */
  3568. float derivedOpacity;
  3569. /* readonly */
  3570. uint dragButtonCombo;
  3571. /* readonly */
  3572. int dragButtonCount;
  3573. uint dragDropMode;
  3574. bool editable;
  3575. bool elementEventSender;
  3576. bool enabled;
  3577. /* readonly */
  3578. bool enabledSelf;
  3579. /* readonly */
  3580. bool fixedHeight;
  3581. /* readonly */
  3582. bool fixedSize;
  3583. /* readonly */
  3584. bool fixedWidth;
  3585. bool focus;
  3586. FocusMode focusMode;
  3587. int height;
  3588. HorizontalAlignment horizontalAlignment;
  3589. IntVector2 hoverOffset;
  3590. /* readonly */
  3591. bool hovering;
  3592. IntRect imageBorder;
  3593. IntRect imageRect;
  3594. int indent;
  3595. int indentSpacing;
  3596. /* readonly */
  3597. int indentWidth;
  3598. bool internal;
  3599. IntRect layoutBorder;
  3600. Vector2 layoutFlexScale;
  3601. LayoutMode layoutMode;
  3602. int layoutSpacing;
  3603. int maxHeight;
  3604. IntVector2 maxSize;
  3605. int maxWidth;
  3606. int minHeight;
  3607. IntVector2 minSize;
  3608. int minWidth;
  3609. String name;
  3610. /* readonly */
  3611. uint numAllChildren;
  3612. /* readonly */
  3613. uint numAttributes;
  3614. /* readonly */
  3615. uint numChildren;
  3616. ObjectAnimation objectAnimation;
  3617. float opacity;
  3618. UIElement parent;
  3619. IntVector2 position;
  3620. int priority;
  3621. /* readonly */
  3622. int refs;
  3623. /* readonly */
  3624. UIElement root;
  3625. /* readonly */
  3626. IntVector2 screenPosition;
  3627. bool selected;
  3628. String shape;
  3629. IntVector2 size;
  3630. bool sortChildren;
  3631. String style;
  3632. /* readonly */
  3633. Array<String> tags;
  3634. bool temporary;
  3635. Texture texture;
  3636. bool tiled;
  3637. TraversalMode traversalMode;
  3638. /* readonly */
  3639. StringHash type;
  3640. /* readonly */
  3641. String typeName;
  3642. bool useDerivedOpacity;
  3643. bool useSystemShapes;
  3644. /* readonly */
  3645. VariantMap vars;
  3646. VerticalAlignment verticalAlignment;
  3647. bool visible;
  3648. /* readonly */
  3649. bool visibleEffective;
  3650. /* readonly */
  3651. int weakRefs;
  3652. int width;
  3653. };
  3654. class CustomGeometry
  3655. {
  3656. // Methods:
  3657. void ApplyAttributes();
  3658. void BeginGeometry(uint, PrimitiveType);
  3659. void Clear();
  3660. void Commit();
  3661. void DefineColor(const Color&);
  3662. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3663. void DefineNormal(const Vector3&);
  3664. void DefineTangent(const Vector4&);
  3665. void DefineTexCoord(const Vector2&);
  3666. void DefineVertex(const Vector3&);
  3667. void DrawDebugGeometry(DebugRenderer, bool);
  3668. Variant GetAttribute(const String&) const;
  3669. ValueAnimation GetAttributeAnimation(const String&) const;
  3670. float GetAttributeAnimationSpeed(const String&) const;
  3671. float GetAttributeAnimationTime(const String&) const;
  3672. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3673. Variant GetAttributeDefault(const String&) const;
  3674. bool GetInterceptNetworkUpdate(const String&) const;
  3675. CustomGeometryVertex GetVertex(uint, uint);
  3676. bool HasSubscribedToEvent(Object, const String&);
  3677. bool HasSubscribedToEvent(const String&);
  3678. bool IsInView(Camera) const;
  3679. bool Load(File, bool = false);
  3680. bool Load(VectorBuffer&, bool = false);
  3681. bool LoadJSON(const JSONValue&, bool = false);
  3682. bool LoadXML(const XMLElement&, bool = false);
  3683. void MarkNetworkUpdate() const;
  3684. void Remove();
  3685. void RemoveAttributeAnimation(const String&);
  3686. void RemoveInstanceDefault();
  3687. void RemoveObjectAnimation();
  3688. void ResetToDefault();
  3689. bool Save(File) const;
  3690. bool Save(VectorBuffer&) const;
  3691. bool SaveJSON(JSONValue&) const;
  3692. bool SaveXML(XMLElement&) const;
  3693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3694. void SetAnimationTime(float);
  3695. bool SetAttribute(const String&, const Variant&);
  3696. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3697. void SetAttributeAnimationSpeed(const String&, float);
  3698. void SetAttributeAnimationTime(const String&, float);
  3699. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3700. void SetInterceptNetworkUpdate(const String&, bool);
  3701. // Properties:
  3702. bool animationEnabled;
  3703. /* readonly */
  3704. Array<Variant> attributeDefaults;
  3705. /* readonly */
  3706. Array<AttributeInfo> attributeInfos;
  3707. Array<Variant> attributes;
  3708. /* readonly */
  3709. BoundingBox boundingBox;
  3710. bool castShadows;
  3711. /* readonly */
  3712. String category;
  3713. float drawDistance;
  3714. bool dynamic;
  3715. bool enabled;
  3716. /* readonly */
  3717. bool enabledEffective;
  3718. /* readonly */
  3719. uint id;
  3720. /* readonly */
  3721. bool inView;
  3722. uint lightMask;
  3723. float lodBias;
  3724. /* writeonly */
  3725. Material material;
  3726. Array<Material> materials;
  3727. uint maxLights;
  3728. /* readonly */
  3729. Node node;
  3730. /* readonly */
  3731. uint numAttributes;
  3732. uint numGeometries;
  3733. /* readonly */
  3734. Array<uint> numVertices;
  3735. ObjectAnimation objectAnimation;
  3736. bool occludee;
  3737. bool occluder;
  3738. /* readonly */
  3739. int refs;
  3740. float shadowDistance;
  3741. uint shadowMask;
  3742. bool temporary;
  3743. /* readonly */
  3744. StringHash type;
  3745. /* readonly */
  3746. String typeName;
  3747. uint viewMask;
  3748. /* readonly */
  3749. int weakRefs;
  3750. /* readonly */
  3751. BoundingBox worldBoundingBox;
  3752. /* readonly */
  3753. Zone zone;
  3754. uint zoneMask;
  3755. };
  3756. class CustomGeometryVertex
  3757. {
  3758. // Properties:
  3759. uint color;
  3760. Vector3 normal;
  3761. Vector3 position;
  3762. Vector4 tangent;
  3763. Vector2 texCoord;
  3764. };
  3765. class Database
  3766. {
  3767. // Methods:
  3768. DbConnection Connect(const String&);
  3769. void Disconnect(DbConnection);
  3770. bool HasSubscribedToEvent(Object, const String&);
  3771. bool HasSubscribedToEvent(const String&);
  3772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3773. // Properties:
  3774. /* readonly */
  3775. String category;
  3776. uint poolSize;
  3777. /* readonly */
  3778. bool pooling;
  3779. /* readonly */
  3780. int refs;
  3781. /* readonly */
  3782. StringHash type;
  3783. /* readonly */
  3784. String typeName;
  3785. /* readonly */
  3786. int weakRefs;
  3787. };
  3788. class DbConnection
  3789. {
  3790. // Methods:
  3791. DbResult Execute(const String&, bool = false);
  3792. bool HasSubscribedToEvent(Object, const String&);
  3793. bool HasSubscribedToEvent(const String&);
  3794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3795. // Properties:
  3796. /* readonly */
  3797. String category;
  3798. /* readonly */
  3799. bool connected;
  3800. /* readonly */
  3801. String connectionString;
  3802. /* readonly */
  3803. int refs;
  3804. /* readonly */
  3805. StringHash type;
  3806. /* readonly */
  3807. String typeName;
  3808. /* readonly */
  3809. int weakRefs;
  3810. };
  3811. class DbResult
  3812. {
  3813. // Properties:
  3814. /* readonly */
  3815. Array<String> columns;
  3816. /* readonly */
  3817. int64 numAffectedRows;
  3818. /* readonly */
  3819. uint numColumns;
  3820. /* readonly */
  3821. uint numRows;
  3822. /* readonly */
  3823. Array<Array<Variant>> row;
  3824. };
  3825. class DebugHud
  3826. {
  3827. // Methods:
  3828. void ClearAppStats();
  3829. bool HasSubscribedToEvent(Object, const String&);
  3830. bool HasSubscribedToEvent(const String&);
  3831. void ResetAppStats(const String&);
  3832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3833. void SetAppStats(const String&, const String&);
  3834. void SetAppStats(const String&, const Variant&);
  3835. void Toggle(uint);
  3836. void ToggleAll();
  3837. void Update();
  3838. // Properties:
  3839. /* readonly */
  3840. String category;
  3841. XMLFile defaultStyle;
  3842. /* readonly */
  3843. Text memoryText;
  3844. uint mode;
  3845. /* readonly */
  3846. Text modeText;
  3847. float profilerInterval;
  3848. uint profilerMaxDepth;
  3849. /* readonly */
  3850. Text profilerText;
  3851. /* readonly */
  3852. int refs;
  3853. /* readonly */
  3854. Text statsText;
  3855. /* readonly */
  3856. StringHash type;
  3857. /* readonly */
  3858. String typeName;
  3859. bool useRendererStats;
  3860. /* readonly */
  3861. int weakRefs;
  3862. };
  3863. class DebugRenderer
  3864. {
  3865. // Methods:
  3866. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3867. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3868. void AddCross(const Vector3&, float, const Color&, bool = true);
  3869. void AddFrustum(const Frustum&, const Color&, bool = true);
  3870. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3871. void AddNode(Node, float = 1.0, bool = true);
  3872. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3873. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3874. void AddSkeleton(Skeleton, const Color&, bool = true);
  3875. void AddSphere(const Sphere&, const Color&, bool = true);
  3876. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3877. void ApplyAttributes();
  3878. void DrawDebugGeometry(DebugRenderer, bool);
  3879. Variant GetAttribute(const String&) const;
  3880. ValueAnimation GetAttributeAnimation(const String&) const;
  3881. float GetAttributeAnimationSpeed(const String&) const;
  3882. float GetAttributeAnimationTime(const String&) const;
  3883. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3884. Variant GetAttributeDefault(const String&) const;
  3885. bool GetInterceptNetworkUpdate(const String&) const;
  3886. bool HasSubscribedToEvent(Object, const String&);
  3887. bool HasSubscribedToEvent(const String&);
  3888. bool Load(File, bool = false);
  3889. bool Load(VectorBuffer&, bool = false);
  3890. bool LoadJSON(const JSONValue&, bool = false);
  3891. bool LoadXML(const XMLElement&, bool = false);
  3892. void MarkNetworkUpdate() const;
  3893. void Remove();
  3894. void RemoveAttributeAnimation(const String&);
  3895. void RemoveInstanceDefault();
  3896. void RemoveObjectAnimation();
  3897. void ResetToDefault();
  3898. bool Save(File) const;
  3899. bool Save(VectorBuffer&) const;
  3900. bool SaveJSON(JSONValue&) const;
  3901. bool SaveXML(XMLElement&) const;
  3902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3903. void SetAnimationTime(float);
  3904. bool SetAttribute(const String&, const Variant&);
  3905. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3906. void SetAttributeAnimationSpeed(const String&, float);
  3907. void SetAttributeAnimationTime(const String&, float);
  3908. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3909. void SetInterceptNetworkUpdate(const String&, bool);
  3910. // Properties:
  3911. bool animationEnabled;
  3912. /* readonly */
  3913. Array<Variant> attributeDefaults;
  3914. /* readonly */
  3915. Array<AttributeInfo> attributeInfos;
  3916. Array<Variant> attributes;
  3917. /* readonly */
  3918. String category;
  3919. bool enabled;
  3920. /* readonly */
  3921. bool enabledEffective;
  3922. /* readonly */
  3923. uint id;
  3924. /* readonly */
  3925. Node node;
  3926. /* readonly */
  3927. uint numAttributes;
  3928. ObjectAnimation objectAnimation;
  3929. /* readonly */
  3930. int refs;
  3931. bool temporary;
  3932. /* readonly */
  3933. StringHash type;
  3934. /* readonly */
  3935. String typeName;
  3936. /* readonly */
  3937. int weakRefs;
  3938. };
  3939. class DecalSet
  3940. {
  3941. // Methods:
  3942. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3943. void ApplyAttributes();
  3944. void DrawDebugGeometry(DebugRenderer, bool);
  3945. Variant GetAttribute(const String&) const;
  3946. ValueAnimation GetAttributeAnimation(const String&) const;
  3947. float GetAttributeAnimationSpeed(const String&) const;
  3948. float GetAttributeAnimationTime(const String&) const;
  3949. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3950. Variant GetAttributeDefault(const String&) const;
  3951. bool GetInterceptNetworkUpdate(const String&) const;
  3952. bool HasSubscribedToEvent(Object, const String&);
  3953. bool HasSubscribedToEvent(const String&);
  3954. bool IsInView(Camera) const;
  3955. bool Load(File, bool = false);
  3956. bool Load(VectorBuffer&, bool = false);
  3957. bool LoadJSON(const JSONValue&, bool = false);
  3958. bool LoadXML(const XMLElement&, bool = false);
  3959. void MarkNetworkUpdate() const;
  3960. void Remove();
  3961. void RemoveAllDecals();
  3962. void RemoveAttributeAnimation(const String&);
  3963. void RemoveDecals(uint);
  3964. void RemoveInstanceDefault();
  3965. void RemoveObjectAnimation();
  3966. void ResetToDefault();
  3967. bool Save(File) const;
  3968. bool Save(VectorBuffer&) const;
  3969. bool SaveJSON(JSONValue&) const;
  3970. bool SaveXML(XMLElement&) const;
  3971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3972. void SetAnimationTime(float);
  3973. bool SetAttribute(const String&, const Variant&);
  3974. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3975. void SetAttributeAnimationSpeed(const String&, float);
  3976. void SetAttributeAnimationTime(const String&, float);
  3977. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3978. void SetInterceptNetworkUpdate(const String&, bool);
  3979. // Properties:
  3980. bool animationEnabled;
  3981. /* readonly */
  3982. Array<Variant> attributeDefaults;
  3983. /* readonly */
  3984. Array<AttributeInfo> attributeInfos;
  3985. Array<Variant> attributes;
  3986. /* readonly */
  3987. BoundingBox boundingBox;
  3988. bool castShadows;
  3989. /* readonly */
  3990. String category;
  3991. float drawDistance;
  3992. bool enabled;
  3993. /* readonly */
  3994. bool enabledEffective;
  3995. /* readonly */
  3996. uint id;
  3997. /* readonly */
  3998. bool inView;
  3999. uint lightMask;
  4000. float lodBias;
  4001. Material material;
  4002. uint maxIndices;
  4003. uint maxLights;
  4004. uint maxVertices;
  4005. /* readonly */
  4006. Node node;
  4007. /* readonly */
  4008. uint numAttributes;
  4009. /* readonly */
  4010. uint numDecals;
  4011. /* readonly */
  4012. uint numIndices;
  4013. /* readonly */
  4014. uint numVertices;
  4015. ObjectAnimation objectAnimation;
  4016. bool occludee;
  4017. bool occluder;
  4018. /* readonly */
  4019. int refs;
  4020. float shadowDistance;
  4021. uint shadowMask;
  4022. bool temporary;
  4023. /* readonly */
  4024. StringHash type;
  4025. /* readonly */
  4026. String typeName;
  4027. uint viewMask;
  4028. /* readonly */
  4029. int weakRefs;
  4030. /* readonly */
  4031. BoundingBox worldBoundingBox;
  4032. /* readonly */
  4033. Zone zone;
  4034. uint zoneMask;
  4035. };
  4036. class Deserializer
  4037. {
  4038. // Methods:
  4039. Array<uint8> Read(uint);
  4040. bool ReadBool();
  4041. BoundingBox ReadBoundingBox();
  4042. int8 ReadByte();
  4043. Color ReadColor();
  4044. double ReadDouble();
  4045. String ReadFileID();
  4046. float ReadFloat();
  4047. int ReadInt();
  4048. int64 ReadInt64();
  4049. IntRect ReadIntRect();
  4050. IntVector2 ReadIntVector2();
  4051. String ReadLine();
  4052. Matrix3 ReadMatrix3();
  4053. Matrix3x4 ReadMatrix3x4();
  4054. Matrix4 ReadMatrix4();
  4055. uint ReadNetID();
  4056. Quaternion ReadPackedQuaternion();
  4057. Vector3 ReadPackedVector3(float);
  4058. Quaternion ReadQuaternion();
  4059. int16 ReadShort();
  4060. String ReadString();
  4061. StringHash ReadStringHash();
  4062. uint8 ReadUByte();
  4063. uint ReadUInt();
  4064. uint64 ReadUInt64();
  4065. uint16 ReadUShort();
  4066. uint ReadVLE();
  4067. Variant ReadVariant();
  4068. VariantMap ReadVariantMap();
  4069. Vector2 ReadVector2();
  4070. Vector3 ReadVector3();
  4071. Vector4 ReadVector4();
  4072. VectorBuffer ReadVectorBuffer(uint);
  4073. uint Seek(uint);
  4074. // Properties:
  4075. /* readonly */
  4076. uint checksum;
  4077. /* readonly */
  4078. bool eof;
  4079. /* readonly */
  4080. String name;
  4081. /* readonly */
  4082. uint position;
  4083. /* readonly */
  4084. uint size;
  4085. };
  4086. class Dictionary
  4087. {
  4088. // Methods:
  4089. void Clear();
  4090. void Erase(const String&);
  4091. bool Exists(const String&) const;
  4092. bool Get(const String&, void*) const;
  4093. bool Get(const String&, double&) const;
  4094. bool Get(const String&, int64&) const;
  4095. void Set(const String&, const void*);
  4096. void Set(const String&, const double&);
  4097. void Set(const String&, const int64&);
  4098. // Properties:
  4099. /* readonly */
  4100. bool empty;
  4101. /* readonly */
  4102. Array<String> keys;
  4103. /* readonly */
  4104. uint length;
  4105. };
  4106. class DictionaryValue
  4107. {
  4108. };
  4109. class Drawable
  4110. {
  4111. // Methods:
  4112. void ApplyAttributes();
  4113. void DrawDebugGeometry(DebugRenderer, bool);
  4114. Variant GetAttribute(const String&) const;
  4115. ValueAnimation GetAttributeAnimation(const String&) const;
  4116. float GetAttributeAnimationSpeed(const String&) const;
  4117. float GetAttributeAnimationTime(const String&) const;
  4118. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4119. Variant GetAttributeDefault(const String&) const;
  4120. bool GetInterceptNetworkUpdate(const String&) const;
  4121. bool HasSubscribedToEvent(Object, const String&);
  4122. bool HasSubscribedToEvent(const String&);
  4123. bool IsInView(Camera) const;
  4124. bool Load(File, bool = false);
  4125. bool Load(VectorBuffer&, bool = false);
  4126. bool LoadJSON(const JSONValue&, bool = false);
  4127. bool LoadXML(const XMLElement&, bool = false);
  4128. void MarkNetworkUpdate() const;
  4129. void Remove();
  4130. void RemoveAttributeAnimation(const String&);
  4131. void RemoveInstanceDefault();
  4132. void RemoveObjectAnimation();
  4133. void ResetToDefault();
  4134. bool Save(File) const;
  4135. bool Save(VectorBuffer&) const;
  4136. bool SaveJSON(JSONValue&) const;
  4137. bool SaveXML(XMLElement&) const;
  4138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4139. void SetAnimationTime(float);
  4140. bool SetAttribute(const String&, const Variant&);
  4141. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4142. void SetAttributeAnimationSpeed(const String&, float);
  4143. void SetAttributeAnimationTime(const String&, float);
  4144. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4145. void SetInterceptNetworkUpdate(const String&, bool);
  4146. // Properties:
  4147. bool animationEnabled;
  4148. /* readonly */
  4149. Array<Variant> attributeDefaults;
  4150. /* readonly */
  4151. Array<AttributeInfo> attributeInfos;
  4152. Array<Variant> attributes;
  4153. /* readonly */
  4154. BoundingBox boundingBox;
  4155. bool castShadows;
  4156. /* readonly */
  4157. String category;
  4158. float drawDistance;
  4159. bool enabled;
  4160. /* readonly */
  4161. bool enabledEffective;
  4162. /* readonly */
  4163. uint id;
  4164. /* readonly */
  4165. bool inView;
  4166. uint lightMask;
  4167. float lodBias;
  4168. uint maxLights;
  4169. /* readonly */
  4170. Node node;
  4171. /* readonly */
  4172. uint numAttributes;
  4173. ObjectAnimation objectAnimation;
  4174. bool occludee;
  4175. bool occluder;
  4176. /* readonly */
  4177. int refs;
  4178. float shadowDistance;
  4179. uint shadowMask;
  4180. bool temporary;
  4181. /* readonly */
  4182. StringHash type;
  4183. /* readonly */
  4184. String typeName;
  4185. uint viewMask;
  4186. /* readonly */
  4187. int weakRefs;
  4188. /* readonly */
  4189. BoundingBox worldBoundingBox;
  4190. uint zoneMask;
  4191. };
  4192. class Drawable2D
  4193. {
  4194. // Methods:
  4195. void ApplyAttributes();
  4196. void DrawDebugGeometry(DebugRenderer, bool);
  4197. Variant GetAttribute(const String&) const;
  4198. ValueAnimation GetAttributeAnimation(const String&) const;
  4199. float GetAttributeAnimationSpeed(const String&) const;
  4200. float GetAttributeAnimationTime(const String&) const;
  4201. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4202. Variant GetAttributeDefault(const String&) const;
  4203. bool GetInterceptNetworkUpdate(const String&) const;
  4204. bool HasSubscribedToEvent(Object, const String&);
  4205. bool HasSubscribedToEvent(const String&);
  4206. bool IsInView(Camera) const;
  4207. bool Load(File, bool = false);
  4208. bool Load(VectorBuffer&, bool = false);
  4209. bool LoadJSON(const JSONValue&, bool = false);
  4210. bool LoadXML(const XMLElement&, bool = false);
  4211. void MarkNetworkUpdate() const;
  4212. void Remove();
  4213. void RemoveAttributeAnimation(const String&);
  4214. void RemoveInstanceDefault();
  4215. void RemoveObjectAnimation();
  4216. void ResetToDefault();
  4217. bool Save(File) const;
  4218. bool Save(VectorBuffer&) const;
  4219. bool SaveJSON(JSONValue&) const;
  4220. bool SaveXML(XMLElement&) const;
  4221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4222. void SetAnimationTime(float);
  4223. bool SetAttribute(const String&, const Variant&);
  4224. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4225. void SetAttributeAnimationSpeed(const String&, float);
  4226. void SetAttributeAnimationTime(const String&, float);
  4227. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4228. void SetInterceptNetworkUpdate(const String&, bool);
  4229. // Properties:
  4230. bool animationEnabled;
  4231. /* readonly */
  4232. Array<Variant> attributeDefaults;
  4233. /* readonly */
  4234. Array<AttributeInfo> attributeInfos;
  4235. Array<Variant> attributes;
  4236. /* readonly */
  4237. BoundingBox boundingBox;
  4238. bool castShadows;
  4239. /* readonly */
  4240. String category;
  4241. float drawDistance;
  4242. bool enabled;
  4243. /* readonly */
  4244. bool enabledEffective;
  4245. /* readonly */
  4246. uint id;
  4247. /* readonly */
  4248. bool inView;
  4249. int layer;
  4250. uint lightMask;
  4251. float lodBias;
  4252. uint maxLights;
  4253. /* readonly */
  4254. Node node;
  4255. /* readonly */
  4256. uint numAttributes;
  4257. ObjectAnimation objectAnimation;
  4258. bool occludee;
  4259. bool occluder;
  4260. int orderInLayer;
  4261. /* readonly */
  4262. int refs;
  4263. float shadowDistance;
  4264. uint shadowMask;
  4265. bool temporary;
  4266. /* readonly */
  4267. StringHash type;
  4268. /* readonly */
  4269. String typeName;
  4270. uint viewMask;
  4271. /* readonly */
  4272. int weakRefs;
  4273. /* readonly */
  4274. BoundingBox worldBoundingBox;
  4275. uint zoneMask;
  4276. };
  4277. class DropDownList
  4278. {
  4279. // Methods:
  4280. void AddChild(UIElement);
  4281. void AddItem(UIElement);
  4282. void AddTag(const String&);
  4283. void AddTags(const String&, int8 = ';');
  4284. void ApplyAttributes();
  4285. void BringToFront();
  4286. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4287. void DisableLayoutUpdate();
  4288. IntVector2 ElementToScreen(const IntVector2&);
  4289. void EnableLayoutUpdate();
  4290. uint FindChild(UIElement) const;
  4291. Variant GetAttribute(const String&) const;
  4292. ValueAnimation GetAttributeAnimation(const String&) const;
  4293. float GetAttributeAnimationSpeed(const String&) const;
  4294. float GetAttributeAnimationTime(const String&) const;
  4295. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4296. Variant GetAttributeDefault(const String&) const;
  4297. UIElement GetChild(const String&, bool = false) const;
  4298. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4299. Array<UIElement> GetChildren(bool = false) const;
  4300. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4301. UIElement GetElementEventSender() const;
  4302. bool GetInterceptNetworkUpdate(const String&) const;
  4303. Array<UIElement> GetItems() const;
  4304. uint GetNumChildren(bool) const;
  4305. bool HasSubscribedToEvent(Object, const String&);
  4306. bool HasSubscribedToEvent(const String&);
  4307. bool HasTag(const String&) const;
  4308. void InsertChild(uint, UIElement);
  4309. void InsertItem(uint, UIElement);
  4310. bool IsInside(IntVector2, bool);
  4311. bool IsInsideCombined(IntVector2, bool);
  4312. bool Load(File, bool = false);
  4313. bool Load(VectorBuffer&, bool = false);
  4314. bool LoadChildXML(XMLFile, XMLFile = null);
  4315. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4316. bool LoadJSON(const JSONValue&, bool = false);
  4317. bool LoadXML(File);
  4318. bool LoadXML(VectorBuffer&);
  4319. bool LoadXML(XMLFile, XMLFile);
  4320. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4321. bool LoadXML(const XMLElement&, bool = false);
  4322. void MarkNetworkUpdate() const;
  4323. void Remove();
  4324. void RemoveAllChildren();
  4325. void RemoveAllItems();
  4326. void RemoveAllTags();
  4327. void RemoveAttributeAnimation(const String&);
  4328. void RemoveChild(UIElement, uint = 0);
  4329. void RemoveChild(uint);
  4330. void RemoveInstanceDefault();
  4331. void RemoveItem(UIElement);
  4332. void RemoveItem(uint);
  4333. void RemoveObjectAnimation();
  4334. bool RemoveTag(const String&);
  4335. void ResetDeepEnabled();
  4336. void ResetToDefault();
  4337. bool Save(File) const;
  4338. bool Save(VectorBuffer&) const;
  4339. bool SaveJSON(JSONValue&) const;
  4340. bool SaveXML(File, const String& = "\t");
  4341. bool SaveXML(VectorBuffer&, const String& = "\t");
  4342. bool SaveXML(XMLElement&) const;
  4343. IntVector2 ScreenToElement(const IntVector2&);
  4344. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4345. void SetAccelerator(int, int);
  4346. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4347. void SetAnimationTime(float);
  4348. bool SetAttribute(const String&, const Variant&);
  4349. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4350. void SetAttributeAnimationSpeed(const String&, float);
  4351. void SetAttributeAnimationTime(const String&, float);
  4352. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4353. void SetDeepEnabled(bool);
  4354. void SetEnabledRecursive(bool);
  4355. void SetFixedHeight(int);
  4356. void SetFixedSize(int, int);
  4357. void SetFixedWidth(int);
  4358. void SetFullImageRect();
  4359. void SetHoverOffset(int, int);
  4360. void SetInterceptNetworkUpdate(const String&, bool);
  4361. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4362. void SetMaxSize(int, int);
  4363. void SetMinSize(int, int);
  4364. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4365. void SetPosition(int, int);
  4366. void SetPressedChildOffset(int, int);
  4367. void SetPressedOffset(int, int);
  4368. void SetRepeat(float, float);
  4369. void SetSize(int, int);
  4370. bool SetStyle(const String&, XMLFile = null);
  4371. bool SetStyle(const XMLElement&);
  4372. bool SetStyleAuto(XMLFile = null);
  4373. void UpdateLayout();
  4374. const Variant& GetVar(const StringHash&);
  4375. UIElement getPopup() const;
  4376. // Properties:
  4377. /* readonly */
  4378. int acceleratorKey;
  4379. /* readonly */
  4380. int acceleratorQualifiers;
  4381. bool animationEnabled;
  4382. /* readonly */
  4383. Array<Variant> attributeDefaults;
  4384. /* readonly */
  4385. Array<AttributeInfo> attributeInfos;
  4386. Array<Variant> attributes;
  4387. BlendMode blendMode;
  4388. IntRect border;
  4389. bool bringToBack;
  4390. bool bringToFront;
  4391. /* readonly */
  4392. String category;
  4393. /* readonly */
  4394. IntVector2 childOffset;
  4395. /* readonly */
  4396. Array<UIElement> children;
  4397. IntRect clipBorder;
  4398. bool clipChildren;
  4399. /* writeonly */
  4400. Color color;
  4401. /* readonly */
  4402. bool colorGradient;
  4403. Array<Color> colors;
  4404. /* readonly */
  4405. IntRect combinedScreenRect;
  4406. XMLFile defaultStyle;
  4407. /* readonly */
  4408. float derivedOpacity;
  4409. /* readonly */
  4410. uint dragButtonCombo;
  4411. /* readonly */
  4412. int dragButtonCount;
  4413. uint dragDropMode;
  4414. bool editable;
  4415. bool elementEventSender;
  4416. bool enabled;
  4417. /* readonly */
  4418. bool enabledSelf;
  4419. /* readonly */
  4420. bool fixedHeight;
  4421. /* readonly */
  4422. bool fixedSize;
  4423. /* readonly */
  4424. bool fixedWidth;
  4425. bool focus;
  4426. FocusMode focusMode;
  4427. int height;
  4428. HorizontalAlignment horizontalAlignment;
  4429. IntVector2 hoverOffset;
  4430. /* readonly */
  4431. bool hovering;
  4432. IntRect imageBorder;
  4433. IntRect imageRect;
  4434. int indent;
  4435. int indentSpacing;
  4436. /* readonly */
  4437. int indentWidth;
  4438. bool internal;
  4439. /* readonly */
  4440. Array<UIElement> items;
  4441. IntRect layoutBorder;
  4442. Vector2 layoutFlexScale;
  4443. LayoutMode layoutMode;
  4444. int layoutSpacing;
  4445. /* readonly */
  4446. ListView listView;
  4447. int maxHeight;
  4448. IntVector2 maxSize;
  4449. int maxWidth;
  4450. int minHeight;
  4451. IntVector2 minSize;
  4452. int minWidth;
  4453. String name;
  4454. /* readonly */
  4455. uint numAllChildren;
  4456. /* readonly */
  4457. uint numAttributes;
  4458. /* readonly */
  4459. uint numChildren;
  4460. /* readonly */
  4461. uint numItems;
  4462. ObjectAnimation objectAnimation;
  4463. float opacity;
  4464. UIElement parent;
  4465. /* readonly */
  4466. UIElement placeholder;
  4467. String placeholderText;
  4468. IntVector2 position;
  4469. /* readonly */
  4470. bool pressed;
  4471. IntVector2 pressedChildOffset;
  4472. IntVector2 pressedOffset;
  4473. int priority;
  4474. /* readonly */
  4475. int refs;
  4476. float repeatDelay;
  4477. float repeatRate;
  4478. bool resizePopup;
  4479. /* readonly */
  4480. UIElement root;
  4481. /* readonly */
  4482. IntVector2 screenPosition;
  4483. bool selected;
  4484. /* readonly */
  4485. UIElement selectedItem;
  4486. uint selection;
  4487. bool showPopup;
  4488. IntVector2 size;
  4489. bool sortChildren;
  4490. String style;
  4491. /* readonly */
  4492. Array<String> tags;
  4493. bool temporary;
  4494. Texture texture;
  4495. bool tiled;
  4496. TraversalMode traversalMode;
  4497. /* readonly */
  4498. StringHash type;
  4499. /* readonly */
  4500. String typeName;
  4501. bool useDerivedOpacity;
  4502. /* readonly */
  4503. VariantMap vars;
  4504. VerticalAlignment verticalAlignment;
  4505. bool visible;
  4506. /* readonly */
  4507. bool visibleEffective;
  4508. /* readonly */
  4509. int weakRefs;
  4510. int width;
  4511. };
  4512. class DynamicNavigationMesh
  4513. {
  4514. // Methods:
  4515. void ApplyAttributes();
  4516. bool Build();
  4517. bool Build(const BoundingBox&);
  4518. void DrawDebugGeometry(DebugRenderer, bool);
  4519. void DrawDebugGeometry(bool);
  4520. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4521. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4522. float GetAreaCost(uint) const;
  4523. Variant GetAttribute(const String&) const;
  4524. ValueAnimation GetAttributeAnimation(const String&) const;
  4525. float GetAttributeAnimationSpeed(const String&) const;
  4526. float GetAttributeAnimationTime(const String&) const;
  4527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4528. Variant GetAttributeDefault(const String&) const;
  4529. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4530. bool GetInterceptNetworkUpdate(const String&) const;
  4531. Vector3 GetRandomPoint();
  4532. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4533. bool HasSubscribedToEvent(Object, const String&);
  4534. bool HasSubscribedToEvent(const String&);
  4535. bool Load(File, bool = false);
  4536. bool Load(VectorBuffer&, bool = false);
  4537. bool LoadJSON(const JSONValue&, bool = false);
  4538. bool LoadXML(const XMLElement&, bool = false);
  4539. void MarkNetworkUpdate() const;
  4540. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4541. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4542. void Remove();
  4543. void RemoveAttributeAnimation(const String&);
  4544. void RemoveInstanceDefault();
  4545. void RemoveObjectAnimation();
  4546. void ResetToDefault();
  4547. bool Save(File) const;
  4548. bool Save(VectorBuffer&) const;
  4549. bool SaveJSON(JSONValue&) const;
  4550. bool SaveXML(XMLElement&) const;
  4551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4552. void SetAnimationTime(float);
  4553. void SetAreaCost(uint, float);
  4554. bool SetAttribute(const String&, const Variant&);
  4555. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4556. void SetAttributeAnimationSpeed(const String&, float);
  4557. void SetAttributeAnimationTime(const String&, float);
  4558. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4559. void SetInterceptNetworkUpdate(const String&, bool);
  4560. // Properties:
  4561. float agentHeight;
  4562. float agentMaxClimb;
  4563. float agentMaxSlope;
  4564. float agentRadius;
  4565. bool animationEnabled;
  4566. /* readonly */
  4567. Array<Variant> attributeDefaults;
  4568. /* readonly */
  4569. Array<AttributeInfo> attributeInfos;
  4570. Array<Variant> attributes;
  4571. /* readonly */
  4572. BoundingBox boundingBox;
  4573. /* readonly */
  4574. String category;
  4575. float cellHeight;
  4576. float cellSize;
  4577. float detailSampleDistance;
  4578. float detailSampleMaxError;
  4579. bool drawNavAreas;
  4580. bool drawObstacles;
  4581. bool drawOffMeshConnections;
  4582. float edgeMaxError;
  4583. float edgeMaxLength;
  4584. bool enabled;
  4585. /* readonly */
  4586. bool enabledEffective;
  4587. /* readonly */
  4588. uint id;
  4589. /* readonly */
  4590. bool initialized;
  4591. bool maxLayers;
  4592. uint maxObstacles;
  4593. /* readonly */
  4594. Node node;
  4595. /* readonly */
  4596. uint numAttributes;
  4597. /* readonly */
  4598. IntVector2 numTiles;
  4599. ObjectAnimation objectAnimation;
  4600. Vector3 padding;
  4601. NavmeshPartitionType partitionType;
  4602. /* readonly */
  4603. int refs;
  4604. float regionMergeSize;
  4605. float regionMinSize;
  4606. bool temporary;
  4607. int tileSize;
  4608. /* readonly */
  4609. StringHash type;
  4610. /* readonly */
  4611. String typeName;
  4612. /* readonly */
  4613. int weakRefs;
  4614. /* readonly */
  4615. BoundingBox worldBoundingBox;
  4616. };
  4617. class Engine
  4618. {
  4619. // Methods:
  4620. Console CreateConsole();
  4621. DebugHud CreateDebugHud();
  4622. void DumpMemory();
  4623. void DumpProfiler();
  4624. void DumpResources(bool = false);
  4625. void Exit();
  4626. bool HasSubscribedToEvent(Object, const String&);
  4627. bool HasSubscribedToEvent(const String&);
  4628. void RunFrame();
  4629. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4630. // Properties:
  4631. bool autoExit;
  4632. /* readonly */
  4633. String category;
  4634. /* readonly */
  4635. bool exiting;
  4636. /* readonly */
  4637. bool headless;
  4638. /* readonly */
  4639. bool initialized;
  4640. int maxFps;
  4641. int maxInactiveFps;
  4642. int minFps;
  4643. bool pauseMinimized;
  4644. /* readonly */
  4645. int refs;
  4646. int timeStepSmoothing;
  4647. /* readonly */
  4648. StringHash type;
  4649. /* readonly */
  4650. String typeName;
  4651. /* readonly */
  4652. int weakRefs;
  4653. };
  4654. class File
  4655. {
  4656. // Methods:
  4657. void Close();
  4658. bool HasSubscribedToEvent(Object, const String&);
  4659. bool HasSubscribedToEvent(const String&);
  4660. bool Open(const String&, FileMode = FILE_READ);
  4661. Array<uint8> Read(uint);
  4662. bool ReadBool();
  4663. BoundingBox ReadBoundingBox();
  4664. int8 ReadByte();
  4665. Color ReadColor();
  4666. double ReadDouble();
  4667. String ReadFileID();
  4668. float ReadFloat();
  4669. int ReadInt();
  4670. int64 ReadInt64();
  4671. IntRect ReadIntRect();
  4672. IntVector2 ReadIntVector2();
  4673. String ReadLine();
  4674. Matrix3 ReadMatrix3();
  4675. Matrix3x4 ReadMatrix3x4();
  4676. Matrix4 ReadMatrix4();
  4677. uint ReadNetID();
  4678. Quaternion ReadPackedQuaternion();
  4679. Vector3 ReadPackedVector3(float);
  4680. Quaternion ReadQuaternion();
  4681. int16 ReadShort();
  4682. String ReadString();
  4683. StringHash ReadStringHash();
  4684. uint8 ReadUByte();
  4685. uint ReadUInt();
  4686. uint64 ReadUInt64();
  4687. uint16 ReadUShort();
  4688. uint ReadVLE();
  4689. Variant ReadVariant();
  4690. VariantMap ReadVariantMap();
  4691. Vector2 ReadVector2();
  4692. Vector3 ReadVector3();
  4693. Vector4 ReadVector4();
  4694. VectorBuffer ReadVectorBuffer(uint);
  4695. uint Seek(uint);
  4696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4697. uint Write(Array<uint8>);
  4698. bool WriteBool(bool);
  4699. bool WriteBoundingBox(const BoundingBox&);
  4700. bool WriteByte(int8);
  4701. bool WriteColor(const Color&);
  4702. bool WriteDouble(double);
  4703. bool WriteFileID(const String&);
  4704. bool WriteFloat(float);
  4705. bool WriteInt(int);
  4706. bool WriteInt64(int64);
  4707. bool WriteIntRect(const IntRect&);
  4708. bool WriteIntVector2(const IntVector2&);
  4709. bool WriteLine(const String&);
  4710. bool WriteMatrix3(const Matrix3&);
  4711. bool WriteMatrix3x4(const Matrix3x4&);
  4712. bool WriteMatrix4(const Matrix4&);
  4713. bool WriteNetID(uint);
  4714. bool WritePackedQuaternion(const Quaternion&);
  4715. bool WritePackedVector3(const Vector3&, float);
  4716. bool WriteQuaternion(const Quaternion&);
  4717. bool WriteShort(int16);
  4718. bool WriteString(const String&);
  4719. bool WriteStringHash(const StringHash&);
  4720. bool WriteUByte(uint8);
  4721. bool WriteUInt(uint);
  4722. bool WriteUInt64(uint64);
  4723. bool WriteUShort(uint16);
  4724. bool WriteVLE(uint);
  4725. bool WriteVariant(const Variant&);
  4726. bool WriteVariantMap(const VariantMap&);
  4727. bool WriteVector2(const Vector2&);
  4728. bool WriteVector3(const Vector3&);
  4729. bool WriteVector4(const Vector4&);
  4730. bool WriteVectorBuffer(const VectorBuffer&);
  4731. // Properties:
  4732. /* readonly */
  4733. String category;
  4734. /* readonly */
  4735. uint checksum;
  4736. /* readonly */
  4737. bool eof;
  4738. /* readonly */
  4739. FileMode mode;
  4740. /* readonly */
  4741. String name;
  4742. /* readonly */
  4743. bool open;
  4744. /* readonly */
  4745. bool packaged;
  4746. /* readonly */
  4747. uint position;
  4748. /* readonly */
  4749. int refs;
  4750. /* readonly */
  4751. uint size;
  4752. /* readonly */
  4753. StringHash type;
  4754. /* readonly */
  4755. String typeName;
  4756. /* readonly */
  4757. int weakRefs;
  4758. };
  4759. class FileSelector
  4760. {
  4761. // Methods:
  4762. bool HasSubscribedToEvent(Object, const String&);
  4763. bool HasSubscribedToEvent(const String&);
  4764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4765. void SetButtonTexts(const String&, const String&);
  4766. void SetFilters(Array<String>, uint);
  4767. void UpdateElements();
  4768. // Properties:
  4769. /* readonly */
  4770. Button cancelButton;
  4771. /* readonly */
  4772. String category;
  4773. XMLFile defaultStyle;
  4774. bool directoryMode;
  4775. /* readonly */
  4776. ListView fileList;
  4777. String fileName;
  4778. /* readonly */
  4779. LineEdit fileNameEdit;
  4780. /* readonly */
  4781. String filter;
  4782. /* readonly */
  4783. uint filterIndex;
  4784. /* readonly */
  4785. DropDownList filterList;
  4786. /* readonly */
  4787. Button okButton;
  4788. String path;
  4789. /* readonly */
  4790. LineEdit pathEdit;
  4791. /* readonly */
  4792. int refs;
  4793. String title;
  4794. /* readonly */
  4795. Text titleText;
  4796. /* readonly */
  4797. StringHash type;
  4798. /* readonly */
  4799. String typeName;
  4800. /* readonly */
  4801. int weakRefs;
  4802. /* readonly */
  4803. Window window;
  4804. };
  4805. class FileSystem
  4806. {
  4807. // Methods:
  4808. bool Copy(const String&, const String&);
  4809. bool CreateDir(const String&);
  4810. bool Delete(const String&);
  4811. bool DirExists(const String&) const;
  4812. bool FileExists(const String&) const;
  4813. String GetAppPreferencesDir(const String&, const String&) const;
  4814. uint GetLastModifiedTime(const String&) const;
  4815. bool HasSubscribedToEvent(Object, const String&);
  4816. bool HasSubscribedToEvent(const String&);
  4817. bool Rename(const String&, const String&);
  4818. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4819. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4820. bool SetLastModifiedTime(const String&, uint);
  4821. int SystemCommand(const String&, bool = false);
  4822. uint SystemCommandAsync(const String&);
  4823. bool SystemOpen(const String&, const String&);
  4824. int SystemRun(const String&, Array<String>);
  4825. uint SystemRunAsync(const String&, Array<String>);
  4826. // Properties:
  4827. /* readonly */
  4828. String category;
  4829. String currentDir;
  4830. bool executeConsoleCommands;
  4831. /* readonly */
  4832. String programDir;
  4833. /* readonly */
  4834. int refs;
  4835. /* readonly */
  4836. StringHash type;
  4837. /* readonly */
  4838. String typeName;
  4839. /* readonly */
  4840. String userDocumentsDir;
  4841. /* readonly */
  4842. int weakRefs;
  4843. };
  4844. class FocusParameters
  4845. {
  4846. // Properties:
  4847. bool autoSize;
  4848. bool focus;
  4849. float minView;
  4850. bool nonUniform;
  4851. float quantize;
  4852. };
  4853. class Font
  4854. {
  4855. // Methods:
  4856. IntVector2 GetTotalGlyphOffset(int) const;
  4857. bool HasSubscribedToEvent(Object, const String&);
  4858. bool HasSubscribedToEvent(const String&);
  4859. bool Load(File);
  4860. bool Load(VectorBuffer&);
  4861. bool Save(File) const;
  4862. bool Save(VectorBuffer&) const;
  4863. bool SaveXML(File, int, bool = false, const String& = "\t");
  4864. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4865. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4866. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4867. // Properties:
  4868. IntVector2 absoluteGlyphOffset;
  4869. /* readonly */
  4870. String category;
  4871. /* readonly */
  4872. uint memoryUse;
  4873. String name;
  4874. /* readonly */
  4875. int refs;
  4876. Vector2 scaledGlyphOffset;
  4877. /* readonly */
  4878. StringHash type;
  4879. /* readonly */
  4880. String typeName;
  4881. /* readonly */
  4882. uint useTimer;
  4883. /* readonly */
  4884. int weakRefs;
  4885. };
  4886. class Frustum
  4887. {
  4888. // Methods:
  4889. void Define(const BoundingBox&, const Matrix3x4&);
  4890. void Define(const Matrix4&);
  4891. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4892. void Define(float, float, float, float, float, const Matrix3x4&);
  4893. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4894. void DefineSplit(const Matrix4&, float, float);
  4895. float Distance(const Vector3&) const;
  4896. Intersection IsInside(const BoundingBox&);
  4897. Intersection IsInside(const Sphere&);
  4898. Intersection IsInside(const Vector3&);
  4899. Intersection IsInsideFast(const BoundingBox&) const;
  4900. Intersection IsInsideFast(const Sphere&) const;
  4901. void Transform(const Matrix3&);
  4902. void Transform(const Matrix3x4&);
  4903. Frustum Transformed(const Matrix3&) const;
  4904. Frustum Transformed(const Matrix3x4&) const;
  4905. // Properties:
  4906. /* readonly */
  4907. Array<Vector3> vertices;
  4908. };
  4909. class Geometry
  4910. {
  4911. // Methods:
  4912. bool HasSubscribedToEvent(Object, const String&);
  4913. bool HasSubscribedToEvent(const String&);
  4914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4915. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4916. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4917. void SetIndexBuffer(IndexBuffer);
  4918. bool SetVertexBuffer(uint, VertexBuffer);
  4919. // Properties:
  4920. /* readonly */
  4921. String category;
  4922. /* readonly */
  4923. bool empty;
  4924. IndexBuffer indexBuffer;
  4925. /* readonly */
  4926. uint indexCount;
  4927. /* readonly */
  4928. uint indexStart;
  4929. float lodDistance;
  4930. uint numVertexBuffers;
  4931. /* readonly */
  4932. PrimitiveType primitiveType;
  4933. /* readonly */
  4934. int refs;
  4935. /* readonly */
  4936. StringHash type;
  4937. /* readonly */
  4938. String typeName;
  4939. /* readonly */
  4940. Array<VertexBuffer> vertexBuffers;
  4941. /* readonly */
  4942. uint vertexCount;
  4943. /* readonly */
  4944. uint vertexStart;
  4945. /* readonly */
  4946. int weakRefs;
  4947. };
  4948. class Graphics
  4949. {
  4950. // Methods:
  4951. void BeginDumpShaders(const String&);
  4952. void Close();
  4953. void EndDumpShaders();
  4954. bool HasSubscribedToEvent(Object, const String&);
  4955. bool HasSubscribedToEvent(const String&);
  4956. void Maximize();
  4957. void Minimize();
  4958. void PrecacheShaders(File);
  4959. void PrecacheShaders(VectorBuffer&);
  4960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4961. bool SetMode(int, int);
  4962. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4963. void SetWindowPosition(int, int);
  4964. bool TakeScreenShot(Image);
  4965. bool ToggleFullscreen();
  4966. // Properties:
  4967. /* readonly */
  4968. String apiName;
  4969. /* readonly */
  4970. bool borderless;
  4971. /* readonly */
  4972. String category;
  4973. /* readonly */
  4974. bool deferredSupport;
  4975. /* readonly */
  4976. IntVector2 desktopResolution;
  4977. /* readonly */
  4978. bool deviceLost;
  4979. bool dither;
  4980. bool flushGPU;
  4981. /* readonly */
  4982. bool fullscreen;
  4983. /* readonly */
  4984. bool hardwareShadowSupport;
  4985. /* readonly */
  4986. int height;
  4987. /* readonly */
  4988. bool initialized;
  4989. /* readonly */
  4990. bool instancingSupport;
  4991. /* readonly */
  4992. bool lightPrepassSupport;
  4993. /* readonly */
  4994. int multiSample;
  4995. /* readonly */
  4996. Array<int> multiSampleLevels;
  4997. /* readonly */
  4998. uint numBatches;
  4999. /* readonly */
  5000. uint numPrimitives;
  5001. String orientations;
  5002. /* readonly */
  5003. bool readableDepthSupport;
  5004. /* readonly */
  5005. int refs;
  5006. /* readonly */
  5007. bool resizable;
  5008. /* readonly */
  5009. Array<IntVector2> resolutions;
  5010. bool sRGB;
  5011. /* readonly */
  5012. bool sRGBSupport;
  5013. /* readonly */
  5014. bool sRGBWriteSupport;
  5015. /* readonly */
  5016. bool tripleBuffer;
  5017. /* readonly */
  5018. StringHash type;
  5019. /* readonly */
  5020. String typeName;
  5021. /* readonly */
  5022. bool vsync;
  5023. /* readonly */
  5024. int weakRefs;
  5025. /* readonly */
  5026. int width;
  5027. /* writeonly */
  5028. Image windowIcon;
  5029. IntVector2 windowPosition;
  5030. String windowTitle;
  5031. };
  5032. class HttpRequest
  5033. {
  5034. // Methods:
  5035. Array<uint8> Read(uint);
  5036. bool ReadBool();
  5037. BoundingBox ReadBoundingBox();
  5038. int8 ReadByte();
  5039. Color ReadColor();
  5040. double ReadDouble();
  5041. String ReadFileID();
  5042. float ReadFloat();
  5043. int ReadInt();
  5044. int64 ReadInt64();
  5045. IntRect ReadIntRect();
  5046. IntVector2 ReadIntVector2();
  5047. String ReadLine();
  5048. Matrix3 ReadMatrix3();
  5049. Matrix3x4 ReadMatrix3x4();
  5050. Matrix4 ReadMatrix4();
  5051. uint ReadNetID();
  5052. Quaternion ReadPackedQuaternion();
  5053. Vector3 ReadPackedVector3(float);
  5054. Quaternion ReadQuaternion();
  5055. int16 ReadShort();
  5056. String ReadString();
  5057. StringHash ReadStringHash();
  5058. uint8 ReadUByte();
  5059. uint ReadUInt();
  5060. uint64 ReadUInt64();
  5061. uint16 ReadUShort();
  5062. uint ReadVLE();
  5063. Variant ReadVariant();
  5064. VariantMap ReadVariantMap();
  5065. Vector2 ReadVector2();
  5066. Vector3 ReadVector3();
  5067. Vector4 ReadVector4();
  5068. VectorBuffer ReadVectorBuffer(uint);
  5069. uint Seek(uint);
  5070. // Properties:
  5071. /* readonly */
  5072. uint availableSize;
  5073. /* readonly */
  5074. uint checksum;
  5075. /* readonly */
  5076. bool eof;
  5077. /* readonly */
  5078. String error;
  5079. /* readonly */
  5080. String name;
  5081. /* readonly */
  5082. bool open;
  5083. /* readonly */
  5084. uint position;
  5085. /* readonly */
  5086. int refs;
  5087. /* readonly */
  5088. uint size;
  5089. /* readonly */
  5090. HttpRequestState state;
  5091. /* readonly */
  5092. String url;
  5093. /* readonly */
  5094. String verb;
  5095. /* readonly */
  5096. int weakRefs;
  5097. };
  5098. class Image
  5099. {
  5100. // Methods:
  5101. void Clear(const Color&);
  5102. void ClearInt(uint);
  5103. bool FlipHorizontal();
  5104. bool FlipVertical();
  5105. Color GetPixel(int, int) const;
  5106. Color GetPixel(int, int, int) const;
  5107. Color GetPixelBilinear(float, float) const;
  5108. uint GetPixelInt(int, int) const;
  5109. uint GetPixelInt(int, int, int) const;
  5110. Color GetPixelTrilinear(float, float, float) const;
  5111. Image GetSubimage(const IntRect&) const;
  5112. bool HasSubscribedToEvent(Object, const String&);
  5113. bool HasSubscribedToEvent(const String&);
  5114. bool Load(File);
  5115. bool Load(VectorBuffer&);
  5116. bool LoadColorLUT(File);
  5117. bool LoadColorLUT(VectorBuffer&);
  5118. bool Resize(int, int);
  5119. bool Save(File) const;
  5120. bool Save(VectorBuffer&) const;
  5121. bool SaveBMP(const String&) const;
  5122. bool SaveJPG(const String&, int) const;
  5123. bool SavePNG(const String&) const;
  5124. bool SaveTGA(const String&) const;
  5125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5126. void SetPixel(int, int, const Color&);
  5127. void SetPixel(int, int, int, const Color&);
  5128. void SetPixelInt(int, int, int, uint);
  5129. void SetPixelInt(int, int, uint);
  5130. bool SetSize(int, int, int, uint);
  5131. bool SetSize(int, int, uint);
  5132. // Properties:
  5133. /* readonly */
  5134. bool array;
  5135. /* readonly */
  5136. String category;
  5137. /* readonly */
  5138. uint components;
  5139. /* readonly */
  5140. bool compressed;
  5141. /* readonly */
  5142. CompressedFormat compressedFormat;
  5143. /* readonly */
  5144. bool cubemap;
  5145. /* readonly */
  5146. int depth;
  5147. /* readonly */
  5148. int height;
  5149. /* readonly */
  5150. uint memoryUse;
  5151. String name;
  5152. /* readonly */
  5153. uint numCompressedLevels;
  5154. /* readonly */
  5155. int refs;
  5156. /* readonly */
  5157. bool sRGB;
  5158. /* readonly */
  5159. StringHash type;
  5160. /* readonly */
  5161. String typeName;
  5162. /* readonly */
  5163. uint useTimer;
  5164. /* readonly */
  5165. int weakRefs;
  5166. /* readonly */
  5167. int width;
  5168. };
  5169. class IndexBuffer
  5170. {
  5171. // Methods:
  5172. VectorBuffer GetData();
  5173. bool HasSubscribedToEvent(Object, const String&);
  5174. bool HasSubscribedToEvent(const String&);
  5175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5176. bool SetData(VectorBuffer&);
  5177. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5178. void SetSize(uint, bool, bool = false);
  5179. // Properties:
  5180. /* readonly */
  5181. String category;
  5182. /* readonly */
  5183. bool dynamic;
  5184. /* readonly */
  5185. uint indexCount;
  5186. /* readonly */
  5187. uint indexSize;
  5188. /* readonly */
  5189. int refs;
  5190. bool shadowed;
  5191. /* readonly */
  5192. StringHash type;
  5193. /* readonly */
  5194. String typeName;
  5195. /* readonly */
  5196. int weakRefs;
  5197. };
  5198. class Input
  5199. {
  5200. // Methods:
  5201. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5202. int GetKeyFromName(const String&) const;
  5203. int GetKeyFromScancode(int) const;
  5204. String GetKeyName(int) const;
  5205. int GetScancodeFromKey(int) const;
  5206. int GetScancodeFromName(const String&) const;
  5207. String GetScancodeName(int) const;
  5208. bool HasSubscribedToEvent(Object, const String&);
  5209. bool HasSubscribedToEvent(const String&);
  5210. uint LoadGestures(File);
  5211. uint LoadGestures(VectorBuffer&);
  5212. bool RecordGesture();
  5213. void RemoveAllGestures();
  5214. bool RemoveGesture(uint);
  5215. bool RemoveScreenJoystick(int);
  5216. void ResetMouseGrabbed();
  5217. void ResetMouseMode();
  5218. void ResetMouseVisible();
  5219. bool SaveGesture(File, uint);
  5220. bool SaveGesture(VectorBuffer&, uint);
  5221. bool SaveGestures(File);
  5222. bool SaveGestures(VectorBuffer&);
  5223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5224. void SetMouseGrabbed(bool, bool = false);
  5225. void SetMouseMode(MouseMode, bool = false);
  5226. void SetMouseVisible(bool, bool = false);
  5227. // Properties:
  5228. /* readonly */
  5229. String category;
  5230. /* readonly */
  5231. bool focus;
  5232. /* readonly */
  5233. Array<JoystickState> joysticks;
  5234. /* readonly */
  5235. Array<JoystickState> joysticksByIndex;
  5236. /* readonly */
  5237. Array<JoystickState> joysticksByName;
  5238. /* readonly */
  5239. Array<bool> keyDown;
  5240. /* readonly */
  5241. Array<bool> keyPress;
  5242. /* readonly */
  5243. bool minimized;
  5244. /* readonly */
  5245. Array<bool> mouseButtonDown;
  5246. /* readonly */
  5247. Array<bool> mouseButtonPress;
  5248. bool mouseGrabbed;
  5249. /* readonly */
  5250. bool mouseLocked;
  5251. MouseMode mouseMode;
  5252. /* readonly */
  5253. IntVector2 mouseMove;
  5254. /* readonly */
  5255. int mouseMoveWheel;
  5256. /* readonly */
  5257. int mouseMoveX;
  5258. /* readonly */
  5259. int mouseMoveY;
  5260. /* readonly */
  5261. IntVector2 mousePosition;
  5262. bool mouseVisible;
  5263. /* readonly */
  5264. uint numJoysticks;
  5265. /* readonly */
  5266. uint numTouches;
  5267. /* readonly */
  5268. Array<bool> qualifierDown;
  5269. /* readonly */
  5270. Array<bool> qualifierPress;
  5271. /* readonly */
  5272. int qualifiers;
  5273. /* readonly */
  5274. int refs;
  5275. /* readonly */
  5276. Array<bool> scancodeDown;
  5277. /* readonly */
  5278. Array<bool> scancodePress;
  5279. Array<bool> screenJoystickVisible;
  5280. /* readonly */
  5281. bool screenKeyboardSupport;
  5282. bool screenKeyboardVisible;
  5283. bool toggleFullscreen;
  5284. bool touchEmulation;
  5285. /* readonly */
  5286. Array<TouchState> touches;
  5287. /* readonly */
  5288. StringHash type;
  5289. /* readonly */
  5290. String typeName;
  5291. /* readonly */
  5292. int weakRefs;
  5293. };
  5294. class IntRect
  5295. {
  5296. // Methods:
  5297. Intersection IsInside(const IntVector2&) const;
  5298. // Properties:
  5299. int bottom;
  5300. /* readonly */
  5301. Array<int> data;
  5302. /* readonly */
  5303. int height;
  5304. int left;
  5305. int right;
  5306. /* readonly */
  5307. IntVector2 size;
  5308. int top;
  5309. /* readonly */
  5310. int width;
  5311. };
  5312. class IntVector2
  5313. {
  5314. // Methods:
  5315. String ToString() const;
  5316. // Properties:
  5317. /* readonly */
  5318. Array<int> data;
  5319. int x;
  5320. int y;
  5321. };
  5322. class JSONFile
  5323. {
  5324. // Methods:
  5325. bool FromString(const String&);
  5326. JSONValue& GetRoot();
  5327. bool HasSubscribedToEvent(Object, const String&);
  5328. bool HasSubscribedToEvent(const String&);
  5329. bool Load(File);
  5330. bool Load(VectorBuffer&);
  5331. bool Save(File) const;
  5332. bool Save(File, const String&) const;
  5333. bool Save(VectorBuffer&) const;
  5334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5335. // Properties:
  5336. /* readonly */
  5337. String category;
  5338. /* readonly */
  5339. uint memoryUse;
  5340. String name;
  5341. /* readonly */
  5342. int refs;
  5343. /* readonly */
  5344. JSONValue root;
  5345. /* readonly */
  5346. StringHash type;
  5347. /* readonly */
  5348. String typeName;
  5349. /* readonly */
  5350. uint useTimer;
  5351. /* readonly */
  5352. int weakRefs;
  5353. };
  5354. class JSONValue
  5355. {
  5356. // Methods:
  5357. void Clear();
  5358. bool Contains(const String&) const;
  5359. void Erase(const String&);
  5360. void Erase(uint, uint = 1);
  5361. bool GetBool() const;
  5362. double GetDouble() const;
  5363. float GetFloat() const;
  5364. int GetInt() const;
  5365. uint GetUInt() const;
  5366. void Insert(uint, const JSONValue&);
  5367. const JSONValue& Get(const String&) const;
  5368. void Pop();
  5369. void Push(const JSONValue&);
  5370. void Resize(uint);
  5371. void Set(const String&, const JSONValue&);
  5372. const String& GetString() const;
  5373. // Properties:
  5374. /* readonly */
  5375. bool isArray;
  5376. /* readonly */
  5377. bool isBool;
  5378. /* readonly */
  5379. bool isNull;
  5380. /* readonly */
  5381. bool isNumber;
  5382. /* readonly */
  5383. bool isObject;
  5384. /* readonly */
  5385. bool isString;
  5386. /* readonly */
  5387. JSONNumberType numberType;
  5388. /* readonly */
  5389. String numberTypeName;
  5390. /* readonly */
  5391. uint size;
  5392. /* readonly */
  5393. JSONValueType valueType;
  5394. /* readonly */
  5395. String valueTypeName;
  5396. };
  5397. class JoystickState
  5398. {
  5399. // Properties:
  5400. /* readonly */
  5401. Array<float> axisPosition;
  5402. /* readonly */
  5403. Array<bool> buttonDown;
  5404. /* readonly */
  5405. Array<bool> buttonPress;
  5406. /* readonly */
  5407. bool controller;
  5408. /* readonly */
  5409. Array<int> hatPosition;
  5410. int joystickID;
  5411. String name;
  5412. /* readonly */
  5413. uint numAxes;
  5414. /* readonly */
  5415. uint numButtons;
  5416. /* readonly */
  5417. uint numHats;
  5418. };
  5419. class Light
  5420. {
  5421. // Methods:
  5422. void ApplyAttributes();
  5423. void DrawDebugGeometry(DebugRenderer, bool);
  5424. Variant GetAttribute(const String&) const;
  5425. ValueAnimation GetAttributeAnimation(const String&) const;
  5426. float GetAttributeAnimationSpeed(const String&) const;
  5427. float GetAttributeAnimationTime(const String&) const;
  5428. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5429. Variant GetAttributeDefault(const String&) const;
  5430. bool GetInterceptNetworkUpdate(const String&) const;
  5431. bool HasSubscribedToEvent(Object, const String&);
  5432. bool HasSubscribedToEvent(const String&);
  5433. bool IsInView(Camera) const;
  5434. bool Load(File, bool = false);
  5435. bool Load(VectorBuffer&, bool = false);
  5436. bool LoadJSON(const JSONValue&, bool = false);
  5437. bool LoadXML(const XMLElement&, bool = false);
  5438. void MarkNetworkUpdate() const;
  5439. void Remove();
  5440. void RemoveAttributeAnimation(const String&);
  5441. void RemoveInstanceDefault();
  5442. void RemoveObjectAnimation();
  5443. void ResetToDefault();
  5444. bool Save(File) const;
  5445. bool Save(VectorBuffer&) const;
  5446. bool SaveJSON(JSONValue&) const;
  5447. bool SaveXML(XMLElement&) const;
  5448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5449. void SetAnimationTime(float);
  5450. bool SetAttribute(const String&, const Variant&);
  5451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5452. void SetAttributeAnimationSpeed(const String&, float);
  5453. void SetAttributeAnimationTime(const String&, float);
  5454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5455. void SetInterceptNetworkUpdate(const String&, bool);
  5456. // Properties:
  5457. bool animationEnabled;
  5458. float aspectRatio;
  5459. /* readonly */
  5460. Array<Variant> attributeDefaults;
  5461. /* readonly */
  5462. Array<AttributeInfo> attributeInfos;
  5463. Array<Variant> attributes;
  5464. /* readonly */
  5465. BoundingBox boundingBox;
  5466. float brightness;
  5467. bool castShadows;
  5468. /* readonly */
  5469. String category;
  5470. Color color;
  5471. /* readonly */
  5472. Color colorFromTemperature;
  5473. float drawDistance;
  5474. /* readonly */
  5475. Color effectiveColor;
  5476. /* readonly */
  5477. float effectiveSpecularIntensity;
  5478. bool enabled;
  5479. /* readonly */
  5480. bool enabledEffective;
  5481. float fadeDistance;
  5482. float fov;
  5483. /* readonly */
  5484. Frustum frustum;
  5485. /* readonly */
  5486. uint id;
  5487. /* readonly */
  5488. bool inView;
  5489. uint lightMask;
  5490. LightType lightType;
  5491. float lodBias;
  5492. uint maxLights;
  5493. /* readonly */
  5494. bool negative;
  5495. /* readonly */
  5496. Node node;
  5497. /* readonly */
  5498. uint numAttributes;
  5499. /* readonly */
  5500. int numShadowSplits;
  5501. ObjectAnimation objectAnimation;
  5502. bool occludee;
  5503. bool occluder;
  5504. bool perVertex;
  5505. Texture rampTexture;
  5506. float range;
  5507. /* readonly */
  5508. int refs;
  5509. BiasParameters shadowBias;
  5510. CascadeParameters shadowCascade;
  5511. float shadowDistance;
  5512. float shadowFadeDistance;
  5513. FocusParameters shadowFocus;
  5514. float shadowIntensity;
  5515. uint shadowMask;
  5516. float shadowNearFarRatio;
  5517. float shadowResolution;
  5518. Texture shapeTexture;
  5519. float specularIntensity;
  5520. float temperature;
  5521. bool temporary;
  5522. /* readonly */
  5523. StringHash type;
  5524. /* readonly */
  5525. String typeName;
  5526. bool usePhysicalValues;
  5527. uint viewMask;
  5528. /* readonly */
  5529. int weakRefs;
  5530. /* readonly */
  5531. BoundingBox worldBoundingBox;
  5532. uint zoneMask;
  5533. };
  5534. class LineEdit
  5535. {
  5536. // Methods:
  5537. void AddChild(UIElement);
  5538. void AddTag(const String&);
  5539. void AddTags(const String&, int8 = ';');
  5540. void ApplyAttributes();
  5541. void BringToFront();
  5542. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5543. void DisableLayoutUpdate();
  5544. IntVector2 ElementToScreen(const IntVector2&);
  5545. void EnableLayoutUpdate();
  5546. uint FindChild(UIElement) const;
  5547. Variant GetAttribute(const String&) const;
  5548. ValueAnimation GetAttributeAnimation(const String&) const;
  5549. float GetAttributeAnimationSpeed(const String&) const;
  5550. float GetAttributeAnimationTime(const String&) const;
  5551. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5552. Variant GetAttributeDefault(const String&) const;
  5553. UIElement GetChild(const String&, bool = false) const;
  5554. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5555. Array<UIElement> GetChildren(bool = false) const;
  5556. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5557. UIElement GetElementEventSender() const;
  5558. bool GetInterceptNetworkUpdate(const String&) const;
  5559. uint GetNumChildren(bool) const;
  5560. bool HasSubscribedToEvent(Object, const String&);
  5561. bool HasSubscribedToEvent(const String&);
  5562. bool HasTag(const String&) const;
  5563. void InsertChild(uint, UIElement);
  5564. bool IsInside(IntVector2, bool);
  5565. bool IsInsideCombined(IntVector2, bool);
  5566. bool Load(File, bool = false);
  5567. bool Load(VectorBuffer&, bool = false);
  5568. bool LoadChildXML(XMLFile, XMLFile = null);
  5569. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5570. bool LoadJSON(const JSONValue&, bool = false);
  5571. bool LoadXML(File);
  5572. bool LoadXML(VectorBuffer&);
  5573. bool LoadXML(XMLFile, XMLFile);
  5574. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5575. bool LoadXML(const XMLElement&, bool = false);
  5576. void MarkNetworkUpdate() const;
  5577. void Remove();
  5578. void RemoveAllChildren();
  5579. void RemoveAllTags();
  5580. void RemoveAttributeAnimation(const String&);
  5581. void RemoveChild(UIElement, uint = 0);
  5582. void RemoveChild(uint);
  5583. void RemoveInstanceDefault();
  5584. void RemoveObjectAnimation();
  5585. bool RemoveTag(const String&);
  5586. void ResetDeepEnabled();
  5587. void ResetToDefault();
  5588. bool Save(File) const;
  5589. bool Save(VectorBuffer&) const;
  5590. bool SaveJSON(JSONValue&) const;
  5591. bool SaveXML(File, const String& = "\t");
  5592. bool SaveXML(VectorBuffer&, const String& = "\t");
  5593. bool SaveXML(XMLElement&) const;
  5594. IntVector2 ScreenToElement(const IntVector2&);
  5595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5596. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5597. void SetAnimationTime(float);
  5598. bool SetAttribute(const String&, const Variant&);
  5599. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5600. void SetAttributeAnimationSpeed(const String&, float);
  5601. void SetAttributeAnimationTime(const String&, float);
  5602. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5603. void SetDeepEnabled(bool);
  5604. void SetEnabledRecursive(bool);
  5605. void SetFixedHeight(int);
  5606. void SetFixedSize(int, int);
  5607. void SetFixedWidth(int);
  5608. void SetFullImageRect();
  5609. void SetHoverOffset(int, int);
  5610. void SetInterceptNetworkUpdate(const String&, bool);
  5611. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5612. void SetMaxSize(int, int);
  5613. void SetMinSize(int, int);
  5614. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5615. void SetPosition(int, int);
  5616. void SetSize(int, int);
  5617. bool SetStyle(const String&, XMLFile = null);
  5618. bool SetStyle(const XMLElement&);
  5619. bool SetStyleAuto(XMLFile = null);
  5620. void UpdateLayout();
  5621. const Variant& GetVar(const StringHash&);
  5622. // Properties:
  5623. bool animationEnabled;
  5624. /* readonly */
  5625. Array<Variant> attributeDefaults;
  5626. /* readonly */
  5627. Array<AttributeInfo> attributeInfos;
  5628. Array<Variant> attributes;
  5629. BlendMode blendMode;
  5630. IntRect border;
  5631. bool bringToBack;
  5632. bool bringToFront;
  5633. /* readonly */
  5634. String category;
  5635. /* readonly */
  5636. IntVector2 childOffset;
  5637. /* readonly */
  5638. Array<UIElement> children;
  5639. IntRect clipBorder;
  5640. bool clipChildren;
  5641. /* writeonly */
  5642. Color color;
  5643. /* readonly */
  5644. bool colorGradient;
  5645. Array<Color> colors;
  5646. /* readonly */
  5647. IntRect combinedScreenRect;
  5648. /* readonly */
  5649. BorderImage cursor;
  5650. float cursorBlinkRate;
  5651. bool cursorMovable;
  5652. uint cursorPosition;
  5653. XMLFile defaultStyle;
  5654. /* readonly */
  5655. float derivedOpacity;
  5656. /* readonly */
  5657. uint dragButtonCombo;
  5658. /* readonly */
  5659. int dragButtonCount;
  5660. uint dragDropMode;
  5661. uint echoCharacter;
  5662. bool editable;
  5663. bool elementEventSender;
  5664. bool enabled;
  5665. /* readonly */
  5666. bool enabledSelf;
  5667. /* readonly */
  5668. bool fixedHeight;
  5669. /* readonly */
  5670. bool fixedSize;
  5671. /* readonly */
  5672. bool fixedWidth;
  5673. bool focus;
  5674. FocusMode focusMode;
  5675. int height;
  5676. HorizontalAlignment horizontalAlignment;
  5677. IntVector2 hoverOffset;
  5678. /* readonly */
  5679. bool hovering;
  5680. IntRect imageBorder;
  5681. IntRect imageRect;
  5682. int indent;
  5683. int indentSpacing;
  5684. /* readonly */
  5685. int indentWidth;
  5686. bool internal;
  5687. IntRect layoutBorder;
  5688. Vector2 layoutFlexScale;
  5689. LayoutMode layoutMode;
  5690. int layoutSpacing;
  5691. int maxHeight;
  5692. uint maxLength;
  5693. IntVector2 maxSize;
  5694. int maxWidth;
  5695. int minHeight;
  5696. IntVector2 minSize;
  5697. int minWidth;
  5698. String name;
  5699. /* readonly */
  5700. uint numAllChildren;
  5701. /* readonly */
  5702. uint numAttributes;
  5703. /* readonly */
  5704. uint numChildren;
  5705. ObjectAnimation objectAnimation;
  5706. float opacity;
  5707. UIElement parent;
  5708. IntVector2 position;
  5709. int priority;
  5710. /* readonly */
  5711. int refs;
  5712. /* readonly */
  5713. UIElement root;
  5714. /* readonly */
  5715. IntVector2 screenPosition;
  5716. bool selected;
  5717. IntVector2 size;
  5718. bool sortChildren;
  5719. String style;
  5720. /* readonly */
  5721. Array<String> tags;
  5722. bool temporary;
  5723. String text;
  5724. bool textCopyable;
  5725. /* readonly */
  5726. Text textElement;
  5727. bool textSelectable;
  5728. Texture texture;
  5729. bool tiled;
  5730. TraversalMode traversalMode;
  5731. /* readonly */
  5732. StringHash type;
  5733. /* readonly */
  5734. String typeName;
  5735. bool useDerivedOpacity;
  5736. /* readonly */
  5737. VariantMap vars;
  5738. VerticalAlignment verticalAlignment;
  5739. bool visible;
  5740. /* readonly */
  5741. bool visibleEffective;
  5742. /* readonly */
  5743. int weakRefs;
  5744. int width;
  5745. };
  5746. class ListView
  5747. {
  5748. // Methods:
  5749. void AddChild(UIElement);
  5750. void AddItem(UIElement);
  5751. void AddSelection(uint);
  5752. void AddTag(const String&);
  5753. void AddTags(const String&, int8 = ';');
  5754. void ApplyAttributes();
  5755. void BringToFront();
  5756. void ChangeSelection(int, bool);
  5757. void ClearSelection();
  5758. void CopySelectedItemsToClipboard();
  5759. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5760. void DisableLayoutUpdate();
  5761. IntVector2 ElementToScreen(const IntVector2&);
  5762. void EnableLayoutUpdate();
  5763. void Expand(uint, bool, bool = false);
  5764. uint FindChild(UIElement) const;
  5765. uint FindItem(UIElement);
  5766. Variant GetAttribute(const String&) const;
  5767. ValueAnimation GetAttributeAnimation(const String&) const;
  5768. float GetAttributeAnimationSpeed(const String&) const;
  5769. float GetAttributeAnimationTime(const String&) const;
  5770. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5771. Variant GetAttributeDefault(const String&) const;
  5772. UIElement GetChild(const String&, bool = false) const;
  5773. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5774. Array<UIElement> GetChildren(bool = false) const;
  5775. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5776. UIElement GetElementEventSender() const;
  5777. bool GetInterceptNetworkUpdate(const String&) const;
  5778. Array<UIElement> GetItems() const;
  5779. uint GetNumChildren(bool) const;
  5780. bool HasSubscribedToEvent(Object, const String&);
  5781. bool HasSubscribedToEvent(const String&);
  5782. bool HasTag(const String&) const;
  5783. void InsertChild(uint, UIElement);
  5784. void InsertItem(uint, UIElement, UIElement = null);
  5785. bool IsExpanded(uint) const;
  5786. bool IsInside(IntVector2, bool);
  5787. bool IsInsideCombined(IntVector2, bool);
  5788. bool IsSelected(uint) const;
  5789. bool Load(File, bool = false);
  5790. bool Load(VectorBuffer&, bool = false);
  5791. bool LoadChildXML(XMLFile, XMLFile = null);
  5792. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5793. bool LoadJSON(const JSONValue&, bool = false);
  5794. bool LoadXML(File);
  5795. bool LoadXML(VectorBuffer&);
  5796. bool LoadXML(XMLFile, XMLFile);
  5797. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5798. bool LoadXML(const XMLElement&, bool = false);
  5799. void MarkNetworkUpdate() const;
  5800. void Remove();
  5801. void RemoveAllChildren();
  5802. void RemoveAllItems();
  5803. void RemoveAllTags();
  5804. void RemoveAttributeAnimation(const String&);
  5805. void RemoveChild(UIElement, uint = 0);
  5806. void RemoveChild(uint);
  5807. void RemoveInstanceDefault();
  5808. void RemoveItem(UIElement, uint = 0);
  5809. void RemoveItem(uint);
  5810. void RemoveObjectAnimation();
  5811. void RemoveSelection(uint);
  5812. bool RemoveTag(const String&);
  5813. void ResetDeepEnabled();
  5814. void ResetToDefault();
  5815. bool Save(File) const;
  5816. bool Save(VectorBuffer&) const;
  5817. bool SaveJSON(JSONValue&) const;
  5818. bool SaveXML(File, const String& = "\t");
  5819. bool SaveXML(VectorBuffer&, const String& = "\t");
  5820. bool SaveXML(XMLElement&) const;
  5821. IntVector2 ScreenToElement(const IntVector2&);
  5822. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5823. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5824. void SetAnimationTime(float);
  5825. bool SetAttribute(const String&, const Variant&);
  5826. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5827. void SetAttributeAnimationSpeed(const String&, float);
  5828. void SetAttributeAnimationTime(const String&, float);
  5829. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5830. void SetDeepEnabled(bool);
  5831. void SetEnabledRecursive(bool);
  5832. void SetFixedHeight(int);
  5833. void SetFixedSize(int, int);
  5834. void SetFixedWidth(int);
  5835. void SetInterceptNetworkUpdate(const String&, bool);
  5836. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5837. void SetMaxSize(int, int);
  5838. void SetMinSize(int, int);
  5839. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5840. void SetPosition(int, int);
  5841. void SetScrollBarsVisible(bool, bool);
  5842. void SetSelections(Array<uint>);
  5843. void SetSize(int, int);
  5844. bool SetStyle(const String&, XMLFile = null);
  5845. bool SetStyle(const XMLElement&);
  5846. bool SetStyleAuto(XMLFile = null);
  5847. void SetViewPosition(int, int);
  5848. void ToggleExpand(uint, bool = false);
  5849. void ToggleSelection(uint);
  5850. void UpdateLayout();
  5851. const Variant& GetVar(const StringHash&);
  5852. // Properties:
  5853. bool animationEnabled;
  5854. /* readonly */
  5855. Array<Variant> attributeDefaults;
  5856. /* readonly */
  5857. Array<AttributeInfo> attributeInfos;
  5858. Array<Variant> attributes;
  5859. bool autoDisableChildren;
  5860. float autoDisableThreshold;
  5861. int baseIndent;
  5862. bool bringToBack;
  5863. bool bringToFront;
  5864. /* readonly */
  5865. String category;
  5866. /* readonly */
  5867. IntVector2 childOffset;
  5868. /* readonly */
  5869. Array<UIElement> children;
  5870. bool clearSelectionOnDefocus;
  5871. IntRect clipBorder;
  5872. bool clipChildren;
  5873. /* writeonly */
  5874. Color color;
  5875. /* readonly */
  5876. bool colorGradient;
  5877. Array<Color> colors;
  5878. /* readonly */
  5879. IntRect combinedScreenRect;
  5880. /* readonly */
  5881. UIElement contentElement;
  5882. XMLFile defaultStyle;
  5883. /* readonly */
  5884. float derivedOpacity;
  5885. /* readonly */
  5886. uint dragButtonCombo;
  5887. /* readonly */
  5888. int dragButtonCount;
  5889. uint dragDropMode;
  5890. bool editable;
  5891. bool elementEventSender;
  5892. bool enabled;
  5893. /* readonly */
  5894. bool enabledSelf;
  5895. /* readonly */
  5896. bool fixedHeight;
  5897. /* readonly */
  5898. bool fixedSize;
  5899. /* readonly */
  5900. bool fixedWidth;
  5901. bool focus;
  5902. FocusMode focusMode;
  5903. int height;
  5904. bool hierarchyMode;
  5905. HighlightMode highlightMode;
  5906. HorizontalAlignment horizontalAlignment;
  5907. /* readonly */
  5908. ScrollBar horizontalScrollBar;
  5909. /* readonly */
  5910. bool hovering;
  5911. int indent;
  5912. int indentSpacing;
  5913. /* readonly */
  5914. int indentWidth;
  5915. bool internal;
  5916. /* readonly */
  5917. Array<UIElement> items;
  5918. IntRect layoutBorder;
  5919. Vector2 layoutFlexScale;
  5920. LayoutMode layoutMode;
  5921. int layoutSpacing;
  5922. int maxHeight;
  5923. IntVector2 maxSize;
  5924. int maxWidth;
  5925. int minHeight;
  5926. IntVector2 minSize;
  5927. int minWidth;
  5928. bool multiselect;
  5929. String name;
  5930. /* readonly */
  5931. uint numAllChildren;
  5932. /* readonly */
  5933. uint numAttributes;
  5934. /* readonly */
  5935. uint numChildren;
  5936. /* readonly */
  5937. uint numItems;
  5938. ObjectAnimation objectAnimation;
  5939. float opacity;
  5940. float pageStep;
  5941. UIElement parent;
  5942. IntVector2 position;
  5943. int priority;
  5944. /* readonly */
  5945. int refs;
  5946. /* readonly */
  5947. UIElement root;
  5948. /* readonly */
  5949. IntVector2 screenPosition;
  5950. bool scrollBarsAutoVisible;
  5951. float scrollDeceleration;
  5952. /* readonly */
  5953. BorderImage scrollPanel;
  5954. float scrollSnapEpsilon;
  5955. float scrollStep;
  5956. bool selectOnClickEnd;
  5957. bool selected;
  5958. /* readonly */
  5959. UIElement selectedItem;
  5960. /* readonly */
  5961. Array<UIElement> selectedItems;
  5962. uint selection;
  5963. /* readonly */
  5964. Array<uint> selections;
  5965. IntVector2 size;
  5966. bool sortChildren;
  5967. String style;
  5968. /* readonly */
  5969. Array<String> tags;
  5970. bool temporary;
  5971. TraversalMode traversalMode;
  5972. /* readonly */
  5973. StringHash type;
  5974. /* readonly */
  5975. String typeName;
  5976. bool useDerivedOpacity;
  5977. /* readonly */
  5978. VariantMap vars;
  5979. VerticalAlignment verticalAlignment;
  5980. /* readonly */
  5981. ScrollBar verticalScrollBar;
  5982. IntVector2 viewPosition;
  5983. bool visible;
  5984. /* readonly */
  5985. bool visibleEffective;
  5986. /* readonly */
  5987. int weakRefs;
  5988. int width;
  5989. };
  5990. class Localization
  5991. {
  5992. // Methods:
  5993. String Get(const String&);
  5994. String GetLanguage(int);
  5995. int GetLanguageIndex(const String&);
  5996. bool HasSubscribedToEvent(Object, const String&);
  5997. bool HasSubscribedToEvent(const String&);
  5998. void LoadJSON(const JSONValue&);
  5999. void LoadJSONFile(const String&);
  6000. void Reset();
  6001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6002. void SetLanguage(const String&);
  6003. void SetLanguage(int);
  6004. // Properties:
  6005. /* readonly */
  6006. String category;
  6007. /* readonly */
  6008. String language;
  6009. /* readonly */
  6010. int languageIndex;
  6011. /* readonly */
  6012. int numLanguages;
  6013. /* readonly */
  6014. int refs;
  6015. /* readonly */
  6016. StringHash type;
  6017. /* readonly */
  6018. String typeName;
  6019. /* readonly */
  6020. int weakRefs;
  6021. };
  6022. class Log
  6023. {
  6024. // Methods:
  6025. void Close();
  6026. void Debug(const String&);
  6027. void Error(const String&);
  6028. bool HasSubscribedToEvent(Object, const String&);
  6029. bool HasSubscribedToEvent(const String&);
  6030. void Info(const String&);
  6031. void Open(const String&);
  6032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6033. void Warning(const String&);
  6034. void Write(const String&, bool = false);
  6035. // Properties:
  6036. /* readonly */
  6037. String category;
  6038. /* readonly */
  6039. String lastMessage;
  6040. int level;
  6041. bool quiet;
  6042. /* readonly */
  6043. int refs;
  6044. bool timeStamp;
  6045. /* readonly */
  6046. StringHash type;
  6047. /* readonly */
  6048. String typeName;
  6049. /* readonly */
  6050. int weakRefs;
  6051. };
  6052. class Material
  6053. {
  6054. // Methods:
  6055. Material Clone(const String& = String ( )) const;
  6056. Pass GetPass(uint, const String&);
  6057. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6058. float GetShaderParameterAnimationSpeed(const String&) const;
  6059. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6060. bool HasSubscribedToEvent(Object, const String&);
  6061. bool HasSubscribedToEvent(const String&);
  6062. bool Load(File);
  6063. bool Load(VectorBuffer&);
  6064. bool Load(const JSONValue&);
  6065. bool Load(const XMLElement&);
  6066. void RemoveShaderParameter(const String&);
  6067. bool Save(File) const;
  6068. bool Save(JSONValue&) const;
  6069. bool Save(VectorBuffer&) const;
  6070. bool Save(XMLElement&) const;
  6071. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6072. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6073. void SetShaderParameterAnimationSpeed(const String&, float);
  6074. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6075. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6076. void SetUVTransform(const Vector2&, float, const Vector2&);
  6077. void SetUVTransform(const Vector2&, float, float);
  6078. void SortTechniques();
  6079. // Properties:
  6080. /* readonly */
  6081. String category;
  6082. CullMode cullMode;
  6083. BiasParameters depthBias;
  6084. FillMode fillMode;
  6085. /* readonly */
  6086. uint memoryUse;
  6087. String name;
  6088. uint numTechniques;
  6089. /* readonly */
  6090. bool occlusion;
  6091. /* readonly */
  6092. int refs;
  6093. uint8 renderOrder;
  6094. Scene scene;
  6095. /* readonly */
  6096. Array<String> shaderParameterNames;
  6097. Array<Variant> shaderParameters;
  6098. CullMode shadowCullMode;
  6099. /* readonly */
  6100. Array<TechniqueEntry> techniqueEntries;
  6101. /* readonly */
  6102. Array<Technique> techniques;
  6103. Array<Texture> textures;
  6104. /* readonly */
  6105. StringHash type;
  6106. /* readonly */
  6107. String typeName;
  6108. /* readonly */
  6109. uint useTimer;
  6110. /* readonly */
  6111. int weakRefs;
  6112. };
  6113. class Matrix2
  6114. {
  6115. // Methods:
  6116. bool Equals(const Matrix2&) const;
  6117. Matrix2 Inverse() const;
  6118. Vector2 Scale() const;
  6119. Matrix2 Scaled(const Vector2&) const;
  6120. void SetScale(const Vector2&);
  6121. void SetScale(float);
  6122. String ToString() const;
  6123. Matrix2 Transpose() const;
  6124. // Properties:
  6125. float m00;
  6126. float m01;
  6127. float m10;
  6128. float m11;
  6129. };
  6130. class Matrix3
  6131. {
  6132. // Methods:
  6133. bool Equals(const Matrix3&) const;
  6134. Matrix3 Inverse() const;
  6135. Vector3 Scale() const;
  6136. Matrix3 Scaled(const Vector3&) const;
  6137. void SetScale(const Vector3&);
  6138. void SetScale(float);
  6139. String ToString() const;
  6140. Matrix3 Transpose() const;
  6141. // Properties:
  6142. float m00;
  6143. float m01;
  6144. float m02;
  6145. float m10;
  6146. float m11;
  6147. float m12;
  6148. float m20;
  6149. float m21;
  6150. float m22;
  6151. };
  6152. class Matrix3x4
  6153. {
  6154. // Methods:
  6155. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6156. bool Equals(const Matrix3x4&) const;
  6157. Matrix3x4 Inverse() const;
  6158. Quaternion Rotation() const;
  6159. Matrix3 RotationMatrix() const;
  6160. Vector3 Scale() const;
  6161. void SetRotation(const Matrix3&);
  6162. void SetScale(const Vector3&);
  6163. void SetScale(float);
  6164. void SetTranslation(const Vector3&);
  6165. Matrix3 ToMatrix3() const;
  6166. Matrix4 ToMatrix4() const;
  6167. String ToString() const;
  6168. Vector3 Translation() const;
  6169. // Properties:
  6170. float m00;
  6171. float m01;
  6172. float m02;
  6173. float m03;
  6174. float m10;
  6175. float m11;
  6176. float m12;
  6177. float m13;
  6178. float m20;
  6179. float m21;
  6180. float m22;
  6181. float m23;
  6182. };
  6183. class Matrix4
  6184. {
  6185. // Methods:
  6186. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6187. bool Equals(const Matrix4&) const;
  6188. Matrix4 Inverse() const;
  6189. Quaternion Rotation() const;
  6190. Matrix3 RotationMatrix() const;
  6191. Vector3 Scale() const;
  6192. void SetRotation(const Matrix3&);
  6193. void SetScale(const Vector3&);
  6194. void SetScale(float);
  6195. void SetTranslation(const Vector3&);
  6196. Matrix3 ToMatrix3() const;
  6197. String ToString() const;
  6198. Vector3 Translation() const;
  6199. Matrix4 Transpose() const;
  6200. // Properties:
  6201. float m00;
  6202. float m01;
  6203. float m02;
  6204. float m03;
  6205. float m10;
  6206. float m11;
  6207. float m12;
  6208. float m13;
  6209. float m20;
  6210. float m21;
  6211. float m22;
  6212. float m23;
  6213. float m30;
  6214. float m31;
  6215. float m32;
  6216. float m33;
  6217. };
  6218. class Menu
  6219. {
  6220. // Methods:
  6221. void AddChild(UIElement);
  6222. void AddTag(const String&);
  6223. void AddTags(const String&, int8 = ';');
  6224. void ApplyAttributes();
  6225. void BringToFront();
  6226. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6227. void DisableLayoutUpdate();
  6228. IntVector2 ElementToScreen(const IntVector2&);
  6229. void EnableLayoutUpdate();
  6230. uint FindChild(UIElement) const;
  6231. Variant GetAttribute(const String&) const;
  6232. ValueAnimation GetAttributeAnimation(const String&) const;
  6233. float GetAttributeAnimationSpeed(const String&) const;
  6234. float GetAttributeAnimationTime(const String&) const;
  6235. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6236. Variant GetAttributeDefault(const String&) const;
  6237. UIElement GetChild(const String&, bool = false) const;
  6238. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6239. Array<UIElement> GetChildren(bool = false) const;
  6240. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6241. UIElement GetElementEventSender() const;
  6242. bool GetInterceptNetworkUpdate(const String&) const;
  6243. uint GetNumChildren(bool) const;
  6244. bool HasSubscribedToEvent(Object, const String&);
  6245. bool HasSubscribedToEvent(const String&);
  6246. bool HasTag(const String&) const;
  6247. void InsertChild(uint, UIElement);
  6248. bool IsInside(IntVector2, bool);
  6249. bool IsInsideCombined(IntVector2, bool);
  6250. bool Load(File, bool = false);
  6251. bool Load(VectorBuffer&, bool = false);
  6252. bool LoadChildXML(XMLFile, XMLFile = null);
  6253. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6254. bool LoadJSON(const JSONValue&, bool = false);
  6255. bool LoadXML(File);
  6256. bool LoadXML(VectorBuffer&);
  6257. bool LoadXML(XMLFile, XMLFile);
  6258. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6259. bool LoadXML(const XMLElement&, bool = false);
  6260. void MarkNetworkUpdate() const;
  6261. void Remove();
  6262. void RemoveAllChildren();
  6263. void RemoveAllTags();
  6264. void RemoveAttributeAnimation(const String&);
  6265. void RemoveChild(UIElement, uint = 0);
  6266. void RemoveChild(uint);
  6267. void RemoveInstanceDefault();
  6268. void RemoveObjectAnimation();
  6269. bool RemoveTag(const String&);
  6270. void ResetDeepEnabled();
  6271. void ResetToDefault();
  6272. bool Save(File) const;
  6273. bool Save(VectorBuffer&) const;
  6274. bool SaveJSON(JSONValue&) const;
  6275. bool SaveXML(File, const String& = "\t");
  6276. bool SaveXML(VectorBuffer&, const String& = "\t");
  6277. bool SaveXML(XMLElement&) const;
  6278. IntVector2 ScreenToElement(const IntVector2&);
  6279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6280. void SetAccelerator(int, int);
  6281. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6282. void SetAnimationTime(float);
  6283. bool SetAttribute(const String&, const Variant&);
  6284. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6285. void SetAttributeAnimationSpeed(const String&, float);
  6286. void SetAttributeAnimationTime(const String&, float);
  6287. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6288. void SetDeepEnabled(bool);
  6289. void SetEnabledRecursive(bool);
  6290. void SetFixedHeight(int);
  6291. void SetFixedSize(int, int);
  6292. void SetFixedWidth(int);
  6293. void SetFullImageRect();
  6294. void SetHoverOffset(int, int);
  6295. void SetInterceptNetworkUpdate(const String&, bool);
  6296. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6297. void SetMaxSize(int, int);
  6298. void SetMinSize(int, int);
  6299. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6300. void SetPopupOffset(int, int);
  6301. void SetPosition(int, int);
  6302. void SetPressedChildOffset(int, int);
  6303. void SetPressedOffset(int, int);
  6304. void SetRepeat(float, float);
  6305. void SetSize(int, int);
  6306. bool SetStyle(const String&, XMLFile = null);
  6307. bool SetStyle(const XMLElement&);
  6308. bool SetStyleAuto(XMLFile = null);
  6309. void UpdateLayout();
  6310. const Variant& GetVar(const StringHash&);
  6311. // Properties:
  6312. /* readonly */
  6313. int acceleratorKey;
  6314. /* readonly */
  6315. int acceleratorQualifiers;
  6316. bool animationEnabled;
  6317. /* readonly */
  6318. Array<Variant> attributeDefaults;
  6319. /* readonly */
  6320. Array<AttributeInfo> attributeInfos;
  6321. Array<Variant> attributes;
  6322. BlendMode blendMode;
  6323. IntRect border;
  6324. bool bringToBack;
  6325. bool bringToFront;
  6326. /* readonly */
  6327. String category;
  6328. /* readonly */
  6329. IntVector2 childOffset;
  6330. /* readonly */
  6331. Array<UIElement> children;
  6332. IntRect clipBorder;
  6333. bool clipChildren;
  6334. /* writeonly */
  6335. Color color;
  6336. /* readonly */
  6337. bool colorGradient;
  6338. Array<Color> colors;
  6339. /* readonly */
  6340. IntRect combinedScreenRect;
  6341. XMLFile defaultStyle;
  6342. /* readonly */
  6343. float derivedOpacity;
  6344. /* readonly */
  6345. uint dragButtonCombo;
  6346. /* readonly */
  6347. int dragButtonCount;
  6348. uint dragDropMode;
  6349. bool editable;
  6350. bool elementEventSender;
  6351. bool enabled;
  6352. /* readonly */
  6353. bool enabledSelf;
  6354. /* readonly */
  6355. bool fixedHeight;
  6356. /* readonly */
  6357. bool fixedSize;
  6358. /* readonly */
  6359. bool fixedWidth;
  6360. bool focus;
  6361. FocusMode focusMode;
  6362. int height;
  6363. HorizontalAlignment horizontalAlignment;
  6364. IntVector2 hoverOffset;
  6365. /* readonly */
  6366. bool hovering;
  6367. IntRect imageBorder;
  6368. IntRect imageRect;
  6369. int indent;
  6370. int indentSpacing;
  6371. /* readonly */
  6372. int indentWidth;
  6373. bool internal;
  6374. IntRect layoutBorder;
  6375. Vector2 layoutFlexScale;
  6376. LayoutMode layoutMode;
  6377. int layoutSpacing;
  6378. int maxHeight;
  6379. IntVector2 maxSize;
  6380. int maxWidth;
  6381. int minHeight;
  6382. IntVector2 minSize;
  6383. int minWidth;
  6384. String name;
  6385. /* readonly */
  6386. uint numAllChildren;
  6387. /* readonly */
  6388. uint numAttributes;
  6389. /* readonly */
  6390. uint numChildren;
  6391. ObjectAnimation objectAnimation;
  6392. float opacity;
  6393. UIElement parent;
  6394. UIElement popup;
  6395. IntVector2 popupOffset;
  6396. IntVector2 position;
  6397. /* readonly */
  6398. bool pressed;
  6399. IntVector2 pressedChildOffset;
  6400. IntVector2 pressedOffset;
  6401. int priority;
  6402. /* readonly */
  6403. int refs;
  6404. float repeatDelay;
  6405. float repeatRate;
  6406. /* readonly */
  6407. UIElement root;
  6408. /* readonly */
  6409. IntVector2 screenPosition;
  6410. bool selected;
  6411. bool showPopup;
  6412. IntVector2 size;
  6413. bool sortChildren;
  6414. String style;
  6415. /* readonly */
  6416. Array<String> tags;
  6417. bool temporary;
  6418. Texture texture;
  6419. bool tiled;
  6420. TraversalMode traversalMode;
  6421. /* readonly */
  6422. StringHash type;
  6423. /* readonly */
  6424. String typeName;
  6425. bool useDerivedOpacity;
  6426. /* readonly */
  6427. VariantMap vars;
  6428. VerticalAlignment verticalAlignment;
  6429. bool visible;
  6430. /* readonly */
  6431. bool visibleEffective;
  6432. /* readonly */
  6433. int weakRefs;
  6434. int width;
  6435. };
  6436. class MessageBox
  6437. {
  6438. // Methods:
  6439. bool HasSubscribedToEvent(Object, const String&);
  6440. bool HasSubscribedToEvent(const String&);
  6441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6442. // Properties:
  6443. /* readonly */
  6444. String category;
  6445. String message;
  6446. /* readonly */
  6447. int refs;
  6448. String title;
  6449. /* readonly */
  6450. StringHash type;
  6451. /* readonly */
  6452. String typeName;
  6453. /* readonly */
  6454. int weakRefs;
  6455. /* readonly */
  6456. UIElement window;
  6457. };
  6458. class Model
  6459. {
  6460. // Methods:
  6461. Model Clone(const String& = String ( )) const;
  6462. Geometry GetGeometry(uint, uint) const;
  6463. bool HasSubscribedToEvent(Object, const String&);
  6464. bool HasSubscribedToEvent(const String&);
  6465. bool Load(File);
  6466. bool Load(VectorBuffer&);
  6467. bool Save(File) const;
  6468. bool Save(VectorBuffer&) const;
  6469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6470. bool SetGeometry(uint, uint, Geometry);
  6471. // Properties:
  6472. BoundingBox boundingBox;
  6473. /* readonly */
  6474. String category;
  6475. Array<Vector3> geometryCenters;
  6476. /* readonly */
  6477. uint memoryUse;
  6478. String name;
  6479. uint numGeometries;
  6480. Array<uint> numGeometryLodLevels;
  6481. /* readonly */
  6482. uint numMorphs;
  6483. /* readonly */
  6484. int refs;
  6485. /* readonly */
  6486. Skeleton skeleton;
  6487. /* readonly */
  6488. StringHash type;
  6489. /* readonly */
  6490. String typeName;
  6491. /* readonly */
  6492. uint useTimer;
  6493. /* readonly */
  6494. int weakRefs;
  6495. };
  6496. class NamedPipe
  6497. {
  6498. // Methods:
  6499. void Close();
  6500. bool HasSubscribedToEvent(Object, const String&);
  6501. bool HasSubscribedToEvent(const String&);
  6502. bool Open(const String&, bool);
  6503. Array<uint8> Read(uint);
  6504. bool ReadBool();
  6505. BoundingBox ReadBoundingBox();
  6506. int8 ReadByte();
  6507. Color ReadColor();
  6508. double ReadDouble();
  6509. String ReadFileID();
  6510. float ReadFloat();
  6511. int ReadInt();
  6512. int64 ReadInt64();
  6513. IntRect ReadIntRect();
  6514. IntVector2 ReadIntVector2();
  6515. String ReadLine();
  6516. Matrix3 ReadMatrix3();
  6517. Matrix3x4 ReadMatrix3x4();
  6518. Matrix4 ReadMatrix4();
  6519. uint ReadNetID();
  6520. Quaternion ReadPackedQuaternion();
  6521. Vector3 ReadPackedVector3(float);
  6522. Quaternion ReadQuaternion();
  6523. int16 ReadShort();
  6524. String ReadString();
  6525. StringHash ReadStringHash();
  6526. uint8 ReadUByte();
  6527. uint ReadUInt();
  6528. uint64 ReadUInt64();
  6529. uint16 ReadUShort();
  6530. uint ReadVLE();
  6531. Variant ReadVariant();
  6532. VariantMap ReadVariantMap();
  6533. Vector2 ReadVector2();
  6534. Vector3 ReadVector3();
  6535. Vector4 ReadVector4();
  6536. VectorBuffer ReadVectorBuffer(uint);
  6537. uint Seek(uint);
  6538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6539. uint Write(Array<uint8>);
  6540. bool WriteBool(bool);
  6541. bool WriteBoundingBox(const BoundingBox&);
  6542. bool WriteByte(int8);
  6543. bool WriteColor(const Color&);
  6544. bool WriteDouble(double);
  6545. bool WriteFileID(const String&);
  6546. bool WriteFloat(float);
  6547. bool WriteInt(int);
  6548. bool WriteInt64(int64);
  6549. bool WriteIntRect(const IntRect&);
  6550. bool WriteIntVector2(const IntVector2&);
  6551. bool WriteLine(const String&);
  6552. bool WriteMatrix3(const Matrix3&);
  6553. bool WriteMatrix3x4(const Matrix3x4&);
  6554. bool WriteMatrix4(const Matrix4&);
  6555. bool WriteNetID(uint);
  6556. bool WritePackedQuaternion(const Quaternion&);
  6557. bool WritePackedVector3(const Vector3&, float);
  6558. bool WriteQuaternion(const Quaternion&);
  6559. bool WriteShort(int16);
  6560. bool WriteString(const String&);
  6561. bool WriteStringHash(const StringHash&);
  6562. bool WriteUByte(uint8);
  6563. bool WriteUInt(uint);
  6564. bool WriteUInt64(uint64);
  6565. bool WriteUShort(uint16);
  6566. bool WriteVLE(uint);
  6567. bool WriteVariant(const Variant&);
  6568. bool WriteVariantMap(const VariantMap&);
  6569. bool WriteVector2(const Vector2&);
  6570. bool WriteVector3(const Vector3&);
  6571. bool WriteVector4(const Vector4&);
  6572. bool WriteVectorBuffer(const VectorBuffer&);
  6573. // Properties:
  6574. /* readonly */
  6575. String category;
  6576. /* readonly */
  6577. uint checksum;
  6578. /* readonly */
  6579. bool eof;
  6580. /* readonly */
  6581. String name;
  6582. /* readonly */
  6583. bool open;
  6584. /* readonly */
  6585. uint position;
  6586. /* readonly */
  6587. int refs;
  6588. /* readonly */
  6589. bool server;
  6590. /* readonly */
  6591. uint size;
  6592. /* readonly */
  6593. StringHash type;
  6594. /* readonly */
  6595. String typeName;
  6596. /* readonly */
  6597. int weakRefs;
  6598. };
  6599. class NavArea
  6600. {
  6601. // Methods:
  6602. void ApplyAttributes();
  6603. void DrawDebugGeometry(DebugRenderer, bool);
  6604. Variant GetAttribute(const String&) const;
  6605. ValueAnimation GetAttributeAnimation(const String&) const;
  6606. float GetAttributeAnimationSpeed(const String&) const;
  6607. float GetAttributeAnimationTime(const String&) const;
  6608. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6609. Variant GetAttributeDefault(const String&) const;
  6610. bool GetInterceptNetworkUpdate(const String&) const;
  6611. bool HasSubscribedToEvent(Object, const String&);
  6612. bool HasSubscribedToEvent(const String&);
  6613. bool Load(File, bool = false);
  6614. bool Load(VectorBuffer&, bool = false);
  6615. bool LoadJSON(const JSONValue&, bool = false);
  6616. bool LoadXML(const XMLElement&, bool = false);
  6617. void MarkNetworkUpdate() const;
  6618. void Remove();
  6619. void RemoveAttributeAnimation(const String&);
  6620. void RemoveInstanceDefault();
  6621. void RemoveObjectAnimation();
  6622. void ResetToDefault();
  6623. bool Save(File) const;
  6624. bool Save(VectorBuffer&) const;
  6625. bool SaveJSON(JSONValue&) const;
  6626. bool SaveXML(XMLElement&) const;
  6627. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6628. void SetAnimationTime(float);
  6629. bool SetAttribute(const String&, const Variant&);
  6630. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6631. void SetAttributeAnimationSpeed(const String&, float);
  6632. void SetAttributeAnimationTime(const String&, float);
  6633. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6634. void SetInterceptNetworkUpdate(const String&, bool);
  6635. // Properties:
  6636. bool animationEnabled;
  6637. uint areaID;
  6638. /* readonly */
  6639. Array<Variant> attributeDefaults;
  6640. /* readonly */
  6641. Array<AttributeInfo> attributeInfos;
  6642. Array<Variant> attributes;
  6643. BoundingBox boundingBox;
  6644. /* readonly */
  6645. String category;
  6646. bool enabled;
  6647. /* readonly */
  6648. bool enabledEffective;
  6649. /* readonly */
  6650. uint id;
  6651. /* readonly */
  6652. Node node;
  6653. /* readonly */
  6654. uint numAttributes;
  6655. ObjectAnimation objectAnimation;
  6656. /* readonly */
  6657. int refs;
  6658. bool temporary;
  6659. /* readonly */
  6660. StringHash type;
  6661. /* readonly */
  6662. String typeName;
  6663. /* readonly */
  6664. int weakRefs;
  6665. /* readonly */
  6666. BoundingBox worldBoundingBox;
  6667. };
  6668. class Navigable
  6669. {
  6670. // Methods:
  6671. void ApplyAttributes();
  6672. void DrawDebugGeometry(DebugRenderer, bool);
  6673. Variant GetAttribute(const String&) const;
  6674. ValueAnimation GetAttributeAnimation(const String&) const;
  6675. float GetAttributeAnimationSpeed(const String&) const;
  6676. float GetAttributeAnimationTime(const String&) const;
  6677. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6678. Variant GetAttributeDefault(const String&) const;
  6679. bool GetInterceptNetworkUpdate(const String&) const;
  6680. bool HasSubscribedToEvent(Object, const String&);
  6681. bool HasSubscribedToEvent(const String&);
  6682. bool Load(File, bool = false);
  6683. bool Load(VectorBuffer&, bool = false);
  6684. bool LoadJSON(const JSONValue&, bool = false);
  6685. bool LoadXML(const XMLElement&, bool = false);
  6686. void MarkNetworkUpdate() const;
  6687. void Remove();
  6688. void RemoveAttributeAnimation(const String&);
  6689. void RemoveInstanceDefault();
  6690. void RemoveObjectAnimation();
  6691. void ResetToDefault();
  6692. bool Save(File) const;
  6693. bool Save(VectorBuffer&) const;
  6694. bool SaveJSON(JSONValue&) const;
  6695. bool SaveXML(XMLElement&) const;
  6696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6697. void SetAnimationTime(float);
  6698. bool SetAttribute(const String&, const Variant&);
  6699. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6700. void SetAttributeAnimationSpeed(const String&, float);
  6701. void SetAttributeAnimationTime(const String&, float);
  6702. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6703. void SetInterceptNetworkUpdate(const String&, bool);
  6704. // Properties:
  6705. bool animationEnabled;
  6706. /* readonly */
  6707. Array<Variant> attributeDefaults;
  6708. /* readonly */
  6709. Array<AttributeInfo> attributeInfos;
  6710. Array<Variant> attributes;
  6711. /* readonly */
  6712. String category;
  6713. bool enabled;
  6714. /* readonly */
  6715. bool enabledEffective;
  6716. /* readonly */
  6717. uint id;
  6718. /* readonly */
  6719. Node node;
  6720. /* readonly */
  6721. uint numAttributes;
  6722. ObjectAnimation objectAnimation;
  6723. bool recursive;
  6724. /* readonly */
  6725. int refs;
  6726. bool temporary;
  6727. /* readonly */
  6728. StringHash type;
  6729. /* readonly */
  6730. String typeName;
  6731. /* readonly */
  6732. int weakRefs;
  6733. };
  6734. class NavigationMesh
  6735. {
  6736. // Methods:
  6737. void ApplyAttributes();
  6738. bool Build();
  6739. bool Build(const BoundingBox&);
  6740. void DrawDebugGeometry(DebugRenderer, bool);
  6741. void DrawDebugGeometry(bool);
  6742. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6743. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6744. float GetAreaCost(uint) const;
  6745. Variant GetAttribute(const String&) const;
  6746. ValueAnimation GetAttributeAnimation(const String&) const;
  6747. float GetAttributeAnimationSpeed(const String&) const;
  6748. float GetAttributeAnimationTime(const String&) const;
  6749. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6750. Variant GetAttributeDefault(const String&) const;
  6751. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6752. bool GetInterceptNetworkUpdate(const String&) const;
  6753. Vector3 GetRandomPoint();
  6754. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6755. bool HasSubscribedToEvent(Object, const String&);
  6756. bool HasSubscribedToEvent(const String&);
  6757. bool Load(File, bool = false);
  6758. bool Load(VectorBuffer&, bool = false);
  6759. bool LoadJSON(const JSONValue&, bool = false);
  6760. bool LoadXML(const XMLElement&, bool = false);
  6761. void MarkNetworkUpdate() const;
  6762. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6763. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6764. void Remove();
  6765. void RemoveAttributeAnimation(const String&);
  6766. void RemoveInstanceDefault();
  6767. void RemoveObjectAnimation();
  6768. void ResetToDefault();
  6769. bool Save(File) const;
  6770. bool Save(VectorBuffer&) const;
  6771. bool SaveJSON(JSONValue&) const;
  6772. bool SaveXML(XMLElement&) const;
  6773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6774. void SetAnimationTime(float);
  6775. void SetAreaCost(uint, float);
  6776. bool SetAttribute(const String&, const Variant&);
  6777. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6778. void SetAttributeAnimationSpeed(const String&, float);
  6779. void SetAttributeAnimationTime(const String&, float);
  6780. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6781. void SetInterceptNetworkUpdate(const String&, bool);
  6782. // Properties:
  6783. float agentHeight;
  6784. float agentMaxClimb;
  6785. float agentMaxSlope;
  6786. float agentRadius;
  6787. bool animationEnabled;
  6788. /* readonly */
  6789. Array<Variant> attributeDefaults;
  6790. /* readonly */
  6791. Array<AttributeInfo> attributeInfos;
  6792. Array<Variant> attributes;
  6793. /* readonly */
  6794. BoundingBox boundingBox;
  6795. /* readonly */
  6796. String category;
  6797. float cellHeight;
  6798. float cellSize;
  6799. float detailSampleDistance;
  6800. float detailSampleMaxError;
  6801. bool drawNavAreas;
  6802. bool drawOffMeshConnections;
  6803. float edgeMaxError;
  6804. float edgeMaxLength;
  6805. bool enabled;
  6806. /* readonly */
  6807. bool enabledEffective;
  6808. /* readonly */
  6809. uint id;
  6810. /* readonly */
  6811. bool initialized;
  6812. /* readonly */
  6813. Node node;
  6814. /* readonly */
  6815. uint numAttributes;
  6816. /* readonly */
  6817. IntVector2 numTiles;
  6818. ObjectAnimation objectAnimation;
  6819. Vector3 padding;
  6820. NavmeshPartitionType partitionType;
  6821. /* readonly */
  6822. int refs;
  6823. float regionMergeSize;
  6824. float regionMinSize;
  6825. bool temporary;
  6826. int tileSize;
  6827. /* readonly */
  6828. StringHash type;
  6829. /* readonly */
  6830. String typeName;
  6831. /* readonly */
  6832. int weakRefs;
  6833. /* readonly */
  6834. BoundingBox worldBoundingBox;
  6835. };
  6836. class Network
  6837. {
  6838. // Methods:
  6839. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6840. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6841. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6842. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6843. bool CheckRemoteEvent(const String&) const;
  6844. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6845. void Disconnect(int = 0);
  6846. bool HasSubscribedToEvent(Object, const String&);
  6847. bool HasSubscribedToEvent(const String&);
  6848. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6849. void RegisterRemoteEvent(const String&) const;
  6850. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6851. void SendPackageToClients(Scene, PackageFile);
  6852. bool StartServer(uint16);
  6853. void StopServer();
  6854. void UnregisterAllRemoteEvents();
  6855. void UnregisterRemoteEvent(const String&) const;
  6856. // Properties:
  6857. /* readonly */
  6858. String category;
  6859. /* readonly */
  6860. Array<Connection> clientConnections;
  6861. String packageCacheDir;
  6862. /* readonly */
  6863. int refs;
  6864. /* readonly */
  6865. Connection serverConnection;
  6866. /* readonly */
  6867. bool serverRunning;
  6868. int simulatedLatency;
  6869. float simulatedPacketLoss;
  6870. /* readonly */
  6871. StringHash type;
  6872. /* readonly */
  6873. String typeName;
  6874. int updateFps;
  6875. /* readonly */
  6876. int weakRefs;
  6877. };
  6878. class NetworkPriority
  6879. {
  6880. // Methods:
  6881. void ApplyAttributes();
  6882. void DrawDebugGeometry(DebugRenderer, bool);
  6883. Variant GetAttribute(const String&) const;
  6884. ValueAnimation GetAttributeAnimation(const String&) const;
  6885. float GetAttributeAnimationSpeed(const String&) const;
  6886. float GetAttributeAnimationTime(const String&) const;
  6887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6888. Variant GetAttributeDefault(const String&) const;
  6889. bool GetInterceptNetworkUpdate(const String&) const;
  6890. bool HasSubscribedToEvent(Object, const String&);
  6891. bool HasSubscribedToEvent(const String&);
  6892. bool Load(File, bool = false);
  6893. bool Load(VectorBuffer&, bool = false);
  6894. bool LoadJSON(const JSONValue&, bool = false);
  6895. bool LoadXML(const XMLElement&, bool = false);
  6896. void MarkNetworkUpdate() const;
  6897. void Remove();
  6898. void RemoveAttributeAnimation(const String&);
  6899. void RemoveInstanceDefault();
  6900. void RemoveObjectAnimation();
  6901. void ResetToDefault();
  6902. bool Save(File) const;
  6903. bool Save(VectorBuffer&) const;
  6904. bool SaveJSON(JSONValue&) const;
  6905. bool SaveXML(XMLElement&) const;
  6906. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6907. void SetAnimationTime(float);
  6908. bool SetAttribute(const String&, const Variant&);
  6909. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6910. void SetAttributeAnimationSpeed(const String&, float);
  6911. void SetAttributeAnimationTime(const String&, float);
  6912. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6913. void SetInterceptNetworkUpdate(const String&, bool);
  6914. // Properties:
  6915. bool alwaysUpdateOwner;
  6916. bool animationEnabled;
  6917. /* readonly */
  6918. Array<Variant> attributeDefaults;
  6919. /* readonly */
  6920. Array<AttributeInfo> attributeInfos;
  6921. Array<Variant> attributes;
  6922. float basePriority;
  6923. /* readonly */
  6924. String category;
  6925. float distanceFactor;
  6926. bool enabled;
  6927. /* readonly */
  6928. bool enabledEffective;
  6929. /* readonly */
  6930. uint id;
  6931. float minPriority;
  6932. /* readonly */
  6933. Node node;
  6934. /* readonly */
  6935. uint numAttributes;
  6936. ObjectAnimation objectAnimation;
  6937. /* readonly */
  6938. int refs;
  6939. bool temporary;
  6940. /* readonly */
  6941. StringHash type;
  6942. /* readonly */
  6943. String typeName;
  6944. /* readonly */
  6945. int weakRefs;
  6946. };
  6947. class Node
  6948. {
  6949. // Methods:
  6950. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6951. void AddTag(const String&);
  6952. void AddTags(const String&, int8 = ';');
  6953. void ApplyAttributes();
  6954. Node Clone(CreateMode = REPLICATED);
  6955. Component CloneComponent(Component, CreateMode, uint = 0);
  6956. Component CloneComponent(Component, uint = 0);
  6957. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6958. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6959. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6960. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6961. Variant GetAttribute(const String&) const;
  6962. ValueAnimation GetAttributeAnimation(const String&) const;
  6963. float GetAttributeAnimationSpeed(const String&) const;
  6964. float GetAttributeAnimationTime(const String&) const;
  6965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6966. Variant GetAttributeDefault(const String&) const;
  6967. Node GetChild(const String&, bool = false) const;
  6968. Array<Node> GetChildren(bool = false) const;
  6969. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6970. Array<Node> GetChildrenWithScript(bool = false) const;
  6971. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6972. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6973. Component GetComponent(const String&, bool = false) const;
  6974. Array<Component> GetComponents() const;
  6975. Array<Component> GetComponents(const String&, bool = false) const;
  6976. bool GetInterceptNetworkUpdate(const String&) const;
  6977. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6978. Component GetParentComponent(const String&, bool = false) const;
  6979. ScriptObject GetScriptObject() const;
  6980. ScriptObject GetScriptObject(const String&) const;
  6981. bool HasComponent(const String&) const;
  6982. bool HasSubscribedToEvent(Object, const String&);
  6983. bool HasSubscribedToEvent(const String&);
  6984. bool HasTag(const String&);
  6985. bool Load(File, bool = false);
  6986. bool Load(VectorBuffer&, bool = false);
  6987. bool LoadJSON(const JSONValue&, bool = false);
  6988. bool LoadXML(const XMLElement&, bool = false);
  6989. Vector3 LocalToWorld(const Vector3&) const;
  6990. Vector3 LocalToWorld(const Vector4&) const;
  6991. Vector2 LocalToWorld2D(const Vector2&) const;
  6992. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6993. void MarkDirty();
  6994. void MarkNetworkUpdate() const;
  6995. void Pitch(float, TransformSpace = TS_LOCAL);
  6996. void Remove();
  6997. void RemoveAllChildren();
  6998. void RemoveAllComponents();
  6999. void RemoveAllTags();
  7000. void RemoveAttributeAnimation(const String&);
  7001. void RemoveChild(Node);
  7002. void RemoveChildren(bool, bool, bool);
  7003. void RemoveComponent(Component);
  7004. void RemoveComponent(const String&);
  7005. void RemoveComponents(bool, bool);
  7006. void RemoveComponents(const String&);
  7007. void RemoveInstanceDefault();
  7008. void RemoveObjectAnimation();
  7009. bool RemoveTag(const String&);
  7010. void ReorderComponent(Component, uint);
  7011. void ResetDeepEnabled();
  7012. void ResetToDefault();
  7013. void Roll(float, TransformSpace = TS_LOCAL);
  7014. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7015. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7016. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7017. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7018. bool Save(File) const;
  7019. bool Save(VectorBuffer&) const;
  7020. bool SaveJSON(File);
  7021. bool SaveJSON(JSONValue&) const;
  7022. bool SaveJSON(VectorBuffer&);
  7023. bool SaveXML(File, const String& = "\t");
  7024. bool SaveXML(VectorBuffer&, const String& = "\t");
  7025. bool SaveXML(XMLElement&) const;
  7026. void Scale(const Vector3&);
  7027. void Scale(float);
  7028. void Scale2D(const Vector2&);
  7029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7030. void SetAnimationTime(float);
  7031. bool SetAttribute(const String&, const Variant&);
  7032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7033. void SetAttributeAnimationSpeed(const String&, float);
  7034. void SetAttributeAnimationTime(const String&, float);
  7035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7036. void SetDeepEnabled(bool);
  7037. void SetEnabledRecursive(bool);
  7038. void SetInterceptNetworkUpdate(const String&, bool);
  7039. void SetPosition2D(float, float);
  7040. void SetScale(float);
  7041. void SetScale2D(float, float);
  7042. void SetTransform(const Vector3&, const Quaternion&);
  7043. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7044. void SetTransform(const Vector3&, const Quaternion&, float);
  7045. void SetTransform2D(const Vector2&, float);
  7046. void SetTransform2D(const Vector2&, float, const Vector2&);
  7047. void SetTransform2D(const Vector2&, float, float);
  7048. void SetWorldTransform(const Vector3&, const Quaternion&);
  7049. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7050. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7051. void SetWorldTransform2D(const Vector2&, float);
  7052. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7053. void SetWorldTransform2D(const Vector2&, float, float);
  7054. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7055. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7056. Vector3 WorldToLocal(const Vector3&) const;
  7057. Vector3 WorldToLocal(const Vector4&) const;
  7058. Vector2 WorldToLocal2D(const Vector2&) const;
  7059. void Yaw(float, TransformSpace = TS_LOCAL);
  7060. // Properties:
  7061. bool animationEnabled;
  7062. /* readonly */
  7063. Array<Variant> attributeDefaults;
  7064. /* readonly */
  7065. Array<AttributeInfo> attributeInfos;
  7066. Array<Variant> attributes;
  7067. /* readonly */
  7068. String category;
  7069. /* readonly */
  7070. Array<Node> children;
  7071. /* readonly */
  7072. Array<Component> components;
  7073. Vector3 direction;
  7074. bool enabled;
  7075. /* readonly */
  7076. bool enabledSelf;
  7077. uint id;
  7078. String name;
  7079. /* readonly */
  7080. uint numAllChildren;
  7081. /* readonly */
  7082. uint numAttributes;
  7083. /* readonly */
  7084. uint numChildren;
  7085. /* readonly */
  7086. uint numComponents;
  7087. ObjectAnimation objectAnimation;
  7088. Connection owner;
  7089. Node parent;
  7090. Vector3 position;
  7091. Vector2 position2D;
  7092. /* readonly */
  7093. int refs;
  7094. /* readonly */
  7095. Vector3 right;
  7096. Quaternion rotation;
  7097. float rotation2D;
  7098. Vector3 scale;
  7099. Vector2 scale2D;
  7100. /* readonly */
  7101. Scene scene;
  7102. /* readonly */
  7103. ScriptObject scriptObject;
  7104. /* readonly */
  7105. Array<String> tags;
  7106. bool temporary;
  7107. /* readonly */
  7108. Matrix3x4 transform;
  7109. /* readonly */
  7110. StringHash type;
  7111. /* readonly */
  7112. String typeName;
  7113. /* readonly */
  7114. Vector3 up;
  7115. /* readonly */
  7116. VariantMap vars;
  7117. /* readonly */
  7118. int weakRefs;
  7119. Vector3 worldDirection;
  7120. Vector3 worldPosition;
  7121. Vector2 worldPosition2D;
  7122. /* readonly */
  7123. Vector3 worldRight;
  7124. Quaternion worldRotation;
  7125. float worldRotation2D;
  7126. Vector3 worldScale;
  7127. Vector2 worldScale2D;
  7128. /* readonly */
  7129. Matrix3x4 worldTransform;
  7130. /* readonly */
  7131. Vector3 worldUp;
  7132. };
  7133. class Object
  7134. {
  7135. // Methods:
  7136. bool HasSubscribedToEvent(Object, const String&);
  7137. bool HasSubscribedToEvent(const String&);
  7138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7139. // Properties:
  7140. /* readonly */
  7141. String category;
  7142. /* readonly */
  7143. int refs;
  7144. /* readonly */
  7145. StringHash type;
  7146. /* readonly */
  7147. String typeName;
  7148. /* readonly */
  7149. int weakRefs;
  7150. };
  7151. class ObjectAnimation
  7152. {
  7153. // Methods:
  7154. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7155. ValueAnimation GetAttributeAnimation(const String&) const;
  7156. float GetAttributeAnimationSpeed(const String&) const;
  7157. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7158. bool HasSubscribedToEvent(Object, const String&);
  7159. bool HasSubscribedToEvent(const String&);
  7160. bool Load(File);
  7161. bool Load(VectorBuffer&);
  7162. void RemoveAttributeAnimation(ValueAnimation);
  7163. void RemoveAttributeAnimation(const String&);
  7164. bool Save(File) const;
  7165. bool Save(VectorBuffer&) const;
  7166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7167. // Properties:
  7168. /* readonly */
  7169. Array<Variant> attributeAnimations;
  7170. /* readonly */
  7171. String category;
  7172. /* readonly */
  7173. uint memoryUse;
  7174. String name;
  7175. /* readonly */
  7176. int refs;
  7177. /* readonly */
  7178. Array<Variant> speeds;
  7179. /* readonly */
  7180. StringHash type;
  7181. /* readonly */
  7182. String typeName;
  7183. /* readonly */
  7184. uint useTimer;
  7185. /* readonly */
  7186. int weakRefs;
  7187. /* readonly */
  7188. Array<Variant> wrapModes;
  7189. };
  7190. class Obstacle
  7191. {
  7192. // Methods:
  7193. void ApplyAttributes();
  7194. void DrawDebugGeometry(DebugRenderer, bool);
  7195. void DrawDebugGeometry(bool);
  7196. Variant GetAttribute(const String&) const;
  7197. ValueAnimation GetAttributeAnimation(const String&) const;
  7198. float GetAttributeAnimationSpeed(const String&) const;
  7199. float GetAttributeAnimationTime(const String&) const;
  7200. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7201. Variant GetAttributeDefault(const String&) const;
  7202. bool GetInterceptNetworkUpdate(const String&) const;
  7203. bool HasSubscribedToEvent(Object, const String&);
  7204. bool HasSubscribedToEvent(const String&);
  7205. bool Load(File, bool = false);
  7206. bool Load(VectorBuffer&, bool = false);
  7207. bool LoadJSON(const JSONValue&, bool = false);
  7208. bool LoadXML(const XMLElement&, bool = false);
  7209. void MarkNetworkUpdate() const;
  7210. void Remove();
  7211. void RemoveAttributeAnimation(const String&);
  7212. void RemoveInstanceDefault();
  7213. void RemoveObjectAnimation();
  7214. void ResetToDefault();
  7215. bool Save(File) const;
  7216. bool Save(VectorBuffer&) const;
  7217. bool SaveJSON(JSONValue&) const;
  7218. bool SaveXML(XMLElement&) const;
  7219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7220. void SetAnimationTime(float);
  7221. bool SetAttribute(const String&, const Variant&);
  7222. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7223. void SetAttributeAnimationSpeed(const String&, float);
  7224. void SetAttributeAnimationTime(const String&, float);
  7225. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7226. void SetInterceptNetworkUpdate(const String&, bool);
  7227. // Properties:
  7228. bool animationEnabled;
  7229. /* readonly */
  7230. Array<Variant> attributeDefaults;
  7231. /* readonly */
  7232. Array<AttributeInfo> attributeInfos;
  7233. Array<Variant> attributes;
  7234. /* readonly */
  7235. String category;
  7236. bool enabled;
  7237. /* readonly */
  7238. bool enabledEffective;
  7239. float height;
  7240. /* readonly */
  7241. uint id;
  7242. /* readonly */
  7243. Node node;
  7244. /* readonly */
  7245. uint numAttributes;
  7246. ObjectAnimation objectAnimation;
  7247. /* readonly */
  7248. uint obstacleId;
  7249. float radius;
  7250. /* readonly */
  7251. int refs;
  7252. bool temporary;
  7253. /* readonly */
  7254. StringHash type;
  7255. /* readonly */
  7256. String typeName;
  7257. /* readonly */
  7258. int weakRefs;
  7259. };
  7260. class Octree
  7261. {
  7262. // Methods:
  7263. void AddManualDrawable(Drawable);
  7264. void ApplyAttributes();
  7265. void DrawDebugGeometry(DebugRenderer, bool);
  7266. void DrawDebugGeometry(bool) const;
  7267. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7268. Variant GetAttribute(const String&) const;
  7269. ValueAnimation GetAttributeAnimation(const String&) const;
  7270. float GetAttributeAnimationSpeed(const String&) const;
  7271. float GetAttributeAnimationTime(const String&) const;
  7272. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7273. Variant GetAttributeDefault(const String&) const;
  7274. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7275. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7276. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7277. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7278. bool GetInterceptNetworkUpdate(const String&) const;
  7279. bool HasSubscribedToEvent(Object, const String&);
  7280. bool HasSubscribedToEvent(const String&);
  7281. bool Load(File, bool = false);
  7282. bool Load(VectorBuffer&, bool = false);
  7283. bool LoadJSON(const JSONValue&, bool = false);
  7284. bool LoadXML(const XMLElement&, bool = false);
  7285. void MarkNetworkUpdate() const;
  7286. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7287. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7288. void Remove();
  7289. void RemoveAttributeAnimation(const String&);
  7290. void RemoveInstanceDefault();
  7291. void RemoveManualDrawable(Drawable);
  7292. void RemoveObjectAnimation();
  7293. void ResetToDefault();
  7294. bool Save(File) const;
  7295. bool Save(VectorBuffer&) const;
  7296. bool SaveJSON(JSONValue&) const;
  7297. bool SaveXML(XMLElement&) const;
  7298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7299. void SetAnimationTime(float);
  7300. bool SetAttribute(const String&, const Variant&);
  7301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7302. void SetAttributeAnimationSpeed(const String&, float);
  7303. void SetAttributeAnimationTime(const String&, float);
  7304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7305. void SetInterceptNetworkUpdate(const String&, bool);
  7306. void SetSize(const BoundingBox&, uint);
  7307. // Properties:
  7308. bool animationEnabled;
  7309. /* readonly */
  7310. Array<Variant> attributeDefaults;
  7311. /* readonly */
  7312. Array<AttributeInfo> attributeInfos;
  7313. Array<Variant> attributes;
  7314. /* readonly */
  7315. String category;
  7316. bool enabled;
  7317. /* readonly */
  7318. bool enabledEffective;
  7319. /* readonly */
  7320. uint id;
  7321. /* readonly */
  7322. Node node;
  7323. /* readonly */
  7324. uint numAttributes;
  7325. /* readonly */
  7326. uint numLevels;
  7327. ObjectAnimation objectAnimation;
  7328. /* readonly */
  7329. int refs;
  7330. bool temporary;
  7331. /* readonly */
  7332. StringHash type;
  7333. /* readonly */
  7334. String typeName;
  7335. /* readonly */
  7336. int weakRefs;
  7337. /* readonly */
  7338. BoundingBox worldBoundingBox;
  7339. };
  7340. class OffMeshConnection
  7341. {
  7342. // Methods:
  7343. void ApplyAttributes();
  7344. void DrawDebugGeometry(DebugRenderer, bool);
  7345. Variant GetAttribute(const String&) const;
  7346. ValueAnimation GetAttributeAnimation(const String&) const;
  7347. float GetAttributeAnimationSpeed(const String&) const;
  7348. float GetAttributeAnimationTime(const String&) const;
  7349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7350. Variant GetAttributeDefault(const String&) const;
  7351. bool GetInterceptNetworkUpdate(const String&) const;
  7352. bool HasSubscribedToEvent(Object, const String&);
  7353. bool HasSubscribedToEvent(const String&);
  7354. bool Load(File, bool = false);
  7355. bool Load(VectorBuffer&, bool = false);
  7356. bool LoadJSON(const JSONValue&, bool = false);
  7357. bool LoadXML(const XMLElement&, bool = false);
  7358. void MarkNetworkUpdate() const;
  7359. void Remove();
  7360. void RemoveAttributeAnimation(const String&);
  7361. void RemoveInstanceDefault();
  7362. void RemoveObjectAnimation();
  7363. void ResetToDefault();
  7364. bool Save(File) const;
  7365. bool Save(VectorBuffer&) const;
  7366. bool SaveJSON(JSONValue&) const;
  7367. bool SaveXML(XMLElement&) const;
  7368. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7369. void SetAnimationTime(float);
  7370. bool SetAttribute(const String&, const Variant&);
  7371. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7372. void SetAttributeAnimationSpeed(const String&, float);
  7373. void SetAttributeAnimationTime(const String&, float);
  7374. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7375. void SetInterceptNetworkUpdate(const String&, bool);
  7376. // Properties:
  7377. bool animationEnabled;
  7378. uint areaID;
  7379. /* readonly */
  7380. Array<Variant> attributeDefaults;
  7381. /* readonly */
  7382. Array<AttributeInfo> attributeInfos;
  7383. Array<Variant> attributes;
  7384. bool bidirectional;
  7385. /* readonly */
  7386. String category;
  7387. bool enabled;
  7388. /* readonly */
  7389. bool enabledEffective;
  7390. Node endPoint;
  7391. /* readonly */
  7392. uint id;
  7393. uint mask;
  7394. /* readonly */
  7395. Node node;
  7396. /* readonly */
  7397. uint numAttributes;
  7398. ObjectAnimation objectAnimation;
  7399. float radius;
  7400. /* readonly */
  7401. int refs;
  7402. bool temporary;
  7403. /* readonly */
  7404. StringHash type;
  7405. /* readonly */
  7406. String typeName;
  7407. /* readonly */
  7408. int weakRefs;
  7409. };
  7410. class PackageFile
  7411. {
  7412. // Methods:
  7413. bool Exists(const String&) const;
  7414. Array<String> GetEntryNames() const;
  7415. bool HasSubscribedToEvent(Object, const String&);
  7416. bool HasSubscribedToEvent(const String&);
  7417. bool Open(const String&, uint = 0) const;
  7418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7419. bool compressed() const;
  7420. // Properties:
  7421. /* readonly */
  7422. String category;
  7423. /* readonly */
  7424. uint checksum;
  7425. /* readonly */
  7426. String name;
  7427. /* readonly */
  7428. uint numFiles;
  7429. /* readonly */
  7430. int refs;
  7431. /* readonly */
  7432. uint totalDataSize;
  7433. /* readonly */
  7434. uint totalSize;
  7435. /* readonly */
  7436. StringHash type;
  7437. /* readonly */
  7438. String typeName;
  7439. /* readonly */
  7440. int weakRefs;
  7441. };
  7442. class ParticleEffect
  7443. {
  7444. // Methods:
  7445. void AddColorFrame(ColorFrame);
  7446. void AddColorTime(Color&, float);
  7447. void AddTextureFrame(TextureFrame);
  7448. void AddTextureTime(Rect&, float);
  7449. ParticleEffect Clone(const String& = String ( )) const;
  7450. ColorFrame GetColorFrame(uint) const;
  7451. TextureFrame GetTextureFrame(uint) const;
  7452. bool HasSubscribedToEvent(Object, const String&);
  7453. bool HasSubscribedToEvent(const String&);
  7454. bool Load(File);
  7455. bool Load(VectorBuffer&);
  7456. bool Load(const XMLElement&);
  7457. void RemoveColorFrame(uint);
  7458. void RemoveTextureFrame(uint);
  7459. bool Save(File) const;
  7460. bool Save(VectorBuffer&) const;
  7461. bool Save(XMLElement&) const;
  7462. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7463. void SetColorFrame(uint, ColorFrame);
  7464. void SetTextureFrame(uint, TextureFrame);
  7465. void SortColorFrames();
  7466. void SortTextureFrames();
  7467. // Properties:
  7468. float activeTime;
  7469. float animationLodBias;
  7470. /* readonly */
  7471. String category;
  7472. Vector3 constantForce;
  7473. float dampingForce;
  7474. Vector3 emitterSize;
  7475. EmitterType emitterType;
  7476. FaceCameraMode faceCameraMode;
  7477. bool fixedScreenSize;
  7478. float inactiveTime;
  7479. Material material;
  7480. Vector3 maxDirection;
  7481. float maxEmissionRate;
  7482. Vector2 maxParticleSize;
  7483. float maxRotation;
  7484. float maxRotationSpeed;
  7485. float maxTimeToLive;
  7486. float maxVelocity;
  7487. /* readonly */
  7488. uint memoryUse;
  7489. Vector3 minDirection;
  7490. float minEmissionRate;
  7491. Vector2 minParticleSize;
  7492. float minRotation;
  7493. float minRotationSpeed;
  7494. float minTimeToLive;
  7495. float minVelocity;
  7496. String name;
  7497. uint numColorFrames;
  7498. uint numParticles;
  7499. uint numTextureFrames;
  7500. /* readonly */
  7501. int refs;
  7502. bool relative;
  7503. bool scaled;
  7504. float sizeAdd;
  7505. float sizeMul;
  7506. bool sorted;
  7507. /* readonly */
  7508. StringHash type;
  7509. /* readonly */
  7510. String typeName;
  7511. bool updateInvisible;
  7512. /* readonly */
  7513. uint useTimer;
  7514. /* readonly */
  7515. int weakRefs;
  7516. };
  7517. class ParticleEffect2D
  7518. {
  7519. // Methods:
  7520. ParticleEffect2D Clone(const String& = String ( )) const;
  7521. bool HasSubscribedToEvent(Object, const String&);
  7522. bool HasSubscribedToEvent(const String&);
  7523. bool Load(File);
  7524. bool Load(VectorBuffer&);
  7525. bool Save(File) const;
  7526. bool Save(VectorBuffer&) const;
  7527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7528. // Properties:
  7529. /* readonly */
  7530. String category;
  7531. /* readonly */
  7532. uint memoryUse;
  7533. String name;
  7534. /* readonly */
  7535. int refs;
  7536. /* readonly */
  7537. StringHash type;
  7538. /* readonly */
  7539. String typeName;
  7540. /* readonly */
  7541. uint useTimer;
  7542. /* readonly */
  7543. int weakRefs;
  7544. };
  7545. class ParticleEmitter
  7546. {
  7547. // Methods:
  7548. void ApplyAttributes();
  7549. void ApplyEffect();
  7550. void Commit();
  7551. void DrawDebugGeometry(DebugRenderer, bool);
  7552. Variant GetAttribute(const String&) const;
  7553. ValueAnimation GetAttributeAnimation(const String&) const;
  7554. float GetAttributeAnimationSpeed(const String&) const;
  7555. float GetAttributeAnimationTime(const String&) const;
  7556. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7557. Variant GetAttributeDefault(const String&) const;
  7558. bool GetInterceptNetworkUpdate(const String&) const;
  7559. bool HasSubscribedToEvent(Object, const String&);
  7560. bool HasSubscribedToEvent(const String&);
  7561. bool IsInView(Camera) const;
  7562. bool Load(File, bool = false);
  7563. bool Load(VectorBuffer&, bool = false);
  7564. bool LoadJSON(const JSONValue&, bool = false);
  7565. bool LoadXML(const XMLElement&, bool = false);
  7566. void MarkNetworkUpdate() const;
  7567. void Remove();
  7568. void RemoveAllParticles();
  7569. void RemoveAttributeAnimation(const String&);
  7570. void RemoveInstanceDefault();
  7571. void RemoveObjectAnimation();
  7572. void Reset();
  7573. void ResetEmissionTimer();
  7574. void ResetToDefault();
  7575. bool Save(File) const;
  7576. bool Save(VectorBuffer&) const;
  7577. bool SaveJSON(JSONValue&) const;
  7578. bool SaveXML(XMLElement&) const;
  7579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7580. void SetAnimationTime(float);
  7581. bool SetAttribute(const String&, const Variant&);
  7582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7583. void SetAttributeAnimationSpeed(const String&, float);
  7584. void SetAttributeAnimationTime(const String&, float);
  7585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7586. void SetInterceptNetworkUpdate(const String&, bool);
  7587. // Properties:
  7588. bool animationEnabled;
  7589. float animationLodBias;
  7590. /* readonly */
  7591. Array<Variant> attributeDefaults;
  7592. /* readonly */
  7593. Array<AttributeInfo> attributeInfos;
  7594. Array<Variant> attributes;
  7595. AutoRemoveMode autoRemoveMode;
  7596. /* readonly */
  7597. Array<Billboard> billboards;
  7598. /* readonly */
  7599. BoundingBox boundingBox;
  7600. bool castShadows;
  7601. /* readonly */
  7602. String category;
  7603. float drawDistance;
  7604. ParticleEffect effect;
  7605. bool emitting;
  7606. bool enabled;
  7607. /* readonly */
  7608. bool enabledEffective;
  7609. FaceCameraMode faceCameraMode;
  7610. bool fixedScreenSize;
  7611. /* readonly */
  7612. uint id;
  7613. /* readonly */
  7614. bool inView;
  7615. uint lightMask;
  7616. float lodBias;
  7617. Material material;
  7618. uint maxLights;
  7619. /* readonly */
  7620. Node node;
  7621. /* readonly */
  7622. uint numAttributes;
  7623. uint numBillboards;
  7624. uint numParticles;
  7625. ObjectAnimation objectAnimation;
  7626. bool occludee;
  7627. bool occluder;
  7628. /* readonly */
  7629. int refs;
  7630. bool relative;
  7631. bool scaled;
  7632. bool serializeParticles;
  7633. float shadowDistance;
  7634. uint shadowMask;
  7635. bool sorted;
  7636. bool temporary;
  7637. /* readonly */
  7638. StringHash type;
  7639. /* readonly */
  7640. String typeName;
  7641. uint viewMask;
  7642. /* readonly */
  7643. int weakRefs;
  7644. /* readonly */
  7645. BoundingBox worldBoundingBox;
  7646. /* readonly */
  7647. Zone zone;
  7648. uint zoneMask;
  7649. };
  7650. class ParticleEmitter2D
  7651. {
  7652. // Methods:
  7653. void ApplyAttributes();
  7654. void DrawDebugGeometry(DebugRenderer, bool);
  7655. Variant GetAttribute(const String&) const;
  7656. ValueAnimation GetAttributeAnimation(const String&) const;
  7657. float GetAttributeAnimationSpeed(const String&) const;
  7658. float GetAttributeAnimationTime(const String&) const;
  7659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7660. Variant GetAttributeDefault(const String&) const;
  7661. bool GetInterceptNetworkUpdate(const String&) const;
  7662. bool HasSubscribedToEvent(Object, const String&);
  7663. bool HasSubscribedToEvent(const String&);
  7664. bool IsInView(Camera) const;
  7665. bool Load(File, bool = false);
  7666. bool Load(VectorBuffer&, bool = false);
  7667. bool LoadJSON(const JSONValue&, bool = false);
  7668. bool LoadXML(const XMLElement&, bool = false);
  7669. void MarkNetworkUpdate() const;
  7670. void Remove();
  7671. void RemoveAttributeAnimation(const String&);
  7672. void RemoveInstanceDefault();
  7673. void RemoveObjectAnimation();
  7674. void ResetToDefault();
  7675. bool Save(File) const;
  7676. bool Save(VectorBuffer&) const;
  7677. bool SaveJSON(JSONValue&) const;
  7678. bool SaveXML(XMLElement&) const;
  7679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7680. void SetAnimationTime(float);
  7681. bool SetAttribute(const String&, const Variant&);
  7682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7683. void SetAttributeAnimationSpeed(const String&, float);
  7684. void SetAttributeAnimationTime(const String&, float);
  7685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7686. void SetInterceptNetworkUpdate(const String&, bool);
  7687. // Properties:
  7688. bool animationEnabled;
  7689. /* readonly */
  7690. Array<Variant> attributeDefaults;
  7691. /* readonly */
  7692. Array<AttributeInfo> attributeInfos;
  7693. Array<Variant> attributes;
  7694. BlendMode blendMode;
  7695. /* readonly */
  7696. BoundingBox boundingBox;
  7697. bool castShadows;
  7698. /* readonly */
  7699. String category;
  7700. float drawDistance;
  7701. ParticleEffect2D effect;
  7702. bool enabled;
  7703. /* readonly */
  7704. bool enabledEffective;
  7705. /* readonly */
  7706. uint id;
  7707. /* readonly */
  7708. bool inView;
  7709. int layer;
  7710. uint lightMask;
  7711. float lodBias;
  7712. uint maxLights;
  7713. /* readonly */
  7714. Node node;
  7715. /* readonly */
  7716. uint numAttributes;
  7717. ObjectAnimation objectAnimation;
  7718. bool occludee;
  7719. bool occluder;
  7720. int orderInLayer;
  7721. /* readonly */
  7722. int refs;
  7723. float shadowDistance;
  7724. uint shadowMask;
  7725. Sprite2D sprite;
  7726. bool temporary;
  7727. /* readonly */
  7728. StringHash type;
  7729. /* readonly */
  7730. String typeName;
  7731. uint viewMask;
  7732. /* readonly */
  7733. int weakRefs;
  7734. /* readonly */
  7735. BoundingBox worldBoundingBox;
  7736. uint zoneMask;
  7737. };
  7738. class Pass
  7739. {
  7740. // Properties:
  7741. bool alphaMask;
  7742. BlendMode blendMode;
  7743. CullMode cullMode;
  7744. CompareMode depthTestMode;
  7745. bool depthWrite;
  7746. bool desktop;
  7747. PassLightingMode lightingMode;
  7748. String pixelShader;
  7749. String pixelShaderDefines;
  7750. /* readonly */
  7751. int refs;
  7752. String vertexShader;
  7753. String vertexShaderDefines;
  7754. /* readonly */
  7755. int weakRefs;
  7756. };
  7757. class PhysicsRaycastResult
  7758. {
  7759. // Properties:
  7760. /* readonly */
  7761. RigidBody body;
  7762. float distance;
  7763. float hitFraction;
  7764. Vector3 normal;
  7765. Vector3 position;
  7766. };
  7767. class PhysicsRaycastResult2D
  7768. {
  7769. // Properties:
  7770. /* readonly */
  7771. RigidBody2D body;
  7772. float distance;
  7773. Vector2 normal;
  7774. Vector2 position;
  7775. };
  7776. class PhysicsWorld
  7777. {
  7778. // Methods:
  7779. void ApplyAttributes();
  7780. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7781. void DrawDebugGeometry(DebugRenderer, bool);
  7782. void DrawDebugGeometry(bool);
  7783. Variant GetAttribute(const String&) const;
  7784. ValueAnimation GetAttributeAnimation(const String&) const;
  7785. float GetAttributeAnimationSpeed(const String&) const;
  7786. float GetAttributeAnimationTime(const String&) const;
  7787. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7788. Variant GetAttributeDefault(const String&) const;
  7789. Array<RigidBody> GetCollidingBodies(RigidBody);
  7790. bool GetInterceptNetworkUpdate(const String&) const;
  7791. Array<RigidBody> GetRigidBodies(RigidBody);
  7792. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7793. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7794. bool HasSubscribedToEvent(Object, const String&);
  7795. bool HasSubscribedToEvent(const String&);
  7796. bool Load(File, bool = false);
  7797. bool Load(VectorBuffer&, bool = false);
  7798. bool LoadJSON(const JSONValue&, bool = false);
  7799. bool LoadXML(const XMLElement&, bool = false);
  7800. void MarkNetworkUpdate() const;
  7801. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7802. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7803. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7804. void Remove();
  7805. void RemoveAttributeAnimation(const String&);
  7806. void RemoveCachedGeometry(Model);
  7807. void RemoveInstanceDefault();
  7808. void RemoveObjectAnimation();
  7809. void ResetToDefault();
  7810. bool Save(File) const;
  7811. bool Save(VectorBuffer&) const;
  7812. bool SaveJSON(JSONValue&) const;
  7813. bool SaveXML(XMLElement&) const;
  7814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7815. void SetAnimationTime(float);
  7816. bool SetAttribute(const String&, const Variant&);
  7817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7818. void SetAttributeAnimationSpeed(const String&, float);
  7819. void SetAttributeAnimationTime(const String&, float);
  7820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7821. void SetInterceptNetworkUpdate(const String&, bool);
  7822. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7823. void Update(float);
  7824. void UpdateCollisions();
  7825. // Properties:
  7826. bool animationEnabled;
  7827. /* readonly */
  7828. Array<Variant> attributeDefaults;
  7829. /* readonly */
  7830. Array<AttributeInfo> attributeInfos;
  7831. Array<Variant> attributes;
  7832. /* readonly */
  7833. String category;
  7834. bool enabled;
  7835. /* readonly */
  7836. bool enabledEffective;
  7837. int fps;
  7838. Vector3 gravity;
  7839. /* readonly */
  7840. uint id;
  7841. bool internalEdge;
  7842. bool interpolation;
  7843. int maxSubSteps;
  7844. /* readonly */
  7845. Node node;
  7846. /* readonly */
  7847. uint numAttributes;
  7848. int numIterations;
  7849. ObjectAnimation objectAnimation;
  7850. /* readonly */
  7851. int refs;
  7852. bool splitImpulse;
  7853. bool temporary;
  7854. /* readonly */
  7855. StringHash type;
  7856. /* readonly */
  7857. String typeName;
  7858. bool updateEnabled;
  7859. /* readonly */
  7860. int weakRefs;
  7861. };
  7862. class PhysicsWorld2D
  7863. {
  7864. // Methods:
  7865. void ApplyAttributes();
  7866. void DrawDebugGeometry() const;
  7867. void DrawDebugGeometry(DebugRenderer, bool);
  7868. Variant GetAttribute(const String&) const;
  7869. ValueAnimation GetAttributeAnimation(const String&) const;
  7870. float GetAttributeAnimationSpeed(const String&) const;
  7871. float GetAttributeAnimationTime(const String&) const;
  7872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7873. Variant GetAttributeDefault(const String&) const;
  7874. bool GetInterceptNetworkUpdate(const String&) const;
  7875. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7876. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7877. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7878. bool HasSubscribedToEvent(Object, const String&);
  7879. bool HasSubscribedToEvent(const String&);
  7880. bool Load(File, bool = false);
  7881. bool Load(VectorBuffer&, bool = false);
  7882. bool LoadJSON(const JSONValue&, bool = false);
  7883. bool LoadXML(const XMLElement&, bool = false);
  7884. void MarkNetworkUpdate() const;
  7885. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7886. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7887. void Remove();
  7888. void RemoveAttributeAnimation(const String&);
  7889. void RemoveInstanceDefault();
  7890. void RemoveObjectAnimation();
  7891. void ResetToDefault();
  7892. bool Save(File) const;
  7893. bool Save(VectorBuffer&) const;
  7894. bool SaveJSON(JSONValue&) const;
  7895. bool SaveXML(XMLElement&) const;
  7896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7897. void SetAnimationTime(float);
  7898. bool SetAttribute(const String&, const Variant&);
  7899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7900. void SetAttributeAnimationSpeed(const String&, float);
  7901. void SetAttributeAnimationTime(const String&, float);
  7902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7903. void SetInterceptNetworkUpdate(const String&, bool);
  7904. // Properties:
  7905. bool allowSleeping;
  7906. bool animationEnabled;
  7907. /* readonly */
  7908. Array<Variant> attributeDefaults;
  7909. /* readonly */
  7910. Array<AttributeInfo> attributeInfos;
  7911. Array<Variant> attributes;
  7912. bool autoClearForces;
  7913. /* readonly */
  7914. String category;
  7915. bool continuousPhysics;
  7916. bool drawAabb;
  7917. bool drawCenterOfMass;
  7918. bool drawJoint;
  7919. bool drawPair;
  7920. bool drawShape;
  7921. bool enabled;
  7922. /* readonly */
  7923. bool enabledEffective;
  7924. Vector2 gravity;
  7925. /* readonly */
  7926. uint id;
  7927. /* readonly */
  7928. Node node;
  7929. /* readonly */
  7930. uint numAttributes;
  7931. ObjectAnimation objectAnimation;
  7932. uint positionIterations;
  7933. /* readonly */
  7934. int refs;
  7935. bool subStepping;
  7936. bool temporary;
  7937. /* readonly */
  7938. StringHash type;
  7939. /* readonly */
  7940. String typeName;
  7941. bool updateEnabled;
  7942. uint velocityIterations;
  7943. bool warmStarting;
  7944. /* readonly */
  7945. int weakRefs;
  7946. };
  7947. class Plane
  7948. {
  7949. // Methods:
  7950. void Define(const Vector3&, const Vector3&);
  7951. void Define(const Vector3&, const Vector3&, const Vector3&);
  7952. void Define(const Vector4&);
  7953. float Distance(const Vector3&) const;
  7954. Vector3 Project(const Vector3&) const;
  7955. Vector3 Reflect(const Vector3&) const;
  7956. Vector4 ToVector4() const;
  7957. void Transform(const Matrix3&);
  7958. void Transform(const Matrix3x4&);
  7959. void Transform(const Matrix4&);
  7960. Plane Transformed(const Matrix3&) const;
  7961. Plane Transformed(const Matrix3x4&) const;
  7962. Plane Transformed(const Matrix4&) const;
  7963. // Properties:
  7964. Vector3 absNormal;
  7965. float d;
  7966. Vector3 normal;
  7967. /* readonly */
  7968. Matrix3x4 reflectionMatrix;
  7969. };
  7970. class Polyhedron
  7971. {
  7972. // Methods:
  7973. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7974. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7975. void AddFace(const Array<Vector3>);
  7976. void Clear();
  7977. void Clip(const BoundingBox&);
  7978. void Clip(const Frustum&);
  7979. void Define(const BoundingBox&);
  7980. void Define(const Frustum&);
  7981. void Transform(const Matrix3&);
  7982. void Transform(const Matrix3x4&);
  7983. Polyhedron Transformed(const Matrix3&) const;
  7984. Polyhedron Transformed(const Matrix3x4&) const;
  7985. // Properties:
  7986. /* readonly */
  7987. Array<Array<Vector3>> face;
  7988. /* readonly */
  7989. uint numFaces;
  7990. };
  7991. class PropertySet2D
  7992. {
  7993. // Methods:
  7994. bool HasProperty(const String&) const;
  7995. const String& GetProperty(const String&) const;
  7996. // Properties:
  7997. /* readonly */
  7998. int refs;
  7999. /* readonly */
  8000. int weakRefs;
  8001. };
  8002. class Quaternion
  8003. {
  8004. // Methods:
  8005. Quaternion Conjugate() const;
  8006. float DotProduct(const Quaternion&) const;
  8007. bool Equals(const Quaternion&) const;
  8008. void FromAngleAxis(float, const Vector3&);
  8009. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8010. void FromEulerAngles(float, float, float);
  8011. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8012. void FromRotationMatrix(const Matrix3&);
  8013. void FromRotationTo(const Vector3&, const Vector3&);
  8014. Quaternion Inverse() const;
  8015. bool IsNaN() const;
  8016. float LengthSquared() const;
  8017. Quaternion Nlerp(Quaternion, float, bool) const;
  8018. void Normalize();
  8019. Quaternion Normalized() const;
  8020. Quaternion Slerp(Quaternion, float) const;
  8021. String ToString() const;
  8022. // Properties:
  8023. /* readonly */
  8024. Vector3 eulerAngles;
  8025. /* readonly */
  8026. float pitch;
  8027. /* readonly */
  8028. float roll;
  8029. /* readonly */
  8030. Matrix3 rotationMatrix;
  8031. float w;
  8032. float x;
  8033. float y;
  8034. /* readonly */
  8035. float yaw;
  8036. float z;
  8037. };
  8038. class Ray
  8039. {
  8040. // Methods:
  8041. Vector3 ClosestPoint(const Ray&) const;
  8042. void Define(const Vector3&, const Vector3&);
  8043. float Distance(const Vector3&) const;
  8044. float HitDistance(const BoundingBox&) const;
  8045. float HitDistance(const Frustum&, bool = true) const;
  8046. float HitDistance(const Plane&) const;
  8047. float HitDistance(const Sphere&) const;
  8048. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8049. Vector3 Project(const Vector3&) const;
  8050. Ray Transformed(const Matrix3x4&) const;
  8051. // Properties:
  8052. Vector3 direction;
  8053. Vector3 origin;
  8054. };
  8055. class RayQueryResult
  8056. {
  8057. // Properties:
  8058. float distance;
  8059. /* readonly */
  8060. Drawable drawable;
  8061. /* readonly */
  8062. Node node;
  8063. Vector3 normal;
  8064. Vector3 position;
  8065. uint subObject;
  8066. Vector2 textureUV;
  8067. };
  8068. class Rect
  8069. {
  8070. // Methods:
  8071. void Clear();
  8072. void Clip(const Rect&);
  8073. void Define(const Vector2&);
  8074. void Define(const Vector2&, const Vector2&);
  8075. bool Defined() const;
  8076. bool Equals(const Rect&) const;
  8077. Intersection IsInside(const Vector2&) const;
  8078. void Merge(const Rect&);
  8079. void Merge(const Vector2&);
  8080. Vector4 ToVector4() const;
  8081. // Properties:
  8082. float bottom;
  8083. /* readonly */
  8084. Vector2 center;
  8085. /* readonly */
  8086. Vector2 halfSize;
  8087. float left;
  8088. Vector2 max;
  8089. Vector2 min;
  8090. float right;
  8091. /* readonly */
  8092. Vector2 size;
  8093. float top;
  8094. };
  8095. class RefCounted
  8096. {
  8097. // Properties:
  8098. /* readonly */
  8099. int refs;
  8100. /* readonly */
  8101. int weakRefs;
  8102. };
  8103. class RenderPath
  8104. {
  8105. // Methods:
  8106. void AddCommand(const RenderPathCommand&);
  8107. void AddRenderTarget(const RenderTargetInfo&);
  8108. bool Append(XMLFile);
  8109. RenderPath Clone();
  8110. void InsertCommand(uint, const RenderPathCommand&);
  8111. bool Load(XMLFile);
  8112. void RemoveCommand(uint);
  8113. void RemoveCommands(const String&);
  8114. void RemoveRenderTarget(const String&);
  8115. void RemoveRenderTarget(uint);
  8116. void RemoveRenderTargts(const String&);
  8117. void SetEnabled(const String&, bool);
  8118. void ToggleEnabled(const String&);
  8119. // Properties:
  8120. Array<RenderPathCommand> commands;
  8121. /* readonly */
  8122. uint numCommands;
  8123. /* readonly */
  8124. uint numRenderTargets;
  8125. /* readonly */
  8126. int refs;
  8127. Array<RenderTargetInfo> renderTargets;
  8128. Array<Variant> shaderParameters;
  8129. /* readonly */
  8130. int weakRefs;
  8131. };
  8132. class RenderPathCommand
  8133. {
  8134. // Methods:
  8135. void RemoveShaderParameter(const String&);
  8136. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8137. // Properties:
  8138. BlendMode blendMode;
  8139. Color clearColor;
  8140. float clearDepth;
  8141. uint clearFlags;
  8142. uint clearStencil;
  8143. String depthStencilName;
  8144. bool enabled;
  8145. String eventName;
  8146. bool markToStencil;
  8147. String metadata;
  8148. uint numOutputs;
  8149. Array<CubeMapFace> outputFaces;
  8150. Array<String> outputNames;
  8151. String pass;
  8152. String pixelShaderDefines;
  8153. String pixelShaderName;
  8154. Array<Variant> shaderParameters;
  8155. RenderCommandSortMode sortMode;
  8156. String tag;
  8157. Array<String> textureNames;
  8158. RenderCommandType type;
  8159. bool useFogColor;
  8160. bool useLitBase;
  8161. bool vertexLights;
  8162. String vertexShaderDefines;
  8163. String vertexShaderName;
  8164. };
  8165. class RenderSurface
  8166. {
  8167. // Methods:
  8168. void QueueUpdate();
  8169. // Properties:
  8170. /* readonly */
  8171. int height;
  8172. RenderSurface linkedDepthStencil;
  8173. RenderSurface linkedRenderTarget;
  8174. uint numViewports;
  8175. /* readonly */
  8176. Texture parentTexture;
  8177. RenderSurfaceUpdateMode updateMode;
  8178. /* readonly */
  8179. TextureUsage usage;
  8180. Array<Viewport> viewports;
  8181. /* readonly */
  8182. int width;
  8183. };
  8184. class RenderTargetInfo
  8185. {
  8186. // Properties:
  8187. bool cubemap;
  8188. bool enabled;
  8189. bool filtered;
  8190. uint format;
  8191. String name;
  8192. bool persistent;
  8193. bool sRGB;
  8194. Vector2 size;
  8195. RenderTargetSizeMode sizeMode;
  8196. String tag;
  8197. };
  8198. class Renderer
  8199. {
  8200. // Methods:
  8201. void DrawDebugGeometry(bool) const;
  8202. bool HasSubscribedToEvent(Object, const String&);
  8203. bool HasSubscribedToEvent(const String&);
  8204. void ReloadShaders() const;
  8205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8206. void SetDefaultRenderPath(XMLFile);
  8207. void SetVSMShadowParameters(float, float);
  8208. // Properties:
  8209. /* readonly */
  8210. String category;
  8211. /* readonly */
  8212. Material defaultLightRamp;
  8213. /* readonly */
  8214. Material defaultLightSpot;
  8215. /* readonly */
  8216. Material defaultMaterial;
  8217. RenderPath defaultRenderPath;
  8218. Technique defaultTechnique;
  8219. /* readonly */
  8220. Zone defaultZone;
  8221. bool drawShadows;
  8222. bool dynamicInstancing;
  8223. bool hdrRendering;
  8224. int materialQuality;
  8225. int maxOccluderTriangles;
  8226. int maxShadowMaps;
  8227. int maxSortedInstances;
  8228. int minInstances;
  8229. float mobileNormalOffsetMul;
  8230. float mobileShadowBiasAdd;
  8231. float mobileShadowBiasMul;
  8232. /* readonly */
  8233. uint numBatches;
  8234. int numExtraInstancingBufferElements;
  8235. /* readonly */
  8236. Array<uint> numGeometries;
  8237. /* readonly */
  8238. Array<uint> numLights;
  8239. /* readonly */
  8240. Array<uint> numOccluders;
  8241. /* readonly */
  8242. uint numPrimitives;
  8243. /* readonly */
  8244. Array<uint> numShadowMaps;
  8245. uint numViewports;
  8246. /* readonly */
  8247. uint numViews;
  8248. float occluderSizeThreshold;
  8249. int occlusionBufferSize;
  8250. /* readonly */
  8251. int refs;
  8252. bool reuseShadowMaps;
  8253. int shadowMapSize;
  8254. ShadowQuality shadowQuality;
  8255. float shadowSoftness;
  8256. bool specularLighting;
  8257. int textureAnisotropy;
  8258. TextureFilterMode textureFilterMode;
  8259. int textureQuality;
  8260. bool threadedOcclusion;
  8261. /* readonly */
  8262. StringHash type;
  8263. /* readonly */
  8264. String typeName;
  8265. Array<Viewport> viewports;
  8266. Vector2 vsmShadowParameters;
  8267. /* readonly */
  8268. int weakRefs;
  8269. };
  8270. class Resource
  8271. {
  8272. // Methods:
  8273. bool HasSubscribedToEvent(Object, const String&);
  8274. bool HasSubscribedToEvent(const String&);
  8275. bool Load(File);
  8276. bool Load(VectorBuffer&);
  8277. bool Save(File) const;
  8278. bool Save(VectorBuffer&) const;
  8279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8280. // Properties:
  8281. /* readonly */
  8282. String category;
  8283. /* readonly */
  8284. uint memoryUse;
  8285. String name;
  8286. /* readonly */
  8287. int refs;
  8288. /* readonly */
  8289. StringHash type;
  8290. /* readonly */
  8291. String typeName;
  8292. /* readonly */
  8293. uint useTimer;
  8294. /* readonly */
  8295. int weakRefs;
  8296. };
  8297. class ResourceCache
  8298. {
  8299. // Methods:
  8300. bool AddManualResource(Resource);
  8301. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8302. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8303. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8304. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8305. bool Exists(const String&) const;
  8306. Resource GetExistingResource(StringHash, const String&);
  8307. Resource GetExistingResource(const String&, const String&);
  8308. File GetFile(const String&);
  8309. String GetPreferredResourceDir(const String&) const;
  8310. Resource GetResource(StringHash, const String&, bool = true);
  8311. Resource GetResource(const String&, const String&, bool = true);
  8312. String GetResourceFileName(const String&) const;
  8313. bool HasSubscribedToEvent(Object, const String&);
  8314. bool HasSubscribedToEvent(const String&);
  8315. void ReleaseAllResources(bool = false);
  8316. void ReleaseResource(const String&, const String&, bool = false);
  8317. void ReleaseResources(StringHash, bool = false);
  8318. void ReleaseResources(const String&, bool = false);
  8319. void ReleaseResources(const String&, const String&, bool = false);
  8320. bool ReloadResource(Resource);
  8321. void ReloadResourceWithDependencies(const String&);
  8322. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8323. void RemovePackageFile(const String&, bool = true, bool = false);
  8324. void RemoveResourceDir(const String&);
  8325. String SanitateResourceDirName(const String&) const;
  8326. String SanitateResourceName(const String&) const;
  8327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8328. // Properties:
  8329. bool autoReloadResources;
  8330. /* readonly */
  8331. String category;
  8332. int finishBackgroundResourcesMs;
  8333. Array<uint64> memoryBudget;
  8334. /* readonly */
  8335. Array<uint64> memoryUse;
  8336. /* readonly */
  8337. uint numBackgroundLoadResources;
  8338. /* readonly */
  8339. Array<PackageFile> packageFiles;
  8340. /* readonly */
  8341. int refs;
  8342. /* readonly */
  8343. Array<String> resourceDirs;
  8344. bool returnFailedResources;
  8345. /* readonly */
  8346. bool seachPackagesFirst;
  8347. /* writeonly */
  8348. bool searchPackagesFirst;
  8349. /* readonly */
  8350. uint64 totalMemoryUse;
  8351. /* readonly */
  8352. StringHash type;
  8353. /* readonly */
  8354. String typeName;
  8355. /* readonly */
  8356. int weakRefs;
  8357. };
  8358. class ResourceRef
  8359. {
  8360. // Properties:
  8361. String name;
  8362. StringHash type;
  8363. };
  8364. class ResourceRefList
  8365. {
  8366. // Methods:
  8367. void Resize(uint);
  8368. // Properties:
  8369. /* readonly */
  8370. bool empty;
  8371. /* readonly */
  8372. uint length;
  8373. Array<String> names;
  8374. StringHash type;
  8375. };
  8376. class RibbonTrail
  8377. {
  8378. // Methods:
  8379. void ApplyAttributes();
  8380. void Commit();
  8381. void DrawDebugGeometry(DebugRenderer, bool);
  8382. Variant GetAttribute(const String&) const;
  8383. ValueAnimation GetAttributeAnimation(const String&) const;
  8384. float GetAttributeAnimationSpeed(const String&) const;
  8385. float GetAttributeAnimationTime(const String&) const;
  8386. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8387. Variant GetAttributeDefault(const String&) const;
  8388. bool GetInterceptNetworkUpdate(const String&) const;
  8389. bool HasSubscribedToEvent(Object, const String&);
  8390. bool HasSubscribedToEvent(const String&);
  8391. bool IsInView(Camera) const;
  8392. bool Load(File, bool = false);
  8393. bool Load(VectorBuffer&, bool = false);
  8394. bool LoadJSON(const JSONValue&, bool = false);
  8395. bool LoadXML(const XMLElement&, bool = false);
  8396. void MarkNetworkUpdate() const;
  8397. void Remove();
  8398. void RemoveAttributeAnimation(const String&);
  8399. void RemoveInstanceDefault();
  8400. void RemoveObjectAnimation();
  8401. void ResetToDefault();
  8402. bool Save(File) const;
  8403. bool Save(VectorBuffer&) const;
  8404. bool SaveJSON(JSONValue&) const;
  8405. bool SaveXML(XMLElement&) const;
  8406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8407. void SetAnimationTime(float);
  8408. bool SetAttribute(const String&, const Variant&);
  8409. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8410. void SetAttributeAnimationSpeed(const String&, float);
  8411. void SetAttributeAnimationTime(const String&, float);
  8412. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8413. void SetInterceptNetworkUpdate(const String&, bool);
  8414. // Properties:
  8415. bool animationEnabled;
  8416. float animationLodBias;
  8417. /* readonly */
  8418. Array<Variant> attributeDefaults;
  8419. /* readonly */
  8420. Array<AttributeInfo> attributeInfos;
  8421. Array<Variant> attributes;
  8422. /* readonly */
  8423. BoundingBox boundingBox;
  8424. bool castShadows;
  8425. /* readonly */
  8426. String category;
  8427. float drawDistance;
  8428. bool emitting;
  8429. bool enabled;
  8430. /* readonly */
  8431. bool enabledEffective;
  8432. Color endColor;
  8433. float endScale;
  8434. /* readonly */
  8435. uint id;
  8436. /* readonly */
  8437. bool inView;
  8438. float lifetime;
  8439. uint lightMask;
  8440. float lodBias;
  8441. Material material;
  8442. uint maxLights;
  8443. /* readonly */
  8444. Node node;
  8445. /* readonly */
  8446. uint numAttributes;
  8447. ObjectAnimation objectAnimation;
  8448. bool occludee;
  8449. bool occluder;
  8450. /* readonly */
  8451. int refs;
  8452. float shadowDistance;
  8453. uint shadowMask;
  8454. bool sorted;
  8455. Color startColor;
  8456. float startScale;
  8457. uint tailColumn;
  8458. bool temporary;
  8459. TrailType trailType;
  8460. /* readonly */
  8461. StringHash type;
  8462. /* readonly */
  8463. String typeName;
  8464. bool updateInvisible;
  8465. float vertexDistance;
  8466. uint viewMask;
  8467. /* readonly */
  8468. int weakRefs;
  8469. float width;
  8470. /* readonly */
  8471. BoundingBox worldBoundingBox;
  8472. /* readonly */
  8473. Zone zone;
  8474. uint zoneMask;
  8475. };
  8476. class RigidBody
  8477. {
  8478. // Methods:
  8479. void Activate();
  8480. void ApplyAttributes();
  8481. void ApplyForce(const Vector3&);
  8482. void ApplyForce(const Vector3&, const Vector3&);
  8483. void ApplyImpulse(const Vector3&);
  8484. void ApplyImpulse(const Vector3&, const Vector3&);
  8485. void ApplyTorque(const Vector3&);
  8486. void ApplyTorqueImpulse(const Vector3&);
  8487. void DisableMassUpdate();
  8488. void DrawDebugGeometry(DebugRenderer, bool);
  8489. void EnableMassUpdate();
  8490. Variant GetAttribute(const String&) const;
  8491. ValueAnimation GetAttributeAnimation(const String&) const;
  8492. float GetAttributeAnimationSpeed(const String&) const;
  8493. float GetAttributeAnimationTime(const String&) const;
  8494. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8495. Variant GetAttributeDefault(const String&) const;
  8496. bool GetInterceptNetworkUpdate(const String&) const;
  8497. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8498. bool HasSubscribedToEvent(Object, const String&);
  8499. bool HasSubscribedToEvent(const String&);
  8500. bool Load(File, bool = false);
  8501. bool Load(VectorBuffer&, bool = false);
  8502. bool LoadJSON(const JSONValue&, bool = false);
  8503. bool LoadXML(const XMLElement&, bool = false);
  8504. void MarkNetworkUpdate() const;
  8505. void ReAddBodyToWorld();
  8506. void Remove();
  8507. void RemoveAttributeAnimation(const String&);
  8508. void RemoveInstanceDefault();
  8509. void RemoveObjectAnimation();
  8510. void ResetForces();
  8511. void ResetToDefault();
  8512. bool Save(File) const;
  8513. bool Save(VectorBuffer&) const;
  8514. bool SaveJSON(JSONValue&) const;
  8515. bool SaveXML(XMLElement&) const;
  8516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8517. void SetAnimationTime(float);
  8518. bool SetAttribute(const String&, const Variant&);
  8519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8520. void SetAttributeAnimationSpeed(const String&, float);
  8521. void SetAttributeAnimationTime(const String&, float);
  8522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8523. void SetCollisionLayerAndMask(uint, uint);
  8524. void SetInterceptNetworkUpdate(const String&, bool);
  8525. void SetTransform(const Vector3&, const Quaternion&);
  8526. // Properties:
  8527. /* readonly */
  8528. bool active;
  8529. float angularDamping;
  8530. Vector3 angularFactor;
  8531. float angularRestThreshold;
  8532. Vector3 angularVelocity;
  8533. bool animationEnabled;
  8534. Vector3 anisotropicFriction;
  8535. /* readonly */
  8536. Array<Variant> attributeDefaults;
  8537. /* readonly */
  8538. Array<AttributeInfo> attributeInfos;
  8539. Array<Variant> attributes;
  8540. /* readonly */
  8541. String category;
  8542. float ccdMotionThreshold;
  8543. float ccdRadius;
  8544. /* readonly */
  8545. Vector3 centerOfMass;
  8546. /* readonly */
  8547. Array<RigidBody> collidingBodies;
  8548. CollisionEventMode collisionEventMode;
  8549. uint collisionLayer;
  8550. uint collisionMask;
  8551. float contactProcessingThreshold;
  8552. bool enabled;
  8553. /* readonly */
  8554. bool enabledEffective;
  8555. float friction;
  8556. Vector3 gravityOverride;
  8557. /* readonly */
  8558. uint id;
  8559. bool kinematic;
  8560. float linearDamping;
  8561. Vector3 linearFactor;
  8562. float linearRestThreshold;
  8563. Vector3 linearVelocity;
  8564. float mass;
  8565. /* readonly */
  8566. Node node;
  8567. /* readonly */
  8568. uint numAttributes;
  8569. ObjectAnimation objectAnimation;
  8570. Vector3 position;
  8571. /* readonly */
  8572. int refs;
  8573. float restitution;
  8574. float rollingFriction;
  8575. Quaternion rotation;
  8576. bool temporary;
  8577. bool trigger;
  8578. /* readonly */
  8579. StringHash type;
  8580. /* readonly */
  8581. String typeName;
  8582. bool useGravity;
  8583. /* readonly */
  8584. int weakRefs;
  8585. };
  8586. class RigidBody2D
  8587. {
  8588. // Methods:
  8589. void ApplyAngularImpulse(float, bool);
  8590. void ApplyAttributes();
  8591. void ApplyForce(const Vector2&, const Vector2&, bool);
  8592. void ApplyForceToCenter(const Vector2&, bool);
  8593. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8594. void ApplyTorque(float, bool);
  8595. void DrawDebugGeometry(DebugRenderer, bool);
  8596. Variant GetAttribute(const String&) const;
  8597. ValueAnimation GetAttributeAnimation(const String&) const;
  8598. float GetAttributeAnimationSpeed(const String&) const;
  8599. float GetAttributeAnimationTime(const String&) const;
  8600. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8601. Variant GetAttributeDefault(const String&) const;
  8602. bool GetInterceptNetworkUpdate(const String&) const;
  8603. bool HasSubscribedToEvent(Object, const String&);
  8604. bool HasSubscribedToEvent(const String&);
  8605. bool Load(File, bool = false);
  8606. bool Load(VectorBuffer&, bool = false);
  8607. bool LoadJSON(const JSONValue&, bool = false);
  8608. bool LoadXML(const XMLElement&, bool = false);
  8609. void MarkNetworkUpdate() const;
  8610. void Remove();
  8611. void RemoveAttributeAnimation(const String&);
  8612. void RemoveInstanceDefault();
  8613. void RemoveObjectAnimation();
  8614. void ResetToDefault();
  8615. bool Save(File) const;
  8616. bool Save(VectorBuffer&) const;
  8617. bool SaveJSON(JSONValue&) const;
  8618. bool SaveXML(XMLElement&) const;
  8619. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8620. void SetAnimationTime(float);
  8621. bool SetAttribute(const String&, const Variant&);
  8622. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8623. void SetAttributeAnimationSpeed(const String&, float);
  8624. void SetAttributeAnimationTime(const String&, float);
  8625. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8626. void SetInterceptNetworkUpdate(const String&, bool);
  8627. // Properties:
  8628. bool allowSleep;
  8629. float angularDamping;
  8630. bool animationEnabled;
  8631. /* readonly */
  8632. Array<Variant> attributeDefaults;
  8633. /* readonly */
  8634. Array<AttributeInfo> attributeInfos;
  8635. Array<Variant> attributes;
  8636. bool awake;
  8637. BodyType2D bodyType;
  8638. bool bullet;
  8639. /* readonly */
  8640. String category;
  8641. bool enabled;
  8642. /* readonly */
  8643. bool enabledEffective;
  8644. bool fixedRotation;
  8645. float gravityScale;
  8646. /* readonly */
  8647. uint id;
  8648. float inertia;
  8649. float linearDamping;
  8650. Vector2 linearVelocity;
  8651. float mass;
  8652. Vector2 massCenter;
  8653. /* readonly */
  8654. Node node;
  8655. /* readonly */
  8656. uint numAttributes;
  8657. ObjectAnimation objectAnimation;
  8658. /* readonly */
  8659. int refs;
  8660. bool temporary;
  8661. /* readonly */
  8662. StringHash type;
  8663. /* readonly */
  8664. String typeName;
  8665. bool useFixtureMass;
  8666. /* readonly */
  8667. int weakRefs;
  8668. };
  8669. class Scene
  8670. {
  8671. // Methods:
  8672. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8673. void AddRequiredPackageFile(PackageFile);
  8674. void AddTag(const String&);
  8675. void AddTags(const String&, int8 = ';');
  8676. void ApplyAttributes();
  8677. void Clear(bool = true, bool = true);
  8678. void ClearRequiredPackageFiles();
  8679. Component CloneComponent(Component, CreateMode, uint = 0);
  8680. Component CloneComponent(Component, uint = 0);
  8681. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8682. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8683. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8684. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8685. Variant GetAttribute(const String&) const;
  8686. ValueAnimation GetAttributeAnimation(const String&) const;
  8687. float GetAttributeAnimationSpeed(const String&) const;
  8688. float GetAttributeAnimationTime(const String&) const;
  8689. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8690. Variant GetAttributeDefault(const String&) const;
  8691. Node GetChild(const String&, bool = false) const;
  8692. Array<Node> GetChildren(bool = false) const;
  8693. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8694. Array<Node> GetChildrenWithScript(bool = false) const;
  8695. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8696. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8697. Component GetComponent(const String&, bool = false) const;
  8698. Component GetComponent(uint) const;
  8699. Array<Component> GetComponents() const;
  8700. Array<Component> GetComponents(const String&, bool = false) const;
  8701. bool GetInterceptNetworkUpdate(const String&) const;
  8702. Node GetNode(uint) const;
  8703. Array<Node> GetNodesWithTag(const String&) const;
  8704. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8705. Component GetParentComponent(const String&, bool = false) const;
  8706. ScriptObject GetScriptObject() const;
  8707. ScriptObject GetScriptObject(const String&) const;
  8708. bool HasComponent(const String&) const;
  8709. bool HasSubscribedToEvent(Object, const String&);
  8710. bool HasSubscribedToEvent(const String&);
  8711. bool HasTag(const String&);
  8712. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8713. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8714. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8715. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8716. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8717. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8718. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8719. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8720. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8721. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8722. bool Load(File, bool = false);
  8723. bool Load(VectorBuffer&, bool = false);
  8724. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8725. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8726. bool LoadJSON(File);
  8727. bool LoadJSON(VectorBuffer&);
  8728. bool LoadJSON(const JSONValue&, bool = false);
  8729. bool LoadXML(File);
  8730. bool LoadXML(VectorBuffer&);
  8731. bool LoadXML(const XMLElement&, bool = false);
  8732. Vector3 LocalToWorld(const Vector3&) const;
  8733. Vector3 LocalToWorld(const Vector4&) const;
  8734. Vector2 LocalToWorld2D(const Vector2&) const;
  8735. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8736. void MarkNetworkUpdate() const;
  8737. void Pitch(float, TransformSpace = TS_LOCAL);
  8738. void RegisterVar(const String&);
  8739. void Remove();
  8740. void RemoveAllChildren();
  8741. void RemoveAllComponents();
  8742. void RemoveAllTags();
  8743. void RemoveAttributeAnimation(const String&);
  8744. void RemoveChild(Node);
  8745. void RemoveChildren(bool, bool, bool);
  8746. void RemoveComponent(Component);
  8747. void RemoveComponent(const String&);
  8748. void RemoveComponents(bool, bool);
  8749. void RemoveComponents(const String&);
  8750. void RemoveInstanceDefault();
  8751. void RemoveObjectAnimation();
  8752. bool RemoveTag(const String&);
  8753. void ReorderComponent(Component, uint);
  8754. void ResetToDefault();
  8755. void Roll(float, TransformSpace = TS_LOCAL);
  8756. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8757. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8758. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8759. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8760. bool Save(File) const;
  8761. bool Save(VectorBuffer&) const;
  8762. bool SaveJSON(File, const String& = "\t");
  8763. bool SaveJSON(JSONValue&) const;
  8764. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8765. bool SaveXML(File, const String& = "\t");
  8766. bool SaveXML(VectorBuffer&, const String& = "\t");
  8767. bool SaveXML(XMLElement&) const;
  8768. void Scale(const Vector3&);
  8769. void Scale(float);
  8770. void Scale2D(const Vector2&);
  8771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8772. void SetAnimationTime(float);
  8773. bool SetAttribute(const String&, const Variant&);
  8774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8775. void SetAttributeAnimationSpeed(const String&, float);
  8776. void SetAttributeAnimationTime(const String&, float);
  8777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8778. void SetInterceptNetworkUpdate(const String&, bool);
  8779. void SetPosition2D(float, float);
  8780. void SetScale(float);
  8781. void SetScale2D(float, float);
  8782. void SetTransform(const Vector3&, const Quaternion&);
  8783. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8784. void SetTransform(const Vector3&, const Quaternion&, float);
  8785. void SetTransform2D(const Vector2&, float);
  8786. void SetTransform2D(const Vector2&, float, const Vector2&);
  8787. void SetTransform2D(const Vector2&, float, float);
  8788. void SetWorldTransform(const Vector3&, const Quaternion&);
  8789. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8790. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8791. void SetWorldTransform2D(const Vector2&, float);
  8792. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8793. void SetWorldTransform2D(const Vector2&, float, float);
  8794. void StopAsyncLoading();
  8795. const String& GetVarName(StringHash) const;
  8796. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8797. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8798. void UnregisterAllVars(const String&);
  8799. void UnregisterVar(const String&);
  8800. void Update(float);
  8801. Vector3 WorldToLocal(const Vector3&) const;
  8802. Vector3 WorldToLocal(const Vector4&) const;
  8803. Vector2 WorldToLocal2D(const Vector2&) const;
  8804. void Yaw(float, TransformSpace = TS_LOCAL);
  8805. // Properties:
  8806. bool animationEnabled;
  8807. /* readonly */
  8808. LoadMode asyncLoadMode;
  8809. /* readonly */
  8810. bool asyncLoading;
  8811. int asyncLoadingMs;
  8812. /* readonly */
  8813. float asyncProgress;
  8814. /* readonly */
  8815. Array<Variant> attributeDefaults;
  8816. /* readonly */
  8817. Array<AttributeInfo> attributeInfos;
  8818. Array<Variant> attributes;
  8819. /* readonly */
  8820. String category;
  8821. /* readonly */
  8822. uint checksum;
  8823. /* readonly */
  8824. Array<Node> children;
  8825. /* readonly */
  8826. Array<Component> components;
  8827. /* readonly */
  8828. DebugRenderer debugRenderer;
  8829. Vector3 direction;
  8830. float elapsedTime;
  8831. /* readonly */
  8832. String fileName;
  8833. uint id;
  8834. String name;
  8835. /* readonly */
  8836. uint numAllChildren;
  8837. /* readonly */
  8838. uint numAttributes;
  8839. /* readonly */
  8840. uint numChildren;
  8841. /* readonly */
  8842. uint numComponents;
  8843. ObjectAnimation objectAnimation;
  8844. /* readonly */
  8845. Octree octree;
  8846. Node parent;
  8847. /* readonly */
  8848. PhysicsWorld physicsWorld;
  8849. /* readonly */
  8850. PhysicsWorld2D physicsWorld2D;
  8851. Vector3 position;
  8852. Vector2 position2D;
  8853. /* readonly */
  8854. int refs;
  8855. /* readonly */
  8856. Array<PackageFile> requiredPackageFiles;
  8857. /* readonly */
  8858. Vector3 right;
  8859. Quaternion rotation;
  8860. float rotation2D;
  8861. Vector3 scale;
  8862. Vector2 scale2D;
  8863. /* readonly */
  8864. ScriptObject scriptObject;
  8865. float smoothingConstant;
  8866. float snapThreshold;
  8867. /* readonly */
  8868. Array<String> tags;
  8869. bool temporary;
  8870. float timeScale;
  8871. /* readonly */
  8872. Matrix3x4 transform;
  8873. /* readonly */
  8874. StringHash type;
  8875. /* readonly */
  8876. String typeName;
  8877. /* readonly */
  8878. Vector3 up;
  8879. bool updateEnabled;
  8880. /* readonly */
  8881. VariantMap vars;
  8882. /* readonly */
  8883. int weakRefs;
  8884. Vector3 worldDirection;
  8885. Vector3 worldPosition;
  8886. Vector2 worldPosition2D;
  8887. /* readonly */
  8888. Vector3 worldRight;
  8889. Quaternion worldRotation;
  8890. float worldRotation2D;
  8891. Vector3 worldScale;
  8892. Vector2 worldScale2D;
  8893. /* readonly */
  8894. Matrix3x4 worldTransform;
  8895. /* readonly */
  8896. Vector3 worldUp;
  8897. };
  8898. class Script
  8899. {
  8900. // Methods:
  8901. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8902. bool Execute(const String&);
  8903. bool HasSubscribedToEvent(Object, const String&);
  8904. bool HasSubscribedToEvent(const String&);
  8905. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8906. // Properties:
  8907. /* readonly */
  8908. String category;
  8909. Scene defaultScene;
  8910. ScriptFile defaultScriptFile;
  8911. bool executeConsoleCommands;
  8912. /* readonly */
  8913. int refs;
  8914. /* readonly */
  8915. StringHash type;
  8916. /* readonly */
  8917. String typeName;
  8918. /* readonly */
  8919. int weakRefs;
  8920. };
  8921. class ScriptFile
  8922. {
  8923. // Methods:
  8924. void ClearDelayedExecute(const String& = String ( ));
  8925. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8926. bool Execute(const String&, const Array<Variant> = null);
  8927. bool HasSubscribedToEvent(Object, const String&);
  8928. bool HasSubscribedToEvent(const String&);
  8929. bool Load(File);
  8930. bool Load(VectorBuffer&);
  8931. bool Save(File) const;
  8932. bool Save(VectorBuffer&) const;
  8933. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8934. // Properties:
  8935. /* readonly */
  8936. String category;
  8937. /* readonly */
  8938. bool compiled;
  8939. /* readonly */
  8940. uint memoryUse;
  8941. String name;
  8942. /* readonly */
  8943. int refs;
  8944. /* readonly */
  8945. StringHash type;
  8946. /* readonly */
  8947. String typeName;
  8948. /* readonly */
  8949. uint useTimer;
  8950. /* readonly */
  8951. int weakRefs;
  8952. };
  8953. class ScriptInstance
  8954. {
  8955. // Methods:
  8956. void ApplyAttributes();
  8957. void ClearDelayedExecute(const String& = String ( ));
  8958. bool CreateObject(ScriptFile, const String&);
  8959. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8960. void DrawDebugGeometry(DebugRenderer, bool);
  8961. bool Execute(const String&, const Array<Variant> = null);
  8962. Variant GetAttribute(const String&) const;
  8963. ValueAnimation GetAttributeAnimation(const String&) const;
  8964. float GetAttributeAnimationSpeed(const String&) const;
  8965. float GetAttributeAnimationTime(const String&) const;
  8966. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8967. Variant GetAttributeDefault(const String&) const;
  8968. bool GetInterceptNetworkUpdate(const String&) const;
  8969. bool HasMethod(const String&) const;
  8970. bool HasSubscribedToEvent(Object, const String&);
  8971. bool HasSubscribedToEvent(const String&);
  8972. bool IsA(const String&) const;
  8973. bool Load(File, bool = false);
  8974. bool Load(VectorBuffer&, bool = false);
  8975. bool LoadJSON(const JSONValue&, bool = false);
  8976. bool LoadXML(const XMLElement&, bool = false);
  8977. void MarkNetworkUpdate() const;
  8978. void Remove();
  8979. void RemoveAttributeAnimation(const String&);
  8980. void RemoveInstanceDefault();
  8981. void RemoveObjectAnimation();
  8982. void ResetToDefault();
  8983. bool Save(File) const;
  8984. bool Save(VectorBuffer&) const;
  8985. bool SaveJSON(JSONValue&) const;
  8986. bool SaveXML(XMLElement&) const;
  8987. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8988. void SetAnimationTime(float);
  8989. bool SetAttribute(const String&, const Variant&);
  8990. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8991. void SetAttributeAnimationSpeed(const String&, float);
  8992. void SetAttributeAnimationTime(const String&, float);
  8993. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8994. void SetInterceptNetworkUpdate(const String&, bool);
  8995. // Properties:
  8996. bool animationEnabled;
  8997. /* readonly */
  8998. Array<Variant> attributeDefaults;
  8999. /* readonly */
  9000. Array<AttributeInfo> attributeInfos;
  9001. Array<Variant> attributes;
  9002. /* readonly */
  9003. String category;
  9004. String className;
  9005. bool enabled;
  9006. /* readonly */
  9007. bool enabledEffective;
  9008. /* readonly */
  9009. uint id;
  9010. /* readonly */
  9011. Node node;
  9012. /* readonly */
  9013. uint numAttributes;
  9014. ObjectAnimation objectAnimation;
  9015. /* readonly */
  9016. int refs;
  9017. ScriptFile scriptFile;
  9018. /* readonly */
  9019. ScriptObject scriptObject;
  9020. bool temporary;
  9021. /* readonly */
  9022. StringHash type;
  9023. /* readonly */
  9024. String typeName;
  9025. /* readonly */
  9026. int weakRefs;
  9027. };
  9028. class ScriptObject
  9029. {
  9030. };
  9031. class ScrollBar
  9032. {
  9033. // Methods:
  9034. void AddChild(UIElement);
  9035. void AddTag(const String&);
  9036. void AddTags(const String&, int8 = ';');
  9037. void ApplyAttributes();
  9038. void BringToFront();
  9039. void ChangeValue(float);
  9040. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9041. void DisableLayoutUpdate();
  9042. IntVector2 ElementToScreen(const IntVector2&);
  9043. void EnableLayoutUpdate();
  9044. uint FindChild(UIElement) const;
  9045. Variant GetAttribute(const String&) const;
  9046. ValueAnimation GetAttributeAnimation(const String&) const;
  9047. float GetAttributeAnimationSpeed(const String&) const;
  9048. float GetAttributeAnimationTime(const String&) const;
  9049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9050. Variant GetAttributeDefault(const String&) const;
  9051. UIElement GetChild(const String&, bool = false) const;
  9052. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9053. Array<UIElement> GetChildren(bool = false) const;
  9054. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9055. UIElement GetElementEventSender() const;
  9056. bool GetInterceptNetworkUpdate(const String&) const;
  9057. uint GetNumChildren(bool) const;
  9058. bool HasSubscribedToEvent(Object, const String&);
  9059. bool HasSubscribedToEvent(const String&);
  9060. bool HasTag(const String&) const;
  9061. void InsertChild(uint, UIElement);
  9062. bool IsInside(IntVector2, bool);
  9063. bool IsInsideCombined(IntVector2, bool);
  9064. bool Load(File, bool = false);
  9065. bool Load(VectorBuffer&, bool = false);
  9066. bool LoadChildXML(XMLFile, XMLFile = null);
  9067. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9068. bool LoadJSON(const JSONValue&, bool = false);
  9069. bool LoadXML(File);
  9070. bool LoadXML(VectorBuffer&);
  9071. bool LoadXML(XMLFile, XMLFile);
  9072. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9073. bool LoadXML(const XMLElement&, bool = false);
  9074. void MarkNetworkUpdate() const;
  9075. void Remove();
  9076. void RemoveAllChildren();
  9077. void RemoveAllTags();
  9078. void RemoveAttributeAnimation(const String&);
  9079. void RemoveChild(UIElement, uint = 0);
  9080. void RemoveChild(uint);
  9081. void RemoveInstanceDefault();
  9082. void RemoveObjectAnimation();
  9083. bool RemoveTag(const String&);
  9084. void ResetDeepEnabled();
  9085. void ResetToDefault();
  9086. bool Save(File) const;
  9087. bool Save(VectorBuffer&) const;
  9088. bool SaveJSON(JSONValue&) const;
  9089. bool SaveXML(File, const String& = "\t");
  9090. bool SaveXML(VectorBuffer&, const String& = "\t");
  9091. bool SaveXML(XMLElement&) const;
  9092. IntVector2 ScreenToElement(const IntVector2&);
  9093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9094. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9095. void SetAnimationTime(float);
  9096. bool SetAttribute(const String&, const Variant&);
  9097. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9098. void SetAttributeAnimationSpeed(const String&, float);
  9099. void SetAttributeAnimationTime(const String&, float);
  9100. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9101. void SetDeepEnabled(bool);
  9102. void SetEnabledRecursive(bool);
  9103. void SetFixedHeight(int);
  9104. void SetFixedSize(int, int);
  9105. void SetFixedWidth(int);
  9106. void SetInterceptNetworkUpdate(const String&, bool);
  9107. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9108. void SetMaxSize(int, int);
  9109. void SetMinSize(int, int);
  9110. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9111. void SetPosition(int, int);
  9112. void SetSize(int, int);
  9113. bool SetStyle(const String&, XMLFile = null);
  9114. bool SetStyle(const XMLElement&);
  9115. bool SetStyleAuto(XMLFile = null);
  9116. void StepBack();
  9117. void StepForward();
  9118. void UpdateLayout();
  9119. const Variant& GetVar(const StringHash&);
  9120. // Properties:
  9121. bool animationEnabled;
  9122. /* readonly */
  9123. Array<Variant> attributeDefaults;
  9124. /* readonly */
  9125. Array<AttributeInfo> attributeInfos;
  9126. Array<Variant> attributes;
  9127. /* readonly */
  9128. Button backButton;
  9129. bool bringToBack;
  9130. bool bringToFront;
  9131. /* readonly */
  9132. String category;
  9133. /* readonly */
  9134. IntVector2 childOffset;
  9135. /* readonly */
  9136. Array<UIElement> children;
  9137. IntRect clipBorder;
  9138. bool clipChildren;
  9139. /* writeonly */
  9140. Color color;
  9141. /* readonly */
  9142. bool colorGradient;
  9143. Array<Color> colors;
  9144. /* readonly */
  9145. IntRect combinedScreenRect;
  9146. XMLFile defaultStyle;
  9147. /* readonly */
  9148. float derivedOpacity;
  9149. /* readonly */
  9150. uint dragButtonCombo;
  9151. /* readonly */
  9152. int dragButtonCount;
  9153. uint dragDropMode;
  9154. bool editable;
  9155. /* readonly */
  9156. float effectiveScrollStep;
  9157. bool elementEventSender;
  9158. bool enabled;
  9159. /* readonly */
  9160. bool enabledSelf;
  9161. /* readonly */
  9162. bool fixedHeight;
  9163. /* readonly */
  9164. bool fixedSize;
  9165. /* readonly */
  9166. bool fixedWidth;
  9167. bool focus;
  9168. FocusMode focusMode;
  9169. /* readonly */
  9170. Button forwardButton;
  9171. int height;
  9172. HorizontalAlignment horizontalAlignment;
  9173. /* readonly */
  9174. bool hovering;
  9175. int indent;
  9176. int indentSpacing;
  9177. /* readonly */
  9178. int indentWidth;
  9179. bool internal;
  9180. IntRect layoutBorder;
  9181. Vector2 layoutFlexScale;
  9182. LayoutMode layoutMode;
  9183. int layoutSpacing;
  9184. int maxHeight;
  9185. IntVector2 maxSize;
  9186. int maxWidth;
  9187. int minHeight;
  9188. IntVector2 minSize;
  9189. int minWidth;
  9190. String name;
  9191. /* readonly */
  9192. uint numAllChildren;
  9193. /* readonly */
  9194. uint numAttributes;
  9195. /* readonly */
  9196. uint numChildren;
  9197. ObjectAnimation objectAnimation;
  9198. float opacity;
  9199. Orientation orientation;
  9200. UIElement parent;
  9201. IntVector2 position;
  9202. int priority;
  9203. float range;
  9204. /* readonly */
  9205. int refs;
  9206. /* readonly */
  9207. UIElement root;
  9208. /* readonly */
  9209. IntVector2 screenPosition;
  9210. float scrollStep;
  9211. bool selected;
  9212. IntVector2 size;
  9213. /* readonly */
  9214. Slider slider;
  9215. bool sortChildren;
  9216. float stepFactor;
  9217. String style;
  9218. /* readonly */
  9219. Array<String> tags;
  9220. bool temporary;
  9221. TraversalMode traversalMode;
  9222. /* readonly */
  9223. StringHash type;
  9224. /* readonly */
  9225. String typeName;
  9226. bool useDerivedOpacity;
  9227. float value;
  9228. /* readonly */
  9229. VariantMap vars;
  9230. VerticalAlignment verticalAlignment;
  9231. bool visible;
  9232. /* readonly */
  9233. bool visibleEffective;
  9234. /* readonly */
  9235. int weakRefs;
  9236. int width;
  9237. };
  9238. class ScrollView
  9239. {
  9240. // Methods:
  9241. void AddChild(UIElement);
  9242. void AddTag(const String&);
  9243. void AddTags(const String&, int8 = ';');
  9244. void ApplyAttributes();
  9245. void BringToFront();
  9246. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9247. void DisableLayoutUpdate();
  9248. IntVector2 ElementToScreen(const IntVector2&);
  9249. void EnableLayoutUpdate();
  9250. uint FindChild(UIElement) const;
  9251. Variant GetAttribute(const String&) const;
  9252. ValueAnimation GetAttributeAnimation(const String&) const;
  9253. float GetAttributeAnimationSpeed(const String&) const;
  9254. float GetAttributeAnimationTime(const String&) const;
  9255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9256. Variant GetAttributeDefault(const String&) const;
  9257. UIElement GetChild(const String&, bool = false) const;
  9258. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9259. Array<UIElement> GetChildren(bool = false) const;
  9260. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9261. UIElement GetElementEventSender() const;
  9262. bool GetInterceptNetworkUpdate(const String&) const;
  9263. uint GetNumChildren(bool) const;
  9264. bool HasSubscribedToEvent(Object, const String&);
  9265. bool HasSubscribedToEvent(const String&);
  9266. bool HasTag(const String&) const;
  9267. void InsertChild(uint, UIElement);
  9268. bool IsInside(IntVector2, bool);
  9269. bool IsInsideCombined(IntVector2, bool);
  9270. bool Load(File, bool = false);
  9271. bool Load(VectorBuffer&, bool = false);
  9272. bool LoadChildXML(XMLFile, XMLFile = null);
  9273. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9274. bool LoadJSON(const JSONValue&, bool = false);
  9275. bool LoadXML(File);
  9276. bool LoadXML(VectorBuffer&);
  9277. bool LoadXML(XMLFile, XMLFile);
  9278. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9279. bool LoadXML(const XMLElement&, bool = false);
  9280. void MarkNetworkUpdate() const;
  9281. void Remove();
  9282. void RemoveAllChildren();
  9283. void RemoveAllTags();
  9284. void RemoveAttributeAnimation(const String&);
  9285. void RemoveChild(UIElement, uint = 0);
  9286. void RemoveChild(uint);
  9287. void RemoveInstanceDefault();
  9288. void RemoveObjectAnimation();
  9289. bool RemoveTag(const String&);
  9290. void ResetDeepEnabled();
  9291. void ResetToDefault();
  9292. bool Save(File) const;
  9293. bool Save(VectorBuffer&) const;
  9294. bool SaveJSON(JSONValue&) const;
  9295. bool SaveXML(File, const String& = "\t");
  9296. bool SaveXML(VectorBuffer&, const String& = "\t");
  9297. bool SaveXML(XMLElement&) const;
  9298. IntVector2 ScreenToElement(const IntVector2&);
  9299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9300. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9301. void SetAnimationTime(float);
  9302. bool SetAttribute(const String&, const Variant&);
  9303. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9304. void SetAttributeAnimationSpeed(const String&, float);
  9305. void SetAttributeAnimationTime(const String&, float);
  9306. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9307. void SetDeepEnabled(bool);
  9308. void SetEnabledRecursive(bool);
  9309. void SetFixedHeight(int);
  9310. void SetFixedSize(int, int);
  9311. void SetFixedWidth(int);
  9312. void SetInterceptNetworkUpdate(const String&, bool);
  9313. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9314. void SetMaxSize(int, int);
  9315. void SetMinSize(int, int);
  9316. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9317. void SetPosition(int, int);
  9318. void SetScrollBarsVisible(bool, bool);
  9319. void SetSize(int, int);
  9320. bool SetStyle(const String&, XMLFile = null);
  9321. bool SetStyle(const XMLElement&);
  9322. bool SetStyleAuto(XMLFile = null);
  9323. void SetViewPosition(int, int);
  9324. void UpdateLayout();
  9325. const Variant& GetVar(const StringHash&);
  9326. // Properties:
  9327. bool animationEnabled;
  9328. /* readonly */
  9329. Array<Variant> attributeDefaults;
  9330. /* readonly */
  9331. Array<AttributeInfo> attributeInfos;
  9332. Array<Variant> attributes;
  9333. bool autoDisableChildren;
  9334. float autoDisableThreshold;
  9335. bool bringToBack;
  9336. bool bringToFront;
  9337. /* readonly */
  9338. String category;
  9339. /* readonly */
  9340. IntVector2 childOffset;
  9341. /* readonly */
  9342. Array<UIElement> children;
  9343. IntRect clipBorder;
  9344. bool clipChildren;
  9345. /* writeonly */
  9346. Color color;
  9347. /* readonly */
  9348. bool colorGradient;
  9349. Array<Color> colors;
  9350. /* readonly */
  9351. IntRect combinedScreenRect;
  9352. UIElement contentElement;
  9353. XMLFile defaultStyle;
  9354. /* readonly */
  9355. float derivedOpacity;
  9356. /* readonly */
  9357. uint dragButtonCombo;
  9358. /* readonly */
  9359. int dragButtonCount;
  9360. uint dragDropMode;
  9361. bool editable;
  9362. bool elementEventSender;
  9363. bool enabled;
  9364. /* readonly */
  9365. bool enabledSelf;
  9366. /* readonly */
  9367. bool fixedHeight;
  9368. /* readonly */
  9369. bool fixedSize;
  9370. /* readonly */
  9371. bool fixedWidth;
  9372. bool focus;
  9373. FocusMode focusMode;
  9374. int height;
  9375. HorizontalAlignment horizontalAlignment;
  9376. /* readonly */
  9377. ScrollBar horizontalScrollBar;
  9378. /* readonly */
  9379. bool hovering;
  9380. int indent;
  9381. int indentSpacing;
  9382. /* readonly */
  9383. int indentWidth;
  9384. bool internal;
  9385. IntRect layoutBorder;
  9386. Vector2 layoutFlexScale;
  9387. LayoutMode layoutMode;
  9388. int layoutSpacing;
  9389. int maxHeight;
  9390. IntVector2 maxSize;
  9391. int maxWidth;
  9392. int minHeight;
  9393. IntVector2 minSize;
  9394. int minWidth;
  9395. String name;
  9396. /* readonly */
  9397. uint numAllChildren;
  9398. /* readonly */
  9399. uint numAttributes;
  9400. /* readonly */
  9401. uint numChildren;
  9402. ObjectAnimation objectAnimation;
  9403. float opacity;
  9404. float pageStep;
  9405. UIElement parent;
  9406. IntVector2 position;
  9407. int priority;
  9408. /* readonly */
  9409. int refs;
  9410. /* readonly */
  9411. UIElement root;
  9412. /* readonly */
  9413. IntVector2 screenPosition;
  9414. bool scrollBarsAutoVisible;
  9415. float scrollDeceleration;
  9416. /* readonly */
  9417. BorderImage scrollPanel;
  9418. float scrollSnapEpsilon;
  9419. float scrollStep;
  9420. bool selected;
  9421. IntVector2 size;
  9422. bool sortChildren;
  9423. String style;
  9424. /* readonly */
  9425. Array<String> tags;
  9426. bool temporary;
  9427. TraversalMode traversalMode;
  9428. /* readonly */
  9429. StringHash type;
  9430. /* readonly */
  9431. String typeName;
  9432. bool useDerivedOpacity;
  9433. /* readonly */
  9434. VariantMap vars;
  9435. VerticalAlignment verticalAlignment;
  9436. /* readonly */
  9437. ScrollBar verticalScrollBar;
  9438. IntVector2 viewPosition;
  9439. bool visible;
  9440. /* readonly */
  9441. bool visibleEffective;
  9442. /* readonly */
  9443. int weakRefs;
  9444. int width;
  9445. };
  9446. class Serializable
  9447. {
  9448. // Methods:
  9449. void ApplyAttributes();
  9450. Variant GetAttribute(const String&) const;
  9451. Variant GetAttributeDefault(const String&) const;
  9452. bool GetInterceptNetworkUpdate(const String&) const;
  9453. bool HasSubscribedToEvent(Object, const String&);
  9454. bool HasSubscribedToEvent(const String&);
  9455. bool Load(File, bool = false);
  9456. bool Load(VectorBuffer&, bool = false);
  9457. bool LoadJSON(const JSONValue&, bool = false);
  9458. bool LoadXML(const XMLElement&, bool = false);
  9459. void MarkNetworkUpdate() const;
  9460. void RemoveInstanceDefault();
  9461. void ResetToDefault();
  9462. bool Save(File) const;
  9463. bool Save(VectorBuffer&) const;
  9464. bool SaveJSON(JSONValue&) const;
  9465. bool SaveXML(XMLElement&) const;
  9466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9467. bool SetAttribute(const String&, const Variant&);
  9468. void SetInterceptNetworkUpdate(const String&, bool);
  9469. // Properties:
  9470. /* readonly */
  9471. Array<Variant> attributeDefaults;
  9472. /* readonly */
  9473. Array<AttributeInfo> attributeInfos;
  9474. Array<Variant> attributes;
  9475. /* readonly */
  9476. String category;
  9477. /* readonly */
  9478. uint numAttributes;
  9479. /* readonly */
  9480. int refs;
  9481. bool temporary;
  9482. /* readonly */
  9483. StringHash type;
  9484. /* readonly */
  9485. String typeName;
  9486. /* readonly */
  9487. int weakRefs;
  9488. };
  9489. class Serializer
  9490. {
  9491. // Methods:
  9492. uint Write(Array<uint8>);
  9493. bool WriteBool(bool);
  9494. bool WriteBoundingBox(const BoundingBox&);
  9495. bool WriteByte(int8);
  9496. bool WriteColor(const Color&);
  9497. bool WriteDouble(double);
  9498. bool WriteFileID(const String&);
  9499. bool WriteFloat(float);
  9500. bool WriteInt(int);
  9501. bool WriteInt64(int64);
  9502. bool WriteIntRect(const IntRect&);
  9503. bool WriteIntVector2(const IntVector2&);
  9504. bool WriteLine(const String&);
  9505. bool WriteMatrix3(const Matrix3&);
  9506. bool WriteMatrix3x4(const Matrix3x4&);
  9507. bool WriteMatrix4(const Matrix4&);
  9508. bool WriteNetID(uint);
  9509. bool WritePackedQuaternion(const Quaternion&);
  9510. bool WritePackedVector3(const Vector3&, float);
  9511. bool WriteQuaternion(const Quaternion&);
  9512. bool WriteShort(int16);
  9513. bool WriteString(const String&);
  9514. bool WriteStringHash(const StringHash&);
  9515. bool WriteUByte(uint8);
  9516. bool WriteUInt(uint);
  9517. bool WriteUInt64(uint64);
  9518. bool WriteUShort(uint16);
  9519. bool WriteVLE(uint);
  9520. bool WriteVariant(const Variant&);
  9521. bool WriteVariantMap(const VariantMap&);
  9522. bool WriteVector2(const Vector2&);
  9523. bool WriteVector3(const Vector3&);
  9524. bool WriteVector4(const Vector4&);
  9525. bool WriteVectorBuffer(const VectorBuffer&);
  9526. };
  9527. class Skeleton
  9528. {
  9529. // Methods:
  9530. Bone GetBone(const String&) const;
  9531. void Reset();
  9532. // Properties:
  9533. /* readonly */
  9534. Array<Bone> bones;
  9535. /* readonly */
  9536. uint numBones;
  9537. /* readonly */
  9538. Bone rootBone;
  9539. };
  9540. class Skybox
  9541. {
  9542. // Methods:
  9543. void ApplyAttributes();
  9544. void ApplyMaterialList(const String& = String ( ));
  9545. void DrawDebugGeometry(DebugRenderer, bool);
  9546. Variant GetAttribute(const String&) const;
  9547. ValueAnimation GetAttributeAnimation(const String&) const;
  9548. float GetAttributeAnimationSpeed(const String&) const;
  9549. float GetAttributeAnimationTime(const String&) const;
  9550. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9551. Variant GetAttributeDefault(const String&) const;
  9552. bool GetInterceptNetworkUpdate(const String&) const;
  9553. bool HasSubscribedToEvent(Object, const String&);
  9554. bool HasSubscribedToEvent(const String&);
  9555. bool IsInView(Camera) const;
  9556. bool Load(File, bool = false);
  9557. bool Load(VectorBuffer&, bool = false);
  9558. bool LoadJSON(const JSONValue&, bool = false);
  9559. bool LoadXML(const XMLElement&, bool = false);
  9560. void MarkNetworkUpdate() const;
  9561. void Remove();
  9562. void RemoveAttributeAnimation(const String&);
  9563. void RemoveInstanceDefault();
  9564. void RemoveObjectAnimation();
  9565. void ResetToDefault();
  9566. bool Save(File) const;
  9567. bool Save(VectorBuffer&) const;
  9568. bool SaveJSON(JSONValue&) const;
  9569. bool SaveXML(XMLElement&) const;
  9570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9571. void SetAnimationTime(float);
  9572. bool SetAttribute(const String&, const Variant&);
  9573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9574. void SetAttributeAnimationSpeed(const String&, float);
  9575. void SetAttributeAnimationTime(const String&, float);
  9576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9577. void SetInterceptNetworkUpdate(const String&, bool);
  9578. // Properties:
  9579. bool animationEnabled;
  9580. /* readonly */
  9581. Array<Variant> attributeDefaults;
  9582. /* readonly */
  9583. Array<AttributeInfo> attributeInfos;
  9584. Array<Variant> attributes;
  9585. /* readonly */
  9586. BoundingBox boundingBox;
  9587. bool castShadows;
  9588. /* readonly */
  9589. String category;
  9590. float drawDistance;
  9591. bool enabled;
  9592. /* readonly */
  9593. bool enabledEffective;
  9594. /* readonly */
  9595. uint id;
  9596. /* readonly */
  9597. bool inView;
  9598. uint lightMask;
  9599. float lodBias;
  9600. /* writeonly */
  9601. Material material;
  9602. Array<Material> materials;
  9603. uint maxLights;
  9604. Model model;
  9605. /* readonly */
  9606. Node node;
  9607. /* readonly */
  9608. uint numAttributes;
  9609. /* readonly */
  9610. uint numGeometries;
  9611. ObjectAnimation objectAnimation;
  9612. bool occludee;
  9613. bool occluder;
  9614. /* readonly */
  9615. int refs;
  9616. float shadowDistance;
  9617. uint shadowMask;
  9618. bool temporary;
  9619. /* readonly */
  9620. StringHash type;
  9621. /* readonly */
  9622. String typeName;
  9623. uint viewMask;
  9624. /* readonly */
  9625. int weakRefs;
  9626. /* readonly */
  9627. BoundingBox worldBoundingBox;
  9628. /* readonly */
  9629. Zone zone;
  9630. uint zoneMask;
  9631. };
  9632. class Slider
  9633. {
  9634. // Methods:
  9635. void AddChild(UIElement);
  9636. void AddTag(const String&);
  9637. void AddTags(const String&, int8 = ';');
  9638. void ApplyAttributes();
  9639. void BringToFront();
  9640. void ChangeValue(float);
  9641. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9642. void DisableLayoutUpdate();
  9643. IntVector2 ElementToScreen(const IntVector2&);
  9644. void EnableLayoutUpdate();
  9645. uint FindChild(UIElement) const;
  9646. Variant GetAttribute(const String&) const;
  9647. ValueAnimation GetAttributeAnimation(const String&) const;
  9648. float GetAttributeAnimationSpeed(const String&) const;
  9649. float GetAttributeAnimationTime(const String&) const;
  9650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9651. Variant GetAttributeDefault(const String&) const;
  9652. UIElement GetChild(const String&, bool = false) const;
  9653. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9654. Array<UIElement> GetChildren(bool = false) const;
  9655. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9656. UIElement GetElementEventSender() const;
  9657. bool GetInterceptNetworkUpdate(const String&) const;
  9658. uint GetNumChildren(bool) const;
  9659. bool HasSubscribedToEvent(Object, const String&);
  9660. bool HasSubscribedToEvent(const String&);
  9661. bool HasTag(const String&) const;
  9662. void InsertChild(uint, UIElement);
  9663. bool IsInside(IntVector2, bool);
  9664. bool IsInsideCombined(IntVector2, bool);
  9665. bool Load(File, bool = false);
  9666. bool Load(VectorBuffer&, bool = false);
  9667. bool LoadChildXML(XMLFile, XMLFile = null);
  9668. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9669. bool LoadJSON(const JSONValue&, bool = false);
  9670. bool LoadXML(File);
  9671. bool LoadXML(VectorBuffer&);
  9672. bool LoadXML(XMLFile, XMLFile);
  9673. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9674. bool LoadXML(const XMLElement&, bool = false);
  9675. void MarkNetworkUpdate() const;
  9676. void Remove();
  9677. void RemoveAllChildren();
  9678. void RemoveAllTags();
  9679. void RemoveAttributeAnimation(const String&);
  9680. void RemoveChild(UIElement, uint = 0);
  9681. void RemoveChild(uint);
  9682. void RemoveInstanceDefault();
  9683. void RemoveObjectAnimation();
  9684. bool RemoveTag(const String&);
  9685. void ResetDeepEnabled();
  9686. void ResetToDefault();
  9687. bool Save(File) const;
  9688. bool Save(VectorBuffer&) const;
  9689. bool SaveJSON(JSONValue&) const;
  9690. bool SaveXML(File, const String& = "\t");
  9691. bool SaveXML(VectorBuffer&, const String& = "\t");
  9692. bool SaveXML(XMLElement&) const;
  9693. IntVector2 ScreenToElement(const IntVector2&);
  9694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9695. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9696. void SetAnimationTime(float);
  9697. bool SetAttribute(const String&, const Variant&);
  9698. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9699. void SetAttributeAnimationSpeed(const String&, float);
  9700. void SetAttributeAnimationTime(const String&, float);
  9701. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9702. void SetDeepEnabled(bool);
  9703. void SetEnabledRecursive(bool);
  9704. void SetFixedHeight(int);
  9705. void SetFixedSize(int, int);
  9706. void SetFixedWidth(int);
  9707. void SetFullImageRect();
  9708. void SetHoverOffset(int, int);
  9709. void SetInterceptNetworkUpdate(const String&, bool);
  9710. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9711. void SetMaxSize(int, int);
  9712. void SetMinSize(int, int);
  9713. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9714. void SetPosition(int, int);
  9715. void SetSize(int, int);
  9716. bool SetStyle(const String&, XMLFile = null);
  9717. bool SetStyle(const XMLElement&);
  9718. bool SetStyleAuto(XMLFile = null);
  9719. void UpdateLayout();
  9720. const Variant& GetVar(const StringHash&);
  9721. // Properties:
  9722. bool animationEnabled;
  9723. /* readonly */
  9724. Array<Variant> attributeDefaults;
  9725. /* readonly */
  9726. Array<AttributeInfo> attributeInfos;
  9727. Array<Variant> attributes;
  9728. BlendMode blendMode;
  9729. IntRect border;
  9730. bool bringToBack;
  9731. bool bringToFront;
  9732. /* readonly */
  9733. String category;
  9734. /* readonly */
  9735. IntVector2 childOffset;
  9736. /* readonly */
  9737. Array<UIElement> children;
  9738. IntRect clipBorder;
  9739. bool clipChildren;
  9740. /* writeonly */
  9741. Color color;
  9742. /* readonly */
  9743. bool colorGradient;
  9744. Array<Color> colors;
  9745. /* readonly */
  9746. IntRect combinedScreenRect;
  9747. XMLFile defaultStyle;
  9748. /* readonly */
  9749. float derivedOpacity;
  9750. /* readonly */
  9751. uint dragButtonCombo;
  9752. /* readonly */
  9753. int dragButtonCount;
  9754. uint dragDropMode;
  9755. bool editable;
  9756. bool elementEventSender;
  9757. bool enabled;
  9758. /* readonly */
  9759. bool enabledSelf;
  9760. /* readonly */
  9761. bool fixedHeight;
  9762. /* readonly */
  9763. bool fixedSize;
  9764. /* readonly */
  9765. bool fixedWidth;
  9766. bool focus;
  9767. FocusMode focusMode;
  9768. int height;
  9769. HorizontalAlignment horizontalAlignment;
  9770. IntVector2 hoverOffset;
  9771. /* readonly */
  9772. bool hovering;
  9773. IntRect imageBorder;
  9774. IntRect imageRect;
  9775. int indent;
  9776. int indentSpacing;
  9777. /* readonly */
  9778. int indentWidth;
  9779. bool internal;
  9780. /* readonly */
  9781. BorderImage knob;
  9782. IntRect layoutBorder;
  9783. Vector2 layoutFlexScale;
  9784. LayoutMode layoutMode;
  9785. int layoutSpacing;
  9786. int maxHeight;
  9787. IntVector2 maxSize;
  9788. int maxWidth;
  9789. int minHeight;
  9790. IntVector2 minSize;
  9791. int minWidth;
  9792. String name;
  9793. /* readonly */
  9794. uint numAllChildren;
  9795. /* readonly */
  9796. uint numAttributes;
  9797. /* readonly */
  9798. uint numChildren;
  9799. ObjectAnimation objectAnimation;
  9800. float opacity;
  9801. Orientation orientation;
  9802. UIElement parent;
  9803. IntVector2 position;
  9804. int priority;
  9805. float range;
  9806. /* readonly */
  9807. int refs;
  9808. float repeatRate;
  9809. /* readonly */
  9810. UIElement root;
  9811. /* readonly */
  9812. IntVector2 screenPosition;
  9813. bool selected;
  9814. IntVector2 size;
  9815. bool sortChildren;
  9816. String style;
  9817. /* readonly */
  9818. Array<String> tags;
  9819. bool temporary;
  9820. Texture texture;
  9821. bool tiled;
  9822. TraversalMode traversalMode;
  9823. /* readonly */
  9824. StringHash type;
  9825. /* readonly */
  9826. String typeName;
  9827. bool useDerivedOpacity;
  9828. float value;
  9829. /* readonly */
  9830. VariantMap vars;
  9831. VerticalAlignment verticalAlignment;
  9832. bool visible;
  9833. /* readonly */
  9834. bool visibleEffective;
  9835. /* readonly */
  9836. int weakRefs;
  9837. int width;
  9838. };
  9839. class SmoothedTransform
  9840. {
  9841. // Methods:
  9842. void ApplyAttributes();
  9843. void DrawDebugGeometry(DebugRenderer, bool);
  9844. Variant GetAttribute(const String&) const;
  9845. ValueAnimation GetAttributeAnimation(const String&) const;
  9846. float GetAttributeAnimationSpeed(const String&) const;
  9847. float GetAttributeAnimationTime(const String&) const;
  9848. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9849. Variant GetAttributeDefault(const String&) const;
  9850. bool GetInterceptNetworkUpdate(const String&) const;
  9851. bool HasSubscribedToEvent(Object, const String&);
  9852. bool HasSubscribedToEvent(const String&);
  9853. bool Load(File, bool = false);
  9854. bool Load(VectorBuffer&, bool = false);
  9855. bool LoadJSON(const JSONValue&, bool = false);
  9856. bool LoadXML(const XMLElement&, bool = false);
  9857. void MarkNetworkUpdate() const;
  9858. void Remove();
  9859. void RemoveAttributeAnimation(const String&);
  9860. void RemoveInstanceDefault();
  9861. void RemoveObjectAnimation();
  9862. void ResetToDefault();
  9863. bool Save(File) const;
  9864. bool Save(VectorBuffer&) const;
  9865. bool SaveJSON(JSONValue&) const;
  9866. bool SaveXML(XMLElement&) const;
  9867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9868. void SetAnimationTime(float);
  9869. bool SetAttribute(const String&, const Variant&);
  9870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9871. void SetAttributeAnimationSpeed(const String&, float);
  9872. void SetAttributeAnimationTime(const String&, float);
  9873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9874. void SetInterceptNetworkUpdate(const String&, bool);
  9875. void Update(float, float);
  9876. // Properties:
  9877. bool animationEnabled;
  9878. /* readonly */
  9879. Array<Variant> attributeDefaults;
  9880. /* readonly */
  9881. Array<AttributeInfo> attributeInfos;
  9882. Array<Variant> attributes;
  9883. /* readonly */
  9884. String category;
  9885. bool enabled;
  9886. /* readonly */
  9887. bool enabledEffective;
  9888. /* readonly */
  9889. uint id;
  9890. /* readonly */
  9891. bool inProgress;
  9892. /* readonly */
  9893. Node node;
  9894. /* readonly */
  9895. uint numAttributes;
  9896. ObjectAnimation objectAnimation;
  9897. /* readonly */
  9898. int refs;
  9899. Vector3 targetPosition;
  9900. Quaternion targetRotation;
  9901. Vector3 targetWorldPosition;
  9902. Quaternion targetWorldRotation;
  9903. bool temporary;
  9904. /* readonly */
  9905. StringHash type;
  9906. /* readonly */
  9907. String typeName;
  9908. /* readonly */
  9909. int weakRefs;
  9910. };
  9911. class Sound
  9912. {
  9913. // Methods:
  9914. bool HasSubscribedToEvent(Object, const String&);
  9915. bool HasSubscribedToEvent(const String&);
  9916. bool Load(File);
  9917. bool Load(VectorBuffer&);
  9918. bool Save(File) const;
  9919. bool Save(VectorBuffer&) const;
  9920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9921. // Properties:
  9922. /* readonly */
  9923. String category;
  9924. /* readonly */
  9925. bool compressed;
  9926. /* readonly */
  9927. float frequency;
  9928. /* readonly */
  9929. float length;
  9930. bool looped;
  9931. /* readonly */
  9932. uint memoryUse;
  9933. String name;
  9934. /* readonly */
  9935. int refs;
  9936. /* readonly */
  9937. uint sampleSize;
  9938. /* readonly */
  9939. bool sixteenBit;
  9940. /* readonly */
  9941. bool stereo;
  9942. /* readonly */
  9943. StringHash type;
  9944. /* readonly */
  9945. String typeName;
  9946. /* readonly */
  9947. uint useTimer;
  9948. /* readonly */
  9949. int weakRefs;
  9950. };
  9951. class SoundListener
  9952. {
  9953. // Methods:
  9954. void ApplyAttributes();
  9955. void DrawDebugGeometry(DebugRenderer, bool);
  9956. Variant GetAttribute(const String&) const;
  9957. ValueAnimation GetAttributeAnimation(const String&) const;
  9958. float GetAttributeAnimationSpeed(const String&) const;
  9959. float GetAttributeAnimationTime(const String&) const;
  9960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9961. Variant GetAttributeDefault(const String&) const;
  9962. bool GetInterceptNetworkUpdate(const String&) const;
  9963. bool HasSubscribedToEvent(Object, const String&);
  9964. bool HasSubscribedToEvent(const String&);
  9965. bool Load(File, bool = false);
  9966. bool Load(VectorBuffer&, bool = false);
  9967. bool LoadJSON(const JSONValue&, bool = false);
  9968. bool LoadXML(const XMLElement&, bool = false);
  9969. void MarkNetworkUpdate() const;
  9970. void Remove();
  9971. void RemoveAttributeAnimation(const String&);
  9972. void RemoveInstanceDefault();
  9973. void RemoveObjectAnimation();
  9974. void ResetToDefault();
  9975. bool Save(File) const;
  9976. bool Save(VectorBuffer&) const;
  9977. bool SaveJSON(JSONValue&) const;
  9978. bool SaveXML(XMLElement&) const;
  9979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9980. void SetAnimationTime(float);
  9981. bool SetAttribute(const String&, const Variant&);
  9982. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9983. void SetAttributeAnimationSpeed(const String&, float);
  9984. void SetAttributeAnimationTime(const String&, float);
  9985. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9986. void SetInterceptNetworkUpdate(const String&, bool);
  9987. // Properties:
  9988. bool animationEnabled;
  9989. /* readonly */
  9990. Array<Variant> attributeDefaults;
  9991. /* readonly */
  9992. Array<AttributeInfo> attributeInfos;
  9993. Array<Variant> attributes;
  9994. /* readonly */
  9995. String category;
  9996. bool enabled;
  9997. /* readonly */
  9998. bool enabledEffective;
  9999. /* readonly */
  10000. uint id;
  10001. /* readonly */
  10002. Node node;
  10003. /* readonly */
  10004. uint numAttributes;
  10005. ObjectAnimation objectAnimation;
  10006. /* readonly */
  10007. int refs;
  10008. bool temporary;
  10009. /* readonly */
  10010. StringHash type;
  10011. /* readonly */
  10012. String typeName;
  10013. /* readonly */
  10014. int weakRefs;
  10015. };
  10016. class SoundSource
  10017. {
  10018. // Methods:
  10019. void ApplyAttributes();
  10020. void DrawDebugGeometry(DebugRenderer, bool);
  10021. Variant GetAttribute(const String&) const;
  10022. ValueAnimation GetAttributeAnimation(const String&) const;
  10023. float GetAttributeAnimationSpeed(const String&) const;
  10024. float GetAttributeAnimationTime(const String&) const;
  10025. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10026. Variant GetAttributeDefault(const String&) const;
  10027. bool GetInterceptNetworkUpdate(const String&) const;
  10028. bool HasSubscribedToEvent(Object, const String&);
  10029. bool HasSubscribedToEvent(const String&);
  10030. bool Load(File, bool = false);
  10031. bool Load(VectorBuffer&, bool = false);
  10032. bool LoadJSON(const JSONValue&, bool = false);
  10033. bool LoadXML(const XMLElement&, bool = false);
  10034. void MarkNetworkUpdate() const;
  10035. void Play(Sound);
  10036. void Play(Sound, float);
  10037. void Play(Sound, float, float);
  10038. void Play(Sound, float, float, float);
  10039. void Remove();
  10040. void RemoveAttributeAnimation(const String&);
  10041. void RemoveInstanceDefault();
  10042. void RemoveObjectAnimation();
  10043. void ResetToDefault();
  10044. bool Save(File) const;
  10045. bool Save(VectorBuffer&) const;
  10046. bool SaveJSON(JSONValue&) const;
  10047. bool SaveXML(XMLElement&) const;
  10048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10049. void SetAnimationTime(float);
  10050. bool SetAttribute(const String&, const Variant&);
  10051. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10052. void SetAttributeAnimationSpeed(const String&, float);
  10053. void SetAttributeAnimationTime(const String&, float);
  10054. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10055. void SetInterceptNetworkUpdate(const String&, bool);
  10056. void Stop();
  10057. // Properties:
  10058. bool animationEnabled;
  10059. /* readonly */
  10060. float attenuation;
  10061. /* readonly */
  10062. Array<Variant> attributeDefaults;
  10063. /* readonly */
  10064. Array<AttributeInfo> attributeInfos;
  10065. Array<Variant> attributes;
  10066. AutoRemoveMode autoRemoveMode;
  10067. /* readonly */
  10068. String category;
  10069. bool enabled;
  10070. /* readonly */
  10071. bool enabledEffective;
  10072. float frequency;
  10073. float gain;
  10074. /* readonly */
  10075. uint id;
  10076. /* readonly */
  10077. Node node;
  10078. /* readonly */
  10079. uint numAttributes;
  10080. ObjectAnimation objectAnimation;
  10081. float panning;
  10082. /* readonly */
  10083. bool playing;
  10084. /* readonly */
  10085. int refs;
  10086. /* readonly */
  10087. Sound sound;
  10088. String soundType;
  10089. bool temporary;
  10090. /* readonly */
  10091. float timePosition;
  10092. /* readonly */
  10093. StringHash type;
  10094. /* readonly */
  10095. String typeName;
  10096. /* readonly */
  10097. int weakRefs;
  10098. };
  10099. class SoundSource3D
  10100. {
  10101. // Methods:
  10102. void ApplyAttributes();
  10103. void DrawDebugGeometry(DebugRenderer, bool);
  10104. Variant GetAttribute(const String&) const;
  10105. ValueAnimation GetAttributeAnimation(const String&) const;
  10106. float GetAttributeAnimationSpeed(const String&) const;
  10107. float GetAttributeAnimationTime(const String&) const;
  10108. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10109. Variant GetAttributeDefault(const String&) const;
  10110. bool GetInterceptNetworkUpdate(const String&) const;
  10111. bool HasSubscribedToEvent(Object, const String&);
  10112. bool HasSubscribedToEvent(const String&);
  10113. bool Load(File, bool = false);
  10114. bool Load(VectorBuffer&, bool = false);
  10115. bool LoadJSON(const JSONValue&, bool = false);
  10116. bool LoadXML(const XMLElement&, bool = false);
  10117. void MarkNetworkUpdate() const;
  10118. void Play(Sound);
  10119. void Play(Sound, float);
  10120. void Play(Sound, float, float);
  10121. void Play(Sound, float, float, float);
  10122. void Remove();
  10123. void RemoveAttributeAnimation(const String&);
  10124. void RemoveInstanceDefault();
  10125. void RemoveObjectAnimation();
  10126. void ResetToDefault();
  10127. bool Save(File) const;
  10128. bool Save(VectorBuffer&) const;
  10129. bool SaveJSON(JSONValue&) const;
  10130. bool SaveXML(XMLElement&) const;
  10131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10132. void SetAngleAttenuation(float, float);
  10133. void SetAnimationTime(float);
  10134. bool SetAttribute(const String&, const Variant&);
  10135. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10136. void SetAttributeAnimationSpeed(const String&, float);
  10137. void SetAttributeAnimationTime(const String&, float);
  10138. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10139. void SetDistanceAttenuation(float, float, float);
  10140. void SetInterceptNetworkUpdate(const String&, bool);
  10141. void Stop();
  10142. // Properties:
  10143. bool animationEnabled;
  10144. /* readonly */
  10145. float attenuation;
  10146. /* readonly */
  10147. Array<Variant> attributeDefaults;
  10148. /* readonly */
  10149. Array<AttributeInfo> attributeInfos;
  10150. Array<Variant> attributes;
  10151. AutoRemoveMode autoRemoveMode;
  10152. /* readonly */
  10153. String category;
  10154. bool enabled;
  10155. /* readonly */
  10156. bool enabledEffective;
  10157. float farDistance;
  10158. float frequency;
  10159. float gain;
  10160. /* readonly */
  10161. uint id;
  10162. float innerAngle;
  10163. float nearDistance;
  10164. /* readonly */
  10165. Node node;
  10166. /* readonly */
  10167. uint numAttributes;
  10168. ObjectAnimation objectAnimation;
  10169. float outerAngle;
  10170. float panning;
  10171. /* readonly */
  10172. bool playing;
  10173. /* readonly */
  10174. int refs;
  10175. float rolloffFactor;
  10176. /* readonly */
  10177. Sound sound;
  10178. String soundType;
  10179. bool temporary;
  10180. /* readonly */
  10181. float timePosition;
  10182. /* readonly */
  10183. StringHash type;
  10184. /* readonly */
  10185. String typeName;
  10186. /* readonly */
  10187. int weakRefs;
  10188. };
  10189. class Sphere
  10190. {
  10191. // Methods:
  10192. void Clear();
  10193. void Define(const BoundingBox&);
  10194. void Define(const Frustum&);
  10195. void Define(const Polyhedron&);
  10196. void Define(const Sphere&);
  10197. void Define(const Vector3&, float);
  10198. bool Defined() const;
  10199. float Distance(const Vector3&) const;
  10200. Intersection IsInside(const BoundingBox&) const;
  10201. Intersection IsInside(const Sphere&) const;
  10202. Intersection IsInside(const Vector3&) const;
  10203. Intersection IsInsideFast(const BoundingBox&) const;
  10204. Intersection IsInsideFast(const Sphere&) const;
  10205. void Merge(const BoundingBox&);
  10206. void Merge(const Frustum&);
  10207. void Merge(const Sphere&);
  10208. void Merge(const Vector3&);
  10209. // Properties:
  10210. Vector3 center;
  10211. float radius;
  10212. };
  10213. class Spline
  10214. {
  10215. // Methods:
  10216. void AddKnot(const Variant&);
  10217. void AddKnot(const Variant&, uint);
  10218. void Clear();
  10219. Variant GetPoint(float);
  10220. void RemoveKnot();
  10221. void RemoveKnot(uint);
  10222. // Properties:
  10223. InterpolationMode interpolationMode;
  10224. Array<Variant> knot;
  10225. Array<Variant> knots;
  10226. };
  10227. class SplinePath
  10228. {
  10229. // Methods:
  10230. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10231. void ApplyAttributes();
  10232. void ClearControlPoints();
  10233. void DrawDebugGeometry(DebugRenderer, bool);
  10234. Variant GetAttribute(const String&) const;
  10235. ValueAnimation GetAttributeAnimation(const String&) const;
  10236. float GetAttributeAnimationSpeed(const String&) const;
  10237. float GetAttributeAnimationTime(const String&) const;
  10238. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10239. Variant GetAttributeDefault(const String&) const;
  10240. bool GetInterceptNetworkUpdate(const String&) const;
  10241. Vector3 GetPoint(float) const;
  10242. Vector3 GetPosition() const;
  10243. bool HasSubscribedToEvent(Object, const String&);
  10244. bool HasSubscribedToEvent(const String&);
  10245. bool Load(File, bool = false);
  10246. bool Load(VectorBuffer&, bool = false);
  10247. bool LoadJSON(const JSONValue&, bool = false);
  10248. bool LoadXML(const XMLElement&, bool = false);
  10249. void MarkNetworkUpdate() const;
  10250. void Move(float);
  10251. void Remove();
  10252. void RemoveAttributeAnimation(const String&);
  10253. void RemoveControlPoint(Node);
  10254. void RemoveInstanceDefault();
  10255. void RemoveObjectAnimation();
  10256. void Reset();
  10257. void ResetToDefault();
  10258. bool Save(File) const;
  10259. bool Save(VectorBuffer&) const;
  10260. bool SaveJSON(JSONValue&) const;
  10261. bool SaveXML(XMLElement&) const;
  10262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10263. void SetAnimationTime(float);
  10264. bool SetAttribute(const String&, const Variant&);
  10265. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10266. void SetAttributeAnimationSpeed(const String&, float);
  10267. void SetAttributeAnimationTime(const String&, float);
  10268. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10269. void SetInterceptNetworkUpdate(const String&, bool);
  10270. void SetPosition(float);
  10271. // Properties:
  10272. bool animationEnabled;
  10273. /* readonly */
  10274. Array<Variant> attributeDefaults;
  10275. /* readonly */
  10276. Array<AttributeInfo> attributeInfos;
  10277. Array<Variant> attributes;
  10278. /* readonly */
  10279. String category;
  10280. Node controlledNode;
  10281. bool enabled;
  10282. /* readonly */
  10283. bool enabledEffective;
  10284. /* readonly */
  10285. uint id;
  10286. InterpolationMode interpolationMode;
  10287. /* readonly */
  10288. bool isFinished;
  10289. /* readonly */
  10290. float length;
  10291. /* readonly */
  10292. Node node;
  10293. /* readonly */
  10294. uint numAttributes;
  10295. ObjectAnimation objectAnimation;
  10296. /* readonly */
  10297. int refs;
  10298. float speed;
  10299. bool temporary;
  10300. /* readonly */
  10301. StringHash type;
  10302. /* readonly */
  10303. String typeName;
  10304. /* readonly */
  10305. int weakRefs;
  10306. };
  10307. class Sprite
  10308. {
  10309. // Methods:
  10310. void AddChild(UIElement);
  10311. void AddTag(const String&);
  10312. void AddTags(const String&, int8 = ';');
  10313. void ApplyAttributes();
  10314. void BringToFront();
  10315. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10316. void DisableLayoutUpdate();
  10317. IntVector2 ElementToScreen(const IntVector2&);
  10318. void EnableLayoutUpdate();
  10319. uint FindChild(UIElement) const;
  10320. Variant GetAttribute(const String&) const;
  10321. ValueAnimation GetAttributeAnimation(const String&) const;
  10322. float GetAttributeAnimationSpeed(const String&) const;
  10323. float GetAttributeAnimationTime(const String&) const;
  10324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10325. Variant GetAttributeDefault(const String&) const;
  10326. UIElement GetChild(const String&, bool = false) const;
  10327. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10328. Array<UIElement> GetChildren(bool = false) const;
  10329. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10330. UIElement GetElementEventSender() const;
  10331. bool GetInterceptNetworkUpdate(const String&) const;
  10332. uint GetNumChildren(bool) const;
  10333. bool HasSubscribedToEvent(Object, const String&);
  10334. bool HasSubscribedToEvent(const String&);
  10335. bool HasTag(const String&) const;
  10336. void InsertChild(uint, UIElement);
  10337. bool IsInside(IntVector2, bool);
  10338. bool IsInsideCombined(IntVector2, bool);
  10339. bool Load(File, bool = false);
  10340. bool Load(VectorBuffer&, bool = false);
  10341. bool LoadChildXML(XMLFile, XMLFile = null);
  10342. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10343. bool LoadJSON(const JSONValue&, bool = false);
  10344. bool LoadXML(File);
  10345. bool LoadXML(VectorBuffer&);
  10346. bool LoadXML(XMLFile, XMLFile);
  10347. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10348. bool LoadXML(const XMLElement&, bool = false);
  10349. void MarkNetworkUpdate() const;
  10350. void Remove();
  10351. void RemoveAllChildren();
  10352. void RemoveAllTags();
  10353. void RemoveAttributeAnimation(const String&);
  10354. void RemoveChild(UIElement, uint = 0);
  10355. void RemoveChild(uint);
  10356. void RemoveInstanceDefault();
  10357. void RemoveObjectAnimation();
  10358. bool RemoveTag(const String&);
  10359. void ResetDeepEnabled();
  10360. void ResetToDefault();
  10361. bool Save(File) const;
  10362. bool Save(VectorBuffer&) const;
  10363. bool SaveJSON(JSONValue&) const;
  10364. bool SaveXML(File, const String& = "\t");
  10365. bool SaveXML(VectorBuffer&, const String& = "\t");
  10366. bool SaveXML(XMLElement&) const;
  10367. IntVector2 ScreenToElement(const IntVector2&);
  10368. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10369. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10370. void SetAnimationTime(float);
  10371. bool SetAttribute(const String&, const Variant&);
  10372. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10373. void SetAttributeAnimationSpeed(const String&, float);
  10374. void SetAttributeAnimationTime(const String&, float);
  10375. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10376. void SetDeepEnabled(bool);
  10377. void SetEnabledRecursive(bool);
  10378. void SetFixedHeight(int);
  10379. void SetFixedSize(int, int);
  10380. void SetFixedWidth(int);
  10381. void SetFullImageRect();
  10382. void SetHotSpot(int, int);
  10383. void SetInterceptNetworkUpdate(const String&, bool);
  10384. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10385. void SetMaxSize(int, int);
  10386. void SetMinSize(int, int);
  10387. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10388. void SetPosition(float, float);
  10389. void SetScale(float);
  10390. void SetScale(float, float);
  10391. void SetSize(int, int);
  10392. bool SetStyle(const String&, XMLFile = null);
  10393. bool SetStyle(const XMLElement&);
  10394. bool SetStyleAuto(XMLFile = null);
  10395. void UpdateLayout();
  10396. const Variant& GetVar(const StringHash&);
  10397. // Properties:
  10398. bool animationEnabled;
  10399. /* readonly */
  10400. Array<Variant> attributeDefaults;
  10401. /* readonly */
  10402. Array<AttributeInfo> attributeInfos;
  10403. Array<Variant> attributes;
  10404. BlendMode blendMode;
  10405. bool bringToBack;
  10406. bool bringToFront;
  10407. /* readonly */
  10408. String category;
  10409. /* readonly */
  10410. IntVector2 childOffset;
  10411. /* readonly */
  10412. Array<UIElement> children;
  10413. IntRect clipBorder;
  10414. bool clipChildren;
  10415. /* writeonly */
  10416. Color color;
  10417. /* readonly */
  10418. bool colorGradient;
  10419. Array<Color> colors;
  10420. /* readonly */
  10421. IntRect combinedScreenRect;
  10422. XMLFile defaultStyle;
  10423. /* readonly */
  10424. float derivedOpacity;
  10425. /* readonly */
  10426. uint dragButtonCombo;
  10427. /* readonly */
  10428. int dragButtonCount;
  10429. uint dragDropMode;
  10430. bool editable;
  10431. bool elementEventSender;
  10432. bool enabled;
  10433. /* readonly */
  10434. bool enabledSelf;
  10435. /* readonly */
  10436. bool fixedHeight;
  10437. /* readonly */
  10438. bool fixedSize;
  10439. /* readonly */
  10440. bool fixedWidth;
  10441. bool focus;
  10442. FocusMode focusMode;
  10443. int height;
  10444. HorizontalAlignment horizontalAlignment;
  10445. IntVector2 hotSpot;
  10446. /* readonly */
  10447. bool hovering;
  10448. IntRect imageRect;
  10449. int indent;
  10450. int indentSpacing;
  10451. /* readonly */
  10452. int indentWidth;
  10453. bool internal;
  10454. IntRect layoutBorder;
  10455. Vector2 layoutFlexScale;
  10456. LayoutMode layoutMode;
  10457. int layoutSpacing;
  10458. int maxHeight;
  10459. IntVector2 maxSize;
  10460. int maxWidth;
  10461. int minHeight;
  10462. IntVector2 minSize;
  10463. int minWidth;
  10464. String name;
  10465. /* readonly */
  10466. uint numAllChildren;
  10467. /* readonly */
  10468. uint numAttributes;
  10469. /* readonly */
  10470. uint numChildren;
  10471. ObjectAnimation objectAnimation;
  10472. float opacity;
  10473. UIElement parent;
  10474. Vector2 position;
  10475. int priority;
  10476. /* readonly */
  10477. int refs;
  10478. /* readonly */
  10479. UIElement root;
  10480. float rotation;
  10481. Vector2 scale;
  10482. /* readonly */
  10483. IntVector2 screenPosition;
  10484. bool selected;
  10485. IntVector2 size;
  10486. bool sortChildren;
  10487. String style;
  10488. /* readonly */
  10489. Array<String> tags;
  10490. bool temporary;
  10491. Texture texture;
  10492. TraversalMode traversalMode;
  10493. /* readonly */
  10494. StringHash type;
  10495. /* readonly */
  10496. String typeName;
  10497. bool useDerivedOpacity;
  10498. /* readonly */
  10499. VariantMap vars;
  10500. VerticalAlignment verticalAlignment;
  10501. bool visible;
  10502. /* readonly */
  10503. bool visibleEffective;
  10504. /* readonly */
  10505. int weakRefs;
  10506. int width;
  10507. };
  10508. class Sprite2D
  10509. {
  10510. // Methods:
  10511. bool HasSubscribedToEvent(Object, const String&);
  10512. bool HasSubscribedToEvent(const String&);
  10513. bool Load(File);
  10514. bool Load(VectorBuffer&);
  10515. bool Save(File) const;
  10516. bool Save(VectorBuffer&) const;
  10517. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10518. // Properties:
  10519. /* readonly */
  10520. String category;
  10521. Vector2 hotSpot;
  10522. /* readonly */
  10523. uint memoryUse;
  10524. String name;
  10525. IntVector2 offset;
  10526. IntRect rectangle;
  10527. /* readonly */
  10528. int refs;
  10529. Texture2D texture;
  10530. float textureEdgeOffset;
  10531. /* readonly */
  10532. StringHash type;
  10533. /* readonly */
  10534. String typeName;
  10535. /* readonly */
  10536. uint useTimer;
  10537. /* readonly */
  10538. int weakRefs;
  10539. };
  10540. class SpriteSheet2D
  10541. {
  10542. // Methods:
  10543. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10544. Sprite2D GetSprite(const String&);
  10545. bool HasSubscribedToEvent(Object, const String&);
  10546. bool HasSubscribedToEvent(const String&);
  10547. bool Load(File);
  10548. bool Load(VectorBuffer&);
  10549. bool Save(File) const;
  10550. bool Save(VectorBuffer&) const;
  10551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10552. // Properties:
  10553. /* readonly */
  10554. String category;
  10555. /* readonly */
  10556. uint memoryUse;
  10557. String name;
  10558. /* readonly */
  10559. int refs;
  10560. Texture2D texture;
  10561. /* readonly */
  10562. StringHash type;
  10563. /* readonly */
  10564. String typeName;
  10565. /* readonly */
  10566. uint useTimer;
  10567. /* readonly */
  10568. int weakRefs;
  10569. };
  10570. class StaticModel
  10571. {
  10572. // Methods:
  10573. void ApplyAttributes();
  10574. void ApplyMaterialList(const String& = String ( ));
  10575. void DrawDebugGeometry(DebugRenderer, bool);
  10576. Variant GetAttribute(const String&) const;
  10577. ValueAnimation GetAttributeAnimation(const String&) const;
  10578. float GetAttributeAnimationSpeed(const String&) const;
  10579. float GetAttributeAnimationTime(const String&) const;
  10580. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10581. Variant GetAttributeDefault(const String&) const;
  10582. bool GetInterceptNetworkUpdate(const String&) const;
  10583. bool HasSubscribedToEvent(Object, const String&);
  10584. bool HasSubscribedToEvent(const String&);
  10585. bool IsInView(Camera) const;
  10586. bool IsInside(const Vector3&) const;
  10587. bool IsInsideLocal(const Vector3&) const;
  10588. bool Load(File, bool = false);
  10589. bool Load(VectorBuffer&, bool = false);
  10590. bool LoadJSON(const JSONValue&, bool = false);
  10591. bool LoadXML(const XMLElement&, bool = false);
  10592. void MarkNetworkUpdate() const;
  10593. void Remove();
  10594. void RemoveAttributeAnimation(const String&);
  10595. void RemoveInstanceDefault();
  10596. void RemoveObjectAnimation();
  10597. void ResetToDefault();
  10598. bool Save(File) const;
  10599. bool Save(VectorBuffer&) const;
  10600. bool SaveJSON(JSONValue&) const;
  10601. bool SaveXML(XMLElement&) const;
  10602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10603. void SetAnimationTime(float);
  10604. bool SetAttribute(const String&, const Variant&);
  10605. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10606. void SetAttributeAnimationSpeed(const String&, float);
  10607. void SetAttributeAnimationTime(const String&, float);
  10608. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10609. void SetInterceptNetworkUpdate(const String&, bool);
  10610. // Properties:
  10611. bool animationEnabled;
  10612. /* readonly */
  10613. Array<Variant> attributeDefaults;
  10614. /* readonly */
  10615. Array<AttributeInfo> attributeInfos;
  10616. Array<Variant> attributes;
  10617. /* readonly */
  10618. BoundingBox boundingBox;
  10619. bool castShadows;
  10620. /* readonly */
  10621. String category;
  10622. float drawDistance;
  10623. bool enabled;
  10624. /* readonly */
  10625. bool enabledEffective;
  10626. /* readonly */
  10627. uint id;
  10628. /* readonly */
  10629. bool inView;
  10630. uint lightMask;
  10631. float lodBias;
  10632. /* writeonly */
  10633. Material material;
  10634. Array<Material> materials;
  10635. uint maxLights;
  10636. Model model;
  10637. /* readonly */
  10638. Node node;
  10639. /* readonly */
  10640. uint numAttributes;
  10641. /* readonly */
  10642. uint numGeometries;
  10643. ObjectAnimation objectAnimation;
  10644. bool occludee;
  10645. bool occluder;
  10646. uint occlusionLodLevel;
  10647. /* readonly */
  10648. int refs;
  10649. float shadowDistance;
  10650. uint shadowMask;
  10651. bool temporary;
  10652. /* readonly */
  10653. StringHash type;
  10654. /* readonly */
  10655. String typeName;
  10656. uint viewMask;
  10657. /* readonly */
  10658. int weakRefs;
  10659. /* readonly */
  10660. BoundingBox worldBoundingBox;
  10661. uint zoneMask;
  10662. };
  10663. class StaticModelGroup
  10664. {
  10665. // Methods:
  10666. void AddInstanceNode(Node);
  10667. void ApplyAttributes();
  10668. void ApplyMaterialList(const String& = String ( ));
  10669. void DrawDebugGeometry(DebugRenderer, bool);
  10670. Variant GetAttribute(const String&) const;
  10671. ValueAnimation GetAttributeAnimation(const String&) const;
  10672. float GetAttributeAnimationSpeed(const String&) const;
  10673. float GetAttributeAnimationTime(const String&) const;
  10674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10675. Variant GetAttributeDefault(const String&) const;
  10676. bool GetInterceptNetworkUpdate(const String&) const;
  10677. bool HasSubscribedToEvent(Object, const String&);
  10678. bool HasSubscribedToEvent(const String&);
  10679. bool IsInView(Camera) const;
  10680. bool Load(File, bool = false);
  10681. bool Load(VectorBuffer&, bool = false);
  10682. bool LoadJSON(const JSONValue&, bool = false);
  10683. bool LoadXML(const XMLElement&, bool = false);
  10684. void MarkNetworkUpdate() const;
  10685. void Remove();
  10686. void RemoveAllInstanceNodes();
  10687. void RemoveAttributeAnimation(const String&);
  10688. void RemoveInstanceDefault();
  10689. void RemoveInstanceNode(Node);
  10690. void RemoveObjectAnimation();
  10691. void ResetToDefault();
  10692. bool Save(File) const;
  10693. bool Save(VectorBuffer&) const;
  10694. bool SaveJSON(JSONValue&) const;
  10695. bool SaveXML(XMLElement&) const;
  10696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10697. void SetAnimationTime(float);
  10698. bool SetAttribute(const String&, const Variant&);
  10699. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10700. void SetAttributeAnimationSpeed(const String&, float);
  10701. void SetAttributeAnimationTime(const String&, float);
  10702. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10703. void SetInterceptNetworkUpdate(const String&, bool);
  10704. // Properties:
  10705. bool animationEnabled;
  10706. /* readonly */
  10707. Array<Variant> attributeDefaults;
  10708. /* readonly */
  10709. Array<AttributeInfo> attributeInfos;
  10710. Array<Variant> attributes;
  10711. /* readonly */
  10712. BoundingBox boundingBox;
  10713. bool castShadows;
  10714. /* readonly */
  10715. String category;
  10716. float drawDistance;
  10717. bool enabled;
  10718. /* readonly */
  10719. bool enabledEffective;
  10720. /* readonly */
  10721. uint id;
  10722. /* readonly */
  10723. bool inView;
  10724. /* readonly */
  10725. Array<Node> instanceNodes;
  10726. uint lightMask;
  10727. float lodBias;
  10728. /* writeonly */
  10729. Material material;
  10730. Array<Material> materials;
  10731. uint maxLights;
  10732. Model model;
  10733. /* readonly */
  10734. Node node;
  10735. /* readonly */
  10736. uint numAttributes;
  10737. /* readonly */
  10738. uint numGeometries;
  10739. /* readonly */
  10740. uint numInstanceNodes;
  10741. ObjectAnimation objectAnimation;
  10742. bool occludee;
  10743. bool occluder;
  10744. uint occlusionLodLevel;
  10745. /* readonly */
  10746. int refs;
  10747. float shadowDistance;
  10748. uint shadowMask;
  10749. bool temporary;
  10750. /* readonly */
  10751. StringHash type;
  10752. /* readonly */
  10753. String typeName;
  10754. uint viewMask;
  10755. /* readonly */
  10756. int weakRefs;
  10757. /* readonly */
  10758. BoundingBox worldBoundingBox;
  10759. /* readonly */
  10760. Zone zone;
  10761. uint zoneMask;
  10762. };
  10763. class StaticSprite2D
  10764. {
  10765. // Methods:
  10766. void ApplyAttributes();
  10767. void DrawDebugGeometry(DebugRenderer, bool);
  10768. Variant GetAttribute(const String&) const;
  10769. ValueAnimation GetAttributeAnimation(const String&) const;
  10770. float GetAttributeAnimationSpeed(const String&) const;
  10771. float GetAttributeAnimationTime(const String&) const;
  10772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10773. Variant GetAttributeDefault(const String&) const;
  10774. bool GetInterceptNetworkUpdate(const String&) const;
  10775. bool HasSubscribedToEvent(Object, const String&);
  10776. bool HasSubscribedToEvent(const String&);
  10777. bool IsInView(Camera) const;
  10778. bool Load(File, bool = false);
  10779. bool Load(VectorBuffer&, bool = false);
  10780. bool LoadJSON(const JSONValue&, bool = false);
  10781. bool LoadXML(const XMLElement&, bool = false);
  10782. void MarkNetworkUpdate() const;
  10783. void Remove();
  10784. void RemoveAttributeAnimation(const String&);
  10785. void RemoveInstanceDefault();
  10786. void RemoveObjectAnimation();
  10787. void ResetToDefault();
  10788. bool Save(File) const;
  10789. bool Save(VectorBuffer&) const;
  10790. bool SaveJSON(JSONValue&) const;
  10791. bool SaveXML(XMLElement&) const;
  10792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10793. void SetAnimationTime(float);
  10794. bool SetAttribute(const String&, const Variant&);
  10795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10796. void SetAttributeAnimationSpeed(const String&, float);
  10797. void SetAttributeAnimationTime(const String&, float);
  10798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10799. void SetFlip(bool, bool);
  10800. void SetInterceptNetworkUpdate(const String&, bool);
  10801. // Properties:
  10802. float alpha;
  10803. bool animationEnabled;
  10804. /* readonly */
  10805. Array<Variant> attributeDefaults;
  10806. /* readonly */
  10807. Array<AttributeInfo> attributeInfos;
  10808. Array<Variant> attributes;
  10809. BlendMode blendMode;
  10810. /* readonly */
  10811. BoundingBox boundingBox;
  10812. bool castShadows;
  10813. /* readonly */
  10814. String category;
  10815. Color color;
  10816. Material customMaterial;
  10817. float drawDistance;
  10818. bool enabled;
  10819. /* readonly */
  10820. bool enabledEffective;
  10821. bool flipX;
  10822. bool flipY;
  10823. Vector2 hotSpot;
  10824. /* readonly */
  10825. uint id;
  10826. /* readonly */
  10827. bool inView;
  10828. int layer;
  10829. uint lightMask;
  10830. float lodBias;
  10831. uint maxLights;
  10832. /* readonly */
  10833. Node node;
  10834. /* readonly */
  10835. uint numAttributes;
  10836. ObjectAnimation objectAnimation;
  10837. bool occludee;
  10838. bool occluder;
  10839. int orderInLayer;
  10840. /* readonly */
  10841. int refs;
  10842. float shadowDistance;
  10843. uint shadowMask;
  10844. Sprite2D sprite;
  10845. bool temporary;
  10846. /* readonly */
  10847. StringHash type;
  10848. /* readonly */
  10849. String typeName;
  10850. bool useHotSpot;
  10851. uint viewMask;
  10852. /* readonly */
  10853. int weakRefs;
  10854. /* readonly */
  10855. BoundingBox worldBoundingBox;
  10856. uint zoneMask;
  10857. };
  10858. class String
  10859. {
  10860. // Methods:
  10861. void AppendUTF8(uint);
  10862. uint AtUTF8(uint) const;
  10863. uint ByteOffsetUTF8(uint) const;
  10864. void Clear();
  10865. int Compare(const String&, bool = true) const;
  10866. bool Contains(const String&, bool = true) const;
  10867. bool Contains(uint8, bool = true) const;
  10868. bool EndsWith(const String&, bool = true) const;
  10869. uint Find(const String&, uint = 0, bool = true) const;
  10870. uint Find(uint8, uint = 0, bool = true) const;
  10871. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10872. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10873. void Join(Array<String>&, const String&);
  10874. uint NextUTF8Char(uint&) const;
  10875. void Replace(const String&, const String&, bool = true);
  10876. void Replace(uint8, uint8, bool = true);
  10877. void ReplaceUTF8(uint, uint);
  10878. String Replaced(const String&, const String&, bool = true) const;
  10879. String Replaced(uint8, uint8, bool = true) const;
  10880. void Resize(uint);
  10881. void SetUTF8FromLatin1(const String&);
  10882. Array<String> Split(uint8, bool = false) const;
  10883. bool StartsWith(const String&, bool = true) const;
  10884. String Substring(uint) const;
  10885. String Substring(uint, uint) const;
  10886. String SubstringUTF8(uint) const;
  10887. String SubstringUTF8(uint, uint) const;
  10888. bool ToBool() const;
  10889. Color ToColor() const;
  10890. double ToDouble() const;
  10891. float ToFloat() const;
  10892. int ToInt(int = 10) const;
  10893. IntRect ToIntRect() const;
  10894. IntVector2 ToIntVector2() const;
  10895. String ToLower() const;
  10896. Matrix3 ToMatrix3() const;
  10897. Matrix3x4 ToMatrix3x4() const;
  10898. Matrix4 ToMatrix4() const;
  10899. Quaternion ToQuaternion() const;
  10900. uint ToUInt(int = 10) const;
  10901. String ToUpper() const;
  10902. Vector2 ToVector2() const;
  10903. Vector3 ToVector3() const;
  10904. Vector4 ToVector4(bool = false) const;
  10905. Variant ToVectorVariant() const;
  10906. String Trimmed() const;
  10907. // Properties:
  10908. /* readonly */
  10909. bool empty;
  10910. /* readonly */
  10911. uint length;
  10912. /* readonly */
  10913. uint utf8Length;
  10914. };
  10915. class StringHash
  10916. {
  10917. // Methods:
  10918. String ToString() const;
  10919. // Properties:
  10920. /* readonly */
  10921. uint value;
  10922. };
  10923. class Technique
  10924. {
  10925. // Methods:
  10926. Technique Clone(const String& = String ( )) const;
  10927. Pass CreatePass(const String&);
  10928. Pass GetPass(const String&);
  10929. Pass GetSupportedPass(const String&);
  10930. bool HasPass(const String&) const;
  10931. bool HasSubscribedToEvent(Object, const String&);
  10932. bool HasSubscribedToEvent(const String&);
  10933. bool Load(File);
  10934. bool Load(VectorBuffer&);
  10935. void RemovePass(const String&);
  10936. bool Save(File) const;
  10937. bool Save(VectorBuffer&) const;
  10938. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10939. // Properties:
  10940. /* readonly */
  10941. String category;
  10942. bool desktop;
  10943. /* readonly */
  10944. uint memoryUse;
  10945. String name;
  10946. /* readonly */
  10947. uint numPasses;
  10948. /* readonly */
  10949. Array<String> passNames;
  10950. /* readonly */
  10951. Array<Pass> passes;
  10952. /* readonly */
  10953. int refs;
  10954. /* readonly */
  10955. bool supported;
  10956. /* readonly */
  10957. StringHash type;
  10958. /* readonly */
  10959. String typeName;
  10960. /* readonly */
  10961. uint useTimer;
  10962. /* readonly */
  10963. int weakRefs;
  10964. };
  10965. class TechniqueEntry
  10966. {
  10967. // Properties:
  10968. float lodDistance;
  10969. int qualityLevel;
  10970. Technique technique;
  10971. };
  10972. class Terrain
  10973. {
  10974. // Methods:
  10975. void ApplyAttributes();
  10976. void ApplyHeightMap();
  10977. void DrawDebugGeometry(DebugRenderer, bool);
  10978. Variant GetAttribute(const String&) const;
  10979. ValueAnimation GetAttributeAnimation(const String&) const;
  10980. float GetAttributeAnimationSpeed(const String&) const;
  10981. float GetAttributeAnimationTime(const String&) const;
  10982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10983. Variant GetAttributeDefault(const String&) const;
  10984. float GetHeight(const Vector3&) const;
  10985. bool GetInterceptNetworkUpdate(const String&) const;
  10986. TerrainPatch GetNeighborPatch(int, int) const;
  10987. Vector3 GetNormal(const Vector3&) const;
  10988. TerrainPatch GetPatch(int, int) const;
  10989. bool HasSubscribedToEvent(Object, const String&);
  10990. bool HasSubscribedToEvent(const String&);
  10991. bool Load(File, bool = false);
  10992. bool Load(VectorBuffer&, bool = false);
  10993. bool LoadJSON(const JSONValue&, bool = false);
  10994. bool LoadXML(const XMLElement&, bool = false);
  10995. void MarkNetworkUpdate() const;
  10996. void Remove();
  10997. void RemoveAttributeAnimation(const String&);
  10998. void RemoveInstanceDefault();
  10999. void RemoveObjectAnimation();
  11000. void ResetToDefault();
  11001. bool Save(File) const;
  11002. bool Save(VectorBuffer&) const;
  11003. bool SaveJSON(JSONValue&) const;
  11004. bool SaveXML(XMLElement&) const;
  11005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11006. void SetAnimationTime(float);
  11007. bool SetAttribute(const String&, const Variant&);
  11008. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11009. void SetAttributeAnimationSpeed(const String&, float);
  11010. void SetAttributeAnimationTime(const String&, float);
  11011. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11012. void SetInterceptNetworkUpdate(const String&, bool);
  11013. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11014. IntVector2 WorldToHeightMap(const Vector3&) const;
  11015. // Properties:
  11016. bool animationEnabled;
  11017. /* readonly */
  11018. Array<Variant> attributeDefaults;
  11019. /* readonly */
  11020. Array<AttributeInfo> attributeInfos;
  11021. Array<Variant> attributes;
  11022. bool castShadows;
  11023. /* readonly */
  11024. String category;
  11025. float drawDistance;
  11026. Terrain eastNeighbor;
  11027. bool enabled;
  11028. /* readonly */
  11029. bool enabledEffective;
  11030. Image heightMap;
  11031. /* readonly */
  11032. uint id;
  11033. uint lightMask;
  11034. float lodBias;
  11035. Material material;
  11036. uint maxLights;
  11037. uint maxLodLevels;
  11038. /* readonly */
  11039. Node node;
  11040. Terrain northNeighbor;
  11041. /* readonly */
  11042. uint numAttributes;
  11043. /* readonly */
  11044. IntVector2 numPatches;
  11045. /* readonly */
  11046. IntVector2 numVertices;
  11047. ObjectAnimation objectAnimation;
  11048. bool occludee;
  11049. bool occluder;
  11050. uint occlusionLodLevel;
  11051. int patchSize;
  11052. /* readonly */
  11053. Array<TerrainPatch> patches;
  11054. /* readonly */
  11055. int refs;
  11056. float shadowDistance;
  11057. uint shadowMask;
  11058. bool smoothing;
  11059. Terrain southNeighbor;
  11060. Vector3 spacing;
  11061. bool temporary;
  11062. /* readonly */
  11063. StringHash type;
  11064. /* readonly */
  11065. String typeName;
  11066. uint viewMask;
  11067. /* readonly */
  11068. int weakRefs;
  11069. Terrain westNeighbor;
  11070. uint zoneMask;
  11071. };
  11072. class TerrainPatch
  11073. {
  11074. // Methods:
  11075. void ApplyAttributes();
  11076. void DrawDebugGeometry(DebugRenderer, bool);
  11077. Variant GetAttribute(const String&) const;
  11078. ValueAnimation GetAttributeAnimation(const String&) const;
  11079. float GetAttributeAnimationSpeed(const String&) const;
  11080. float GetAttributeAnimationTime(const String&) const;
  11081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11082. Variant GetAttributeDefault(const String&) const;
  11083. bool GetInterceptNetworkUpdate(const String&) const;
  11084. bool HasSubscribedToEvent(Object, const String&);
  11085. bool HasSubscribedToEvent(const String&);
  11086. bool IsInView(Camera) const;
  11087. bool Load(File, bool = false);
  11088. bool Load(VectorBuffer&, bool = false);
  11089. bool LoadJSON(const JSONValue&, bool = false);
  11090. bool LoadXML(const XMLElement&, bool = false);
  11091. void MarkNetworkUpdate() const;
  11092. void Remove();
  11093. void RemoveAttributeAnimation(const String&);
  11094. void RemoveInstanceDefault();
  11095. void RemoveObjectAnimation();
  11096. void ResetToDefault();
  11097. bool Save(File) const;
  11098. bool Save(VectorBuffer&) const;
  11099. bool SaveJSON(JSONValue&) const;
  11100. bool SaveXML(XMLElement&) const;
  11101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11102. void SetAnimationTime(float);
  11103. bool SetAttribute(const String&, const Variant&);
  11104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11105. void SetAttributeAnimationSpeed(const String&, float);
  11106. void SetAttributeAnimationTime(const String&, float);
  11107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11108. void SetInterceptNetworkUpdate(const String&, bool);
  11109. // Properties:
  11110. bool animationEnabled;
  11111. /* readonly */
  11112. Array<Variant> attributeDefaults;
  11113. /* readonly */
  11114. Array<AttributeInfo> attributeInfos;
  11115. Array<Variant> attributes;
  11116. /* readonly */
  11117. BoundingBox boundingBox;
  11118. bool castShadows;
  11119. /* readonly */
  11120. String category;
  11121. float drawDistance;
  11122. bool enabled;
  11123. /* readonly */
  11124. bool enabledEffective;
  11125. /* readonly */
  11126. uint id;
  11127. /* readonly */
  11128. bool inView;
  11129. uint lightMask;
  11130. float lodBias;
  11131. uint maxLights;
  11132. /* readonly */
  11133. Node node;
  11134. /* readonly */
  11135. uint numAttributes;
  11136. ObjectAnimation objectAnimation;
  11137. bool occludee;
  11138. bool occluder;
  11139. /* readonly */
  11140. int refs;
  11141. float shadowDistance;
  11142. uint shadowMask;
  11143. bool temporary;
  11144. /* readonly */
  11145. StringHash type;
  11146. /* readonly */
  11147. String typeName;
  11148. uint viewMask;
  11149. /* readonly */
  11150. int weakRefs;
  11151. /* readonly */
  11152. BoundingBox worldBoundingBox;
  11153. uint zoneMask;
  11154. };
  11155. class Text
  11156. {
  11157. // Methods:
  11158. void AddChild(UIElement);
  11159. void AddTag(const String&);
  11160. void AddTags(const String&, int8 = ';');
  11161. void ApplyAttributes();
  11162. void BringToFront();
  11163. void ClearSelection();
  11164. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11165. void DisableLayoutUpdate();
  11166. IntVector2 ElementToScreen(const IntVector2&);
  11167. void EnableLayoutUpdate();
  11168. uint FindChild(UIElement) const;
  11169. Variant GetAttribute(const String&) const;
  11170. ValueAnimation GetAttributeAnimation(const String&) const;
  11171. float GetAttributeAnimationSpeed(const String&) const;
  11172. float GetAttributeAnimationTime(const String&) const;
  11173. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11174. Variant GetAttributeDefault(const String&) const;
  11175. UIElement GetChild(const String&, bool = false) const;
  11176. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11177. Array<UIElement> GetChildren(bool = false) const;
  11178. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11179. UIElement GetElementEventSender() const;
  11180. bool GetInterceptNetworkUpdate(const String&) const;
  11181. uint GetNumChildren(bool) const;
  11182. bool HasSubscribedToEvent(Object, const String&);
  11183. bool HasSubscribedToEvent(const String&);
  11184. bool HasTag(const String&) const;
  11185. void InsertChild(uint, UIElement);
  11186. bool IsInside(IntVector2, bool);
  11187. bool IsInsideCombined(IntVector2, bool);
  11188. bool Load(File, bool = false);
  11189. bool Load(VectorBuffer&, bool = false);
  11190. bool LoadChildXML(XMLFile, XMLFile = null);
  11191. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11192. bool LoadJSON(const JSONValue&, bool = false);
  11193. bool LoadXML(File);
  11194. bool LoadXML(VectorBuffer&);
  11195. bool LoadXML(XMLFile, XMLFile);
  11196. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11197. bool LoadXML(const XMLElement&, bool = false);
  11198. void MarkNetworkUpdate() const;
  11199. void Remove();
  11200. void RemoveAllChildren();
  11201. void RemoveAllTags();
  11202. void RemoveAttributeAnimation(const String&);
  11203. void RemoveChild(UIElement, uint = 0);
  11204. void RemoveChild(uint);
  11205. void RemoveInstanceDefault();
  11206. void RemoveObjectAnimation();
  11207. bool RemoveTag(const String&);
  11208. void ResetDeepEnabled();
  11209. void ResetToDefault();
  11210. bool Save(File) const;
  11211. bool Save(VectorBuffer&) const;
  11212. bool SaveJSON(JSONValue&) const;
  11213. bool SaveXML(File, const String& = "\t");
  11214. bool SaveXML(VectorBuffer&, const String& = "\t");
  11215. bool SaveXML(XMLElement&) const;
  11216. IntVector2 ScreenToElement(const IntVector2&);
  11217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11218. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11219. void SetAnimationTime(float);
  11220. bool SetAttribute(const String&, const Variant&);
  11221. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11222. void SetAttributeAnimationSpeed(const String&, float);
  11223. void SetAttributeAnimationTime(const String&, float);
  11224. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11225. void SetDeepEnabled(bool);
  11226. void SetEnabledRecursive(bool);
  11227. void SetFixedHeight(int);
  11228. void SetFixedSize(int, int);
  11229. void SetFixedWidth(int);
  11230. bool SetFont(Font, int);
  11231. bool SetFont(const String&, int);
  11232. void SetInterceptNetworkUpdate(const String&, bool);
  11233. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11234. void SetMaxSize(int, int);
  11235. void SetMinSize(int, int);
  11236. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11237. void SetPosition(int, int);
  11238. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11239. void SetSize(int, int);
  11240. bool SetStyle(const String&, XMLFile = null);
  11241. bool SetStyle(const XMLElement&);
  11242. bool SetStyleAuto(XMLFile = null);
  11243. void UpdateLayout();
  11244. const Variant& GetVar(const StringHash&);
  11245. // Properties:
  11246. bool animationEnabled;
  11247. /* readonly */
  11248. Array<Variant> attributeDefaults;
  11249. /* readonly */
  11250. Array<AttributeInfo> attributeInfos;
  11251. Array<Variant> attributes;
  11252. bool autoLocalizable;
  11253. bool bringToBack;
  11254. bool bringToFront;
  11255. /* readonly */
  11256. String category;
  11257. /* readonly */
  11258. Array<IntVector2> charPositions;
  11259. /* readonly */
  11260. Array<IntVector2> charSizes;
  11261. /* readonly */
  11262. IntVector2 childOffset;
  11263. /* readonly */
  11264. Array<UIElement> children;
  11265. IntRect clipBorder;
  11266. bool clipChildren;
  11267. /* writeonly */
  11268. Color color;
  11269. /* readonly */
  11270. bool colorGradient;
  11271. Array<Color> colors;
  11272. /* readonly */
  11273. IntRect combinedScreenRect;
  11274. XMLFile defaultStyle;
  11275. /* readonly */
  11276. float derivedOpacity;
  11277. /* readonly */
  11278. uint dragButtonCombo;
  11279. /* readonly */
  11280. int dragButtonCount;
  11281. uint dragDropMode;
  11282. bool editable;
  11283. Color effectColor;
  11284. bool effectRoundStroke;
  11285. IntVector2 effectShadowOffset;
  11286. int effectStrokeThickness;
  11287. bool elementEventSender;
  11288. bool enabled;
  11289. /* readonly */
  11290. bool enabledSelf;
  11291. /* readonly */
  11292. bool fixedHeight;
  11293. /* readonly */
  11294. bool fixedSize;
  11295. /* readonly */
  11296. bool fixedWidth;
  11297. bool focus;
  11298. FocusMode focusMode;
  11299. /* readonly */
  11300. Font font;
  11301. int fontSize;
  11302. int height;
  11303. HorizontalAlignment horizontalAlignment;
  11304. Color hoverColor;
  11305. /* readonly */
  11306. bool hovering;
  11307. int indent;
  11308. int indentSpacing;
  11309. /* readonly */
  11310. int indentWidth;
  11311. bool internal;
  11312. IntRect layoutBorder;
  11313. Vector2 layoutFlexScale;
  11314. LayoutMode layoutMode;
  11315. int layoutSpacing;
  11316. int maxHeight;
  11317. IntVector2 maxSize;
  11318. int maxWidth;
  11319. int minHeight;
  11320. IntVector2 minSize;
  11321. int minWidth;
  11322. String name;
  11323. /* readonly */
  11324. uint numAllChildren;
  11325. /* readonly */
  11326. uint numAttributes;
  11327. /* readonly */
  11328. uint numChars;
  11329. /* readonly */
  11330. uint numChildren;
  11331. /* readonly */
  11332. uint numRows;
  11333. ObjectAnimation objectAnimation;
  11334. float opacity;
  11335. UIElement parent;
  11336. IntVector2 position;
  11337. int priority;
  11338. /* readonly */
  11339. int refs;
  11340. /* readonly */
  11341. UIElement root;
  11342. /* readonly */
  11343. int rowHeight;
  11344. float rowSpacing;
  11345. /* readonly */
  11346. Array<int> rowWidths;
  11347. /* readonly */
  11348. IntVector2 screenPosition;
  11349. bool selected;
  11350. Color selectionColor;
  11351. /* readonly */
  11352. uint selectionLength;
  11353. /* readonly */
  11354. uint selectionStart;
  11355. IntVector2 size;
  11356. bool sortChildren;
  11357. String style;
  11358. /* readonly */
  11359. Array<String> tags;
  11360. bool temporary;
  11361. String text;
  11362. HorizontalAlignment textAlignment;
  11363. TextEffect textEffect;
  11364. TraversalMode traversalMode;
  11365. /* readonly */
  11366. StringHash type;
  11367. /* readonly */
  11368. String typeName;
  11369. bool useDerivedOpacity;
  11370. /* readonly */
  11371. VariantMap vars;
  11372. VerticalAlignment verticalAlignment;
  11373. bool visible;
  11374. /* readonly */
  11375. bool visibleEffective;
  11376. /* readonly */
  11377. int weakRefs;
  11378. int width;
  11379. bool wordwrap;
  11380. };
  11381. class Text3D
  11382. {
  11383. // Methods:
  11384. void ApplyAttributes();
  11385. void DrawDebugGeometry(DebugRenderer, bool);
  11386. Variant GetAttribute(const String&) const;
  11387. ValueAnimation GetAttributeAnimation(const String&) const;
  11388. float GetAttributeAnimationSpeed(const String&) const;
  11389. float GetAttributeAnimationTime(const String&) const;
  11390. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11391. Variant GetAttributeDefault(const String&) const;
  11392. bool GetInterceptNetworkUpdate(const String&) const;
  11393. bool HasSubscribedToEvent(Object, const String&);
  11394. bool HasSubscribedToEvent(const String&);
  11395. bool IsInView(Camera) const;
  11396. bool Load(File, bool = false);
  11397. bool Load(VectorBuffer&, bool = false);
  11398. bool LoadJSON(const JSONValue&, bool = false);
  11399. bool LoadXML(const XMLElement&, bool = false);
  11400. void MarkNetworkUpdate() const;
  11401. void Remove();
  11402. void RemoveAttributeAnimation(const String&);
  11403. void RemoveInstanceDefault();
  11404. void RemoveObjectAnimation();
  11405. void ResetToDefault();
  11406. bool Save(File) const;
  11407. bool Save(VectorBuffer&) const;
  11408. bool SaveJSON(JSONValue&) const;
  11409. bool SaveXML(XMLElement&) const;
  11410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11411. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11412. void SetAnimationTime(float);
  11413. bool SetAttribute(const String&, const Variant&);
  11414. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11415. void SetAttributeAnimationSpeed(const String&, float);
  11416. void SetAttributeAnimationTime(const String&, float);
  11417. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11418. bool SetFont(Font, int);
  11419. bool SetFont(const String&, int);
  11420. void SetInterceptNetworkUpdate(const String&, bool);
  11421. // Properties:
  11422. bool animationEnabled;
  11423. /* readonly */
  11424. Array<Variant> attributeDefaults;
  11425. /* readonly */
  11426. Array<AttributeInfo> attributeInfos;
  11427. Array<Variant> attributes;
  11428. /* readonly */
  11429. BoundingBox boundingBox;
  11430. bool castShadows;
  11431. /* readonly */
  11432. String category;
  11433. /* readonly */
  11434. Array<IntVector2> charPositions;
  11435. /* readonly */
  11436. Array<IntVector2> charSizes;
  11437. /* writeonly */
  11438. Color color;
  11439. Array<Color> colors;
  11440. float drawDistance;
  11441. Color effectColor;
  11442. float effectDepthBias;
  11443. bool effectRoundStroke;
  11444. IntVector2 effectShadowOffset;
  11445. int effectStrokeThickness;
  11446. bool enabled;
  11447. /* readonly */
  11448. bool enabledEffective;
  11449. FaceCameraMode faceCameraMode;
  11450. bool fixedScreenSize;
  11451. /* readonly */
  11452. Font font;
  11453. int fontSize;
  11454. HorizontalAlignment horizontalAlignment;
  11455. /* readonly */
  11456. uint id;
  11457. /* readonly */
  11458. bool inView;
  11459. uint lightMask;
  11460. float lodBias;
  11461. Material material;
  11462. uint maxLights;
  11463. /* readonly */
  11464. Node node;
  11465. /* readonly */
  11466. uint numAttributes;
  11467. /* readonly */
  11468. uint numChars;
  11469. /* readonly */
  11470. uint numRows;
  11471. ObjectAnimation objectAnimation;
  11472. bool occludee;
  11473. bool occluder;
  11474. float opacity;
  11475. /* readonly */
  11476. int refs;
  11477. /* readonly */
  11478. int rowHeight;
  11479. float rowSpacing;
  11480. /* readonly */
  11481. Array<int> rowWidths;
  11482. float shadowDistance;
  11483. uint shadowMask;
  11484. bool temporary;
  11485. String text;
  11486. HorizontalAlignment textAlignment;
  11487. TextEffect textEffect;
  11488. /* readonly */
  11489. StringHash type;
  11490. /* readonly */
  11491. String typeName;
  11492. VerticalAlignment verticalAlignment;
  11493. uint viewMask;
  11494. /* readonly */
  11495. int weakRefs;
  11496. int width;
  11497. bool wordwrap;
  11498. /* readonly */
  11499. BoundingBox worldBoundingBox;
  11500. uint zoneMask;
  11501. };
  11502. class Texture
  11503. {
  11504. // Methods:
  11505. void ClearDataLost();
  11506. bool HasSubscribedToEvent(Object, const String&);
  11507. bool HasSubscribedToEvent(const String&);
  11508. bool Load(File);
  11509. bool Load(VectorBuffer&);
  11510. bool Save(File) const;
  11511. bool Save(VectorBuffer&) const;
  11512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11513. void SetNumLevels(uint);
  11514. // Properties:
  11515. Array<TextureAddressMode> addressMode;
  11516. Texture backupTexture;
  11517. Color borderColor;
  11518. /* readonly */
  11519. String category;
  11520. /* readonly */
  11521. uint components;
  11522. /* readonly */
  11523. bool compressed;
  11524. /* readonly */
  11525. bool dataLost;
  11526. TextureFilterMode filterMode;
  11527. /* readonly */
  11528. uint format;
  11529. /* readonly */
  11530. int height;
  11531. /* readonly */
  11532. Array<int> levelHeight;
  11533. /* readonly */
  11534. Array<int> levelWidth;
  11535. /* readonly */
  11536. uint levels;
  11537. /* readonly */
  11538. uint memoryUse;
  11539. Array<int> mipsToSkip;
  11540. String name;
  11541. /* readonly */
  11542. int refs;
  11543. bool sRGB;
  11544. /* readonly */
  11545. StringHash type;
  11546. /* readonly */
  11547. String typeName;
  11548. /* readonly */
  11549. TextureUsage usage;
  11550. /* readonly */
  11551. uint useTimer;
  11552. /* readonly */
  11553. int weakRefs;
  11554. /* readonly */
  11555. int width;
  11556. };
  11557. class Texture2D
  11558. {
  11559. // Methods:
  11560. void ClearDataLost();
  11561. Image GetImage() const;
  11562. bool HasSubscribedToEvent(Object, const String&);
  11563. bool HasSubscribedToEvent(const String&);
  11564. bool Load(File);
  11565. bool Load(VectorBuffer&);
  11566. bool Save(File) const;
  11567. bool Save(VectorBuffer&) const;
  11568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11569. bool SetData(Image, bool = false);
  11570. void SetNumLevels(uint);
  11571. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11572. // Properties:
  11573. Array<TextureAddressMode> addressMode;
  11574. Texture backupTexture;
  11575. Color borderColor;
  11576. /* readonly */
  11577. String category;
  11578. /* readonly */
  11579. uint components;
  11580. /* readonly */
  11581. bool compressed;
  11582. /* readonly */
  11583. bool dataLost;
  11584. TextureFilterMode filterMode;
  11585. /* readonly */
  11586. uint format;
  11587. /* readonly */
  11588. int height;
  11589. /* readonly */
  11590. Array<int> levelHeight;
  11591. /* readonly */
  11592. Array<int> levelWidth;
  11593. /* readonly */
  11594. uint levels;
  11595. /* readonly */
  11596. uint memoryUse;
  11597. Array<int> mipsToSkip;
  11598. String name;
  11599. /* readonly */
  11600. int refs;
  11601. /* readonly */
  11602. RenderSurface renderSurface;
  11603. bool sRGB;
  11604. /* readonly */
  11605. StringHash type;
  11606. /* readonly */
  11607. String typeName;
  11608. /* readonly */
  11609. TextureUsage usage;
  11610. /* readonly */
  11611. uint useTimer;
  11612. /* readonly */
  11613. int weakRefs;
  11614. /* readonly */
  11615. int width;
  11616. };
  11617. class Texture2DArray
  11618. {
  11619. // Methods:
  11620. void ClearDataLost();
  11621. bool HasSubscribedToEvent(Object, const String&);
  11622. bool HasSubscribedToEvent(const String&);
  11623. bool Load(File);
  11624. bool Load(VectorBuffer&);
  11625. bool Save(File) const;
  11626. bool Save(VectorBuffer&) const;
  11627. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11628. bool SetData(uint, Image, bool = false);
  11629. void SetNumLevels(uint);
  11630. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11631. // Properties:
  11632. Array<TextureAddressMode> addressMode;
  11633. Texture backupTexture;
  11634. Color borderColor;
  11635. /* readonly */
  11636. String category;
  11637. /* readonly */
  11638. uint components;
  11639. /* readonly */
  11640. bool compressed;
  11641. /* readonly */
  11642. bool dataLost;
  11643. TextureFilterMode filterMode;
  11644. /* readonly */
  11645. uint format;
  11646. /* readonly */
  11647. int height;
  11648. uint layers;
  11649. /* readonly */
  11650. Array<int> levelHeight;
  11651. /* readonly */
  11652. Array<int> levelWidth;
  11653. /* readonly */
  11654. uint levels;
  11655. /* readonly */
  11656. uint memoryUse;
  11657. Array<int> mipsToSkip;
  11658. String name;
  11659. /* readonly */
  11660. int refs;
  11661. /* readonly */
  11662. RenderSurface renderSurface;
  11663. bool sRGB;
  11664. /* readonly */
  11665. StringHash type;
  11666. /* readonly */
  11667. String typeName;
  11668. /* readonly */
  11669. TextureUsage usage;
  11670. /* readonly */
  11671. uint useTimer;
  11672. /* readonly */
  11673. int weakRefs;
  11674. /* readonly */
  11675. int width;
  11676. };
  11677. class Texture3D
  11678. {
  11679. // Methods:
  11680. void ClearDataLost();
  11681. bool HasSubscribedToEvent(Object, const String&);
  11682. bool HasSubscribedToEvent(const String&);
  11683. bool Load(File);
  11684. bool Load(VectorBuffer&);
  11685. bool Save(File) const;
  11686. bool Save(VectorBuffer&) const;
  11687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11688. bool SetData(Image, bool = false);
  11689. void SetNumLevels(uint);
  11690. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11691. // Properties:
  11692. Array<TextureAddressMode> addressMode;
  11693. Texture backupTexture;
  11694. Color borderColor;
  11695. /* readonly */
  11696. String category;
  11697. /* readonly */
  11698. uint components;
  11699. /* readonly */
  11700. bool compressed;
  11701. /* readonly */
  11702. bool dataLost;
  11703. TextureFilterMode filterMode;
  11704. /* readonly */
  11705. uint format;
  11706. /* readonly */
  11707. int height;
  11708. /* readonly */
  11709. Array<int> levelHeight;
  11710. /* readonly */
  11711. Array<int> levelWidth;
  11712. /* readonly */
  11713. uint levels;
  11714. /* readonly */
  11715. uint memoryUse;
  11716. Array<int> mipsToSkip;
  11717. String name;
  11718. /* readonly */
  11719. int refs;
  11720. bool sRGB;
  11721. /* readonly */
  11722. StringHash type;
  11723. /* readonly */
  11724. String typeName;
  11725. /* readonly */
  11726. TextureUsage usage;
  11727. /* readonly */
  11728. uint useTimer;
  11729. /* readonly */
  11730. int weakRefs;
  11731. /* readonly */
  11732. int width;
  11733. };
  11734. class TextureCube
  11735. {
  11736. // Methods:
  11737. void ClearDataLost();
  11738. Image GetImage(CubeMapFace) const;
  11739. bool HasSubscribedToEvent(Object, const String&);
  11740. bool HasSubscribedToEvent(const String&);
  11741. bool Load(File);
  11742. bool Load(VectorBuffer&);
  11743. bool Save(File) const;
  11744. bool Save(VectorBuffer&) const;
  11745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11746. bool SetData(CubeMapFace, Image, bool = false);
  11747. void SetNumLevels(uint);
  11748. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11749. // Properties:
  11750. Array<TextureAddressMode> addressMode;
  11751. Texture backupTexture;
  11752. Color borderColor;
  11753. /* readonly */
  11754. String category;
  11755. /* readonly */
  11756. uint components;
  11757. /* readonly */
  11758. bool compressed;
  11759. /* readonly */
  11760. bool dataLost;
  11761. TextureFilterMode filterMode;
  11762. /* readonly */
  11763. uint format;
  11764. /* readonly */
  11765. int height;
  11766. /* readonly */
  11767. Array<int> levelHeight;
  11768. /* readonly */
  11769. Array<int> levelWidth;
  11770. /* readonly */
  11771. uint levels;
  11772. /* readonly */
  11773. uint memoryUse;
  11774. Array<int> mipsToSkip;
  11775. String name;
  11776. /* readonly */
  11777. int refs;
  11778. /* readonly */
  11779. Array<RenderSurface> renderSurfaces;
  11780. bool sRGB;
  11781. /* readonly */
  11782. StringHash type;
  11783. /* readonly */
  11784. String typeName;
  11785. /* readonly */
  11786. TextureUsage usage;
  11787. /* readonly */
  11788. uint useTimer;
  11789. /* readonly */
  11790. int weakRefs;
  11791. /* readonly */
  11792. int width;
  11793. };
  11794. class TextureFrame
  11795. {
  11796. // Properties:
  11797. float time;
  11798. Rect uv;
  11799. };
  11800. class Tile2D
  11801. {
  11802. // Methods:
  11803. bool HasProperty(const String&) const;
  11804. const String& GetProperty(const String&) const;
  11805. // Properties:
  11806. /* readonly */
  11807. int gid;
  11808. /* readonly */
  11809. int refs;
  11810. /* readonly */
  11811. Sprite2D sprite;
  11812. /* readonly */
  11813. int weakRefs;
  11814. };
  11815. class TileMap2D
  11816. {
  11817. // Methods:
  11818. void ApplyAttributes();
  11819. void DrawDebugGeometry(DebugRenderer, bool);
  11820. Variant GetAttribute(const String&) const;
  11821. ValueAnimation GetAttributeAnimation(const String&) const;
  11822. float GetAttributeAnimationSpeed(const String&) const;
  11823. float GetAttributeAnimationTime(const String&) const;
  11824. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11825. Variant GetAttributeDefault(const String&) const;
  11826. bool GetInterceptNetworkUpdate(const String&) const;
  11827. TileMapLayer2D GetLayer(uint) const;
  11828. bool HasSubscribedToEvent(Object, const String&);
  11829. bool HasSubscribedToEvent(const String&);
  11830. bool Load(File, bool = false);
  11831. bool Load(VectorBuffer&, bool = false);
  11832. bool LoadJSON(const JSONValue&, bool = false);
  11833. bool LoadXML(const XMLElement&, bool = false);
  11834. void MarkNetworkUpdate() const;
  11835. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11836. void Remove();
  11837. void RemoveAttributeAnimation(const String&);
  11838. void RemoveInstanceDefault();
  11839. void RemoveObjectAnimation();
  11840. void ResetToDefault();
  11841. bool Save(File) const;
  11842. bool Save(VectorBuffer&) const;
  11843. bool SaveJSON(JSONValue&) const;
  11844. bool SaveXML(XMLElement&) const;
  11845. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11846. void SetAnimationTime(float);
  11847. bool SetAttribute(const String&, const Variant&);
  11848. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11849. void SetAttributeAnimationSpeed(const String&, float);
  11850. void SetAttributeAnimationTime(const String&, float);
  11851. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11852. void SetInterceptNetworkUpdate(const String&, bool);
  11853. Vector2 TileIndexToPosition(int, int) const;
  11854. // Properties:
  11855. bool animationEnabled;
  11856. /* readonly */
  11857. Array<Variant> attributeDefaults;
  11858. /* readonly */
  11859. Array<AttributeInfo> attributeInfos;
  11860. Array<Variant> attributes;
  11861. /* readonly */
  11862. String category;
  11863. bool enabled;
  11864. /* readonly */
  11865. bool enabledEffective;
  11866. /* readonly */
  11867. uint id;
  11868. /* readonly */
  11869. TileMapInfo2D info;
  11870. /* readonly */
  11871. Node node;
  11872. /* readonly */
  11873. uint numAttributes;
  11874. /* readonly */
  11875. uint numLayers;
  11876. ObjectAnimation objectAnimation;
  11877. /* readonly */
  11878. int refs;
  11879. bool temporary;
  11880. TmxFile2D tmxFile;
  11881. /* readonly */
  11882. StringHash type;
  11883. /* readonly */
  11884. String typeName;
  11885. /* readonly */
  11886. int weakRefs;
  11887. };
  11888. class TileMapInfo2D
  11889. {
  11890. // Properties:
  11891. int height;
  11892. /* readonly */
  11893. float mapHeight;
  11894. /* readonly */
  11895. float mapWidth;
  11896. Orientation2D orientation;
  11897. float tileHeight;
  11898. float tileWidth;
  11899. int width;
  11900. };
  11901. class TileMapLayer2D
  11902. {
  11903. // Methods:
  11904. void ApplyAttributes();
  11905. void DrawDebugGeometry(DebugRenderer, bool);
  11906. Variant GetAttribute(const String&) const;
  11907. ValueAnimation GetAttributeAnimation(const String&) const;
  11908. float GetAttributeAnimationSpeed(const String&) const;
  11909. float GetAttributeAnimationTime(const String&) const;
  11910. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11911. Variant GetAttributeDefault(const String&) const;
  11912. bool GetInterceptNetworkUpdate(const String&) const;
  11913. TileMapObject2D GetObject(uint) const;
  11914. Node GetObjectNode(uint) const;
  11915. Tile2D GetTile(int, int) const;
  11916. Node GetTileNode(int, int) const;
  11917. bool HasProperty(const String&) const;
  11918. bool HasSubscribedToEvent(Object, const String&);
  11919. bool HasSubscribedToEvent(const String&);
  11920. bool Load(File, bool = false);
  11921. bool Load(VectorBuffer&, bool = false);
  11922. bool LoadJSON(const JSONValue&, bool = false);
  11923. bool LoadXML(const XMLElement&, bool = false);
  11924. void MarkNetworkUpdate() const;
  11925. void Remove();
  11926. void RemoveAttributeAnimation(const String&);
  11927. void RemoveInstanceDefault();
  11928. void RemoveObjectAnimation();
  11929. void ResetToDefault();
  11930. bool Save(File) const;
  11931. bool Save(VectorBuffer&) const;
  11932. bool SaveJSON(JSONValue&) const;
  11933. bool SaveXML(XMLElement&) const;
  11934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11935. void SetAnimationTime(float);
  11936. bool SetAttribute(const String&, const Variant&);
  11937. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11938. void SetAttributeAnimationSpeed(const String&, float);
  11939. void SetAttributeAnimationTime(const String&, float);
  11940. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11941. void SetInterceptNetworkUpdate(const String&, bool);
  11942. const String& GetProperty(const String&) const;
  11943. // Properties:
  11944. bool animationEnabled;
  11945. /* readonly */
  11946. Array<Variant> attributeDefaults;
  11947. /* readonly */
  11948. Array<AttributeInfo> attributeInfos;
  11949. Array<Variant> attributes;
  11950. /* readonly */
  11951. String category;
  11952. int drawOrder;
  11953. bool enabled;
  11954. /* readonly */
  11955. bool enabledEffective;
  11956. /* readonly */
  11957. int height;
  11958. /* readonly */
  11959. uint id;
  11960. /* readonly */
  11961. Node imageNode;
  11962. /* readonly */
  11963. TileMapLayerType2D layerType;
  11964. /* readonly */
  11965. Node node;
  11966. /* readonly */
  11967. uint numAttributes;
  11968. /* readonly */
  11969. uint numObjects;
  11970. ObjectAnimation objectAnimation;
  11971. /* readonly */
  11972. int refs;
  11973. bool temporary;
  11974. /* readonly */
  11975. StringHash type;
  11976. /* readonly */
  11977. String typeName;
  11978. bool visible;
  11979. /* readonly */
  11980. int weakRefs;
  11981. /* readonly */
  11982. int width;
  11983. };
  11984. class TileMapObject2D
  11985. {
  11986. // Methods:
  11987. bool HasProperty(const String&) const;
  11988. const String& GetProperty(const String&) const;
  11989. const Vector2& GetPoint(uint) const;
  11990. // Properties:
  11991. /* readonly */
  11992. String name;
  11993. /* readonly */
  11994. uint numPoints;
  11995. /* readonly */
  11996. TileObjectType2D objectType;
  11997. /* readonly */
  11998. Vector2 position;
  11999. /* readonly */
  12000. int refs;
  12001. /* readonly */
  12002. Vector2 size;
  12003. /* readonly */
  12004. int tileGid;
  12005. /* readonly */
  12006. Sprite2D tileSprite;
  12007. /* readonly */
  12008. String type;
  12009. /* readonly */
  12010. int weakRefs;
  12011. };
  12012. class Time
  12013. {
  12014. // Methods:
  12015. bool HasSubscribedToEvent(Object, const String&);
  12016. bool HasSubscribedToEvent(const String&);
  12017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12018. // Properties:
  12019. /* readonly */
  12020. String category;
  12021. /* readonly */
  12022. float elapsedTime;
  12023. /* readonly */
  12024. uint frameNumber;
  12025. /* readonly */
  12026. int refs;
  12027. /* readonly */
  12028. uint systemTime;
  12029. /* readonly */
  12030. uint timeSinceEpoch;
  12031. /* readonly */
  12032. String timeStamp;
  12033. /* readonly */
  12034. float timeStep;
  12035. /* readonly */
  12036. StringHash type;
  12037. /* readonly */
  12038. String typeName;
  12039. /* readonly */
  12040. int weakRefs;
  12041. };
  12042. class Timer
  12043. {
  12044. // Methods:
  12045. uint GetMSec(bool);
  12046. void Reset();
  12047. };
  12048. class TmxFile2D
  12049. {
  12050. // Methods:
  12051. bool HasSubscribedToEvent(Object, const String&);
  12052. bool HasSubscribedToEvent(const String&);
  12053. bool Load(File);
  12054. bool Load(VectorBuffer&);
  12055. bool Save(File) const;
  12056. bool Save(VectorBuffer&) const;
  12057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12058. // Properties:
  12059. /* readonly */
  12060. String category;
  12061. /* readonly */
  12062. uint memoryUse;
  12063. String name;
  12064. /* readonly */
  12065. int refs;
  12066. /* readonly */
  12067. StringHash type;
  12068. /* readonly */
  12069. String typeName;
  12070. /* readonly */
  12071. uint useTimer;
  12072. /* readonly */
  12073. int weakRefs;
  12074. };
  12075. class ToolTip
  12076. {
  12077. // Methods:
  12078. void AddChild(UIElement);
  12079. void AddTag(const String&);
  12080. void AddTags(const String&, int8 = ';');
  12081. void ApplyAttributes();
  12082. void BringToFront();
  12083. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12084. void DisableLayoutUpdate();
  12085. IntVector2 ElementToScreen(const IntVector2&);
  12086. void EnableLayoutUpdate();
  12087. uint FindChild(UIElement) const;
  12088. Variant GetAttribute(const String&) const;
  12089. ValueAnimation GetAttributeAnimation(const String&) const;
  12090. float GetAttributeAnimationSpeed(const String&) const;
  12091. float GetAttributeAnimationTime(const String&) const;
  12092. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12093. Variant GetAttributeDefault(const String&) const;
  12094. UIElement GetChild(const String&, bool = false) const;
  12095. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12096. Array<UIElement> GetChildren(bool = false) const;
  12097. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12098. UIElement GetElementEventSender() const;
  12099. bool GetInterceptNetworkUpdate(const String&) const;
  12100. uint GetNumChildren(bool) const;
  12101. bool HasSubscribedToEvent(Object, const String&);
  12102. bool HasSubscribedToEvent(const String&);
  12103. bool HasTag(const String&) const;
  12104. void InsertChild(uint, UIElement);
  12105. bool IsInside(IntVector2, bool);
  12106. bool IsInsideCombined(IntVector2, bool);
  12107. bool Load(File, bool = false);
  12108. bool Load(VectorBuffer&, bool = false);
  12109. bool LoadChildXML(XMLFile, XMLFile = null);
  12110. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12111. bool LoadJSON(const JSONValue&, bool = false);
  12112. bool LoadXML(File);
  12113. bool LoadXML(VectorBuffer&);
  12114. bool LoadXML(XMLFile, XMLFile);
  12115. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12116. bool LoadXML(const XMLElement&, bool = false);
  12117. void MarkNetworkUpdate() const;
  12118. void Remove();
  12119. void RemoveAllChildren();
  12120. void RemoveAllTags();
  12121. void RemoveAttributeAnimation(const String&);
  12122. void RemoveChild(UIElement, uint = 0);
  12123. void RemoveChild(uint);
  12124. void RemoveInstanceDefault();
  12125. void RemoveObjectAnimation();
  12126. bool RemoveTag(const String&);
  12127. void ResetDeepEnabled();
  12128. void ResetToDefault();
  12129. bool Save(File) const;
  12130. bool Save(VectorBuffer&) const;
  12131. bool SaveJSON(JSONValue&) const;
  12132. bool SaveXML(File, const String& = "\t");
  12133. bool SaveXML(VectorBuffer&, const String& = "\t");
  12134. bool SaveXML(XMLElement&) const;
  12135. IntVector2 ScreenToElement(const IntVector2&);
  12136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12137. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12138. void SetAnimationTime(float);
  12139. bool SetAttribute(const String&, const Variant&);
  12140. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12141. void SetAttributeAnimationSpeed(const String&, float);
  12142. void SetAttributeAnimationTime(const String&, float);
  12143. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12144. void SetDeepEnabled(bool);
  12145. void SetEnabledRecursive(bool);
  12146. void SetFixedHeight(int);
  12147. void SetFixedSize(int, int);
  12148. void SetFixedWidth(int);
  12149. void SetInterceptNetworkUpdate(const String&, bool);
  12150. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12151. void SetMaxSize(int, int);
  12152. void SetMinSize(int, int);
  12153. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12154. void SetPosition(int, int);
  12155. void SetSize(int, int);
  12156. bool SetStyle(const String&, XMLFile = null);
  12157. bool SetStyle(const XMLElement&);
  12158. bool SetStyleAuto(XMLFile = null);
  12159. void UpdateLayout();
  12160. const Variant& GetVar(const StringHash&);
  12161. // Properties:
  12162. bool animationEnabled;
  12163. /* readonly */
  12164. Array<Variant> attributeDefaults;
  12165. /* readonly */
  12166. Array<AttributeInfo> attributeInfos;
  12167. Array<Variant> attributes;
  12168. bool bringToBack;
  12169. bool bringToFront;
  12170. /* readonly */
  12171. String category;
  12172. /* readonly */
  12173. IntVector2 childOffset;
  12174. /* readonly */
  12175. Array<UIElement> children;
  12176. IntRect clipBorder;
  12177. bool clipChildren;
  12178. /* writeonly */
  12179. Color color;
  12180. /* readonly */
  12181. bool colorGradient;
  12182. Array<Color> colors;
  12183. /* readonly */
  12184. IntRect combinedScreenRect;
  12185. XMLFile defaultStyle;
  12186. float delay;
  12187. /* readonly */
  12188. float derivedOpacity;
  12189. /* readonly */
  12190. uint dragButtonCombo;
  12191. /* readonly */
  12192. int dragButtonCount;
  12193. uint dragDropMode;
  12194. bool editable;
  12195. bool elementEventSender;
  12196. bool enabled;
  12197. /* readonly */
  12198. bool enabledSelf;
  12199. /* readonly */
  12200. bool fixedHeight;
  12201. /* readonly */
  12202. bool fixedSize;
  12203. /* readonly */
  12204. bool fixedWidth;
  12205. bool focus;
  12206. FocusMode focusMode;
  12207. int height;
  12208. HorizontalAlignment horizontalAlignment;
  12209. /* readonly */
  12210. bool hovering;
  12211. int indent;
  12212. int indentSpacing;
  12213. /* readonly */
  12214. int indentWidth;
  12215. bool internal;
  12216. IntRect layoutBorder;
  12217. Vector2 layoutFlexScale;
  12218. LayoutMode layoutMode;
  12219. int layoutSpacing;
  12220. int maxHeight;
  12221. IntVector2 maxSize;
  12222. int maxWidth;
  12223. int minHeight;
  12224. IntVector2 minSize;
  12225. int minWidth;
  12226. String name;
  12227. /* readonly */
  12228. uint numAllChildren;
  12229. /* readonly */
  12230. uint numAttributes;
  12231. /* readonly */
  12232. uint numChildren;
  12233. ObjectAnimation objectAnimation;
  12234. float opacity;
  12235. UIElement parent;
  12236. IntVector2 position;
  12237. int priority;
  12238. /* readonly */
  12239. int refs;
  12240. /* readonly */
  12241. UIElement root;
  12242. /* readonly */
  12243. IntVector2 screenPosition;
  12244. bool selected;
  12245. IntVector2 size;
  12246. bool sortChildren;
  12247. String style;
  12248. /* readonly */
  12249. Array<String> tags;
  12250. bool temporary;
  12251. TraversalMode traversalMode;
  12252. /* readonly */
  12253. StringHash type;
  12254. /* readonly */
  12255. String typeName;
  12256. bool useDerivedOpacity;
  12257. /* readonly */
  12258. VariantMap vars;
  12259. VerticalAlignment verticalAlignment;
  12260. bool visible;
  12261. /* readonly */
  12262. bool visibleEffective;
  12263. /* readonly */
  12264. int weakRefs;
  12265. int width;
  12266. };
  12267. class TouchState
  12268. {
  12269. // Properties:
  12270. IntVector2 delta;
  12271. IntVector2 lastPosition;
  12272. IntVector2 position;
  12273. float pressure;
  12274. int touchID;
  12275. /* readonly */
  12276. UIElement touchedElement;
  12277. };
  12278. class UI
  12279. {
  12280. // Methods:
  12281. void Clear();
  12282. void DebugDraw(UIElement);
  12283. UIElement GetElementAt(const IntVector2&, bool = true);
  12284. UIElement GetElementAt(int, int, bool = true);
  12285. bool HasModalElement() const;
  12286. bool HasSubscribedToEvent(Object, const String&);
  12287. bool HasSubscribedToEvent(const String&);
  12288. bool IsDragging() const;
  12289. UIElement LoadLayout(File);
  12290. UIElement LoadLayout(File, XMLFile);
  12291. UIElement LoadLayout(VectorBuffer&);
  12292. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12293. UIElement LoadLayout(XMLFile);
  12294. UIElement LoadLayout(XMLFile, XMLFile);
  12295. bool SaveLayout(File, UIElement);
  12296. bool SaveLayout(VectorBuffer&, UIElement);
  12297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12298. void SetCustomSize(int, int);
  12299. void SetFocusElement(UIElement, bool = false);
  12300. void SetHeight(float);
  12301. void SetWidth(float);
  12302. const Array<UIElement> GetDragElements();
  12303. // Properties:
  12304. /* readonly */
  12305. String category;
  12306. String clipBoardText;
  12307. Cursor cursor;
  12308. /* readonly */
  12309. IntVector2 cursorPosition;
  12310. IntVector2 customSize;
  12311. float defaultToolTipDelay;
  12312. float doubleClickInterval;
  12313. int dragBeginDistance;
  12314. float dragBeginInterval;
  12315. UIElement focusElement;
  12316. bool forceAutoHint;
  12317. /* readonly */
  12318. UIElement frontElement;
  12319. int maxFontTextureSize;
  12320. /* readonly */
  12321. UIElement modalRoot;
  12322. bool nonFocusedMouseWheel;
  12323. /* readonly */
  12324. int refs;
  12325. /* readonly */
  12326. UIElement root;
  12327. float scale;
  12328. /* readonly */
  12329. StringHash type;
  12330. /* readonly */
  12331. String typeName;
  12332. bool useMutableGlyphs;
  12333. bool useScreenKeyboard;
  12334. bool useSystemClipboard;
  12335. /* readonly */
  12336. int weakRefs;
  12337. };
  12338. class UIElement
  12339. {
  12340. // Methods:
  12341. void AddChild(UIElement);
  12342. void AddTag(const String&);
  12343. void AddTags(const String&, int8 = ';');
  12344. void ApplyAttributes();
  12345. void BringToFront();
  12346. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12347. void DisableLayoutUpdate();
  12348. IntVector2 ElementToScreen(const IntVector2&);
  12349. void EnableLayoutUpdate();
  12350. uint FindChild(UIElement) const;
  12351. Variant GetAttribute(const String&) const;
  12352. ValueAnimation GetAttributeAnimation(const String&) const;
  12353. float GetAttributeAnimationSpeed(const String&) const;
  12354. float GetAttributeAnimationTime(const String&) const;
  12355. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12356. Variant GetAttributeDefault(const String&) const;
  12357. UIElement GetChild(const String&, bool = false) const;
  12358. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12359. Array<UIElement> GetChildren(bool = false) const;
  12360. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12361. UIElement GetElementEventSender() const;
  12362. bool GetInterceptNetworkUpdate(const String&) const;
  12363. uint GetNumChildren(bool) const;
  12364. bool HasSubscribedToEvent(Object, const String&);
  12365. bool HasSubscribedToEvent(const String&);
  12366. bool HasTag(const String&) const;
  12367. void InsertChild(uint, UIElement);
  12368. bool IsInside(IntVector2, bool);
  12369. bool IsInsideCombined(IntVector2, bool);
  12370. bool Load(File, bool = false);
  12371. bool Load(VectorBuffer&, bool = false);
  12372. bool LoadChildXML(XMLFile, XMLFile = null);
  12373. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12374. bool LoadJSON(const JSONValue&, bool = false);
  12375. bool LoadXML(File);
  12376. bool LoadXML(VectorBuffer&);
  12377. bool LoadXML(XMLFile, XMLFile);
  12378. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12379. bool LoadXML(const XMLElement&, bool = false);
  12380. void MarkNetworkUpdate() const;
  12381. void Remove();
  12382. void RemoveAllChildren();
  12383. void RemoveAllTags();
  12384. void RemoveAttributeAnimation(const String&);
  12385. void RemoveChild(UIElement, uint = 0);
  12386. void RemoveChild(uint);
  12387. void RemoveInstanceDefault();
  12388. void RemoveObjectAnimation();
  12389. bool RemoveTag(const String&);
  12390. void ResetDeepEnabled();
  12391. void ResetToDefault();
  12392. bool Save(File) const;
  12393. bool Save(VectorBuffer&) const;
  12394. bool SaveJSON(JSONValue&) const;
  12395. bool SaveXML(File, const String& = "\t");
  12396. bool SaveXML(VectorBuffer&, const String& = "\t");
  12397. bool SaveXML(XMLElement&) const;
  12398. IntVector2 ScreenToElement(const IntVector2&);
  12399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12400. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12401. void SetAnimationTime(float);
  12402. bool SetAttribute(const String&, const Variant&);
  12403. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12404. void SetAttributeAnimationSpeed(const String&, float);
  12405. void SetAttributeAnimationTime(const String&, float);
  12406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12407. void SetDeepEnabled(bool);
  12408. void SetEnabledRecursive(bool);
  12409. void SetFixedHeight(int);
  12410. void SetFixedSize(int, int);
  12411. void SetFixedWidth(int);
  12412. void SetInterceptNetworkUpdate(const String&, bool);
  12413. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12414. void SetMaxSize(int, int);
  12415. void SetMinSize(int, int);
  12416. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12417. void SetPosition(int, int);
  12418. void SetSize(int, int);
  12419. bool SetStyle(const String&, XMLFile = null);
  12420. bool SetStyle(const XMLElement&);
  12421. bool SetStyleAuto(XMLFile = null);
  12422. void UpdateLayout();
  12423. const Variant& GetVar(const StringHash&);
  12424. // Properties:
  12425. bool animationEnabled;
  12426. /* readonly */
  12427. Array<Variant> attributeDefaults;
  12428. /* readonly */
  12429. Array<AttributeInfo> attributeInfos;
  12430. Array<Variant> attributes;
  12431. bool bringToBack;
  12432. bool bringToFront;
  12433. /* readonly */
  12434. String category;
  12435. /* readonly */
  12436. IntVector2 childOffset;
  12437. /* readonly */
  12438. Array<UIElement> children;
  12439. IntRect clipBorder;
  12440. bool clipChildren;
  12441. /* writeonly */
  12442. Color color;
  12443. /* readonly */
  12444. bool colorGradient;
  12445. Array<Color> colors;
  12446. /* readonly */
  12447. IntRect combinedScreenRect;
  12448. XMLFile defaultStyle;
  12449. /* readonly */
  12450. float derivedOpacity;
  12451. /* readonly */
  12452. uint dragButtonCombo;
  12453. /* readonly */
  12454. int dragButtonCount;
  12455. uint dragDropMode;
  12456. bool editable;
  12457. bool elementEventSender;
  12458. bool enabled;
  12459. /* readonly */
  12460. bool enabledSelf;
  12461. /* readonly */
  12462. bool fixedHeight;
  12463. /* readonly */
  12464. bool fixedSize;
  12465. /* readonly */
  12466. bool fixedWidth;
  12467. bool focus;
  12468. FocusMode focusMode;
  12469. int height;
  12470. HorizontalAlignment horizontalAlignment;
  12471. /* readonly */
  12472. bool hovering;
  12473. int indent;
  12474. int indentSpacing;
  12475. /* readonly */
  12476. int indentWidth;
  12477. bool internal;
  12478. IntRect layoutBorder;
  12479. Vector2 layoutFlexScale;
  12480. LayoutMode layoutMode;
  12481. int layoutSpacing;
  12482. int maxHeight;
  12483. IntVector2 maxSize;
  12484. int maxWidth;
  12485. int minHeight;
  12486. IntVector2 minSize;
  12487. int minWidth;
  12488. String name;
  12489. /* readonly */
  12490. uint numAllChildren;
  12491. /* readonly */
  12492. uint numAttributes;
  12493. /* readonly */
  12494. uint numChildren;
  12495. ObjectAnimation objectAnimation;
  12496. float opacity;
  12497. UIElement parent;
  12498. IntVector2 position;
  12499. int priority;
  12500. /* readonly */
  12501. int refs;
  12502. /* readonly */
  12503. UIElement root;
  12504. /* readonly */
  12505. IntVector2 screenPosition;
  12506. bool selected;
  12507. IntVector2 size;
  12508. bool sortChildren;
  12509. String style;
  12510. /* readonly */
  12511. Array<String> tags;
  12512. bool temporary;
  12513. TraversalMode traversalMode;
  12514. /* readonly */
  12515. StringHash type;
  12516. /* readonly */
  12517. String typeName;
  12518. bool useDerivedOpacity;
  12519. /* readonly */
  12520. VariantMap vars;
  12521. VerticalAlignment verticalAlignment;
  12522. bool visible;
  12523. /* readonly */
  12524. bool visibleEffective;
  12525. /* readonly */
  12526. int weakRefs;
  12527. int width;
  12528. };
  12529. class ValueAnimation
  12530. {
  12531. // Methods:
  12532. bool HasSubscribedToEvent(Object, const String&);
  12533. bool HasSubscribedToEvent(const String&);
  12534. bool Load(File);
  12535. bool Load(VectorBuffer&);
  12536. bool Save(File) const;
  12537. bool Save(VectorBuffer&) const;
  12538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12539. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12540. void SetKeyFrame(float, const Variant&);
  12541. // Properties:
  12542. /* readonly */
  12543. String category;
  12544. InterpMethod interpolationMethod;
  12545. /* readonly */
  12546. uint memoryUse;
  12547. String name;
  12548. /* readonly */
  12549. int refs;
  12550. float splineTension;
  12551. /* readonly */
  12552. StringHash type;
  12553. /* readonly */
  12554. String typeName;
  12555. /* readonly */
  12556. uint useTimer;
  12557. VariantType valueType;
  12558. /* readonly */
  12559. int weakRefs;
  12560. };
  12561. class Variant
  12562. {
  12563. // Methods:
  12564. void Clear();
  12565. const Color& GetColor() const;
  12566. void FromString(VariantType, const String&);
  12567. void FromString(const String&, const String&);
  12568. bool GetBool() const;
  12569. VectorBuffer GetBuffer() const;
  12570. double GetDouble() const;
  12571. float GetFloat() const;
  12572. int GetInt() const;
  12573. RefCounted GetPtr() const;
  12574. ScriptObject GetScriptObject() const;
  12575. StringHash GetStringHash() const;
  12576. Array<String> GetStringVector() const;
  12577. uint GetUInt() const;
  12578. Array<Variant> GetVariantVector() const;
  12579. const IntRect& GetIntRect() const;
  12580. const IntVector2& GetIntVector2() const;
  12581. const Matrix3& GetMatrix3() const;
  12582. const Matrix3x4& GetMatrix3x4() const;
  12583. const Matrix4& GetMatrix4() const;
  12584. const Quaternion& GetQuaternion() const;
  12585. const ResourceRef& GetResourceRef() const;
  12586. const ResourceRefList& GetResourceRefList() const;
  12587. const String& GetString() const;
  12588. String ToString() const;
  12589. const VariantMap& GetVariantMap() const;
  12590. const Vector2& GetVector2() const;
  12591. const Vector3& GetVector3() const;
  12592. const Vector4& GetVector4() const;
  12593. // Properties:
  12594. /* readonly */
  12595. bool empty;
  12596. /* readonly */
  12597. VariantType type;
  12598. /* readonly */
  12599. String typeName;
  12600. /* readonly */
  12601. bool zero;
  12602. };
  12603. class VariantMap
  12604. {
  12605. // Methods:
  12606. void Clear();
  12607. bool Contains(StringHash) const;
  12608. bool Contains(const String&) const;
  12609. bool Erase(StringHash);
  12610. bool Erase(const String&);
  12611. // Properties:
  12612. /* readonly */
  12613. Array<StringHash> keys;
  12614. /* readonly */
  12615. uint length;
  12616. /* readonly */
  12617. Array<Variant> values;
  12618. };
  12619. class Vector2
  12620. {
  12621. // Methods:
  12622. Vector2 Abs() const;
  12623. float AbsDotProduct(const Vector2&) const;
  12624. float Angle(const Vector2&) const;
  12625. float DotProduct(const Vector2&) const;
  12626. bool Equals(const Vector2&) const;
  12627. bool IsNaN() const;
  12628. Vector2 Lerp(const Vector2&, float) const;
  12629. void Normalize();
  12630. Vector2 Normalized() const;
  12631. String ToString() const;
  12632. // Properties:
  12633. /* readonly */
  12634. Array<float> data;
  12635. /* readonly */
  12636. float length;
  12637. /* readonly */
  12638. float lengthSquared;
  12639. float x;
  12640. float y;
  12641. };
  12642. class Vector3
  12643. {
  12644. // Methods:
  12645. Vector3 Abs() const;
  12646. float AbsDotProduct(const Vector3&) const;
  12647. float Angle(const Vector3&) const;
  12648. Vector3 CrossProduct(const Vector3&) const;
  12649. float DotProduct(const Vector3&) const;
  12650. bool Equals(const Vector3&) const;
  12651. bool IsNaN() const;
  12652. Vector3 Lerp(const Vector3&, float) const;
  12653. void Normalize();
  12654. Vector3 Normalized() const;
  12655. String ToString() const;
  12656. // Properties:
  12657. /* readonly */
  12658. Array<float> data;
  12659. /* readonly */
  12660. float length;
  12661. /* readonly */
  12662. float lengthSquared;
  12663. float x;
  12664. float y;
  12665. float z;
  12666. };
  12667. class Vector4
  12668. {
  12669. // Methods:
  12670. Vector4 Abs() const;
  12671. float AbsDotProduct(const Vector4&) const;
  12672. float DotProduct(const Vector4&) const;
  12673. bool Equals(const Vector4&) const;
  12674. bool IsNaN() const;
  12675. Vector4 Lerp(const Vector4&, float) const;
  12676. String ToString() const;
  12677. // Properties:
  12678. /* readonly */
  12679. Array<float> data;
  12680. float w;
  12681. float x;
  12682. float y;
  12683. float z;
  12684. };
  12685. class VectorBuffer
  12686. {
  12687. // Methods:
  12688. void Clear();
  12689. Array<uint8> Read(uint);
  12690. bool ReadBool();
  12691. BoundingBox ReadBoundingBox();
  12692. int8 ReadByte();
  12693. Color ReadColor();
  12694. double ReadDouble();
  12695. String ReadFileID();
  12696. float ReadFloat();
  12697. int ReadInt();
  12698. int64 ReadInt64();
  12699. IntRect ReadIntRect();
  12700. IntVector2 ReadIntVector2();
  12701. String ReadLine();
  12702. Matrix3 ReadMatrix3();
  12703. Matrix3x4 ReadMatrix3x4();
  12704. Matrix4 ReadMatrix4();
  12705. uint ReadNetID();
  12706. Quaternion ReadPackedQuaternion();
  12707. Vector3 ReadPackedVector3(float);
  12708. Quaternion ReadQuaternion();
  12709. int16 ReadShort();
  12710. String ReadString();
  12711. StringHash ReadStringHash();
  12712. uint8 ReadUByte();
  12713. uint ReadUInt();
  12714. uint64 ReadUInt64();
  12715. uint16 ReadUShort();
  12716. uint ReadVLE();
  12717. Variant ReadVariant();
  12718. VariantMap ReadVariantMap();
  12719. Vector2 ReadVector2();
  12720. Vector3 ReadVector3();
  12721. Vector4 ReadVector4();
  12722. VectorBuffer ReadVectorBuffer(uint);
  12723. void Resize(uint);
  12724. uint Seek(uint);
  12725. void SetData(Deserializer, uint);
  12726. uint Write(Array<uint8>);
  12727. bool WriteBool(bool);
  12728. bool WriteBoundingBox(const BoundingBox&);
  12729. bool WriteByte(int8);
  12730. bool WriteColor(const Color&);
  12731. bool WriteDouble(double);
  12732. bool WriteFileID(const String&);
  12733. bool WriteFloat(float);
  12734. bool WriteInt(int);
  12735. bool WriteInt64(int64);
  12736. bool WriteIntRect(const IntRect&);
  12737. bool WriteIntVector2(const IntVector2&);
  12738. bool WriteLine(const String&);
  12739. bool WriteMatrix3(const Matrix3&);
  12740. bool WriteMatrix3x4(const Matrix3x4&);
  12741. bool WriteMatrix4(const Matrix4&);
  12742. bool WriteNetID(uint);
  12743. bool WritePackedQuaternion(const Quaternion&);
  12744. bool WritePackedVector3(const Vector3&, float);
  12745. bool WriteQuaternion(const Quaternion&);
  12746. bool WriteShort(int16);
  12747. bool WriteString(const String&);
  12748. bool WriteStringHash(const StringHash&);
  12749. bool WriteUByte(uint8);
  12750. bool WriteUInt(uint);
  12751. bool WriteUInt64(uint64);
  12752. bool WriteUShort(uint16);
  12753. bool WriteVLE(uint);
  12754. bool WriteVariant(const Variant&);
  12755. bool WriteVariantMap(const VariantMap&);
  12756. bool WriteVector2(const Vector2&);
  12757. bool WriteVector3(const Vector3&);
  12758. bool WriteVector4(const Vector4&);
  12759. bool WriteVectorBuffer(const VectorBuffer&);
  12760. // Properties:
  12761. /* readonly */
  12762. uint checksum;
  12763. /* readonly */
  12764. bool eof;
  12765. /* readonly */
  12766. String name;
  12767. /* readonly */
  12768. uint position;
  12769. /* readonly */
  12770. uint size;
  12771. };
  12772. class VertexBuffer
  12773. {
  12774. // Methods:
  12775. VectorBuffer GetData() const;
  12776. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12777. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12778. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12779. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12780. bool HasSubscribedToEvent(Object, const String&);
  12781. bool HasSubscribedToEvent(const String&);
  12782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12783. bool SetData(VectorBuffer&);
  12784. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12785. void SetSize(uint, Array<VertexElement>, bool = false);
  12786. void SetSize(uint, uint, bool = false);
  12787. // Properties:
  12788. /* readonly */
  12789. String category;
  12790. /* readonly */
  12791. bool dynamic;
  12792. /* readonly */
  12793. uint elementMask;
  12794. /* readonly */
  12795. Array<VertexElement> elements;
  12796. /* readonly */
  12797. int refs;
  12798. bool shadowed;
  12799. /* readonly */
  12800. StringHash type;
  12801. /* readonly */
  12802. String typeName;
  12803. /* readonly */
  12804. uint vertexCount;
  12805. /* readonly */
  12806. uint vertexSize;
  12807. /* readonly */
  12808. int weakRefs;
  12809. };
  12810. class VertexElement
  12811. {
  12812. // Properties:
  12813. uint8 index;
  12814. uint offset;
  12815. bool perInstance;
  12816. VertexElementSemantic semantic;
  12817. VertexElementType type;
  12818. };
  12819. class View3D
  12820. {
  12821. // Methods:
  12822. void AddChild(UIElement);
  12823. void AddTag(const String&);
  12824. void AddTags(const String&, int8 = ';');
  12825. void ApplyAttributes();
  12826. void BringToFront();
  12827. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12828. void DisableLayoutUpdate();
  12829. IntVector2 ElementToScreen(const IntVector2&);
  12830. void EnableLayoutUpdate();
  12831. uint FindChild(UIElement) const;
  12832. Variant GetAttribute(const String&) const;
  12833. ValueAnimation GetAttributeAnimation(const String&) const;
  12834. float GetAttributeAnimationSpeed(const String&) const;
  12835. float GetAttributeAnimationTime(const String&) const;
  12836. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12837. Variant GetAttributeDefault(const String&) const;
  12838. UIElement GetChild(const String&, bool = false) const;
  12839. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12840. Array<UIElement> GetChildren(bool = false) const;
  12841. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12842. UIElement GetElementEventSender() const;
  12843. bool GetInterceptNetworkUpdate(const String&) const;
  12844. uint GetNumChildren(bool) const;
  12845. bool HasSubscribedToEvent(Object, const String&);
  12846. bool HasSubscribedToEvent(const String&);
  12847. bool HasTag(const String&) const;
  12848. void InsertChild(uint, UIElement);
  12849. bool IsInside(IntVector2, bool);
  12850. bool IsInsideCombined(IntVector2, bool);
  12851. bool Load(File, bool = false);
  12852. bool Load(VectorBuffer&, bool = false);
  12853. bool LoadChildXML(XMLFile, XMLFile = null);
  12854. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12855. bool LoadJSON(const JSONValue&, bool = false);
  12856. bool LoadXML(File);
  12857. bool LoadXML(VectorBuffer&);
  12858. bool LoadXML(XMLFile, XMLFile);
  12859. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12860. bool LoadXML(const XMLElement&, bool = false);
  12861. void MarkNetworkUpdate() const;
  12862. void QueueUpdate();
  12863. void Remove();
  12864. void RemoveAllChildren();
  12865. void RemoveAllTags();
  12866. void RemoveAttributeAnimation(const String&);
  12867. void RemoveChild(UIElement, uint = 0);
  12868. void RemoveChild(uint);
  12869. void RemoveInstanceDefault();
  12870. void RemoveObjectAnimation();
  12871. bool RemoveTag(const String&);
  12872. void ResetDeepEnabled();
  12873. void ResetToDefault();
  12874. bool Save(File) const;
  12875. bool Save(VectorBuffer&) const;
  12876. bool SaveJSON(JSONValue&) const;
  12877. bool SaveXML(File, const String& = "\t");
  12878. bool SaveXML(VectorBuffer&, const String& = "\t");
  12879. bool SaveXML(XMLElement&) const;
  12880. IntVector2 ScreenToElement(const IntVector2&);
  12881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12882. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12883. void SetAnimationTime(float);
  12884. bool SetAttribute(const String&, const Variant&);
  12885. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12886. void SetAttributeAnimationSpeed(const String&, float);
  12887. void SetAttributeAnimationTime(const String&, float);
  12888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12889. void SetDeepEnabled(bool);
  12890. void SetEnabledRecursive(bool);
  12891. void SetFixedHeight(int);
  12892. void SetFixedSize(int, int);
  12893. void SetFixedWidth(int);
  12894. void SetFullImageRect();
  12895. void SetHoverOffset(int, int);
  12896. void SetInterceptNetworkUpdate(const String&, bool);
  12897. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12898. void SetMaxSize(int, int);
  12899. void SetMinSize(int, int);
  12900. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12901. void SetPosition(int, int);
  12902. void SetSize(int, int);
  12903. bool SetStyle(const String&, XMLFile = null);
  12904. bool SetStyle(const XMLElement&);
  12905. bool SetStyleAuto(XMLFile = null);
  12906. void SetView(Scene, Camera, bool = true);
  12907. void UpdateLayout();
  12908. const Variant& GetVar(const StringHash&);
  12909. // Properties:
  12910. bool animationEnabled;
  12911. /* readonly */
  12912. Array<Variant> attributeDefaults;
  12913. /* readonly */
  12914. Array<AttributeInfo> attributeInfos;
  12915. Array<Variant> attributes;
  12916. bool autoUpdate;
  12917. BlendMode blendMode;
  12918. IntRect border;
  12919. bool bringToBack;
  12920. bool bringToFront;
  12921. /* readonly */
  12922. Node cameraNode;
  12923. /* readonly */
  12924. String category;
  12925. /* readonly */
  12926. IntVector2 childOffset;
  12927. /* readonly */
  12928. Array<UIElement> children;
  12929. IntRect clipBorder;
  12930. bool clipChildren;
  12931. /* writeonly */
  12932. Color color;
  12933. /* readonly */
  12934. bool colorGradient;
  12935. Array<Color> colors;
  12936. /* readonly */
  12937. IntRect combinedScreenRect;
  12938. XMLFile defaultStyle;
  12939. /* readonly */
  12940. Texture2D depthTexture;
  12941. /* readonly */
  12942. float derivedOpacity;
  12943. /* readonly */
  12944. uint dragButtonCombo;
  12945. /* readonly */
  12946. int dragButtonCount;
  12947. uint dragDropMode;
  12948. bool editable;
  12949. bool elementEventSender;
  12950. bool enabled;
  12951. /* readonly */
  12952. bool enabledSelf;
  12953. /* readonly */
  12954. bool fixedHeight;
  12955. bool fixedHeightResizing;
  12956. /* readonly */
  12957. bool fixedSize;
  12958. /* readonly */
  12959. bool fixedWidth;
  12960. bool fixedWidthResizing;
  12961. bool focus;
  12962. FocusMode focusMode;
  12963. uint format;
  12964. int height;
  12965. HorizontalAlignment horizontalAlignment;
  12966. IntVector2 hoverOffset;
  12967. /* readonly */
  12968. bool hovering;
  12969. IntRect imageBorder;
  12970. IntRect imageRect;
  12971. int indent;
  12972. int indentSpacing;
  12973. /* readonly */
  12974. int indentWidth;
  12975. bool internal;
  12976. IntRect layoutBorder;
  12977. Vector2 layoutFlexScale;
  12978. LayoutMode layoutMode;
  12979. int layoutSpacing;
  12980. int maxHeight;
  12981. IntVector2 maxSize;
  12982. int maxWidth;
  12983. int minHeight;
  12984. IntVector2 minSize;
  12985. int minWidth;
  12986. bool modal;
  12987. bool modalAutoDismiss;
  12988. Color modalFrameColor;
  12989. IntVector2 modalFrameSize;
  12990. Color modalShadeColor;
  12991. bool movable;
  12992. String name;
  12993. /* readonly */
  12994. uint numAllChildren;
  12995. /* readonly */
  12996. uint numAttributes;
  12997. /* readonly */
  12998. uint numChildren;
  12999. ObjectAnimation objectAnimation;
  13000. float opacity;
  13001. UIElement parent;
  13002. IntVector2 position;
  13003. int priority;
  13004. /* readonly */
  13005. int refs;
  13006. /* readonly */
  13007. Texture2D renderTexture;
  13008. bool resizable;
  13009. IntRect resizeBorder;
  13010. /* readonly */
  13011. UIElement root;
  13012. /* readonly */
  13013. Scene scene;
  13014. /* readonly */
  13015. IntVector2 screenPosition;
  13016. bool selected;
  13017. IntVector2 size;
  13018. bool sortChildren;
  13019. String style;
  13020. /* readonly */
  13021. Array<String> tags;
  13022. bool temporary;
  13023. Texture texture;
  13024. bool tiled;
  13025. TraversalMode traversalMode;
  13026. /* readonly */
  13027. StringHash type;
  13028. /* readonly */
  13029. String typeName;
  13030. bool useDerivedOpacity;
  13031. /* readonly */
  13032. VariantMap vars;
  13033. VerticalAlignment verticalAlignment;
  13034. /* readonly */
  13035. Viewport viewport;
  13036. bool visible;
  13037. /* readonly */
  13038. bool visibleEffective;
  13039. /* readonly */
  13040. int weakRefs;
  13041. int width;
  13042. };
  13043. class Viewport
  13044. {
  13045. // Methods:
  13046. Ray GetScreenRay(int, int) const;
  13047. bool HasSubscribedToEvent(Object, const String&);
  13048. bool HasSubscribedToEvent(const String&);
  13049. Vector3 ScreenToWorldPoint(int, int, float) const;
  13050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13051. void SetRenderPath(XMLFile);
  13052. Vector2 WorldToScreenPoint(const Vector3&) const;
  13053. // Properties:
  13054. Camera camera;
  13055. /* readonly */
  13056. String category;
  13057. Camera cullCamera;
  13058. bool drawDebug;
  13059. IntRect rect;
  13060. /* readonly */
  13061. int refs;
  13062. RenderPath renderPath;
  13063. Scene scene;
  13064. /* readonly */
  13065. StringHash type;
  13066. /* readonly */
  13067. String typeName;
  13068. /* readonly */
  13069. int weakRefs;
  13070. };
  13071. class WeakHandle
  13072. {
  13073. // Methods:
  13074. RefCounted Get() const;
  13075. // Properties:
  13076. /* readonly */
  13077. bool expired;
  13078. /* readonly */
  13079. int refs;
  13080. /* readonly */
  13081. int weakRefs;
  13082. };
  13083. class Window
  13084. {
  13085. // Methods:
  13086. void AddChild(UIElement);
  13087. void AddTag(const String&);
  13088. void AddTags(const String&, int8 = ';');
  13089. void ApplyAttributes();
  13090. void BringToFront();
  13091. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13092. void DisableLayoutUpdate();
  13093. IntVector2 ElementToScreen(const IntVector2&);
  13094. void EnableLayoutUpdate();
  13095. uint FindChild(UIElement) const;
  13096. Variant GetAttribute(const String&) const;
  13097. ValueAnimation GetAttributeAnimation(const String&) const;
  13098. float GetAttributeAnimationSpeed(const String&) const;
  13099. float GetAttributeAnimationTime(const String&) const;
  13100. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13101. Variant GetAttributeDefault(const String&) const;
  13102. UIElement GetChild(const String&, bool = false) const;
  13103. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13104. Array<UIElement> GetChildren(bool = false) const;
  13105. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13106. UIElement GetElementEventSender() const;
  13107. bool GetInterceptNetworkUpdate(const String&) const;
  13108. uint GetNumChildren(bool) const;
  13109. bool HasSubscribedToEvent(Object, const String&);
  13110. bool HasSubscribedToEvent(const String&);
  13111. bool HasTag(const String&) const;
  13112. void InsertChild(uint, UIElement);
  13113. bool IsInside(IntVector2, bool);
  13114. bool IsInsideCombined(IntVector2, bool);
  13115. bool Load(File, bool = false);
  13116. bool Load(VectorBuffer&, bool = false);
  13117. bool LoadChildXML(XMLFile, XMLFile = null);
  13118. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13119. bool LoadJSON(const JSONValue&, bool = false);
  13120. bool LoadXML(File);
  13121. bool LoadXML(VectorBuffer&);
  13122. bool LoadXML(XMLFile, XMLFile);
  13123. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13124. bool LoadXML(const XMLElement&, bool = false);
  13125. void MarkNetworkUpdate() const;
  13126. void Remove();
  13127. void RemoveAllChildren();
  13128. void RemoveAllTags();
  13129. void RemoveAttributeAnimation(const String&);
  13130. void RemoveChild(UIElement, uint = 0);
  13131. void RemoveChild(uint);
  13132. void RemoveInstanceDefault();
  13133. void RemoveObjectAnimation();
  13134. bool RemoveTag(const String&);
  13135. void ResetDeepEnabled();
  13136. void ResetToDefault();
  13137. bool Save(File) const;
  13138. bool Save(VectorBuffer&) const;
  13139. bool SaveJSON(JSONValue&) const;
  13140. bool SaveXML(File, const String& = "\t");
  13141. bool SaveXML(VectorBuffer&, const String& = "\t");
  13142. bool SaveXML(XMLElement&) const;
  13143. IntVector2 ScreenToElement(const IntVector2&);
  13144. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13145. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13146. void SetAnimationTime(float);
  13147. bool SetAttribute(const String&, const Variant&);
  13148. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13149. void SetAttributeAnimationSpeed(const String&, float);
  13150. void SetAttributeAnimationTime(const String&, float);
  13151. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13152. void SetDeepEnabled(bool);
  13153. void SetEnabledRecursive(bool);
  13154. void SetFixedHeight(int);
  13155. void SetFixedSize(int, int);
  13156. void SetFixedWidth(int);
  13157. void SetFullImageRect();
  13158. void SetHoverOffset(int, int);
  13159. void SetInterceptNetworkUpdate(const String&, bool);
  13160. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13161. void SetMaxSize(int, int);
  13162. void SetMinSize(int, int);
  13163. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13164. void SetPosition(int, int);
  13165. void SetSize(int, int);
  13166. bool SetStyle(const String&, XMLFile = null);
  13167. bool SetStyle(const XMLElement&);
  13168. bool SetStyleAuto(XMLFile = null);
  13169. void UpdateLayout();
  13170. const Variant& GetVar(const StringHash&);
  13171. // Properties:
  13172. bool animationEnabled;
  13173. /* readonly */
  13174. Array<Variant> attributeDefaults;
  13175. /* readonly */
  13176. Array<AttributeInfo> attributeInfos;
  13177. Array<Variant> attributes;
  13178. BlendMode blendMode;
  13179. IntRect border;
  13180. bool bringToBack;
  13181. bool bringToFront;
  13182. /* readonly */
  13183. String category;
  13184. /* readonly */
  13185. IntVector2 childOffset;
  13186. /* readonly */
  13187. Array<UIElement> children;
  13188. IntRect clipBorder;
  13189. bool clipChildren;
  13190. /* writeonly */
  13191. Color color;
  13192. /* readonly */
  13193. bool colorGradient;
  13194. Array<Color> colors;
  13195. /* readonly */
  13196. IntRect combinedScreenRect;
  13197. XMLFile defaultStyle;
  13198. /* readonly */
  13199. float derivedOpacity;
  13200. /* readonly */
  13201. uint dragButtonCombo;
  13202. /* readonly */
  13203. int dragButtonCount;
  13204. uint dragDropMode;
  13205. bool editable;
  13206. bool elementEventSender;
  13207. bool enabled;
  13208. /* readonly */
  13209. bool enabledSelf;
  13210. /* readonly */
  13211. bool fixedHeight;
  13212. bool fixedHeightResizing;
  13213. /* readonly */
  13214. bool fixedSize;
  13215. /* readonly */
  13216. bool fixedWidth;
  13217. bool fixedWidthResizing;
  13218. bool focus;
  13219. FocusMode focusMode;
  13220. int height;
  13221. HorizontalAlignment horizontalAlignment;
  13222. IntVector2 hoverOffset;
  13223. /* readonly */
  13224. bool hovering;
  13225. IntRect imageBorder;
  13226. IntRect imageRect;
  13227. int indent;
  13228. int indentSpacing;
  13229. /* readonly */
  13230. int indentWidth;
  13231. bool internal;
  13232. IntRect layoutBorder;
  13233. Vector2 layoutFlexScale;
  13234. LayoutMode layoutMode;
  13235. int layoutSpacing;
  13236. int maxHeight;
  13237. IntVector2 maxSize;
  13238. int maxWidth;
  13239. int minHeight;
  13240. IntVector2 minSize;
  13241. int minWidth;
  13242. bool modal;
  13243. bool modalAutoDismiss;
  13244. Color modalFrameColor;
  13245. IntVector2 modalFrameSize;
  13246. Color modalShadeColor;
  13247. bool movable;
  13248. String name;
  13249. /* readonly */
  13250. uint numAllChildren;
  13251. /* readonly */
  13252. uint numAttributes;
  13253. /* readonly */
  13254. uint numChildren;
  13255. ObjectAnimation objectAnimation;
  13256. float opacity;
  13257. UIElement parent;
  13258. IntVector2 position;
  13259. int priority;
  13260. /* readonly */
  13261. int refs;
  13262. bool resizable;
  13263. IntRect resizeBorder;
  13264. /* readonly */
  13265. UIElement root;
  13266. /* readonly */
  13267. IntVector2 screenPosition;
  13268. bool selected;
  13269. IntVector2 size;
  13270. bool sortChildren;
  13271. String style;
  13272. /* readonly */
  13273. Array<String> tags;
  13274. bool temporary;
  13275. Texture texture;
  13276. bool tiled;
  13277. TraversalMode traversalMode;
  13278. /* readonly */
  13279. StringHash type;
  13280. /* readonly */
  13281. String typeName;
  13282. bool useDerivedOpacity;
  13283. /* readonly */
  13284. VariantMap vars;
  13285. VerticalAlignment verticalAlignment;
  13286. bool visible;
  13287. /* readonly */
  13288. bool visibleEffective;
  13289. /* readonly */
  13290. int weakRefs;
  13291. int width;
  13292. };
  13293. class XMLElement
  13294. {
  13295. // Methods:
  13296. XMLElement CreateChild(const String&);
  13297. String GetAttribute(const String& = String ( )) const;
  13298. String GetAttributeLower(const String&) const;
  13299. Array<String> GetAttributeNames() const;
  13300. String GetAttributeUpper(const String&) const;
  13301. bool GetBool(const String&) const;
  13302. BoundingBox GetBoundingBox() const;
  13303. XMLElement GetChild(const String& = String ( )) const;
  13304. Color GetColor(const String&) const;
  13305. double GetDouble(const String&) const;
  13306. float GetFloat(const String&) const;
  13307. int GetInt(const String&) const;
  13308. IntRect GetIntRect(const String&) const;
  13309. IntVector2 GetIntVector2(const String&) const;
  13310. Matrix3 GetMatrix3(const String&) const;
  13311. Matrix3x4 GetMatrix3x4(const String&) const;
  13312. Matrix4 GetMatrix4(const String&) const;
  13313. XMLElement GetNext(const String& = String ( )) const;
  13314. Quaternion GetQuaternion(const String&) const;
  13315. ResourceRef GetResourceRef() const;
  13316. ResourceRefList GetResourceRefList() const;
  13317. uint GetUInt(const String&) const;
  13318. String GetValue() const;
  13319. Variant GetVariant() const;
  13320. VariantMap GetVariantMap() const;
  13321. Array<Variant> GetVariantVector() const;
  13322. Vector2 GetVector2(const String&) const;
  13323. Vector3 GetVector3(const String&) const;
  13324. Vector4 GetVector4(const String&) const;
  13325. Variant GetVectorVariant(const String&) const;
  13326. bool HasAttribute(const String&) const;
  13327. bool HasChild(const String&) const;
  13328. bool RemoveAttribute(const String& = String ( ));
  13329. bool RemoveChild(const String&);
  13330. bool RemoveChild(const XMLElement&);
  13331. bool RemoveChildren(const String& = String ( ));
  13332. XPathResultSet Select(const String&);
  13333. XPathResultSet SelectPrepared(const XPathQuery&);
  13334. XMLElement SelectSingle(const String&);
  13335. XMLElement SelectSinglePrepared(const XPathQuery&);
  13336. bool SetAttribute(const String&);
  13337. bool SetAttribute(const String&, const String&);
  13338. bool SetBool(const String&, bool);
  13339. bool SetBoundingBox(const BoundingBox&);
  13340. bool SetColor(const String&, const Color&);
  13341. bool SetDouble(const String&, double);
  13342. bool SetFloat(const String&, float);
  13343. bool SetInt(const String&, int);
  13344. bool SetIntRect(const String&, const IntRect&);
  13345. bool SetIntVector2(const String&, const IntVector2&);
  13346. bool SetMatrix3(const String&, const Matrix3&);
  13347. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13348. bool SetMatrix4(const String&, const Matrix4&);
  13349. bool SetQuaternion(const String&, const Quaternion&);
  13350. bool SetResourceRef(const String&, const ResourceRef&);
  13351. bool SetResourceRefList(const String&, const ResourceRefList&);
  13352. bool SetUInt(const String&, uint);
  13353. bool SetValue(const String&);
  13354. bool SetVariant(const Variant&);
  13355. bool SetVariantMap(const VariantMap&);
  13356. bool SetVariantVector(Array<Variant>);
  13357. bool SetVector2(const String&, const Vector2&);
  13358. bool SetVector3(const String&, const Vector3&);
  13359. bool SetVector4(const String&, const Vector4&);
  13360. bool SetVectorVariant(const String&, const Variant&);
  13361. // Properties:
  13362. /* readonly */
  13363. XMLFile file;
  13364. /* readonly */
  13365. bool isNull;
  13366. /* readonly */
  13367. String name;
  13368. /* readonly */
  13369. XMLElement nextResult;
  13370. /* readonly */
  13371. bool notNull;
  13372. /* readonly */
  13373. uint numAttributes;
  13374. /* readonly */
  13375. XMLElement parent;
  13376. String value;
  13377. };
  13378. class XMLFile
  13379. {
  13380. // Methods:
  13381. XMLElement CreateRoot(const String&);
  13382. bool FromString(const String&);
  13383. XMLElement GetRoot(const String& = String ( ));
  13384. bool HasSubscribedToEvent(Object, const String&);
  13385. bool HasSubscribedToEvent(const String&);
  13386. bool Load(File);
  13387. bool Load(VectorBuffer&);
  13388. void Patch(XMLElement);
  13389. void Patch(XMLFile);
  13390. bool Save(File) const;
  13391. bool Save(File, const String&) const;
  13392. bool Save(VectorBuffer&) const;
  13393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13394. String ToString(const String& = String ( "\t" )) const;
  13395. // Properties:
  13396. /* readonly */
  13397. String category;
  13398. /* readonly */
  13399. uint memoryUse;
  13400. String name;
  13401. /* readonly */
  13402. int refs;
  13403. /* readonly */
  13404. XMLElement root;
  13405. /* readonly */
  13406. StringHash type;
  13407. /* readonly */
  13408. String typeName;
  13409. /* readonly */
  13410. uint useTimer;
  13411. /* readonly */
  13412. int weakRefs;
  13413. };
  13414. class XPathQuery
  13415. {
  13416. // Methods:
  13417. void Bind();
  13418. void Clear();
  13419. XPathResultSet Evaluate(XMLElement);
  13420. bool EvaluateToBool(XMLElement);
  13421. float EvaluateToFloat(XMLElement);
  13422. String EvaluateToString(XMLElement);
  13423. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13424. bool SetVariable(const String&, bool);
  13425. bool SetVariable(const String&, const String&);
  13426. bool SetVariable(const String&, const XPathResultSet&);
  13427. bool SetVariable(const String&, float);
  13428. // Properties:
  13429. String query;
  13430. };
  13431. class XPathResultSet
  13432. {
  13433. // Properties:
  13434. /* readonly */
  13435. bool empty;
  13436. /* readonly */
  13437. XMLElement firstResult;
  13438. /* readonly */
  13439. uint size;
  13440. };
  13441. class Zone
  13442. {
  13443. // Methods:
  13444. void ApplyAttributes();
  13445. void DrawDebugGeometry(DebugRenderer, bool);
  13446. Variant GetAttribute(const String&) const;
  13447. ValueAnimation GetAttributeAnimation(const String&) const;
  13448. float GetAttributeAnimationSpeed(const String&) const;
  13449. float GetAttributeAnimationTime(const String&) const;
  13450. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13451. Variant GetAttributeDefault(const String&) const;
  13452. bool GetInterceptNetworkUpdate(const String&) const;
  13453. bool HasSubscribedToEvent(Object, const String&);
  13454. bool HasSubscribedToEvent(const String&);
  13455. bool IsInView(Camera) const;
  13456. bool Load(File, bool = false);
  13457. bool Load(VectorBuffer&, bool = false);
  13458. bool LoadJSON(const JSONValue&, bool = false);
  13459. bool LoadXML(const XMLElement&, bool = false);
  13460. void MarkNetworkUpdate() const;
  13461. void Remove();
  13462. void RemoveAttributeAnimation(const String&);
  13463. void RemoveInstanceDefault();
  13464. void RemoveObjectAnimation();
  13465. void ResetToDefault();
  13466. bool Save(File) const;
  13467. bool Save(VectorBuffer&) const;
  13468. bool SaveJSON(JSONValue&) const;
  13469. bool SaveXML(XMLElement&) const;
  13470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13471. void SetAnimationTime(float);
  13472. bool SetAttribute(const String&, const Variant&);
  13473. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13474. void SetAttributeAnimationSpeed(const String&, float);
  13475. void SetAttributeAnimationTime(const String&, float);
  13476. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13477. void SetInterceptNetworkUpdate(const String&, bool);
  13478. // Properties:
  13479. Color ambientColor;
  13480. /* readonly */
  13481. Color ambientEndColor;
  13482. bool ambientGradient;
  13483. /* readonly */
  13484. Color ambientStartColor;
  13485. bool animationEnabled;
  13486. /* readonly */
  13487. Array<Variant> attributeDefaults;
  13488. /* readonly */
  13489. Array<AttributeInfo> attributeInfos;
  13490. Array<Variant> attributes;
  13491. BoundingBox boundingBox;
  13492. bool castShadows;
  13493. /* readonly */
  13494. String category;
  13495. float drawDistance;
  13496. bool enabled;
  13497. /* readonly */
  13498. bool enabledEffective;
  13499. Color fogColor;
  13500. float fogEnd;
  13501. float fogHeight;
  13502. float fogHeightScale;
  13503. float fogStart;
  13504. bool heightFog;
  13505. /* readonly */
  13506. uint id;
  13507. /* readonly */
  13508. bool inView;
  13509. /* readonly */
  13510. Matrix3x4 inverseWorldTransform;
  13511. uint lightMask;
  13512. float lodBias;
  13513. uint maxLights;
  13514. /* readonly */
  13515. Node node;
  13516. /* readonly */
  13517. uint numAttributes;
  13518. ObjectAnimation objectAnimation;
  13519. bool occludee;
  13520. bool occluder;
  13521. bool override;
  13522. int priority;
  13523. /* readonly */
  13524. int refs;
  13525. float shadowDistance;
  13526. uint shadowMask;
  13527. bool temporary;
  13528. /* readonly */
  13529. StringHash type;
  13530. /* readonly */
  13531. String typeName;
  13532. uint viewMask;
  13533. /* readonly */
  13534. int weakRefs;
  13535. /* readonly */
  13536. BoundingBox worldBoundingBox;
  13537. uint zoneMask;
  13538. Texture zoneTexture;
  13539. };
  13540. // Enumerations
  13541. enum AnimationBlendMode
  13542. {
  13543. ABM_LERP,
  13544. ABM_ADDITIVE,
  13545. };
  13546. enum AutoRemoveMode
  13547. {
  13548. REMOVE_DISABLED,
  13549. REMOVE_COMPONENT,
  13550. REMOVE_NODE,
  13551. };
  13552. enum BlendMode
  13553. {
  13554. BLEND_REPLACE,
  13555. BLEND_ADD,
  13556. BLEND_MULTIPLY,
  13557. BLEND_ALPHA,
  13558. BLEND_ADDALPHA,
  13559. BLEND_PREMULALPHA,
  13560. BLEND_INVDESTALPHA,
  13561. BLEND_SUBTRACT,
  13562. BLEND_SUBTRACTALPHA,
  13563. };
  13564. enum BodyType2D
  13565. {
  13566. BT_STATIC,
  13567. BT_KINEMATIC,
  13568. BT_DYNAMIC,
  13569. };
  13570. enum CollisionEventMode
  13571. {
  13572. COLLISION_NEVER,
  13573. COLLISION_ACTIVE,
  13574. COLLISION_ALWAYS,
  13575. };
  13576. enum CompareMode
  13577. {
  13578. CMP_ALWAYS,
  13579. CMP_EQUAL,
  13580. CMP_NOTEQUAL,
  13581. CMP_LESS,
  13582. CMP_LESSEQUAL,
  13583. CMP_GREATER,
  13584. CMP_GREATEREQUAL,
  13585. };
  13586. enum CompressedFormat
  13587. {
  13588. CF_NONE,
  13589. CF_RGBA,
  13590. CF_DXT1,
  13591. CF_DXT3,
  13592. CF_DXT5,
  13593. CF_ETC1,
  13594. CF_PVRTC_RGB_2BPP,
  13595. CF_PVRTC_RGBA_2BPP,
  13596. CF_PVRTC_RGB_4BPP,
  13597. CF_PVRTC_RGBA_4BPP,
  13598. };
  13599. enum ConstraintType
  13600. {
  13601. CONSTRAINT_POINT,
  13602. CONSTRAINT_HINGE,
  13603. CONSTRAINT_SLIDER,
  13604. CONSTRAINT_CONETWIST,
  13605. };
  13606. enum Corner
  13607. {
  13608. C_TOPLEFT,
  13609. C_TOPRIGHT,
  13610. C_BOTTOMLEFT,
  13611. C_BOTTOMRIGHT,
  13612. };
  13613. enum CreateMode
  13614. {
  13615. REPLICATED,
  13616. LOCAL,
  13617. };
  13618. enum CrowdAgentRequestedTarget
  13619. {
  13620. CA_REQUESTEDTARGET_NONE,
  13621. CA_REQUESTEDTARGET_POSITION,
  13622. CA_REQUESTEDTARGET_VELOCITY,
  13623. };
  13624. enum CrowdAgentState
  13625. {
  13626. CA_STATE_INVALID,
  13627. CA_STATE_WALKING,
  13628. CA_STATE_OFFMESH,
  13629. };
  13630. enum CrowdAgentTargetState
  13631. {
  13632. CA_TARGET_NONE,
  13633. CA_TARGET_FAILED,
  13634. CA_TARGET_VALID,
  13635. CA_TARGET_REQUESTING,
  13636. CA_TARGET_WAITINGFORQUEUE,
  13637. CA_TARGET_WAITINGFORPATH,
  13638. CA_TARGET_VELOCITY,
  13639. };
  13640. enum CubeMapFace
  13641. {
  13642. FACE_POSITIVE_X,
  13643. FACE_NEGATIVE_X,
  13644. FACE_POSITIVE_Y,
  13645. FACE_NEGATIVE_Y,
  13646. FACE_POSITIVE_Z,
  13647. FACE_NEGATIVE_Z,
  13648. };
  13649. enum CullMode
  13650. {
  13651. CULL_NONE,
  13652. CULL_CCW,
  13653. CULL_CW,
  13654. };
  13655. enum CursorShape
  13656. {
  13657. CS_NORMAL,
  13658. CS_IBEAM,
  13659. CS_CROSS,
  13660. CS_RESIZEVERTICAL,
  13661. CS_RESIZEDIAGONAL_TOPRIGHT,
  13662. CS_RESIZEHORIZONTAL,
  13663. CS_RESIZEDIAGONAL_TOPLEFT,
  13664. CS_RESIZE_ALL,
  13665. CS_ACCEPTDROP,
  13666. CS_REJECTDROP,
  13667. CS_BUSY,
  13668. CS_BUSY_ARROW,
  13669. };
  13670. enum DBAPI
  13671. {
  13672. DBAPI_SQLITE,
  13673. DBAPI_ODBC,
  13674. };
  13675. enum DumpMode
  13676. {
  13677. DOXYGEN,
  13678. C_HEADER,
  13679. };
  13680. enum EmitterType
  13681. {
  13682. EMITTER_SPHERE,
  13683. EMITTER_BOX,
  13684. };
  13685. enum EmitterType2D
  13686. {
  13687. EMITTER_TYPE_GRAVITY,
  13688. EMITTER_TYPE_RADIAL,
  13689. };
  13690. enum FaceCameraMode
  13691. {
  13692. FC_NONE,
  13693. FC_ROTATE_XYZ,
  13694. FC_ROTATE_Y,
  13695. FC_LOOKAT_XYZ,
  13696. FC_LOOKAT_Y,
  13697. FC_DIRECTION,
  13698. };
  13699. enum FileMode
  13700. {
  13701. FILE_READ,
  13702. FILE_WRITE,
  13703. FILE_READWRITE,
  13704. };
  13705. enum FillMode
  13706. {
  13707. FILL_SOLID,
  13708. FILL_WIREFRAME,
  13709. FILL_POINT,
  13710. };
  13711. enum FocusMode
  13712. {
  13713. FM_NOTFOCUSABLE,
  13714. FM_RESETFOCUS,
  13715. FM_FOCUSABLE,
  13716. FM_FOCUSABLE_DEFOCUSABLE,
  13717. };
  13718. enum HighlightMode
  13719. {
  13720. HM_NEVER,
  13721. HM_FOCUS,
  13722. HM_ALWAYS,
  13723. };
  13724. enum HorizontalAlignment
  13725. {
  13726. HA_LEFT,
  13727. HA_CENTER,
  13728. HA_RIGHT,
  13729. };
  13730. enum HttpRequestState
  13731. {
  13732. HTTP_INITIALIZING,
  13733. HTTP_ERROR,
  13734. HTTP_OPEN,
  13735. HTTP_CLOSED,
  13736. };
  13737. enum InterpMethod
  13738. {
  13739. IM_NONE,
  13740. IM_LINEAR,
  13741. IM_SPLINE,
  13742. };
  13743. enum InterpolationMode
  13744. {
  13745. BEZIER_CURVE,
  13746. CATMULL_ROM_CURVE,
  13747. LINEAR_CURVE,
  13748. CATMULL_ROM_FULL_CURVE,
  13749. };
  13750. enum Intersection
  13751. {
  13752. OUTSIDE,
  13753. INTERSECTS,
  13754. INSIDE,
  13755. };
  13756. enum JSONNumberType
  13757. {
  13758. JSONNT_NAN,
  13759. JSONNT_INT,
  13760. JSONNT_UINT,
  13761. JSONNT_FLOAT_DOUBLE,
  13762. };
  13763. enum JSONValueType
  13764. {
  13765. JSON_NULL,
  13766. JSON_BOOL,
  13767. JSON_NUMBER,
  13768. JSON_STRING,
  13769. JSON_ARRAY,
  13770. JSON_OBJECT,
  13771. };
  13772. enum LayoutMode
  13773. {
  13774. LM_FREE,
  13775. LM_HORIZONTAL,
  13776. LM_VERTICAL,
  13777. };
  13778. enum LightType
  13779. {
  13780. LIGHT_DIRECTIONAL,
  13781. LIGHT_SPOT,
  13782. LIGHT_POINT,
  13783. };
  13784. enum LoadMode
  13785. {
  13786. LOAD_RESOURCES_ONLY,
  13787. LOAD_SCENE,
  13788. LOAD_SCENE_AND_RESOURCES,
  13789. };
  13790. enum LoopMode2D
  13791. {
  13792. LM_DEFAULT,
  13793. LM_FORCE_LOOPED,
  13794. LM_FORCE_CLAMPED,
  13795. };
  13796. enum MouseMode
  13797. {
  13798. MM_ABSOLUTE,
  13799. MM_RELATIVE,
  13800. MM_WRAP,
  13801. MM_FREE,
  13802. };
  13803. enum NavigationPushiness
  13804. {
  13805. NAVIGATIONPUSHINESS_LOW,
  13806. NAVIGATIONPUSHINESS_MEDIUM,
  13807. NAVIGATIONPUSHINESS_HIGH,
  13808. };
  13809. enum NavigationQuality
  13810. {
  13811. NAVIGATIONQUALITY_LOW,
  13812. NAVIGATIONQUALITY_MEDIUM,
  13813. NAVIGATIONQUALITY_HIGH,
  13814. };
  13815. enum NavmeshPartitionType
  13816. {
  13817. NAVMESH_PARTITION_WATERSHED,
  13818. NAVMESH_PARTITION_MONOTONE,
  13819. };
  13820. enum Orientation
  13821. {
  13822. O_HORIZONTAL,
  13823. O_VERTICAL,
  13824. };
  13825. enum Orientation2D
  13826. {
  13827. O_ORTHOGONAL,
  13828. O_ISOMETRIC,
  13829. O_STAGGERED,
  13830. O_HEXAGONAL,
  13831. };
  13832. enum PassLightingMode
  13833. {
  13834. LIGHTING_UNLIT,
  13835. LIGHTING_PERVERTEX,
  13836. LIGHTING_PERPIXEL,
  13837. };
  13838. enum PrimitiveType
  13839. {
  13840. TRIANGLE_LIST,
  13841. LINE_LIST,
  13842. POINT_LIST,
  13843. TRIANGLE_STRIP,
  13844. LINE_STRIP,
  13845. TRIANGLE_FAN,
  13846. };
  13847. enum RayQueryLevel
  13848. {
  13849. RAY_AABB,
  13850. RAY_OBB,
  13851. RAY_TRIANGLE,
  13852. RAY_TRIANGLE_UV,
  13853. };
  13854. enum RenderCommandSortMode
  13855. {
  13856. SORT_FRONTTOBACK,
  13857. SORT_BACKTOFRONT,
  13858. };
  13859. enum RenderCommandType
  13860. {
  13861. CMD_NONE,
  13862. CMD_CLEAR,
  13863. CMD_SCENEPASS,
  13864. CMD_QUAD,
  13865. CMD_FORWARDLIGHTS,
  13866. CMD_LIGHTVOLUMES,
  13867. CMD_RENDERUI,
  13868. CMD_SENDEVENT,
  13869. };
  13870. enum RenderSurfaceUpdateMode
  13871. {
  13872. SURFACE_MANUALUPDATE,
  13873. SURFACE_UPDATEVISIBLE,
  13874. SURFACE_UPDATEALWAYS,
  13875. };
  13876. enum RenderTargetSizeMode
  13877. {
  13878. SIZE_ABSOLUTE,
  13879. SIZE_VIEWPORTDIVISOR,
  13880. SIZE_VIEWPORTMULTIPLIER,
  13881. };
  13882. enum ShadowQuality
  13883. {
  13884. SHADOWQUALITY_SIMPLE_16BIT,
  13885. SHADOWQUALITY_SIMPLE_24BIT,
  13886. SHADOWQUALITY_PCF_16BIT,
  13887. SHADOWQUALITY_PCF_24BIT,
  13888. SHADOWQUALITY_VSM,
  13889. SHADOWQUALITY_BLUR_VSM,
  13890. };
  13891. enum ShapeType
  13892. {
  13893. SHAPE_BOX,
  13894. SHAPE_SPHERE,
  13895. SHAPE_STATICPLANE,
  13896. SHAPE_CYLINDER,
  13897. SHAPE_CAPSULE,
  13898. SHAPE_CONE,
  13899. SHAPE_TRIANGLEMESH,
  13900. SHAPE_CONVEXHULL,
  13901. SHAPE_TERRAIN,
  13902. };
  13903. enum TextEffect
  13904. {
  13905. TE_NONE,
  13906. TE_SHADOW,
  13907. TE_STROKE,
  13908. };
  13909. enum TextureAddressMode
  13910. {
  13911. ADDRESS_WRAP,
  13912. ADDRESS_MIRROR,
  13913. ADDRESS_CLAMP,
  13914. ADDRESS_BORDER,
  13915. };
  13916. enum TextureCoordinate
  13917. {
  13918. COORD_U,
  13919. COORD_V,
  13920. COORD_W,
  13921. };
  13922. enum TextureFilterMode
  13923. {
  13924. FILTER_NEAREST,
  13925. FILTER_BILINEAR,
  13926. FILTER_TRILINEAR,
  13927. FILTER_ANISOTROPIC,
  13928. FILTER_DEFAULT,
  13929. };
  13930. enum TextureUnit
  13931. {
  13932. TU_DIFFUSE,
  13933. TU_ALBEDOBUFFER,
  13934. TU_NORMAL,
  13935. TU_NORMALBUFFER,
  13936. TU_SPECULAR,
  13937. TU_EMISSIVE,
  13938. TU_ENVIRONMENT,
  13939. TU_LIGHTRAMP,
  13940. TU_LIGHTSHAPE,
  13941. TU_SHADOWMAP,
  13942. TU_CUSTOM1,
  13943. TU_CUSTOM2,
  13944. TU_VOLUMEMAP,
  13945. TU_FACESELECT,
  13946. TU_INDIRECTION,
  13947. TU_DEPTHBUFFER,
  13948. TU_LIGHTBUFFER,
  13949. TU_ZONE,
  13950. MAX_MATERIAL_TEXTURE_UNITS,
  13951. MAX_TEXTURE_UNITS,
  13952. };
  13953. enum TextureUsage
  13954. {
  13955. TEXTURE_STATIC,
  13956. TEXTURE_DYNAMIC,
  13957. TEXTURE_RENDERTARGET,
  13958. TEXTURE_DEPTHSTENCIL,
  13959. };
  13960. enum TileMapLayerType2D
  13961. {
  13962. LT_TILE_LAYER,
  13963. LT_OBJECT_GROUP,
  13964. LT_IMAGE_LAYER,
  13965. LT_INVALID,
  13966. };
  13967. enum TileObjectType2D
  13968. {
  13969. OT_RECTANGLE,
  13970. OT_ELLIPSE,
  13971. OT_POLYGON,
  13972. OT_POLYLINE,
  13973. OT_TILE,
  13974. OT_INVALID,
  13975. };
  13976. enum TrailType
  13977. {
  13978. TT_FACE_CAMERA,
  13979. TT_BONE,
  13980. };
  13981. enum TransformSpace
  13982. {
  13983. TS_LOCAL,
  13984. TS_PARENT,
  13985. TS_WORLD,
  13986. };
  13987. enum TraversalMode
  13988. {
  13989. TM_BREADTH_FIRST,
  13990. TM_DEPTH_FIRST,
  13991. };
  13992. enum VariantType
  13993. {
  13994. VAR_NONE,
  13995. VAR_INT,
  13996. VAR_BOOL,
  13997. VAR_FLOAT,
  13998. VAR_VECTOR2,
  13999. VAR_VECTOR3,
  14000. VAR_VECTOR4,
  14001. VAR_QUATERNION,
  14002. VAR_COLOR,
  14003. VAR_STRING,
  14004. VAR_BUFFER,
  14005. VAR_VOIDPTR,
  14006. VAR_RESOURCEREF,
  14007. VAR_RESOURCEREFLIST,
  14008. VAR_VARIANTVECTOR,
  14009. VAR_VARIANTMAP,
  14010. VAR_INTRECT,
  14011. VAR_INTVECTOR2,
  14012. VAR_PTR,
  14013. VAR_MATRIX3,
  14014. VAR_MATRIX3X4,
  14015. VAR_MATRIX4,
  14016. VAR_DOUBLE,
  14017. VAR_STRINGVECTOR,
  14018. };
  14019. enum VertexElementSemantic
  14020. {
  14021. SEM_POSITION,
  14022. SEM_NORMAL,
  14023. SEM_BINORMAL,
  14024. SEM_TANGENT,
  14025. SEM_TEXCOORD,
  14026. SEM_COLOR,
  14027. SEM_BLENDWEIGHTS,
  14028. SEM_BLENDINDICES,
  14029. SEM_OBJECTINDEX,
  14030. MAX_VERTEX_ELEMENT_SEMANTICS,
  14031. };
  14032. enum VertexElementType
  14033. {
  14034. TYPE_INT,
  14035. TYPE_FLOAT,
  14036. TYPE_VECTOR2,
  14037. TYPE_VECTOR3,
  14038. TYPE_VECTOR4,
  14039. TYPE_UBYTE4,
  14040. TYPE_UBYTE4_NORM,
  14041. MAX_VERTEX_ELEMENT_TYPES,
  14042. };
  14043. enum VerticalAlignment
  14044. {
  14045. VA_TOP,
  14046. VA_CENTER,
  14047. VA_BOTTOM,
  14048. };
  14049. enum WrapMode
  14050. {
  14051. WM_LOOP,
  14052. WM_ONCE,
  14053. WM_CLAMP,
  14054. };
  14055. // Global functions
  14056. float Abs(float);
  14057. float Acos(float);
  14058. String AddTrailingSlash(const String&);
  14059. float Asin(float);
  14060. float Atan(float);
  14061. float Atan2(float, float);
  14062. float Ceil(float);
  14063. float Clamp(float, float, float);
  14064. int Clamp(int, int, int);
  14065. void ClearDelayedExecute(const String& = String ( ));
  14066. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14067. float Cos(float);
  14068. uint CountSetBits(uint);
  14069. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14070. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14071. bool Equals(float, float);
  14072. void ErrorDialog(const String&, const String&);
  14073. float Floor(float);
  14074. uint GetAlphaFormat();
  14075. Array<String> GetArguments();
  14076. String GetConsoleInput();
  14077. uint GetDepthStencilFormat();
  14078. Object GetEventSender();
  14079. String GetExtension(const String&, bool = true);
  14080. String GetFileName(const String&);
  14081. String GetFileNameAndExtension(const String&, bool = false);
  14082. String GetFileSizeString(uint64);
  14083. uint GetFloat16Format();
  14084. uint GetFloat32Format();
  14085. uint GetFormat(const String&);
  14086. Variant GetGlobalVar(const String&);
  14087. String GetInternalPath(const String&);
  14088. uint GetLinearDepthFormat();
  14089. uint GetLuminanceAlphaFormat();
  14090. uint GetLuminanceFormat();
  14091. uint GetMaxBones();
  14092. String GetMiniDumpDir();
  14093. uint GetNumLogicalCPUs();
  14094. uint GetNumPhysicalCPUs();
  14095. Array<String> GetObjectCategories();
  14096. Array<String> GetObjectsByCategory(const String&);
  14097. String GetParentPath(const String&);
  14098. String GetPath(const String&);
  14099. String GetPlatform();
  14100. uint GetRG16Format();
  14101. uint GetRGBA16Format();
  14102. uint GetRGBAFloat16Format();
  14103. uint GetRGBAFloat32Format();
  14104. uint GetRGBAFormat();
  14105. uint GetRGBFormat();
  14106. uint GetRGFloat16Format();
  14107. uint GetRGFloat32Format();
  14108. uint GetRandomSeed();
  14109. uint GetReadableDepthFormat();
  14110. String GetTextureUnitName(TextureUnit);
  14111. bool HasSubscribedToEvent(Object, const String&);
  14112. bool HasSubscribedToEvent(const String&);
  14113. bool IsAbsolutePath(const String&);
  14114. bool IsAlpha(uint);
  14115. bool IsDigit(uint);
  14116. bool IsNaN(float);
  14117. bool IsPowerOfTwo(uint);
  14118. String Join(Array<String>&, const String&);
  14119. float Lerp(float, float, float);
  14120. void MarkNetworkUpdate();
  14121. float Max(float, float);
  14122. int Max(int, int);
  14123. float Min(float, float);
  14124. int Min(int, int);
  14125. float Mod(float, float);
  14126. uint NextPowerOfTwo(uint);
  14127. void OpenConsoleWindow();
  14128. float Pow(float, float);
  14129. void Print(bool, bool = false);
  14130. void Print(const String&, bool = false);
  14131. void Print(const Variant&, bool = false);
  14132. void Print(float, bool = false);
  14133. void Print(int, bool = false);
  14134. void Print(uint, bool = false);
  14135. void PrintCallStack(bool = false);
  14136. float Random();
  14137. float Random(float);
  14138. float Random(float, float);
  14139. int RandomInt();
  14140. int RandomInt(int);
  14141. int RandomInt(int, int);
  14142. float RandomNormal(float, float);
  14143. void RegisterEventName(const String&);
  14144. void Remove();
  14145. String RemoveTrailingSlash(const String&);
  14146. String ReplaceExtension(const String&, const String&);
  14147. uint SDBMHash(uint, uint8);
  14148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14149. void SetGlobalVar(const String&, Variant&);
  14150. void SetMiniDumpDir(const String&);
  14151. void SetRandomSeed(uint);
  14152. float Sign(float);
  14153. float Sin(float);
  14154. float SmoothStep(float, float, float);
  14155. float Sqrt(float);
  14156. const String& GetTypeName(StringHash);
  14157. void SubscribeToEvent(Object, const String&, const String&);
  14158. void SubscribeToEvent(const String&, const String&);
  14159. float Tan(float);
  14160. uint ToLower(uint);
  14161. String ToStringHex(int);
  14162. uint ToUpper(uint);
  14163. void UnsubscribeFromAllEvents();
  14164. void UnsubscribeFromAllEventsExcept(Array<String>);
  14165. void UnsubscribeFromEvent(Object, const String&);
  14166. void UnsubscribeFromEvent(const String&);
  14167. void UnsubscribeFromEvents(Object);
  14168. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14169. // Global properties
  14170. DBAPI DBAPI;
  14171. Audio audio;
  14172. ResourceCache cache;
  14173. Console console;
  14174. Database database;
  14175. DebugHud debugHud;
  14176. DebugRenderer debugRenderer;
  14177. Engine engine;
  14178. FileSystem fileSystem;
  14179. VariantMap globalVars;
  14180. Graphics graphics;
  14181. Input input;
  14182. Localization localization;
  14183. Log log;
  14184. Network network;
  14185. Node node;
  14186. Octree octree;
  14187. PhysicsWorld physicsWorld;
  14188. PhysicsWorld2D physicsWorld2D;
  14189. Renderer renderer;
  14190. ResourceCache resourceCache;
  14191. Scene scene;
  14192. Script script;
  14193. ScriptFile scriptFile;
  14194. ScriptInstance self;
  14195. Time time;
  14196. UI ui;
  14197. // Global constants
  14198. uint AM_COMPONENTID;
  14199. uint AM_DEFAULT;
  14200. uint AM_FILE;
  14201. uint AM_LATESTDATA;
  14202. uint AM_NET;
  14203. uint AM_NODEID;
  14204. uint AM_NODEIDVECTOR;
  14205. uint AM_NOEDIT;
  14206. Color BLACK;
  14207. Color BLUE;
  14208. uint8 CHANNEL_POSITION;
  14209. uint8 CHANNEL_ROTATION;
  14210. uint8 CHANNEL_SCALE;
  14211. uint CLEAR_COLOR;
  14212. uint CLEAR_DEPTH;
  14213. uint CLEAR_STENCIL;
  14214. int CONTROLLER_AXIS_LEFTX;
  14215. int CONTROLLER_AXIS_LEFTY;
  14216. int CONTROLLER_AXIS_RIGHTX;
  14217. int CONTROLLER_AXIS_RIGHTY;
  14218. int CONTROLLER_AXIS_TRIGGERLEFT;
  14219. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14220. int CONTROLLER_BUTTON_A;
  14221. int CONTROLLER_BUTTON_B;
  14222. int CONTROLLER_BUTTON_BACK;
  14223. int CONTROLLER_BUTTON_DPAD_DOWN;
  14224. int CONTROLLER_BUTTON_DPAD_LEFT;
  14225. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14226. int CONTROLLER_BUTTON_DPAD_UP;
  14227. int CONTROLLER_BUTTON_GUIDE;
  14228. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14229. int CONTROLLER_BUTTON_LEFTSTICK;
  14230. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14231. int CONTROLLER_BUTTON_RIGHTSTICK;
  14232. int CONTROLLER_BUTTON_START;
  14233. int CONTROLLER_BUTTON_X;
  14234. int CONTROLLER_BUTTON_Y;
  14235. Color CYAN;
  14236. uint DD_DISABLED;
  14237. uint DD_SOURCE;
  14238. uint DD_SOURCE_AND_TARGET;
  14239. uint DD_TARGET;
  14240. uint DEBUGHUD_SHOW_ALL;
  14241. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14242. uint DEBUGHUD_SHOW_MEMORY;
  14243. uint DEBUGHUD_SHOW_MODE;
  14244. uint DEBUGHUD_SHOW_NONE;
  14245. uint DEBUGHUD_SHOW_PROFILER;
  14246. uint DEBUGHUD_SHOW_STATS;
  14247. uint DEFAULT_LIGHTMASK;
  14248. uint DEFAULT_VIEWMASK;
  14249. uint DRAWABLE_ANY;
  14250. uint DRAWABLE_GEOMETRY;
  14251. uint DRAWABLE_GEOMETRY2D;
  14252. uint DRAWABLE_LIGHT;
  14253. uint DRAWABLE_ZONE;
  14254. uint FIRST_LOCAL_ID;
  14255. uint FIRST_REPLICATED_ID;
  14256. Color GRAY;
  14257. Color GREEN;
  14258. int HAT_CENTER;
  14259. int HAT_DOWN;
  14260. int HAT_LEFT;
  14261. int HAT_RIGHT;
  14262. int HAT_UP;
  14263. int KEY_0;
  14264. int KEY_1;
  14265. int KEY_2;
  14266. int KEY_3;
  14267. int KEY_4;
  14268. int KEY_5;
  14269. int KEY_6;
  14270. int KEY_7;
  14271. int KEY_8;
  14272. int KEY_9;
  14273. int KEY_A;
  14274. int KEY_ALT;
  14275. int KEY_APPLICATION;
  14276. int KEY_B;
  14277. int KEY_BACKSPACE;
  14278. int KEY_C;
  14279. int KEY_CAPSLOCK;
  14280. int KEY_CTRL;
  14281. int KEY_D;
  14282. int KEY_DELETE;
  14283. int KEY_DOWN;
  14284. int KEY_E;
  14285. int KEY_END;
  14286. int KEY_ESCAPE;
  14287. int KEY_F;
  14288. int KEY_F1;
  14289. int KEY_F10;
  14290. int KEY_F11;
  14291. int KEY_F12;
  14292. int KEY_F13;
  14293. int KEY_F14;
  14294. int KEY_F15;
  14295. int KEY_F16;
  14296. int KEY_F17;
  14297. int KEY_F18;
  14298. int KEY_F19;
  14299. int KEY_F2;
  14300. int KEY_F20;
  14301. int KEY_F21;
  14302. int KEY_F22;
  14303. int KEY_F23;
  14304. int KEY_F24;
  14305. int KEY_F3;
  14306. int KEY_F4;
  14307. int KEY_F5;
  14308. int KEY_F6;
  14309. int KEY_F7;
  14310. int KEY_F8;
  14311. int KEY_F9;
  14312. int KEY_G;
  14313. int KEY_GUI;
  14314. int KEY_H;
  14315. int KEY_HOME;
  14316. int KEY_I;
  14317. int KEY_INSERT;
  14318. int KEY_J;
  14319. int KEY_K;
  14320. int KEY_KP_0;
  14321. int KEY_KP_1;
  14322. int KEY_KP_2;
  14323. int KEY_KP_3;
  14324. int KEY_KP_4;
  14325. int KEY_KP_5;
  14326. int KEY_KP_6;
  14327. int KEY_KP_7;
  14328. int KEY_KP_8;
  14329. int KEY_KP_9;
  14330. int KEY_KP_DIVIDE;
  14331. int KEY_KP_ENTER;
  14332. int KEY_KP_MINUS;
  14333. int KEY_KP_MULTIPLY;
  14334. int KEY_KP_PERIOD;
  14335. int KEY_KP_PLUS;
  14336. int KEY_L;
  14337. int KEY_LALT;
  14338. int KEY_LCTRL;
  14339. int KEY_LEFT;
  14340. int KEY_LGUI;
  14341. int KEY_LSHIFT;
  14342. int KEY_M;
  14343. int KEY_N;
  14344. int KEY_NUMLOCKCLEAR;
  14345. int KEY_O;
  14346. int KEY_P;
  14347. int KEY_PAGEDOWN;
  14348. int KEY_PAGEUP;
  14349. int KEY_PAUSE;
  14350. int KEY_PRINTSCREEN;
  14351. int KEY_Q;
  14352. int KEY_R;
  14353. int KEY_RALT;
  14354. int KEY_RCTRL;
  14355. int KEY_RETURN;
  14356. int KEY_RETURN2;
  14357. int KEY_RGUI;
  14358. int KEY_RIGHT;
  14359. int KEY_RSHIFT;
  14360. int KEY_S;
  14361. int KEY_SCROLLLOCK;
  14362. int KEY_SELECT;
  14363. int KEY_SHIFT;
  14364. int KEY_SPACE;
  14365. int KEY_T;
  14366. int KEY_TAB;
  14367. int KEY_U;
  14368. int KEY_UP;
  14369. int KEY_V;
  14370. int KEY_W;
  14371. int KEY_X;
  14372. int KEY_Y;
  14373. int KEY_Z;
  14374. uint LAST_LOCAL_ID;
  14375. uint LAST_REPLICATED_ID;
  14376. int LOG_DEBUG;
  14377. int LOG_ERROR;
  14378. int LOG_INFO;
  14379. int LOG_NONE;
  14380. int LOG_WARNING;
  14381. Color MAGENTA;
  14382. uint MASK_BLENDINDICES;
  14383. uint MASK_BLENDWEIGHTS;
  14384. uint MASK_COLOR;
  14385. uint MASK_CUBETEXCOORD1;
  14386. uint MASK_CUBETEXCOORD2;
  14387. uint MASK_INSTANCEMATRIX1;
  14388. uint MASK_INSTANCEMATRIX2;
  14389. uint MASK_INSTANCEMATRIX3;
  14390. uint MASK_NONE;
  14391. uint MASK_NORMAL;
  14392. uint MASK_OBJECTINDEX;
  14393. uint MASK_POSITION;
  14394. uint MASK_TANGENT;
  14395. uint MASK_TEXCOORD1;
  14396. uint MASK_TEXCOORD2;
  14397. int MOUSEB_LEFT;
  14398. int MOUSEB_MIDDLE;
  14399. int MOUSEB_RIGHT;
  14400. float M_DEGTORAD;
  14401. float M_DEGTORAD_2;
  14402. float M_EPSILON;
  14403. float M_HALF_PI;
  14404. float M_INFINITY;
  14405. float M_LARGE_EPSILON;
  14406. float M_LARGE_VALUE;
  14407. int M_MAX_INT;
  14408. uint M_MAX_UNSIGNED;
  14409. int M_MIN_INT;
  14410. uint M_MIN_UNSIGNED;
  14411. float M_PI;
  14412. float M_RADTODEG;
  14413. uint NPOS;
  14414. float PIXEL_SIZE;
  14415. int QUALITY_HIGH;
  14416. int QUALITY_LOW;
  14417. int QUALITY_MAX;
  14418. int QUALITY_MEDIUM;
  14419. int QUAL_ALT;
  14420. int QUAL_ANY;
  14421. int QUAL_CTRL;
  14422. int QUAL_SHIFT;
  14423. Color RED;
  14424. int SCANCODE_0;
  14425. int SCANCODE_1;
  14426. int SCANCODE_2;
  14427. int SCANCODE_3;
  14428. int SCANCODE_4;
  14429. int SCANCODE_5;
  14430. int SCANCODE_6;
  14431. int SCANCODE_7;
  14432. int SCANCODE_8;
  14433. int SCANCODE_9;
  14434. int SCANCODE_A;
  14435. int SCANCODE_AC_BACK;
  14436. int SCANCODE_AC_BOOKMARKS;
  14437. int SCANCODE_AC_FORWARD;
  14438. int SCANCODE_AC_HOME;
  14439. int SCANCODE_AC_REFRESH;
  14440. int SCANCODE_AC_SEARCH;
  14441. int SCANCODE_AC_STOP;
  14442. int SCANCODE_AGAIN;
  14443. int SCANCODE_ALT;
  14444. int SCANCODE_ALTERASE;
  14445. int SCANCODE_APOSTROPHE;
  14446. int SCANCODE_APP1;
  14447. int SCANCODE_APP2;
  14448. int SCANCODE_APPLICATION;
  14449. int SCANCODE_AUDIOMUTE;
  14450. int SCANCODE_AUDIONEXT;
  14451. int SCANCODE_AUDIOPLAY;
  14452. int SCANCODE_AUDIOPREV;
  14453. int SCANCODE_AUDIOSTOP;
  14454. int SCANCODE_B;
  14455. int SCANCODE_BACKSLASH;
  14456. int SCANCODE_BACKSPACE;
  14457. int SCANCODE_BRIGHTNESSDOWN;
  14458. int SCANCODE_BRIGHTNESSUP;
  14459. int SCANCODE_C;
  14460. int SCANCODE_CALCULATOR;
  14461. int SCANCODE_CANCEL;
  14462. int SCANCODE_CAPSLOCK;
  14463. int SCANCODE_CLEAR;
  14464. int SCANCODE_CLEARAGAIN;
  14465. int SCANCODE_COMMA;
  14466. int SCANCODE_COMPUTER;
  14467. int SCANCODE_COPY;
  14468. int SCANCODE_CRSEL;
  14469. int SCANCODE_CTRL;
  14470. int SCANCODE_CURRENCYSUBUNIT;
  14471. int SCANCODE_CURRENCYUNIT;
  14472. int SCANCODE_CUT;
  14473. int SCANCODE_D;
  14474. int SCANCODE_DECIMALSEPARATOR;
  14475. int SCANCODE_DELETE;
  14476. int SCANCODE_DISPLAYSWITCH;
  14477. int SCANCODE_DOWN;
  14478. int SCANCODE_E;
  14479. int SCANCODE_EJECT;
  14480. int SCANCODE_END;
  14481. int SCANCODE_EQUALS;
  14482. int SCANCODE_ESCAPE;
  14483. int SCANCODE_EXECUTE;
  14484. int SCANCODE_EXSEL;
  14485. int SCANCODE_F;
  14486. int SCANCODE_F1;
  14487. int SCANCODE_F10;
  14488. int SCANCODE_F11;
  14489. int SCANCODE_F12;
  14490. int SCANCODE_F13;
  14491. int SCANCODE_F14;
  14492. int SCANCODE_F15;
  14493. int SCANCODE_F16;
  14494. int SCANCODE_F17;
  14495. int SCANCODE_F18;
  14496. int SCANCODE_F19;
  14497. int SCANCODE_F2;
  14498. int SCANCODE_F20;
  14499. int SCANCODE_F21;
  14500. int SCANCODE_F22;
  14501. int SCANCODE_F23;
  14502. int SCANCODE_F24;
  14503. int SCANCODE_F3;
  14504. int SCANCODE_F4;
  14505. int SCANCODE_F5;
  14506. int SCANCODE_F6;
  14507. int SCANCODE_F7;
  14508. int SCANCODE_F8;
  14509. int SCANCODE_F9;
  14510. int SCANCODE_FIND;
  14511. int SCANCODE_G;
  14512. int SCANCODE_GRAVE;
  14513. int SCANCODE_GUI;
  14514. int SCANCODE_H;
  14515. int SCANCODE_HELP;
  14516. int SCANCODE_HOME;
  14517. int SCANCODE_I;
  14518. int SCANCODE_INSERT;
  14519. int SCANCODE_INTERNATIONAL1;
  14520. int SCANCODE_INTERNATIONAL2;
  14521. int SCANCODE_INTERNATIONAL3;
  14522. int SCANCODE_INTERNATIONAL4;
  14523. int SCANCODE_INTERNATIONAL5;
  14524. int SCANCODE_INTERNATIONAL6;
  14525. int SCANCODE_INTERNATIONAL7;
  14526. int SCANCODE_INTERNATIONAL8;
  14527. int SCANCODE_INTERNATIONAL9;
  14528. int SCANCODE_J;
  14529. int SCANCODE_K;
  14530. int SCANCODE_KBDILLUMDOWN;
  14531. int SCANCODE_KBDILLUMTOGGLE;
  14532. int SCANCODE_KBDILLUMUP;
  14533. int SCANCODE_KP_0;
  14534. int SCANCODE_KP_00;
  14535. int SCANCODE_KP_000;
  14536. int SCANCODE_KP_1;
  14537. int SCANCODE_KP_2;
  14538. int SCANCODE_KP_3;
  14539. int SCANCODE_KP_4;
  14540. int SCANCODE_KP_5;
  14541. int SCANCODE_KP_6;
  14542. int SCANCODE_KP_7;
  14543. int SCANCODE_KP_8;
  14544. int SCANCODE_KP_9;
  14545. int SCANCODE_KP_A;
  14546. int SCANCODE_KP_AMPERSAND;
  14547. int SCANCODE_KP_AT;
  14548. int SCANCODE_KP_B;
  14549. int SCANCODE_KP_BACKSPACE;
  14550. int SCANCODE_KP_BINARY;
  14551. int SCANCODE_KP_C;
  14552. int SCANCODE_KP_CLEAR;
  14553. int SCANCODE_KP_CLEARENTRY;
  14554. int SCANCODE_KP_COLON;
  14555. int SCANCODE_KP_COMMA;
  14556. int SCANCODE_KP_D;
  14557. int SCANCODE_KP_DBLAMPERSAND;
  14558. int SCANCODE_KP_DBLVERTICALBAR;
  14559. int SCANCODE_KP_DECIMAL;
  14560. int SCANCODE_KP_DIVIDE;
  14561. int SCANCODE_KP_E;
  14562. int SCANCODE_KP_ENTER;
  14563. int SCANCODE_KP_EQUALS;
  14564. int SCANCODE_KP_EQUALSAS400;
  14565. int SCANCODE_KP_EXCLAM;
  14566. int SCANCODE_KP_F;
  14567. int SCANCODE_KP_GREATER;
  14568. int SCANCODE_KP_HASH;
  14569. int SCANCODE_KP_HEXADECIMAL;
  14570. int SCANCODE_KP_LEFTBRACE;
  14571. int SCANCODE_KP_LEFTPAREN;
  14572. int SCANCODE_KP_LESS;
  14573. int SCANCODE_KP_MEMADD;
  14574. int SCANCODE_KP_MEMCLEAR;
  14575. int SCANCODE_KP_MEMDIVIDE;
  14576. int SCANCODE_KP_MEMMULTIPLY;
  14577. int SCANCODE_KP_MEMRECALL;
  14578. int SCANCODE_KP_MEMSTORE;
  14579. int SCANCODE_KP_MEMSUBTRACT;
  14580. int SCANCODE_KP_MINUS;
  14581. int SCANCODE_KP_MULTIPLY;
  14582. int SCANCODE_KP_OCTAL;
  14583. int SCANCODE_KP_PERCENT;
  14584. int SCANCODE_KP_PERIOD;
  14585. int SCANCODE_KP_PLUS;
  14586. int SCANCODE_KP_PLUSMINUS;
  14587. int SCANCODE_KP_POWER;
  14588. int SCANCODE_KP_RIGHTBRACE;
  14589. int SCANCODE_KP_RIGHTPAREN;
  14590. int SCANCODE_KP_SPACE;
  14591. int SCANCODE_KP_TAB;
  14592. int SCANCODE_KP_VERTICALBAR;
  14593. int SCANCODE_KP_XOR;
  14594. int SCANCODE_L;
  14595. int SCANCODE_LALT;
  14596. int SCANCODE_LANG1;
  14597. int SCANCODE_LANG2;
  14598. int SCANCODE_LANG3;
  14599. int SCANCODE_LANG4;
  14600. int SCANCODE_LANG5;
  14601. int SCANCODE_LANG6;
  14602. int SCANCODE_LANG7;
  14603. int SCANCODE_LANG8;
  14604. int SCANCODE_LANG9;
  14605. int SCANCODE_LCTRL;
  14606. int SCANCODE_LEFT;
  14607. int SCANCODE_LEFTBRACKET;
  14608. int SCANCODE_LGUI;
  14609. int SCANCODE_LSHIFT;
  14610. int SCANCODE_M;
  14611. int SCANCODE_MAIL;
  14612. int SCANCODE_MEDIASELECT;
  14613. int SCANCODE_MENU;
  14614. int SCANCODE_MINUS;
  14615. int SCANCODE_MODE;
  14616. int SCANCODE_MUTE;
  14617. int SCANCODE_N;
  14618. int SCANCODE_NONUSBACKSLASH;
  14619. int SCANCODE_NONUSHASH;
  14620. int SCANCODE_NUMLOCKCLEAR;
  14621. int SCANCODE_O;
  14622. int SCANCODE_OPER;
  14623. int SCANCODE_OUT;
  14624. int SCANCODE_P;
  14625. int SCANCODE_PAGEDOWN;
  14626. int SCANCODE_PAGEUP;
  14627. int SCANCODE_PASTE;
  14628. int SCANCODE_PAUSE;
  14629. int SCANCODE_PERIOD;
  14630. int SCANCODE_POWER;
  14631. int SCANCODE_PRINTSCREEN;
  14632. int SCANCODE_PRIOR;
  14633. int SCANCODE_Q;
  14634. int SCANCODE_R;
  14635. int SCANCODE_RALT;
  14636. int SCANCODE_RCTRL;
  14637. int SCANCODE_RETURN;
  14638. int SCANCODE_RETURN2;
  14639. int SCANCODE_RGUI;
  14640. int SCANCODE_RIGHT;
  14641. int SCANCODE_RIGHTBRACKET;
  14642. int SCANCODE_RSHIFT;
  14643. int SCANCODE_S;
  14644. int SCANCODE_SCROLLLOCK;
  14645. int SCANCODE_SELECT;
  14646. int SCANCODE_SEMICOLON;
  14647. int SCANCODE_SEPARATOR;
  14648. int SCANCODE_SHIFT;
  14649. int SCANCODE_SLASH;
  14650. int SCANCODE_SLEEP;
  14651. int SCANCODE_SPACE;
  14652. int SCANCODE_STOP;
  14653. int SCANCODE_SYSREQ;
  14654. int SCANCODE_T;
  14655. int SCANCODE_TAB;
  14656. int SCANCODE_THOUSANDSSEPARATOR;
  14657. int SCANCODE_U;
  14658. int SCANCODE_UNDO;
  14659. int SCANCODE_UNKNOWN;
  14660. int SCANCODE_UP;
  14661. int SCANCODE_V;
  14662. int SCANCODE_VOLUMEDOWN;
  14663. int SCANCODE_VOLUMEUP;
  14664. int SCANCODE_W;
  14665. int SCANCODE_WWW;
  14666. int SCANCODE_X;
  14667. int SCANCODE_Y;
  14668. int SCANCODE_Z;
  14669. uint SCAN_DIRS;
  14670. uint SCAN_FILES;
  14671. uint SCAN_HIDDEN;
  14672. String SOUND_AMBIENT;
  14673. String SOUND_EFFECT;
  14674. String SOUND_MASTER;
  14675. String SOUND_MUSIC;
  14676. String SOUND_VOICE;
  14677. Color TRANSPARENT;
  14678. uint VO_DISABLE_OCCLUSION;
  14679. uint VO_DISABLE_SHADOWS;
  14680. uint VO_LOW_MATERIAL_QUALITY;
  14681. uint VO_NONE;
  14682. Color WHITE;
  14683. Color YELLOW;