AngelScriptAPI.h 367 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793
  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. AnimationTrack CreateTrack(const String&);
  290. AnimationTrack GetTrack(StringHash);
  291. AnimationTrack GetTrack(const String&);
  292. bool HasSubscribedToEvent(Object, const String&);
  293. bool HasSubscribedToEvent(const String&);
  294. bool Load(File);
  295. bool Load(VectorBuffer&);
  296. bool RemoveAllTracks();
  297. void RemoveAllTriggers();
  298. bool RemoveTrack(const String&);
  299. void RemoveTrigger(uint);
  300. bool Save(File) const;
  301. bool Save(VectorBuffer&) const;
  302. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  303. // Properties:
  304. String animationName;
  305. /* readonly */
  306. String category;
  307. float length;
  308. /* readonly */
  309. uint memoryUse;
  310. String name;
  311. /* readonly */
  312. uint numTracks;
  313. uint numTriggers;
  314. /* readonly */
  315. int refs;
  316. /* readonly */
  317. Array<String> trackNames;
  318. Array<AnimationTriggerPoint> triggers;
  319. /* readonly */
  320. StringHash type;
  321. /* readonly */
  322. String typeName;
  323. /* readonly */
  324. uint useTimer;
  325. /* readonly */
  326. int weakRefs;
  327. };
  328. class AnimationController
  329. {
  330. // Methods:
  331. void ApplyAttributes();
  332. void DrawDebugGeometry(DebugRenderer, bool);
  333. bool Fade(const String&, float, float);
  334. bool FadeOthers(const String&, float, float);
  335. AnimationState GetAnimationState(StringHash) const;
  336. AnimationState GetAnimationState(const String&) const;
  337. Variant GetAttribute(const String&) const;
  338. ValueAnimation GetAttributeAnimation(const String&) const;
  339. float GetAttributeAnimationSpeed(const String&) const;
  340. float GetAttributeAnimationTime(const String&) const;
  341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  342. Variant GetAttributeDefault(const String&) const;
  343. float GetAutoFade(const String&) const;
  344. AnimationBlendMode GetBlendMode(const String&) const;
  345. float GetFadeTarget(const String&) const;
  346. float GetFadeTime(const String&) const;
  347. bool GetInterceptNetworkUpdate(const String&) const;
  348. uint8 GetLayer(const String&) const;
  349. float GetLength(const String&) const;
  350. bool GetLooped(const String&) const;
  351. bool GetRemoveOnCompletion(const String&);
  352. float GetSpeed(const String&) const;
  353. float GetTime(const String&) const;
  354. float GetWeight(const String&) const;
  355. bool HasSubscribedToEvent(Object, const String&);
  356. bool HasSubscribedToEvent(const String&);
  357. bool IsAtEnd(const String&) const;
  358. bool IsFadingIn(const String&) const;
  359. bool IsFadingOut(const String&) const;
  360. bool IsPlaying(const String&) const;
  361. bool Load(File, bool = false);
  362. bool Load(VectorBuffer&, bool = false);
  363. bool LoadJSON(const JSONValue&, bool = false);
  364. bool LoadXML(const XMLElement&, bool = false);
  365. void MarkNetworkUpdate() const;
  366. bool Play(const String&, uint8, bool, float = 0.0f);
  367. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  368. void Remove();
  369. void RemoveAttributeAnimation(const String&);
  370. void RemoveInstanceDefault();
  371. void RemoveObjectAnimation();
  372. void ResetToDefault();
  373. bool Save(File) const;
  374. bool Save(VectorBuffer&) const;
  375. bool SaveJSON(JSONValue&) const;
  376. bool SaveXML(XMLElement&) const;
  377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  378. void SetAnimationTime(float);
  379. bool SetAttribute(const String&, const Variant&);
  380. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  381. void SetAttributeAnimationSpeed(const String&, float);
  382. void SetAttributeAnimationTime(const String&, float);
  383. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  384. bool SetAutoFade(const String&, float);
  385. bool SetBlendMode(const String&, AnimationBlendMode);
  386. void SetInterceptNetworkUpdate(const String&, bool);
  387. bool SetLayer(const String&, uint8);
  388. bool SetLooped(const String&, bool);
  389. bool SetRemoveOnCompletion(const String&, bool);
  390. bool SetSpeed(const String&, float);
  391. bool SetStartBone(const String&, const String&);
  392. bool SetTime(const String&, float);
  393. bool SetWeight(const String&, float);
  394. void Stop(const String&, float = 0.0f);
  395. void StopAll(float = 0.0f);
  396. void StopLayer(uint8, float = 0.0f);
  397. const String& GetStartBone(const String&) const;
  398. // Properties:
  399. bool animationEnabled;
  400. /* readonly */
  401. Array<Variant> attributeDefaults;
  402. /* readonly */
  403. Array<AttributeInfo> attributeInfos;
  404. Array<Variant> attributes;
  405. /* readonly */
  406. String category;
  407. bool enabled;
  408. /* readonly */
  409. bool enabledEffective;
  410. /* readonly */
  411. uint id;
  412. /* readonly */
  413. Node node;
  414. /* readonly */
  415. uint numAttributes;
  416. ObjectAnimation objectAnimation;
  417. /* readonly */
  418. int refs;
  419. bool temporary;
  420. /* readonly */
  421. StringHash type;
  422. /* readonly */
  423. String typeName;
  424. /* readonly */
  425. int weakRefs;
  426. };
  427. class AnimationKeyFrame
  428. {
  429. // Properties:
  430. Vector3 position;
  431. Quaternion rotation;
  432. Vector3 scale;
  433. float time;
  434. };
  435. class AnimationSet2D
  436. {
  437. // Methods:
  438. String GetAnimation(uint) const;
  439. bool HasSubscribedToEvent(Object, const String&);
  440. bool HasSubscribedToEvent(const String&);
  441. bool Load(File);
  442. bool Load(VectorBuffer&);
  443. bool Save(File) const;
  444. bool Save(VectorBuffer&) const;
  445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  446. // Properties:
  447. /* readonly */
  448. String category;
  449. /* readonly */
  450. uint memoryUse;
  451. String name;
  452. /* readonly */
  453. uint numAnimations;
  454. /* readonly */
  455. int refs;
  456. /* readonly */
  457. StringHash type;
  458. /* readonly */
  459. String typeName;
  460. /* readonly */
  461. uint useTimer;
  462. /* readonly */
  463. int weakRefs;
  464. };
  465. class AnimationState
  466. {
  467. // Methods:
  468. void AddTime(float);
  469. void AddWeight(float);
  470. void Apply();
  471. float GetBoneWeight(StringHash) const;
  472. float GetBoneWeight(const String&) const;
  473. uint GetTrackIndex(StringHash) const;
  474. uint GetTrackIndex(const String&) const;
  475. void SetBoneWeight(StringHash, float, bool = false);
  476. void SetBoneWeight(const String&, float, bool = false);
  477. void SetBoneWeight(uint, float, bool = false);
  478. // Properties:
  479. /* readonly */
  480. Animation animation;
  481. AnimationBlendMode blendMode;
  482. Array<float> boneWeights;
  483. /* readonly */
  484. bool enabled;
  485. uint8 layer;
  486. /* readonly */
  487. float length;
  488. bool looped;
  489. /* readonly */
  490. AnimatedModel model;
  491. /* readonly */
  492. Node node;
  493. /* readonly */
  494. int refs;
  495. Bone startBone;
  496. float time;
  497. /* readonly */
  498. int weakRefs;
  499. float weight;
  500. };
  501. class AnimationTrack
  502. {
  503. // Methods:
  504. void AddKeyFrame(const AnimationKeyFrame&);
  505. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  506. void RemoveAllKeyFrames();
  507. void RemoveKeyFrame(uint);
  508. // Properties:
  509. uint8 channelMask;
  510. Array<AnimationKeyFrame> keyFrames;
  511. String name;
  512. StringHash nameHash;
  513. /* readonly */
  514. uint numKeyFrames;
  515. };
  516. class AnimationTriggerPoint
  517. {
  518. // Properties:
  519. Variant data;
  520. float time;
  521. };
  522. template <class T> class Array
  523. {
  524. // Methods:
  525. void Clear();
  526. void Erase(uint);
  527. int Find(const T&) const;
  528. int Find(uint, const T&) const;
  529. int FindByRef(const T&) const;
  530. int FindByRef(uint, const T&) const;
  531. void Insert(uint, const T&);
  532. void Pop();
  533. void Push(const T&);
  534. void Reserve(uint);
  535. void Resize(uint);
  536. void Reverse();
  537. void Sort();
  538. void Sort(uint, uint);
  539. void SortReverse();
  540. void SortReverse(uint, uint);
  541. // Properties:
  542. /* readonly */
  543. bool empty;
  544. uint length;
  545. };
  546. class AttributeInfo
  547. {
  548. // Properties:
  549. Variant defaultValue;
  550. /* readonly */
  551. Array<String> enumNames;
  552. uint mode;
  553. String name;
  554. VariantType type;
  555. };
  556. class Audio
  557. {
  558. // Methods:
  559. bool HasMasterGain(const String&) const;
  560. bool HasSubscribedToEvent(Object, const String&);
  561. bool HasSubscribedToEvent(const String&);
  562. bool IsSoundTypePaused(const String&);
  563. void PauseSoundType(const String&);
  564. bool Play();
  565. void ResumeAll();
  566. void ResumeSoundType(const String&);
  567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  568. void SetMode(int, int, bool, bool = true);
  569. void Stop();
  570. // Properties:
  571. /* readonly */
  572. String category;
  573. /* readonly */
  574. bool initialized;
  575. /* readonly */
  576. bool interpolation;
  577. SoundListener listener;
  578. Array<float> masterGain;
  579. /* readonly */
  580. int mixRate;
  581. /* readonly */
  582. bool playing;
  583. /* readonly */
  584. int refs;
  585. /* readonly */
  586. uint sampleSize;
  587. /* readonly */
  588. bool stereo;
  589. /* readonly */
  590. StringHash type;
  591. /* readonly */
  592. String typeName;
  593. /* readonly */
  594. int weakRefs;
  595. };
  596. class BiasParameters
  597. {
  598. // Properties:
  599. float constantBias;
  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. /* readonly */
  672. uint id;
  673. /* readonly */
  674. bool inView;
  675. uint lightMask;
  676. float lodBias;
  677. Material material;
  678. uint maxLights;
  679. /* readonly */
  680. Node node;
  681. /* readonly */
  682. uint numAttributes;
  683. uint numBillboards;
  684. ObjectAnimation objectAnimation;
  685. bool occludee;
  686. bool occluder;
  687. /* readonly */
  688. int refs;
  689. bool relative;
  690. bool scaled;
  691. float shadowDistance;
  692. uint shadowMask;
  693. bool sorted;
  694. bool temporary;
  695. /* readonly */
  696. StringHash type;
  697. /* readonly */
  698. String typeName;
  699. uint viewMask;
  700. /* readonly */
  701. int weakRefs;
  702. /* readonly */
  703. BoundingBox worldBoundingBox;
  704. /* readonly */
  705. Zone zone;
  706. uint zoneMask;
  707. };
  708. class Bone
  709. {
  710. // Properties:
  711. bool animated;
  712. BoundingBox boundingBox;
  713. Vector3 initialPosition;
  714. Quaternion initialRotation;
  715. Vector3 initialScale;
  716. String name;
  717. Node node;
  718. float radius;
  719. };
  720. class BorderImage
  721. {
  722. // Methods:
  723. void AddChild(UIElement);
  724. void AddTag(const String&);
  725. void AddTags(const String&, int8 = ';');
  726. void ApplyAttributes();
  727. void BringToFront();
  728. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  729. void DisableLayoutUpdate();
  730. IntVector2 ElementToScreen(const IntVector2&);
  731. void EnableLayoutUpdate();
  732. uint FindChild(UIElement) const;
  733. Variant GetAttribute(const String&) const;
  734. ValueAnimation GetAttributeAnimation(const String&) const;
  735. float GetAttributeAnimationSpeed(const String&) const;
  736. float GetAttributeAnimationTime(const String&) const;
  737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  738. Variant GetAttributeDefault(const String&) const;
  739. UIElement GetChild(const String&, bool = false) const;
  740. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  741. Array<UIElement> GetChildren(bool = false) const;
  742. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  743. UIElement GetElementEventSender() const;
  744. bool GetInterceptNetworkUpdate(const String&) const;
  745. uint GetNumChildren(bool) const;
  746. bool HasSubscribedToEvent(Object, const String&);
  747. bool HasSubscribedToEvent(const String&);
  748. bool HasTag(const String&) const;
  749. void InsertChild(uint, UIElement);
  750. bool IsInside(IntVector2, bool);
  751. bool IsInsideCombined(IntVector2, bool);
  752. bool Load(File, bool = false);
  753. bool Load(VectorBuffer&, bool = false);
  754. bool LoadChildXML(XMLFile, XMLFile = null);
  755. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  756. bool LoadJSON(const JSONValue&, bool = false);
  757. bool LoadXML(File);
  758. bool LoadXML(VectorBuffer&);
  759. bool LoadXML(XMLFile, XMLFile);
  760. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  761. bool LoadXML(const XMLElement&, bool = false);
  762. void MarkNetworkUpdate() const;
  763. void Remove();
  764. void RemoveAllChildren();
  765. void RemoveAllTags();
  766. void RemoveAttributeAnimation(const String&);
  767. void RemoveChild(UIElement, uint = 0);
  768. void RemoveChild(uint);
  769. void RemoveInstanceDefault();
  770. void RemoveObjectAnimation();
  771. bool RemoveTag(const String&);
  772. void ResetDeepEnabled();
  773. void ResetToDefault();
  774. bool Save(File) const;
  775. bool Save(VectorBuffer&) const;
  776. bool SaveJSON(JSONValue&) const;
  777. bool SaveXML(File, const String& = "\t");
  778. bool SaveXML(VectorBuffer&, const String& = "\t");
  779. bool SaveXML(XMLElement&) const;
  780. IntVector2 ScreenToElement(const IntVector2&);
  781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  782. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  783. void SetAnimationTime(float);
  784. bool SetAttribute(const String&, const Variant&);
  785. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  786. void SetAttributeAnimationSpeed(const String&, float);
  787. void SetAttributeAnimationTime(const String&, float);
  788. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  789. void SetDeepEnabled(bool);
  790. void SetEnabledRecursive(bool);
  791. void SetFixedHeight(int);
  792. void SetFixedSize(int, int);
  793. void SetFixedWidth(int);
  794. void SetFullImageRect();
  795. void SetHoverOffset(int, int);
  796. void SetInterceptNetworkUpdate(const String&, bool);
  797. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  798. void SetMaxSize(int, int);
  799. void SetMinSize(int, int);
  800. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  801. void SetPosition(int, int);
  802. void SetSize(int, int);
  803. bool SetStyle(const String&, XMLFile = null);
  804. bool SetStyle(const XMLElement&);
  805. bool SetStyleAuto(XMLFile = null);
  806. void UpdateLayout();
  807. const Variant& GetVar(const StringHash&);
  808. // Properties:
  809. bool animationEnabled;
  810. /* readonly */
  811. Array<Variant> attributeDefaults;
  812. /* readonly */
  813. Array<AttributeInfo> attributeInfos;
  814. Array<Variant> attributes;
  815. BlendMode blendMode;
  816. IntRect border;
  817. bool bringToBack;
  818. bool bringToFront;
  819. /* readonly */
  820. String category;
  821. /* readonly */
  822. IntVector2 childOffset;
  823. /* readonly */
  824. Array<UIElement> children;
  825. IntRect clipBorder;
  826. bool clipChildren;
  827. /* writeonly */
  828. Color color;
  829. /* readonly */
  830. bool colorGradient;
  831. Array<Color> colors;
  832. /* readonly */
  833. IntRect combinedScreenRect;
  834. XMLFile defaultStyle;
  835. /* readonly */
  836. float derivedOpacity;
  837. /* readonly */
  838. uint dragButtonCombo;
  839. /* readonly */
  840. int dragButtonCount;
  841. uint dragDropMode;
  842. bool editable;
  843. bool elementEventSender;
  844. bool enabled;
  845. /* readonly */
  846. bool enabledSelf;
  847. /* readonly */
  848. bool fixedHeight;
  849. /* readonly */
  850. bool fixedSize;
  851. /* readonly */
  852. bool fixedWidth;
  853. bool focus;
  854. FocusMode focusMode;
  855. int height;
  856. HorizontalAlignment horizontalAlignment;
  857. IntVector2 hoverOffset;
  858. /* readonly */
  859. bool hovering;
  860. IntRect imageBorder;
  861. IntRect imageRect;
  862. int indent;
  863. int indentSpacing;
  864. /* readonly */
  865. int indentWidth;
  866. bool internal;
  867. IntRect layoutBorder;
  868. Vector2 layoutFlexScale;
  869. LayoutMode layoutMode;
  870. int layoutSpacing;
  871. int maxHeight;
  872. IntVector2 maxSize;
  873. int maxWidth;
  874. int minHeight;
  875. IntVector2 minSize;
  876. int minWidth;
  877. String name;
  878. /* readonly */
  879. uint numAllChildren;
  880. /* readonly */
  881. uint numAttributes;
  882. /* readonly */
  883. uint numChildren;
  884. ObjectAnimation objectAnimation;
  885. float opacity;
  886. UIElement parent;
  887. IntVector2 position;
  888. int priority;
  889. /* readonly */
  890. int refs;
  891. /* readonly */
  892. UIElement root;
  893. /* readonly */
  894. IntVector2 screenPosition;
  895. bool selected;
  896. IntVector2 size;
  897. bool sortChildren;
  898. String style;
  899. /* readonly */
  900. Array<String> tags;
  901. bool temporary;
  902. Texture texture;
  903. bool tiled;
  904. TraversalMode traversalMode;
  905. /* readonly */
  906. StringHash type;
  907. /* readonly */
  908. String typeName;
  909. bool useDerivedOpacity;
  910. /* readonly */
  911. VariantMap vars;
  912. VerticalAlignment verticalAlignment;
  913. bool visible;
  914. /* readonly */
  915. bool visibleEffective;
  916. /* readonly */
  917. int weakRefs;
  918. int width;
  919. };
  920. class BoundingBox
  921. {
  922. // Methods:
  923. void Clear();
  924. void Clip(const BoundingBox&);
  925. void Define(const BoundingBox&);
  926. void Define(const Frustum&);
  927. void Define(const Polyhedron&);
  928. void Define(const Sphere&);
  929. void Define(const Vector3&);
  930. void Define(const Vector3&, const Vector3&);
  931. void Define(float, float);
  932. bool Defined() const;
  933. Intersection IsInside(const BoundingBox&) const;
  934. Intersection IsInside(const Sphere&) const;
  935. Intersection IsInside(const Vector3&) const;
  936. Intersection IsInsideFast(const BoundingBox&) const;
  937. Intersection IsInsideFast(const Sphere&) const;
  938. void Merge(const BoundingBox&);
  939. void Merge(const Frustum&);
  940. void Merge(const Polyhedron&);
  941. void Merge(const Sphere&);
  942. void Merge(const Vector3&);
  943. Rect Projected(const Matrix4&) const;
  944. String ToString() const;
  945. void Transform(const Matrix3&);
  946. void Transform(const Matrix3x4&);
  947. BoundingBox Transformed(const Matrix3&) const;
  948. BoundingBox Transformed(const Matrix3x4&) const;
  949. // Properties:
  950. /* readonly */
  951. Vector3 center;
  952. /* readonly */
  953. Vector3 halfSize;
  954. Vector3 max;
  955. Vector3 min;
  956. /* readonly */
  957. Vector3 size;
  958. };
  959. class Button
  960. {
  961. // Methods:
  962. void AddChild(UIElement);
  963. void AddTag(const String&);
  964. void AddTags(const String&, int8 = ';');
  965. void ApplyAttributes();
  966. void BringToFront();
  967. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  968. void DisableLayoutUpdate();
  969. IntVector2 ElementToScreen(const IntVector2&);
  970. void EnableLayoutUpdate();
  971. uint FindChild(UIElement) const;
  972. Variant GetAttribute(const String&) const;
  973. ValueAnimation GetAttributeAnimation(const String&) const;
  974. float GetAttributeAnimationSpeed(const String&) const;
  975. float GetAttributeAnimationTime(const String&) const;
  976. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  977. Variant GetAttributeDefault(const String&) const;
  978. UIElement GetChild(const String&, bool = false) const;
  979. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  980. Array<UIElement> GetChildren(bool = false) const;
  981. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  982. UIElement GetElementEventSender() const;
  983. bool GetInterceptNetworkUpdate(const String&) const;
  984. uint GetNumChildren(bool) const;
  985. bool HasSubscribedToEvent(Object, const String&);
  986. bool HasSubscribedToEvent(const String&);
  987. bool HasTag(const String&) const;
  988. void InsertChild(uint, UIElement);
  989. bool IsInside(IntVector2, bool);
  990. bool IsInsideCombined(IntVector2, bool);
  991. bool Load(File, bool = false);
  992. bool Load(VectorBuffer&, bool = false);
  993. bool LoadChildXML(XMLFile, XMLFile = null);
  994. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  995. bool LoadJSON(const JSONValue&, bool = false);
  996. bool LoadXML(File);
  997. bool LoadXML(VectorBuffer&);
  998. bool LoadXML(XMLFile, XMLFile);
  999. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1000. bool LoadXML(const XMLElement&, bool = false);
  1001. void MarkNetworkUpdate() const;
  1002. void Remove();
  1003. void RemoveAllChildren();
  1004. void RemoveAllTags();
  1005. void RemoveAttributeAnimation(const String&);
  1006. void RemoveChild(UIElement, uint = 0);
  1007. void RemoveChild(uint);
  1008. void RemoveInstanceDefault();
  1009. void RemoveObjectAnimation();
  1010. bool RemoveTag(const String&);
  1011. void ResetDeepEnabled();
  1012. void ResetToDefault();
  1013. bool Save(File) const;
  1014. bool Save(VectorBuffer&) const;
  1015. bool SaveJSON(JSONValue&) const;
  1016. bool SaveXML(File, const String& = "\t");
  1017. bool SaveXML(VectorBuffer&, const String& = "\t");
  1018. bool SaveXML(XMLElement&) const;
  1019. IntVector2 ScreenToElement(const IntVector2&);
  1020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1021. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1022. void SetAnimationTime(float);
  1023. bool SetAttribute(const String&, const Variant&);
  1024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1025. void SetAttributeAnimationSpeed(const String&, float);
  1026. void SetAttributeAnimationTime(const String&, float);
  1027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1028. void SetDeepEnabled(bool);
  1029. void SetEnabledRecursive(bool);
  1030. void SetFixedHeight(int);
  1031. void SetFixedSize(int, int);
  1032. void SetFixedWidth(int);
  1033. void SetFullImageRect();
  1034. void SetHoverOffset(int, int);
  1035. void SetInterceptNetworkUpdate(const String&, bool);
  1036. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1037. void SetMaxSize(int, int);
  1038. void SetMinSize(int, int);
  1039. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1040. void SetPosition(int, int);
  1041. void SetPressedChildOffset(int, int);
  1042. void SetPressedOffset(int, int);
  1043. void SetRepeat(float, float);
  1044. void SetSize(int, int);
  1045. bool SetStyle(const String&, XMLFile = null);
  1046. bool SetStyle(const XMLElement&);
  1047. bool SetStyleAuto(XMLFile = null);
  1048. void UpdateLayout();
  1049. const Variant& GetVar(const StringHash&);
  1050. // Properties:
  1051. bool animationEnabled;
  1052. /* readonly */
  1053. Array<Variant> attributeDefaults;
  1054. /* readonly */
  1055. Array<AttributeInfo> attributeInfos;
  1056. Array<Variant> attributes;
  1057. BlendMode blendMode;
  1058. IntRect border;
  1059. bool bringToBack;
  1060. bool bringToFront;
  1061. /* readonly */
  1062. String category;
  1063. /* readonly */
  1064. IntVector2 childOffset;
  1065. /* readonly */
  1066. Array<UIElement> children;
  1067. IntRect clipBorder;
  1068. bool clipChildren;
  1069. /* writeonly */
  1070. Color color;
  1071. /* readonly */
  1072. bool colorGradient;
  1073. Array<Color> colors;
  1074. /* readonly */
  1075. IntRect combinedScreenRect;
  1076. XMLFile defaultStyle;
  1077. /* readonly */
  1078. float derivedOpacity;
  1079. /* readonly */
  1080. uint dragButtonCombo;
  1081. /* readonly */
  1082. int dragButtonCount;
  1083. uint dragDropMode;
  1084. bool editable;
  1085. bool elementEventSender;
  1086. bool enabled;
  1087. /* readonly */
  1088. bool enabledSelf;
  1089. /* readonly */
  1090. bool fixedHeight;
  1091. /* readonly */
  1092. bool fixedSize;
  1093. /* readonly */
  1094. bool fixedWidth;
  1095. bool focus;
  1096. FocusMode focusMode;
  1097. int height;
  1098. HorizontalAlignment horizontalAlignment;
  1099. IntVector2 hoverOffset;
  1100. /* readonly */
  1101. bool hovering;
  1102. IntRect imageBorder;
  1103. IntRect imageRect;
  1104. int indent;
  1105. int indentSpacing;
  1106. /* readonly */
  1107. int indentWidth;
  1108. bool internal;
  1109. IntRect layoutBorder;
  1110. Vector2 layoutFlexScale;
  1111. LayoutMode layoutMode;
  1112. int layoutSpacing;
  1113. int maxHeight;
  1114. IntVector2 maxSize;
  1115. int maxWidth;
  1116. int minHeight;
  1117. IntVector2 minSize;
  1118. int minWidth;
  1119. String name;
  1120. /* readonly */
  1121. uint numAllChildren;
  1122. /* readonly */
  1123. uint numAttributes;
  1124. /* readonly */
  1125. uint numChildren;
  1126. ObjectAnimation objectAnimation;
  1127. float opacity;
  1128. UIElement parent;
  1129. IntVector2 position;
  1130. /* readonly */
  1131. bool pressed;
  1132. IntVector2 pressedChildOffset;
  1133. IntVector2 pressedOffset;
  1134. int priority;
  1135. /* readonly */
  1136. int refs;
  1137. float repeatDelay;
  1138. float repeatRate;
  1139. /* readonly */
  1140. UIElement root;
  1141. /* readonly */
  1142. IntVector2 screenPosition;
  1143. bool selected;
  1144. IntVector2 size;
  1145. bool sortChildren;
  1146. String style;
  1147. /* readonly */
  1148. Array<String> tags;
  1149. bool temporary;
  1150. Texture texture;
  1151. bool tiled;
  1152. TraversalMode traversalMode;
  1153. /* readonly */
  1154. StringHash type;
  1155. /* readonly */
  1156. String typeName;
  1157. bool useDerivedOpacity;
  1158. /* readonly */
  1159. VariantMap vars;
  1160. VerticalAlignment verticalAlignment;
  1161. bool visible;
  1162. /* readonly */
  1163. bool visibleEffective;
  1164. /* readonly */
  1165. int weakRefs;
  1166. int width;
  1167. };
  1168. class Camera
  1169. {
  1170. // Methods:
  1171. void ApplyAttributes();
  1172. void DrawDebugGeometry(DebugRenderer, bool);
  1173. Variant GetAttribute(const String&) const;
  1174. ValueAnimation GetAttributeAnimation(const String&) const;
  1175. float GetAttributeAnimationSpeed(const String&) const;
  1176. float GetAttributeAnimationTime(const String&) const;
  1177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1178. Variant GetAttributeDefault(const String&) const;
  1179. float GetDistance(const Vector3&) const;
  1180. float GetDistanceSquared(const Vector3&) const;
  1181. bool GetInterceptNetworkUpdate(const String&) const;
  1182. Ray GetScreenRay(float, float) const;
  1183. Frustum GetSplitFrustum(float, float) const;
  1184. bool HasSubscribedToEvent(Object, const String&);
  1185. bool HasSubscribedToEvent(const String&);
  1186. bool Load(File, bool = false);
  1187. bool Load(VectorBuffer&, bool = false);
  1188. bool LoadJSON(const JSONValue&, bool = false);
  1189. bool LoadXML(const XMLElement&, bool = false);
  1190. void MarkNetworkUpdate() const;
  1191. void Remove();
  1192. void RemoveAttributeAnimation(const String&);
  1193. void RemoveInstanceDefault();
  1194. void RemoveObjectAnimation();
  1195. void ResetToDefault();
  1196. bool Save(File) const;
  1197. bool Save(VectorBuffer&) const;
  1198. bool SaveJSON(JSONValue&) const;
  1199. bool SaveXML(XMLElement&) const;
  1200. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1202. void SetAnimationTime(float);
  1203. bool SetAttribute(const String&, const Variant&);
  1204. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1205. void SetAttributeAnimationSpeed(const String&, float);
  1206. void SetAttributeAnimationTime(const String&, float);
  1207. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1208. void SetInterceptNetworkUpdate(const String&, bool);
  1209. void SetOrthoSize(const Vector2&);
  1210. Vector2 WorldToScreenPoint(const Vector3&) const;
  1211. // Properties:
  1212. bool animationEnabled;
  1213. float aspectRatio;
  1214. /* readonly */
  1215. Array<Variant> attributeDefaults;
  1216. /* readonly */
  1217. Array<AttributeInfo> attributeInfos;
  1218. Array<Variant> attributes;
  1219. bool autoAspectRatio;
  1220. /* readonly */
  1221. String category;
  1222. Plane clipPlane;
  1223. /* readonly */
  1224. Matrix3x4 effectiveWorldTransform;
  1225. bool enabled;
  1226. /* readonly */
  1227. bool enabledEffective;
  1228. float farClip;
  1229. FillMode fillMode;
  1230. float fov;
  1231. /* readonly */
  1232. Frustum frustum;
  1233. /* readonly */
  1234. float halfViewSize;
  1235. /* readonly */
  1236. uint id;
  1237. float lodBias;
  1238. float nearClip;
  1239. /* readonly */
  1240. Node node;
  1241. /* readonly */
  1242. uint numAttributes;
  1243. ObjectAnimation objectAnimation;
  1244. float orthoSize;
  1245. bool orthographic;
  1246. /* readonly */
  1247. Matrix4 projection;
  1248. Vector2 projectionOffset;
  1249. Plane reflectionPlane;
  1250. /* readonly */
  1251. int refs;
  1252. bool temporary;
  1253. /* readonly */
  1254. StringHash type;
  1255. /* readonly */
  1256. String typeName;
  1257. bool useClipping;
  1258. bool useReflection;
  1259. /* readonly */
  1260. Matrix3x4 view;
  1261. uint viewMask;
  1262. uint viewOverrideFlags;
  1263. /* readonly */
  1264. Frustum viewSpaceFrustum;
  1265. /* readonly */
  1266. int weakRefs;
  1267. float zoom;
  1268. };
  1269. class CascadeParameters
  1270. {
  1271. // Properties:
  1272. float biasAutoAdjust;
  1273. float fadeStart;
  1274. float split1;
  1275. float split2;
  1276. float split3;
  1277. float split4;
  1278. };
  1279. class CheckBox
  1280. {
  1281. // Methods:
  1282. void AddChild(UIElement);
  1283. void AddTag(const String&);
  1284. void AddTags(const String&, int8 = ';');
  1285. void ApplyAttributes();
  1286. void BringToFront();
  1287. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1288. void DisableLayoutUpdate();
  1289. IntVector2 ElementToScreen(const IntVector2&);
  1290. void EnableLayoutUpdate();
  1291. uint FindChild(UIElement) const;
  1292. Variant GetAttribute(const String&) const;
  1293. ValueAnimation GetAttributeAnimation(const String&) const;
  1294. float GetAttributeAnimationSpeed(const String&) const;
  1295. float GetAttributeAnimationTime(const String&) const;
  1296. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1297. Variant GetAttributeDefault(const String&) const;
  1298. UIElement GetChild(const String&, bool = false) const;
  1299. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1300. Array<UIElement> GetChildren(bool = false) const;
  1301. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1302. UIElement GetElementEventSender() const;
  1303. bool GetInterceptNetworkUpdate(const String&) const;
  1304. uint GetNumChildren(bool) const;
  1305. bool HasSubscribedToEvent(Object, const String&);
  1306. bool HasSubscribedToEvent(const String&);
  1307. bool HasTag(const String&) const;
  1308. void InsertChild(uint, UIElement);
  1309. bool IsInside(IntVector2, bool);
  1310. bool IsInsideCombined(IntVector2, bool);
  1311. bool Load(File, bool = false);
  1312. bool Load(VectorBuffer&, bool = false);
  1313. bool LoadChildXML(XMLFile, XMLFile = null);
  1314. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1315. bool LoadJSON(const JSONValue&, bool = false);
  1316. bool LoadXML(File);
  1317. bool LoadXML(VectorBuffer&);
  1318. bool LoadXML(XMLFile, XMLFile);
  1319. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1320. bool LoadXML(const XMLElement&, bool = false);
  1321. void MarkNetworkUpdate() const;
  1322. void Remove();
  1323. void RemoveAllChildren();
  1324. void RemoveAllTags();
  1325. void RemoveAttributeAnimation(const String&);
  1326. void RemoveChild(UIElement, uint = 0);
  1327. void RemoveChild(uint);
  1328. void RemoveInstanceDefault();
  1329. void RemoveObjectAnimation();
  1330. bool RemoveTag(const String&);
  1331. void ResetDeepEnabled();
  1332. void ResetToDefault();
  1333. bool Save(File) const;
  1334. bool Save(VectorBuffer&) const;
  1335. bool SaveJSON(JSONValue&) const;
  1336. bool SaveXML(File, const String& = "\t");
  1337. bool SaveXML(VectorBuffer&, const String& = "\t");
  1338. bool SaveXML(XMLElement&) const;
  1339. IntVector2 ScreenToElement(const IntVector2&);
  1340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1341. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1342. void SetAnimationTime(float);
  1343. bool SetAttribute(const String&, const Variant&);
  1344. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1345. void SetAttributeAnimationSpeed(const String&, float);
  1346. void SetAttributeAnimationTime(const String&, float);
  1347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1348. void SetCheckedOffset(int, int);
  1349. void SetDeepEnabled(bool);
  1350. void SetEnabledRecursive(bool);
  1351. void SetFixedHeight(int);
  1352. void SetFixedSize(int, int);
  1353. void SetFixedWidth(int);
  1354. void SetFullImageRect();
  1355. void SetHoverOffset(int, int);
  1356. void SetInterceptNetworkUpdate(const String&, bool);
  1357. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1358. void SetMaxSize(int, int);
  1359. void SetMinSize(int, int);
  1360. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1361. void SetPosition(int, int);
  1362. void SetSize(int, int);
  1363. bool SetStyle(const String&, XMLFile = null);
  1364. bool SetStyle(const XMLElement&);
  1365. bool SetStyleAuto(XMLFile = null);
  1366. void UpdateLayout();
  1367. const Variant& GetVar(const StringHash&);
  1368. // Properties:
  1369. bool animationEnabled;
  1370. /* readonly */
  1371. Array<Variant> attributeDefaults;
  1372. /* readonly */
  1373. Array<AttributeInfo> attributeInfos;
  1374. Array<Variant> attributes;
  1375. BlendMode blendMode;
  1376. IntRect border;
  1377. bool bringToBack;
  1378. bool bringToFront;
  1379. /* readonly */
  1380. String category;
  1381. bool checked;
  1382. IntVector2 checkedOffset;
  1383. /* readonly */
  1384. IntVector2 childOffset;
  1385. /* readonly */
  1386. Array<UIElement> children;
  1387. IntRect clipBorder;
  1388. bool clipChildren;
  1389. /* writeonly */
  1390. Color color;
  1391. /* readonly */
  1392. bool colorGradient;
  1393. Array<Color> colors;
  1394. /* readonly */
  1395. IntRect combinedScreenRect;
  1396. XMLFile defaultStyle;
  1397. /* readonly */
  1398. float derivedOpacity;
  1399. /* readonly */
  1400. uint dragButtonCombo;
  1401. /* readonly */
  1402. int dragButtonCount;
  1403. uint dragDropMode;
  1404. bool editable;
  1405. bool elementEventSender;
  1406. bool enabled;
  1407. /* readonly */
  1408. bool enabledSelf;
  1409. /* readonly */
  1410. bool fixedHeight;
  1411. /* readonly */
  1412. bool fixedSize;
  1413. /* readonly */
  1414. bool fixedWidth;
  1415. bool focus;
  1416. FocusMode focusMode;
  1417. int height;
  1418. HorizontalAlignment horizontalAlignment;
  1419. IntVector2 hoverOffset;
  1420. /* readonly */
  1421. bool hovering;
  1422. IntRect imageBorder;
  1423. IntRect imageRect;
  1424. int indent;
  1425. int indentSpacing;
  1426. /* readonly */
  1427. int indentWidth;
  1428. bool internal;
  1429. IntRect layoutBorder;
  1430. Vector2 layoutFlexScale;
  1431. LayoutMode layoutMode;
  1432. int layoutSpacing;
  1433. int maxHeight;
  1434. IntVector2 maxSize;
  1435. int maxWidth;
  1436. int minHeight;
  1437. IntVector2 minSize;
  1438. int minWidth;
  1439. String name;
  1440. /* readonly */
  1441. uint numAllChildren;
  1442. /* readonly */
  1443. uint numAttributes;
  1444. /* readonly */
  1445. uint numChildren;
  1446. ObjectAnimation objectAnimation;
  1447. float opacity;
  1448. UIElement parent;
  1449. IntVector2 position;
  1450. int priority;
  1451. /* readonly */
  1452. int refs;
  1453. /* readonly */
  1454. UIElement root;
  1455. /* readonly */
  1456. IntVector2 screenPosition;
  1457. bool selected;
  1458. IntVector2 size;
  1459. bool sortChildren;
  1460. String style;
  1461. /* readonly */
  1462. Array<String> tags;
  1463. bool temporary;
  1464. Texture texture;
  1465. bool tiled;
  1466. TraversalMode traversalMode;
  1467. /* readonly */
  1468. StringHash type;
  1469. /* readonly */
  1470. String typeName;
  1471. bool useDerivedOpacity;
  1472. /* readonly */
  1473. VariantMap vars;
  1474. VerticalAlignment verticalAlignment;
  1475. bool visible;
  1476. /* readonly */
  1477. bool visibleEffective;
  1478. /* readonly */
  1479. int weakRefs;
  1480. int width;
  1481. };
  1482. class CollisionBox2D
  1483. {
  1484. // Methods:
  1485. void ApplyAttributes();
  1486. void DrawDebugGeometry(DebugRenderer, bool);
  1487. Variant GetAttribute(const String&) const;
  1488. ValueAnimation GetAttributeAnimation(const String&) const;
  1489. float GetAttributeAnimationSpeed(const String&) const;
  1490. float GetAttributeAnimationTime(const String&) const;
  1491. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1492. Variant GetAttributeDefault(const String&) const;
  1493. bool GetInterceptNetworkUpdate(const String&) const;
  1494. bool HasSubscribedToEvent(Object, const String&);
  1495. bool HasSubscribedToEvent(const String&);
  1496. bool Load(File, bool = false);
  1497. bool Load(VectorBuffer&, bool = false);
  1498. bool LoadJSON(const JSONValue&, bool = false);
  1499. bool LoadXML(const XMLElement&, bool = false);
  1500. void MarkNetworkUpdate() const;
  1501. void Remove();
  1502. void RemoveAttributeAnimation(const String&);
  1503. void RemoveInstanceDefault();
  1504. void RemoveObjectAnimation();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool SaveJSON(JSONValue&) const;
  1509. bool SaveXML(XMLElement&) const;
  1510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1511. void SetAnimationTime(float);
  1512. bool SetAttribute(const String&, const Variant&);
  1513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1514. void SetAttributeAnimationSpeed(const String&, float);
  1515. void SetAttributeAnimationTime(const String&, float);
  1516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1517. void SetCenter(float, float);
  1518. void SetInterceptNetworkUpdate(const String&, bool);
  1519. void SetSize(float, float);
  1520. // Properties:
  1521. float angle;
  1522. bool animationEnabled;
  1523. /* readonly */
  1524. Array<Variant> attributeDefaults;
  1525. /* readonly */
  1526. Array<AttributeInfo> attributeInfos;
  1527. Array<Variant> attributes;
  1528. /* readonly */
  1529. String category;
  1530. int categoryBits;
  1531. Vector2 center;
  1532. float density;
  1533. bool enabled;
  1534. /* readonly */
  1535. bool enabledEffective;
  1536. float friction;
  1537. int groupIndex;
  1538. /* readonly */
  1539. uint id;
  1540. /* readonly */
  1541. float inertia;
  1542. int maskBits;
  1543. /* readonly */
  1544. float mass;
  1545. /* readonly */
  1546. Vector2 massCenter;
  1547. /* readonly */
  1548. Node node;
  1549. /* readonly */
  1550. uint numAttributes;
  1551. ObjectAnimation objectAnimation;
  1552. /* readonly */
  1553. int refs;
  1554. float restitution;
  1555. Vector2 size;
  1556. bool temporary;
  1557. bool trigger;
  1558. /* readonly */
  1559. StringHash type;
  1560. /* readonly */
  1561. String typeName;
  1562. /* readonly */
  1563. int weakRefs;
  1564. };
  1565. class CollisionChain2D
  1566. {
  1567. // Methods:
  1568. void ApplyAttributes();
  1569. void DrawDebugGeometry(DebugRenderer, bool);
  1570. Variant GetAttribute(const String&) const;
  1571. ValueAnimation GetAttributeAnimation(const String&) const;
  1572. float GetAttributeAnimationSpeed(const String&) const;
  1573. float GetAttributeAnimationTime(const String&) const;
  1574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1575. Variant GetAttributeDefault(const String&) const;
  1576. bool GetInterceptNetworkUpdate(const String&) const;
  1577. Array<Vector2> GetVertices() const;
  1578. bool HasSubscribedToEvent(Object, const String&);
  1579. bool HasSubscribedToEvent(const String&);
  1580. bool Load(File, bool = false);
  1581. bool Load(VectorBuffer&, bool = false);
  1582. bool LoadJSON(const JSONValue&, bool = false);
  1583. bool LoadXML(const XMLElement&, bool = false);
  1584. void MarkNetworkUpdate() const;
  1585. void Remove();
  1586. void RemoveAttributeAnimation(const String&);
  1587. void RemoveInstanceDefault();
  1588. void RemoveObjectAnimation();
  1589. void ResetToDefault();
  1590. bool Save(File) const;
  1591. bool Save(VectorBuffer&) const;
  1592. bool SaveJSON(JSONValue&) const;
  1593. bool SaveXML(XMLElement&) const;
  1594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1595. void SetAnimationTime(float);
  1596. bool SetAttribute(const String&, const Variant&);
  1597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1598. void SetAttributeAnimationSpeed(const String&, float);
  1599. void SetAttributeAnimationTime(const String&, float);
  1600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1601. void SetInterceptNetworkUpdate(const String&, bool);
  1602. void SetVertex(uint, const Vector2&);
  1603. void SetVertices(Array<Vector2>);
  1604. const Vector2& GetVertex(uint) const;
  1605. // Properties:
  1606. bool animationEnabled;
  1607. /* readonly */
  1608. Array<Variant> attributeDefaults;
  1609. /* readonly */
  1610. Array<AttributeInfo> attributeInfos;
  1611. Array<Variant> attributes;
  1612. /* readonly */
  1613. String category;
  1614. int categoryBits;
  1615. float density;
  1616. bool enabled;
  1617. /* readonly */
  1618. bool enabledEffective;
  1619. float friction;
  1620. int groupIndex;
  1621. /* readonly */
  1622. uint id;
  1623. /* readonly */
  1624. float inertia;
  1625. bool loop;
  1626. int maskBits;
  1627. /* readonly */
  1628. float mass;
  1629. /* readonly */
  1630. Vector2 massCenter;
  1631. /* readonly */
  1632. Node node;
  1633. /* readonly */
  1634. uint numAttributes;
  1635. ObjectAnimation objectAnimation;
  1636. /* readonly */
  1637. int refs;
  1638. float restitution;
  1639. bool temporary;
  1640. bool trigger;
  1641. /* readonly */
  1642. StringHash type;
  1643. /* readonly */
  1644. String typeName;
  1645. uint vertexCount;
  1646. /* readonly */
  1647. int weakRefs;
  1648. };
  1649. class CollisionCircle2D
  1650. {
  1651. // Methods:
  1652. void ApplyAttributes();
  1653. void DrawDebugGeometry(DebugRenderer, bool);
  1654. Variant GetAttribute(const String&) const;
  1655. ValueAnimation GetAttributeAnimation(const String&) const;
  1656. float GetAttributeAnimationSpeed(const String&) const;
  1657. float GetAttributeAnimationTime(const String&) const;
  1658. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1659. Variant GetAttributeDefault(const String&) const;
  1660. bool GetInterceptNetworkUpdate(const String&) const;
  1661. bool HasSubscribedToEvent(Object, const String&);
  1662. bool HasSubscribedToEvent(const String&);
  1663. bool Load(File, bool = false);
  1664. bool Load(VectorBuffer&, bool = false);
  1665. bool LoadJSON(const JSONValue&, bool = false);
  1666. bool LoadXML(const XMLElement&, bool = false);
  1667. void MarkNetworkUpdate() const;
  1668. void Remove();
  1669. void RemoveAttributeAnimation(const String&);
  1670. void RemoveInstanceDefault();
  1671. void RemoveObjectAnimation();
  1672. void ResetToDefault();
  1673. bool Save(File) const;
  1674. bool Save(VectorBuffer&) const;
  1675. bool SaveJSON(JSONValue&) const;
  1676. bool SaveXML(XMLElement&) const;
  1677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1678. void SetAnimationTime(float);
  1679. bool SetAttribute(const String&, const Variant&);
  1680. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1681. void SetAttributeAnimationSpeed(const String&, float);
  1682. void SetAttributeAnimationTime(const String&, float);
  1683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1684. void SetCenter(float, float);
  1685. void SetInterceptNetworkUpdate(const String&, bool);
  1686. // Properties:
  1687. bool animationEnabled;
  1688. /* readonly */
  1689. Array<Variant> attributeDefaults;
  1690. /* readonly */
  1691. Array<AttributeInfo> attributeInfos;
  1692. Array<Variant> attributes;
  1693. /* readonly */
  1694. String category;
  1695. int categoryBits;
  1696. Vector2 center;
  1697. float density;
  1698. bool enabled;
  1699. /* readonly */
  1700. bool enabledEffective;
  1701. float friction;
  1702. int groupIndex;
  1703. /* readonly */
  1704. uint id;
  1705. /* readonly */
  1706. float inertia;
  1707. int maskBits;
  1708. /* readonly */
  1709. float mass;
  1710. /* readonly */
  1711. Vector2 massCenter;
  1712. /* readonly */
  1713. Node node;
  1714. /* readonly */
  1715. uint numAttributes;
  1716. ObjectAnimation objectAnimation;
  1717. float radius;
  1718. /* readonly */
  1719. int refs;
  1720. float restitution;
  1721. bool temporary;
  1722. bool trigger;
  1723. /* readonly */
  1724. StringHash type;
  1725. /* readonly */
  1726. String typeName;
  1727. /* readonly */
  1728. int weakRefs;
  1729. };
  1730. class CollisionEdge2D
  1731. {
  1732. // Methods:
  1733. void ApplyAttributes();
  1734. void DrawDebugGeometry(DebugRenderer, bool);
  1735. Variant GetAttribute(const String&) const;
  1736. ValueAnimation GetAttributeAnimation(const String&) const;
  1737. float GetAttributeAnimationSpeed(const String&) const;
  1738. float GetAttributeAnimationTime(const String&) const;
  1739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1740. Variant GetAttributeDefault(const String&) const;
  1741. bool GetInterceptNetworkUpdate(const String&) const;
  1742. bool HasSubscribedToEvent(Object, const String&);
  1743. bool HasSubscribedToEvent(const String&);
  1744. bool Load(File, bool = false);
  1745. bool Load(VectorBuffer&, bool = false);
  1746. bool LoadJSON(const JSONValue&, bool = false);
  1747. bool LoadXML(const XMLElement&, bool = false);
  1748. void MarkNetworkUpdate() const;
  1749. void Remove();
  1750. void RemoveAttributeAnimation(const String&);
  1751. void RemoveInstanceDefault();
  1752. void RemoveObjectAnimation();
  1753. void ResetToDefault();
  1754. bool Save(File) const;
  1755. bool Save(VectorBuffer&) const;
  1756. bool SaveJSON(JSONValue&) const;
  1757. bool SaveXML(XMLElement&) const;
  1758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1759. void SetAnimationTime(float);
  1760. bool SetAttribute(const String&, const Variant&);
  1761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1762. void SetAttributeAnimationSpeed(const String&, float);
  1763. void SetAttributeAnimationTime(const String&, float);
  1764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1765. void SetInterceptNetworkUpdate(const String&, bool);
  1766. void SetVertices(const Vector2&, const Vector2&);
  1767. // Properties:
  1768. bool animationEnabled;
  1769. /* readonly */
  1770. Array<Variant> attributeDefaults;
  1771. /* readonly */
  1772. Array<AttributeInfo> attributeInfos;
  1773. Array<Variant> attributes;
  1774. /* readonly */
  1775. String category;
  1776. int categoryBits;
  1777. float density;
  1778. bool enabled;
  1779. /* readonly */
  1780. bool enabledEffective;
  1781. float friction;
  1782. int groupIndex;
  1783. /* readonly */
  1784. uint id;
  1785. /* readonly */
  1786. float inertia;
  1787. int maskBits;
  1788. /* readonly */
  1789. float mass;
  1790. /* readonly */
  1791. Vector2 massCenter;
  1792. /* readonly */
  1793. Node node;
  1794. /* readonly */
  1795. uint numAttributes;
  1796. ObjectAnimation objectAnimation;
  1797. /* readonly */
  1798. int refs;
  1799. float restitution;
  1800. bool temporary;
  1801. bool trigger;
  1802. /* readonly */
  1803. StringHash type;
  1804. /* readonly */
  1805. String typeName;
  1806. Vector2 vertex1;
  1807. Vector2 vertex2;
  1808. /* readonly */
  1809. int weakRefs;
  1810. };
  1811. class CollisionPolygon2D
  1812. {
  1813. // Methods:
  1814. void ApplyAttributes();
  1815. void DrawDebugGeometry(DebugRenderer, bool);
  1816. Variant GetAttribute(const String&) const;
  1817. ValueAnimation GetAttributeAnimation(const String&) const;
  1818. float GetAttributeAnimationSpeed(const String&) const;
  1819. float GetAttributeAnimationTime(const String&) const;
  1820. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1821. Variant GetAttributeDefault(const String&) const;
  1822. bool GetInterceptNetworkUpdate(const String&) const;
  1823. Array<Vector2> GetVertices() const;
  1824. bool HasSubscribedToEvent(Object, const String&);
  1825. bool HasSubscribedToEvent(const String&);
  1826. bool Load(File, bool = false);
  1827. bool Load(VectorBuffer&, bool = false);
  1828. bool LoadJSON(const JSONValue&, bool = false);
  1829. bool LoadXML(const XMLElement&, bool = false);
  1830. void MarkNetworkUpdate() const;
  1831. void Remove();
  1832. void RemoveAttributeAnimation(const String&);
  1833. void RemoveInstanceDefault();
  1834. void RemoveObjectAnimation();
  1835. void ResetToDefault();
  1836. bool Save(File) const;
  1837. bool Save(VectorBuffer&) const;
  1838. bool SaveJSON(JSONValue&) const;
  1839. bool SaveXML(XMLElement&) const;
  1840. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1841. void SetAnimationTime(float);
  1842. bool SetAttribute(const String&, const Variant&);
  1843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1844. void SetAttributeAnimationSpeed(const String&, float);
  1845. void SetAttributeAnimationTime(const String&, float);
  1846. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1847. void SetInterceptNetworkUpdate(const String&, bool);
  1848. void SetVertex(uint, const Vector2&);
  1849. void SetVertices(Array<Vector2>);
  1850. const Vector2& GetVertex(uint) const;
  1851. // Properties:
  1852. bool animationEnabled;
  1853. /* readonly */
  1854. Array<Variant> attributeDefaults;
  1855. /* readonly */
  1856. Array<AttributeInfo> attributeInfos;
  1857. Array<Variant> attributes;
  1858. /* readonly */
  1859. String category;
  1860. int categoryBits;
  1861. float density;
  1862. bool enabled;
  1863. /* readonly */
  1864. bool enabledEffective;
  1865. float friction;
  1866. int groupIndex;
  1867. /* readonly */
  1868. uint id;
  1869. /* readonly */
  1870. float inertia;
  1871. int maskBits;
  1872. /* readonly */
  1873. float mass;
  1874. /* readonly */
  1875. Vector2 massCenter;
  1876. /* readonly */
  1877. Node node;
  1878. /* readonly */
  1879. uint numAttributes;
  1880. ObjectAnimation objectAnimation;
  1881. /* readonly */
  1882. int refs;
  1883. float restitution;
  1884. bool temporary;
  1885. bool trigger;
  1886. /* readonly */
  1887. StringHash type;
  1888. /* readonly */
  1889. String typeName;
  1890. uint vertexCount;
  1891. /* readonly */
  1892. int weakRefs;
  1893. };
  1894. class CollisionShape
  1895. {
  1896. // Methods:
  1897. void ApplyAttributes();
  1898. void DrawDebugGeometry(DebugRenderer, bool);
  1899. Variant GetAttribute(const String&) const;
  1900. ValueAnimation GetAttributeAnimation(const String&) const;
  1901. float GetAttributeAnimationSpeed(const String&) const;
  1902. float GetAttributeAnimationTime(const String&) const;
  1903. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1904. Variant GetAttributeDefault(const String&) const;
  1905. bool GetInterceptNetworkUpdate(const String&) const;
  1906. bool HasSubscribedToEvent(Object, const String&);
  1907. bool HasSubscribedToEvent(const String&);
  1908. bool Load(File, bool = false);
  1909. bool Load(VectorBuffer&, bool = false);
  1910. bool LoadJSON(const JSONValue&, bool = false);
  1911. bool LoadXML(const XMLElement&, bool = false);
  1912. void MarkNetworkUpdate() const;
  1913. void Remove();
  1914. void RemoveAttributeAnimation(const String&);
  1915. void RemoveInstanceDefault();
  1916. void RemoveObjectAnimation();
  1917. void ResetToDefault();
  1918. bool Save(File) const;
  1919. bool Save(VectorBuffer&) const;
  1920. bool SaveJSON(JSONValue&) const;
  1921. bool SaveXML(XMLElement&) const;
  1922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1923. void SetAnimationTime(float);
  1924. bool SetAttribute(const String&, const Variant&);
  1925. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1926. void SetAttributeAnimationSpeed(const String&, float);
  1927. void SetAttributeAnimationTime(const String&, float);
  1928. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1929. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetInterceptNetworkUpdate(const String&, bool);
  1937. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1938. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1939. void SetTerrain(uint = 0);
  1940. void SetTransform(const Vector3&, const Quaternion&);
  1941. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1942. // Properties:
  1943. bool animationEnabled;
  1944. /* readonly */
  1945. Array<Variant> attributeDefaults;
  1946. /* readonly */
  1947. Array<AttributeInfo> attributeInfos;
  1948. Array<Variant> attributes;
  1949. /* readonly */
  1950. String category;
  1951. bool enabled;
  1952. /* readonly */
  1953. bool enabledEffective;
  1954. /* readonly */
  1955. uint id;
  1956. uint lodLevel;
  1957. float margin;
  1958. Model model;
  1959. /* readonly */
  1960. Node node;
  1961. /* readonly */
  1962. uint numAttributes;
  1963. ObjectAnimation objectAnimation;
  1964. Vector3 position;
  1965. /* readonly */
  1966. int refs;
  1967. Quaternion rotation;
  1968. ShapeType shapeType;
  1969. Vector3 size;
  1970. bool temporary;
  1971. /* readonly */
  1972. StringHash type;
  1973. /* readonly */
  1974. String typeName;
  1975. /* readonly */
  1976. int weakRefs;
  1977. /* readonly */
  1978. BoundingBox worldBoundingBox;
  1979. };
  1980. class CollisionShape2D
  1981. {
  1982. // Methods:
  1983. void ApplyAttributes();
  1984. void DrawDebugGeometry(DebugRenderer, bool);
  1985. Variant GetAttribute(const String&) const;
  1986. ValueAnimation GetAttributeAnimation(const String&) const;
  1987. float GetAttributeAnimationSpeed(const String&) const;
  1988. float GetAttributeAnimationTime(const String&) const;
  1989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1990. Variant GetAttributeDefault(const String&) const;
  1991. bool GetInterceptNetworkUpdate(const String&) const;
  1992. bool HasSubscribedToEvent(Object, const String&);
  1993. bool HasSubscribedToEvent(const String&);
  1994. bool Load(File, bool = false);
  1995. bool Load(VectorBuffer&, bool = false);
  1996. bool LoadJSON(const JSONValue&, bool = false);
  1997. bool LoadXML(const XMLElement&, bool = false);
  1998. void MarkNetworkUpdate() const;
  1999. void Remove();
  2000. void RemoveAttributeAnimation(const String&);
  2001. void RemoveInstanceDefault();
  2002. void RemoveObjectAnimation();
  2003. void ResetToDefault();
  2004. bool Save(File) const;
  2005. bool Save(VectorBuffer&) const;
  2006. bool SaveJSON(JSONValue&) const;
  2007. bool SaveXML(XMLElement&) const;
  2008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2009. void SetAnimationTime(float);
  2010. bool SetAttribute(const String&, const Variant&);
  2011. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2012. void SetAttributeAnimationSpeed(const String&, float);
  2013. void SetAttributeAnimationTime(const String&, float);
  2014. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2015. void SetInterceptNetworkUpdate(const String&, bool);
  2016. // Properties:
  2017. bool animationEnabled;
  2018. /* readonly */
  2019. Array<Variant> attributeDefaults;
  2020. /* readonly */
  2021. Array<AttributeInfo> attributeInfos;
  2022. Array<Variant> attributes;
  2023. /* readonly */
  2024. String category;
  2025. int categoryBits;
  2026. float density;
  2027. bool enabled;
  2028. /* readonly */
  2029. bool enabledEffective;
  2030. float friction;
  2031. int groupIndex;
  2032. /* readonly */
  2033. uint id;
  2034. /* readonly */
  2035. float inertia;
  2036. int maskBits;
  2037. /* readonly */
  2038. float mass;
  2039. /* readonly */
  2040. Vector2 massCenter;
  2041. /* readonly */
  2042. Node node;
  2043. /* readonly */
  2044. uint numAttributes;
  2045. ObjectAnimation objectAnimation;
  2046. /* readonly */
  2047. int refs;
  2048. float restitution;
  2049. bool temporary;
  2050. bool trigger;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. /* readonly */
  2056. int weakRefs;
  2057. };
  2058. class Color
  2059. {
  2060. // Methods:
  2061. Color Abs() const;
  2062. float Average() const;
  2063. float Chroma() const;
  2064. void Clip(bool);
  2065. bool Equals() const;
  2066. void FromHSL(float, float, float, float);
  2067. void FromHSV(float, float, float, float);
  2068. float Hue() const;
  2069. void Invert(bool);
  2070. Color Lerp(const Color&, float) const;
  2071. float Lightness() const;
  2072. float Luma() const;
  2073. float MaxRGB() const;
  2074. float MinRGB() const;
  2075. float Range() const;
  2076. float SaturationHSL() const;
  2077. float SaturationHSV() const;
  2078. float SumRGB() const;
  2079. Vector3 ToHSL() const;
  2080. Vector3 ToHSV() const;
  2081. String ToString() const;
  2082. uint ToUInt() const;
  2083. float Value() const;
  2084. // Properties:
  2085. float a;
  2086. float b;
  2087. /* readonly */
  2088. Array<float> data;
  2089. float g;
  2090. float r;
  2091. /* readonly */
  2092. Vector3 rgb;
  2093. /* readonly */
  2094. Vector4 rgba;
  2095. };
  2096. class ColorFrame
  2097. {
  2098. // Properties:
  2099. Color color;
  2100. float time;
  2101. };
  2102. class Component
  2103. {
  2104. // Methods:
  2105. void ApplyAttributes();
  2106. void DrawDebugGeometry(DebugRenderer, bool);
  2107. Variant GetAttribute(const String&) const;
  2108. ValueAnimation GetAttributeAnimation(const String&) const;
  2109. float GetAttributeAnimationSpeed(const String&) const;
  2110. float GetAttributeAnimationTime(const String&) const;
  2111. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2112. Variant GetAttributeDefault(const String&) const;
  2113. bool GetInterceptNetworkUpdate(const String&) const;
  2114. bool HasSubscribedToEvent(Object, const String&);
  2115. bool HasSubscribedToEvent(const String&);
  2116. bool Load(File, bool = false);
  2117. bool Load(VectorBuffer&, bool = false);
  2118. bool LoadJSON(const JSONValue&, bool = false);
  2119. bool LoadXML(const XMLElement&, bool = false);
  2120. void MarkNetworkUpdate() const;
  2121. void Remove();
  2122. void RemoveAttributeAnimation(const String&);
  2123. void RemoveInstanceDefault();
  2124. void RemoveObjectAnimation();
  2125. void ResetToDefault();
  2126. bool Save(File) const;
  2127. bool Save(VectorBuffer&) const;
  2128. bool SaveJSON(JSONValue&) const;
  2129. bool SaveXML(XMLElement&) const;
  2130. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2131. void SetAnimationTime(float);
  2132. bool SetAttribute(const String&, const Variant&);
  2133. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2134. void SetAttributeAnimationSpeed(const String&, float);
  2135. void SetAttributeAnimationTime(const String&, float);
  2136. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2137. void SetInterceptNetworkUpdate(const String&, bool);
  2138. // Properties:
  2139. bool animationEnabled;
  2140. /* readonly */
  2141. Array<Variant> attributeDefaults;
  2142. /* readonly */
  2143. Array<AttributeInfo> attributeInfos;
  2144. Array<Variant> attributes;
  2145. /* readonly */
  2146. String category;
  2147. bool enabled;
  2148. /* readonly */
  2149. bool enabledEffective;
  2150. /* readonly */
  2151. uint id;
  2152. /* readonly */
  2153. Node node;
  2154. /* readonly */
  2155. uint numAttributes;
  2156. ObjectAnimation objectAnimation;
  2157. /* readonly */
  2158. int refs;
  2159. bool temporary;
  2160. /* readonly */
  2161. StringHash type;
  2162. /* readonly */
  2163. String typeName;
  2164. /* readonly */
  2165. int weakRefs;
  2166. };
  2167. class Connection
  2168. {
  2169. // Methods:
  2170. void Disconnect(int = 0);
  2171. bool HasSubscribedToEvent(Object, const String&);
  2172. bool HasSubscribedToEvent(const String&);
  2173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2174. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2175. void SendPackageToClient(PackageFile);
  2176. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2177. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2178. String ToString() const;
  2179. // Properties:
  2180. /* readonly */
  2181. String address;
  2182. /* readonly */
  2183. float bytesInPerSec;
  2184. /* readonly */
  2185. float bytesOutPerSec;
  2186. /* readonly */
  2187. String category;
  2188. /* readonly */
  2189. bool client;
  2190. /* readonly */
  2191. bool connectPending;
  2192. /* readonly */
  2193. bool connected;
  2194. Controls controls;
  2195. /* readonly */
  2196. String downloadName;
  2197. /* readonly */
  2198. float downloadProgress;
  2199. VariantMap identity;
  2200. /* readonly */
  2201. float lastHeardTime;
  2202. bool logStatistics;
  2203. /* readonly */
  2204. uint numDownloads;
  2205. /* readonly */
  2206. float packetsInPerSec;
  2207. /* readonly */
  2208. float packetsOutPerSec;
  2209. /* readonly */
  2210. uint16 port;
  2211. Vector3 position;
  2212. /* readonly */
  2213. int refs;
  2214. Quaternion rotation;
  2215. /* readonly */
  2216. float roundTripTime;
  2217. Scene scene;
  2218. /* readonly */
  2219. bool sceneLoaded;
  2220. uint8 timeStamp;
  2221. /* readonly */
  2222. StringHash type;
  2223. /* readonly */
  2224. String typeName;
  2225. /* readonly */
  2226. int weakRefs;
  2227. };
  2228. class Console
  2229. {
  2230. // Methods:
  2231. void CopySelectedRows() const;
  2232. bool HasSubscribedToEvent(Object, const String&);
  2233. bool HasSubscribedToEvent(const String&);
  2234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2235. void Toggle();
  2236. void UpdateElements();
  2237. // Properties:
  2238. bool autoVisibleOnError;
  2239. /* readonly */
  2240. BorderImage background;
  2241. /* readonly */
  2242. String category;
  2243. /* readonly */
  2244. Button closeButton;
  2245. String commandInterpreter;
  2246. XMLFile defaultStyle;
  2247. bool focusOnShow;
  2248. /* readonly */
  2249. uint historyPosition;
  2250. /* readonly */
  2251. Array<String> historyRow;
  2252. /* readonly */
  2253. LineEdit lineEdit;
  2254. uint numBufferedRows;
  2255. uint numHistoryRows;
  2256. uint numRows;
  2257. /* readonly */
  2258. int refs;
  2259. /* readonly */
  2260. StringHash type;
  2261. /* readonly */
  2262. String typeName;
  2263. bool visible;
  2264. /* readonly */
  2265. int weakRefs;
  2266. };
  2267. class Constraint
  2268. {
  2269. // Methods:
  2270. void ApplyAttributes();
  2271. void DrawDebugGeometry(DebugRenderer, bool);
  2272. Variant GetAttribute(const String&) const;
  2273. ValueAnimation GetAttributeAnimation(const String&) const;
  2274. float GetAttributeAnimationSpeed(const String&) const;
  2275. float GetAttributeAnimationTime(const String&) const;
  2276. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2277. Variant GetAttributeDefault(const String&) const;
  2278. bool GetInterceptNetworkUpdate(const String&) const;
  2279. bool HasSubscribedToEvent(Object, const String&);
  2280. bool HasSubscribedToEvent(const String&);
  2281. bool Load(File, bool = false);
  2282. bool Load(VectorBuffer&, bool = false);
  2283. bool LoadJSON(const JSONValue&, bool = false);
  2284. bool LoadXML(const XMLElement&, bool = false);
  2285. void MarkNetworkUpdate() const;
  2286. void Remove();
  2287. void RemoveAttributeAnimation(const String&);
  2288. void RemoveInstanceDefault();
  2289. void RemoveObjectAnimation();
  2290. void ResetToDefault();
  2291. bool Save(File) const;
  2292. bool Save(VectorBuffer&) const;
  2293. bool SaveJSON(JSONValue&) const;
  2294. bool SaveXML(XMLElement&) const;
  2295. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2296. void SetAnimationTime(float);
  2297. bool SetAttribute(const String&, const Variant&);
  2298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2299. void SetAttributeAnimationSpeed(const String&, float);
  2300. void SetAttributeAnimationTime(const String&, float);
  2301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2302. void SetInterceptNetworkUpdate(const String&, bool);
  2303. // Properties:
  2304. bool animationEnabled;
  2305. /* readonly */
  2306. Array<Variant> attributeDefaults;
  2307. /* readonly */
  2308. Array<AttributeInfo> attributeInfos;
  2309. Array<Variant> attributes;
  2310. /* writeonly */
  2311. Vector3 axis;
  2312. /* readonly */
  2313. String category;
  2314. float cfm;
  2315. ConstraintType constraintType;
  2316. bool disableCollision;
  2317. bool enabled;
  2318. /* readonly */
  2319. bool enabledEffective;
  2320. float erp;
  2321. Vector2 highLimit;
  2322. /* readonly */
  2323. uint id;
  2324. Vector2 lowLimit;
  2325. /* readonly */
  2326. Node node;
  2327. /* readonly */
  2328. uint numAttributes;
  2329. ObjectAnimation objectAnimation;
  2330. /* writeonly */
  2331. Vector3 otherAxis;
  2332. RigidBody otherBody;
  2333. Vector3 otherPosition;
  2334. Quaternion otherRotation;
  2335. /* readonly */
  2336. RigidBody ownBody;
  2337. Vector3 position;
  2338. /* readonly */
  2339. int refs;
  2340. Quaternion rotation;
  2341. bool temporary;
  2342. /* readonly */
  2343. StringHash type;
  2344. /* readonly */
  2345. String typeName;
  2346. /* readonly */
  2347. int weakRefs;
  2348. Vector3 worldPosition;
  2349. };
  2350. class Constraint2D
  2351. {
  2352. // Methods:
  2353. void ApplyAttributes();
  2354. void DrawDebugGeometry(DebugRenderer, bool);
  2355. Variant GetAttribute(const String&) const;
  2356. ValueAnimation GetAttributeAnimation(const String&) const;
  2357. float GetAttributeAnimationSpeed(const String&) const;
  2358. float GetAttributeAnimationTime(const String&) const;
  2359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2360. Variant GetAttributeDefault(const String&) const;
  2361. bool GetInterceptNetworkUpdate(const String&) const;
  2362. bool HasSubscribedToEvent(Object, const String&);
  2363. bool HasSubscribedToEvent(const String&);
  2364. bool Load(File, bool = false);
  2365. bool Load(VectorBuffer&, bool = false);
  2366. bool LoadJSON(const JSONValue&, bool = false);
  2367. bool LoadXML(const XMLElement&, bool = false);
  2368. void MarkNetworkUpdate() const;
  2369. void Remove();
  2370. void RemoveAttributeAnimation(const String&);
  2371. void RemoveInstanceDefault();
  2372. void RemoveObjectAnimation();
  2373. void ResetToDefault();
  2374. bool Save(File) const;
  2375. bool Save(VectorBuffer&) const;
  2376. bool SaveJSON(JSONValue&) const;
  2377. bool SaveXML(XMLElement&) const;
  2378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2379. void SetAnimationTime(float);
  2380. bool SetAttribute(const String&, const Variant&);
  2381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2382. void SetAttributeAnimationSpeed(const String&, float);
  2383. void SetAttributeAnimationTime(const String&, float);
  2384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2385. void SetInterceptNetworkUpdate(const String&, bool);
  2386. // Properties:
  2387. bool animationEnabled;
  2388. /* readonly */
  2389. Array<Variant> attributeDefaults;
  2390. /* readonly */
  2391. Array<AttributeInfo> attributeInfos;
  2392. Array<Variant> attributes;
  2393. /* readonly */
  2394. String category;
  2395. bool collideConnected;
  2396. bool enabled;
  2397. /* readonly */
  2398. bool enabledEffective;
  2399. /* readonly */
  2400. uint id;
  2401. /* readonly */
  2402. Node node;
  2403. /* readonly */
  2404. uint numAttributes;
  2405. ObjectAnimation objectAnimation;
  2406. RigidBody2D otherBody;
  2407. /* readonly */
  2408. RigidBody2D ownerBody;
  2409. /* readonly */
  2410. int refs;
  2411. bool temporary;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. /* readonly */
  2417. int weakRefs;
  2418. };
  2419. class ConstraintDistance2D
  2420. {
  2421. // Methods:
  2422. void ApplyAttributes();
  2423. void DrawDebugGeometry(DebugRenderer, bool);
  2424. Variant GetAttribute(const String&) const;
  2425. ValueAnimation GetAttributeAnimation(const String&) const;
  2426. float GetAttributeAnimationSpeed(const String&) const;
  2427. float GetAttributeAnimationTime(const String&) const;
  2428. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2429. Variant GetAttributeDefault(const String&) const;
  2430. bool GetInterceptNetworkUpdate(const String&) const;
  2431. bool HasSubscribedToEvent(Object, const String&);
  2432. bool HasSubscribedToEvent(const String&);
  2433. bool Load(File, bool = false);
  2434. bool Load(VectorBuffer&, bool = false);
  2435. bool LoadJSON(const JSONValue&, bool = false);
  2436. bool LoadXML(const XMLElement&, bool = false);
  2437. void MarkNetworkUpdate() const;
  2438. void Remove();
  2439. void RemoveAttributeAnimation(const String&);
  2440. void RemoveInstanceDefault();
  2441. void RemoveObjectAnimation();
  2442. void ResetToDefault();
  2443. bool Save(File) const;
  2444. bool Save(VectorBuffer&) const;
  2445. bool SaveJSON(JSONValue&) const;
  2446. bool SaveXML(XMLElement&) const;
  2447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2448. void SetAnimationTime(float);
  2449. bool SetAttribute(const String&, const Variant&);
  2450. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2451. void SetAttributeAnimationSpeed(const String&, float);
  2452. void SetAttributeAnimationTime(const String&, float);
  2453. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2454. void SetInterceptNetworkUpdate(const String&, bool);
  2455. // Properties:
  2456. bool animationEnabled;
  2457. /* readonly */
  2458. Array<Variant> attributeDefaults;
  2459. /* readonly */
  2460. Array<AttributeInfo> attributeInfos;
  2461. Array<Variant> attributes;
  2462. /* readonly */
  2463. String category;
  2464. bool collideConnected;
  2465. float dampingRatio;
  2466. bool enabled;
  2467. /* readonly */
  2468. bool enabledEffective;
  2469. float frequencyHz;
  2470. /* readonly */
  2471. uint id;
  2472. /* readonly */
  2473. Node node;
  2474. /* readonly */
  2475. uint numAttributes;
  2476. ObjectAnimation objectAnimation;
  2477. RigidBody2D otherBody;
  2478. Vector2 otherBodyAnchor;
  2479. /* readonly */
  2480. RigidBody2D ownerBody;
  2481. Vector2 ownerBodyAnchor;
  2482. /* readonly */
  2483. int refs;
  2484. bool temporary;
  2485. /* readonly */
  2486. StringHash type;
  2487. /* readonly */
  2488. String typeName;
  2489. /* readonly */
  2490. int weakRefs;
  2491. };
  2492. class ConstraintFriction2D
  2493. {
  2494. // Methods:
  2495. void ApplyAttributes();
  2496. void DrawDebugGeometry(DebugRenderer, bool);
  2497. Variant GetAttribute(const String&) const;
  2498. ValueAnimation GetAttributeAnimation(const String&) const;
  2499. float GetAttributeAnimationSpeed(const String&) const;
  2500. float GetAttributeAnimationTime(const String&) const;
  2501. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2502. Variant GetAttributeDefault(const String&) const;
  2503. bool GetInterceptNetworkUpdate(const String&) const;
  2504. bool HasSubscribedToEvent(Object, const String&);
  2505. bool HasSubscribedToEvent(const String&);
  2506. bool Load(File, bool = false);
  2507. bool Load(VectorBuffer&, bool = false);
  2508. bool LoadJSON(const JSONValue&, bool = false);
  2509. bool LoadXML(const XMLElement&, bool = false);
  2510. void MarkNetworkUpdate() const;
  2511. void Remove();
  2512. void RemoveAttributeAnimation(const String&);
  2513. void RemoveInstanceDefault();
  2514. void RemoveObjectAnimation();
  2515. void ResetToDefault();
  2516. bool Save(File) const;
  2517. bool Save(VectorBuffer&) const;
  2518. bool SaveJSON(JSONValue&) const;
  2519. bool SaveXML(XMLElement&) const;
  2520. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2521. void SetAnimationTime(float);
  2522. bool SetAttribute(const String&, const Variant&);
  2523. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2524. void SetAttributeAnimationSpeed(const String&, float);
  2525. void SetAttributeAnimationTime(const String&, float);
  2526. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2527. void SetInterceptNetworkUpdate(const String&, bool);
  2528. // Properties:
  2529. Vector2 anchor;
  2530. bool animationEnabled;
  2531. /* readonly */
  2532. Array<Variant> attributeDefaults;
  2533. /* readonly */
  2534. Array<AttributeInfo> attributeInfos;
  2535. Array<Variant> attributes;
  2536. /* readonly */
  2537. String category;
  2538. bool collideConnected;
  2539. bool enabled;
  2540. /* readonly */
  2541. bool enabledEffective;
  2542. /* readonly */
  2543. uint id;
  2544. float maxForce;
  2545. float maxTorque;
  2546. /* readonly */
  2547. Node node;
  2548. /* readonly */
  2549. uint numAttributes;
  2550. ObjectAnimation objectAnimation;
  2551. RigidBody2D otherBody;
  2552. /* readonly */
  2553. RigidBody2D ownerBody;
  2554. /* readonly */
  2555. int refs;
  2556. bool temporary;
  2557. /* readonly */
  2558. StringHash type;
  2559. /* readonly */
  2560. String typeName;
  2561. /* readonly */
  2562. int weakRefs;
  2563. };
  2564. class ConstraintGear2D
  2565. {
  2566. // Methods:
  2567. void ApplyAttributes();
  2568. void DrawDebugGeometry(DebugRenderer, bool);
  2569. Variant GetAttribute(const String&) const;
  2570. ValueAnimation GetAttributeAnimation(const String&) const;
  2571. float GetAttributeAnimationSpeed(const String&) const;
  2572. float GetAttributeAnimationTime(const String&) const;
  2573. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2574. Variant GetAttributeDefault(const String&) const;
  2575. bool GetInterceptNetworkUpdate(const String&) const;
  2576. bool HasSubscribedToEvent(Object, const String&);
  2577. bool HasSubscribedToEvent(const String&);
  2578. bool Load(File, bool = false);
  2579. bool Load(VectorBuffer&, bool = false);
  2580. bool LoadJSON(const JSONValue&, bool = false);
  2581. bool LoadXML(const XMLElement&, bool = false);
  2582. void MarkNetworkUpdate() const;
  2583. void Remove();
  2584. void RemoveAttributeAnimation(const String&);
  2585. void RemoveInstanceDefault();
  2586. void RemoveObjectAnimation();
  2587. void ResetToDefault();
  2588. bool Save(File) const;
  2589. bool Save(VectorBuffer&) const;
  2590. bool SaveJSON(JSONValue&) const;
  2591. bool SaveXML(XMLElement&) const;
  2592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2593. void SetAnimationTime(float);
  2594. bool SetAttribute(const String&, const Variant&);
  2595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2596. void SetAttributeAnimationSpeed(const String&, float);
  2597. void SetAttributeAnimationTime(const String&, float);
  2598. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2599. void SetInterceptNetworkUpdate(const String&, bool);
  2600. // Properties:
  2601. bool animationEnabled;
  2602. /* readonly */
  2603. Array<Variant> attributeDefaults;
  2604. /* readonly */
  2605. Array<AttributeInfo> attributeInfos;
  2606. Array<Variant> attributes;
  2607. /* readonly */
  2608. String category;
  2609. bool collideConnected;
  2610. bool enabled;
  2611. /* readonly */
  2612. bool enabledEffective;
  2613. /* readonly */
  2614. uint id;
  2615. /* readonly */
  2616. Node node;
  2617. /* readonly */
  2618. uint numAttributes;
  2619. ObjectAnimation objectAnimation;
  2620. RigidBody2D otherBody;
  2621. Constraint2D otherConstraint;
  2622. /* readonly */
  2623. RigidBody2D ownerBody;
  2624. Constraint2D ownerConstraint;
  2625. float ratio;
  2626. /* readonly */
  2627. int refs;
  2628. bool temporary;
  2629. /* readonly */
  2630. StringHash type;
  2631. /* readonly */
  2632. String typeName;
  2633. /* readonly */
  2634. int weakRefs;
  2635. };
  2636. class ConstraintMotor2D
  2637. {
  2638. // Methods:
  2639. void ApplyAttributes();
  2640. void DrawDebugGeometry(DebugRenderer, bool);
  2641. Variant GetAttribute(const String&) const;
  2642. ValueAnimation GetAttributeAnimation(const String&) const;
  2643. float GetAttributeAnimationSpeed(const String&) const;
  2644. float GetAttributeAnimationTime(const String&) const;
  2645. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2646. Variant GetAttributeDefault(const String&) const;
  2647. bool GetInterceptNetworkUpdate(const String&) const;
  2648. bool HasSubscribedToEvent(Object, const String&);
  2649. bool HasSubscribedToEvent(const String&);
  2650. bool Load(File, bool = false);
  2651. bool Load(VectorBuffer&, bool = false);
  2652. bool LoadJSON(const JSONValue&, bool = false);
  2653. bool LoadXML(const XMLElement&, bool = false);
  2654. void MarkNetworkUpdate() const;
  2655. void Remove();
  2656. void RemoveAttributeAnimation(const String&);
  2657. void RemoveInstanceDefault();
  2658. void RemoveObjectAnimation();
  2659. void ResetToDefault();
  2660. bool Save(File) const;
  2661. bool Save(VectorBuffer&) const;
  2662. bool SaveJSON(JSONValue&) const;
  2663. bool SaveXML(XMLElement&) const;
  2664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2665. void SetAnimationTime(float);
  2666. bool SetAttribute(const String&, const Variant&);
  2667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2668. void SetAttributeAnimationSpeed(const String&, float);
  2669. void SetAttributeAnimationTime(const String&, float);
  2670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2671. void SetInterceptNetworkUpdate(const String&, bool);
  2672. // Properties:
  2673. float angularOffset;
  2674. bool animationEnabled;
  2675. /* readonly */
  2676. Array<Variant> attributeDefaults;
  2677. /* readonly */
  2678. Array<AttributeInfo> attributeInfos;
  2679. Array<Variant> attributes;
  2680. /* readonly */
  2681. String category;
  2682. bool collideConnected;
  2683. float correctionFactor;
  2684. bool enabled;
  2685. /* readonly */
  2686. bool enabledEffective;
  2687. /* readonly */
  2688. uint id;
  2689. Vector2 linearOffset;
  2690. float maxForce;
  2691. float maxTorque;
  2692. /* readonly */
  2693. Node node;
  2694. /* readonly */
  2695. uint numAttributes;
  2696. ObjectAnimation objectAnimation;
  2697. RigidBody2D otherBody;
  2698. /* readonly */
  2699. RigidBody2D ownerBody;
  2700. /* readonly */
  2701. int refs;
  2702. bool temporary;
  2703. /* readonly */
  2704. StringHash type;
  2705. /* readonly */
  2706. String typeName;
  2707. /* readonly */
  2708. int weakRefs;
  2709. };
  2710. class ConstraintMouse2D
  2711. {
  2712. // Methods:
  2713. void ApplyAttributes();
  2714. void DrawDebugGeometry(DebugRenderer, bool);
  2715. Variant GetAttribute(const String&) const;
  2716. ValueAnimation GetAttributeAnimation(const String&) const;
  2717. float GetAttributeAnimationSpeed(const String&) const;
  2718. float GetAttributeAnimationTime(const String&) const;
  2719. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2720. Variant GetAttributeDefault(const String&) const;
  2721. bool GetInterceptNetworkUpdate(const String&) const;
  2722. bool HasSubscribedToEvent(Object, const String&);
  2723. bool HasSubscribedToEvent(const String&);
  2724. bool Load(File, bool = false);
  2725. bool Load(VectorBuffer&, bool = false);
  2726. bool LoadJSON(const JSONValue&, bool = false);
  2727. bool LoadXML(const XMLElement&, bool = false);
  2728. void MarkNetworkUpdate() const;
  2729. void Remove();
  2730. void RemoveAttributeAnimation(const String&);
  2731. void RemoveInstanceDefault();
  2732. void RemoveObjectAnimation();
  2733. void ResetToDefault();
  2734. bool Save(File) const;
  2735. bool Save(VectorBuffer&) const;
  2736. bool SaveJSON(JSONValue&) const;
  2737. bool SaveXML(XMLElement&) const;
  2738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2739. void SetAnimationTime(float);
  2740. bool SetAttribute(const String&, const Variant&);
  2741. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2742. void SetAttributeAnimationSpeed(const String&, float);
  2743. void SetAttributeAnimationTime(const String&, float);
  2744. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2745. void SetInterceptNetworkUpdate(const String&, bool);
  2746. // Properties:
  2747. bool animationEnabled;
  2748. /* readonly */
  2749. Array<Variant> attributeDefaults;
  2750. /* readonly */
  2751. Array<AttributeInfo> attributeInfos;
  2752. Array<Variant> attributes;
  2753. /* readonly */
  2754. String category;
  2755. bool collideConnected;
  2756. float dampingRatio;
  2757. bool enabled;
  2758. /* readonly */
  2759. bool enabledEffective;
  2760. float frequencyHz;
  2761. /* readonly */
  2762. uint id;
  2763. float maxForce;
  2764. /* readonly */
  2765. Node node;
  2766. /* readonly */
  2767. uint numAttributes;
  2768. ObjectAnimation objectAnimation;
  2769. RigidBody2D otherBody;
  2770. /* readonly */
  2771. RigidBody2D ownerBody;
  2772. /* readonly */
  2773. int refs;
  2774. Vector2 target;
  2775. bool temporary;
  2776. /* readonly */
  2777. StringHash type;
  2778. /* readonly */
  2779. String typeName;
  2780. /* readonly */
  2781. int weakRefs;
  2782. };
  2783. class ConstraintPrismatic2D
  2784. {
  2785. // Methods:
  2786. void ApplyAttributes();
  2787. void DrawDebugGeometry(DebugRenderer, bool);
  2788. Variant GetAttribute(const String&) const;
  2789. ValueAnimation GetAttributeAnimation(const String&) const;
  2790. float GetAttributeAnimationSpeed(const String&) const;
  2791. float GetAttributeAnimationTime(const String&) const;
  2792. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2793. Variant GetAttributeDefault(const String&) const;
  2794. bool GetInterceptNetworkUpdate(const String&) const;
  2795. bool HasSubscribedToEvent(Object, const String&);
  2796. bool HasSubscribedToEvent(const String&);
  2797. bool Load(File, bool = false);
  2798. bool Load(VectorBuffer&, bool = false);
  2799. bool LoadJSON(const JSONValue&, bool = false);
  2800. bool LoadXML(const XMLElement&, bool = false);
  2801. void MarkNetworkUpdate() const;
  2802. void Remove();
  2803. void RemoveAttributeAnimation(const String&);
  2804. void RemoveInstanceDefault();
  2805. void RemoveObjectAnimation();
  2806. void ResetToDefault();
  2807. bool Save(File) const;
  2808. bool Save(VectorBuffer&) const;
  2809. bool SaveJSON(JSONValue&) const;
  2810. bool SaveXML(XMLElement&) const;
  2811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2812. void SetAnimationTime(float);
  2813. bool SetAttribute(const String&, const Variant&);
  2814. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2815. void SetAttributeAnimationSpeed(const String&, float);
  2816. void SetAttributeAnimationTime(const String&, float);
  2817. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2818. void SetInterceptNetworkUpdate(const String&, bool);
  2819. // Properties:
  2820. Vector2 anchor;
  2821. bool animationEnabled;
  2822. /* readonly */
  2823. Array<Variant> attributeDefaults;
  2824. /* readonly */
  2825. Array<AttributeInfo> attributeInfos;
  2826. Array<Variant> attributes;
  2827. Vector2 axis;
  2828. /* readonly */
  2829. String category;
  2830. bool collideConnected;
  2831. bool enableLimit;
  2832. bool enableMotor;
  2833. bool enabled;
  2834. /* readonly */
  2835. bool enabledEffective;
  2836. /* readonly */
  2837. uint id;
  2838. float lowerTranslation;
  2839. float maxMotorForce;
  2840. float motorSpeed;
  2841. /* readonly */
  2842. Node node;
  2843. /* readonly */
  2844. uint numAttributes;
  2845. ObjectAnimation objectAnimation;
  2846. RigidBody2D otherBody;
  2847. /* readonly */
  2848. RigidBody2D ownerBody;
  2849. /* readonly */
  2850. int refs;
  2851. bool temporary;
  2852. /* readonly */
  2853. StringHash type;
  2854. /* readonly */
  2855. String typeName;
  2856. float upperTranslation;
  2857. /* readonly */
  2858. int weakRefs;
  2859. };
  2860. class ConstraintPulley2D
  2861. {
  2862. // Methods:
  2863. void ApplyAttributes();
  2864. void DrawDebugGeometry(DebugRenderer, bool);
  2865. Variant GetAttribute(const String&) const;
  2866. ValueAnimation GetAttributeAnimation(const String&) const;
  2867. float GetAttributeAnimationSpeed(const String&) const;
  2868. float GetAttributeAnimationTime(const String&) const;
  2869. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2870. Variant GetAttributeDefault(const String&) const;
  2871. bool GetInterceptNetworkUpdate(const String&) const;
  2872. bool HasSubscribedToEvent(Object, const String&);
  2873. bool HasSubscribedToEvent(const String&);
  2874. bool Load(File, bool = false);
  2875. bool Load(VectorBuffer&, bool = false);
  2876. bool LoadJSON(const JSONValue&, bool = false);
  2877. bool LoadXML(const XMLElement&, bool = false);
  2878. void MarkNetworkUpdate() const;
  2879. void Remove();
  2880. void RemoveAttributeAnimation(const String&);
  2881. void RemoveInstanceDefault();
  2882. void RemoveObjectAnimation();
  2883. void ResetToDefault();
  2884. bool Save(File) const;
  2885. bool Save(VectorBuffer&) const;
  2886. bool SaveJSON(JSONValue&) const;
  2887. bool SaveXML(XMLElement&) const;
  2888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2889. void SetAnimationTime(float);
  2890. bool SetAttribute(const String&, const Variant&);
  2891. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2892. void SetAttributeAnimationSpeed(const String&, float);
  2893. void SetAttributeAnimationTime(const String&, float);
  2894. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2895. void SetInterceptNetworkUpdate(const String&, bool);
  2896. // Properties:
  2897. bool animationEnabled;
  2898. /* readonly */
  2899. Array<Variant> attributeDefaults;
  2900. /* readonly */
  2901. Array<AttributeInfo> attributeInfos;
  2902. Array<Variant> attributes;
  2903. /* readonly */
  2904. String category;
  2905. bool collideConnected;
  2906. bool enabled;
  2907. /* readonly */
  2908. bool enabledEffective;
  2909. /* readonly */
  2910. uint id;
  2911. /* readonly */
  2912. Node node;
  2913. /* readonly */
  2914. uint numAttributes;
  2915. ObjectAnimation objectAnimation;
  2916. RigidBody2D otherBody;
  2917. Vector2 otherBodyAnchor;
  2918. Vector2 otherBodyGroundAnchor;
  2919. /* readonly */
  2920. RigidBody2D ownerBody;
  2921. Vector2 ownerBodyAnchor;
  2922. Vector2 ownerBodyGroundAnchor;
  2923. float ratio;
  2924. /* readonly */
  2925. int refs;
  2926. bool temporary;
  2927. /* readonly */
  2928. StringHash type;
  2929. /* readonly */
  2930. String typeName;
  2931. /* readonly */
  2932. int weakRefs;
  2933. };
  2934. class ConstraintRevolute2D
  2935. {
  2936. // Methods:
  2937. void ApplyAttributes();
  2938. void DrawDebugGeometry(DebugRenderer, bool);
  2939. Variant GetAttribute(const String&) const;
  2940. ValueAnimation GetAttributeAnimation(const String&) const;
  2941. float GetAttributeAnimationSpeed(const String&) const;
  2942. float GetAttributeAnimationTime(const String&) const;
  2943. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2944. Variant GetAttributeDefault(const String&) const;
  2945. bool GetInterceptNetworkUpdate(const String&) const;
  2946. bool HasSubscribedToEvent(Object, const String&);
  2947. bool HasSubscribedToEvent(const String&);
  2948. bool Load(File, bool = false);
  2949. bool Load(VectorBuffer&, bool = false);
  2950. bool LoadJSON(const JSONValue&, bool = false);
  2951. bool LoadXML(const XMLElement&, bool = false);
  2952. void MarkNetworkUpdate() const;
  2953. void Remove();
  2954. void RemoveAttributeAnimation(const String&);
  2955. void RemoveInstanceDefault();
  2956. void RemoveObjectAnimation();
  2957. void ResetToDefault();
  2958. bool Save(File) const;
  2959. bool Save(VectorBuffer&) const;
  2960. bool SaveJSON(JSONValue&) const;
  2961. bool SaveXML(XMLElement&) const;
  2962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2963. void SetAnimationTime(float);
  2964. bool SetAttribute(const String&, const Variant&);
  2965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2966. void SetAttributeAnimationSpeed(const String&, float);
  2967. void SetAttributeAnimationTime(const String&, float);
  2968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2969. void SetInterceptNetworkUpdate(const String&, bool);
  2970. // Properties:
  2971. Vector2 anchor;
  2972. bool animationEnabled;
  2973. /* readonly */
  2974. Array<Variant> attributeDefaults;
  2975. /* readonly */
  2976. Array<AttributeInfo> attributeInfos;
  2977. Array<Variant> attributes;
  2978. /* readonly */
  2979. String category;
  2980. bool collideConnected;
  2981. bool enableLimit;
  2982. bool enableMotor;
  2983. bool enabled;
  2984. /* readonly */
  2985. bool enabledEffective;
  2986. /* readonly */
  2987. uint id;
  2988. float lowerAngle;
  2989. float maxMotorTorque;
  2990. float motorSpeed;
  2991. /* readonly */
  2992. Node node;
  2993. /* readonly */
  2994. uint numAttributes;
  2995. ObjectAnimation objectAnimation;
  2996. RigidBody2D otherBody;
  2997. /* readonly */
  2998. RigidBody2D ownerBody;
  2999. /* readonly */
  3000. int refs;
  3001. bool temporary;
  3002. /* readonly */
  3003. StringHash type;
  3004. /* readonly */
  3005. String typeName;
  3006. float upperAngle;
  3007. /* readonly */
  3008. int weakRefs;
  3009. };
  3010. class ConstraintRope2D
  3011. {
  3012. // Methods:
  3013. void ApplyAttributes();
  3014. void DrawDebugGeometry(DebugRenderer, bool);
  3015. Variant GetAttribute(const String&) const;
  3016. ValueAnimation GetAttributeAnimation(const String&) const;
  3017. float GetAttributeAnimationSpeed(const String&) const;
  3018. float GetAttributeAnimationTime(const String&) const;
  3019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3020. Variant GetAttributeDefault(const String&) const;
  3021. bool GetInterceptNetworkUpdate(const String&) const;
  3022. bool HasSubscribedToEvent(Object, const String&);
  3023. bool HasSubscribedToEvent(const String&);
  3024. bool Load(File, bool = false);
  3025. bool Load(VectorBuffer&, bool = false);
  3026. bool LoadJSON(const JSONValue&, bool = false);
  3027. bool LoadXML(const XMLElement&, bool = false);
  3028. void MarkNetworkUpdate() const;
  3029. void Remove();
  3030. void RemoveAttributeAnimation(const String&);
  3031. void RemoveInstanceDefault();
  3032. void RemoveObjectAnimation();
  3033. void ResetToDefault();
  3034. bool Save(File) const;
  3035. bool Save(VectorBuffer&) const;
  3036. bool SaveJSON(JSONValue&) const;
  3037. bool SaveXML(XMLElement&) const;
  3038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3039. void SetAnimationTime(float);
  3040. bool SetAttribute(const String&, const Variant&);
  3041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3042. void SetAttributeAnimationSpeed(const String&, float);
  3043. void SetAttributeAnimationTime(const String&, float);
  3044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3045. void SetInterceptNetworkUpdate(const String&, bool);
  3046. // Properties:
  3047. bool animationEnabled;
  3048. /* readonly */
  3049. Array<Variant> attributeDefaults;
  3050. /* readonly */
  3051. Array<AttributeInfo> attributeInfos;
  3052. Array<Variant> attributes;
  3053. /* readonly */
  3054. String category;
  3055. bool collideConnected;
  3056. bool enabled;
  3057. /* readonly */
  3058. bool enabledEffective;
  3059. /* readonly */
  3060. uint id;
  3061. float maxLength;
  3062. /* readonly */
  3063. Node node;
  3064. /* readonly */
  3065. uint numAttributes;
  3066. ObjectAnimation objectAnimation;
  3067. RigidBody2D otherBody;
  3068. Vector2 otherBodyAnchor;
  3069. /* readonly */
  3070. RigidBody2D ownerBody;
  3071. Vector2 ownerBodyAnchor;
  3072. /* readonly */
  3073. int refs;
  3074. bool temporary;
  3075. /* readonly */
  3076. StringHash type;
  3077. /* readonly */
  3078. String typeName;
  3079. /* readonly */
  3080. int weakRefs;
  3081. };
  3082. class ConstraintWeld2D
  3083. {
  3084. // Methods:
  3085. void ApplyAttributes();
  3086. void DrawDebugGeometry(DebugRenderer, bool);
  3087. Variant GetAttribute(const String&) const;
  3088. ValueAnimation GetAttributeAnimation(const String&) const;
  3089. float GetAttributeAnimationSpeed(const String&) const;
  3090. float GetAttributeAnimationTime(const String&) const;
  3091. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3092. Variant GetAttributeDefault(const String&) const;
  3093. bool GetInterceptNetworkUpdate(const String&) const;
  3094. bool HasSubscribedToEvent(Object, const String&);
  3095. bool HasSubscribedToEvent(const String&);
  3096. bool Load(File, bool = false);
  3097. bool Load(VectorBuffer&, bool = false);
  3098. bool LoadJSON(const JSONValue&, bool = false);
  3099. bool LoadXML(const XMLElement&, bool = false);
  3100. void MarkNetworkUpdate() const;
  3101. void Remove();
  3102. void RemoveAttributeAnimation(const String&);
  3103. void RemoveInstanceDefault();
  3104. void RemoveObjectAnimation();
  3105. void ResetToDefault();
  3106. bool Save(File) const;
  3107. bool Save(VectorBuffer&) const;
  3108. bool SaveJSON(JSONValue&) const;
  3109. bool SaveXML(XMLElement&) const;
  3110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3111. void SetAnimationTime(float);
  3112. bool SetAttribute(const String&, const Variant&);
  3113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3114. void SetAttributeAnimationSpeed(const String&, float);
  3115. void SetAttributeAnimationTime(const String&, float);
  3116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3117. void SetInterceptNetworkUpdate(const String&, bool);
  3118. // Properties:
  3119. Vector2 anchor;
  3120. bool animationEnabled;
  3121. /* readonly */
  3122. Array<Variant> attributeDefaults;
  3123. /* readonly */
  3124. Array<AttributeInfo> attributeInfos;
  3125. Array<Variant> attributes;
  3126. /* readonly */
  3127. String category;
  3128. bool collideConnected;
  3129. float dampingRatio;
  3130. bool enabled;
  3131. /* readonly */
  3132. bool enabledEffective;
  3133. float frequencyHz;
  3134. /* readonly */
  3135. uint id;
  3136. /* readonly */
  3137. Node node;
  3138. /* readonly */
  3139. uint numAttributes;
  3140. ObjectAnimation objectAnimation;
  3141. RigidBody2D otherBody;
  3142. /* readonly */
  3143. RigidBody2D ownerBody;
  3144. /* readonly */
  3145. int refs;
  3146. bool temporary;
  3147. /* readonly */
  3148. StringHash type;
  3149. /* readonly */
  3150. String typeName;
  3151. /* readonly */
  3152. int weakRefs;
  3153. };
  3154. class ConstraintWheel2D
  3155. {
  3156. // Methods:
  3157. void ApplyAttributes();
  3158. void DrawDebugGeometry(DebugRenderer, bool);
  3159. Variant GetAttribute(const String&) const;
  3160. ValueAnimation GetAttributeAnimation(const String&) const;
  3161. float GetAttributeAnimationSpeed(const String&) const;
  3162. float GetAttributeAnimationTime(const String&) const;
  3163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3164. Variant GetAttributeDefault(const String&) const;
  3165. bool GetInterceptNetworkUpdate(const String&) const;
  3166. bool HasSubscribedToEvent(Object, const String&);
  3167. bool HasSubscribedToEvent(const String&);
  3168. bool Load(File, bool = false);
  3169. bool Load(VectorBuffer&, bool = false);
  3170. bool LoadJSON(const JSONValue&, bool = false);
  3171. bool LoadXML(const XMLElement&, bool = false);
  3172. void MarkNetworkUpdate() const;
  3173. void Remove();
  3174. void RemoveAttributeAnimation(const String&);
  3175. void RemoveInstanceDefault();
  3176. void RemoveObjectAnimation();
  3177. void ResetToDefault();
  3178. bool Save(File) const;
  3179. bool Save(VectorBuffer&) const;
  3180. bool SaveJSON(JSONValue&) const;
  3181. bool SaveXML(XMLElement&) const;
  3182. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3183. void SetAnimationTime(float);
  3184. bool SetAttribute(const String&, const Variant&);
  3185. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3186. void SetAttributeAnimationSpeed(const String&, float);
  3187. void SetAttributeAnimationTime(const String&, float);
  3188. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3189. void SetInterceptNetworkUpdate(const String&, bool);
  3190. // Properties:
  3191. Vector2 anchor;
  3192. bool animationEnabled;
  3193. /* readonly */
  3194. Array<Variant> attributeDefaults;
  3195. /* readonly */
  3196. Array<AttributeInfo> attributeInfos;
  3197. Array<Variant> attributes;
  3198. Vector2 axis;
  3199. /* readonly */
  3200. String category;
  3201. bool collideConnected;
  3202. float dampingRatio;
  3203. bool enableMotor;
  3204. bool enabled;
  3205. /* readonly */
  3206. bool enabledEffective;
  3207. float frequencyHz;
  3208. /* readonly */
  3209. uint id;
  3210. float maxMotorTorque;
  3211. float motorSpeed;
  3212. /* readonly */
  3213. Node node;
  3214. /* readonly */
  3215. uint numAttributes;
  3216. ObjectAnimation objectAnimation;
  3217. RigidBody2D otherBody;
  3218. /* readonly */
  3219. RigidBody2D ownerBody;
  3220. /* readonly */
  3221. int refs;
  3222. bool temporary;
  3223. /* readonly */
  3224. StringHash type;
  3225. /* readonly */
  3226. String typeName;
  3227. /* readonly */
  3228. int weakRefs;
  3229. };
  3230. class Controls
  3231. {
  3232. // Methods:
  3233. bool IsDown(uint) const;
  3234. bool IsPressed(uint, const Controls&) const;
  3235. void Reset();
  3236. void Set(uint, bool);
  3237. // Properties:
  3238. uint buttons;
  3239. VariantMap extraData;
  3240. float pitch;
  3241. float yaw;
  3242. };
  3243. class CrowdAgent
  3244. {
  3245. // Methods:
  3246. void ApplyAttributes();
  3247. void DrawDebugGeometry(DebugRenderer, bool);
  3248. void DrawDebugGeometry(bool);
  3249. Variant GetAttribute(const String&) const;
  3250. ValueAnimation GetAttributeAnimation(const String&) const;
  3251. float GetAttributeAnimationSpeed(const String&) const;
  3252. float GetAttributeAnimationTime(const String&) const;
  3253. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3254. Variant GetAttributeDefault(const String&) const;
  3255. bool GetInterceptNetworkUpdate(const String&) const;
  3256. bool HasSubscribedToEvent(Object, const String&);
  3257. bool HasSubscribedToEvent(const String&);
  3258. bool Load(File, bool = false);
  3259. bool Load(VectorBuffer&, bool = false);
  3260. bool LoadJSON(const JSONValue&, bool = false);
  3261. bool LoadXML(const XMLElement&, bool = false);
  3262. void MarkNetworkUpdate() const;
  3263. void Remove();
  3264. void RemoveAttributeAnimation(const String&);
  3265. void RemoveInstanceDefault();
  3266. void RemoveObjectAnimation();
  3267. void ResetTarget();
  3268. void ResetToDefault();
  3269. bool Save(File) const;
  3270. bool Save(VectorBuffer&) const;
  3271. bool SaveJSON(JSONValue&) const;
  3272. bool SaveXML(XMLElement&) const;
  3273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3274. void SetAnimationTime(float);
  3275. bool SetAttribute(const String&, const Variant&);
  3276. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3277. void SetAttributeAnimationSpeed(const String&, float);
  3278. void SetAttributeAnimationTime(const String&, float);
  3279. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3280. void SetInterceptNetworkUpdate(const String&, bool);
  3281. // Properties:
  3282. /* readonly */
  3283. Vector3 actualVelocity;
  3284. /* readonly */
  3285. CrowdAgentState agentState;
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. bool arrived;
  3289. /* readonly */
  3290. Array<Variant> attributeDefaults;
  3291. /* readonly */
  3292. Array<AttributeInfo> attributeInfos;
  3293. Array<Variant> attributes;
  3294. /* readonly */
  3295. String category;
  3296. /* readonly */
  3297. Vector3 desiredVelocity;
  3298. bool enabled;
  3299. /* readonly */
  3300. bool enabledEffective;
  3301. float height;
  3302. /* readonly */
  3303. uint id;
  3304. /* readonly */
  3305. bool inCrowd;
  3306. float maxAccel;
  3307. float maxSpeed;
  3308. NavigationPushiness navigationPushiness;
  3309. NavigationQuality navigationQuality;
  3310. /* readonly */
  3311. Node node;
  3312. /* readonly */
  3313. uint numAttributes;
  3314. ObjectAnimation objectAnimation;
  3315. uint obstacleAvoidanceType;
  3316. /* readonly */
  3317. Vector3 position;
  3318. uint queryFilterType;
  3319. float radius;
  3320. /* readonly */
  3321. int refs;
  3322. /* readonly */
  3323. bool requestedTarget;
  3324. /* readonly */
  3325. CrowdAgentRequestedTarget requestedTargetType;
  3326. Vector3 targetPosition;
  3327. /* readonly */
  3328. CrowdAgentTargetState targetState;
  3329. Vector3 targetVelocity;
  3330. bool temporary;
  3331. /* readonly */
  3332. StringHash type;
  3333. /* readonly */
  3334. String typeName;
  3335. bool updateNodePosition;
  3336. /* readonly */
  3337. int weakRefs;
  3338. };
  3339. class CrowdManager
  3340. {
  3341. // Methods:
  3342. void ApplyAttributes();
  3343. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3344. void DrawDebugGeometry(DebugRenderer, bool);
  3345. void DrawDebugGeometry(bool);
  3346. Vector3 FindNearestPoint(const Vector3&, int);
  3347. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3348. float GetAreaCost(uint, uint);
  3349. Variant GetAttribute(const String&) const;
  3350. ValueAnimation GetAttributeAnimation(const String&) const;
  3351. float GetAttributeAnimationSpeed(const String&) const;
  3352. float GetAttributeAnimationTime(const String&) const;
  3353. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3354. Variant GetAttributeDefault(const String&) const;
  3355. float GetDistanceToWall(const Vector3&, float, int);
  3356. uint16 GetExcludeFlags(uint);
  3357. uint16 GetIncludeFlags(uint);
  3358. bool GetInterceptNetworkUpdate(const String&) const;
  3359. Vector3 GetRandomPoint(int);
  3360. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3361. bool HasSubscribedToEvent(Object, const String&);
  3362. bool HasSubscribedToEvent(const String&);
  3363. bool Load(File, bool = false);
  3364. bool Load(VectorBuffer&, bool = false);
  3365. bool LoadJSON(const JSONValue&, bool = false);
  3366. bool LoadXML(const XMLElement&, bool = false);
  3367. void MarkNetworkUpdate() const;
  3368. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3369. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3370. void Remove();
  3371. void RemoveAttributeAnimation(const String&);
  3372. void RemoveInstanceDefault();
  3373. void RemoveObjectAnimation();
  3374. void ResetCrowdTarget(Node = null);
  3375. void ResetToDefault();
  3376. bool Save(File) const;
  3377. bool Save(VectorBuffer&) const;
  3378. bool SaveJSON(JSONValue&) const;
  3379. bool SaveXML(XMLElement&) const;
  3380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3381. void SetAnimationTime(float);
  3382. void SetAreaCost(uint, uint, float);
  3383. bool SetAttribute(const String&, const Variant&);
  3384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3385. void SetAttributeAnimationSpeed(const String&, float);
  3386. void SetAttributeAnimationTime(const String&, float);
  3387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3388. void SetCrowdTarget(const Vector3&, Node = null);
  3389. void SetCrowdVelocity(const Vector3&, Node = null);
  3390. void SetExcludeFlags(uint, uint16);
  3391. void SetIncludeFlags(uint, uint16);
  3392. void SetInterceptNetworkUpdate(const String&, bool);
  3393. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3394. // Properties:
  3395. bool animationEnabled;
  3396. /* readonly */
  3397. Array<Variant> attributeDefaults;
  3398. /* readonly */
  3399. Array<AttributeInfo> attributeInfos;
  3400. Array<Variant> attributes;
  3401. /* readonly */
  3402. String category;
  3403. bool enabled;
  3404. /* readonly */
  3405. bool enabledEffective;
  3406. /* readonly */
  3407. uint id;
  3408. float maxAgentRadius;
  3409. int maxAgents;
  3410. NavigationMesh navMesh;
  3411. /* readonly */
  3412. Node node;
  3413. /* readonly */
  3414. Array<uint> numAreas;
  3415. /* readonly */
  3416. uint numAttributes;
  3417. /* readonly */
  3418. uint numObstacleAvoidanceTypes;
  3419. /* readonly */
  3420. uint numQueryFilterTypes;
  3421. ObjectAnimation objectAnimation;
  3422. /* readonly */
  3423. int refs;
  3424. bool temporary;
  3425. /* readonly */
  3426. StringHash type;
  3427. /* readonly */
  3428. String typeName;
  3429. /* readonly */
  3430. int weakRefs;
  3431. };
  3432. class CrowdObstacleAvoidanceParams
  3433. {
  3434. // Properties:
  3435. uint8 adaptiveDepth;
  3436. uint8 adaptiveDivs;
  3437. uint8 adaptiveRings;
  3438. uint8 gridSize;
  3439. float horizTime;
  3440. float velBias;
  3441. float weightCurVel;
  3442. float weightDesVel;
  3443. float weightSide;
  3444. float weightToi;
  3445. };
  3446. class Cursor
  3447. {
  3448. // Methods:
  3449. void AddChild(UIElement);
  3450. void AddTag(const String&);
  3451. void AddTags(const String&, int8 = ';');
  3452. void ApplyAttributes();
  3453. void BringToFront();
  3454. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3455. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3456. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3457. void DisableLayoutUpdate();
  3458. IntVector2 ElementToScreen(const IntVector2&);
  3459. void EnableLayoutUpdate();
  3460. uint FindChild(UIElement) const;
  3461. Variant GetAttribute(const String&) const;
  3462. ValueAnimation GetAttributeAnimation(const String&) const;
  3463. float GetAttributeAnimationSpeed(const String&) const;
  3464. float GetAttributeAnimationTime(const String&) const;
  3465. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3466. Variant GetAttributeDefault(const String&) const;
  3467. UIElement GetChild(const String&, bool = false) const;
  3468. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3469. Array<UIElement> GetChildren(bool = false) const;
  3470. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3471. UIElement GetElementEventSender() const;
  3472. bool GetInterceptNetworkUpdate(const String&) const;
  3473. uint GetNumChildren(bool) const;
  3474. bool HasSubscribedToEvent(Object, const String&);
  3475. bool HasSubscribedToEvent(const String&);
  3476. bool HasTag(const String&) const;
  3477. void InsertChild(uint, UIElement);
  3478. bool IsInside(IntVector2, bool);
  3479. bool IsInsideCombined(IntVector2, bool);
  3480. bool Load(File, bool = false);
  3481. bool Load(VectorBuffer&, bool = false);
  3482. bool LoadChildXML(XMLFile, XMLFile = null);
  3483. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3484. bool LoadJSON(const JSONValue&, bool = false);
  3485. bool LoadXML(File);
  3486. bool LoadXML(VectorBuffer&);
  3487. bool LoadXML(XMLFile, XMLFile);
  3488. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3489. bool LoadXML(const XMLElement&, bool = false);
  3490. void MarkNetworkUpdate() const;
  3491. void Remove();
  3492. void RemoveAllChildren();
  3493. void RemoveAllTags();
  3494. void RemoveAttributeAnimation(const String&);
  3495. void RemoveChild(UIElement, uint = 0);
  3496. void RemoveChild(uint);
  3497. void RemoveInstanceDefault();
  3498. void RemoveObjectAnimation();
  3499. bool RemoveTag(const String&);
  3500. void ResetDeepEnabled();
  3501. void ResetToDefault();
  3502. bool Save(File) const;
  3503. bool Save(VectorBuffer&) const;
  3504. bool SaveJSON(JSONValue&) const;
  3505. bool SaveXML(File, const String& = "\t");
  3506. bool SaveXML(VectorBuffer&, const String& = "\t");
  3507. bool SaveXML(XMLElement&) const;
  3508. IntVector2 ScreenToElement(const IntVector2&);
  3509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3510. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3511. void SetAnimationTime(float);
  3512. bool SetAttribute(const String&, const Variant&);
  3513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3514. void SetAttributeAnimationSpeed(const String&, float);
  3515. void SetAttributeAnimationTime(const String&, float);
  3516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3517. void SetDeepEnabled(bool);
  3518. void SetEnabledRecursive(bool);
  3519. void SetFixedHeight(int);
  3520. void SetFixedSize(int, int);
  3521. void SetFixedWidth(int);
  3522. void SetFullImageRect();
  3523. void SetHoverOffset(int, int);
  3524. void SetInterceptNetworkUpdate(const String&, bool);
  3525. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3526. void SetMaxSize(int, int);
  3527. void SetMinSize(int, int);
  3528. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3529. void SetPosition(int, int);
  3530. void SetShape(CursorShape);
  3531. void SetShape(const String&);
  3532. void SetSize(int, int);
  3533. bool SetStyle(const String&, XMLFile = null);
  3534. bool SetStyle(const XMLElement&);
  3535. bool SetStyleAuto(XMLFile = null);
  3536. void UpdateLayout();
  3537. const Variant& GetVar(const StringHash&);
  3538. // Properties:
  3539. bool animationEnabled;
  3540. /* readonly */
  3541. Array<Variant> attributeDefaults;
  3542. /* readonly */
  3543. Array<AttributeInfo> attributeInfos;
  3544. Array<Variant> attributes;
  3545. BlendMode blendMode;
  3546. IntRect border;
  3547. bool bringToBack;
  3548. bool bringToFront;
  3549. /* readonly */
  3550. String category;
  3551. /* readonly */
  3552. IntVector2 childOffset;
  3553. /* readonly */
  3554. Array<UIElement> children;
  3555. IntRect clipBorder;
  3556. bool clipChildren;
  3557. /* writeonly */
  3558. Color color;
  3559. /* readonly */
  3560. bool colorGradient;
  3561. Array<Color> colors;
  3562. /* readonly */
  3563. IntRect combinedScreenRect;
  3564. XMLFile defaultStyle;
  3565. /* readonly */
  3566. float derivedOpacity;
  3567. /* readonly */
  3568. uint dragButtonCombo;
  3569. /* readonly */
  3570. int dragButtonCount;
  3571. uint dragDropMode;
  3572. bool editable;
  3573. bool elementEventSender;
  3574. bool enabled;
  3575. /* readonly */
  3576. bool enabledSelf;
  3577. /* readonly */
  3578. bool fixedHeight;
  3579. /* readonly */
  3580. bool fixedSize;
  3581. /* readonly */
  3582. bool fixedWidth;
  3583. bool focus;
  3584. FocusMode focusMode;
  3585. int height;
  3586. HorizontalAlignment horizontalAlignment;
  3587. IntVector2 hoverOffset;
  3588. /* readonly */
  3589. bool hovering;
  3590. IntRect imageBorder;
  3591. IntRect imageRect;
  3592. int indent;
  3593. int indentSpacing;
  3594. /* readonly */
  3595. int indentWidth;
  3596. bool internal;
  3597. IntRect layoutBorder;
  3598. Vector2 layoutFlexScale;
  3599. LayoutMode layoutMode;
  3600. int layoutSpacing;
  3601. int maxHeight;
  3602. IntVector2 maxSize;
  3603. int maxWidth;
  3604. int minHeight;
  3605. IntVector2 minSize;
  3606. int minWidth;
  3607. String name;
  3608. /* readonly */
  3609. uint numAllChildren;
  3610. /* readonly */
  3611. uint numAttributes;
  3612. /* readonly */
  3613. uint numChildren;
  3614. ObjectAnimation objectAnimation;
  3615. float opacity;
  3616. UIElement parent;
  3617. IntVector2 position;
  3618. int priority;
  3619. /* readonly */
  3620. int refs;
  3621. /* readonly */
  3622. UIElement root;
  3623. /* readonly */
  3624. IntVector2 screenPosition;
  3625. bool selected;
  3626. String shape;
  3627. IntVector2 size;
  3628. bool sortChildren;
  3629. String style;
  3630. /* readonly */
  3631. Array<String> tags;
  3632. bool temporary;
  3633. Texture texture;
  3634. bool tiled;
  3635. TraversalMode traversalMode;
  3636. /* readonly */
  3637. StringHash type;
  3638. /* readonly */
  3639. String typeName;
  3640. bool useDerivedOpacity;
  3641. bool useSystemShapes;
  3642. /* readonly */
  3643. VariantMap vars;
  3644. VerticalAlignment verticalAlignment;
  3645. bool visible;
  3646. /* readonly */
  3647. bool visibleEffective;
  3648. /* readonly */
  3649. int weakRefs;
  3650. int width;
  3651. };
  3652. class CustomGeometry
  3653. {
  3654. // Methods:
  3655. void ApplyAttributes();
  3656. void BeginGeometry(uint, PrimitiveType);
  3657. void Clear();
  3658. void Commit();
  3659. void DefineColor(const Color&);
  3660. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3661. void DefineNormal(const Vector3&);
  3662. void DefineTangent(const Vector4&);
  3663. void DefineTexCoord(const Vector2&);
  3664. void DefineVertex(const Vector3&);
  3665. void DrawDebugGeometry(DebugRenderer, bool);
  3666. Variant GetAttribute(const String&) const;
  3667. ValueAnimation GetAttributeAnimation(const String&) const;
  3668. float GetAttributeAnimationSpeed(const String&) const;
  3669. float GetAttributeAnimationTime(const String&) const;
  3670. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3671. Variant GetAttributeDefault(const String&) const;
  3672. bool GetInterceptNetworkUpdate(const String&) const;
  3673. CustomGeometryVertex GetVertex(uint, uint);
  3674. bool HasSubscribedToEvent(Object, const String&);
  3675. bool HasSubscribedToEvent(const String&);
  3676. bool IsInView(Camera) const;
  3677. bool Load(File, bool = false);
  3678. bool Load(VectorBuffer&, bool = false);
  3679. bool LoadJSON(const JSONValue&, bool = false);
  3680. bool LoadXML(const XMLElement&, bool = false);
  3681. void MarkNetworkUpdate() const;
  3682. void Remove();
  3683. void RemoveAttributeAnimation(const String&);
  3684. void RemoveInstanceDefault();
  3685. void RemoveObjectAnimation();
  3686. void ResetToDefault();
  3687. bool Save(File) const;
  3688. bool Save(VectorBuffer&) const;
  3689. bool SaveJSON(JSONValue&) const;
  3690. bool SaveXML(XMLElement&) const;
  3691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3692. void SetAnimationTime(float);
  3693. bool SetAttribute(const String&, const Variant&);
  3694. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3695. void SetAttributeAnimationSpeed(const String&, float);
  3696. void SetAttributeAnimationTime(const String&, float);
  3697. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3698. void SetInterceptNetworkUpdate(const String&, bool);
  3699. // Properties:
  3700. bool animationEnabled;
  3701. /* readonly */
  3702. Array<Variant> attributeDefaults;
  3703. /* readonly */
  3704. Array<AttributeInfo> attributeInfos;
  3705. Array<Variant> attributes;
  3706. /* readonly */
  3707. BoundingBox boundingBox;
  3708. bool castShadows;
  3709. /* readonly */
  3710. String category;
  3711. float drawDistance;
  3712. bool dynamic;
  3713. bool enabled;
  3714. /* readonly */
  3715. bool enabledEffective;
  3716. /* readonly */
  3717. uint id;
  3718. /* readonly */
  3719. bool inView;
  3720. uint lightMask;
  3721. float lodBias;
  3722. /* writeonly */
  3723. Material material;
  3724. Array<Material> materials;
  3725. uint maxLights;
  3726. /* readonly */
  3727. Node node;
  3728. /* readonly */
  3729. uint numAttributes;
  3730. uint numGeometries;
  3731. /* readonly */
  3732. Array<uint> numVertices;
  3733. ObjectAnimation objectAnimation;
  3734. bool occludee;
  3735. bool occluder;
  3736. /* readonly */
  3737. int refs;
  3738. float shadowDistance;
  3739. uint shadowMask;
  3740. bool temporary;
  3741. /* readonly */
  3742. StringHash type;
  3743. /* readonly */
  3744. String typeName;
  3745. uint viewMask;
  3746. /* readonly */
  3747. int weakRefs;
  3748. /* readonly */
  3749. BoundingBox worldBoundingBox;
  3750. /* readonly */
  3751. Zone zone;
  3752. uint zoneMask;
  3753. };
  3754. class CustomGeometryVertex
  3755. {
  3756. // Properties:
  3757. uint color;
  3758. Vector3 normal;
  3759. Vector3 position;
  3760. Vector4 tangent;
  3761. Vector2 texCoord;
  3762. };
  3763. class Database
  3764. {
  3765. // Methods:
  3766. DbConnection Connect(const String&);
  3767. void Disconnect(DbConnection);
  3768. bool HasSubscribedToEvent(Object, const String&);
  3769. bool HasSubscribedToEvent(const String&);
  3770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3771. // Properties:
  3772. /* readonly */
  3773. String category;
  3774. uint poolSize;
  3775. /* readonly */
  3776. bool pooling;
  3777. /* readonly */
  3778. int refs;
  3779. /* readonly */
  3780. StringHash type;
  3781. /* readonly */
  3782. String typeName;
  3783. /* readonly */
  3784. int weakRefs;
  3785. };
  3786. class DbConnection
  3787. {
  3788. // Methods:
  3789. DbResult Execute(const String&, bool = false);
  3790. bool HasSubscribedToEvent(Object, const String&);
  3791. bool HasSubscribedToEvent(const String&);
  3792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3793. // Properties:
  3794. /* readonly */
  3795. String category;
  3796. /* readonly */
  3797. bool connected;
  3798. /* readonly */
  3799. String connectionString;
  3800. /* readonly */
  3801. int refs;
  3802. /* readonly */
  3803. StringHash type;
  3804. /* readonly */
  3805. String typeName;
  3806. /* readonly */
  3807. int weakRefs;
  3808. };
  3809. class DbResult
  3810. {
  3811. // Properties:
  3812. /* readonly */
  3813. Array<String> columns;
  3814. /* readonly */
  3815. int64 numAffectedRows;
  3816. /* readonly */
  3817. uint numColumns;
  3818. /* readonly */
  3819. uint numRows;
  3820. /* readonly */
  3821. Array<Array<Variant>> row;
  3822. };
  3823. class DebugHud
  3824. {
  3825. // Methods:
  3826. void ClearAppStats();
  3827. bool HasSubscribedToEvent(Object, const String&);
  3828. bool HasSubscribedToEvent(const String&);
  3829. void ResetAppStats(const String&);
  3830. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3831. void SetAppStats(const String&, const String&);
  3832. void SetAppStats(const String&, const Variant&);
  3833. void Toggle(uint);
  3834. void ToggleAll();
  3835. void Update();
  3836. // Properties:
  3837. /* readonly */
  3838. String category;
  3839. XMLFile defaultStyle;
  3840. /* readonly */
  3841. Text memoryText;
  3842. uint mode;
  3843. /* readonly */
  3844. Text modeText;
  3845. float profilerInterval;
  3846. uint profilerMaxDepth;
  3847. /* readonly */
  3848. Text profilerText;
  3849. /* readonly */
  3850. int refs;
  3851. /* readonly */
  3852. Text statsText;
  3853. /* readonly */
  3854. StringHash type;
  3855. /* readonly */
  3856. String typeName;
  3857. bool useRendererStats;
  3858. /* readonly */
  3859. int weakRefs;
  3860. };
  3861. class DebugRenderer
  3862. {
  3863. // Methods:
  3864. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3865. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3866. void AddCross(const Vector3&, float, const Color&, bool = true);
  3867. void AddFrustum(const Frustum&, const Color&, bool = true);
  3868. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3869. void AddNode(Node, float = 1.0, bool = true);
  3870. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3871. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3872. void AddSkeleton(Skeleton, const Color&, bool = true);
  3873. void AddSphere(const Sphere&, const Color&, bool = true);
  3874. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3875. void ApplyAttributes();
  3876. void DrawDebugGeometry(DebugRenderer, bool);
  3877. Variant GetAttribute(const String&) const;
  3878. ValueAnimation GetAttributeAnimation(const String&) const;
  3879. float GetAttributeAnimationSpeed(const String&) const;
  3880. float GetAttributeAnimationTime(const String&) const;
  3881. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3882. Variant GetAttributeDefault(const String&) const;
  3883. bool GetInterceptNetworkUpdate(const String&) const;
  3884. bool HasSubscribedToEvent(Object, const String&);
  3885. bool HasSubscribedToEvent(const String&);
  3886. bool Load(File, bool = false);
  3887. bool Load(VectorBuffer&, bool = false);
  3888. bool LoadJSON(const JSONValue&, bool = false);
  3889. bool LoadXML(const XMLElement&, bool = false);
  3890. void MarkNetworkUpdate() const;
  3891. void Remove();
  3892. void RemoveAttributeAnimation(const String&);
  3893. void RemoveInstanceDefault();
  3894. void RemoveObjectAnimation();
  3895. void ResetToDefault();
  3896. bool Save(File) const;
  3897. bool Save(VectorBuffer&) const;
  3898. bool SaveJSON(JSONValue&) const;
  3899. bool SaveXML(XMLElement&) const;
  3900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3901. void SetAnimationTime(float);
  3902. bool SetAttribute(const String&, const Variant&);
  3903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3904. void SetAttributeAnimationSpeed(const String&, float);
  3905. void SetAttributeAnimationTime(const String&, float);
  3906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3907. void SetInterceptNetworkUpdate(const String&, bool);
  3908. // Properties:
  3909. bool animationEnabled;
  3910. /* readonly */
  3911. Array<Variant> attributeDefaults;
  3912. /* readonly */
  3913. Array<AttributeInfo> attributeInfos;
  3914. Array<Variant> attributes;
  3915. /* readonly */
  3916. String category;
  3917. bool enabled;
  3918. /* readonly */
  3919. bool enabledEffective;
  3920. /* readonly */
  3921. uint id;
  3922. /* readonly */
  3923. Node node;
  3924. /* readonly */
  3925. uint numAttributes;
  3926. ObjectAnimation objectAnimation;
  3927. /* readonly */
  3928. int refs;
  3929. bool temporary;
  3930. /* readonly */
  3931. StringHash type;
  3932. /* readonly */
  3933. String typeName;
  3934. /* readonly */
  3935. int weakRefs;
  3936. };
  3937. class DecalSet
  3938. {
  3939. // Methods:
  3940. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3941. void ApplyAttributes();
  3942. void DrawDebugGeometry(DebugRenderer, bool);
  3943. Variant GetAttribute(const String&) const;
  3944. ValueAnimation GetAttributeAnimation(const String&) const;
  3945. float GetAttributeAnimationSpeed(const String&) const;
  3946. float GetAttributeAnimationTime(const String&) const;
  3947. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3948. Variant GetAttributeDefault(const String&) const;
  3949. bool GetInterceptNetworkUpdate(const String&) const;
  3950. bool HasSubscribedToEvent(Object, const String&);
  3951. bool HasSubscribedToEvent(const String&);
  3952. bool IsInView(Camera) const;
  3953. bool Load(File, bool = false);
  3954. bool Load(VectorBuffer&, bool = false);
  3955. bool LoadJSON(const JSONValue&, bool = false);
  3956. bool LoadXML(const XMLElement&, bool = false);
  3957. void MarkNetworkUpdate() const;
  3958. void Remove();
  3959. void RemoveAllDecals();
  3960. void RemoveAttributeAnimation(const String&);
  3961. void RemoveDecals(uint);
  3962. void RemoveInstanceDefault();
  3963. void RemoveObjectAnimation();
  3964. void ResetToDefault();
  3965. bool Save(File) const;
  3966. bool Save(VectorBuffer&) const;
  3967. bool SaveJSON(JSONValue&) const;
  3968. bool SaveXML(XMLElement&) const;
  3969. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3970. void SetAnimationTime(float);
  3971. bool SetAttribute(const String&, const Variant&);
  3972. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3973. void SetAttributeAnimationSpeed(const String&, float);
  3974. void SetAttributeAnimationTime(const String&, float);
  3975. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3976. void SetInterceptNetworkUpdate(const String&, bool);
  3977. // Properties:
  3978. bool animationEnabled;
  3979. /* readonly */
  3980. Array<Variant> attributeDefaults;
  3981. /* readonly */
  3982. Array<AttributeInfo> attributeInfos;
  3983. Array<Variant> attributes;
  3984. /* readonly */
  3985. BoundingBox boundingBox;
  3986. bool castShadows;
  3987. /* readonly */
  3988. String category;
  3989. float drawDistance;
  3990. bool enabled;
  3991. /* readonly */
  3992. bool enabledEffective;
  3993. /* readonly */
  3994. uint id;
  3995. /* readonly */
  3996. bool inView;
  3997. uint lightMask;
  3998. float lodBias;
  3999. Material material;
  4000. uint maxIndices;
  4001. uint maxLights;
  4002. uint maxVertices;
  4003. /* readonly */
  4004. Node node;
  4005. /* readonly */
  4006. uint numAttributes;
  4007. /* readonly */
  4008. uint numDecals;
  4009. /* readonly */
  4010. uint numIndices;
  4011. /* readonly */
  4012. uint numVertices;
  4013. ObjectAnimation objectAnimation;
  4014. bool occludee;
  4015. bool occluder;
  4016. /* readonly */
  4017. int refs;
  4018. float shadowDistance;
  4019. uint shadowMask;
  4020. bool temporary;
  4021. /* readonly */
  4022. StringHash type;
  4023. /* readonly */
  4024. String typeName;
  4025. uint viewMask;
  4026. /* readonly */
  4027. int weakRefs;
  4028. /* readonly */
  4029. BoundingBox worldBoundingBox;
  4030. /* readonly */
  4031. Zone zone;
  4032. uint zoneMask;
  4033. };
  4034. class Deserializer
  4035. {
  4036. // Methods:
  4037. Array<uint8> Read(uint);
  4038. bool ReadBool();
  4039. BoundingBox ReadBoundingBox();
  4040. int8 ReadByte();
  4041. Color ReadColor();
  4042. double ReadDouble();
  4043. String ReadFileID();
  4044. float ReadFloat();
  4045. int ReadInt();
  4046. IntRect ReadIntRect();
  4047. IntVector2 ReadIntVector2();
  4048. String ReadLine();
  4049. Matrix3 ReadMatrix3();
  4050. Matrix3x4 ReadMatrix3x4();
  4051. Matrix4 ReadMatrix4();
  4052. uint ReadNetID();
  4053. Quaternion ReadPackedQuaternion();
  4054. Vector3 ReadPackedVector3(float);
  4055. Quaternion ReadQuaternion();
  4056. int16 ReadShort();
  4057. String ReadString();
  4058. StringHash ReadStringHash();
  4059. uint8 ReadUByte();
  4060. uint ReadUInt();
  4061. uint16 ReadUShort();
  4062. uint ReadVLE();
  4063. Variant ReadVariant();
  4064. VariantMap ReadVariantMap();
  4065. Vector2 ReadVector2();
  4066. Vector3 ReadVector3();
  4067. Vector4 ReadVector4();
  4068. VectorBuffer ReadVectorBuffer(uint);
  4069. uint Seek(uint);
  4070. // Properties:
  4071. /* readonly */
  4072. uint checksum;
  4073. /* readonly */
  4074. bool eof;
  4075. /* readonly */
  4076. String name;
  4077. /* readonly */
  4078. uint position;
  4079. /* readonly */
  4080. uint size;
  4081. };
  4082. class Dictionary
  4083. {
  4084. // Methods:
  4085. void Clear();
  4086. void Erase(const String&);
  4087. bool Exists(const String&) const;
  4088. bool Get(const String&, void*) const;
  4089. bool Get(const String&, double&) const;
  4090. bool Get(const String&, int64&) const;
  4091. void Set(const String&, const void*);
  4092. void Set(const String&, const double&);
  4093. void Set(const String&, const int64&);
  4094. // Properties:
  4095. /* readonly */
  4096. bool empty;
  4097. /* readonly */
  4098. Array<String> keys;
  4099. /* readonly */
  4100. uint length;
  4101. };
  4102. class DictionaryValue
  4103. {
  4104. };
  4105. class Drawable
  4106. {
  4107. // Methods:
  4108. void ApplyAttributes();
  4109. void DrawDebugGeometry(DebugRenderer, bool);
  4110. Variant GetAttribute(const String&) const;
  4111. ValueAnimation GetAttributeAnimation(const String&) const;
  4112. float GetAttributeAnimationSpeed(const String&) const;
  4113. float GetAttributeAnimationTime(const String&) const;
  4114. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4115. Variant GetAttributeDefault(const String&) const;
  4116. bool GetInterceptNetworkUpdate(const String&) const;
  4117. bool HasSubscribedToEvent(Object, const String&);
  4118. bool HasSubscribedToEvent(const String&);
  4119. bool IsInView(Camera) const;
  4120. bool Load(File, bool = false);
  4121. bool Load(VectorBuffer&, bool = false);
  4122. bool LoadJSON(const JSONValue&, bool = false);
  4123. bool LoadXML(const XMLElement&, bool = false);
  4124. void MarkNetworkUpdate() const;
  4125. void Remove();
  4126. void RemoveAttributeAnimation(const String&);
  4127. void RemoveInstanceDefault();
  4128. void RemoveObjectAnimation();
  4129. void ResetToDefault();
  4130. bool Save(File) const;
  4131. bool Save(VectorBuffer&) const;
  4132. bool SaveJSON(JSONValue&) const;
  4133. bool SaveXML(XMLElement&) const;
  4134. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4135. void SetAnimationTime(float);
  4136. bool SetAttribute(const String&, const Variant&);
  4137. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4138. void SetAttributeAnimationSpeed(const String&, float);
  4139. void SetAttributeAnimationTime(const String&, float);
  4140. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4141. void SetInterceptNetworkUpdate(const String&, bool);
  4142. // Properties:
  4143. bool animationEnabled;
  4144. /* readonly */
  4145. Array<Variant> attributeDefaults;
  4146. /* readonly */
  4147. Array<AttributeInfo> attributeInfos;
  4148. Array<Variant> attributes;
  4149. /* readonly */
  4150. BoundingBox boundingBox;
  4151. bool castShadows;
  4152. /* readonly */
  4153. String category;
  4154. float drawDistance;
  4155. bool enabled;
  4156. /* readonly */
  4157. bool enabledEffective;
  4158. /* readonly */
  4159. uint id;
  4160. /* readonly */
  4161. bool inView;
  4162. uint lightMask;
  4163. float lodBias;
  4164. uint maxLights;
  4165. /* readonly */
  4166. Node node;
  4167. /* readonly */
  4168. uint numAttributes;
  4169. ObjectAnimation objectAnimation;
  4170. bool occludee;
  4171. bool occluder;
  4172. /* readonly */
  4173. int refs;
  4174. float shadowDistance;
  4175. uint shadowMask;
  4176. bool temporary;
  4177. /* readonly */
  4178. StringHash type;
  4179. /* readonly */
  4180. String typeName;
  4181. uint viewMask;
  4182. /* readonly */
  4183. int weakRefs;
  4184. /* readonly */
  4185. BoundingBox worldBoundingBox;
  4186. uint zoneMask;
  4187. };
  4188. class Drawable2D
  4189. {
  4190. // Methods:
  4191. void ApplyAttributes();
  4192. void DrawDebugGeometry(DebugRenderer, bool);
  4193. Variant GetAttribute(const String&) const;
  4194. ValueAnimation GetAttributeAnimation(const String&) const;
  4195. float GetAttributeAnimationSpeed(const String&) const;
  4196. float GetAttributeAnimationTime(const String&) const;
  4197. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4198. Variant GetAttributeDefault(const String&) const;
  4199. bool GetInterceptNetworkUpdate(const String&) const;
  4200. bool HasSubscribedToEvent(Object, const String&);
  4201. bool HasSubscribedToEvent(const String&);
  4202. bool IsInView(Camera) const;
  4203. bool Load(File, bool = false);
  4204. bool Load(VectorBuffer&, bool = false);
  4205. bool LoadJSON(const JSONValue&, bool = false);
  4206. bool LoadXML(const XMLElement&, bool = false);
  4207. void MarkNetworkUpdate() const;
  4208. void Remove();
  4209. void RemoveAttributeAnimation(const String&);
  4210. void RemoveInstanceDefault();
  4211. void RemoveObjectAnimation();
  4212. void ResetToDefault();
  4213. bool Save(File) const;
  4214. bool Save(VectorBuffer&) const;
  4215. bool SaveJSON(JSONValue&) const;
  4216. bool SaveXML(XMLElement&) const;
  4217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4218. void SetAnimationTime(float);
  4219. bool SetAttribute(const String&, const Variant&);
  4220. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4221. void SetAttributeAnimationSpeed(const String&, float);
  4222. void SetAttributeAnimationTime(const String&, float);
  4223. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4224. void SetInterceptNetworkUpdate(const String&, bool);
  4225. // Properties:
  4226. bool animationEnabled;
  4227. /* readonly */
  4228. Array<Variant> attributeDefaults;
  4229. /* readonly */
  4230. Array<AttributeInfo> attributeInfos;
  4231. Array<Variant> attributes;
  4232. /* readonly */
  4233. BoundingBox boundingBox;
  4234. bool castShadows;
  4235. /* readonly */
  4236. String category;
  4237. float drawDistance;
  4238. bool enabled;
  4239. /* readonly */
  4240. bool enabledEffective;
  4241. /* readonly */
  4242. uint id;
  4243. /* readonly */
  4244. bool inView;
  4245. int layer;
  4246. uint lightMask;
  4247. float lodBias;
  4248. uint maxLights;
  4249. /* readonly */
  4250. Node node;
  4251. /* readonly */
  4252. uint numAttributes;
  4253. ObjectAnimation objectAnimation;
  4254. bool occludee;
  4255. bool occluder;
  4256. int orderInLayer;
  4257. /* readonly */
  4258. int refs;
  4259. float shadowDistance;
  4260. uint shadowMask;
  4261. bool temporary;
  4262. /* readonly */
  4263. StringHash type;
  4264. /* readonly */
  4265. String typeName;
  4266. uint viewMask;
  4267. /* readonly */
  4268. int weakRefs;
  4269. /* readonly */
  4270. BoundingBox worldBoundingBox;
  4271. uint zoneMask;
  4272. };
  4273. class DropDownList
  4274. {
  4275. // Methods:
  4276. void AddChild(UIElement);
  4277. void AddItem(UIElement);
  4278. void AddTag(const String&);
  4279. void AddTags(const String&, int8 = ';');
  4280. void ApplyAttributes();
  4281. void BringToFront();
  4282. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4283. void DisableLayoutUpdate();
  4284. IntVector2 ElementToScreen(const IntVector2&);
  4285. void EnableLayoutUpdate();
  4286. uint FindChild(UIElement) const;
  4287. Variant GetAttribute(const String&) const;
  4288. ValueAnimation GetAttributeAnimation(const String&) const;
  4289. float GetAttributeAnimationSpeed(const String&) const;
  4290. float GetAttributeAnimationTime(const String&) const;
  4291. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4292. Variant GetAttributeDefault(const String&) const;
  4293. UIElement GetChild(const String&, bool = false) const;
  4294. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4295. Array<UIElement> GetChildren(bool = false) const;
  4296. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4297. UIElement GetElementEventSender() const;
  4298. bool GetInterceptNetworkUpdate(const String&) const;
  4299. Array<UIElement> GetItems() const;
  4300. uint GetNumChildren(bool) const;
  4301. bool HasSubscribedToEvent(Object, const String&);
  4302. bool HasSubscribedToEvent(const String&);
  4303. bool HasTag(const String&) const;
  4304. void InsertChild(uint, UIElement);
  4305. void InsertItem(uint, UIElement);
  4306. bool IsInside(IntVector2, bool);
  4307. bool IsInsideCombined(IntVector2, bool);
  4308. bool Load(File, bool = false);
  4309. bool Load(VectorBuffer&, bool = false);
  4310. bool LoadChildXML(XMLFile, XMLFile = null);
  4311. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4312. bool LoadJSON(const JSONValue&, bool = false);
  4313. bool LoadXML(File);
  4314. bool LoadXML(VectorBuffer&);
  4315. bool LoadXML(XMLFile, XMLFile);
  4316. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4317. bool LoadXML(const XMLElement&, bool = false);
  4318. void MarkNetworkUpdate() const;
  4319. void Remove();
  4320. void RemoveAllChildren();
  4321. void RemoveAllItems();
  4322. void RemoveAllTags();
  4323. void RemoveAttributeAnimation(const String&);
  4324. void RemoveChild(UIElement, uint = 0);
  4325. void RemoveChild(uint);
  4326. void RemoveInstanceDefault();
  4327. void RemoveItem(UIElement);
  4328. void RemoveItem(uint);
  4329. void RemoveObjectAnimation();
  4330. bool RemoveTag(const String&);
  4331. void ResetDeepEnabled();
  4332. void ResetToDefault();
  4333. bool Save(File) const;
  4334. bool Save(VectorBuffer&) const;
  4335. bool SaveJSON(JSONValue&) const;
  4336. bool SaveXML(File, const String& = "\t");
  4337. bool SaveXML(VectorBuffer&, const String& = "\t");
  4338. bool SaveXML(XMLElement&) const;
  4339. IntVector2 ScreenToElement(const IntVector2&);
  4340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4341. void SetAccelerator(int, int);
  4342. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4343. void SetAnimationTime(float);
  4344. bool SetAttribute(const String&, const Variant&);
  4345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4346. void SetAttributeAnimationSpeed(const String&, float);
  4347. void SetAttributeAnimationTime(const String&, float);
  4348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4349. void SetDeepEnabled(bool);
  4350. void SetEnabledRecursive(bool);
  4351. void SetFixedHeight(int);
  4352. void SetFixedSize(int, int);
  4353. void SetFixedWidth(int);
  4354. void SetFullImageRect();
  4355. void SetHoverOffset(int, int);
  4356. void SetInterceptNetworkUpdate(const String&, bool);
  4357. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4358. void SetMaxSize(int, int);
  4359. void SetMinSize(int, int);
  4360. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4361. void SetPosition(int, int);
  4362. void SetPressedChildOffset(int, int);
  4363. void SetPressedOffset(int, int);
  4364. void SetRepeat(float, float);
  4365. void SetSize(int, int);
  4366. bool SetStyle(const String&, XMLFile = null);
  4367. bool SetStyle(const XMLElement&);
  4368. bool SetStyleAuto(XMLFile = null);
  4369. void UpdateLayout();
  4370. const Variant& GetVar(const StringHash&);
  4371. UIElement getPopup() const;
  4372. // Properties:
  4373. /* readonly */
  4374. int acceleratorKey;
  4375. /* readonly */
  4376. int acceleratorQualifiers;
  4377. bool animationEnabled;
  4378. /* readonly */
  4379. Array<Variant> attributeDefaults;
  4380. /* readonly */
  4381. Array<AttributeInfo> attributeInfos;
  4382. Array<Variant> attributes;
  4383. BlendMode blendMode;
  4384. IntRect border;
  4385. bool bringToBack;
  4386. bool bringToFront;
  4387. /* readonly */
  4388. String category;
  4389. /* readonly */
  4390. IntVector2 childOffset;
  4391. /* readonly */
  4392. Array<UIElement> children;
  4393. IntRect clipBorder;
  4394. bool clipChildren;
  4395. /* writeonly */
  4396. Color color;
  4397. /* readonly */
  4398. bool colorGradient;
  4399. Array<Color> colors;
  4400. /* readonly */
  4401. IntRect combinedScreenRect;
  4402. XMLFile defaultStyle;
  4403. /* readonly */
  4404. float derivedOpacity;
  4405. /* readonly */
  4406. uint dragButtonCombo;
  4407. /* readonly */
  4408. int dragButtonCount;
  4409. uint dragDropMode;
  4410. bool editable;
  4411. bool elementEventSender;
  4412. bool enabled;
  4413. /* readonly */
  4414. bool enabledSelf;
  4415. /* readonly */
  4416. bool fixedHeight;
  4417. /* readonly */
  4418. bool fixedSize;
  4419. /* readonly */
  4420. bool fixedWidth;
  4421. bool focus;
  4422. FocusMode focusMode;
  4423. int height;
  4424. HorizontalAlignment horizontalAlignment;
  4425. IntVector2 hoverOffset;
  4426. /* readonly */
  4427. bool hovering;
  4428. IntRect imageBorder;
  4429. IntRect imageRect;
  4430. int indent;
  4431. int indentSpacing;
  4432. /* readonly */
  4433. int indentWidth;
  4434. bool internal;
  4435. /* readonly */
  4436. Array<UIElement> items;
  4437. IntRect layoutBorder;
  4438. Vector2 layoutFlexScale;
  4439. LayoutMode layoutMode;
  4440. int layoutSpacing;
  4441. /* readonly */
  4442. ListView listView;
  4443. int maxHeight;
  4444. IntVector2 maxSize;
  4445. int maxWidth;
  4446. int minHeight;
  4447. IntVector2 minSize;
  4448. int minWidth;
  4449. String name;
  4450. /* readonly */
  4451. uint numAllChildren;
  4452. /* readonly */
  4453. uint numAttributes;
  4454. /* readonly */
  4455. uint numChildren;
  4456. /* readonly */
  4457. uint numItems;
  4458. ObjectAnimation objectAnimation;
  4459. float opacity;
  4460. UIElement parent;
  4461. /* readonly */
  4462. UIElement placeholder;
  4463. String placeholderText;
  4464. IntVector2 position;
  4465. /* readonly */
  4466. bool pressed;
  4467. IntVector2 pressedChildOffset;
  4468. IntVector2 pressedOffset;
  4469. int priority;
  4470. /* readonly */
  4471. int refs;
  4472. float repeatDelay;
  4473. float repeatRate;
  4474. bool resizePopup;
  4475. /* readonly */
  4476. UIElement root;
  4477. /* readonly */
  4478. IntVector2 screenPosition;
  4479. bool selected;
  4480. /* readonly */
  4481. UIElement selectedItem;
  4482. uint selection;
  4483. bool showPopup;
  4484. IntVector2 size;
  4485. bool sortChildren;
  4486. String style;
  4487. /* readonly */
  4488. Array<String> tags;
  4489. bool temporary;
  4490. Texture texture;
  4491. bool tiled;
  4492. TraversalMode traversalMode;
  4493. /* readonly */
  4494. StringHash type;
  4495. /* readonly */
  4496. String typeName;
  4497. bool useDerivedOpacity;
  4498. /* readonly */
  4499. VariantMap vars;
  4500. VerticalAlignment verticalAlignment;
  4501. bool visible;
  4502. /* readonly */
  4503. bool visibleEffective;
  4504. /* readonly */
  4505. int weakRefs;
  4506. int width;
  4507. };
  4508. class DynamicNavigationMesh
  4509. {
  4510. // Methods:
  4511. void ApplyAttributes();
  4512. bool Build();
  4513. bool Build(const BoundingBox&);
  4514. void DrawDebugGeometry(DebugRenderer, bool);
  4515. void DrawDebugGeometry(bool);
  4516. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4518. float GetAreaCost(uint) const;
  4519. Variant GetAttribute(const String&) const;
  4520. ValueAnimation GetAttributeAnimation(const String&) const;
  4521. float GetAttributeAnimationSpeed(const String&) const;
  4522. float GetAttributeAnimationTime(const String&) const;
  4523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4524. Variant GetAttributeDefault(const String&) const;
  4525. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4526. bool GetInterceptNetworkUpdate(const String&) const;
  4527. Vector3 GetRandomPoint();
  4528. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. bool HasSubscribedToEvent(Object, const String&);
  4530. bool HasSubscribedToEvent(const String&);
  4531. bool Load(File, bool = false);
  4532. bool Load(VectorBuffer&, bool = false);
  4533. bool LoadJSON(const JSONValue&, bool = false);
  4534. bool LoadXML(const XMLElement&, bool = false);
  4535. void MarkNetworkUpdate() const;
  4536. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4537. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4538. void Remove();
  4539. void RemoveAttributeAnimation(const String&);
  4540. void RemoveInstanceDefault();
  4541. void RemoveObjectAnimation();
  4542. void ResetToDefault();
  4543. bool Save(File) const;
  4544. bool Save(VectorBuffer&) const;
  4545. bool SaveJSON(JSONValue&) const;
  4546. bool SaveXML(XMLElement&) const;
  4547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4548. void SetAnimationTime(float);
  4549. void SetAreaCost(uint, float);
  4550. bool SetAttribute(const String&, const Variant&);
  4551. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4552. void SetAttributeAnimationSpeed(const String&, float);
  4553. void SetAttributeAnimationTime(const String&, float);
  4554. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4555. void SetInterceptNetworkUpdate(const String&, bool);
  4556. // Properties:
  4557. float agentHeight;
  4558. float agentMaxClimb;
  4559. float agentMaxSlope;
  4560. float agentRadius;
  4561. bool animationEnabled;
  4562. /* readonly */
  4563. Array<Variant> attributeDefaults;
  4564. /* readonly */
  4565. Array<AttributeInfo> attributeInfos;
  4566. Array<Variant> attributes;
  4567. /* readonly */
  4568. BoundingBox boundingBox;
  4569. /* readonly */
  4570. String category;
  4571. float cellHeight;
  4572. float cellSize;
  4573. float detailSampleDistance;
  4574. float detailSampleMaxError;
  4575. bool drawNavAreas;
  4576. bool drawObstacles;
  4577. bool drawOffMeshConnections;
  4578. float edgeMaxError;
  4579. float edgeMaxLength;
  4580. bool enabled;
  4581. /* readonly */
  4582. bool enabledEffective;
  4583. /* readonly */
  4584. uint id;
  4585. /* readonly */
  4586. bool initialized;
  4587. bool maxLayers;
  4588. uint maxObstacles;
  4589. /* readonly */
  4590. Node node;
  4591. /* readonly */
  4592. uint numAttributes;
  4593. /* readonly */
  4594. IntVector2 numTiles;
  4595. ObjectAnimation objectAnimation;
  4596. Vector3 padding;
  4597. NavmeshPartitionType partitionType;
  4598. /* readonly */
  4599. int refs;
  4600. float regionMergeSize;
  4601. float regionMinSize;
  4602. bool temporary;
  4603. int tileSize;
  4604. /* readonly */
  4605. StringHash type;
  4606. /* readonly */
  4607. String typeName;
  4608. /* readonly */
  4609. int weakRefs;
  4610. /* readonly */
  4611. BoundingBox worldBoundingBox;
  4612. };
  4613. class Engine
  4614. {
  4615. // Methods:
  4616. Console CreateConsole();
  4617. DebugHud CreateDebugHud();
  4618. void DumpMemory();
  4619. void DumpProfiler();
  4620. void DumpResources(bool = false);
  4621. void Exit();
  4622. bool HasSubscribedToEvent(Object, const String&);
  4623. bool HasSubscribedToEvent(const String&);
  4624. void RunFrame();
  4625. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4626. // Properties:
  4627. bool autoExit;
  4628. /* readonly */
  4629. String category;
  4630. /* readonly */
  4631. bool exiting;
  4632. /* readonly */
  4633. bool headless;
  4634. /* readonly */
  4635. bool initialized;
  4636. int maxFps;
  4637. int maxInactiveFps;
  4638. int minFps;
  4639. bool pauseMinimized;
  4640. /* readonly */
  4641. int refs;
  4642. int timeStepSmoothing;
  4643. /* readonly */
  4644. StringHash type;
  4645. /* readonly */
  4646. String typeName;
  4647. /* readonly */
  4648. int weakRefs;
  4649. };
  4650. class File
  4651. {
  4652. // Methods:
  4653. void Close();
  4654. bool HasSubscribedToEvent(Object, const String&);
  4655. bool HasSubscribedToEvent(const String&);
  4656. bool Open(const String&, FileMode = FILE_READ);
  4657. Array<uint8> Read(uint);
  4658. bool ReadBool();
  4659. BoundingBox ReadBoundingBox();
  4660. int8 ReadByte();
  4661. Color ReadColor();
  4662. double ReadDouble();
  4663. String ReadFileID();
  4664. float ReadFloat();
  4665. int ReadInt();
  4666. IntRect ReadIntRect();
  4667. IntVector2 ReadIntVector2();
  4668. String ReadLine();
  4669. Matrix3 ReadMatrix3();
  4670. Matrix3x4 ReadMatrix3x4();
  4671. Matrix4 ReadMatrix4();
  4672. uint ReadNetID();
  4673. Quaternion ReadPackedQuaternion();
  4674. Vector3 ReadPackedVector3(float);
  4675. Quaternion ReadQuaternion();
  4676. int16 ReadShort();
  4677. String ReadString();
  4678. StringHash ReadStringHash();
  4679. uint8 ReadUByte();
  4680. uint ReadUInt();
  4681. uint16 ReadUShort();
  4682. uint ReadVLE();
  4683. Variant ReadVariant();
  4684. VariantMap ReadVariantMap();
  4685. Vector2 ReadVector2();
  4686. Vector3 ReadVector3();
  4687. Vector4 ReadVector4();
  4688. VectorBuffer ReadVectorBuffer(uint);
  4689. uint Seek(uint);
  4690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4691. uint Write(Array<uint8>);
  4692. bool WriteBool(bool);
  4693. bool WriteBoundingBox(const BoundingBox&);
  4694. bool WriteByte(int8);
  4695. bool WriteColor(const Color&);
  4696. bool WriteDouble(double);
  4697. bool WriteFileID(const String&);
  4698. bool WriteFloat(float);
  4699. bool WriteInt(int);
  4700. bool WriteIntRect(const IntRect&);
  4701. bool WriteIntVector2(const IntVector2&);
  4702. bool WriteLine(const String&);
  4703. bool WriteMatrix3(const Matrix3&);
  4704. bool WriteMatrix3x4(const Matrix3x4&);
  4705. bool WriteMatrix4(const Matrix4&);
  4706. bool WriteNetID(uint);
  4707. bool WritePackedQuaternion(const Quaternion&);
  4708. bool WritePackedVector3(const Vector3&, float);
  4709. bool WriteQuaternion(const Quaternion&);
  4710. bool WriteShort(int16);
  4711. bool WriteString(const String&);
  4712. bool WriteStringHash(const StringHash&);
  4713. bool WriteUByte(uint8);
  4714. bool WriteUInt(uint);
  4715. bool WriteUShort(uint16);
  4716. bool WriteVLE(uint);
  4717. bool WriteVariant(const Variant&);
  4718. bool WriteVariantMap(const VariantMap&);
  4719. bool WriteVector2(const Vector2&);
  4720. bool WriteVector3(const Vector3&);
  4721. bool WriteVector4(const Vector4&);
  4722. bool WriteVectorBuffer(const VectorBuffer&);
  4723. // Properties:
  4724. /* readonly */
  4725. String category;
  4726. /* readonly */
  4727. uint checksum;
  4728. /* readonly */
  4729. bool eof;
  4730. /* readonly */
  4731. FileMode mode;
  4732. /* readonly */
  4733. String name;
  4734. /* readonly */
  4735. bool open;
  4736. /* readonly */
  4737. bool packaged;
  4738. /* readonly */
  4739. uint position;
  4740. /* readonly */
  4741. int refs;
  4742. /* readonly */
  4743. uint size;
  4744. /* readonly */
  4745. StringHash type;
  4746. /* readonly */
  4747. String typeName;
  4748. /* readonly */
  4749. int weakRefs;
  4750. };
  4751. class FileSelector
  4752. {
  4753. // Methods:
  4754. bool HasSubscribedToEvent(Object, const String&);
  4755. bool HasSubscribedToEvent(const String&);
  4756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4757. void SetButtonTexts(const String&, const String&);
  4758. void SetFilters(Array<String>, uint);
  4759. void UpdateElements();
  4760. // Properties:
  4761. /* readonly */
  4762. Button cancelButton;
  4763. /* readonly */
  4764. String category;
  4765. XMLFile defaultStyle;
  4766. bool directoryMode;
  4767. /* readonly */
  4768. ListView fileList;
  4769. String fileName;
  4770. /* readonly */
  4771. LineEdit fileNameEdit;
  4772. /* readonly */
  4773. String filter;
  4774. /* readonly */
  4775. uint filterIndex;
  4776. /* readonly */
  4777. DropDownList filterList;
  4778. /* readonly */
  4779. Button okButton;
  4780. String path;
  4781. /* readonly */
  4782. LineEdit pathEdit;
  4783. /* readonly */
  4784. int refs;
  4785. String title;
  4786. /* readonly */
  4787. Text titleText;
  4788. /* readonly */
  4789. StringHash type;
  4790. /* readonly */
  4791. String typeName;
  4792. /* readonly */
  4793. int weakRefs;
  4794. /* readonly */
  4795. Window window;
  4796. };
  4797. class FileSystem
  4798. {
  4799. // Methods:
  4800. bool Copy(const String&, const String&);
  4801. bool CreateDir(const String&);
  4802. bool Delete(const String&);
  4803. bool DirExists(const String&) const;
  4804. bool FileExists(const String&) const;
  4805. String GetAppPreferencesDir(const String&, const String&) const;
  4806. uint GetLastModifiedTime(const String&) const;
  4807. bool HasSubscribedToEvent(Object, const String&);
  4808. bool HasSubscribedToEvent(const String&);
  4809. bool Rename(const String&, const String&);
  4810. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4812. bool SetLastModifiedTime(const String&, uint);
  4813. int SystemCommand(const String&, bool = false);
  4814. uint SystemCommandAsync(const String&);
  4815. bool SystemOpen(const String&, const String&);
  4816. int SystemRun(const String&, Array<String>);
  4817. uint SystemRunAsync(const String&, Array<String>);
  4818. // Properties:
  4819. /* readonly */
  4820. String category;
  4821. String currentDir;
  4822. bool executeConsoleCommands;
  4823. /* readonly */
  4824. String programDir;
  4825. /* readonly */
  4826. int refs;
  4827. /* readonly */
  4828. StringHash type;
  4829. /* readonly */
  4830. String typeName;
  4831. /* readonly */
  4832. String userDocumentsDir;
  4833. /* readonly */
  4834. int weakRefs;
  4835. };
  4836. class FocusParameters
  4837. {
  4838. // Properties:
  4839. bool autoSize;
  4840. bool focus;
  4841. float minView;
  4842. bool nonUniform;
  4843. float quantize;
  4844. };
  4845. class Font
  4846. {
  4847. // Methods:
  4848. IntVector2 GetTotalGlyphOffset(int) const;
  4849. bool HasSubscribedToEvent(Object, const String&);
  4850. bool HasSubscribedToEvent(const String&);
  4851. bool Load(File);
  4852. bool Load(VectorBuffer&);
  4853. bool Save(File) const;
  4854. bool Save(VectorBuffer&) const;
  4855. bool SaveXML(File, int, bool = false, const String& = "\t");
  4856. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4857. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4859. // Properties:
  4860. IntVector2 absoluteGlyphOffset;
  4861. /* readonly */
  4862. String category;
  4863. /* readonly */
  4864. uint memoryUse;
  4865. String name;
  4866. /* readonly */
  4867. int refs;
  4868. Vector2 scaledGlyphOffset;
  4869. /* readonly */
  4870. StringHash type;
  4871. /* readonly */
  4872. String typeName;
  4873. /* readonly */
  4874. uint useTimer;
  4875. /* readonly */
  4876. int weakRefs;
  4877. };
  4878. class Frustum
  4879. {
  4880. // Methods:
  4881. void Define(const BoundingBox&, const Matrix3x4&);
  4882. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4883. void Define(float, float, float, float, float, const Matrix3x4&);
  4884. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4885. float Distance(const Vector3&) const;
  4886. Intersection IsInside(const BoundingBox&);
  4887. Intersection IsInside(const Sphere&);
  4888. Intersection IsInside(const Vector3&);
  4889. Intersection IsInsideFast(const BoundingBox&) const;
  4890. Intersection IsInsideFast(const Sphere&) const;
  4891. void Transform(const Matrix3&);
  4892. void Transform(const Matrix3x4&);
  4893. Frustum Transformed(const Matrix3&) const;
  4894. Frustum Transformed(const Matrix3x4&) const;
  4895. // Properties:
  4896. /* readonly */
  4897. Array<Vector3> vertices;
  4898. };
  4899. class Geometry
  4900. {
  4901. // Methods:
  4902. bool HasSubscribedToEvent(Object, const String&);
  4903. bool HasSubscribedToEvent(const String&);
  4904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4905. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4906. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4907. void SetIndexBuffer(IndexBuffer);
  4908. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4909. // Properties:
  4910. /* readonly */
  4911. String category;
  4912. /* readonly */
  4913. bool empty;
  4914. IndexBuffer indexBuffer;
  4915. /* readonly */
  4916. uint indexCount;
  4917. /* readonly */
  4918. uint indexStart;
  4919. float lodDistance;
  4920. uint numVertexBuffers;
  4921. /* readonly */
  4922. PrimitiveType primitiveType;
  4923. /* readonly */
  4924. int refs;
  4925. /* readonly */
  4926. StringHash type;
  4927. /* readonly */
  4928. String typeName;
  4929. /* readonly */
  4930. Array<VertexBuffer> vertexBuffers;
  4931. /* readonly */
  4932. uint vertexCount;
  4933. /* readonly */
  4934. Array<uint> vertexElementMasks;
  4935. /* readonly */
  4936. uint vertexStart;
  4937. /* readonly */
  4938. int weakRefs;
  4939. };
  4940. class Graphics
  4941. {
  4942. // Methods:
  4943. void BeginDumpShaders(const String&);
  4944. void Close();
  4945. void EndDumpShaders();
  4946. bool HasSubscribedToEvent(Object, const String&);
  4947. bool HasSubscribedToEvent(const String&);
  4948. void Maximize();
  4949. void Minimize();
  4950. void PrecacheShaders(File);
  4951. void PrecacheShaders(VectorBuffer&);
  4952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4953. bool SetMode(int, int);
  4954. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4955. void SetWindowPosition(int, int);
  4956. bool TakeScreenShot(Image);
  4957. bool ToggleFullscreen();
  4958. // Properties:
  4959. /* readonly */
  4960. String apiName;
  4961. /* readonly */
  4962. bool borderless;
  4963. /* readonly */
  4964. String category;
  4965. /* readonly */
  4966. bool deferredSupport;
  4967. /* readonly */
  4968. IntVector2 desktopResolution;
  4969. /* readonly */
  4970. bool deviceLost;
  4971. bool flushGPU;
  4972. /* readonly */
  4973. bool fullscreen;
  4974. /* readonly */
  4975. bool hardwareShadowSupport;
  4976. /* readonly */
  4977. int height;
  4978. /* readonly */
  4979. bool initialized;
  4980. /* readonly */
  4981. bool instancingSupport;
  4982. /* readonly */
  4983. bool lightPrepassSupport;
  4984. /* readonly */
  4985. int multiSample;
  4986. /* readonly */
  4987. Array<int> multiSampleLevels;
  4988. /* readonly */
  4989. uint numBatches;
  4990. /* readonly */
  4991. uint numPrimitives;
  4992. String orientations;
  4993. /* readonly */
  4994. bool readableDepthSupport;
  4995. /* readonly */
  4996. int refs;
  4997. /* readonly */
  4998. bool resizable;
  4999. /* readonly */
  5000. Array<IntVector2> resolutions;
  5001. bool sRGB;
  5002. /* readonly */
  5003. bool sRGBSupport;
  5004. /* readonly */
  5005. bool sRGBWriteSupport;
  5006. /* readonly */
  5007. bool tripleBuffer;
  5008. /* readonly */
  5009. StringHash type;
  5010. /* readonly */
  5011. String typeName;
  5012. /* readonly */
  5013. bool vsync;
  5014. /* readonly */
  5015. int weakRefs;
  5016. /* readonly */
  5017. int width;
  5018. /* writeonly */
  5019. Image windowIcon;
  5020. IntVector2 windowPosition;
  5021. String windowTitle;
  5022. };
  5023. class HttpRequest
  5024. {
  5025. // Methods:
  5026. Array<uint8> Read(uint);
  5027. bool ReadBool();
  5028. BoundingBox ReadBoundingBox();
  5029. int8 ReadByte();
  5030. Color ReadColor();
  5031. double ReadDouble();
  5032. String ReadFileID();
  5033. float ReadFloat();
  5034. int ReadInt();
  5035. IntRect ReadIntRect();
  5036. IntVector2 ReadIntVector2();
  5037. String ReadLine();
  5038. Matrix3 ReadMatrix3();
  5039. Matrix3x4 ReadMatrix3x4();
  5040. Matrix4 ReadMatrix4();
  5041. uint ReadNetID();
  5042. Quaternion ReadPackedQuaternion();
  5043. Vector3 ReadPackedVector3(float);
  5044. Quaternion ReadQuaternion();
  5045. int16 ReadShort();
  5046. String ReadString();
  5047. StringHash ReadStringHash();
  5048. uint8 ReadUByte();
  5049. uint ReadUInt();
  5050. uint16 ReadUShort();
  5051. uint ReadVLE();
  5052. Variant ReadVariant();
  5053. VariantMap ReadVariantMap();
  5054. Vector2 ReadVector2();
  5055. Vector3 ReadVector3();
  5056. Vector4 ReadVector4();
  5057. VectorBuffer ReadVectorBuffer(uint);
  5058. uint Seek(uint);
  5059. // Properties:
  5060. /* readonly */
  5061. uint availableSize;
  5062. /* readonly */
  5063. uint checksum;
  5064. /* readonly */
  5065. bool eof;
  5066. /* readonly */
  5067. String error;
  5068. /* readonly */
  5069. String name;
  5070. /* readonly */
  5071. bool open;
  5072. /* readonly */
  5073. uint position;
  5074. /* readonly */
  5075. int refs;
  5076. /* readonly */
  5077. uint size;
  5078. /* readonly */
  5079. HttpRequestState state;
  5080. /* readonly */
  5081. String url;
  5082. /* readonly */
  5083. String verb;
  5084. /* readonly */
  5085. int weakRefs;
  5086. };
  5087. class Image
  5088. {
  5089. // Methods:
  5090. void Clear(const Color&);
  5091. void ClearInt(uint);
  5092. bool FlipHorizontal();
  5093. bool FlipVertical();
  5094. Color GetPixel(int, int) const;
  5095. Color GetPixel(int, int, int) const;
  5096. Color GetPixelBilinear(float, float) const;
  5097. uint GetPixelInt(int, int) const;
  5098. uint GetPixelInt(int, int, int) const;
  5099. Color GetPixelTrilinear(float, float, float) const;
  5100. Image GetSubimage(const IntRect&) const;
  5101. bool HasSubscribedToEvent(Object, const String&);
  5102. bool HasSubscribedToEvent(const String&);
  5103. bool Load(File);
  5104. bool Load(VectorBuffer&);
  5105. bool LoadColorLUT(File);
  5106. bool LoadColorLUT(VectorBuffer&);
  5107. bool Resize(int, int);
  5108. bool Save(File) const;
  5109. bool Save(VectorBuffer&) const;
  5110. bool SaveBMP(const String&) const;
  5111. bool SaveJPG(const String&, int) const;
  5112. bool SavePNG(const String&) const;
  5113. bool SaveTGA(const String&) const;
  5114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5115. void SetPixel(int, int, const Color&);
  5116. void SetPixel(int, int, int, const Color&);
  5117. void SetPixelInt(int, int, int, uint);
  5118. void SetPixelInt(int, int, uint);
  5119. bool SetSize(int, int, int, uint);
  5120. bool SetSize(int, int, uint);
  5121. // Properties:
  5122. /* readonly */
  5123. bool array;
  5124. /* readonly */
  5125. String category;
  5126. /* readonly */
  5127. uint components;
  5128. /* readonly */
  5129. bool compressed;
  5130. /* readonly */
  5131. CompressedFormat compressedFormat;
  5132. /* readonly */
  5133. bool cubemap;
  5134. /* readonly */
  5135. int depth;
  5136. /* readonly */
  5137. int height;
  5138. /* readonly */
  5139. uint memoryUse;
  5140. String name;
  5141. /* readonly */
  5142. uint numCompressedLevels;
  5143. /* readonly */
  5144. int refs;
  5145. /* readonly */
  5146. bool sRGB;
  5147. /* readonly */
  5148. StringHash type;
  5149. /* readonly */
  5150. String typeName;
  5151. /* readonly */
  5152. uint useTimer;
  5153. /* readonly */
  5154. int weakRefs;
  5155. /* readonly */
  5156. int width;
  5157. };
  5158. class IndexBuffer
  5159. {
  5160. // Methods:
  5161. VectorBuffer GetData();
  5162. bool HasSubscribedToEvent(Object, const String&);
  5163. bool HasSubscribedToEvent(const String&);
  5164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5165. bool SetData(VectorBuffer&);
  5166. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5167. void SetSize(uint, bool, bool = false);
  5168. // Properties:
  5169. /* readonly */
  5170. String category;
  5171. /* readonly */
  5172. bool dynamic;
  5173. /* readonly */
  5174. uint indexCount;
  5175. /* readonly */
  5176. uint indexSize;
  5177. /* readonly */
  5178. int refs;
  5179. bool shadowed;
  5180. /* readonly */
  5181. StringHash type;
  5182. /* readonly */
  5183. String typeName;
  5184. /* readonly */
  5185. int weakRefs;
  5186. };
  5187. class Input
  5188. {
  5189. // Methods:
  5190. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5191. int GetKeyFromName(const String&) const;
  5192. int GetKeyFromScancode(int) const;
  5193. String GetKeyName(int) const;
  5194. int GetScancodeFromKey(int) const;
  5195. int GetScancodeFromName(const String&) const;
  5196. String GetScancodeName(int) const;
  5197. bool HasSubscribedToEvent(Object, const String&);
  5198. bool HasSubscribedToEvent(const String&);
  5199. uint LoadGestures(File);
  5200. uint LoadGestures(VectorBuffer&);
  5201. bool RecordGesture();
  5202. void RemoveAllGestures();
  5203. bool RemoveGesture(uint);
  5204. bool RemoveScreenJoystick(int);
  5205. void ResetMouseGrabbed();
  5206. void ResetMouseMode();
  5207. void ResetMouseVisible();
  5208. bool SaveGesture(File, uint);
  5209. bool SaveGesture(VectorBuffer&, uint);
  5210. bool SaveGestures(File);
  5211. bool SaveGestures(VectorBuffer&);
  5212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5213. void SetMouseGrabbed(bool, bool = false);
  5214. void SetMouseMode(MouseMode, bool = false);
  5215. void SetMouseVisible(bool, bool = false);
  5216. // Properties:
  5217. /* readonly */
  5218. String category;
  5219. /* readonly */
  5220. bool focus;
  5221. /* readonly */
  5222. Array<JoystickState> joysticks;
  5223. /* readonly */
  5224. Array<JoystickState> joysticksByIndex;
  5225. /* readonly */
  5226. Array<bool> keyDown;
  5227. /* readonly */
  5228. Array<bool> keyPress;
  5229. /* readonly */
  5230. bool minimized;
  5231. /* readonly */
  5232. Array<bool> mouseButtonDown;
  5233. /* readonly */
  5234. Array<bool> mouseButtonPress;
  5235. bool mouseGrabbed;
  5236. /* readonly */
  5237. bool mouseLocked;
  5238. MouseMode mouseMode;
  5239. /* readonly */
  5240. IntVector2 mouseMove;
  5241. /* readonly */
  5242. int mouseMoveWheel;
  5243. /* readonly */
  5244. int mouseMoveX;
  5245. /* readonly */
  5246. int mouseMoveY;
  5247. /* readonly */
  5248. IntVector2 mousePosition;
  5249. bool mouseVisible;
  5250. /* readonly */
  5251. uint numJoysticks;
  5252. /* readonly */
  5253. uint numTouches;
  5254. /* readonly */
  5255. Array<bool> qualifierDown;
  5256. /* readonly */
  5257. Array<bool> qualifierPress;
  5258. /* readonly */
  5259. int qualifiers;
  5260. /* readonly */
  5261. int refs;
  5262. /* readonly */
  5263. Array<bool> scancodeDown;
  5264. /* readonly */
  5265. Array<bool> scancodePress;
  5266. Array<bool> screenJoystickVisible;
  5267. /* readonly */
  5268. bool screenKeyboardSupport;
  5269. bool screenKeyboardVisible;
  5270. bool toggleFullscreen;
  5271. bool touchEmulation;
  5272. /* readonly */
  5273. Array<TouchState> touches;
  5274. /* readonly */
  5275. StringHash type;
  5276. /* readonly */
  5277. String typeName;
  5278. /* readonly */
  5279. int weakRefs;
  5280. };
  5281. class IntRect
  5282. {
  5283. // Methods:
  5284. Intersection IsInside(const IntVector2&) const;
  5285. // Properties:
  5286. int bottom;
  5287. /* readonly */
  5288. Array<int> data;
  5289. /* readonly */
  5290. int height;
  5291. int left;
  5292. int right;
  5293. /* readonly */
  5294. IntVector2 size;
  5295. int top;
  5296. /* readonly */
  5297. int width;
  5298. };
  5299. class IntVector2
  5300. {
  5301. // Methods:
  5302. String ToString() const;
  5303. // Properties:
  5304. /* readonly */
  5305. Array<int> data;
  5306. int x;
  5307. int y;
  5308. };
  5309. class JSONFile
  5310. {
  5311. // Methods:
  5312. JSONValue& GetRoot();
  5313. bool HasSubscribedToEvent(Object, const String&);
  5314. bool HasSubscribedToEvent(const String&);
  5315. bool Load(File);
  5316. bool Load(VectorBuffer&);
  5317. bool Save(File) const;
  5318. bool Save(File, const String&) const;
  5319. bool Save(VectorBuffer&) const;
  5320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5321. // Properties:
  5322. /* readonly */
  5323. String category;
  5324. /* readonly */
  5325. uint memoryUse;
  5326. String name;
  5327. /* readonly */
  5328. int refs;
  5329. /* readonly */
  5330. JSONValue root;
  5331. /* readonly */
  5332. StringHash type;
  5333. /* readonly */
  5334. String typeName;
  5335. /* readonly */
  5336. uint useTimer;
  5337. /* readonly */
  5338. int weakRefs;
  5339. };
  5340. class JSONValue
  5341. {
  5342. // Methods:
  5343. void Clear();
  5344. bool Contains(const String&) const;
  5345. void Erase(const String&);
  5346. void Erase(uint, uint = 1);
  5347. bool GetBool() const;
  5348. double GetDouble() const;
  5349. float GetFloat() const;
  5350. int GetInt() const;
  5351. uint GetUInt() const;
  5352. void Insert(uint, const JSONValue&);
  5353. const JSONValue& Get(const String&) const;
  5354. void Pop();
  5355. void Push(const JSONValue&);
  5356. void Resize(uint);
  5357. void Set(const String&, const JSONValue&);
  5358. const String& GetString() const;
  5359. // Properties:
  5360. /* readonly */
  5361. bool isArray;
  5362. /* readonly */
  5363. bool isBool;
  5364. /* readonly */
  5365. bool isNull;
  5366. /* readonly */
  5367. bool isNumber;
  5368. /* readonly */
  5369. bool isObject;
  5370. /* readonly */
  5371. bool isString;
  5372. /* readonly */
  5373. uint size;
  5374. /* readonly */
  5375. JSONValueType valueType;
  5376. };
  5377. class JoystickState
  5378. {
  5379. // Properties:
  5380. /* readonly */
  5381. Array<float> axisPosition;
  5382. /* readonly */
  5383. Array<bool> buttonDown;
  5384. /* readonly */
  5385. Array<bool> buttonPress;
  5386. /* readonly */
  5387. bool controller;
  5388. /* readonly */
  5389. Array<int> hatPosition;
  5390. int joystickID;
  5391. String name;
  5392. /* readonly */
  5393. uint numAxes;
  5394. /* readonly */
  5395. uint numButtons;
  5396. /* readonly */
  5397. uint numHats;
  5398. };
  5399. class Light
  5400. {
  5401. // Methods:
  5402. void ApplyAttributes();
  5403. void DrawDebugGeometry(DebugRenderer, bool);
  5404. Variant GetAttribute(const String&) const;
  5405. ValueAnimation GetAttributeAnimation(const String&) const;
  5406. float GetAttributeAnimationSpeed(const String&) const;
  5407. float GetAttributeAnimationTime(const String&) const;
  5408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5409. Variant GetAttributeDefault(const String&) const;
  5410. bool GetInterceptNetworkUpdate(const String&) const;
  5411. bool HasSubscribedToEvent(Object, const String&);
  5412. bool HasSubscribedToEvent(const String&);
  5413. bool IsInView(Camera) const;
  5414. bool Load(File, bool = false);
  5415. bool Load(VectorBuffer&, bool = false);
  5416. bool LoadJSON(const JSONValue&, bool = false);
  5417. bool LoadXML(const XMLElement&, bool = false);
  5418. void MarkNetworkUpdate() const;
  5419. void Remove();
  5420. void RemoveAttributeAnimation(const String&);
  5421. void RemoveInstanceDefault();
  5422. void RemoveObjectAnimation();
  5423. void ResetToDefault();
  5424. bool Save(File) const;
  5425. bool Save(VectorBuffer&) const;
  5426. bool SaveJSON(JSONValue&) const;
  5427. bool SaveXML(XMLElement&) const;
  5428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5429. void SetAnimationTime(float);
  5430. bool SetAttribute(const String&, const Variant&);
  5431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5432. void SetAttributeAnimationSpeed(const String&, float);
  5433. void SetAttributeAnimationTime(const String&, float);
  5434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5435. void SetInterceptNetworkUpdate(const String&, bool);
  5436. // Properties:
  5437. bool animationEnabled;
  5438. float aspectRatio;
  5439. /* readonly */
  5440. Array<Variant> attributeDefaults;
  5441. /* readonly */
  5442. Array<AttributeInfo> attributeInfos;
  5443. Array<Variant> attributes;
  5444. /* readonly */
  5445. BoundingBox boundingBox;
  5446. float brightness;
  5447. bool castShadows;
  5448. /* readonly */
  5449. String category;
  5450. Color color;
  5451. float drawDistance;
  5452. /* readonly */
  5453. Color effectiveColor;
  5454. /* readonly */
  5455. float effectiveSpecularIntensity;
  5456. bool enabled;
  5457. /* readonly */
  5458. bool enabledEffective;
  5459. float fadeDistance;
  5460. float fov;
  5461. /* readonly */
  5462. Frustum frustum;
  5463. /* readonly */
  5464. uint id;
  5465. /* readonly */
  5466. bool inView;
  5467. uint lightMask;
  5468. LightType lightType;
  5469. float lodBias;
  5470. uint maxLights;
  5471. /* readonly */
  5472. bool negative;
  5473. /* readonly */
  5474. Node node;
  5475. /* readonly */
  5476. uint numAttributes;
  5477. /* readonly */
  5478. int numShadowSplits;
  5479. ObjectAnimation objectAnimation;
  5480. bool occludee;
  5481. bool occluder;
  5482. bool perVertex;
  5483. Texture rampTexture;
  5484. float range;
  5485. /* readonly */
  5486. int refs;
  5487. BiasParameters shadowBias;
  5488. CascadeParameters shadowCascade;
  5489. float shadowDistance;
  5490. float shadowFadeDistance;
  5491. FocusParameters shadowFocus;
  5492. float shadowIntensity;
  5493. uint shadowMask;
  5494. float shadowNearFarRatio;
  5495. float shadowResolution;
  5496. Texture shapeTexture;
  5497. float specularIntensity;
  5498. bool temporary;
  5499. /* readonly */
  5500. StringHash type;
  5501. /* readonly */
  5502. String typeName;
  5503. uint viewMask;
  5504. /* readonly */
  5505. int weakRefs;
  5506. /* readonly */
  5507. BoundingBox worldBoundingBox;
  5508. uint zoneMask;
  5509. };
  5510. class LineEdit
  5511. {
  5512. // Methods:
  5513. void AddChild(UIElement);
  5514. void AddTag(const String&);
  5515. void AddTags(const String&, int8 = ';');
  5516. void ApplyAttributes();
  5517. void BringToFront();
  5518. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5519. void DisableLayoutUpdate();
  5520. IntVector2 ElementToScreen(const IntVector2&);
  5521. void EnableLayoutUpdate();
  5522. uint FindChild(UIElement) const;
  5523. Variant GetAttribute(const String&) const;
  5524. ValueAnimation GetAttributeAnimation(const String&) const;
  5525. float GetAttributeAnimationSpeed(const String&) const;
  5526. float GetAttributeAnimationTime(const String&) const;
  5527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5528. Variant GetAttributeDefault(const String&) const;
  5529. UIElement GetChild(const String&, bool = false) const;
  5530. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5531. Array<UIElement> GetChildren(bool = false) const;
  5532. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5533. UIElement GetElementEventSender() const;
  5534. bool GetInterceptNetworkUpdate(const String&) const;
  5535. uint GetNumChildren(bool) const;
  5536. bool HasSubscribedToEvent(Object, const String&);
  5537. bool HasSubscribedToEvent(const String&);
  5538. bool HasTag(const String&) const;
  5539. void InsertChild(uint, UIElement);
  5540. bool IsInside(IntVector2, bool);
  5541. bool IsInsideCombined(IntVector2, bool);
  5542. bool Load(File, bool = false);
  5543. bool Load(VectorBuffer&, bool = false);
  5544. bool LoadChildXML(XMLFile, XMLFile = null);
  5545. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5546. bool LoadJSON(const JSONValue&, bool = false);
  5547. bool LoadXML(File);
  5548. bool LoadXML(VectorBuffer&);
  5549. bool LoadXML(XMLFile, XMLFile);
  5550. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5551. bool LoadXML(const XMLElement&, bool = false);
  5552. void MarkNetworkUpdate() const;
  5553. void Remove();
  5554. void RemoveAllChildren();
  5555. void RemoveAllTags();
  5556. void RemoveAttributeAnimation(const String&);
  5557. void RemoveChild(UIElement, uint = 0);
  5558. void RemoveChild(uint);
  5559. void RemoveInstanceDefault();
  5560. void RemoveObjectAnimation();
  5561. bool RemoveTag(const String&);
  5562. void ResetDeepEnabled();
  5563. void ResetToDefault();
  5564. bool Save(File) const;
  5565. bool Save(VectorBuffer&) const;
  5566. bool SaveJSON(JSONValue&) const;
  5567. bool SaveXML(File, const String& = "\t");
  5568. bool SaveXML(VectorBuffer&, const String& = "\t");
  5569. bool SaveXML(XMLElement&) const;
  5570. IntVector2 ScreenToElement(const IntVector2&);
  5571. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5572. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5573. void SetAnimationTime(float);
  5574. bool SetAttribute(const String&, const Variant&);
  5575. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5576. void SetAttributeAnimationSpeed(const String&, float);
  5577. void SetAttributeAnimationTime(const String&, float);
  5578. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5579. void SetDeepEnabled(bool);
  5580. void SetEnabledRecursive(bool);
  5581. void SetFixedHeight(int);
  5582. void SetFixedSize(int, int);
  5583. void SetFixedWidth(int);
  5584. void SetFullImageRect();
  5585. void SetHoverOffset(int, int);
  5586. void SetInterceptNetworkUpdate(const String&, bool);
  5587. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5588. void SetMaxSize(int, int);
  5589. void SetMinSize(int, int);
  5590. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5591. void SetPosition(int, int);
  5592. void SetSize(int, int);
  5593. bool SetStyle(const String&, XMLFile = null);
  5594. bool SetStyle(const XMLElement&);
  5595. bool SetStyleAuto(XMLFile = null);
  5596. void UpdateLayout();
  5597. const Variant& GetVar(const StringHash&);
  5598. // Properties:
  5599. bool animationEnabled;
  5600. /* readonly */
  5601. Array<Variant> attributeDefaults;
  5602. /* readonly */
  5603. Array<AttributeInfo> attributeInfos;
  5604. Array<Variant> attributes;
  5605. BlendMode blendMode;
  5606. IntRect border;
  5607. bool bringToBack;
  5608. bool bringToFront;
  5609. /* readonly */
  5610. String category;
  5611. /* readonly */
  5612. IntVector2 childOffset;
  5613. /* readonly */
  5614. Array<UIElement> children;
  5615. IntRect clipBorder;
  5616. bool clipChildren;
  5617. /* writeonly */
  5618. Color color;
  5619. /* readonly */
  5620. bool colorGradient;
  5621. Array<Color> colors;
  5622. /* readonly */
  5623. IntRect combinedScreenRect;
  5624. /* readonly */
  5625. BorderImage cursor;
  5626. float cursorBlinkRate;
  5627. bool cursorMovable;
  5628. uint cursorPosition;
  5629. XMLFile defaultStyle;
  5630. /* readonly */
  5631. float derivedOpacity;
  5632. /* readonly */
  5633. uint dragButtonCombo;
  5634. /* readonly */
  5635. int dragButtonCount;
  5636. uint dragDropMode;
  5637. uint echoCharacter;
  5638. bool editable;
  5639. bool elementEventSender;
  5640. bool enabled;
  5641. /* readonly */
  5642. bool enabledSelf;
  5643. /* readonly */
  5644. bool fixedHeight;
  5645. /* readonly */
  5646. bool fixedSize;
  5647. /* readonly */
  5648. bool fixedWidth;
  5649. bool focus;
  5650. FocusMode focusMode;
  5651. int height;
  5652. HorizontalAlignment horizontalAlignment;
  5653. IntVector2 hoverOffset;
  5654. /* readonly */
  5655. bool hovering;
  5656. IntRect imageBorder;
  5657. IntRect imageRect;
  5658. int indent;
  5659. int indentSpacing;
  5660. /* readonly */
  5661. int indentWidth;
  5662. bool internal;
  5663. IntRect layoutBorder;
  5664. Vector2 layoutFlexScale;
  5665. LayoutMode layoutMode;
  5666. int layoutSpacing;
  5667. int maxHeight;
  5668. uint maxLength;
  5669. IntVector2 maxSize;
  5670. int maxWidth;
  5671. int minHeight;
  5672. IntVector2 minSize;
  5673. int minWidth;
  5674. String name;
  5675. /* readonly */
  5676. uint numAllChildren;
  5677. /* readonly */
  5678. uint numAttributes;
  5679. /* readonly */
  5680. uint numChildren;
  5681. ObjectAnimation objectAnimation;
  5682. float opacity;
  5683. UIElement parent;
  5684. IntVector2 position;
  5685. int priority;
  5686. /* readonly */
  5687. int refs;
  5688. /* readonly */
  5689. UIElement root;
  5690. /* readonly */
  5691. IntVector2 screenPosition;
  5692. bool selected;
  5693. IntVector2 size;
  5694. bool sortChildren;
  5695. String style;
  5696. /* readonly */
  5697. Array<String> tags;
  5698. bool temporary;
  5699. String text;
  5700. bool textCopyable;
  5701. /* readonly */
  5702. Text textElement;
  5703. bool textSelectable;
  5704. Texture texture;
  5705. bool tiled;
  5706. TraversalMode traversalMode;
  5707. /* readonly */
  5708. StringHash type;
  5709. /* readonly */
  5710. String typeName;
  5711. bool useDerivedOpacity;
  5712. /* readonly */
  5713. VariantMap vars;
  5714. VerticalAlignment verticalAlignment;
  5715. bool visible;
  5716. /* readonly */
  5717. bool visibleEffective;
  5718. /* readonly */
  5719. int weakRefs;
  5720. int width;
  5721. };
  5722. class ListView
  5723. {
  5724. // Methods:
  5725. void AddChild(UIElement);
  5726. void AddItem(UIElement);
  5727. void AddSelection(uint);
  5728. void AddTag(const String&);
  5729. void AddTags(const String&, int8 = ';');
  5730. void ApplyAttributes();
  5731. void BringToFront();
  5732. void ChangeSelection(int, bool);
  5733. void ClearSelection();
  5734. void CopySelectedItemsToClipboard();
  5735. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5736. void DisableLayoutUpdate();
  5737. IntVector2 ElementToScreen(const IntVector2&);
  5738. void EnableLayoutUpdate();
  5739. void Expand(uint, bool, bool = false);
  5740. uint FindChild(UIElement) const;
  5741. uint FindItem(UIElement);
  5742. Variant GetAttribute(const String&) const;
  5743. ValueAnimation GetAttributeAnimation(const String&) const;
  5744. float GetAttributeAnimationSpeed(const String&) const;
  5745. float GetAttributeAnimationTime(const String&) const;
  5746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5747. Variant GetAttributeDefault(const String&) const;
  5748. UIElement GetChild(const String&, bool = false) const;
  5749. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5750. Array<UIElement> GetChildren(bool = false) const;
  5751. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5752. UIElement GetElementEventSender() const;
  5753. bool GetInterceptNetworkUpdate(const String&) const;
  5754. Array<UIElement> GetItems() const;
  5755. uint GetNumChildren(bool) const;
  5756. bool HasSubscribedToEvent(Object, const String&);
  5757. bool HasSubscribedToEvent(const String&);
  5758. bool HasTag(const String&) const;
  5759. void InsertChild(uint, UIElement);
  5760. void InsertItem(uint, UIElement, UIElement = null);
  5761. bool IsExpanded(uint) const;
  5762. bool IsInside(IntVector2, bool);
  5763. bool IsInsideCombined(IntVector2, bool);
  5764. bool IsSelected(uint) const;
  5765. bool Load(File, bool = false);
  5766. bool Load(VectorBuffer&, bool = false);
  5767. bool LoadChildXML(XMLFile, XMLFile = null);
  5768. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5769. bool LoadJSON(const JSONValue&, bool = false);
  5770. bool LoadXML(File);
  5771. bool LoadXML(VectorBuffer&);
  5772. bool LoadXML(XMLFile, XMLFile);
  5773. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5774. bool LoadXML(const XMLElement&, bool = false);
  5775. void MarkNetworkUpdate() const;
  5776. void Remove();
  5777. void RemoveAllChildren();
  5778. void RemoveAllItems();
  5779. void RemoveAllTags();
  5780. void RemoveAttributeAnimation(const String&);
  5781. void RemoveChild(UIElement, uint = 0);
  5782. void RemoveChild(uint);
  5783. void RemoveInstanceDefault();
  5784. void RemoveItem(UIElement, uint = 0);
  5785. void RemoveItem(uint);
  5786. void RemoveObjectAnimation();
  5787. void RemoveSelection(uint);
  5788. bool RemoveTag(const String&);
  5789. void ResetDeepEnabled();
  5790. void ResetToDefault();
  5791. bool Save(File) const;
  5792. bool Save(VectorBuffer&) const;
  5793. bool SaveJSON(JSONValue&) const;
  5794. bool SaveXML(File, const String& = "\t");
  5795. bool SaveXML(VectorBuffer&, const String& = "\t");
  5796. bool SaveXML(XMLElement&) const;
  5797. IntVector2 ScreenToElement(const IntVector2&);
  5798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5799. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5800. void SetAnimationTime(float);
  5801. bool SetAttribute(const String&, const Variant&);
  5802. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5803. void SetAttributeAnimationSpeed(const String&, float);
  5804. void SetAttributeAnimationTime(const String&, float);
  5805. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5806. void SetDeepEnabled(bool);
  5807. void SetEnabledRecursive(bool);
  5808. void SetFixedHeight(int);
  5809. void SetFixedSize(int, int);
  5810. void SetFixedWidth(int);
  5811. void SetInterceptNetworkUpdate(const String&, bool);
  5812. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5813. void SetMaxSize(int, int);
  5814. void SetMinSize(int, int);
  5815. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5816. void SetPosition(int, int);
  5817. void SetScrollBarsVisible(bool, bool);
  5818. void SetSelections(Array<uint>);
  5819. void SetSize(int, int);
  5820. bool SetStyle(const String&, XMLFile = null);
  5821. bool SetStyle(const XMLElement&);
  5822. bool SetStyleAuto(XMLFile = null);
  5823. void SetViewPosition(int, int);
  5824. void ToggleExpand(uint, bool = false);
  5825. void ToggleSelection(uint);
  5826. void UpdateLayout();
  5827. const Variant& GetVar(const StringHash&);
  5828. // Properties:
  5829. bool animationEnabled;
  5830. /* readonly */
  5831. Array<Variant> attributeDefaults;
  5832. /* readonly */
  5833. Array<AttributeInfo> attributeInfos;
  5834. Array<Variant> attributes;
  5835. bool autoDisableChildren;
  5836. float autoDisableThreshold;
  5837. int baseIndent;
  5838. bool bringToBack;
  5839. bool bringToFront;
  5840. /* readonly */
  5841. String category;
  5842. /* readonly */
  5843. IntVector2 childOffset;
  5844. /* readonly */
  5845. Array<UIElement> children;
  5846. bool clearSelectionOnDefocus;
  5847. IntRect clipBorder;
  5848. bool clipChildren;
  5849. /* writeonly */
  5850. Color color;
  5851. /* readonly */
  5852. bool colorGradient;
  5853. Array<Color> colors;
  5854. /* readonly */
  5855. IntRect combinedScreenRect;
  5856. /* readonly */
  5857. UIElement contentElement;
  5858. XMLFile defaultStyle;
  5859. /* readonly */
  5860. float derivedOpacity;
  5861. /* readonly */
  5862. uint dragButtonCombo;
  5863. /* readonly */
  5864. int dragButtonCount;
  5865. uint dragDropMode;
  5866. bool editable;
  5867. bool elementEventSender;
  5868. bool enabled;
  5869. /* readonly */
  5870. bool enabledSelf;
  5871. /* readonly */
  5872. bool fixedHeight;
  5873. /* readonly */
  5874. bool fixedSize;
  5875. /* readonly */
  5876. bool fixedWidth;
  5877. bool focus;
  5878. FocusMode focusMode;
  5879. int height;
  5880. bool hierarchyMode;
  5881. HighlightMode highlightMode;
  5882. HorizontalAlignment horizontalAlignment;
  5883. /* readonly */
  5884. ScrollBar horizontalScrollBar;
  5885. /* readonly */
  5886. bool hovering;
  5887. int indent;
  5888. int indentSpacing;
  5889. /* readonly */
  5890. int indentWidth;
  5891. bool internal;
  5892. /* readonly */
  5893. Array<UIElement> items;
  5894. IntRect layoutBorder;
  5895. Vector2 layoutFlexScale;
  5896. LayoutMode layoutMode;
  5897. int layoutSpacing;
  5898. int maxHeight;
  5899. IntVector2 maxSize;
  5900. int maxWidth;
  5901. int minHeight;
  5902. IntVector2 minSize;
  5903. int minWidth;
  5904. bool multiselect;
  5905. String name;
  5906. /* readonly */
  5907. uint numAllChildren;
  5908. /* readonly */
  5909. uint numAttributes;
  5910. /* readonly */
  5911. uint numChildren;
  5912. /* readonly */
  5913. uint numItems;
  5914. ObjectAnimation objectAnimation;
  5915. float opacity;
  5916. float pageStep;
  5917. UIElement parent;
  5918. IntVector2 position;
  5919. int priority;
  5920. /* readonly */
  5921. int refs;
  5922. /* readonly */
  5923. UIElement root;
  5924. /* readonly */
  5925. IntVector2 screenPosition;
  5926. bool scrollBarsAutoVisible;
  5927. float scrollDeceleration;
  5928. /* readonly */
  5929. BorderImage scrollPanel;
  5930. float scrollSnapEpsilon;
  5931. float scrollStep;
  5932. bool selectOnClickEnd;
  5933. bool selected;
  5934. /* readonly */
  5935. UIElement selectedItem;
  5936. /* readonly */
  5937. Array<UIElement> selectedItems;
  5938. uint selection;
  5939. /* readonly */
  5940. Array<uint> selections;
  5941. IntVector2 size;
  5942. bool sortChildren;
  5943. String style;
  5944. /* readonly */
  5945. Array<String> tags;
  5946. bool temporary;
  5947. TraversalMode traversalMode;
  5948. /* readonly */
  5949. StringHash type;
  5950. /* readonly */
  5951. String typeName;
  5952. bool useDerivedOpacity;
  5953. /* readonly */
  5954. VariantMap vars;
  5955. VerticalAlignment verticalAlignment;
  5956. /* readonly */
  5957. ScrollBar verticalScrollBar;
  5958. IntVector2 viewPosition;
  5959. bool visible;
  5960. /* readonly */
  5961. bool visibleEffective;
  5962. /* readonly */
  5963. int weakRefs;
  5964. int width;
  5965. };
  5966. class Localization
  5967. {
  5968. // Methods:
  5969. String Get(const String&);
  5970. String GetLanguage(int);
  5971. int GetLanguageIndex(const String&);
  5972. bool HasSubscribedToEvent(Object, const String&);
  5973. bool HasSubscribedToEvent(const String&);
  5974. void LoadJSON(const JSONValue&);
  5975. void LoadJSONFile(const String&);
  5976. void Reset();
  5977. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5978. void SetLanguage(const String&);
  5979. void SetLanguage(int);
  5980. // Properties:
  5981. /* readonly */
  5982. String category;
  5983. /* readonly */
  5984. String language;
  5985. /* readonly */
  5986. int languageIndex;
  5987. /* readonly */
  5988. int numLanguages;
  5989. /* readonly */
  5990. int refs;
  5991. /* readonly */
  5992. StringHash type;
  5993. /* readonly */
  5994. String typeName;
  5995. /* readonly */
  5996. int weakRefs;
  5997. };
  5998. class Log
  5999. {
  6000. // Methods:
  6001. void Close();
  6002. void Debug(const String&);
  6003. void Error(const String&);
  6004. bool HasSubscribedToEvent(Object, const String&);
  6005. bool HasSubscribedToEvent(const String&);
  6006. void Info(const String&);
  6007. void Open(const String&);
  6008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6009. void Warning(const String&);
  6010. void Write(const String&, bool = false);
  6011. // Properties:
  6012. /* readonly */
  6013. String category;
  6014. /* readonly */
  6015. String lastMessage;
  6016. int level;
  6017. bool quiet;
  6018. /* readonly */
  6019. int refs;
  6020. bool timeStamp;
  6021. /* readonly */
  6022. StringHash type;
  6023. /* readonly */
  6024. String typeName;
  6025. /* readonly */
  6026. int weakRefs;
  6027. };
  6028. class Material
  6029. {
  6030. // Methods:
  6031. Material Clone(const String& = String ( )) const;
  6032. Pass GetPass(uint, const String&);
  6033. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6034. float GetShaderParameterAnimationSpeed(const String&) const;
  6035. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6036. bool HasSubscribedToEvent(Object, const String&);
  6037. bool HasSubscribedToEvent(const String&);
  6038. bool Load(File);
  6039. bool Load(VectorBuffer&);
  6040. bool Load(const JSONValue&);
  6041. bool Load(const XMLElement&);
  6042. void RemoveShaderParameter(const String&);
  6043. bool Save(File) const;
  6044. bool Save(JSONValue&) const;
  6045. bool Save(VectorBuffer&) const;
  6046. bool Save(XMLElement&) const;
  6047. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6048. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6049. void SetShaderParameterAnimationSpeed(const String&, float);
  6050. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6051. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6052. void SetUVTransform(const Vector2&, float, const Vector2&);
  6053. void SetUVTransform(const Vector2&, float, float);
  6054. void SortTechniques();
  6055. // Properties:
  6056. /* readonly */
  6057. String category;
  6058. CullMode cullMode;
  6059. BiasParameters depthBias;
  6060. FillMode fillMode;
  6061. /* readonly */
  6062. uint memoryUse;
  6063. String name;
  6064. uint numTechniques;
  6065. /* readonly */
  6066. bool occlusion;
  6067. /* readonly */
  6068. int refs;
  6069. uint8 renderOrder;
  6070. Scene scene;
  6071. /* readonly */
  6072. Array<String> shaderParameterNames;
  6073. Array<Variant> shaderParameters;
  6074. CullMode shadowCullMode;
  6075. /* readonly */
  6076. Array<TechniqueEntry> techniqueEntries;
  6077. /* readonly */
  6078. Array<Technique> techniques;
  6079. Array<Texture> textures;
  6080. /* readonly */
  6081. StringHash type;
  6082. /* readonly */
  6083. String typeName;
  6084. /* readonly */
  6085. uint useTimer;
  6086. /* readonly */
  6087. int weakRefs;
  6088. };
  6089. class Matrix2
  6090. {
  6091. // Methods:
  6092. bool Equals(const Matrix2&) const;
  6093. Matrix2 Inverse() const;
  6094. Vector2 Scale() const;
  6095. Matrix2 Scaled(const Vector2&) const;
  6096. void SetScale(const Vector2&);
  6097. void SetScale(float);
  6098. String ToString() const;
  6099. Matrix2 Transpose() const;
  6100. // Properties:
  6101. float m00;
  6102. float m01;
  6103. float m10;
  6104. float m11;
  6105. };
  6106. class Matrix3
  6107. {
  6108. // Methods:
  6109. bool Equals(const Matrix3&) const;
  6110. Matrix3 Inverse() const;
  6111. Vector3 Scale() const;
  6112. Matrix3 Scaled(const Vector3&) const;
  6113. void SetScale(const Vector3&);
  6114. void SetScale(float);
  6115. String ToString() const;
  6116. Matrix3 Transpose() const;
  6117. // Properties:
  6118. float m00;
  6119. float m01;
  6120. float m02;
  6121. float m10;
  6122. float m11;
  6123. float m12;
  6124. float m20;
  6125. float m21;
  6126. float m22;
  6127. };
  6128. class Matrix3x4
  6129. {
  6130. // Methods:
  6131. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6132. bool Equals(const Matrix3x4&) const;
  6133. Matrix3x4 Inverse() const;
  6134. Quaternion Rotation() const;
  6135. Matrix3 RotationMatrix() const;
  6136. Vector3 Scale() const;
  6137. void SetRotation(const Matrix3&);
  6138. void SetScale(const Vector3&);
  6139. void SetScale(float);
  6140. void SetTranslation(const Vector3&);
  6141. Matrix3 ToMatrix3() const;
  6142. Matrix4 ToMatrix4() const;
  6143. String ToString() const;
  6144. Vector3 Translation() const;
  6145. // Properties:
  6146. float m00;
  6147. float m01;
  6148. float m02;
  6149. float m03;
  6150. float m10;
  6151. float m11;
  6152. float m12;
  6153. float m13;
  6154. float m20;
  6155. float m21;
  6156. float m22;
  6157. float m23;
  6158. };
  6159. class Matrix4
  6160. {
  6161. // Methods:
  6162. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6163. bool Equals(const Matrix4&) const;
  6164. Matrix4 Inverse() const;
  6165. Quaternion Rotation() const;
  6166. Matrix3 RotationMatrix() const;
  6167. Vector3 Scale() const;
  6168. void SetRotation(const Matrix3&);
  6169. void SetScale(const Vector3&);
  6170. void SetScale(float);
  6171. void SetTranslation(const Vector3&);
  6172. Matrix3 ToMatrix3() const;
  6173. String ToString() const;
  6174. Vector3 Translation() const;
  6175. Matrix4 Transpose() const;
  6176. // Properties:
  6177. float m00;
  6178. float m01;
  6179. float m02;
  6180. float m03;
  6181. float m10;
  6182. float m11;
  6183. float m12;
  6184. float m13;
  6185. float m20;
  6186. float m21;
  6187. float m22;
  6188. float m23;
  6189. float m30;
  6190. float m31;
  6191. float m32;
  6192. float m33;
  6193. };
  6194. class Menu
  6195. {
  6196. // Methods:
  6197. void AddChild(UIElement);
  6198. void AddTag(const String&);
  6199. void AddTags(const String&, int8 = ';');
  6200. void ApplyAttributes();
  6201. void BringToFront();
  6202. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6203. void DisableLayoutUpdate();
  6204. IntVector2 ElementToScreen(const IntVector2&);
  6205. void EnableLayoutUpdate();
  6206. uint FindChild(UIElement) const;
  6207. Variant GetAttribute(const String&) const;
  6208. ValueAnimation GetAttributeAnimation(const String&) const;
  6209. float GetAttributeAnimationSpeed(const String&) const;
  6210. float GetAttributeAnimationTime(const String&) const;
  6211. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6212. Variant GetAttributeDefault(const String&) const;
  6213. UIElement GetChild(const String&, bool = false) const;
  6214. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6215. Array<UIElement> GetChildren(bool = false) const;
  6216. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6217. UIElement GetElementEventSender() const;
  6218. bool GetInterceptNetworkUpdate(const String&) const;
  6219. uint GetNumChildren(bool) const;
  6220. bool HasSubscribedToEvent(Object, const String&);
  6221. bool HasSubscribedToEvent(const String&);
  6222. bool HasTag(const String&) const;
  6223. void InsertChild(uint, UIElement);
  6224. bool IsInside(IntVector2, bool);
  6225. bool IsInsideCombined(IntVector2, bool);
  6226. bool Load(File, bool = false);
  6227. bool Load(VectorBuffer&, bool = false);
  6228. bool LoadChildXML(XMLFile, XMLFile = null);
  6229. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6230. bool LoadJSON(const JSONValue&, bool = false);
  6231. bool LoadXML(File);
  6232. bool LoadXML(VectorBuffer&);
  6233. bool LoadXML(XMLFile, XMLFile);
  6234. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6235. bool LoadXML(const XMLElement&, bool = false);
  6236. void MarkNetworkUpdate() const;
  6237. void Remove();
  6238. void RemoveAllChildren();
  6239. void RemoveAllTags();
  6240. void RemoveAttributeAnimation(const String&);
  6241. void RemoveChild(UIElement, uint = 0);
  6242. void RemoveChild(uint);
  6243. void RemoveInstanceDefault();
  6244. void RemoveObjectAnimation();
  6245. bool RemoveTag(const String&);
  6246. void ResetDeepEnabled();
  6247. void ResetToDefault();
  6248. bool Save(File) const;
  6249. bool Save(VectorBuffer&) const;
  6250. bool SaveJSON(JSONValue&) const;
  6251. bool SaveXML(File, const String& = "\t");
  6252. bool SaveXML(VectorBuffer&, const String& = "\t");
  6253. bool SaveXML(XMLElement&) const;
  6254. IntVector2 ScreenToElement(const IntVector2&);
  6255. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6256. void SetAccelerator(int, int);
  6257. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6258. void SetAnimationTime(float);
  6259. bool SetAttribute(const String&, const Variant&);
  6260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6261. void SetAttributeAnimationSpeed(const String&, float);
  6262. void SetAttributeAnimationTime(const String&, float);
  6263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6264. void SetDeepEnabled(bool);
  6265. void SetEnabledRecursive(bool);
  6266. void SetFixedHeight(int);
  6267. void SetFixedSize(int, int);
  6268. void SetFixedWidth(int);
  6269. void SetFullImageRect();
  6270. void SetHoverOffset(int, int);
  6271. void SetInterceptNetworkUpdate(const String&, bool);
  6272. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6273. void SetMaxSize(int, int);
  6274. void SetMinSize(int, int);
  6275. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6276. void SetPopupOffset(int, int);
  6277. void SetPosition(int, int);
  6278. void SetPressedChildOffset(int, int);
  6279. void SetPressedOffset(int, int);
  6280. void SetRepeat(float, float);
  6281. void SetSize(int, int);
  6282. bool SetStyle(const String&, XMLFile = null);
  6283. bool SetStyle(const XMLElement&);
  6284. bool SetStyleAuto(XMLFile = null);
  6285. void UpdateLayout();
  6286. const Variant& GetVar(const StringHash&);
  6287. // Properties:
  6288. /* readonly */
  6289. int acceleratorKey;
  6290. /* readonly */
  6291. int acceleratorQualifiers;
  6292. bool animationEnabled;
  6293. /* readonly */
  6294. Array<Variant> attributeDefaults;
  6295. /* readonly */
  6296. Array<AttributeInfo> attributeInfos;
  6297. Array<Variant> attributes;
  6298. BlendMode blendMode;
  6299. IntRect border;
  6300. bool bringToBack;
  6301. bool bringToFront;
  6302. /* readonly */
  6303. String category;
  6304. /* readonly */
  6305. IntVector2 childOffset;
  6306. /* readonly */
  6307. Array<UIElement> children;
  6308. IntRect clipBorder;
  6309. bool clipChildren;
  6310. /* writeonly */
  6311. Color color;
  6312. /* readonly */
  6313. bool colorGradient;
  6314. Array<Color> colors;
  6315. /* readonly */
  6316. IntRect combinedScreenRect;
  6317. XMLFile defaultStyle;
  6318. /* readonly */
  6319. float derivedOpacity;
  6320. /* readonly */
  6321. uint dragButtonCombo;
  6322. /* readonly */
  6323. int dragButtonCount;
  6324. uint dragDropMode;
  6325. bool editable;
  6326. bool elementEventSender;
  6327. bool enabled;
  6328. /* readonly */
  6329. bool enabledSelf;
  6330. /* readonly */
  6331. bool fixedHeight;
  6332. /* readonly */
  6333. bool fixedSize;
  6334. /* readonly */
  6335. bool fixedWidth;
  6336. bool focus;
  6337. FocusMode focusMode;
  6338. int height;
  6339. HorizontalAlignment horizontalAlignment;
  6340. IntVector2 hoverOffset;
  6341. /* readonly */
  6342. bool hovering;
  6343. IntRect imageBorder;
  6344. IntRect imageRect;
  6345. int indent;
  6346. int indentSpacing;
  6347. /* readonly */
  6348. int indentWidth;
  6349. bool internal;
  6350. IntRect layoutBorder;
  6351. Vector2 layoutFlexScale;
  6352. LayoutMode layoutMode;
  6353. int layoutSpacing;
  6354. int maxHeight;
  6355. IntVector2 maxSize;
  6356. int maxWidth;
  6357. int minHeight;
  6358. IntVector2 minSize;
  6359. int minWidth;
  6360. String name;
  6361. /* readonly */
  6362. uint numAllChildren;
  6363. /* readonly */
  6364. uint numAttributes;
  6365. /* readonly */
  6366. uint numChildren;
  6367. ObjectAnimation objectAnimation;
  6368. float opacity;
  6369. UIElement parent;
  6370. UIElement popup;
  6371. IntVector2 popupOffset;
  6372. IntVector2 position;
  6373. /* readonly */
  6374. bool pressed;
  6375. IntVector2 pressedChildOffset;
  6376. IntVector2 pressedOffset;
  6377. int priority;
  6378. /* readonly */
  6379. int refs;
  6380. float repeatDelay;
  6381. float repeatRate;
  6382. /* readonly */
  6383. UIElement root;
  6384. /* readonly */
  6385. IntVector2 screenPosition;
  6386. bool selected;
  6387. bool showPopup;
  6388. IntVector2 size;
  6389. bool sortChildren;
  6390. String style;
  6391. /* readonly */
  6392. Array<String> tags;
  6393. bool temporary;
  6394. Texture texture;
  6395. bool tiled;
  6396. TraversalMode traversalMode;
  6397. /* readonly */
  6398. StringHash type;
  6399. /* readonly */
  6400. String typeName;
  6401. bool useDerivedOpacity;
  6402. /* readonly */
  6403. VariantMap vars;
  6404. VerticalAlignment verticalAlignment;
  6405. bool visible;
  6406. /* readonly */
  6407. bool visibleEffective;
  6408. /* readonly */
  6409. int weakRefs;
  6410. int width;
  6411. };
  6412. class MessageBox
  6413. {
  6414. // Methods:
  6415. bool HasSubscribedToEvent(Object, const String&);
  6416. bool HasSubscribedToEvent(const String&);
  6417. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6418. // Properties:
  6419. /* readonly */
  6420. String category;
  6421. String message;
  6422. /* readonly */
  6423. int refs;
  6424. String title;
  6425. /* readonly */
  6426. StringHash type;
  6427. /* readonly */
  6428. String typeName;
  6429. /* readonly */
  6430. int weakRefs;
  6431. /* readonly */
  6432. UIElement window;
  6433. };
  6434. class Model
  6435. {
  6436. // Methods:
  6437. Model Clone(const String& = String ( )) const;
  6438. Geometry GetGeometry(uint, uint) const;
  6439. bool HasSubscribedToEvent(Object, const String&);
  6440. bool HasSubscribedToEvent(const String&);
  6441. bool Load(File);
  6442. bool Load(VectorBuffer&);
  6443. bool Save(File) const;
  6444. bool Save(VectorBuffer&) const;
  6445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6446. bool SetGeometry(uint, uint, Geometry);
  6447. // Properties:
  6448. BoundingBox boundingBox;
  6449. /* readonly */
  6450. String category;
  6451. Array<Vector3> geometryCenters;
  6452. /* readonly */
  6453. uint memoryUse;
  6454. String name;
  6455. uint numGeometries;
  6456. Array<uint> numGeometryLodLevels;
  6457. /* readonly */
  6458. uint numMorphs;
  6459. /* readonly */
  6460. int refs;
  6461. /* readonly */
  6462. Skeleton skeleton;
  6463. /* readonly */
  6464. StringHash type;
  6465. /* readonly */
  6466. String typeName;
  6467. /* readonly */
  6468. uint useTimer;
  6469. /* readonly */
  6470. int weakRefs;
  6471. };
  6472. class NavArea
  6473. {
  6474. // Methods:
  6475. void ApplyAttributes();
  6476. void DrawDebugGeometry(DebugRenderer, bool);
  6477. Variant GetAttribute(const String&) const;
  6478. ValueAnimation GetAttributeAnimation(const String&) const;
  6479. float GetAttributeAnimationSpeed(const String&) const;
  6480. float GetAttributeAnimationTime(const String&) const;
  6481. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6482. Variant GetAttributeDefault(const String&) const;
  6483. bool GetInterceptNetworkUpdate(const String&) const;
  6484. bool HasSubscribedToEvent(Object, const String&);
  6485. bool HasSubscribedToEvent(const String&);
  6486. bool Load(File, bool = false);
  6487. bool Load(VectorBuffer&, bool = false);
  6488. bool LoadJSON(const JSONValue&, bool = false);
  6489. bool LoadXML(const XMLElement&, bool = false);
  6490. void MarkNetworkUpdate() const;
  6491. void Remove();
  6492. void RemoveAttributeAnimation(const String&);
  6493. void RemoveInstanceDefault();
  6494. void RemoveObjectAnimation();
  6495. void ResetToDefault();
  6496. bool Save(File) const;
  6497. bool Save(VectorBuffer&) const;
  6498. bool SaveJSON(JSONValue&) const;
  6499. bool SaveXML(XMLElement&) const;
  6500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6501. void SetAnimationTime(float);
  6502. bool SetAttribute(const String&, const Variant&);
  6503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6504. void SetAttributeAnimationSpeed(const String&, float);
  6505. void SetAttributeAnimationTime(const String&, float);
  6506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6507. void SetInterceptNetworkUpdate(const String&, bool);
  6508. // Properties:
  6509. bool animationEnabled;
  6510. uint areaID;
  6511. /* readonly */
  6512. Array<Variant> attributeDefaults;
  6513. /* readonly */
  6514. Array<AttributeInfo> attributeInfos;
  6515. Array<Variant> attributes;
  6516. BoundingBox boundingBox;
  6517. /* readonly */
  6518. String category;
  6519. bool enabled;
  6520. /* readonly */
  6521. bool enabledEffective;
  6522. /* readonly */
  6523. uint id;
  6524. /* readonly */
  6525. Node node;
  6526. /* readonly */
  6527. uint numAttributes;
  6528. ObjectAnimation objectAnimation;
  6529. /* readonly */
  6530. int refs;
  6531. bool temporary;
  6532. /* readonly */
  6533. StringHash type;
  6534. /* readonly */
  6535. String typeName;
  6536. /* readonly */
  6537. int weakRefs;
  6538. /* readonly */
  6539. BoundingBox worldBoundingBox;
  6540. };
  6541. class Navigable
  6542. {
  6543. // Methods:
  6544. void ApplyAttributes();
  6545. void DrawDebugGeometry(DebugRenderer, bool);
  6546. Variant GetAttribute(const String&) const;
  6547. ValueAnimation GetAttributeAnimation(const String&) const;
  6548. float GetAttributeAnimationSpeed(const String&) const;
  6549. float GetAttributeAnimationTime(const String&) const;
  6550. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6551. Variant GetAttributeDefault(const String&) const;
  6552. bool GetInterceptNetworkUpdate(const String&) const;
  6553. bool HasSubscribedToEvent(Object, const String&);
  6554. bool HasSubscribedToEvent(const String&);
  6555. bool Load(File, bool = false);
  6556. bool Load(VectorBuffer&, bool = false);
  6557. bool LoadJSON(const JSONValue&, bool = false);
  6558. bool LoadXML(const XMLElement&, bool = false);
  6559. void MarkNetworkUpdate() const;
  6560. void Remove();
  6561. void RemoveAttributeAnimation(const String&);
  6562. void RemoveInstanceDefault();
  6563. void RemoveObjectAnimation();
  6564. void ResetToDefault();
  6565. bool Save(File) const;
  6566. bool Save(VectorBuffer&) const;
  6567. bool SaveJSON(JSONValue&) const;
  6568. bool SaveXML(XMLElement&) const;
  6569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6570. void SetAnimationTime(float);
  6571. bool SetAttribute(const String&, const Variant&);
  6572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6573. void SetAttributeAnimationSpeed(const String&, float);
  6574. void SetAttributeAnimationTime(const String&, float);
  6575. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6576. void SetInterceptNetworkUpdate(const String&, bool);
  6577. // Properties:
  6578. bool animationEnabled;
  6579. /* readonly */
  6580. Array<Variant> attributeDefaults;
  6581. /* readonly */
  6582. Array<AttributeInfo> attributeInfos;
  6583. Array<Variant> attributes;
  6584. /* readonly */
  6585. String category;
  6586. bool enabled;
  6587. /* readonly */
  6588. bool enabledEffective;
  6589. /* readonly */
  6590. uint id;
  6591. /* readonly */
  6592. Node node;
  6593. /* readonly */
  6594. uint numAttributes;
  6595. ObjectAnimation objectAnimation;
  6596. bool recursive;
  6597. /* readonly */
  6598. int refs;
  6599. bool temporary;
  6600. /* readonly */
  6601. StringHash type;
  6602. /* readonly */
  6603. String typeName;
  6604. /* readonly */
  6605. int weakRefs;
  6606. };
  6607. class NavigationMesh
  6608. {
  6609. // Methods:
  6610. void ApplyAttributes();
  6611. bool Build();
  6612. bool Build(const BoundingBox&);
  6613. void DrawDebugGeometry(DebugRenderer, bool);
  6614. void DrawDebugGeometry(bool);
  6615. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6616. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6617. float GetAreaCost(uint) const;
  6618. Variant GetAttribute(const String&) const;
  6619. ValueAnimation GetAttributeAnimation(const String&) const;
  6620. float GetAttributeAnimationSpeed(const String&) const;
  6621. float GetAttributeAnimationTime(const String&) const;
  6622. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6623. Variant GetAttributeDefault(const String&) const;
  6624. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6625. bool GetInterceptNetworkUpdate(const String&) const;
  6626. Vector3 GetRandomPoint();
  6627. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6628. bool HasSubscribedToEvent(Object, const String&);
  6629. bool HasSubscribedToEvent(const String&);
  6630. bool Load(File, bool = false);
  6631. bool Load(VectorBuffer&, bool = false);
  6632. bool LoadJSON(const JSONValue&, bool = false);
  6633. bool LoadXML(const XMLElement&, bool = false);
  6634. void MarkNetworkUpdate() const;
  6635. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6636. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6637. void Remove();
  6638. void RemoveAttributeAnimation(const String&);
  6639. void RemoveInstanceDefault();
  6640. void RemoveObjectAnimation();
  6641. void ResetToDefault();
  6642. bool Save(File) const;
  6643. bool Save(VectorBuffer&) const;
  6644. bool SaveJSON(JSONValue&) const;
  6645. bool SaveXML(XMLElement&) const;
  6646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6647. void SetAnimationTime(float);
  6648. void SetAreaCost(uint, float);
  6649. bool SetAttribute(const String&, const Variant&);
  6650. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6651. void SetAttributeAnimationSpeed(const String&, float);
  6652. void SetAttributeAnimationTime(const String&, float);
  6653. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6654. void SetInterceptNetworkUpdate(const String&, bool);
  6655. // Properties:
  6656. float agentHeight;
  6657. float agentMaxClimb;
  6658. float agentMaxSlope;
  6659. float agentRadius;
  6660. bool animationEnabled;
  6661. /* readonly */
  6662. Array<Variant> attributeDefaults;
  6663. /* readonly */
  6664. Array<AttributeInfo> attributeInfos;
  6665. Array<Variant> attributes;
  6666. /* readonly */
  6667. BoundingBox boundingBox;
  6668. /* readonly */
  6669. String category;
  6670. float cellHeight;
  6671. float cellSize;
  6672. float detailSampleDistance;
  6673. float detailSampleMaxError;
  6674. bool drawNavAreas;
  6675. bool drawOffMeshConnections;
  6676. float edgeMaxError;
  6677. float edgeMaxLength;
  6678. bool enabled;
  6679. /* readonly */
  6680. bool enabledEffective;
  6681. /* readonly */
  6682. uint id;
  6683. /* readonly */
  6684. bool initialized;
  6685. /* readonly */
  6686. Node node;
  6687. /* readonly */
  6688. uint numAttributes;
  6689. /* readonly */
  6690. IntVector2 numTiles;
  6691. ObjectAnimation objectAnimation;
  6692. Vector3 padding;
  6693. NavmeshPartitionType partitionType;
  6694. /* readonly */
  6695. int refs;
  6696. float regionMergeSize;
  6697. float regionMinSize;
  6698. bool temporary;
  6699. int tileSize;
  6700. /* readonly */
  6701. StringHash type;
  6702. /* readonly */
  6703. String typeName;
  6704. /* readonly */
  6705. int weakRefs;
  6706. /* readonly */
  6707. BoundingBox worldBoundingBox;
  6708. };
  6709. class Network
  6710. {
  6711. // Methods:
  6712. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6713. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6714. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6715. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6716. bool CheckRemoteEvent(const String&) const;
  6717. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6718. void Disconnect(int = 0);
  6719. bool HasSubscribedToEvent(Object, const String&);
  6720. bool HasSubscribedToEvent(const String&);
  6721. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6722. void RegisterRemoteEvent(const String&) const;
  6723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6724. void SendPackageToClients(Scene, PackageFile);
  6725. bool StartServer(uint16);
  6726. void StopServer();
  6727. void UnregisterAllRemoteEvents();
  6728. void UnregisterRemoteEvent(const String&) const;
  6729. // Properties:
  6730. /* readonly */
  6731. String category;
  6732. /* readonly */
  6733. Array<Connection> clientConnections;
  6734. String packageCacheDir;
  6735. /* readonly */
  6736. int refs;
  6737. /* readonly */
  6738. Connection serverConnection;
  6739. /* readonly */
  6740. bool serverRunning;
  6741. int simulatedLatency;
  6742. float simulatedPacketLoss;
  6743. /* readonly */
  6744. StringHash type;
  6745. /* readonly */
  6746. String typeName;
  6747. int updateFps;
  6748. /* readonly */
  6749. int weakRefs;
  6750. };
  6751. class NetworkPriority
  6752. {
  6753. // Methods:
  6754. void ApplyAttributes();
  6755. void DrawDebugGeometry(DebugRenderer, bool);
  6756. Variant GetAttribute(const String&) const;
  6757. ValueAnimation GetAttributeAnimation(const String&) const;
  6758. float GetAttributeAnimationSpeed(const String&) const;
  6759. float GetAttributeAnimationTime(const String&) const;
  6760. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6761. Variant GetAttributeDefault(const String&) const;
  6762. bool GetInterceptNetworkUpdate(const String&) const;
  6763. bool HasSubscribedToEvent(Object, const String&);
  6764. bool HasSubscribedToEvent(const String&);
  6765. bool Load(File, bool = false);
  6766. bool Load(VectorBuffer&, bool = false);
  6767. bool LoadJSON(const JSONValue&, bool = false);
  6768. bool LoadXML(const XMLElement&, bool = false);
  6769. void MarkNetworkUpdate() const;
  6770. void Remove();
  6771. void RemoveAttributeAnimation(const String&);
  6772. void RemoveInstanceDefault();
  6773. void RemoveObjectAnimation();
  6774. void ResetToDefault();
  6775. bool Save(File) const;
  6776. bool Save(VectorBuffer&) const;
  6777. bool SaveJSON(JSONValue&) const;
  6778. bool SaveXML(XMLElement&) const;
  6779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6780. void SetAnimationTime(float);
  6781. bool SetAttribute(const String&, const Variant&);
  6782. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6783. void SetAttributeAnimationSpeed(const String&, float);
  6784. void SetAttributeAnimationTime(const String&, float);
  6785. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6786. void SetInterceptNetworkUpdate(const String&, bool);
  6787. // Properties:
  6788. bool alwaysUpdateOwner;
  6789. bool animationEnabled;
  6790. /* readonly */
  6791. Array<Variant> attributeDefaults;
  6792. /* readonly */
  6793. Array<AttributeInfo> attributeInfos;
  6794. Array<Variant> attributes;
  6795. float basePriority;
  6796. /* readonly */
  6797. String category;
  6798. float distanceFactor;
  6799. bool enabled;
  6800. /* readonly */
  6801. bool enabledEffective;
  6802. /* readonly */
  6803. uint id;
  6804. float minPriority;
  6805. /* readonly */
  6806. Node node;
  6807. /* readonly */
  6808. uint numAttributes;
  6809. ObjectAnimation objectAnimation;
  6810. /* readonly */
  6811. int refs;
  6812. bool temporary;
  6813. /* readonly */
  6814. StringHash type;
  6815. /* readonly */
  6816. String typeName;
  6817. /* readonly */
  6818. int weakRefs;
  6819. };
  6820. class Node
  6821. {
  6822. // Methods:
  6823. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6824. void AddTag(const String&);
  6825. void AddTags(const String&, int8 = ';');
  6826. void ApplyAttributes();
  6827. Node Clone(CreateMode = REPLICATED);
  6828. Component CloneComponent(Component, CreateMode, uint = 0);
  6829. Component CloneComponent(Component, uint = 0);
  6830. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6831. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6832. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6833. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6834. Variant GetAttribute(const String&) const;
  6835. ValueAnimation GetAttributeAnimation(const String&) const;
  6836. float GetAttributeAnimationSpeed(const String&) const;
  6837. float GetAttributeAnimationTime(const String&) const;
  6838. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6839. Variant GetAttributeDefault(const String&) const;
  6840. Node GetChild(const String&, bool = false) const;
  6841. Array<Node> GetChildren(bool = false) const;
  6842. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6843. Array<Node> GetChildrenWithScript(bool = false) const;
  6844. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6845. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6846. Component GetComponent(const String&, bool = false) const;
  6847. Array<Component> GetComponents() const;
  6848. Array<Component> GetComponents(const String&, bool = false) const;
  6849. bool GetInterceptNetworkUpdate(const String&) const;
  6850. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6851. Component GetParentComponent(const String&, bool = false) const;
  6852. ScriptObject GetScriptObject() const;
  6853. ScriptObject GetScriptObject(const String&) const;
  6854. bool HasComponent(const String&) const;
  6855. bool HasSubscribedToEvent(Object, const String&);
  6856. bool HasSubscribedToEvent(const String&);
  6857. bool HasTag(const String&);
  6858. bool Load(File, bool = false);
  6859. bool Load(VectorBuffer&, bool = false);
  6860. bool LoadJSON(const JSONValue&, bool = false);
  6861. bool LoadXML(const XMLElement&, bool = false);
  6862. Vector3 LocalToWorld(const Vector3&) const;
  6863. Vector3 LocalToWorld(const Vector4&) const;
  6864. Vector2 LocalToWorld2D(const Vector2&) const;
  6865. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6866. void MarkDirty();
  6867. void MarkNetworkUpdate() const;
  6868. void Pitch(float, TransformSpace = TS_LOCAL);
  6869. void Remove();
  6870. void RemoveAllChildren();
  6871. void RemoveAllComponents();
  6872. void RemoveAllTags();
  6873. void RemoveAttributeAnimation(const String&);
  6874. void RemoveChild(Node);
  6875. void RemoveChildren(bool, bool, bool);
  6876. void RemoveComponent(Component);
  6877. void RemoveComponent(const String&);
  6878. void RemoveComponents(bool, bool);
  6879. void RemoveComponents(const String&);
  6880. void RemoveInstanceDefault();
  6881. void RemoveObjectAnimation();
  6882. bool RemoveTag(const String&);
  6883. void ResetDeepEnabled();
  6884. void ResetToDefault();
  6885. void Roll(float, TransformSpace = TS_LOCAL);
  6886. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6887. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6888. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6889. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6890. bool Save(File) const;
  6891. bool Save(VectorBuffer&) const;
  6892. bool SaveJSON(File);
  6893. bool SaveJSON(JSONValue&) const;
  6894. bool SaveJSON(VectorBuffer&);
  6895. bool SaveXML(File, const String& = "\t");
  6896. bool SaveXML(VectorBuffer&, const String& = "\t");
  6897. bool SaveXML(XMLElement&) const;
  6898. void Scale(const Vector3&);
  6899. void Scale(float);
  6900. void Scale2D(const Vector2&);
  6901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6902. void SetAnimationTime(float);
  6903. bool SetAttribute(const String&, const Variant&);
  6904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6905. void SetAttributeAnimationSpeed(const String&, float);
  6906. void SetAttributeAnimationTime(const String&, float);
  6907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6908. void SetDeepEnabled(bool);
  6909. void SetEnabledRecursive(bool);
  6910. void SetInterceptNetworkUpdate(const String&, bool);
  6911. void SetPosition2D(float, float);
  6912. void SetScale(float);
  6913. void SetScale2D(float, float);
  6914. void SetTransform(const Vector3&, const Quaternion&);
  6915. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6916. void SetTransform(const Vector3&, const Quaternion&, float);
  6917. void SetTransform2D(const Vector2&, float);
  6918. void SetTransform2D(const Vector2&, float, const Vector2&);
  6919. void SetTransform2D(const Vector2&, float, float);
  6920. void SetWorldTransform(const Vector3&, const Quaternion&);
  6921. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6922. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6923. void SetWorldTransform2D(const Vector2&, float);
  6924. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6925. void SetWorldTransform2D(const Vector2&, float, float);
  6926. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6927. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6928. Vector3 WorldToLocal(const Vector3&) const;
  6929. Vector3 WorldToLocal(const Vector4&) const;
  6930. Vector2 WorldToLocal2D(const Vector2&) const;
  6931. void Yaw(float, TransformSpace = TS_LOCAL);
  6932. // Properties:
  6933. bool animationEnabled;
  6934. /* readonly */
  6935. Array<Variant> attributeDefaults;
  6936. /* readonly */
  6937. Array<AttributeInfo> attributeInfos;
  6938. Array<Variant> attributes;
  6939. /* readonly */
  6940. String category;
  6941. /* readonly */
  6942. Array<Node> children;
  6943. /* readonly */
  6944. Array<Component> components;
  6945. Vector3 direction;
  6946. bool enabled;
  6947. /* readonly */
  6948. bool enabledSelf;
  6949. /* readonly */
  6950. uint id;
  6951. String name;
  6952. /* readonly */
  6953. uint numAllChildren;
  6954. /* readonly */
  6955. uint numAttributes;
  6956. /* readonly */
  6957. uint numChildren;
  6958. /* readonly */
  6959. uint numComponents;
  6960. ObjectAnimation objectAnimation;
  6961. Connection owner;
  6962. Node parent;
  6963. Vector3 position;
  6964. Vector2 position2D;
  6965. /* readonly */
  6966. int refs;
  6967. /* readonly */
  6968. Vector3 right;
  6969. Quaternion rotation;
  6970. float rotation2D;
  6971. Vector3 scale;
  6972. Vector2 scale2D;
  6973. /* readonly */
  6974. Scene scene;
  6975. /* readonly */
  6976. ScriptObject scriptObject;
  6977. /* readonly */
  6978. Array<String> tags;
  6979. bool temporary;
  6980. /* readonly */
  6981. Matrix3x4 transform;
  6982. /* readonly */
  6983. StringHash type;
  6984. /* readonly */
  6985. String typeName;
  6986. /* readonly */
  6987. Vector3 up;
  6988. /* readonly */
  6989. VariantMap vars;
  6990. /* readonly */
  6991. int weakRefs;
  6992. Vector3 worldDirection;
  6993. Vector3 worldPosition;
  6994. Vector2 worldPosition2D;
  6995. /* readonly */
  6996. Vector3 worldRight;
  6997. Quaternion worldRotation;
  6998. float worldRotation2D;
  6999. Vector3 worldScale;
  7000. Vector2 worldScale2D;
  7001. /* readonly */
  7002. Matrix3x4 worldTransform;
  7003. /* readonly */
  7004. Vector3 worldUp;
  7005. };
  7006. class Object
  7007. {
  7008. // Methods:
  7009. bool HasSubscribedToEvent(Object, const String&);
  7010. bool HasSubscribedToEvent(const String&);
  7011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7012. // Properties:
  7013. /* readonly */
  7014. String category;
  7015. /* readonly */
  7016. int refs;
  7017. /* readonly */
  7018. StringHash type;
  7019. /* readonly */
  7020. String typeName;
  7021. /* readonly */
  7022. int weakRefs;
  7023. };
  7024. class ObjectAnimation
  7025. {
  7026. // Methods:
  7027. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7028. ValueAnimation GetAttributeAnimation(const String&) const;
  7029. float GetAttributeAnimationSpeed(const String&) const;
  7030. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7031. bool HasSubscribedToEvent(Object, const String&);
  7032. bool HasSubscribedToEvent(const String&);
  7033. bool Load(File);
  7034. bool Load(VectorBuffer&);
  7035. void RemoveAttributeAnimation(ValueAnimation);
  7036. void RemoveAttributeAnimation(const String&);
  7037. bool Save(File) const;
  7038. bool Save(VectorBuffer&) const;
  7039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7040. // Properties:
  7041. /* readonly */
  7042. Array<Variant> attributeAnimations;
  7043. /* readonly */
  7044. String category;
  7045. /* readonly */
  7046. uint memoryUse;
  7047. String name;
  7048. /* readonly */
  7049. int refs;
  7050. /* readonly */
  7051. Array<Variant> speeds;
  7052. /* readonly */
  7053. StringHash type;
  7054. /* readonly */
  7055. String typeName;
  7056. /* readonly */
  7057. uint useTimer;
  7058. /* readonly */
  7059. int weakRefs;
  7060. /* readonly */
  7061. Array<Variant> wrapModes;
  7062. };
  7063. class Obstacle
  7064. {
  7065. // Methods:
  7066. void ApplyAttributes();
  7067. void DrawDebugGeometry(DebugRenderer, bool);
  7068. void DrawDebugGeometry(bool);
  7069. Variant GetAttribute(const String&) const;
  7070. ValueAnimation GetAttributeAnimation(const String&) const;
  7071. float GetAttributeAnimationSpeed(const String&) const;
  7072. float GetAttributeAnimationTime(const String&) const;
  7073. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7074. Variant GetAttributeDefault(const String&) const;
  7075. bool GetInterceptNetworkUpdate(const String&) const;
  7076. bool HasSubscribedToEvent(Object, const String&);
  7077. bool HasSubscribedToEvent(const String&);
  7078. bool Load(File, bool = false);
  7079. bool Load(VectorBuffer&, bool = false);
  7080. bool LoadJSON(const JSONValue&, bool = false);
  7081. bool LoadXML(const XMLElement&, bool = false);
  7082. void MarkNetworkUpdate() const;
  7083. void Remove();
  7084. void RemoveAttributeAnimation(const String&);
  7085. void RemoveInstanceDefault();
  7086. void RemoveObjectAnimation();
  7087. void ResetToDefault();
  7088. bool Save(File) const;
  7089. bool Save(VectorBuffer&) const;
  7090. bool SaveJSON(JSONValue&) const;
  7091. bool SaveXML(XMLElement&) const;
  7092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7093. void SetAnimationTime(float);
  7094. bool SetAttribute(const String&, const Variant&);
  7095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7096. void SetAttributeAnimationSpeed(const String&, float);
  7097. void SetAttributeAnimationTime(const String&, float);
  7098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7099. void SetInterceptNetworkUpdate(const String&, bool);
  7100. // Properties:
  7101. bool animationEnabled;
  7102. /* readonly */
  7103. Array<Variant> attributeDefaults;
  7104. /* readonly */
  7105. Array<AttributeInfo> attributeInfos;
  7106. Array<Variant> attributes;
  7107. /* readonly */
  7108. String category;
  7109. bool enabled;
  7110. /* readonly */
  7111. bool enabledEffective;
  7112. float height;
  7113. /* readonly */
  7114. uint id;
  7115. /* readonly */
  7116. Node node;
  7117. /* readonly */
  7118. uint numAttributes;
  7119. ObjectAnimation objectAnimation;
  7120. /* readonly */
  7121. uint obstacleId;
  7122. float radius;
  7123. /* readonly */
  7124. int refs;
  7125. bool temporary;
  7126. /* readonly */
  7127. StringHash type;
  7128. /* readonly */
  7129. String typeName;
  7130. /* readonly */
  7131. int weakRefs;
  7132. };
  7133. class Octree
  7134. {
  7135. // Methods:
  7136. void AddManualDrawable(Drawable);
  7137. void ApplyAttributes();
  7138. void DrawDebugGeometry(DebugRenderer, bool);
  7139. void DrawDebugGeometry(bool) const;
  7140. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7141. Variant GetAttribute(const String&) const;
  7142. ValueAnimation GetAttributeAnimation(const String&) const;
  7143. float GetAttributeAnimationSpeed(const String&) const;
  7144. float GetAttributeAnimationTime(const String&) const;
  7145. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7146. Variant GetAttributeDefault(const String&) const;
  7147. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7148. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7149. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7150. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7151. bool GetInterceptNetworkUpdate(const String&) const;
  7152. bool HasSubscribedToEvent(Object, const String&);
  7153. bool HasSubscribedToEvent(const String&);
  7154. bool Load(File, bool = false);
  7155. bool Load(VectorBuffer&, bool = false);
  7156. bool LoadJSON(const JSONValue&, bool = false);
  7157. bool LoadXML(const XMLElement&, bool = false);
  7158. void MarkNetworkUpdate() const;
  7159. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7160. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7161. void Remove();
  7162. void RemoveAttributeAnimation(const String&);
  7163. void RemoveInstanceDefault();
  7164. void RemoveManualDrawable(Drawable);
  7165. void RemoveObjectAnimation();
  7166. void ResetToDefault();
  7167. bool Save(File) const;
  7168. bool Save(VectorBuffer&) const;
  7169. bool SaveJSON(JSONValue&) const;
  7170. bool SaveXML(XMLElement&) const;
  7171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7172. void SetAnimationTime(float);
  7173. bool SetAttribute(const String&, const Variant&);
  7174. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7175. void SetAttributeAnimationSpeed(const String&, float);
  7176. void SetAttributeAnimationTime(const String&, float);
  7177. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7178. void SetInterceptNetworkUpdate(const String&, bool);
  7179. void SetSize(const BoundingBox&, uint);
  7180. // Properties:
  7181. bool animationEnabled;
  7182. /* readonly */
  7183. Array<Variant> attributeDefaults;
  7184. /* readonly */
  7185. Array<AttributeInfo> attributeInfos;
  7186. Array<Variant> attributes;
  7187. /* readonly */
  7188. String category;
  7189. bool enabled;
  7190. /* readonly */
  7191. bool enabledEffective;
  7192. /* readonly */
  7193. uint id;
  7194. /* readonly */
  7195. Node node;
  7196. /* readonly */
  7197. uint numAttributes;
  7198. /* readonly */
  7199. uint numLevels;
  7200. ObjectAnimation objectAnimation;
  7201. /* readonly */
  7202. int refs;
  7203. bool temporary;
  7204. /* readonly */
  7205. StringHash type;
  7206. /* readonly */
  7207. String typeName;
  7208. /* readonly */
  7209. int weakRefs;
  7210. /* readonly */
  7211. BoundingBox worldBoundingBox;
  7212. };
  7213. class OffMeshConnection
  7214. {
  7215. // Methods:
  7216. void ApplyAttributes();
  7217. void DrawDebugGeometry(DebugRenderer, bool);
  7218. Variant GetAttribute(const String&) const;
  7219. ValueAnimation GetAttributeAnimation(const String&) const;
  7220. float GetAttributeAnimationSpeed(const String&) const;
  7221. float GetAttributeAnimationTime(const String&) const;
  7222. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7223. Variant GetAttributeDefault(const String&) const;
  7224. bool GetInterceptNetworkUpdate(const String&) const;
  7225. bool HasSubscribedToEvent(Object, const String&);
  7226. bool HasSubscribedToEvent(const String&);
  7227. bool Load(File, bool = false);
  7228. bool Load(VectorBuffer&, bool = false);
  7229. bool LoadJSON(const JSONValue&, bool = false);
  7230. bool LoadXML(const XMLElement&, bool = false);
  7231. void MarkNetworkUpdate() const;
  7232. void Remove();
  7233. void RemoveAttributeAnimation(const String&);
  7234. void RemoveInstanceDefault();
  7235. void RemoveObjectAnimation();
  7236. void ResetToDefault();
  7237. bool Save(File) const;
  7238. bool Save(VectorBuffer&) const;
  7239. bool SaveJSON(JSONValue&) const;
  7240. bool SaveXML(XMLElement&) const;
  7241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7242. void SetAnimationTime(float);
  7243. bool SetAttribute(const String&, const Variant&);
  7244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7245. void SetAttributeAnimationSpeed(const String&, float);
  7246. void SetAttributeAnimationTime(const String&, float);
  7247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7248. void SetInterceptNetworkUpdate(const String&, bool);
  7249. // Properties:
  7250. bool animationEnabled;
  7251. uint areaID;
  7252. /* readonly */
  7253. Array<Variant> attributeDefaults;
  7254. /* readonly */
  7255. Array<AttributeInfo> attributeInfos;
  7256. Array<Variant> attributes;
  7257. bool bidirectional;
  7258. /* readonly */
  7259. String category;
  7260. bool enabled;
  7261. /* readonly */
  7262. bool enabledEffective;
  7263. Node endPoint;
  7264. /* readonly */
  7265. uint id;
  7266. uint mask;
  7267. /* readonly */
  7268. Node node;
  7269. /* readonly */
  7270. uint numAttributes;
  7271. ObjectAnimation objectAnimation;
  7272. float radius;
  7273. /* readonly */
  7274. int refs;
  7275. bool temporary;
  7276. /* readonly */
  7277. StringHash type;
  7278. /* readonly */
  7279. String typeName;
  7280. /* readonly */
  7281. int weakRefs;
  7282. };
  7283. class PackageFile
  7284. {
  7285. // Methods:
  7286. bool Exists(const String&) const;
  7287. Array<String> GetEntryNames() const;
  7288. bool HasSubscribedToEvent(Object, const String&);
  7289. bool HasSubscribedToEvent(const String&);
  7290. bool Open(const String&, uint = 0) const;
  7291. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7292. bool compressed() const;
  7293. // Properties:
  7294. /* readonly */
  7295. String category;
  7296. /* readonly */
  7297. uint checksum;
  7298. /* readonly */
  7299. String name;
  7300. /* readonly */
  7301. uint numFiles;
  7302. /* readonly */
  7303. int refs;
  7304. /* readonly */
  7305. uint totalSize;
  7306. /* readonly */
  7307. StringHash type;
  7308. /* readonly */
  7309. String typeName;
  7310. /* readonly */
  7311. int weakRefs;
  7312. };
  7313. class ParticleEffect
  7314. {
  7315. // Methods:
  7316. void AddColorFrame(ColorFrame);
  7317. void AddColorTime(Color&, float);
  7318. void AddTextureFrame(TextureFrame);
  7319. void AddTextureTime(Rect&, float);
  7320. ColorFrame GetColorFrame(uint) const;
  7321. TextureFrame GetTextureFrame(uint) const;
  7322. bool HasSubscribedToEvent(Object, const String&);
  7323. bool HasSubscribedToEvent(const String&);
  7324. bool Load(File);
  7325. bool Load(VectorBuffer&);
  7326. bool Load(const XMLElement&);
  7327. void RemoveColorFrame(uint);
  7328. void RemoveTextureFrame(uint);
  7329. bool Save(File) const;
  7330. bool Save(VectorBuffer&) const;
  7331. bool Save(XMLElement&) const;
  7332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7333. void SetColorFrame(uint, ColorFrame);
  7334. void SetTextureFrame(uint, TextureFrame);
  7335. void SortColorFrames();
  7336. void SortTextureFrames();
  7337. // Properties:
  7338. float activeTime;
  7339. float animationLodBias;
  7340. /* readonly */
  7341. String category;
  7342. Vector3 constantForce;
  7343. float dampingForce;
  7344. Vector3 emitterSize;
  7345. EmitterType emitterType;
  7346. FaceCameraMode faceCameraMode;
  7347. float inactiveTime;
  7348. Material material;
  7349. Vector3 maxDirection;
  7350. float maxEmissionRate;
  7351. Vector2 maxParticleSize;
  7352. float maxRotation;
  7353. float maxRotationSpeed;
  7354. float maxTimeToLive;
  7355. float maxVelocity;
  7356. /* readonly */
  7357. uint memoryUse;
  7358. Vector3 minDirection;
  7359. float minEmissionRate;
  7360. Vector2 minParticleSize;
  7361. float minRotation;
  7362. float minRotationSpeed;
  7363. float minTimeToLive;
  7364. float minVelocity;
  7365. String name;
  7366. uint numColorFrames;
  7367. uint numParticles;
  7368. uint numTextureFrames;
  7369. /* readonly */
  7370. int refs;
  7371. bool relative;
  7372. bool scaled;
  7373. float sizeAdd;
  7374. float sizeMul;
  7375. bool sorted;
  7376. /* readonly */
  7377. StringHash type;
  7378. /* readonly */
  7379. String typeName;
  7380. bool updateInvisible;
  7381. /* readonly */
  7382. uint useTimer;
  7383. /* readonly */
  7384. int weakRefs;
  7385. };
  7386. class ParticleEffect2D
  7387. {
  7388. // Methods:
  7389. bool HasSubscribedToEvent(Object, const String&);
  7390. bool HasSubscribedToEvent(const String&);
  7391. bool Load(File);
  7392. bool Load(VectorBuffer&);
  7393. bool Save(File) const;
  7394. bool Save(VectorBuffer&) const;
  7395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7396. // Properties:
  7397. /* readonly */
  7398. String category;
  7399. /* readonly */
  7400. uint memoryUse;
  7401. String name;
  7402. /* readonly */
  7403. int refs;
  7404. /* readonly */
  7405. StringHash type;
  7406. /* readonly */
  7407. String typeName;
  7408. /* readonly */
  7409. uint useTimer;
  7410. /* readonly */
  7411. int weakRefs;
  7412. };
  7413. class ParticleEmitter
  7414. {
  7415. // Methods:
  7416. void ApplyAttributes();
  7417. void ApplyEffect();
  7418. void Commit();
  7419. void DrawDebugGeometry(DebugRenderer, bool);
  7420. Variant GetAttribute(const String&) const;
  7421. ValueAnimation GetAttributeAnimation(const String&) const;
  7422. float GetAttributeAnimationSpeed(const String&) const;
  7423. float GetAttributeAnimationTime(const String&) const;
  7424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7425. Variant GetAttributeDefault(const String&) const;
  7426. bool GetInterceptNetworkUpdate(const String&) const;
  7427. bool HasSubscribedToEvent(Object, const String&);
  7428. bool HasSubscribedToEvent(const String&);
  7429. bool IsInView(Camera) const;
  7430. bool Load(File, bool = false);
  7431. bool Load(VectorBuffer&, bool = false);
  7432. bool LoadJSON(const JSONValue&, bool = false);
  7433. bool LoadXML(const XMLElement&, bool = false);
  7434. void MarkNetworkUpdate() const;
  7435. void Remove();
  7436. void RemoveAllParticles();
  7437. void RemoveAttributeAnimation(const String&);
  7438. void RemoveInstanceDefault();
  7439. void RemoveObjectAnimation();
  7440. void Reset();
  7441. void ResetEmissionTimer();
  7442. void ResetToDefault();
  7443. bool Save(File) const;
  7444. bool Save(VectorBuffer&) const;
  7445. bool SaveJSON(JSONValue&) const;
  7446. bool SaveXML(XMLElement&) const;
  7447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7448. void SetAnimationTime(float);
  7449. bool SetAttribute(const String&, const Variant&);
  7450. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7451. void SetAttributeAnimationSpeed(const String&, float);
  7452. void SetAttributeAnimationTime(const String&, float);
  7453. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7454. void SetInterceptNetworkUpdate(const String&, bool);
  7455. // Properties:
  7456. bool animationEnabled;
  7457. float animationLodBias;
  7458. /* readonly */
  7459. Array<Variant> attributeDefaults;
  7460. /* readonly */
  7461. Array<AttributeInfo> attributeInfos;
  7462. Array<Variant> attributes;
  7463. /* readonly */
  7464. Array<Billboard> billboards;
  7465. /* readonly */
  7466. BoundingBox boundingBox;
  7467. bool castShadows;
  7468. /* readonly */
  7469. String category;
  7470. float drawDistance;
  7471. ParticleEffect effect;
  7472. bool emitting;
  7473. bool enabled;
  7474. /* readonly */
  7475. bool enabledEffective;
  7476. FaceCameraMode faceCameraMode;
  7477. /* readonly */
  7478. uint id;
  7479. /* readonly */
  7480. bool inView;
  7481. uint lightMask;
  7482. float lodBias;
  7483. Material material;
  7484. uint maxLights;
  7485. /* readonly */
  7486. Node node;
  7487. /* readonly */
  7488. uint numAttributes;
  7489. uint numBillboards;
  7490. uint numParticles;
  7491. ObjectAnimation objectAnimation;
  7492. bool occludee;
  7493. bool occluder;
  7494. /* readonly */
  7495. int refs;
  7496. bool relative;
  7497. bool scaled;
  7498. bool serializeParticles;
  7499. float shadowDistance;
  7500. uint shadowMask;
  7501. bool sorted;
  7502. bool temporary;
  7503. /* readonly */
  7504. StringHash type;
  7505. /* readonly */
  7506. String typeName;
  7507. uint viewMask;
  7508. /* readonly */
  7509. int weakRefs;
  7510. /* readonly */
  7511. BoundingBox worldBoundingBox;
  7512. /* readonly */
  7513. Zone zone;
  7514. uint zoneMask;
  7515. };
  7516. class ParticleEmitter2D
  7517. {
  7518. // Methods:
  7519. void ApplyAttributes();
  7520. void DrawDebugGeometry(DebugRenderer, bool);
  7521. Variant GetAttribute(const String&) const;
  7522. ValueAnimation GetAttributeAnimation(const String&) const;
  7523. float GetAttributeAnimationSpeed(const String&) const;
  7524. float GetAttributeAnimationTime(const String&) const;
  7525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7526. Variant GetAttributeDefault(const String&) const;
  7527. bool GetInterceptNetworkUpdate(const String&) const;
  7528. bool HasSubscribedToEvent(Object, const String&);
  7529. bool HasSubscribedToEvent(const String&);
  7530. bool IsInView(Camera) const;
  7531. bool Load(File, bool = false);
  7532. bool Load(VectorBuffer&, bool = false);
  7533. bool LoadJSON(const JSONValue&, bool = false);
  7534. bool LoadXML(const XMLElement&, bool = false);
  7535. void MarkNetworkUpdate() const;
  7536. void Remove();
  7537. void RemoveAttributeAnimation(const String&);
  7538. void RemoveInstanceDefault();
  7539. void RemoveObjectAnimation();
  7540. void ResetToDefault();
  7541. bool Save(File) const;
  7542. bool Save(VectorBuffer&) const;
  7543. bool SaveJSON(JSONValue&) const;
  7544. bool SaveXML(XMLElement&) const;
  7545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7546. void SetAnimationTime(float);
  7547. bool SetAttribute(const String&, const Variant&);
  7548. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7549. void SetAttributeAnimationSpeed(const String&, float);
  7550. void SetAttributeAnimationTime(const String&, float);
  7551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7552. void SetInterceptNetworkUpdate(const String&, bool);
  7553. // Properties:
  7554. bool animationEnabled;
  7555. /* readonly */
  7556. Array<Variant> attributeDefaults;
  7557. /* readonly */
  7558. Array<AttributeInfo> attributeInfos;
  7559. Array<Variant> attributes;
  7560. BlendMode blendMode;
  7561. /* readonly */
  7562. BoundingBox boundingBox;
  7563. bool castShadows;
  7564. /* readonly */
  7565. String category;
  7566. float drawDistance;
  7567. ParticleEffect2D effect;
  7568. bool enabled;
  7569. /* readonly */
  7570. bool enabledEffective;
  7571. /* readonly */
  7572. uint id;
  7573. /* readonly */
  7574. bool inView;
  7575. int layer;
  7576. uint lightMask;
  7577. float lodBias;
  7578. uint maxLights;
  7579. /* readonly */
  7580. Node node;
  7581. /* readonly */
  7582. uint numAttributes;
  7583. ObjectAnimation objectAnimation;
  7584. bool occludee;
  7585. bool occluder;
  7586. int orderInLayer;
  7587. /* readonly */
  7588. int refs;
  7589. float shadowDistance;
  7590. uint shadowMask;
  7591. Sprite2D sprite;
  7592. bool temporary;
  7593. /* readonly */
  7594. StringHash type;
  7595. /* readonly */
  7596. String typeName;
  7597. uint viewMask;
  7598. /* readonly */
  7599. int weakRefs;
  7600. /* readonly */
  7601. BoundingBox worldBoundingBox;
  7602. uint zoneMask;
  7603. };
  7604. class Pass
  7605. {
  7606. // Properties:
  7607. bool alphaMask;
  7608. BlendMode blendMode;
  7609. CompareMode depthTestMode;
  7610. bool depthWrite;
  7611. bool desktop;
  7612. PassLightingMode lightingMode;
  7613. String pixelShader;
  7614. String pixelShaderDefines;
  7615. /* readonly */
  7616. int refs;
  7617. String vertexShader;
  7618. String vertexShaderDefines;
  7619. /* readonly */
  7620. int weakRefs;
  7621. };
  7622. class PhysicsRaycastResult
  7623. {
  7624. // Properties:
  7625. /* readonly */
  7626. RigidBody body;
  7627. float distance;
  7628. float hitFraction;
  7629. Vector3 normal;
  7630. Vector3 position;
  7631. };
  7632. class PhysicsRaycastResult2D
  7633. {
  7634. // Properties:
  7635. /* readonly */
  7636. RigidBody2D body;
  7637. float distance;
  7638. Vector2 normal;
  7639. Vector2 position;
  7640. };
  7641. class PhysicsWorld
  7642. {
  7643. // Methods:
  7644. void ApplyAttributes();
  7645. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7646. void DrawDebugGeometry(DebugRenderer, bool);
  7647. void DrawDebugGeometry(bool);
  7648. Variant GetAttribute(const String&) const;
  7649. ValueAnimation GetAttributeAnimation(const String&) const;
  7650. float GetAttributeAnimationSpeed(const String&) const;
  7651. float GetAttributeAnimationTime(const String&) const;
  7652. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7653. Variant GetAttributeDefault(const String&) const;
  7654. Array<RigidBody> GetCollidingBodies(RigidBody);
  7655. bool GetInterceptNetworkUpdate(const String&) const;
  7656. Array<RigidBody> GetRigidBodies(RigidBody);
  7657. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7658. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7659. bool HasSubscribedToEvent(Object, const String&);
  7660. bool HasSubscribedToEvent(const String&);
  7661. bool Load(File, bool = false);
  7662. bool Load(VectorBuffer&, bool = false);
  7663. bool LoadJSON(const JSONValue&, bool = false);
  7664. bool LoadXML(const XMLElement&, bool = false);
  7665. void MarkNetworkUpdate() const;
  7666. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7667. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7668. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7669. void Remove();
  7670. void RemoveAttributeAnimation(const String&);
  7671. void RemoveCachedGeometry(Model);
  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. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7688. void Update(float);
  7689. void UpdateCollisions();
  7690. // Properties:
  7691. bool animationEnabled;
  7692. /* readonly */
  7693. Array<Variant> attributeDefaults;
  7694. /* readonly */
  7695. Array<AttributeInfo> attributeInfos;
  7696. Array<Variant> attributes;
  7697. /* readonly */
  7698. String category;
  7699. bool enabled;
  7700. /* readonly */
  7701. bool enabledEffective;
  7702. int fps;
  7703. Vector3 gravity;
  7704. /* readonly */
  7705. uint id;
  7706. bool internalEdge;
  7707. bool interpolation;
  7708. int maxSubSteps;
  7709. /* readonly */
  7710. Node node;
  7711. /* readonly */
  7712. uint numAttributes;
  7713. int numIterations;
  7714. ObjectAnimation objectAnimation;
  7715. /* readonly */
  7716. int refs;
  7717. bool splitImpulse;
  7718. bool temporary;
  7719. /* readonly */
  7720. StringHash type;
  7721. /* readonly */
  7722. String typeName;
  7723. bool updateEnabled;
  7724. /* readonly */
  7725. int weakRefs;
  7726. };
  7727. class PhysicsWorld2D
  7728. {
  7729. // Methods:
  7730. void ApplyAttributes();
  7731. void DrawDebugGeometry() const;
  7732. void DrawDebugGeometry(DebugRenderer, bool);
  7733. Variant GetAttribute(const String&) const;
  7734. ValueAnimation GetAttributeAnimation(const String&) const;
  7735. float GetAttributeAnimationSpeed(const String&) const;
  7736. float GetAttributeAnimationTime(const String&) const;
  7737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7738. Variant GetAttributeDefault(const String&) const;
  7739. bool GetInterceptNetworkUpdate(const String&) const;
  7740. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7741. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7742. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7743. bool HasSubscribedToEvent(Object, const String&);
  7744. bool HasSubscribedToEvent(const String&);
  7745. bool Load(File, bool = false);
  7746. bool Load(VectorBuffer&, bool = false);
  7747. bool LoadJSON(const JSONValue&, bool = false);
  7748. bool LoadXML(const XMLElement&, bool = false);
  7749. void MarkNetworkUpdate() const;
  7750. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7751. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7752. void Remove();
  7753. void RemoveAttributeAnimation(const String&);
  7754. void RemoveInstanceDefault();
  7755. void RemoveObjectAnimation();
  7756. void ResetToDefault();
  7757. bool Save(File) const;
  7758. bool Save(VectorBuffer&) const;
  7759. bool SaveJSON(JSONValue&) const;
  7760. bool SaveXML(XMLElement&) const;
  7761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7762. void SetAnimationTime(float);
  7763. bool SetAttribute(const String&, const Variant&);
  7764. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7765. void SetAttributeAnimationSpeed(const String&, float);
  7766. void SetAttributeAnimationTime(const String&, float);
  7767. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7768. void SetInterceptNetworkUpdate(const String&, bool);
  7769. // Properties:
  7770. bool allowSleeping;
  7771. bool animationEnabled;
  7772. /* readonly */
  7773. Array<Variant> attributeDefaults;
  7774. /* readonly */
  7775. Array<AttributeInfo> attributeInfos;
  7776. Array<Variant> attributes;
  7777. bool autoClearForces;
  7778. /* readonly */
  7779. String category;
  7780. bool continuousPhysics;
  7781. bool drawAabb;
  7782. bool drawCenterOfMass;
  7783. bool drawJoint;
  7784. bool drawPair;
  7785. bool drawShape;
  7786. bool enabled;
  7787. /* readonly */
  7788. bool enabledEffective;
  7789. Vector2 gravity;
  7790. /* readonly */
  7791. uint id;
  7792. /* readonly */
  7793. Node node;
  7794. /* readonly */
  7795. uint numAttributes;
  7796. ObjectAnimation objectAnimation;
  7797. uint positionIterations;
  7798. /* readonly */
  7799. int refs;
  7800. bool subStepping;
  7801. bool temporary;
  7802. /* readonly */
  7803. StringHash type;
  7804. /* readonly */
  7805. String typeName;
  7806. bool updateEnabled;
  7807. uint velocityIterations;
  7808. bool warmStarting;
  7809. /* readonly */
  7810. int weakRefs;
  7811. };
  7812. class Plane
  7813. {
  7814. // Methods:
  7815. void Define(const Vector3&, const Vector3&);
  7816. void Define(const Vector3&, const Vector3&, const Vector3&);
  7817. void Define(const Vector4&);
  7818. float Distance(const Vector3&) const;
  7819. Vector3 Project(const Vector3&) const;
  7820. Vector3 Reflect(const Vector3&) const;
  7821. Vector4 ToVector4() const;
  7822. void Transform(const Matrix3&);
  7823. void Transform(const Matrix3x4&);
  7824. void Transform(const Matrix4&);
  7825. Plane Transformed(const Matrix3&) const;
  7826. Plane Transformed(const Matrix3x4&) const;
  7827. Plane Transformed(const Matrix4&) const;
  7828. // Properties:
  7829. Vector3 absNormal;
  7830. float d;
  7831. Vector3 normal;
  7832. /* readonly */
  7833. Matrix3x4 reflectionMatrix;
  7834. };
  7835. class Polyhedron
  7836. {
  7837. // Methods:
  7838. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7839. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7840. void AddFace(const Array<Vector3>);
  7841. void Clear();
  7842. void Clip(const BoundingBox&);
  7843. void Clip(const Frustum&);
  7844. void Define(const BoundingBox&);
  7845. void Define(const Frustum&);
  7846. void Transform(const Matrix3&);
  7847. void Transform(const Matrix3x4&);
  7848. Polyhedron Transformed(const Matrix3&) const;
  7849. Polyhedron Transformed(const Matrix3x4&) const;
  7850. // Properties:
  7851. /* readonly */
  7852. Array<Array<Vector3>> face;
  7853. /* readonly */
  7854. uint numFaces;
  7855. };
  7856. class PropertySet2D
  7857. {
  7858. // Methods:
  7859. bool HasProperty(const String&) const;
  7860. const String& GetProperty(const String&) const;
  7861. // Properties:
  7862. /* readonly */
  7863. int refs;
  7864. /* readonly */
  7865. int weakRefs;
  7866. };
  7867. class Quaternion
  7868. {
  7869. // Methods:
  7870. Quaternion Conjugate() const;
  7871. float DotProduct(const Quaternion&) const;
  7872. bool Equals(const Quaternion&) const;
  7873. void FromAngleAxis(float, const Vector3&);
  7874. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7875. void FromEulerAngles(float, float, float);
  7876. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7877. void FromRotationMatrix(const Matrix3&);
  7878. void FromRotationTo(const Vector3&, const Vector3&);
  7879. Quaternion Inverse() const;
  7880. bool IsNaN() const;
  7881. float LengthSquared() const;
  7882. Quaternion Nlerp(Quaternion, float, bool) const;
  7883. void Normalize();
  7884. Quaternion Normalized() const;
  7885. Quaternion Slerp(Quaternion, float) const;
  7886. String ToString() const;
  7887. // Properties:
  7888. /* readonly */
  7889. Vector3 eulerAngles;
  7890. /* readonly */
  7891. float pitch;
  7892. /* readonly */
  7893. float roll;
  7894. /* readonly */
  7895. Matrix3 rotationMatrix;
  7896. float w;
  7897. float x;
  7898. float y;
  7899. /* readonly */
  7900. float yaw;
  7901. float z;
  7902. };
  7903. class Ray
  7904. {
  7905. // Methods:
  7906. Vector3 ClosestPoint(const Ray&) const;
  7907. void Define(const Vector3&, const Vector3&);
  7908. float Distance(const Vector3&) const;
  7909. float HitDistance(const BoundingBox&) const;
  7910. float HitDistance(const Frustum&, bool = true) const;
  7911. float HitDistance(const Plane&) const;
  7912. float HitDistance(const Sphere&) const;
  7913. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7914. Vector3 Project(const Vector3&) const;
  7915. Ray Transformed(const Matrix3x4&) const;
  7916. // Properties:
  7917. Vector3 direction;
  7918. Vector3 origin;
  7919. };
  7920. class RayQueryResult
  7921. {
  7922. // Properties:
  7923. float distance;
  7924. /* readonly */
  7925. Drawable drawable;
  7926. /* readonly */
  7927. Node node;
  7928. Vector3 normal;
  7929. Vector3 position;
  7930. uint subObject;
  7931. Vector2 textureUV;
  7932. };
  7933. class Rect
  7934. {
  7935. // Methods:
  7936. void Clear();
  7937. void Clip(const Rect&);
  7938. void Define(const Vector2&);
  7939. void Define(const Vector2&, const Vector2&);
  7940. bool Defined() const;
  7941. bool Equals(const Rect&) const;
  7942. Intersection IsInside(const Vector2&) const;
  7943. void Merge(const Rect&);
  7944. void Merge(const Vector2&);
  7945. Vector4 ToVector4() const;
  7946. // Properties:
  7947. float bottom;
  7948. /* readonly */
  7949. Vector2 center;
  7950. /* readonly */
  7951. Vector2 halfSize;
  7952. float left;
  7953. Vector2 max;
  7954. Vector2 min;
  7955. float right;
  7956. /* readonly */
  7957. Vector2 size;
  7958. float top;
  7959. };
  7960. class RefCounted
  7961. {
  7962. // Properties:
  7963. /* readonly */
  7964. int refs;
  7965. /* readonly */
  7966. int weakRefs;
  7967. };
  7968. class RenderPath
  7969. {
  7970. // Methods:
  7971. void AddCommand(const RenderPathCommand&);
  7972. void AddRenderTarget(const RenderTargetInfo&);
  7973. bool Append(XMLFile);
  7974. RenderPath Clone();
  7975. void InsertCommand(uint, const RenderPathCommand&);
  7976. bool Load(XMLFile);
  7977. void RemoveCommand(uint);
  7978. void RemoveCommands(const String&);
  7979. void RemoveRenderTarget(const String&);
  7980. void RemoveRenderTarget(uint);
  7981. void RemoveRenderTargts(const String&);
  7982. void SetEnabled(const String&, bool);
  7983. void ToggleEnabled(const String&);
  7984. // Properties:
  7985. Array<RenderPathCommand> commands;
  7986. /* readonly */
  7987. uint numCommands;
  7988. /* readonly */
  7989. uint numRenderTargets;
  7990. /* readonly */
  7991. int refs;
  7992. Array<RenderTargetInfo> renderTargets;
  7993. Array<Variant> shaderParameters;
  7994. /* readonly */
  7995. int weakRefs;
  7996. };
  7997. class RenderPathCommand
  7998. {
  7999. // Methods:
  8000. void RemoveShaderParameter(const String&);
  8001. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8002. // Properties:
  8003. BlendMode blendMode;
  8004. Color clearColor;
  8005. float clearDepth;
  8006. uint clearFlags;
  8007. uint clearStencil;
  8008. String depthStencilName;
  8009. bool enabled;
  8010. bool markToStencil;
  8011. String metadata;
  8012. uint numOutputs;
  8013. Array<CubeMapFace> outputFaces;
  8014. Array<String> outputNames;
  8015. String pass;
  8016. String pixelShaderDefines;
  8017. String pixelShaderName;
  8018. Array<Variant> shaderParameters;
  8019. RenderCommandSortMode sortMode;
  8020. String tag;
  8021. Array<String> textureNames;
  8022. RenderCommandType type;
  8023. bool useFogColor;
  8024. bool useLitBase;
  8025. bool vertexLights;
  8026. String vertexShaderDefines;
  8027. String vertexShaderName;
  8028. };
  8029. class RenderSurface
  8030. {
  8031. // Methods:
  8032. void QueueUpdate();
  8033. // Properties:
  8034. /* readonly */
  8035. int height;
  8036. RenderSurface linkedDepthStencil;
  8037. RenderSurface linkedRenderTarget;
  8038. uint numViewports;
  8039. /* readonly */
  8040. Texture parentTexture;
  8041. RenderSurfaceUpdateMode updateMode;
  8042. /* readonly */
  8043. TextureUsage usage;
  8044. Array<Viewport> viewports;
  8045. /* readonly */
  8046. int width;
  8047. };
  8048. class RenderTargetInfo
  8049. {
  8050. // Properties:
  8051. bool cubemap;
  8052. bool enabled;
  8053. bool filtered;
  8054. uint format;
  8055. String name;
  8056. bool persistent;
  8057. bool sRGB;
  8058. Vector2 size;
  8059. RenderTargetSizeMode sizeMode;
  8060. String tag;
  8061. };
  8062. class Renderer
  8063. {
  8064. // Methods:
  8065. void DrawDebugGeometry(bool) const;
  8066. bool HasSubscribedToEvent(Object, const String&);
  8067. bool HasSubscribedToEvent(const String&);
  8068. void ReloadShaders() const;
  8069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8070. void SetDefaultRenderPath(XMLFile);
  8071. void SetVSMShadowParameters(float, float);
  8072. // Properties:
  8073. /* readonly */
  8074. String category;
  8075. /* readonly */
  8076. Material defaultLightRamp;
  8077. /* readonly */
  8078. Material defaultLightSpot;
  8079. /* readonly */
  8080. Material defaultMaterial;
  8081. RenderPath defaultRenderPath;
  8082. /* readonly */
  8083. Zone defaultZone;
  8084. bool drawShadows;
  8085. bool dynamicInstancing;
  8086. bool hdrRendering;
  8087. int materialQuality;
  8088. int maxOccluderTriangles;
  8089. int maxShadowMaps;
  8090. int maxSortedInstances;
  8091. int minInstances;
  8092. float mobileShadowBiasAdd;
  8093. float mobileShadowBiasMul;
  8094. /* readonly */
  8095. uint numBatches;
  8096. /* readonly */
  8097. Array<uint> numGeometries;
  8098. /* readonly */
  8099. Array<uint> numLights;
  8100. /* readonly */
  8101. Array<uint> numOccluders;
  8102. /* readonly */
  8103. uint numPrimitives;
  8104. /* readonly */
  8105. Array<uint> numShadowMaps;
  8106. uint numViewports;
  8107. /* readonly */
  8108. uint numViews;
  8109. float occluderSizeThreshold;
  8110. int occlusionBufferSize;
  8111. /* readonly */
  8112. int refs;
  8113. bool reuseShadowMaps;
  8114. int shadowMapSize;
  8115. ShadowQuality shadowQuality;
  8116. float shadowSoftness;
  8117. bool specularLighting;
  8118. int textureAnisotropy;
  8119. TextureFilterMode textureFilterMode;
  8120. int textureQuality;
  8121. bool threadedOcclusion;
  8122. /* readonly */
  8123. StringHash type;
  8124. /* readonly */
  8125. String typeName;
  8126. Array<Viewport> viewports;
  8127. Vector2 vsmShadowParameters;
  8128. /* readonly */
  8129. int weakRefs;
  8130. };
  8131. class Resource
  8132. {
  8133. // Methods:
  8134. bool HasSubscribedToEvent(Object, const String&);
  8135. bool HasSubscribedToEvent(const String&);
  8136. bool Load(File);
  8137. bool Load(VectorBuffer&);
  8138. bool Save(File) const;
  8139. bool Save(VectorBuffer&) const;
  8140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8141. // Properties:
  8142. /* readonly */
  8143. String category;
  8144. /* readonly */
  8145. uint memoryUse;
  8146. String name;
  8147. /* readonly */
  8148. int refs;
  8149. /* readonly */
  8150. StringHash type;
  8151. /* readonly */
  8152. String typeName;
  8153. /* readonly */
  8154. uint useTimer;
  8155. /* readonly */
  8156. int weakRefs;
  8157. };
  8158. class ResourceCache
  8159. {
  8160. // Methods:
  8161. bool AddManualResource(Resource);
  8162. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8163. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8164. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8165. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8166. bool Exists(const String&) const;
  8167. Resource GetExistingResource(StringHash, const String&);
  8168. Resource GetExistingResource(const String&, const String&);
  8169. File GetFile(const String&);
  8170. String GetPreferredResourceDir(const String&) const;
  8171. Resource GetResource(StringHash, const String&, bool = true);
  8172. Resource GetResource(const String&, const String&, bool = true);
  8173. String GetResourceFileName(const String&) const;
  8174. bool HasSubscribedToEvent(Object, const String&);
  8175. bool HasSubscribedToEvent(const String&);
  8176. void ReleaseAllResources(bool = false);
  8177. void ReleaseResource(const String&, const String&, bool = false);
  8178. void ReleaseResources(StringHash, bool = false);
  8179. void ReleaseResources(const String&, bool = false);
  8180. void ReleaseResources(const String&, const String&, bool = false);
  8181. bool ReloadResource(Resource);
  8182. void ReloadResourceWithDependencies(const String&);
  8183. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8184. void RemovePackageFile(const String&, bool = true, bool = false);
  8185. void RemoveResourceDir(const String&);
  8186. String SanitateResourceDirName(const String&) const;
  8187. String SanitateResourceName(const String&) const;
  8188. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8189. // Properties:
  8190. bool autoReloadResources;
  8191. /* readonly */
  8192. String category;
  8193. int finishBackgroundResourcesMs;
  8194. Array<uint64> memoryBudget;
  8195. /* readonly */
  8196. Array<uint64> memoryUse;
  8197. /* readonly */
  8198. uint numBackgroundLoadResources;
  8199. /* readonly */
  8200. Array<PackageFile> packageFiles;
  8201. /* readonly */
  8202. int refs;
  8203. /* readonly */
  8204. Array<String> resourceDirs;
  8205. bool returnFailedResources;
  8206. /* readonly */
  8207. bool seachPackagesFirst;
  8208. /* writeonly */
  8209. bool searchPackagesFirst;
  8210. /* readonly */
  8211. uint64 totalMemoryUse;
  8212. /* readonly */
  8213. StringHash type;
  8214. /* readonly */
  8215. String typeName;
  8216. /* readonly */
  8217. int weakRefs;
  8218. };
  8219. class ResourceRef
  8220. {
  8221. // Properties:
  8222. String name;
  8223. StringHash type;
  8224. };
  8225. class ResourceRefList
  8226. {
  8227. // Methods:
  8228. void Resize(uint);
  8229. // Properties:
  8230. /* readonly */
  8231. bool empty;
  8232. /* readonly */
  8233. uint length;
  8234. Array<String> names;
  8235. StringHash type;
  8236. };
  8237. class RigidBody
  8238. {
  8239. // Methods:
  8240. void Activate();
  8241. void ApplyAttributes();
  8242. void ApplyForce(const Vector3&);
  8243. void ApplyForce(const Vector3&, const Vector3&);
  8244. void ApplyImpulse(const Vector3&);
  8245. void ApplyImpulse(const Vector3&, const Vector3&);
  8246. void ApplyTorque(const Vector3&);
  8247. void ApplyTorqueImpulse(const Vector3&);
  8248. void DisableMassUpdate();
  8249. void DrawDebugGeometry(DebugRenderer, bool);
  8250. void EnableMassUpdate();
  8251. Variant GetAttribute(const String&) const;
  8252. ValueAnimation GetAttributeAnimation(const String&) const;
  8253. float GetAttributeAnimationSpeed(const String&) const;
  8254. float GetAttributeAnimationTime(const String&) const;
  8255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8256. Variant GetAttributeDefault(const String&) const;
  8257. bool GetInterceptNetworkUpdate(const String&) const;
  8258. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8259. bool HasSubscribedToEvent(Object, const String&);
  8260. bool HasSubscribedToEvent(const String&);
  8261. bool Load(File, bool = false);
  8262. bool Load(VectorBuffer&, bool = false);
  8263. bool LoadJSON(const JSONValue&, bool = false);
  8264. bool LoadXML(const XMLElement&, bool = false);
  8265. void MarkNetworkUpdate() const;
  8266. void ReAddBodyToWorld();
  8267. void Remove();
  8268. void RemoveAttributeAnimation(const String&);
  8269. void RemoveInstanceDefault();
  8270. void RemoveObjectAnimation();
  8271. void ResetForces();
  8272. void ResetToDefault();
  8273. bool Save(File) const;
  8274. bool Save(VectorBuffer&) const;
  8275. bool SaveJSON(JSONValue&) const;
  8276. bool SaveXML(XMLElement&) const;
  8277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8278. void SetAnimationTime(float);
  8279. bool SetAttribute(const String&, const Variant&);
  8280. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8281. void SetAttributeAnimationSpeed(const String&, float);
  8282. void SetAttributeAnimationTime(const String&, float);
  8283. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8284. void SetCollisionLayerAndMask(uint, uint);
  8285. void SetInterceptNetworkUpdate(const String&, bool);
  8286. void SetTransform(const Vector3&, const Quaternion&);
  8287. // Properties:
  8288. /* readonly */
  8289. bool active;
  8290. float angularDamping;
  8291. Vector3 angularFactor;
  8292. float angularRestThreshold;
  8293. Vector3 angularVelocity;
  8294. bool animationEnabled;
  8295. Vector3 anisotropicFriction;
  8296. /* readonly */
  8297. Array<Variant> attributeDefaults;
  8298. /* readonly */
  8299. Array<AttributeInfo> attributeInfos;
  8300. Array<Variant> attributes;
  8301. /* readonly */
  8302. String category;
  8303. float ccdMotionThreshold;
  8304. float ccdRadius;
  8305. /* readonly */
  8306. Vector3 centerOfMass;
  8307. /* readonly */
  8308. Array<RigidBody> collidingBodies;
  8309. CollisionEventMode collisionEventMode;
  8310. uint collisionLayer;
  8311. uint collisionMask;
  8312. float contactProcessingThreshold;
  8313. bool enabled;
  8314. /* readonly */
  8315. bool enabledEffective;
  8316. float friction;
  8317. Vector3 gravityOverride;
  8318. /* readonly */
  8319. uint id;
  8320. bool kinematic;
  8321. float linearDamping;
  8322. Vector3 linearFactor;
  8323. float linearRestThreshold;
  8324. Vector3 linearVelocity;
  8325. float mass;
  8326. /* readonly */
  8327. Node node;
  8328. /* readonly */
  8329. uint numAttributes;
  8330. ObjectAnimation objectAnimation;
  8331. Vector3 position;
  8332. /* readonly */
  8333. int refs;
  8334. float restitution;
  8335. float rollingFriction;
  8336. Quaternion rotation;
  8337. bool temporary;
  8338. bool trigger;
  8339. /* readonly */
  8340. StringHash type;
  8341. /* readonly */
  8342. String typeName;
  8343. bool useGravity;
  8344. /* readonly */
  8345. int weakRefs;
  8346. };
  8347. class RigidBody2D
  8348. {
  8349. // Methods:
  8350. void ApplyAngularImpulse(float, bool);
  8351. void ApplyAttributes();
  8352. void ApplyForce(const Vector2&, const Vector2&, bool);
  8353. void ApplyForceToCenter(const Vector2&, bool);
  8354. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8355. void ApplyTorque(float, bool);
  8356. void DrawDebugGeometry(DebugRenderer, bool);
  8357. Variant GetAttribute(const String&) const;
  8358. ValueAnimation GetAttributeAnimation(const String&) const;
  8359. float GetAttributeAnimationSpeed(const String&) const;
  8360. float GetAttributeAnimationTime(const String&) const;
  8361. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8362. Variant GetAttributeDefault(const String&) const;
  8363. bool GetInterceptNetworkUpdate(const String&) const;
  8364. bool HasSubscribedToEvent(Object, const String&);
  8365. bool HasSubscribedToEvent(const String&);
  8366. bool Load(File, bool = false);
  8367. bool Load(VectorBuffer&, bool = false);
  8368. bool LoadJSON(const JSONValue&, bool = false);
  8369. bool LoadXML(const XMLElement&, bool = false);
  8370. void MarkNetworkUpdate() const;
  8371. void Remove();
  8372. void RemoveAttributeAnimation(const String&);
  8373. void RemoveInstanceDefault();
  8374. void RemoveObjectAnimation();
  8375. void ResetToDefault();
  8376. bool Save(File) const;
  8377. bool Save(VectorBuffer&) const;
  8378. bool SaveJSON(JSONValue&) const;
  8379. bool SaveXML(XMLElement&) const;
  8380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8381. void SetAnimationTime(float);
  8382. bool SetAttribute(const String&, const Variant&);
  8383. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8384. void SetAttributeAnimationSpeed(const String&, float);
  8385. void SetAttributeAnimationTime(const String&, float);
  8386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8387. void SetInterceptNetworkUpdate(const String&, bool);
  8388. // Properties:
  8389. bool allowSleep;
  8390. float angularDamping;
  8391. bool animationEnabled;
  8392. /* readonly */
  8393. Array<Variant> attributeDefaults;
  8394. /* readonly */
  8395. Array<AttributeInfo> attributeInfos;
  8396. Array<Variant> attributes;
  8397. bool awake;
  8398. BodyType2D bodyType;
  8399. bool bullet;
  8400. /* readonly */
  8401. String category;
  8402. bool enabled;
  8403. /* readonly */
  8404. bool enabledEffective;
  8405. bool fixedRotation;
  8406. float gravityScale;
  8407. /* readonly */
  8408. uint id;
  8409. float inertia;
  8410. float linearDamping;
  8411. Vector2 linearVelocity;
  8412. float mass;
  8413. Vector2 massCenter;
  8414. /* readonly */
  8415. Node node;
  8416. /* readonly */
  8417. uint numAttributes;
  8418. ObjectAnimation objectAnimation;
  8419. /* readonly */
  8420. int refs;
  8421. bool temporary;
  8422. /* readonly */
  8423. StringHash type;
  8424. /* readonly */
  8425. String typeName;
  8426. bool useFixtureMass;
  8427. /* readonly */
  8428. int weakRefs;
  8429. };
  8430. class Scene
  8431. {
  8432. // Methods:
  8433. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8434. void AddRequiredPackageFile(PackageFile);
  8435. void AddTag(const String&);
  8436. void AddTags(const String&, int8 = ';');
  8437. void ApplyAttributes();
  8438. void Clear(bool = true, bool = true);
  8439. void ClearRequiredPackageFiles();
  8440. Component CloneComponent(Component, CreateMode, uint = 0);
  8441. Component CloneComponent(Component, uint = 0);
  8442. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8443. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8444. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8445. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8446. Variant GetAttribute(const String&) const;
  8447. ValueAnimation GetAttributeAnimation(const String&) const;
  8448. float GetAttributeAnimationSpeed(const String&) const;
  8449. float GetAttributeAnimationTime(const String&) const;
  8450. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8451. Variant GetAttributeDefault(const String&) const;
  8452. Node GetChild(const String&, bool = false) const;
  8453. Array<Node> GetChildren(bool = false) const;
  8454. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8455. Array<Node> GetChildrenWithScript(bool = false) const;
  8456. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8457. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8458. Component GetComponent(const String&, bool = false) const;
  8459. Component GetComponent(uint) const;
  8460. Array<Component> GetComponents() const;
  8461. Array<Component> GetComponents(const String&, bool = false) const;
  8462. bool GetInterceptNetworkUpdate(const String&) const;
  8463. Node GetNode(uint) const;
  8464. Array<Node> GetNodesWithTag(const String&) const;
  8465. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8466. Component GetParentComponent(const String&, bool = false) const;
  8467. ScriptObject GetScriptObject() const;
  8468. ScriptObject GetScriptObject(const String&) const;
  8469. bool HasComponent(const String&) const;
  8470. bool HasSubscribedToEvent(Object, const String&);
  8471. bool HasSubscribedToEvent(const String&);
  8472. bool HasTag(const String&);
  8473. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8474. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8475. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8476. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8477. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8478. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8479. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8480. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8481. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8482. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8483. bool Load(File, bool = false);
  8484. bool Load(VectorBuffer&, bool = false);
  8485. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8486. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8487. bool LoadJSON(File);
  8488. bool LoadJSON(VectorBuffer&);
  8489. bool LoadJSON(const JSONValue&, bool = false);
  8490. bool LoadXML(File);
  8491. bool LoadXML(VectorBuffer&);
  8492. bool LoadXML(const XMLElement&, bool = false);
  8493. Vector3 LocalToWorld(const Vector3&) const;
  8494. Vector3 LocalToWorld(const Vector4&) const;
  8495. Vector2 LocalToWorld2D(const Vector2&) const;
  8496. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8497. void MarkNetworkUpdate() const;
  8498. void Pitch(float, TransformSpace = TS_LOCAL);
  8499. void RegisterVar(const String&);
  8500. void Remove();
  8501. void RemoveAllChildren();
  8502. void RemoveAllComponents();
  8503. void RemoveAllTags();
  8504. void RemoveAttributeAnimation(const String&);
  8505. void RemoveChild(Node);
  8506. void RemoveChildren(bool, bool, bool);
  8507. void RemoveComponent(Component);
  8508. void RemoveComponent(const String&);
  8509. void RemoveComponents(bool, bool);
  8510. void RemoveComponents(const String&);
  8511. void RemoveInstanceDefault();
  8512. void RemoveObjectAnimation();
  8513. bool RemoveTag(const String&);
  8514. void ResetToDefault();
  8515. void Roll(float, TransformSpace = TS_LOCAL);
  8516. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8517. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8518. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8519. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8520. bool Save(File) const;
  8521. bool Save(VectorBuffer&) const;
  8522. bool SaveJSON(File, const String& = "\t");
  8523. bool SaveJSON(JSONValue&) const;
  8524. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8525. bool SaveXML(File, const String& = "\t");
  8526. bool SaveXML(VectorBuffer&, const String& = "\t");
  8527. bool SaveXML(XMLElement&) const;
  8528. void Scale(const Vector3&);
  8529. void Scale(float);
  8530. void Scale2D(const Vector2&);
  8531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8532. void SetAnimationTime(float);
  8533. bool SetAttribute(const String&, const Variant&);
  8534. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8535. void SetAttributeAnimationSpeed(const String&, float);
  8536. void SetAttributeAnimationTime(const String&, float);
  8537. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8538. void SetInterceptNetworkUpdate(const String&, bool);
  8539. void SetPosition2D(float, float);
  8540. void SetScale(float);
  8541. void SetScale2D(float, float);
  8542. void SetTransform(const Vector3&, const Quaternion&);
  8543. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8544. void SetTransform(const Vector3&, const Quaternion&, float);
  8545. void SetTransform2D(const Vector2&, float);
  8546. void SetTransform2D(const Vector2&, float, const Vector2&);
  8547. void SetTransform2D(const Vector2&, float, float);
  8548. void SetWorldTransform(const Vector3&, const Quaternion&);
  8549. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8550. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8551. void SetWorldTransform2D(const Vector2&, float);
  8552. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8553. void SetWorldTransform2D(const Vector2&, float, float);
  8554. void StopAsyncLoading();
  8555. const String& GetVarName(StringHash) const;
  8556. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8557. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8558. void UnregisterAllVars(const String&);
  8559. void UnregisterVar(const String&);
  8560. void Update(float);
  8561. Vector3 WorldToLocal(const Vector3&) const;
  8562. Vector3 WorldToLocal(const Vector4&) const;
  8563. Vector2 WorldToLocal2D(const Vector2&) const;
  8564. void Yaw(float, TransformSpace = TS_LOCAL);
  8565. // Properties:
  8566. bool animationEnabled;
  8567. /* readonly */
  8568. LoadMode asyncLoadMode;
  8569. /* readonly */
  8570. bool asyncLoading;
  8571. int asyncLoadingMs;
  8572. /* readonly */
  8573. float asyncProgress;
  8574. /* readonly */
  8575. Array<Variant> attributeDefaults;
  8576. /* readonly */
  8577. Array<AttributeInfo> attributeInfos;
  8578. Array<Variant> attributes;
  8579. /* readonly */
  8580. String category;
  8581. /* readonly */
  8582. uint checksum;
  8583. /* readonly */
  8584. Array<Node> children;
  8585. /* readonly */
  8586. Array<Component> components;
  8587. /* readonly */
  8588. DebugRenderer debugRenderer;
  8589. Vector3 direction;
  8590. float elapsedTime;
  8591. /* readonly */
  8592. String fileName;
  8593. /* readonly */
  8594. uint id;
  8595. String name;
  8596. /* readonly */
  8597. uint numAllChildren;
  8598. /* readonly */
  8599. uint numAttributes;
  8600. /* readonly */
  8601. uint numChildren;
  8602. /* readonly */
  8603. uint numComponents;
  8604. ObjectAnimation objectAnimation;
  8605. /* readonly */
  8606. Octree octree;
  8607. Node parent;
  8608. /* readonly */
  8609. PhysicsWorld physicsWorld;
  8610. /* readonly */
  8611. PhysicsWorld2D physicsWorld2D;
  8612. Vector3 position;
  8613. Vector2 position2D;
  8614. /* readonly */
  8615. int refs;
  8616. /* readonly */
  8617. Array<PackageFile> requiredPackageFiles;
  8618. /* readonly */
  8619. Vector3 right;
  8620. Quaternion rotation;
  8621. float rotation2D;
  8622. Vector3 scale;
  8623. Vector2 scale2D;
  8624. /* readonly */
  8625. ScriptObject scriptObject;
  8626. float smoothingConstant;
  8627. float snapThreshold;
  8628. /* readonly */
  8629. Array<String> tags;
  8630. bool temporary;
  8631. float timeScale;
  8632. /* readonly */
  8633. Matrix3x4 transform;
  8634. /* readonly */
  8635. StringHash type;
  8636. /* readonly */
  8637. String typeName;
  8638. /* readonly */
  8639. Vector3 up;
  8640. bool updateEnabled;
  8641. /* readonly */
  8642. VariantMap vars;
  8643. /* readonly */
  8644. int weakRefs;
  8645. Vector3 worldDirection;
  8646. Vector3 worldPosition;
  8647. Vector2 worldPosition2D;
  8648. /* readonly */
  8649. Vector3 worldRight;
  8650. Quaternion worldRotation;
  8651. float worldRotation2D;
  8652. Vector3 worldScale;
  8653. Vector2 worldScale2D;
  8654. /* readonly */
  8655. Matrix3x4 worldTransform;
  8656. /* readonly */
  8657. Vector3 worldUp;
  8658. };
  8659. class Script
  8660. {
  8661. // Methods:
  8662. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8663. bool Execute(const String&);
  8664. bool HasSubscribedToEvent(Object, const String&);
  8665. bool HasSubscribedToEvent(const String&);
  8666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8667. // Properties:
  8668. /* readonly */
  8669. String category;
  8670. Scene defaultScene;
  8671. ScriptFile defaultScriptFile;
  8672. bool executeConsoleCommands;
  8673. /* readonly */
  8674. int refs;
  8675. /* readonly */
  8676. StringHash type;
  8677. /* readonly */
  8678. String typeName;
  8679. /* readonly */
  8680. int weakRefs;
  8681. };
  8682. class ScriptFile
  8683. {
  8684. // Methods:
  8685. void ClearDelayedExecute(const String& = String ( ));
  8686. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8687. bool Execute(const String&, const Array<Variant> = null);
  8688. bool HasSubscribedToEvent(Object, const String&);
  8689. bool HasSubscribedToEvent(const String&);
  8690. bool Load(File);
  8691. bool Load(VectorBuffer&);
  8692. bool Save(File) const;
  8693. bool Save(VectorBuffer&) const;
  8694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8695. // Properties:
  8696. /* readonly */
  8697. String category;
  8698. /* readonly */
  8699. bool compiled;
  8700. /* readonly */
  8701. uint memoryUse;
  8702. String name;
  8703. /* readonly */
  8704. int refs;
  8705. /* readonly */
  8706. StringHash type;
  8707. /* readonly */
  8708. String typeName;
  8709. /* readonly */
  8710. uint useTimer;
  8711. /* readonly */
  8712. int weakRefs;
  8713. };
  8714. class ScriptInstance
  8715. {
  8716. // Methods:
  8717. void ApplyAttributes();
  8718. void ClearDelayedExecute(const String& = String ( ));
  8719. bool CreateObject(ScriptFile, const String&);
  8720. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8721. void DrawDebugGeometry(DebugRenderer, bool);
  8722. bool Execute(const String&, const Array<Variant> = null);
  8723. Variant GetAttribute(const String&) const;
  8724. ValueAnimation GetAttributeAnimation(const String&) const;
  8725. float GetAttributeAnimationSpeed(const String&) const;
  8726. float GetAttributeAnimationTime(const String&) const;
  8727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8728. Variant GetAttributeDefault(const String&) const;
  8729. bool GetInterceptNetworkUpdate(const String&) const;
  8730. bool HasMethod(const String&) const;
  8731. bool HasSubscribedToEvent(Object, const String&);
  8732. bool HasSubscribedToEvent(const String&);
  8733. bool IsA(const String&) const;
  8734. bool Load(File, bool = false);
  8735. bool Load(VectorBuffer&, bool = false);
  8736. bool LoadJSON(const JSONValue&, bool = false);
  8737. bool LoadXML(const XMLElement&, bool = false);
  8738. void MarkNetworkUpdate() const;
  8739. void Remove();
  8740. void RemoveAttributeAnimation(const String&);
  8741. void RemoveInstanceDefault();
  8742. void RemoveObjectAnimation();
  8743. void ResetToDefault();
  8744. bool Save(File) const;
  8745. bool Save(VectorBuffer&) const;
  8746. bool SaveJSON(JSONValue&) const;
  8747. bool SaveXML(XMLElement&) const;
  8748. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8749. void SetAnimationTime(float);
  8750. bool SetAttribute(const String&, const Variant&);
  8751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8752. void SetAttributeAnimationSpeed(const String&, float);
  8753. void SetAttributeAnimationTime(const String&, float);
  8754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8755. void SetInterceptNetworkUpdate(const String&, bool);
  8756. // Properties:
  8757. bool animationEnabled;
  8758. /* readonly */
  8759. Array<Variant> attributeDefaults;
  8760. /* readonly */
  8761. Array<AttributeInfo> attributeInfos;
  8762. Array<Variant> attributes;
  8763. /* readonly */
  8764. String category;
  8765. String className;
  8766. bool enabled;
  8767. /* readonly */
  8768. bool enabledEffective;
  8769. /* readonly */
  8770. uint id;
  8771. /* readonly */
  8772. Node node;
  8773. /* readonly */
  8774. uint numAttributes;
  8775. ObjectAnimation objectAnimation;
  8776. /* readonly */
  8777. int refs;
  8778. ScriptFile scriptFile;
  8779. /* readonly */
  8780. ScriptObject scriptObject;
  8781. bool temporary;
  8782. /* readonly */
  8783. StringHash type;
  8784. /* readonly */
  8785. String typeName;
  8786. /* readonly */
  8787. int weakRefs;
  8788. };
  8789. class ScriptObject
  8790. {
  8791. };
  8792. class ScrollBar
  8793. {
  8794. // Methods:
  8795. void AddChild(UIElement);
  8796. void AddTag(const String&);
  8797. void AddTags(const String&, int8 = ';');
  8798. void ApplyAttributes();
  8799. void BringToFront();
  8800. void ChangeValue(float);
  8801. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8802. void DisableLayoutUpdate();
  8803. IntVector2 ElementToScreen(const IntVector2&);
  8804. void EnableLayoutUpdate();
  8805. uint FindChild(UIElement) const;
  8806. Variant GetAttribute(const String&) const;
  8807. ValueAnimation GetAttributeAnimation(const String&) const;
  8808. float GetAttributeAnimationSpeed(const String&) const;
  8809. float GetAttributeAnimationTime(const String&) const;
  8810. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8811. Variant GetAttributeDefault(const String&) const;
  8812. UIElement GetChild(const String&, bool = false) const;
  8813. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8814. Array<UIElement> GetChildren(bool = false) const;
  8815. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8816. UIElement GetElementEventSender() const;
  8817. bool GetInterceptNetworkUpdate(const String&) const;
  8818. uint GetNumChildren(bool) const;
  8819. bool HasSubscribedToEvent(Object, const String&);
  8820. bool HasSubscribedToEvent(const String&);
  8821. bool HasTag(const String&) const;
  8822. void InsertChild(uint, UIElement);
  8823. bool IsInside(IntVector2, bool);
  8824. bool IsInsideCombined(IntVector2, bool);
  8825. bool Load(File, bool = false);
  8826. bool Load(VectorBuffer&, bool = false);
  8827. bool LoadChildXML(XMLFile, XMLFile = null);
  8828. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8829. bool LoadJSON(const JSONValue&, bool = false);
  8830. bool LoadXML(File);
  8831. bool LoadXML(VectorBuffer&);
  8832. bool LoadXML(XMLFile, XMLFile);
  8833. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8834. bool LoadXML(const XMLElement&, bool = false);
  8835. void MarkNetworkUpdate() const;
  8836. void Remove();
  8837. void RemoveAllChildren();
  8838. void RemoveAllTags();
  8839. void RemoveAttributeAnimation(const String&);
  8840. void RemoveChild(UIElement, uint = 0);
  8841. void RemoveChild(uint);
  8842. void RemoveInstanceDefault();
  8843. void RemoveObjectAnimation();
  8844. bool RemoveTag(const String&);
  8845. void ResetDeepEnabled();
  8846. void ResetToDefault();
  8847. bool Save(File) const;
  8848. bool Save(VectorBuffer&) const;
  8849. bool SaveJSON(JSONValue&) const;
  8850. bool SaveXML(File, const String& = "\t");
  8851. bool SaveXML(VectorBuffer&, const String& = "\t");
  8852. bool SaveXML(XMLElement&) const;
  8853. IntVector2 ScreenToElement(const IntVector2&);
  8854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8855. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8856. void SetAnimationTime(float);
  8857. bool SetAttribute(const String&, const Variant&);
  8858. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8859. void SetAttributeAnimationSpeed(const String&, float);
  8860. void SetAttributeAnimationTime(const String&, float);
  8861. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8862. void SetDeepEnabled(bool);
  8863. void SetEnabledRecursive(bool);
  8864. void SetFixedHeight(int);
  8865. void SetFixedSize(int, int);
  8866. void SetFixedWidth(int);
  8867. void SetInterceptNetworkUpdate(const String&, bool);
  8868. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8869. void SetMaxSize(int, int);
  8870. void SetMinSize(int, int);
  8871. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8872. void SetPosition(int, int);
  8873. void SetSize(int, int);
  8874. bool SetStyle(const String&, XMLFile = null);
  8875. bool SetStyle(const XMLElement&);
  8876. bool SetStyleAuto(XMLFile = null);
  8877. void StepBack();
  8878. void StepForward();
  8879. void UpdateLayout();
  8880. const Variant& GetVar(const StringHash&);
  8881. // Properties:
  8882. bool animationEnabled;
  8883. /* readonly */
  8884. Array<Variant> attributeDefaults;
  8885. /* readonly */
  8886. Array<AttributeInfo> attributeInfos;
  8887. Array<Variant> attributes;
  8888. /* readonly */
  8889. Button backButton;
  8890. bool bringToBack;
  8891. bool bringToFront;
  8892. /* readonly */
  8893. String category;
  8894. /* readonly */
  8895. IntVector2 childOffset;
  8896. /* readonly */
  8897. Array<UIElement> children;
  8898. IntRect clipBorder;
  8899. bool clipChildren;
  8900. /* writeonly */
  8901. Color color;
  8902. /* readonly */
  8903. bool colorGradient;
  8904. Array<Color> colors;
  8905. /* readonly */
  8906. IntRect combinedScreenRect;
  8907. XMLFile defaultStyle;
  8908. /* readonly */
  8909. float derivedOpacity;
  8910. /* readonly */
  8911. uint dragButtonCombo;
  8912. /* readonly */
  8913. int dragButtonCount;
  8914. uint dragDropMode;
  8915. bool editable;
  8916. /* readonly */
  8917. float effectiveScrollStep;
  8918. bool elementEventSender;
  8919. bool enabled;
  8920. /* readonly */
  8921. bool enabledSelf;
  8922. /* readonly */
  8923. bool fixedHeight;
  8924. /* readonly */
  8925. bool fixedSize;
  8926. /* readonly */
  8927. bool fixedWidth;
  8928. bool focus;
  8929. FocusMode focusMode;
  8930. /* readonly */
  8931. Button forwardButton;
  8932. int height;
  8933. HorizontalAlignment horizontalAlignment;
  8934. /* readonly */
  8935. bool hovering;
  8936. int indent;
  8937. int indentSpacing;
  8938. /* readonly */
  8939. int indentWidth;
  8940. bool internal;
  8941. IntRect layoutBorder;
  8942. Vector2 layoutFlexScale;
  8943. LayoutMode layoutMode;
  8944. int layoutSpacing;
  8945. int maxHeight;
  8946. IntVector2 maxSize;
  8947. int maxWidth;
  8948. int minHeight;
  8949. IntVector2 minSize;
  8950. int minWidth;
  8951. String name;
  8952. /* readonly */
  8953. uint numAllChildren;
  8954. /* readonly */
  8955. uint numAttributes;
  8956. /* readonly */
  8957. uint numChildren;
  8958. ObjectAnimation objectAnimation;
  8959. float opacity;
  8960. Orientation orientation;
  8961. UIElement parent;
  8962. IntVector2 position;
  8963. int priority;
  8964. float range;
  8965. /* readonly */
  8966. int refs;
  8967. /* readonly */
  8968. UIElement root;
  8969. /* readonly */
  8970. IntVector2 screenPosition;
  8971. float scrollStep;
  8972. bool selected;
  8973. IntVector2 size;
  8974. /* readonly */
  8975. Slider slider;
  8976. bool sortChildren;
  8977. float stepFactor;
  8978. String style;
  8979. /* readonly */
  8980. Array<String> tags;
  8981. bool temporary;
  8982. TraversalMode traversalMode;
  8983. /* readonly */
  8984. StringHash type;
  8985. /* readonly */
  8986. String typeName;
  8987. bool useDerivedOpacity;
  8988. float value;
  8989. /* readonly */
  8990. VariantMap vars;
  8991. VerticalAlignment verticalAlignment;
  8992. bool visible;
  8993. /* readonly */
  8994. bool visibleEffective;
  8995. /* readonly */
  8996. int weakRefs;
  8997. int width;
  8998. };
  8999. class ScrollView
  9000. {
  9001. // Methods:
  9002. void AddChild(UIElement);
  9003. void AddTag(const String&);
  9004. void AddTags(const String&, int8 = ';');
  9005. void ApplyAttributes();
  9006. void BringToFront();
  9007. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9008. void DisableLayoutUpdate();
  9009. IntVector2 ElementToScreen(const IntVector2&);
  9010. void EnableLayoutUpdate();
  9011. uint FindChild(UIElement) const;
  9012. Variant GetAttribute(const String&) const;
  9013. ValueAnimation GetAttributeAnimation(const String&) const;
  9014. float GetAttributeAnimationSpeed(const String&) const;
  9015. float GetAttributeAnimationTime(const String&) const;
  9016. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9017. Variant GetAttributeDefault(const String&) const;
  9018. UIElement GetChild(const String&, bool = false) const;
  9019. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9020. Array<UIElement> GetChildren(bool = false) const;
  9021. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9022. UIElement GetElementEventSender() const;
  9023. bool GetInterceptNetworkUpdate(const String&) const;
  9024. uint GetNumChildren(bool) const;
  9025. bool HasSubscribedToEvent(Object, const String&);
  9026. bool HasSubscribedToEvent(const String&);
  9027. bool HasTag(const String&) const;
  9028. void InsertChild(uint, UIElement);
  9029. bool IsInside(IntVector2, bool);
  9030. bool IsInsideCombined(IntVector2, bool);
  9031. bool Load(File, bool = false);
  9032. bool Load(VectorBuffer&, bool = false);
  9033. bool LoadChildXML(XMLFile, XMLFile = null);
  9034. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9035. bool LoadJSON(const JSONValue&, bool = false);
  9036. bool LoadXML(File);
  9037. bool LoadXML(VectorBuffer&);
  9038. bool LoadXML(XMLFile, XMLFile);
  9039. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9040. bool LoadXML(const XMLElement&, bool = false);
  9041. void MarkNetworkUpdate() const;
  9042. void Remove();
  9043. void RemoveAllChildren();
  9044. void RemoveAllTags();
  9045. void RemoveAttributeAnimation(const String&);
  9046. void RemoveChild(UIElement, uint = 0);
  9047. void RemoveChild(uint);
  9048. void RemoveInstanceDefault();
  9049. void RemoveObjectAnimation();
  9050. bool RemoveTag(const String&);
  9051. void ResetDeepEnabled();
  9052. void ResetToDefault();
  9053. bool Save(File) const;
  9054. bool Save(VectorBuffer&) const;
  9055. bool SaveJSON(JSONValue&) const;
  9056. bool SaveXML(File, const String& = "\t");
  9057. bool SaveXML(VectorBuffer&, const String& = "\t");
  9058. bool SaveXML(XMLElement&) const;
  9059. IntVector2 ScreenToElement(const IntVector2&);
  9060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9061. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9062. void SetAnimationTime(float);
  9063. bool SetAttribute(const String&, const Variant&);
  9064. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9065. void SetAttributeAnimationSpeed(const String&, float);
  9066. void SetAttributeAnimationTime(const String&, float);
  9067. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9068. void SetDeepEnabled(bool);
  9069. void SetEnabledRecursive(bool);
  9070. void SetFixedHeight(int);
  9071. void SetFixedSize(int, int);
  9072. void SetFixedWidth(int);
  9073. void SetInterceptNetworkUpdate(const String&, bool);
  9074. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9075. void SetMaxSize(int, int);
  9076. void SetMinSize(int, int);
  9077. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9078. void SetPosition(int, int);
  9079. void SetScrollBarsVisible(bool, bool);
  9080. void SetSize(int, int);
  9081. bool SetStyle(const String&, XMLFile = null);
  9082. bool SetStyle(const XMLElement&);
  9083. bool SetStyleAuto(XMLFile = null);
  9084. void SetViewPosition(int, int);
  9085. void UpdateLayout();
  9086. const Variant& GetVar(const StringHash&);
  9087. // Properties:
  9088. bool animationEnabled;
  9089. /* readonly */
  9090. Array<Variant> attributeDefaults;
  9091. /* readonly */
  9092. Array<AttributeInfo> attributeInfos;
  9093. Array<Variant> attributes;
  9094. bool autoDisableChildren;
  9095. float autoDisableThreshold;
  9096. bool bringToBack;
  9097. bool bringToFront;
  9098. /* readonly */
  9099. String category;
  9100. /* readonly */
  9101. IntVector2 childOffset;
  9102. /* readonly */
  9103. Array<UIElement> children;
  9104. IntRect clipBorder;
  9105. bool clipChildren;
  9106. /* writeonly */
  9107. Color color;
  9108. /* readonly */
  9109. bool colorGradient;
  9110. Array<Color> colors;
  9111. /* readonly */
  9112. IntRect combinedScreenRect;
  9113. UIElement contentElement;
  9114. XMLFile defaultStyle;
  9115. /* readonly */
  9116. float derivedOpacity;
  9117. /* readonly */
  9118. uint dragButtonCombo;
  9119. /* readonly */
  9120. int dragButtonCount;
  9121. uint dragDropMode;
  9122. bool editable;
  9123. bool elementEventSender;
  9124. bool enabled;
  9125. /* readonly */
  9126. bool enabledSelf;
  9127. /* readonly */
  9128. bool fixedHeight;
  9129. /* readonly */
  9130. bool fixedSize;
  9131. /* readonly */
  9132. bool fixedWidth;
  9133. bool focus;
  9134. FocusMode focusMode;
  9135. int height;
  9136. HorizontalAlignment horizontalAlignment;
  9137. /* readonly */
  9138. ScrollBar horizontalScrollBar;
  9139. /* readonly */
  9140. bool hovering;
  9141. int indent;
  9142. int indentSpacing;
  9143. /* readonly */
  9144. int indentWidth;
  9145. bool internal;
  9146. IntRect layoutBorder;
  9147. Vector2 layoutFlexScale;
  9148. LayoutMode layoutMode;
  9149. int layoutSpacing;
  9150. int maxHeight;
  9151. IntVector2 maxSize;
  9152. int maxWidth;
  9153. int minHeight;
  9154. IntVector2 minSize;
  9155. int minWidth;
  9156. String name;
  9157. /* readonly */
  9158. uint numAllChildren;
  9159. /* readonly */
  9160. uint numAttributes;
  9161. /* readonly */
  9162. uint numChildren;
  9163. ObjectAnimation objectAnimation;
  9164. float opacity;
  9165. float pageStep;
  9166. UIElement parent;
  9167. IntVector2 position;
  9168. int priority;
  9169. /* readonly */
  9170. int refs;
  9171. /* readonly */
  9172. UIElement root;
  9173. /* readonly */
  9174. IntVector2 screenPosition;
  9175. bool scrollBarsAutoVisible;
  9176. float scrollDeceleration;
  9177. /* readonly */
  9178. BorderImage scrollPanel;
  9179. float scrollSnapEpsilon;
  9180. float scrollStep;
  9181. bool selected;
  9182. IntVector2 size;
  9183. bool sortChildren;
  9184. String style;
  9185. /* readonly */
  9186. Array<String> tags;
  9187. bool temporary;
  9188. TraversalMode traversalMode;
  9189. /* readonly */
  9190. StringHash type;
  9191. /* readonly */
  9192. String typeName;
  9193. bool useDerivedOpacity;
  9194. /* readonly */
  9195. VariantMap vars;
  9196. VerticalAlignment verticalAlignment;
  9197. /* readonly */
  9198. ScrollBar verticalScrollBar;
  9199. IntVector2 viewPosition;
  9200. bool visible;
  9201. /* readonly */
  9202. bool visibleEffective;
  9203. /* readonly */
  9204. int weakRefs;
  9205. int width;
  9206. };
  9207. class Serializable
  9208. {
  9209. // Methods:
  9210. void ApplyAttributes();
  9211. Variant GetAttribute(const String&) const;
  9212. Variant GetAttributeDefault(const String&) const;
  9213. bool GetInterceptNetworkUpdate(const String&) const;
  9214. bool HasSubscribedToEvent(Object, const String&);
  9215. bool HasSubscribedToEvent(const String&);
  9216. bool Load(File, bool = false);
  9217. bool Load(VectorBuffer&, bool = false);
  9218. bool LoadJSON(const JSONValue&, bool = false);
  9219. bool LoadXML(const XMLElement&, bool = false);
  9220. void MarkNetworkUpdate() const;
  9221. void RemoveInstanceDefault();
  9222. void ResetToDefault();
  9223. bool Save(File) const;
  9224. bool Save(VectorBuffer&) const;
  9225. bool SaveJSON(JSONValue&) const;
  9226. bool SaveXML(XMLElement&) const;
  9227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9228. bool SetAttribute(const String&, const Variant&);
  9229. void SetInterceptNetworkUpdate(const String&, bool);
  9230. // Properties:
  9231. /* readonly */
  9232. Array<Variant> attributeDefaults;
  9233. /* readonly */
  9234. Array<AttributeInfo> attributeInfos;
  9235. Array<Variant> attributes;
  9236. /* readonly */
  9237. String category;
  9238. /* readonly */
  9239. uint numAttributes;
  9240. /* readonly */
  9241. int refs;
  9242. bool temporary;
  9243. /* readonly */
  9244. StringHash type;
  9245. /* readonly */
  9246. String typeName;
  9247. /* readonly */
  9248. int weakRefs;
  9249. };
  9250. class Serializer
  9251. {
  9252. // Methods:
  9253. uint Write(Array<uint8>);
  9254. bool WriteBool(bool);
  9255. bool WriteBoundingBox(const BoundingBox&);
  9256. bool WriteByte(int8);
  9257. bool WriteColor(const Color&);
  9258. bool WriteDouble(double);
  9259. bool WriteFileID(const String&);
  9260. bool WriteFloat(float);
  9261. bool WriteInt(int);
  9262. bool WriteIntRect(const IntRect&);
  9263. bool WriteIntVector2(const IntVector2&);
  9264. bool WriteLine(const String&);
  9265. bool WriteMatrix3(const Matrix3&);
  9266. bool WriteMatrix3x4(const Matrix3x4&);
  9267. bool WriteMatrix4(const Matrix4&);
  9268. bool WriteNetID(uint);
  9269. bool WritePackedQuaternion(const Quaternion&);
  9270. bool WritePackedVector3(const Vector3&, float);
  9271. bool WriteQuaternion(const Quaternion&);
  9272. bool WriteShort(int16);
  9273. bool WriteString(const String&);
  9274. bool WriteStringHash(const StringHash&);
  9275. bool WriteUByte(uint8);
  9276. bool WriteUInt(uint);
  9277. bool WriteUShort(uint16);
  9278. bool WriteVLE(uint);
  9279. bool WriteVariant(const Variant&);
  9280. bool WriteVariantMap(const VariantMap&);
  9281. bool WriteVector2(const Vector2&);
  9282. bool WriteVector3(const Vector3&);
  9283. bool WriteVector4(const Vector4&);
  9284. bool WriteVectorBuffer(const VectorBuffer&);
  9285. };
  9286. class Skeleton
  9287. {
  9288. // Methods:
  9289. Bone GetBone(const String&) const;
  9290. void Reset();
  9291. // Properties:
  9292. /* readonly */
  9293. Array<Bone> bones;
  9294. /* readonly */
  9295. uint numBones;
  9296. /* readonly */
  9297. Bone rootBone;
  9298. };
  9299. class Skybox
  9300. {
  9301. // Methods:
  9302. void ApplyAttributes();
  9303. void ApplyMaterialList(const String& = String ( ));
  9304. void DrawDebugGeometry(DebugRenderer, bool);
  9305. Variant GetAttribute(const String&) const;
  9306. ValueAnimation GetAttributeAnimation(const String&) const;
  9307. float GetAttributeAnimationSpeed(const String&) const;
  9308. float GetAttributeAnimationTime(const String&) const;
  9309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9310. Variant GetAttributeDefault(const String&) const;
  9311. bool GetInterceptNetworkUpdate(const String&) const;
  9312. bool HasSubscribedToEvent(Object, const String&);
  9313. bool HasSubscribedToEvent(const String&);
  9314. bool IsInView(Camera) const;
  9315. bool Load(File, bool = false);
  9316. bool Load(VectorBuffer&, bool = false);
  9317. bool LoadJSON(const JSONValue&, bool = false);
  9318. bool LoadXML(const XMLElement&, bool = false);
  9319. void MarkNetworkUpdate() const;
  9320. void Remove();
  9321. void RemoveAttributeAnimation(const String&);
  9322. void RemoveInstanceDefault();
  9323. void RemoveObjectAnimation();
  9324. void ResetToDefault();
  9325. bool Save(File) const;
  9326. bool Save(VectorBuffer&) const;
  9327. bool SaveJSON(JSONValue&) const;
  9328. bool SaveXML(XMLElement&) const;
  9329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9330. void SetAnimationTime(float);
  9331. bool SetAttribute(const String&, const Variant&);
  9332. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9333. void SetAttributeAnimationSpeed(const String&, float);
  9334. void SetAttributeAnimationTime(const String&, float);
  9335. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9336. void SetInterceptNetworkUpdate(const String&, bool);
  9337. // Properties:
  9338. bool animationEnabled;
  9339. /* readonly */
  9340. Array<Variant> attributeDefaults;
  9341. /* readonly */
  9342. Array<AttributeInfo> attributeInfos;
  9343. Array<Variant> attributes;
  9344. /* readonly */
  9345. BoundingBox boundingBox;
  9346. bool castShadows;
  9347. /* readonly */
  9348. String category;
  9349. float drawDistance;
  9350. bool enabled;
  9351. /* readonly */
  9352. bool enabledEffective;
  9353. /* readonly */
  9354. uint id;
  9355. /* readonly */
  9356. bool inView;
  9357. uint lightMask;
  9358. float lodBias;
  9359. /* writeonly */
  9360. Material material;
  9361. Array<Material> materials;
  9362. uint maxLights;
  9363. Model model;
  9364. /* readonly */
  9365. Node node;
  9366. /* readonly */
  9367. uint numAttributes;
  9368. /* readonly */
  9369. uint numGeometries;
  9370. ObjectAnimation objectAnimation;
  9371. bool occludee;
  9372. bool occluder;
  9373. /* readonly */
  9374. int refs;
  9375. float shadowDistance;
  9376. uint shadowMask;
  9377. bool temporary;
  9378. /* readonly */
  9379. StringHash type;
  9380. /* readonly */
  9381. String typeName;
  9382. uint viewMask;
  9383. /* readonly */
  9384. int weakRefs;
  9385. /* readonly */
  9386. BoundingBox worldBoundingBox;
  9387. /* readonly */
  9388. Zone zone;
  9389. uint zoneMask;
  9390. };
  9391. class Slider
  9392. {
  9393. // Methods:
  9394. void AddChild(UIElement);
  9395. void AddTag(const String&);
  9396. void AddTags(const String&, int8 = ';');
  9397. void ApplyAttributes();
  9398. void BringToFront();
  9399. void ChangeValue(float);
  9400. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9401. void DisableLayoutUpdate();
  9402. IntVector2 ElementToScreen(const IntVector2&);
  9403. void EnableLayoutUpdate();
  9404. uint FindChild(UIElement) const;
  9405. Variant GetAttribute(const String&) const;
  9406. ValueAnimation GetAttributeAnimation(const String&) const;
  9407. float GetAttributeAnimationSpeed(const String&) const;
  9408. float GetAttributeAnimationTime(const String&) const;
  9409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9410. Variant GetAttributeDefault(const String&) const;
  9411. UIElement GetChild(const String&, bool = false) const;
  9412. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9413. Array<UIElement> GetChildren(bool = false) const;
  9414. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9415. UIElement GetElementEventSender() const;
  9416. bool GetInterceptNetworkUpdate(const String&) const;
  9417. uint GetNumChildren(bool) const;
  9418. bool HasSubscribedToEvent(Object, const String&);
  9419. bool HasSubscribedToEvent(const String&);
  9420. bool HasTag(const String&) const;
  9421. void InsertChild(uint, UIElement);
  9422. bool IsInside(IntVector2, bool);
  9423. bool IsInsideCombined(IntVector2, bool);
  9424. bool Load(File, bool = false);
  9425. bool Load(VectorBuffer&, bool = false);
  9426. bool LoadChildXML(XMLFile, XMLFile = null);
  9427. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9428. bool LoadJSON(const JSONValue&, bool = false);
  9429. bool LoadXML(File);
  9430. bool LoadXML(VectorBuffer&);
  9431. bool LoadXML(XMLFile, XMLFile);
  9432. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9433. bool LoadXML(const XMLElement&, bool = false);
  9434. void MarkNetworkUpdate() const;
  9435. void Remove();
  9436. void RemoveAllChildren();
  9437. void RemoveAllTags();
  9438. void RemoveAttributeAnimation(const String&);
  9439. void RemoveChild(UIElement, uint = 0);
  9440. void RemoveChild(uint);
  9441. void RemoveInstanceDefault();
  9442. void RemoveObjectAnimation();
  9443. bool RemoveTag(const String&);
  9444. void ResetDeepEnabled();
  9445. void ResetToDefault();
  9446. bool Save(File) const;
  9447. bool Save(VectorBuffer&) const;
  9448. bool SaveJSON(JSONValue&) const;
  9449. bool SaveXML(File, const String& = "\t");
  9450. bool SaveXML(VectorBuffer&, const String& = "\t");
  9451. bool SaveXML(XMLElement&) const;
  9452. IntVector2 ScreenToElement(const IntVector2&);
  9453. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9454. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9455. void SetAnimationTime(float);
  9456. bool SetAttribute(const String&, const Variant&);
  9457. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9458. void SetAttributeAnimationSpeed(const String&, float);
  9459. void SetAttributeAnimationTime(const String&, float);
  9460. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9461. void SetDeepEnabled(bool);
  9462. void SetEnabledRecursive(bool);
  9463. void SetFixedHeight(int);
  9464. void SetFixedSize(int, int);
  9465. void SetFixedWidth(int);
  9466. void SetFullImageRect();
  9467. void SetHoverOffset(int, int);
  9468. void SetInterceptNetworkUpdate(const String&, bool);
  9469. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9470. void SetMaxSize(int, int);
  9471. void SetMinSize(int, int);
  9472. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9473. void SetPosition(int, int);
  9474. void SetSize(int, int);
  9475. bool SetStyle(const String&, XMLFile = null);
  9476. bool SetStyle(const XMLElement&);
  9477. bool SetStyleAuto(XMLFile = null);
  9478. void UpdateLayout();
  9479. const Variant& GetVar(const StringHash&);
  9480. // Properties:
  9481. bool animationEnabled;
  9482. /* readonly */
  9483. Array<Variant> attributeDefaults;
  9484. /* readonly */
  9485. Array<AttributeInfo> attributeInfos;
  9486. Array<Variant> attributes;
  9487. BlendMode blendMode;
  9488. IntRect border;
  9489. bool bringToBack;
  9490. bool bringToFront;
  9491. /* readonly */
  9492. String category;
  9493. /* readonly */
  9494. IntVector2 childOffset;
  9495. /* readonly */
  9496. Array<UIElement> children;
  9497. IntRect clipBorder;
  9498. bool clipChildren;
  9499. /* writeonly */
  9500. Color color;
  9501. /* readonly */
  9502. bool colorGradient;
  9503. Array<Color> colors;
  9504. /* readonly */
  9505. IntRect combinedScreenRect;
  9506. XMLFile defaultStyle;
  9507. /* readonly */
  9508. float derivedOpacity;
  9509. /* readonly */
  9510. uint dragButtonCombo;
  9511. /* readonly */
  9512. int dragButtonCount;
  9513. uint dragDropMode;
  9514. bool editable;
  9515. bool elementEventSender;
  9516. bool enabled;
  9517. /* readonly */
  9518. bool enabledSelf;
  9519. /* readonly */
  9520. bool fixedHeight;
  9521. /* readonly */
  9522. bool fixedSize;
  9523. /* readonly */
  9524. bool fixedWidth;
  9525. bool focus;
  9526. FocusMode focusMode;
  9527. int height;
  9528. HorizontalAlignment horizontalAlignment;
  9529. IntVector2 hoverOffset;
  9530. /* readonly */
  9531. bool hovering;
  9532. IntRect imageBorder;
  9533. IntRect imageRect;
  9534. int indent;
  9535. int indentSpacing;
  9536. /* readonly */
  9537. int indentWidth;
  9538. bool internal;
  9539. /* readonly */
  9540. BorderImage knob;
  9541. IntRect layoutBorder;
  9542. Vector2 layoutFlexScale;
  9543. LayoutMode layoutMode;
  9544. int layoutSpacing;
  9545. int maxHeight;
  9546. IntVector2 maxSize;
  9547. int maxWidth;
  9548. int minHeight;
  9549. IntVector2 minSize;
  9550. int minWidth;
  9551. String name;
  9552. /* readonly */
  9553. uint numAllChildren;
  9554. /* readonly */
  9555. uint numAttributes;
  9556. /* readonly */
  9557. uint numChildren;
  9558. ObjectAnimation objectAnimation;
  9559. float opacity;
  9560. Orientation orientation;
  9561. UIElement parent;
  9562. IntVector2 position;
  9563. int priority;
  9564. float range;
  9565. /* readonly */
  9566. int refs;
  9567. float repeatRate;
  9568. /* readonly */
  9569. UIElement root;
  9570. /* readonly */
  9571. IntVector2 screenPosition;
  9572. bool selected;
  9573. IntVector2 size;
  9574. bool sortChildren;
  9575. String style;
  9576. /* readonly */
  9577. Array<String> tags;
  9578. bool temporary;
  9579. Texture texture;
  9580. bool tiled;
  9581. TraversalMode traversalMode;
  9582. /* readonly */
  9583. StringHash type;
  9584. /* readonly */
  9585. String typeName;
  9586. bool useDerivedOpacity;
  9587. float value;
  9588. /* readonly */
  9589. VariantMap vars;
  9590. VerticalAlignment verticalAlignment;
  9591. bool visible;
  9592. /* readonly */
  9593. bool visibleEffective;
  9594. /* readonly */
  9595. int weakRefs;
  9596. int width;
  9597. };
  9598. class SmoothedTransform
  9599. {
  9600. // Methods:
  9601. void ApplyAttributes();
  9602. void DrawDebugGeometry(DebugRenderer, bool);
  9603. Variant GetAttribute(const String&) const;
  9604. ValueAnimation GetAttributeAnimation(const String&) const;
  9605. float GetAttributeAnimationSpeed(const String&) const;
  9606. float GetAttributeAnimationTime(const String&) const;
  9607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9608. Variant GetAttributeDefault(const String&) const;
  9609. bool GetInterceptNetworkUpdate(const String&) const;
  9610. bool HasSubscribedToEvent(Object, const String&);
  9611. bool HasSubscribedToEvent(const String&);
  9612. bool Load(File, bool = false);
  9613. bool Load(VectorBuffer&, bool = false);
  9614. bool LoadJSON(const JSONValue&, bool = false);
  9615. bool LoadXML(const XMLElement&, bool = false);
  9616. void MarkNetworkUpdate() const;
  9617. void Remove();
  9618. void RemoveAttributeAnimation(const String&);
  9619. void RemoveInstanceDefault();
  9620. void RemoveObjectAnimation();
  9621. void ResetToDefault();
  9622. bool Save(File) const;
  9623. bool Save(VectorBuffer&) const;
  9624. bool SaveJSON(JSONValue&) const;
  9625. bool SaveXML(XMLElement&) const;
  9626. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9627. void SetAnimationTime(float);
  9628. bool SetAttribute(const String&, const Variant&);
  9629. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9630. void SetAttributeAnimationSpeed(const String&, float);
  9631. void SetAttributeAnimationTime(const String&, float);
  9632. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9633. void SetInterceptNetworkUpdate(const String&, bool);
  9634. void Update(float, float);
  9635. // Properties:
  9636. bool animationEnabled;
  9637. /* readonly */
  9638. Array<Variant> attributeDefaults;
  9639. /* readonly */
  9640. Array<AttributeInfo> attributeInfos;
  9641. Array<Variant> attributes;
  9642. /* readonly */
  9643. String category;
  9644. bool enabled;
  9645. /* readonly */
  9646. bool enabledEffective;
  9647. /* readonly */
  9648. uint id;
  9649. /* readonly */
  9650. bool inProgress;
  9651. /* readonly */
  9652. Node node;
  9653. /* readonly */
  9654. uint numAttributes;
  9655. ObjectAnimation objectAnimation;
  9656. /* readonly */
  9657. int refs;
  9658. Vector3 targetPosition;
  9659. Quaternion targetRotation;
  9660. Vector3 targetWorldPosition;
  9661. Quaternion targetWorldRotation;
  9662. bool temporary;
  9663. /* readonly */
  9664. StringHash type;
  9665. /* readonly */
  9666. String typeName;
  9667. /* readonly */
  9668. int weakRefs;
  9669. };
  9670. class Sound
  9671. {
  9672. // Methods:
  9673. bool HasSubscribedToEvent(Object, const String&);
  9674. bool HasSubscribedToEvent(const String&);
  9675. bool Load(File);
  9676. bool Load(VectorBuffer&);
  9677. bool Save(File) const;
  9678. bool Save(VectorBuffer&) const;
  9679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9680. // Properties:
  9681. /* readonly */
  9682. String category;
  9683. /* readonly */
  9684. bool compressed;
  9685. /* readonly */
  9686. float frequency;
  9687. /* readonly */
  9688. float length;
  9689. bool looped;
  9690. /* readonly */
  9691. uint memoryUse;
  9692. String name;
  9693. /* readonly */
  9694. int refs;
  9695. /* readonly */
  9696. uint sampleSize;
  9697. /* readonly */
  9698. bool sixteenBit;
  9699. /* readonly */
  9700. bool stereo;
  9701. /* readonly */
  9702. StringHash type;
  9703. /* readonly */
  9704. String typeName;
  9705. /* readonly */
  9706. uint useTimer;
  9707. /* readonly */
  9708. int weakRefs;
  9709. };
  9710. class SoundListener
  9711. {
  9712. // Methods:
  9713. void ApplyAttributes();
  9714. void DrawDebugGeometry(DebugRenderer, bool);
  9715. Variant GetAttribute(const String&) const;
  9716. ValueAnimation GetAttributeAnimation(const String&) const;
  9717. float GetAttributeAnimationSpeed(const String&) const;
  9718. float GetAttributeAnimationTime(const String&) const;
  9719. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9720. Variant GetAttributeDefault(const String&) const;
  9721. bool GetInterceptNetworkUpdate(const String&) const;
  9722. bool HasSubscribedToEvent(Object, const String&);
  9723. bool HasSubscribedToEvent(const String&);
  9724. bool Load(File, bool = false);
  9725. bool Load(VectorBuffer&, bool = false);
  9726. bool LoadJSON(const JSONValue&, bool = false);
  9727. bool LoadXML(const XMLElement&, bool = false);
  9728. void MarkNetworkUpdate() const;
  9729. void Remove();
  9730. void RemoveAttributeAnimation(const String&);
  9731. void RemoveInstanceDefault();
  9732. void RemoveObjectAnimation();
  9733. void ResetToDefault();
  9734. bool Save(File) const;
  9735. bool Save(VectorBuffer&) const;
  9736. bool SaveJSON(JSONValue&) const;
  9737. bool SaveXML(XMLElement&) const;
  9738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9739. void SetAnimationTime(float);
  9740. bool SetAttribute(const String&, const Variant&);
  9741. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9742. void SetAttributeAnimationSpeed(const String&, float);
  9743. void SetAttributeAnimationTime(const String&, float);
  9744. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9745. void SetInterceptNetworkUpdate(const String&, bool);
  9746. // Properties:
  9747. bool animationEnabled;
  9748. /* readonly */
  9749. Array<Variant> attributeDefaults;
  9750. /* readonly */
  9751. Array<AttributeInfo> attributeInfos;
  9752. Array<Variant> attributes;
  9753. /* readonly */
  9754. String category;
  9755. bool enabled;
  9756. /* readonly */
  9757. bool enabledEffective;
  9758. /* readonly */
  9759. uint id;
  9760. /* readonly */
  9761. Node node;
  9762. /* readonly */
  9763. uint numAttributes;
  9764. ObjectAnimation objectAnimation;
  9765. /* readonly */
  9766. int refs;
  9767. bool temporary;
  9768. /* readonly */
  9769. StringHash type;
  9770. /* readonly */
  9771. String typeName;
  9772. /* readonly */
  9773. int weakRefs;
  9774. };
  9775. class SoundSource
  9776. {
  9777. // Methods:
  9778. void ApplyAttributes();
  9779. void DrawDebugGeometry(DebugRenderer, bool);
  9780. Variant GetAttribute(const String&) const;
  9781. ValueAnimation GetAttributeAnimation(const String&) const;
  9782. float GetAttributeAnimationSpeed(const String&) const;
  9783. float GetAttributeAnimationTime(const String&) const;
  9784. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9785. Variant GetAttributeDefault(const String&) const;
  9786. bool GetInterceptNetworkUpdate(const String&) const;
  9787. bool HasSubscribedToEvent(Object, const String&);
  9788. bool HasSubscribedToEvent(const String&);
  9789. bool Load(File, bool = false);
  9790. bool Load(VectorBuffer&, bool = false);
  9791. bool LoadJSON(const JSONValue&, bool = false);
  9792. bool LoadXML(const XMLElement&, bool = false);
  9793. void MarkNetworkUpdate() const;
  9794. void Play(Sound);
  9795. void Play(Sound, float);
  9796. void Play(Sound, float, float);
  9797. void Play(Sound, float, float, float);
  9798. void Remove();
  9799. void RemoveAttributeAnimation(const String&);
  9800. void RemoveInstanceDefault();
  9801. void RemoveObjectAnimation();
  9802. void ResetToDefault();
  9803. bool Save(File) const;
  9804. bool Save(VectorBuffer&) const;
  9805. bool SaveJSON(JSONValue&) const;
  9806. bool SaveXML(XMLElement&) const;
  9807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9808. void SetAnimationTime(float);
  9809. bool SetAttribute(const String&, const Variant&);
  9810. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9811. void SetAttributeAnimationSpeed(const String&, float);
  9812. void SetAttributeAnimationTime(const String&, float);
  9813. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9814. void SetInterceptNetworkUpdate(const String&, bool);
  9815. void Stop();
  9816. // Properties:
  9817. bool animationEnabled;
  9818. /* readonly */
  9819. float attenuation;
  9820. /* readonly */
  9821. Array<Variant> attributeDefaults;
  9822. /* readonly */
  9823. Array<AttributeInfo> attributeInfos;
  9824. Array<Variant> attributes;
  9825. bool autoRemove;
  9826. /* readonly */
  9827. String category;
  9828. bool enabled;
  9829. /* readonly */
  9830. bool enabledEffective;
  9831. float frequency;
  9832. float gain;
  9833. /* readonly */
  9834. uint id;
  9835. /* readonly */
  9836. Node node;
  9837. /* readonly */
  9838. uint numAttributes;
  9839. ObjectAnimation objectAnimation;
  9840. float panning;
  9841. /* readonly */
  9842. bool playing;
  9843. /* readonly */
  9844. int refs;
  9845. /* readonly */
  9846. Sound sound;
  9847. String soundType;
  9848. bool temporary;
  9849. /* readonly */
  9850. float timePosition;
  9851. /* readonly */
  9852. StringHash type;
  9853. /* readonly */
  9854. String typeName;
  9855. /* readonly */
  9856. int weakRefs;
  9857. };
  9858. class SoundSource3D
  9859. {
  9860. // Methods:
  9861. void ApplyAttributes();
  9862. void DrawDebugGeometry(DebugRenderer, bool);
  9863. Variant GetAttribute(const String&) const;
  9864. ValueAnimation GetAttributeAnimation(const String&) const;
  9865. float GetAttributeAnimationSpeed(const String&) const;
  9866. float GetAttributeAnimationTime(const String&) const;
  9867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9868. Variant GetAttributeDefault(const String&) const;
  9869. bool GetInterceptNetworkUpdate(const String&) const;
  9870. bool HasSubscribedToEvent(Object, const String&);
  9871. bool HasSubscribedToEvent(const String&);
  9872. bool Load(File, bool = false);
  9873. bool Load(VectorBuffer&, bool = false);
  9874. bool LoadJSON(const JSONValue&, bool = false);
  9875. bool LoadXML(const XMLElement&, bool = false);
  9876. void MarkNetworkUpdate() const;
  9877. void Play(Sound);
  9878. void Play(Sound, float);
  9879. void Play(Sound, float, float);
  9880. void Play(Sound, float, float, float);
  9881. void Remove();
  9882. void RemoveAttributeAnimation(const String&);
  9883. void RemoveInstanceDefault();
  9884. void RemoveObjectAnimation();
  9885. void ResetToDefault();
  9886. bool Save(File) const;
  9887. bool Save(VectorBuffer&) const;
  9888. bool SaveJSON(JSONValue&) const;
  9889. bool SaveXML(XMLElement&) const;
  9890. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9891. void SetAngleAttenuation(float, float);
  9892. void SetAnimationTime(float);
  9893. bool SetAttribute(const String&, const Variant&);
  9894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9895. void SetAttributeAnimationSpeed(const String&, float);
  9896. void SetAttributeAnimationTime(const String&, float);
  9897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9898. void SetDistanceAttenuation(float, float, float);
  9899. void SetInterceptNetworkUpdate(const String&, bool);
  9900. void Stop();
  9901. // Properties:
  9902. bool animationEnabled;
  9903. /* readonly */
  9904. float attenuation;
  9905. /* readonly */
  9906. Array<Variant> attributeDefaults;
  9907. /* readonly */
  9908. Array<AttributeInfo> attributeInfos;
  9909. Array<Variant> attributes;
  9910. bool autoRemove;
  9911. /* readonly */
  9912. String category;
  9913. bool enabled;
  9914. /* readonly */
  9915. bool enabledEffective;
  9916. float farDistance;
  9917. float frequency;
  9918. float gain;
  9919. /* readonly */
  9920. uint id;
  9921. float innerAngle;
  9922. float nearDistance;
  9923. /* readonly */
  9924. Node node;
  9925. /* readonly */
  9926. uint numAttributes;
  9927. ObjectAnimation objectAnimation;
  9928. float outerAngle;
  9929. float panning;
  9930. /* readonly */
  9931. bool playing;
  9932. /* readonly */
  9933. int refs;
  9934. float rolloffFactor;
  9935. /* readonly */
  9936. Sound sound;
  9937. String soundType;
  9938. bool temporary;
  9939. /* readonly */
  9940. float timePosition;
  9941. /* readonly */
  9942. StringHash type;
  9943. /* readonly */
  9944. String typeName;
  9945. /* readonly */
  9946. int weakRefs;
  9947. };
  9948. class Sphere
  9949. {
  9950. // Methods:
  9951. void Clear();
  9952. void Define(const BoundingBox&);
  9953. void Define(const Frustum&);
  9954. void Define(const Polyhedron&);
  9955. void Define(const Sphere&);
  9956. void Define(const Vector3&, float);
  9957. bool Defined() const;
  9958. float Distance(const Vector3&) const;
  9959. Intersection IsInside(const BoundingBox&) const;
  9960. Intersection IsInside(const Sphere&) const;
  9961. Intersection IsInside(const Vector3&) const;
  9962. Intersection IsInsideFast(const BoundingBox&) const;
  9963. Intersection IsInsideFast(const Sphere&) const;
  9964. void Merge(const BoundingBox&);
  9965. void Merge(const Frustum&);
  9966. void Merge(const Sphere&);
  9967. void Merge(const Vector3&);
  9968. // Properties:
  9969. Vector3 center;
  9970. float radius;
  9971. };
  9972. class Spline
  9973. {
  9974. // Methods:
  9975. void AddKnot(const Variant&);
  9976. void AddKnot(const Variant&, uint);
  9977. void Clear();
  9978. Variant GetPoint(float);
  9979. void RemoveKnot();
  9980. void RemoveKnot(uint);
  9981. // Properties:
  9982. InterpolationMode interpolationMode;
  9983. Array<Variant> knot;
  9984. Array<Variant> knots;
  9985. };
  9986. class SplinePath
  9987. {
  9988. // Methods:
  9989. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9990. void ApplyAttributes();
  9991. void ClearControlPoints();
  9992. void DrawDebugGeometry(DebugRenderer, bool);
  9993. Variant GetAttribute(const String&) const;
  9994. ValueAnimation GetAttributeAnimation(const String&) const;
  9995. float GetAttributeAnimationSpeed(const String&) const;
  9996. float GetAttributeAnimationTime(const String&) const;
  9997. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9998. Variant GetAttributeDefault(const String&) const;
  9999. bool GetInterceptNetworkUpdate(const String&) const;
  10000. Vector3 GetPoint(float) const;
  10001. Vector3 GetPosition() const;
  10002. bool HasSubscribedToEvent(Object, const String&);
  10003. bool HasSubscribedToEvent(const String&);
  10004. bool Load(File, bool = false);
  10005. bool Load(VectorBuffer&, bool = false);
  10006. bool LoadJSON(const JSONValue&, bool = false);
  10007. bool LoadXML(const XMLElement&, bool = false);
  10008. void MarkNetworkUpdate() const;
  10009. void Move(float);
  10010. void Remove();
  10011. void RemoveAttributeAnimation(const String&);
  10012. void RemoveControlPoint(Node);
  10013. void RemoveInstanceDefault();
  10014. void RemoveObjectAnimation();
  10015. void Reset();
  10016. void ResetToDefault();
  10017. bool Save(File) const;
  10018. bool Save(VectorBuffer&) const;
  10019. bool SaveJSON(JSONValue&) const;
  10020. bool SaveXML(XMLElement&) const;
  10021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10022. void SetAnimationTime(float);
  10023. bool SetAttribute(const String&, const Variant&);
  10024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10025. void SetAttributeAnimationSpeed(const String&, float);
  10026. void SetAttributeAnimationTime(const String&, float);
  10027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10028. void SetInterceptNetworkUpdate(const String&, bool);
  10029. void SetPosition(float);
  10030. // Properties:
  10031. bool animationEnabled;
  10032. /* readonly */
  10033. Array<Variant> attributeDefaults;
  10034. /* readonly */
  10035. Array<AttributeInfo> attributeInfos;
  10036. Array<Variant> attributes;
  10037. /* readonly */
  10038. String category;
  10039. Node controlledNode;
  10040. bool enabled;
  10041. /* readonly */
  10042. bool enabledEffective;
  10043. /* readonly */
  10044. uint id;
  10045. InterpolationMode interpolationMode;
  10046. /* readonly */
  10047. bool isFinished;
  10048. /* readonly */
  10049. float length;
  10050. /* readonly */
  10051. Node node;
  10052. /* readonly */
  10053. uint numAttributes;
  10054. ObjectAnimation objectAnimation;
  10055. /* readonly */
  10056. int refs;
  10057. float speed;
  10058. bool temporary;
  10059. /* readonly */
  10060. StringHash type;
  10061. /* readonly */
  10062. String typeName;
  10063. /* readonly */
  10064. int weakRefs;
  10065. };
  10066. class Sprite
  10067. {
  10068. // Methods:
  10069. void AddChild(UIElement);
  10070. void AddTag(const String&);
  10071. void AddTags(const String&, int8 = ';');
  10072. void ApplyAttributes();
  10073. void BringToFront();
  10074. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10075. uint FindChild(UIElement) const;
  10076. Variant GetAttribute(const String&) const;
  10077. ValueAnimation GetAttributeAnimation(const String&) const;
  10078. float GetAttributeAnimationSpeed(const String&) const;
  10079. float GetAttributeAnimationTime(const String&) const;
  10080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10081. Variant GetAttributeDefault(const String&) const;
  10082. UIElement GetChild(const String&, bool = false) const;
  10083. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10084. Array<UIElement> GetChildren(bool = false) const;
  10085. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10086. UIElement GetElementEventSender() const;
  10087. bool GetInterceptNetworkUpdate(const String&) const;
  10088. uint GetNumChildren(bool) const;
  10089. bool HasSubscribedToEvent(Object, const String&);
  10090. bool HasSubscribedToEvent(const String&);
  10091. bool HasTag(const String&) const;
  10092. void InsertChild(uint, UIElement);
  10093. bool Load(File, bool = false);
  10094. bool Load(VectorBuffer&, bool = false);
  10095. bool LoadChildXML(XMLFile, XMLFile = null);
  10096. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10097. bool LoadJSON(const JSONValue&, bool = false);
  10098. bool LoadXML(File);
  10099. bool LoadXML(VectorBuffer&);
  10100. bool LoadXML(XMLFile, XMLFile);
  10101. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10102. bool LoadXML(const XMLElement&, bool = false);
  10103. void MarkNetworkUpdate() const;
  10104. void Remove();
  10105. void RemoveAllChildren();
  10106. void RemoveAllTags();
  10107. void RemoveAttributeAnimation(const String&);
  10108. void RemoveChild(UIElement, uint = 0);
  10109. void RemoveChild(uint);
  10110. void RemoveInstanceDefault();
  10111. void RemoveObjectAnimation();
  10112. bool RemoveTag(const String&);
  10113. void ResetToDefault();
  10114. bool Save(File) const;
  10115. bool Save(VectorBuffer&) const;
  10116. bool SaveJSON(JSONValue&) const;
  10117. bool SaveXML(File, const String& = "\t");
  10118. bool SaveXML(VectorBuffer&, const String& = "\t");
  10119. bool SaveXML(XMLElement&) const;
  10120. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10121. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10122. void SetAnimationTime(float);
  10123. bool SetAttribute(const String&, const Variant&);
  10124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10125. void SetAttributeAnimationSpeed(const String&, float);
  10126. void SetAttributeAnimationTime(const String&, float);
  10127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10128. void SetFixedHeight(int);
  10129. void SetFixedSize(int, int);
  10130. void SetFixedWidth(int);
  10131. void SetFullImageRect();
  10132. void SetHotSpot(int, int);
  10133. void SetInterceptNetworkUpdate(const String&, bool);
  10134. void SetMaxSize(int, int);
  10135. void SetMinSize(int, int);
  10136. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10137. void SetPosition(float, float);
  10138. void SetScale(float);
  10139. void SetScale(float, float);
  10140. void SetSize(int, int);
  10141. bool SetStyle(const String&, XMLFile = null);
  10142. bool SetStyle(const XMLElement&);
  10143. bool SetStyleAuto(XMLFile = null);
  10144. const Variant& GetVar(const StringHash&);
  10145. // Properties:
  10146. bool animationEnabled;
  10147. /* readonly */
  10148. Array<Variant> attributeDefaults;
  10149. /* readonly */
  10150. Array<AttributeInfo> attributeInfos;
  10151. Array<Variant> attributes;
  10152. BlendMode blendMode;
  10153. bool bringToBack;
  10154. bool bringToFront;
  10155. /* readonly */
  10156. String category;
  10157. /* readonly */
  10158. Array<UIElement> children;
  10159. /* writeonly */
  10160. Color color;
  10161. /* readonly */
  10162. bool colorGradient;
  10163. Array<Color> colors;
  10164. XMLFile defaultStyle;
  10165. /* readonly */
  10166. float derivedOpacity;
  10167. /* readonly */
  10168. uint dragButtonCombo;
  10169. /* readonly */
  10170. int dragButtonCount;
  10171. bool elementEventSender;
  10172. int height;
  10173. HorizontalAlignment horizontalAlignment;
  10174. IntVector2 hotSpot;
  10175. IntRect imageRect;
  10176. String name;
  10177. /* readonly */
  10178. uint numAllChildren;
  10179. /* readonly */
  10180. uint numAttributes;
  10181. /* readonly */
  10182. uint numChildren;
  10183. ObjectAnimation objectAnimation;
  10184. float opacity;
  10185. UIElement parent;
  10186. Vector2 position;
  10187. int priority;
  10188. /* readonly */
  10189. int refs;
  10190. /* readonly */
  10191. UIElement root;
  10192. float rotation;
  10193. Vector2 scale;
  10194. IntVector2 size;
  10195. bool sortChildren;
  10196. String style;
  10197. /* readonly */
  10198. Array<String> tags;
  10199. bool temporary;
  10200. Texture texture;
  10201. /* readonly */
  10202. StringHash type;
  10203. /* readonly */
  10204. String typeName;
  10205. bool useDerivedOpacity;
  10206. /* readonly */
  10207. VariantMap vars;
  10208. VerticalAlignment verticalAlignment;
  10209. bool visible;
  10210. /* readonly */
  10211. bool visibleEffective;
  10212. /* readonly */
  10213. int weakRefs;
  10214. int width;
  10215. };
  10216. class Sprite2D
  10217. {
  10218. // Methods:
  10219. bool HasSubscribedToEvent(Object, const String&);
  10220. bool HasSubscribedToEvent(const String&);
  10221. bool Load(File);
  10222. bool Load(VectorBuffer&);
  10223. bool Save(File) const;
  10224. bool Save(VectorBuffer&) const;
  10225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10226. // Properties:
  10227. /* readonly */
  10228. String category;
  10229. Vector2 hotSpot;
  10230. /* readonly */
  10231. uint memoryUse;
  10232. String name;
  10233. IntVector2 offset;
  10234. IntRect rectangle;
  10235. /* readonly */
  10236. int refs;
  10237. Texture2D texture;
  10238. float textureEdgeOffset;
  10239. /* readonly */
  10240. StringHash type;
  10241. /* readonly */
  10242. String typeName;
  10243. /* readonly */
  10244. uint useTimer;
  10245. /* readonly */
  10246. int weakRefs;
  10247. };
  10248. class SpriteSheet2D
  10249. {
  10250. // Methods:
  10251. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10252. Sprite2D GetSprite(const String&);
  10253. bool HasSubscribedToEvent(Object, const String&);
  10254. bool HasSubscribedToEvent(const String&);
  10255. bool Load(File);
  10256. bool Load(VectorBuffer&);
  10257. bool Save(File) const;
  10258. bool Save(VectorBuffer&) const;
  10259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10260. // Properties:
  10261. /* readonly */
  10262. String category;
  10263. /* readonly */
  10264. uint memoryUse;
  10265. String name;
  10266. /* readonly */
  10267. int refs;
  10268. Texture2D texture;
  10269. /* readonly */
  10270. StringHash type;
  10271. /* readonly */
  10272. String typeName;
  10273. /* readonly */
  10274. uint useTimer;
  10275. /* readonly */
  10276. int weakRefs;
  10277. };
  10278. class StaticModel
  10279. {
  10280. // Methods:
  10281. void ApplyAttributes();
  10282. void ApplyMaterialList(const String& = String ( ));
  10283. void DrawDebugGeometry(DebugRenderer, bool);
  10284. Variant GetAttribute(const String&) const;
  10285. ValueAnimation GetAttributeAnimation(const String&) const;
  10286. float GetAttributeAnimationSpeed(const String&) const;
  10287. float GetAttributeAnimationTime(const String&) const;
  10288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10289. Variant GetAttributeDefault(const String&) const;
  10290. bool GetInterceptNetworkUpdate(const String&) const;
  10291. bool HasSubscribedToEvent(Object, const String&);
  10292. bool HasSubscribedToEvent(const String&);
  10293. bool IsInView(Camera) const;
  10294. bool IsInside(const Vector3&) const;
  10295. bool IsInsideLocal(const Vector3&) const;
  10296. bool Load(File, bool = false);
  10297. bool Load(VectorBuffer&, bool = false);
  10298. bool LoadJSON(const JSONValue&, bool = false);
  10299. bool LoadXML(const XMLElement&, bool = false);
  10300. void MarkNetworkUpdate() const;
  10301. void Remove();
  10302. void RemoveAttributeAnimation(const String&);
  10303. void RemoveInstanceDefault();
  10304. void RemoveObjectAnimation();
  10305. void ResetToDefault();
  10306. bool Save(File) const;
  10307. bool Save(VectorBuffer&) const;
  10308. bool SaveJSON(JSONValue&) const;
  10309. bool SaveXML(XMLElement&) const;
  10310. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10311. void SetAnimationTime(float);
  10312. bool SetAttribute(const String&, const Variant&);
  10313. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10314. void SetAttributeAnimationSpeed(const String&, float);
  10315. void SetAttributeAnimationTime(const String&, float);
  10316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10317. void SetInterceptNetworkUpdate(const String&, bool);
  10318. // Properties:
  10319. bool animationEnabled;
  10320. /* readonly */
  10321. Array<Variant> attributeDefaults;
  10322. /* readonly */
  10323. Array<AttributeInfo> attributeInfos;
  10324. Array<Variant> attributes;
  10325. /* readonly */
  10326. BoundingBox boundingBox;
  10327. bool castShadows;
  10328. /* readonly */
  10329. String category;
  10330. float drawDistance;
  10331. bool enabled;
  10332. /* readonly */
  10333. bool enabledEffective;
  10334. /* readonly */
  10335. uint id;
  10336. /* readonly */
  10337. bool inView;
  10338. uint lightMask;
  10339. float lodBias;
  10340. /* writeonly */
  10341. Material material;
  10342. Array<Material> materials;
  10343. uint maxLights;
  10344. Model model;
  10345. /* readonly */
  10346. Node node;
  10347. /* readonly */
  10348. uint numAttributes;
  10349. /* readonly */
  10350. uint numGeometries;
  10351. ObjectAnimation objectAnimation;
  10352. bool occludee;
  10353. bool occluder;
  10354. uint occlusionLodLevel;
  10355. /* readonly */
  10356. int refs;
  10357. float shadowDistance;
  10358. uint shadowMask;
  10359. bool temporary;
  10360. /* readonly */
  10361. StringHash type;
  10362. /* readonly */
  10363. String typeName;
  10364. uint viewMask;
  10365. /* readonly */
  10366. int weakRefs;
  10367. /* readonly */
  10368. BoundingBox worldBoundingBox;
  10369. uint zoneMask;
  10370. };
  10371. class StaticModelGroup
  10372. {
  10373. // Methods:
  10374. void AddInstanceNode(Node);
  10375. void ApplyAttributes();
  10376. void ApplyMaterialList(const String& = String ( ));
  10377. void DrawDebugGeometry(DebugRenderer, bool);
  10378. Variant GetAttribute(const String&) const;
  10379. ValueAnimation GetAttributeAnimation(const String&) const;
  10380. float GetAttributeAnimationSpeed(const String&) const;
  10381. float GetAttributeAnimationTime(const String&) const;
  10382. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10383. Variant GetAttributeDefault(const String&) const;
  10384. bool GetInterceptNetworkUpdate(const String&) const;
  10385. bool HasSubscribedToEvent(Object, const String&);
  10386. bool HasSubscribedToEvent(const String&);
  10387. bool IsInView(Camera) const;
  10388. bool Load(File, bool = false);
  10389. bool Load(VectorBuffer&, bool = false);
  10390. bool LoadJSON(const JSONValue&, bool = false);
  10391. bool LoadXML(const XMLElement&, bool = false);
  10392. void MarkNetworkUpdate() const;
  10393. void Remove();
  10394. void RemoveAllInstanceNodes();
  10395. void RemoveAttributeAnimation(const String&);
  10396. void RemoveInstanceDefault();
  10397. void RemoveInstanceNode(Node);
  10398. void RemoveObjectAnimation();
  10399. void ResetToDefault();
  10400. bool Save(File) const;
  10401. bool Save(VectorBuffer&) const;
  10402. bool SaveJSON(JSONValue&) const;
  10403. bool SaveXML(XMLElement&) const;
  10404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10405. void SetAnimationTime(float);
  10406. bool SetAttribute(const String&, const Variant&);
  10407. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10408. void SetAttributeAnimationSpeed(const String&, float);
  10409. void SetAttributeAnimationTime(const String&, float);
  10410. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10411. void SetInterceptNetworkUpdate(const String&, bool);
  10412. // Properties:
  10413. bool animationEnabled;
  10414. /* readonly */
  10415. Array<Variant> attributeDefaults;
  10416. /* readonly */
  10417. Array<AttributeInfo> attributeInfos;
  10418. Array<Variant> attributes;
  10419. /* readonly */
  10420. BoundingBox boundingBox;
  10421. bool castShadows;
  10422. /* readonly */
  10423. String category;
  10424. float drawDistance;
  10425. bool enabled;
  10426. /* readonly */
  10427. bool enabledEffective;
  10428. /* readonly */
  10429. uint id;
  10430. /* readonly */
  10431. bool inView;
  10432. /* readonly */
  10433. Array<Node> instanceNodes;
  10434. uint lightMask;
  10435. float lodBias;
  10436. /* writeonly */
  10437. Material material;
  10438. Array<Material> materials;
  10439. uint maxLights;
  10440. Model model;
  10441. /* readonly */
  10442. Node node;
  10443. /* readonly */
  10444. uint numAttributes;
  10445. /* readonly */
  10446. uint numGeometries;
  10447. /* readonly */
  10448. uint numInstanceNodes;
  10449. ObjectAnimation objectAnimation;
  10450. bool occludee;
  10451. bool occluder;
  10452. uint occlusionLodLevel;
  10453. /* readonly */
  10454. int refs;
  10455. float shadowDistance;
  10456. uint shadowMask;
  10457. bool temporary;
  10458. /* readonly */
  10459. StringHash type;
  10460. /* readonly */
  10461. String typeName;
  10462. uint viewMask;
  10463. /* readonly */
  10464. int weakRefs;
  10465. /* readonly */
  10466. BoundingBox worldBoundingBox;
  10467. /* readonly */
  10468. Zone zone;
  10469. uint zoneMask;
  10470. };
  10471. class StaticSprite2D
  10472. {
  10473. // Methods:
  10474. void ApplyAttributes();
  10475. void DrawDebugGeometry(DebugRenderer, bool);
  10476. Variant GetAttribute(const String&) const;
  10477. ValueAnimation GetAttributeAnimation(const String&) const;
  10478. float GetAttributeAnimationSpeed(const String&) const;
  10479. float GetAttributeAnimationTime(const String&) const;
  10480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10481. Variant GetAttributeDefault(const String&) const;
  10482. bool GetInterceptNetworkUpdate(const String&) const;
  10483. bool HasSubscribedToEvent(Object, const String&);
  10484. bool HasSubscribedToEvent(const String&);
  10485. bool IsInView(Camera) const;
  10486. bool Load(File, bool = false);
  10487. bool Load(VectorBuffer&, bool = false);
  10488. bool LoadJSON(const JSONValue&, bool = false);
  10489. bool LoadXML(const XMLElement&, bool = false);
  10490. void MarkNetworkUpdate() const;
  10491. void Remove();
  10492. void RemoveAttributeAnimation(const String&);
  10493. void RemoveInstanceDefault();
  10494. void RemoveObjectAnimation();
  10495. void ResetToDefault();
  10496. bool Save(File) const;
  10497. bool Save(VectorBuffer&) const;
  10498. bool SaveJSON(JSONValue&) const;
  10499. bool SaveXML(XMLElement&) const;
  10500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10501. void SetAnimationTime(float);
  10502. bool SetAttribute(const String&, const Variant&);
  10503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10504. void SetAttributeAnimationSpeed(const String&, float);
  10505. void SetAttributeAnimationTime(const String&, float);
  10506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10507. void SetFlip(bool, bool);
  10508. void SetInterceptNetworkUpdate(const String&, bool);
  10509. // Properties:
  10510. float alpha;
  10511. bool animationEnabled;
  10512. /* readonly */
  10513. Array<Variant> attributeDefaults;
  10514. /* readonly */
  10515. Array<AttributeInfo> attributeInfos;
  10516. Array<Variant> attributes;
  10517. BlendMode blendMode;
  10518. /* readonly */
  10519. BoundingBox boundingBox;
  10520. bool castShadows;
  10521. /* readonly */
  10522. String category;
  10523. Color color;
  10524. Material customMaterial;
  10525. float drawDistance;
  10526. bool enabled;
  10527. /* readonly */
  10528. bool enabledEffective;
  10529. bool flipX;
  10530. bool flipY;
  10531. Vector2 hotSpot;
  10532. /* readonly */
  10533. uint id;
  10534. /* readonly */
  10535. bool inView;
  10536. int layer;
  10537. uint lightMask;
  10538. float lodBias;
  10539. uint maxLights;
  10540. /* readonly */
  10541. Node node;
  10542. /* readonly */
  10543. uint numAttributes;
  10544. ObjectAnimation objectAnimation;
  10545. bool occludee;
  10546. bool occluder;
  10547. int orderInLayer;
  10548. /* readonly */
  10549. int refs;
  10550. float shadowDistance;
  10551. uint shadowMask;
  10552. Sprite2D sprite;
  10553. bool temporary;
  10554. /* readonly */
  10555. StringHash type;
  10556. /* readonly */
  10557. String typeName;
  10558. bool useHotSpot;
  10559. uint viewMask;
  10560. /* readonly */
  10561. int weakRefs;
  10562. /* readonly */
  10563. BoundingBox worldBoundingBox;
  10564. uint zoneMask;
  10565. };
  10566. class String
  10567. {
  10568. // Methods:
  10569. void AppendUTF8(uint);
  10570. uint AtUTF8(uint) const;
  10571. uint ByteOffsetUTF8(uint) const;
  10572. void Clear();
  10573. int Compare(const String&, bool = true) const;
  10574. bool Contains(const String&, bool = true) const;
  10575. bool Contains(uint8, bool = true) const;
  10576. bool EndsWith(const String&, bool = true) const;
  10577. uint Find(const String&, uint = 0, bool = true) const;
  10578. uint Find(uint8, uint = 0, bool = true) const;
  10579. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10580. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10581. void Join(Array<String>&, const String&);
  10582. uint NextUTF8Char(uint&) const;
  10583. void Replace(const String&, const String&, bool = true);
  10584. void Replace(uint8, uint8, bool = true);
  10585. void ReplaceUTF8(uint, uint);
  10586. String Replaced(const String&, const String&, bool = true) const;
  10587. String Replaced(uint8, uint8, bool = true) const;
  10588. void Resize(uint);
  10589. void SetUTF8FromLatin1(const String&);
  10590. Array<String> Split(uint8, bool = false) const;
  10591. bool StartsWith(const String&, bool = true) const;
  10592. String Substring(uint) const;
  10593. String Substring(uint, uint) const;
  10594. String SubstringUTF8(uint) const;
  10595. String SubstringUTF8(uint, uint) const;
  10596. bool ToBool() const;
  10597. Color ToColor() const;
  10598. double ToDouble() const;
  10599. float ToFloat() const;
  10600. int ToInt() const;
  10601. IntRect ToIntRect() const;
  10602. IntVector2 ToIntVector2() const;
  10603. String ToLower() const;
  10604. Matrix3 ToMatrix3() const;
  10605. Matrix3x4 ToMatrix3x4() const;
  10606. Matrix4 ToMatrix4() const;
  10607. Quaternion ToQuaternion() const;
  10608. uint ToUInt() const;
  10609. String ToUpper() const;
  10610. Vector2 ToVector2() const;
  10611. Vector3 ToVector3() const;
  10612. Vector4 ToVector4(bool = false) const;
  10613. Variant ToVectorVariant() const;
  10614. String Trimmed() const;
  10615. // Properties:
  10616. /* readonly */
  10617. bool empty;
  10618. /* readonly */
  10619. uint length;
  10620. /* readonly */
  10621. uint utf8Length;
  10622. };
  10623. class StringHash
  10624. {
  10625. // Methods:
  10626. String ToString() const;
  10627. // Properties:
  10628. /* readonly */
  10629. uint value;
  10630. };
  10631. class Technique
  10632. {
  10633. // Methods:
  10634. Technique Clone(const String& = String ( )) const;
  10635. Pass CreatePass(const String&);
  10636. Pass GetPass(const String&);
  10637. Pass GetSupportedPass(const String&);
  10638. bool HasPass(const String&) const;
  10639. bool HasSubscribedToEvent(Object, const String&);
  10640. bool HasSubscribedToEvent(const String&);
  10641. bool Load(File);
  10642. bool Load(VectorBuffer&);
  10643. void RemovePass(const String&);
  10644. bool Save(File) const;
  10645. bool Save(VectorBuffer&) const;
  10646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10647. // Properties:
  10648. /* readonly */
  10649. String category;
  10650. bool desktop;
  10651. /* readonly */
  10652. uint memoryUse;
  10653. String name;
  10654. /* readonly */
  10655. uint numPasses;
  10656. /* readonly */
  10657. Array<String> passNames;
  10658. /* readonly */
  10659. Array<Pass> passes;
  10660. /* readonly */
  10661. int refs;
  10662. /* readonly */
  10663. bool supported;
  10664. /* readonly */
  10665. StringHash type;
  10666. /* readonly */
  10667. String typeName;
  10668. /* readonly */
  10669. uint useTimer;
  10670. /* readonly */
  10671. int weakRefs;
  10672. };
  10673. class TechniqueEntry
  10674. {
  10675. // Properties:
  10676. float lodDistance;
  10677. int qualityLevel;
  10678. Technique technique;
  10679. };
  10680. class Terrain
  10681. {
  10682. // Methods:
  10683. void ApplyAttributes();
  10684. void ApplyHeightMap();
  10685. void DrawDebugGeometry(DebugRenderer, bool);
  10686. Variant GetAttribute(const String&) const;
  10687. ValueAnimation GetAttributeAnimation(const String&) const;
  10688. float GetAttributeAnimationSpeed(const String&) const;
  10689. float GetAttributeAnimationTime(const String&) const;
  10690. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10691. Variant GetAttributeDefault(const String&) const;
  10692. float GetHeight(const Vector3&) const;
  10693. bool GetInterceptNetworkUpdate(const String&) const;
  10694. Vector3 GetNormal(const Vector3&) const;
  10695. TerrainPatch GetPatch(int, int) const;
  10696. bool HasSubscribedToEvent(Object, const String&);
  10697. bool HasSubscribedToEvent(const String&);
  10698. bool Load(File, bool = false);
  10699. bool Load(VectorBuffer&, bool = false);
  10700. bool LoadJSON(const JSONValue&, bool = false);
  10701. bool LoadXML(const XMLElement&, bool = false);
  10702. void MarkNetworkUpdate() const;
  10703. void Remove();
  10704. void RemoveAttributeAnimation(const String&);
  10705. void RemoveInstanceDefault();
  10706. void RemoveObjectAnimation();
  10707. void ResetToDefault();
  10708. bool Save(File) const;
  10709. bool Save(VectorBuffer&) const;
  10710. bool SaveJSON(JSONValue&) const;
  10711. bool SaveXML(XMLElement&) const;
  10712. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10713. void SetAnimationTime(float);
  10714. bool SetAttribute(const String&, const Variant&);
  10715. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10716. void SetAttributeAnimationSpeed(const String&, float);
  10717. void SetAttributeAnimationTime(const String&, float);
  10718. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10719. void SetInterceptNetworkUpdate(const String&, bool);
  10720. IntVector2 WorldToHeightMap(const Vector3&) const;
  10721. // Properties:
  10722. bool animationEnabled;
  10723. /* readonly */
  10724. Array<Variant> attributeDefaults;
  10725. /* readonly */
  10726. Array<AttributeInfo> attributeInfos;
  10727. Array<Variant> attributes;
  10728. bool castShadows;
  10729. /* readonly */
  10730. String category;
  10731. float drawDistance;
  10732. bool enabled;
  10733. /* readonly */
  10734. bool enabledEffective;
  10735. Image heightMap;
  10736. /* readonly */
  10737. uint id;
  10738. uint lightMask;
  10739. float lodBias;
  10740. Material material;
  10741. uint maxLights;
  10742. uint maxLodLevels;
  10743. /* readonly */
  10744. Node node;
  10745. /* readonly */
  10746. uint numAttributes;
  10747. /* readonly */
  10748. IntVector2 numPatches;
  10749. /* readonly */
  10750. IntVector2 numVertices;
  10751. ObjectAnimation objectAnimation;
  10752. bool occludee;
  10753. bool occluder;
  10754. uint occlusionLodLevel;
  10755. int patchSize;
  10756. /* readonly */
  10757. Array<TerrainPatch> patches;
  10758. /* readonly */
  10759. int refs;
  10760. float shadowDistance;
  10761. uint shadowMask;
  10762. bool smoothing;
  10763. Vector3 spacing;
  10764. bool temporary;
  10765. /* readonly */
  10766. StringHash type;
  10767. /* readonly */
  10768. String typeName;
  10769. uint viewMask;
  10770. /* readonly */
  10771. int weakRefs;
  10772. uint zoneMask;
  10773. };
  10774. class TerrainPatch
  10775. {
  10776. // Methods:
  10777. void ApplyAttributes();
  10778. void DrawDebugGeometry(DebugRenderer, bool);
  10779. Variant GetAttribute(const String&) const;
  10780. ValueAnimation GetAttributeAnimation(const String&) const;
  10781. float GetAttributeAnimationSpeed(const String&) const;
  10782. float GetAttributeAnimationTime(const String&) const;
  10783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10784. Variant GetAttributeDefault(const String&) const;
  10785. bool GetInterceptNetworkUpdate(const String&) const;
  10786. bool HasSubscribedToEvent(Object, const String&);
  10787. bool HasSubscribedToEvent(const String&);
  10788. bool IsInView(Camera) const;
  10789. bool Load(File, bool = false);
  10790. bool Load(VectorBuffer&, bool = false);
  10791. bool LoadJSON(const JSONValue&, bool = false);
  10792. bool LoadXML(const XMLElement&, bool = false);
  10793. void MarkNetworkUpdate() const;
  10794. void Remove();
  10795. void RemoveAttributeAnimation(const String&);
  10796. void RemoveInstanceDefault();
  10797. void RemoveObjectAnimation();
  10798. void ResetToDefault();
  10799. bool Save(File) const;
  10800. bool Save(VectorBuffer&) const;
  10801. bool SaveJSON(JSONValue&) const;
  10802. bool SaveXML(XMLElement&) const;
  10803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10804. void SetAnimationTime(float);
  10805. bool SetAttribute(const String&, const Variant&);
  10806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10807. void SetAttributeAnimationSpeed(const String&, float);
  10808. void SetAttributeAnimationTime(const String&, float);
  10809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10810. void SetInterceptNetworkUpdate(const String&, bool);
  10811. // Properties:
  10812. bool animationEnabled;
  10813. /* readonly */
  10814. Array<Variant> attributeDefaults;
  10815. /* readonly */
  10816. Array<AttributeInfo> attributeInfos;
  10817. Array<Variant> attributes;
  10818. /* readonly */
  10819. BoundingBox boundingBox;
  10820. bool castShadows;
  10821. /* readonly */
  10822. String category;
  10823. float drawDistance;
  10824. bool enabled;
  10825. /* readonly */
  10826. bool enabledEffective;
  10827. /* readonly */
  10828. uint id;
  10829. /* readonly */
  10830. bool inView;
  10831. uint lightMask;
  10832. float lodBias;
  10833. uint maxLights;
  10834. /* readonly */
  10835. Node node;
  10836. /* readonly */
  10837. uint numAttributes;
  10838. ObjectAnimation objectAnimation;
  10839. bool occludee;
  10840. bool occluder;
  10841. /* readonly */
  10842. int refs;
  10843. float shadowDistance;
  10844. uint shadowMask;
  10845. bool temporary;
  10846. /* readonly */
  10847. StringHash type;
  10848. /* readonly */
  10849. String typeName;
  10850. uint viewMask;
  10851. /* readonly */
  10852. int weakRefs;
  10853. /* readonly */
  10854. BoundingBox worldBoundingBox;
  10855. uint zoneMask;
  10856. };
  10857. class Text
  10858. {
  10859. // Methods:
  10860. void AddChild(UIElement);
  10861. void AddTag(const String&);
  10862. void AddTags(const String&, int8 = ';');
  10863. void ApplyAttributes();
  10864. void BringToFront();
  10865. void ClearSelection();
  10866. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10867. void DisableLayoutUpdate();
  10868. IntVector2 ElementToScreen(const IntVector2&);
  10869. void EnableLayoutUpdate();
  10870. uint FindChild(UIElement) const;
  10871. Variant GetAttribute(const String&) const;
  10872. ValueAnimation GetAttributeAnimation(const String&) const;
  10873. float GetAttributeAnimationSpeed(const String&) const;
  10874. float GetAttributeAnimationTime(const String&) const;
  10875. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10876. Variant GetAttributeDefault(const String&) const;
  10877. UIElement GetChild(const String&, bool = false) const;
  10878. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10879. Array<UIElement> GetChildren(bool = false) const;
  10880. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10881. UIElement GetElementEventSender() const;
  10882. bool GetInterceptNetworkUpdate(const String&) const;
  10883. uint GetNumChildren(bool) const;
  10884. bool HasSubscribedToEvent(Object, const String&);
  10885. bool HasSubscribedToEvent(const String&);
  10886. bool HasTag(const String&) const;
  10887. void InsertChild(uint, UIElement);
  10888. bool IsInside(IntVector2, bool);
  10889. bool IsInsideCombined(IntVector2, bool);
  10890. bool Load(File, bool = false);
  10891. bool Load(VectorBuffer&, bool = false);
  10892. bool LoadChildXML(XMLFile, XMLFile = null);
  10893. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10894. bool LoadJSON(const JSONValue&, bool = false);
  10895. bool LoadXML(File);
  10896. bool LoadXML(VectorBuffer&);
  10897. bool LoadXML(XMLFile, XMLFile);
  10898. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10899. bool LoadXML(const XMLElement&, bool = false);
  10900. void MarkNetworkUpdate() const;
  10901. void Remove();
  10902. void RemoveAllChildren();
  10903. void RemoveAllTags();
  10904. void RemoveAttributeAnimation(const String&);
  10905. void RemoveChild(UIElement, uint = 0);
  10906. void RemoveChild(uint);
  10907. void RemoveInstanceDefault();
  10908. void RemoveObjectAnimation();
  10909. bool RemoveTag(const String&);
  10910. void ResetDeepEnabled();
  10911. void ResetToDefault();
  10912. bool Save(File) const;
  10913. bool Save(VectorBuffer&) const;
  10914. bool SaveJSON(JSONValue&) const;
  10915. bool SaveXML(File, const String& = "\t");
  10916. bool SaveXML(VectorBuffer&, const String& = "\t");
  10917. bool SaveXML(XMLElement&) const;
  10918. IntVector2 ScreenToElement(const IntVector2&);
  10919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10920. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10921. void SetAnimationTime(float);
  10922. bool SetAttribute(const String&, const Variant&);
  10923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10924. void SetAttributeAnimationSpeed(const String&, float);
  10925. void SetAttributeAnimationTime(const String&, float);
  10926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10927. void SetDeepEnabled(bool);
  10928. void SetEnabledRecursive(bool);
  10929. void SetFixedHeight(int);
  10930. void SetFixedSize(int, int);
  10931. void SetFixedWidth(int);
  10932. bool SetFont(Font, int);
  10933. bool SetFont(const String&, int);
  10934. void SetInterceptNetworkUpdate(const String&, bool);
  10935. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10936. void SetMaxSize(int, int);
  10937. void SetMinSize(int, int);
  10938. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10939. void SetPosition(int, int);
  10940. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10941. void SetSize(int, int);
  10942. bool SetStyle(const String&, XMLFile = null);
  10943. bool SetStyle(const XMLElement&);
  10944. bool SetStyleAuto(XMLFile = null);
  10945. void UpdateLayout();
  10946. const Variant& GetVar(const StringHash&);
  10947. // Properties:
  10948. bool animationEnabled;
  10949. /* readonly */
  10950. Array<Variant> attributeDefaults;
  10951. /* readonly */
  10952. Array<AttributeInfo> attributeInfos;
  10953. Array<Variant> attributes;
  10954. bool autoLocalizable;
  10955. bool bringToBack;
  10956. bool bringToFront;
  10957. /* readonly */
  10958. String category;
  10959. /* readonly */
  10960. Array<IntVector2> charPositions;
  10961. /* readonly */
  10962. Array<IntVector2> charSizes;
  10963. /* readonly */
  10964. IntVector2 childOffset;
  10965. /* readonly */
  10966. Array<UIElement> children;
  10967. IntRect clipBorder;
  10968. bool clipChildren;
  10969. /* writeonly */
  10970. Color color;
  10971. /* readonly */
  10972. bool colorGradient;
  10973. Array<Color> colors;
  10974. /* readonly */
  10975. IntRect combinedScreenRect;
  10976. XMLFile defaultStyle;
  10977. /* readonly */
  10978. float derivedOpacity;
  10979. /* readonly */
  10980. uint dragButtonCombo;
  10981. /* readonly */
  10982. int dragButtonCount;
  10983. uint dragDropMode;
  10984. bool editable;
  10985. Color effectColor;
  10986. bool elementEventSender;
  10987. bool enabled;
  10988. /* readonly */
  10989. bool enabledSelf;
  10990. /* readonly */
  10991. bool fixedHeight;
  10992. /* readonly */
  10993. bool fixedSize;
  10994. /* readonly */
  10995. bool fixedWidth;
  10996. bool focus;
  10997. FocusMode focusMode;
  10998. /* readonly */
  10999. Font font;
  11000. /* readonly */
  11001. int fontSize;
  11002. int height;
  11003. HorizontalAlignment horizontalAlignment;
  11004. Color hoverColor;
  11005. /* readonly */
  11006. bool hovering;
  11007. int indent;
  11008. int indentSpacing;
  11009. /* readonly */
  11010. int indentWidth;
  11011. bool internal;
  11012. IntRect layoutBorder;
  11013. Vector2 layoutFlexScale;
  11014. LayoutMode layoutMode;
  11015. int layoutSpacing;
  11016. int maxHeight;
  11017. IntVector2 maxSize;
  11018. int maxWidth;
  11019. int minHeight;
  11020. IntVector2 minSize;
  11021. int minWidth;
  11022. String name;
  11023. /* readonly */
  11024. uint numAllChildren;
  11025. /* readonly */
  11026. uint numAttributes;
  11027. /* readonly */
  11028. uint numChars;
  11029. /* readonly */
  11030. uint numChildren;
  11031. /* readonly */
  11032. uint numRows;
  11033. ObjectAnimation objectAnimation;
  11034. float opacity;
  11035. UIElement parent;
  11036. IntVector2 position;
  11037. int priority;
  11038. /* readonly */
  11039. int refs;
  11040. /* readonly */
  11041. UIElement root;
  11042. /* readonly */
  11043. int rowHeight;
  11044. float rowSpacing;
  11045. /* readonly */
  11046. Array<int> rowWidths;
  11047. /* readonly */
  11048. IntVector2 screenPosition;
  11049. bool selected;
  11050. Color selectionColor;
  11051. /* readonly */
  11052. uint selectionLength;
  11053. /* readonly */
  11054. uint selectionStart;
  11055. IntVector2 size;
  11056. bool sortChildren;
  11057. String style;
  11058. /* readonly */
  11059. Array<String> tags;
  11060. bool temporary;
  11061. String text;
  11062. HorizontalAlignment textAlignment;
  11063. TextEffect textEffect;
  11064. TraversalMode traversalMode;
  11065. /* readonly */
  11066. StringHash type;
  11067. /* readonly */
  11068. String typeName;
  11069. bool useDerivedOpacity;
  11070. /* readonly */
  11071. VariantMap vars;
  11072. VerticalAlignment verticalAlignment;
  11073. bool visible;
  11074. /* readonly */
  11075. bool visibleEffective;
  11076. /* readonly */
  11077. int weakRefs;
  11078. int width;
  11079. bool wordwrap;
  11080. };
  11081. class Text3D
  11082. {
  11083. // Methods:
  11084. void ApplyAttributes();
  11085. void DrawDebugGeometry(DebugRenderer, bool);
  11086. Variant GetAttribute(const String&) const;
  11087. ValueAnimation GetAttributeAnimation(const String&) const;
  11088. float GetAttributeAnimationSpeed(const String&) const;
  11089. float GetAttributeAnimationTime(const String&) const;
  11090. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11091. Variant GetAttributeDefault(const String&) const;
  11092. bool GetInterceptNetworkUpdate(const String&) const;
  11093. bool HasSubscribedToEvent(Object, const String&);
  11094. bool HasSubscribedToEvent(const String&);
  11095. bool IsInView(Camera) const;
  11096. bool Load(File, bool = false);
  11097. bool Load(VectorBuffer&, bool = false);
  11098. bool LoadJSON(const JSONValue&, bool = false);
  11099. bool LoadXML(const XMLElement&, bool = false);
  11100. void MarkNetworkUpdate() const;
  11101. void Remove();
  11102. void RemoveAttributeAnimation(const String&);
  11103. void RemoveInstanceDefault();
  11104. void RemoveObjectAnimation();
  11105. void ResetToDefault();
  11106. bool Save(File) const;
  11107. bool Save(VectorBuffer&) const;
  11108. bool SaveJSON(JSONValue&) const;
  11109. bool SaveXML(XMLElement&) const;
  11110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11111. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11112. void SetAnimationTime(float);
  11113. bool SetAttribute(const String&, const Variant&);
  11114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11115. void SetAttributeAnimationSpeed(const String&, float);
  11116. void SetAttributeAnimationTime(const String&, float);
  11117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11118. bool SetFont(Font, int);
  11119. bool SetFont(const String&, int);
  11120. void SetInterceptNetworkUpdate(const String&, bool);
  11121. // Properties:
  11122. bool animationEnabled;
  11123. /* readonly */
  11124. Array<Variant> attributeDefaults;
  11125. /* readonly */
  11126. Array<AttributeInfo> attributeInfos;
  11127. Array<Variant> attributes;
  11128. /* readonly */
  11129. BoundingBox boundingBox;
  11130. bool castShadows;
  11131. /* readonly */
  11132. String category;
  11133. /* readonly */
  11134. Array<IntVector2> charPositions;
  11135. /* readonly */
  11136. Array<IntVector2> charSizes;
  11137. /* writeonly */
  11138. Color color;
  11139. Array<Color> colors;
  11140. float drawDistance;
  11141. Color effectColor;
  11142. float effectDepthBias;
  11143. bool enabled;
  11144. /* readonly */
  11145. bool enabledEffective;
  11146. FaceCameraMode faceCameraMode;
  11147. /* readonly */
  11148. Font font;
  11149. /* readonly */
  11150. int fontSize;
  11151. HorizontalAlignment horizontalAlignment;
  11152. /* readonly */
  11153. uint id;
  11154. /* readonly */
  11155. bool inView;
  11156. uint lightMask;
  11157. float lodBias;
  11158. Material material;
  11159. uint maxLights;
  11160. /* readonly */
  11161. Node node;
  11162. /* readonly */
  11163. uint numAttributes;
  11164. /* readonly */
  11165. uint numChars;
  11166. /* readonly */
  11167. uint numRows;
  11168. ObjectAnimation objectAnimation;
  11169. bool occludee;
  11170. bool occluder;
  11171. float opacity;
  11172. /* readonly */
  11173. int refs;
  11174. /* readonly */
  11175. int rowHeight;
  11176. float rowSpacing;
  11177. /* readonly */
  11178. Array<int> rowWidths;
  11179. float shadowDistance;
  11180. uint shadowMask;
  11181. bool temporary;
  11182. String text;
  11183. HorizontalAlignment textAlignment;
  11184. TextEffect textEffect;
  11185. /* readonly */
  11186. StringHash type;
  11187. /* readonly */
  11188. String typeName;
  11189. VerticalAlignment verticalAlignment;
  11190. uint viewMask;
  11191. /* readonly */
  11192. int weakRefs;
  11193. int width;
  11194. bool wordwrap;
  11195. /* readonly */
  11196. BoundingBox worldBoundingBox;
  11197. uint zoneMask;
  11198. };
  11199. class Texture
  11200. {
  11201. // Methods:
  11202. void ClearDataLost();
  11203. bool HasSubscribedToEvent(Object, const String&);
  11204. bool HasSubscribedToEvent(const String&);
  11205. bool Load(File);
  11206. bool Load(VectorBuffer&);
  11207. bool Save(File) const;
  11208. bool Save(VectorBuffer&) const;
  11209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11210. void SetNumLevels(uint);
  11211. // Properties:
  11212. Array<TextureAddressMode> addressMode;
  11213. Texture backupTexture;
  11214. Color borderColor;
  11215. /* readonly */
  11216. String category;
  11217. /* readonly */
  11218. uint components;
  11219. /* readonly */
  11220. bool compressed;
  11221. /* readonly */
  11222. bool dataLost;
  11223. TextureFilterMode filterMode;
  11224. /* readonly */
  11225. uint format;
  11226. /* readonly */
  11227. int height;
  11228. /* readonly */
  11229. Array<int> levelHeight;
  11230. /* readonly */
  11231. Array<int> levelWidth;
  11232. /* readonly */
  11233. uint levels;
  11234. /* readonly */
  11235. uint memoryUse;
  11236. Array<int> mipsToSkip;
  11237. String name;
  11238. /* readonly */
  11239. int refs;
  11240. bool sRGB;
  11241. /* readonly */
  11242. StringHash type;
  11243. /* readonly */
  11244. String typeName;
  11245. /* readonly */
  11246. TextureUsage usage;
  11247. /* readonly */
  11248. uint useTimer;
  11249. /* readonly */
  11250. int weakRefs;
  11251. /* readonly */
  11252. int width;
  11253. };
  11254. class Texture2D
  11255. {
  11256. // Methods:
  11257. void ClearDataLost();
  11258. Image GetImage() const;
  11259. bool HasSubscribedToEvent(Object, const String&);
  11260. bool HasSubscribedToEvent(const String&);
  11261. bool Load(File);
  11262. bool Load(VectorBuffer&);
  11263. bool Save(File) const;
  11264. bool Save(VectorBuffer&) const;
  11265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11266. bool SetData(Image, bool = false);
  11267. void SetNumLevels(uint);
  11268. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11269. // Properties:
  11270. Array<TextureAddressMode> addressMode;
  11271. Texture backupTexture;
  11272. Color borderColor;
  11273. /* readonly */
  11274. String category;
  11275. /* readonly */
  11276. uint components;
  11277. /* readonly */
  11278. bool compressed;
  11279. /* readonly */
  11280. bool dataLost;
  11281. TextureFilterMode filterMode;
  11282. /* readonly */
  11283. uint format;
  11284. /* readonly */
  11285. int height;
  11286. /* readonly */
  11287. Array<int> levelHeight;
  11288. /* readonly */
  11289. Array<int> levelWidth;
  11290. /* readonly */
  11291. uint levels;
  11292. /* readonly */
  11293. uint memoryUse;
  11294. Array<int> mipsToSkip;
  11295. String name;
  11296. /* readonly */
  11297. int refs;
  11298. /* readonly */
  11299. RenderSurface renderSurface;
  11300. bool sRGB;
  11301. /* readonly */
  11302. StringHash type;
  11303. /* readonly */
  11304. String typeName;
  11305. /* readonly */
  11306. TextureUsage usage;
  11307. /* readonly */
  11308. uint useTimer;
  11309. /* readonly */
  11310. int weakRefs;
  11311. /* readonly */
  11312. int width;
  11313. };
  11314. class Texture2DArray
  11315. {
  11316. // Methods:
  11317. void ClearDataLost();
  11318. bool HasSubscribedToEvent(Object, const String&);
  11319. bool HasSubscribedToEvent(const String&);
  11320. bool Load(File);
  11321. bool Load(VectorBuffer&);
  11322. bool Save(File) const;
  11323. bool Save(VectorBuffer&) const;
  11324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11325. bool SetData(uint, Image, bool = false);
  11326. void SetNumLevels(uint);
  11327. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11328. // Properties:
  11329. Array<TextureAddressMode> addressMode;
  11330. Texture backupTexture;
  11331. Color borderColor;
  11332. /* readonly */
  11333. String category;
  11334. /* readonly */
  11335. uint components;
  11336. /* readonly */
  11337. bool compressed;
  11338. /* readonly */
  11339. bool dataLost;
  11340. TextureFilterMode filterMode;
  11341. /* readonly */
  11342. uint format;
  11343. /* readonly */
  11344. int height;
  11345. uint layers;
  11346. /* readonly */
  11347. Array<int> levelHeight;
  11348. /* readonly */
  11349. Array<int> levelWidth;
  11350. /* readonly */
  11351. uint levels;
  11352. /* readonly */
  11353. uint memoryUse;
  11354. Array<int> mipsToSkip;
  11355. String name;
  11356. /* readonly */
  11357. int refs;
  11358. /* readonly */
  11359. RenderSurface renderSurface;
  11360. bool sRGB;
  11361. /* readonly */
  11362. StringHash type;
  11363. /* readonly */
  11364. String typeName;
  11365. /* readonly */
  11366. TextureUsage usage;
  11367. /* readonly */
  11368. uint useTimer;
  11369. /* readonly */
  11370. int weakRefs;
  11371. /* readonly */
  11372. int width;
  11373. };
  11374. class Texture3D
  11375. {
  11376. // Methods:
  11377. void ClearDataLost();
  11378. bool HasSubscribedToEvent(Object, const String&);
  11379. bool HasSubscribedToEvent(const String&);
  11380. bool Load(File);
  11381. bool Load(VectorBuffer&);
  11382. bool Save(File) const;
  11383. bool Save(VectorBuffer&) const;
  11384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11385. bool SetData(Image, bool = false);
  11386. void SetNumLevels(uint);
  11387. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11388. // Properties:
  11389. Array<TextureAddressMode> addressMode;
  11390. Texture backupTexture;
  11391. Color borderColor;
  11392. /* readonly */
  11393. String category;
  11394. /* readonly */
  11395. uint components;
  11396. /* readonly */
  11397. bool compressed;
  11398. /* readonly */
  11399. bool dataLost;
  11400. TextureFilterMode filterMode;
  11401. /* readonly */
  11402. uint format;
  11403. /* readonly */
  11404. int height;
  11405. /* readonly */
  11406. Array<int> levelHeight;
  11407. /* readonly */
  11408. Array<int> levelWidth;
  11409. /* readonly */
  11410. uint levels;
  11411. /* readonly */
  11412. uint memoryUse;
  11413. Array<int> mipsToSkip;
  11414. String name;
  11415. /* readonly */
  11416. int refs;
  11417. bool sRGB;
  11418. /* readonly */
  11419. StringHash type;
  11420. /* readonly */
  11421. String typeName;
  11422. /* readonly */
  11423. TextureUsage usage;
  11424. /* readonly */
  11425. uint useTimer;
  11426. /* readonly */
  11427. int weakRefs;
  11428. /* readonly */
  11429. int width;
  11430. };
  11431. class TextureCube
  11432. {
  11433. // Methods:
  11434. void ClearDataLost();
  11435. Image GetImage(CubeMapFace) const;
  11436. bool HasSubscribedToEvent(Object, const String&);
  11437. bool HasSubscribedToEvent(const String&);
  11438. bool Load(File);
  11439. bool Load(VectorBuffer&);
  11440. bool Save(File) const;
  11441. bool Save(VectorBuffer&) const;
  11442. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11443. bool SetData(CubeMapFace, Image, bool = false);
  11444. void SetNumLevels(uint);
  11445. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11446. // Properties:
  11447. Array<TextureAddressMode> addressMode;
  11448. Texture backupTexture;
  11449. Color borderColor;
  11450. /* readonly */
  11451. String category;
  11452. /* readonly */
  11453. uint components;
  11454. /* readonly */
  11455. bool compressed;
  11456. /* readonly */
  11457. bool dataLost;
  11458. TextureFilterMode filterMode;
  11459. /* readonly */
  11460. uint format;
  11461. /* readonly */
  11462. int height;
  11463. /* readonly */
  11464. Array<int> levelHeight;
  11465. /* readonly */
  11466. Array<int> levelWidth;
  11467. /* readonly */
  11468. uint levels;
  11469. /* readonly */
  11470. uint memoryUse;
  11471. Array<int> mipsToSkip;
  11472. String name;
  11473. /* readonly */
  11474. int refs;
  11475. /* readonly */
  11476. Array<RenderSurface> renderSurfaces;
  11477. bool sRGB;
  11478. /* readonly */
  11479. StringHash type;
  11480. /* readonly */
  11481. String typeName;
  11482. /* readonly */
  11483. TextureUsage usage;
  11484. /* readonly */
  11485. uint useTimer;
  11486. /* readonly */
  11487. int weakRefs;
  11488. /* readonly */
  11489. int width;
  11490. };
  11491. class TextureFrame
  11492. {
  11493. // Properties:
  11494. float time;
  11495. Rect uv;
  11496. };
  11497. class Tile2D
  11498. {
  11499. // Methods:
  11500. bool HasProperty(const String&) const;
  11501. const String& GetProperty(const String&) const;
  11502. // Properties:
  11503. /* readonly */
  11504. int gid;
  11505. /* readonly */
  11506. int refs;
  11507. /* readonly */
  11508. Sprite2D sprite;
  11509. /* readonly */
  11510. int weakRefs;
  11511. };
  11512. class TileMap2D
  11513. {
  11514. // Methods:
  11515. void ApplyAttributes();
  11516. void DrawDebugGeometry(DebugRenderer, bool);
  11517. Variant GetAttribute(const String&) const;
  11518. ValueAnimation GetAttributeAnimation(const String&) const;
  11519. float GetAttributeAnimationSpeed(const String&) const;
  11520. float GetAttributeAnimationTime(const String&) const;
  11521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11522. Variant GetAttributeDefault(const String&) const;
  11523. bool GetInterceptNetworkUpdate(const String&) const;
  11524. TileMapLayer2D GetLayer(uint) const;
  11525. bool HasSubscribedToEvent(Object, const String&);
  11526. bool HasSubscribedToEvent(const String&);
  11527. bool Load(File, bool = false);
  11528. bool Load(VectorBuffer&, bool = false);
  11529. bool LoadJSON(const JSONValue&, bool = false);
  11530. bool LoadXML(const XMLElement&, bool = false);
  11531. void MarkNetworkUpdate() const;
  11532. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11533. void Remove();
  11534. void RemoveAttributeAnimation(const String&);
  11535. void RemoveInstanceDefault();
  11536. void RemoveObjectAnimation();
  11537. void ResetToDefault();
  11538. bool Save(File) const;
  11539. bool Save(VectorBuffer&) const;
  11540. bool SaveJSON(JSONValue&) const;
  11541. bool SaveXML(XMLElement&) const;
  11542. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11543. void SetAnimationTime(float);
  11544. bool SetAttribute(const String&, const Variant&);
  11545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11546. void SetAttributeAnimationSpeed(const String&, float);
  11547. void SetAttributeAnimationTime(const String&, float);
  11548. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11549. void SetInterceptNetworkUpdate(const String&, bool);
  11550. Vector2 TileIndexToPosition(int, int) const;
  11551. // Properties:
  11552. bool animationEnabled;
  11553. /* readonly */
  11554. Array<Variant> attributeDefaults;
  11555. /* readonly */
  11556. Array<AttributeInfo> attributeInfos;
  11557. Array<Variant> attributes;
  11558. /* readonly */
  11559. String category;
  11560. bool enabled;
  11561. /* readonly */
  11562. bool enabledEffective;
  11563. /* readonly */
  11564. uint id;
  11565. /* readonly */
  11566. TileMapInfo2D info;
  11567. /* readonly */
  11568. Node node;
  11569. /* readonly */
  11570. uint numAttributes;
  11571. /* readonly */
  11572. uint numLayers;
  11573. ObjectAnimation objectAnimation;
  11574. /* readonly */
  11575. int refs;
  11576. bool temporary;
  11577. TmxFile2D tmxFile;
  11578. /* readonly */
  11579. StringHash type;
  11580. /* readonly */
  11581. String typeName;
  11582. /* readonly */
  11583. int weakRefs;
  11584. };
  11585. class TileMapInfo2D
  11586. {
  11587. // Properties:
  11588. int height;
  11589. /* readonly */
  11590. float mapHeight;
  11591. /* readonly */
  11592. float mapWidth;
  11593. Orientation2D orientation;
  11594. float tileHeight;
  11595. float tileWidth;
  11596. int width;
  11597. };
  11598. class TileMapLayer2D
  11599. {
  11600. // Methods:
  11601. void ApplyAttributes();
  11602. void DrawDebugGeometry(DebugRenderer, bool);
  11603. Variant GetAttribute(const String&) const;
  11604. ValueAnimation GetAttributeAnimation(const String&) const;
  11605. float GetAttributeAnimationSpeed(const String&) const;
  11606. float GetAttributeAnimationTime(const String&) const;
  11607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11608. Variant GetAttributeDefault(const String&) const;
  11609. bool GetInterceptNetworkUpdate(const String&) const;
  11610. TileMapObject2D GetObject(uint) const;
  11611. Node GetObjectNode(uint) const;
  11612. Tile2D GetTile(int, int) const;
  11613. Node GetTileNode(int, int) const;
  11614. bool HasProperty(const String&) const;
  11615. bool HasSubscribedToEvent(Object, const String&);
  11616. bool HasSubscribedToEvent(const String&);
  11617. bool Load(File, bool = false);
  11618. bool Load(VectorBuffer&, bool = false);
  11619. bool LoadJSON(const JSONValue&, bool = false);
  11620. bool LoadXML(const XMLElement&, bool = false);
  11621. void MarkNetworkUpdate() const;
  11622. void Remove();
  11623. void RemoveAttributeAnimation(const String&);
  11624. void RemoveInstanceDefault();
  11625. void RemoveObjectAnimation();
  11626. void ResetToDefault();
  11627. bool Save(File) const;
  11628. bool Save(VectorBuffer&) const;
  11629. bool SaveJSON(JSONValue&) const;
  11630. bool SaveXML(XMLElement&) const;
  11631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11632. void SetAnimationTime(float);
  11633. bool SetAttribute(const String&, const Variant&);
  11634. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11635. void SetAttributeAnimationSpeed(const String&, float);
  11636. void SetAttributeAnimationTime(const String&, float);
  11637. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11638. void SetInterceptNetworkUpdate(const String&, bool);
  11639. const String& GetProperty(const String&) const;
  11640. // Properties:
  11641. bool animationEnabled;
  11642. /* readonly */
  11643. Array<Variant> attributeDefaults;
  11644. /* readonly */
  11645. Array<AttributeInfo> attributeInfos;
  11646. Array<Variant> attributes;
  11647. /* readonly */
  11648. String category;
  11649. int drawOrder;
  11650. bool enabled;
  11651. /* readonly */
  11652. bool enabledEffective;
  11653. /* readonly */
  11654. int height;
  11655. /* readonly */
  11656. uint id;
  11657. /* readonly */
  11658. Node imageNode;
  11659. /* readonly */
  11660. TileMapLayerType2D layerType;
  11661. /* readonly */
  11662. Node node;
  11663. /* readonly */
  11664. uint numAttributes;
  11665. /* readonly */
  11666. uint numObjects;
  11667. ObjectAnimation objectAnimation;
  11668. /* readonly */
  11669. int refs;
  11670. bool temporary;
  11671. /* readonly */
  11672. StringHash type;
  11673. /* readonly */
  11674. String typeName;
  11675. bool visible;
  11676. /* readonly */
  11677. int weakRefs;
  11678. /* readonly */
  11679. int width;
  11680. };
  11681. class TileMapObject2D
  11682. {
  11683. // Methods:
  11684. bool HasProperty(const String&) const;
  11685. const String& GetProperty(const String&) const;
  11686. const Vector2& GetPoint(uint) const;
  11687. // Properties:
  11688. /* readonly */
  11689. String name;
  11690. /* readonly */
  11691. uint numPoints;
  11692. /* readonly */
  11693. TileObjectType2D objectType;
  11694. /* readonly */
  11695. Vector2 position;
  11696. /* readonly */
  11697. int refs;
  11698. /* readonly */
  11699. Vector2 size;
  11700. /* readonly */
  11701. int tileGid;
  11702. /* readonly */
  11703. Sprite2D tileSprite;
  11704. /* readonly */
  11705. String type;
  11706. /* readonly */
  11707. int weakRefs;
  11708. };
  11709. class Time
  11710. {
  11711. // Methods:
  11712. bool HasSubscribedToEvent(Object, const String&);
  11713. bool HasSubscribedToEvent(const String&);
  11714. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11715. // Properties:
  11716. /* readonly */
  11717. String category;
  11718. /* readonly */
  11719. float elapsedTime;
  11720. /* readonly */
  11721. uint frameNumber;
  11722. /* readonly */
  11723. int refs;
  11724. /* readonly */
  11725. uint systemTime;
  11726. /* readonly */
  11727. uint timeSinceEpoch;
  11728. /* readonly */
  11729. String timeStamp;
  11730. /* readonly */
  11731. float timeStep;
  11732. /* readonly */
  11733. StringHash type;
  11734. /* readonly */
  11735. String typeName;
  11736. /* readonly */
  11737. int weakRefs;
  11738. };
  11739. class Timer
  11740. {
  11741. // Methods:
  11742. uint GetMSec(bool);
  11743. void Reset();
  11744. };
  11745. class TmxFile2D
  11746. {
  11747. // Methods:
  11748. bool HasSubscribedToEvent(Object, const String&);
  11749. bool HasSubscribedToEvent(const String&);
  11750. bool Load(File);
  11751. bool Load(VectorBuffer&);
  11752. bool Save(File) const;
  11753. bool Save(VectorBuffer&) const;
  11754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11755. // Properties:
  11756. /* readonly */
  11757. String category;
  11758. /* readonly */
  11759. uint memoryUse;
  11760. String name;
  11761. /* readonly */
  11762. int refs;
  11763. /* readonly */
  11764. StringHash type;
  11765. /* readonly */
  11766. String typeName;
  11767. /* readonly */
  11768. uint useTimer;
  11769. /* readonly */
  11770. int weakRefs;
  11771. };
  11772. class ToolTip
  11773. {
  11774. // Methods:
  11775. void AddChild(UIElement);
  11776. void AddTag(const String&);
  11777. void AddTags(const String&, int8 = ';');
  11778. void ApplyAttributes();
  11779. void BringToFront();
  11780. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11781. void DisableLayoutUpdate();
  11782. IntVector2 ElementToScreen(const IntVector2&);
  11783. void EnableLayoutUpdate();
  11784. uint FindChild(UIElement) const;
  11785. Variant GetAttribute(const String&) const;
  11786. ValueAnimation GetAttributeAnimation(const String&) const;
  11787. float GetAttributeAnimationSpeed(const String&) const;
  11788. float GetAttributeAnimationTime(const String&) const;
  11789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11790. Variant GetAttributeDefault(const String&) const;
  11791. UIElement GetChild(const String&, bool = false) const;
  11792. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11793. Array<UIElement> GetChildren(bool = false) const;
  11794. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11795. UIElement GetElementEventSender() const;
  11796. bool GetInterceptNetworkUpdate(const String&) const;
  11797. uint GetNumChildren(bool) const;
  11798. bool HasSubscribedToEvent(Object, const String&);
  11799. bool HasSubscribedToEvent(const String&);
  11800. bool HasTag(const String&) const;
  11801. void InsertChild(uint, UIElement);
  11802. bool IsInside(IntVector2, bool);
  11803. bool IsInsideCombined(IntVector2, bool);
  11804. bool Load(File, bool = false);
  11805. bool Load(VectorBuffer&, bool = false);
  11806. bool LoadChildXML(XMLFile, XMLFile = null);
  11807. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11808. bool LoadJSON(const JSONValue&, bool = false);
  11809. bool LoadXML(File);
  11810. bool LoadXML(VectorBuffer&);
  11811. bool LoadXML(XMLFile, XMLFile);
  11812. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11813. bool LoadXML(const XMLElement&, bool = false);
  11814. void MarkNetworkUpdate() const;
  11815. void Remove();
  11816. void RemoveAllChildren();
  11817. void RemoveAllTags();
  11818. void RemoveAttributeAnimation(const String&);
  11819. void RemoveChild(UIElement, uint = 0);
  11820. void RemoveChild(uint);
  11821. void RemoveInstanceDefault();
  11822. void RemoveObjectAnimation();
  11823. bool RemoveTag(const String&);
  11824. void ResetDeepEnabled();
  11825. void ResetToDefault();
  11826. bool Save(File) const;
  11827. bool Save(VectorBuffer&) const;
  11828. bool SaveJSON(JSONValue&) const;
  11829. bool SaveXML(File, const String& = "\t");
  11830. bool SaveXML(VectorBuffer&, const String& = "\t");
  11831. bool SaveXML(XMLElement&) const;
  11832. IntVector2 ScreenToElement(const IntVector2&);
  11833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11834. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11835. void SetAnimationTime(float);
  11836. bool SetAttribute(const String&, const Variant&);
  11837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11838. void SetAttributeAnimationSpeed(const String&, float);
  11839. void SetAttributeAnimationTime(const String&, float);
  11840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11841. void SetDeepEnabled(bool);
  11842. void SetEnabledRecursive(bool);
  11843. void SetFixedHeight(int);
  11844. void SetFixedSize(int, int);
  11845. void SetFixedWidth(int);
  11846. void SetInterceptNetworkUpdate(const String&, bool);
  11847. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11848. void SetMaxSize(int, int);
  11849. void SetMinSize(int, int);
  11850. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11851. void SetPosition(int, int);
  11852. void SetSize(int, int);
  11853. bool SetStyle(const String&, XMLFile = null);
  11854. bool SetStyle(const XMLElement&);
  11855. bool SetStyleAuto(XMLFile = null);
  11856. void UpdateLayout();
  11857. const Variant& GetVar(const StringHash&);
  11858. // Properties:
  11859. bool animationEnabled;
  11860. /* readonly */
  11861. Array<Variant> attributeDefaults;
  11862. /* readonly */
  11863. Array<AttributeInfo> attributeInfos;
  11864. Array<Variant> attributes;
  11865. bool bringToBack;
  11866. bool bringToFront;
  11867. /* readonly */
  11868. String category;
  11869. /* readonly */
  11870. IntVector2 childOffset;
  11871. /* readonly */
  11872. Array<UIElement> children;
  11873. IntRect clipBorder;
  11874. bool clipChildren;
  11875. /* writeonly */
  11876. Color color;
  11877. /* readonly */
  11878. bool colorGradient;
  11879. Array<Color> colors;
  11880. /* readonly */
  11881. IntRect combinedScreenRect;
  11882. XMLFile defaultStyle;
  11883. float delay;
  11884. /* readonly */
  11885. float derivedOpacity;
  11886. /* readonly */
  11887. uint dragButtonCombo;
  11888. /* readonly */
  11889. int dragButtonCount;
  11890. uint dragDropMode;
  11891. bool editable;
  11892. bool elementEventSender;
  11893. bool enabled;
  11894. /* readonly */
  11895. bool enabledSelf;
  11896. /* readonly */
  11897. bool fixedHeight;
  11898. /* readonly */
  11899. bool fixedSize;
  11900. /* readonly */
  11901. bool fixedWidth;
  11902. bool focus;
  11903. FocusMode focusMode;
  11904. int height;
  11905. HorizontalAlignment horizontalAlignment;
  11906. /* readonly */
  11907. bool hovering;
  11908. int indent;
  11909. int indentSpacing;
  11910. /* readonly */
  11911. int indentWidth;
  11912. bool internal;
  11913. IntRect layoutBorder;
  11914. Vector2 layoutFlexScale;
  11915. LayoutMode layoutMode;
  11916. int layoutSpacing;
  11917. int maxHeight;
  11918. IntVector2 maxSize;
  11919. int maxWidth;
  11920. int minHeight;
  11921. IntVector2 minSize;
  11922. int minWidth;
  11923. String name;
  11924. /* readonly */
  11925. uint numAllChildren;
  11926. /* readonly */
  11927. uint numAttributes;
  11928. /* readonly */
  11929. uint numChildren;
  11930. ObjectAnimation objectAnimation;
  11931. float opacity;
  11932. UIElement parent;
  11933. IntVector2 position;
  11934. int priority;
  11935. /* readonly */
  11936. int refs;
  11937. /* readonly */
  11938. UIElement root;
  11939. /* readonly */
  11940. IntVector2 screenPosition;
  11941. bool selected;
  11942. IntVector2 size;
  11943. bool sortChildren;
  11944. String style;
  11945. /* readonly */
  11946. Array<String> tags;
  11947. bool temporary;
  11948. TraversalMode traversalMode;
  11949. /* readonly */
  11950. StringHash type;
  11951. /* readonly */
  11952. String typeName;
  11953. bool useDerivedOpacity;
  11954. /* readonly */
  11955. VariantMap vars;
  11956. VerticalAlignment verticalAlignment;
  11957. bool visible;
  11958. /* readonly */
  11959. bool visibleEffective;
  11960. /* readonly */
  11961. int weakRefs;
  11962. int width;
  11963. };
  11964. class TouchState
  11965. {
  11966. // Properties:
  11967. IntVector2 delta;
  11968. IntVector2 lastPosition;
  11969. IntVector2 position;
  11970. float pressure;
  11971. int touchID;
  11972. /* readonly */
  11973. UIElement touchedElement;
  11974. };
  11975. class UI
  11976. {
  11977. // Methods:
  11978. void Clear();
  11979. void DebugDraw(UIElement);
  11980. UIElement GetElementAt(const IntVector2&, bool = true);
  11981. UIElement GetElementAt(int, int, bool = true);
  11982. bool HasModalElement() const;
  11983. bool HasSubscribedToEvent(Object, const String&);
  11984. bool HasSubscribedToEvent(const String&);
  11985. bool IsDragging() const;
  11986. UIElement LoadLayout(File);
  11987. UIElement LoadLayout(File, XMLFile);
  11988. UIElement LoadLayout(VectorBuffer&);
  11989. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11990. UIElement LoadLayout(XMLFile);
  11991. UIElement LoadLayout(XMLFile, XMLFile);
  11992. bool SaveLayout(File, UIElement);
  11993. bool SaveLayout(VectorBuffer&, UIElement);
  11994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11995. void SetFocusElement(UIElement, bool = false);
  11996. void SetHeight(float);
  11997. void SetWidth(float);
  11998. const Array<UIElement> GetDragElements();
  11999. // Properties:
  12000. /* readonly */
  12001. String category;
  12002. String clipBoardText;
  12003. Cursor cursor;
  12004. /* readonly */
  12005. IntVector2 cursorPosition;
  12006. float defaultToolTipDelay;
  12007. float doubleClickInterval;
  12008. int dragBeginDistance;
  12009. float dragBeginInterval;
  12010. UIElement focusElement;
  12011. bool forceAutoHint;
  12012. /* readonly */
  12013. UIElement frontElement;
  12014. int maxFontTextureSize;
  12015. /* readonly */
  12016. UIElement modalRoot;
  12017. bool nonFocusedMouseWheel;
  12018. /* readonly */
  12019. int refs;
  12020. /* readonly */
  12021. UIElement root;
  12022. float scale;
  12023. /* readonly */
  12024. StringHash type;
  12025. /* readonly */
  12026. String typeName;
  12027. bool useMutableGlyphs;
  12028. bool useScreenKeyboard;
  12029. bool useSystemClipboard;
  12030. /* readonly */
  12031. int weakRefs;
  12032. };
  12033. class UIElement
  12034. {
  12035. // Methods:
  12036. void AddChild(UIElement);
  12037. void AddTag(const String&);
  12038. void AddTags(const String&, int8 = ';');
  12039. void ApplyAttributes();
  12040. void BringToFront();
  12041. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12042. void DisableLayoutUpdate();
  12043. IntVector2 ElementToScreen(const IntVector2&);
  12044. void EnableLayoutUpdate();
  12045. uint FindChild(UIElement) const;
  12046. Variant GetAttribute(const String&) const;
  12047. ValueAnimation GetAttributeAnimation(const String&) const;
  12048. float GetAttributeAnimationSpeed(const String&) const;
  12049. float GetAttributeAnimationTime(const String&) const;
  12050. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12051. Variant GetAttributeDefault(const String&) const;
  12052. UIElement GetChild(const String&, bool = false) const;
  12053. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12054. Array<UIElement> GetChildren(bool = false) const;
  12055. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12056. UIElement GetElementEventSender() const;
  12057. bool GetInterceptNetworkUpdate(const String&) const;
  12058. uint GetNumChildren(bool) const;
  12059. bool HasSubscribedToEvent(Object, const String&);
  12060. bool HasSubscribedToEvent(const String&);
  12061. bool HasTag(const String&) const;
  12062. void InsertChild(uint, UIElement);
  12063. bool IsInside(IntVector2, bool);
  12064. bool IsInsideCombined(IntVector2, bool);
  12065. bool Load(File, bool = false);
  12066. bool Load(VectorBuffer&, bool = false);
  12067. bool LoadChildXML(XMLFile, XMLFile = null);
  12068. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12069. bool LoadJSON(const JSONValue&, bool = false);
  12070. bool LoadXML(File);
  12071. bool LoadXML(VectorBuffer&);
  12072. bool LoadXML(XMLFile, XMLFile);
  12073. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12074. bool LoadXML(const XMLElement&, bool = false);
  12075. void MarkNetworkUpdate() const;
  12076. void Remove();
  12077. void RemoveAllChildren();
  12078. void RemoveAllTags();
  12079. void RemoveAttributeAnimation(const String&);
  12080. void RemoveChild(UIElement, uint = 0);
  12081. void RemoveChild(uint);
  12082. void RemoveInstanceDefault();
  12083. void RemoveObjectAnimation();
  12084. bool RemoveTag(const String&);
  12085. void ResetDeepEnabled();
  12086. void ResetToDefault();
  12087. bool Save(File) const;
  12088. bool Save(VectorBuffer&) const;
  12089. bool SaveJSON(JSONValue&) const;
  12090. bool SaveXML(File, const String& = "\t");
  12091. bool SaveXML(VectorBuffer&, const String& = "\t");
  12092. bool SaveXML(XMLElement&) const;
  12093. IntVector2 ScreenToElement(const IntVector2&);
  12094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12095. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12096. void SetAnimationTime(float);
  12097. bool SetAttribute(const String&, const Variant&);
  12098. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12099. void SetAttributeAnimationSpeed(const String&, float);
  12100. void SetAttributeAnimationTime(const String&, float);
  12101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12102. void SetDeepEnabled(bool);
  12103. void SetEnabledRecursive(bool);
  12104. void SetFixedHeight(int);
  12105. void SetFixedSize(int, int);
  12106. void SetFixedWidth(int);
  12107. void SetInterceptNetworkUpdate(const String&, bool);
  12108. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12109. void SetMaxSize(int, int);
  12110. void SetMinSize(int, int);
  12111. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12112. void SetPosition(int, int);
  12113. void SetSize(int, int);
  12114. bool SetStyle(const String&, XMLFile = null);
  12115. bool SetStyle(const XMLElement&);
  12116. bool SetStyleAuto(XMLFile = null);
  12117. void UpdateLayout();
  12118. const Variant& GetVar(const StringHash&);
  12119. // Properties:
  12120. bool animationEnabled;
  12121. /* readonly */
  12122. Array<Variant> attributeDefaults;
  12123. /* readonly */
  12124. Array<AttributeInfo> attributeInfos;
  12125. Array<Variant> attributes;
  12126. bool bringToBack;
  12127. bool bringToFront;
  12128. /* readonly */
  12129. String category;
  12130. /* readonly */
  12131. IntVector2 childOffset;
  12132. /* readonly */
  12133. Array<UIElement> children;
  12134. IntRect clipBorder;
  12135. bool clipChildren;
  12136. /* writeonly */
  12137. Color color;
  12138. /* readonly */
  12139. bool colorGradient;
  12140. Array<Color> colors;
  12141. /* readonly */
  12142. IntRect combinedScreenRect;
  12143. XMLFile defaultStyle;
  12144. /* readonly */
  12145. float derivedOpacity;
  12146. /* readonly */
  12147. uint dragButtonCombo;
  12148. /* readonly */
  12149. int dragButtonCount;
  12150. uint dragDropMode;
  12151. bool editable;
  12152. bool elementEventSender;
  12153. bool enabled;
  12154. /* readonly */
  12155. bool enabledSelf;
  12156. /* readonly */
  12157. bool fixedHeight;
  12158. /* readonly */
  12159. bool fixedSize;
  12160. /* readonly */
  12161. bool fixedWidth;
  12162. bool focus;
  12163. FocusMode focusMode;
  12164. int height;
  12165. HorizontalAlignment horizontalAlignment;
  12166. /* readonly */
  12167. bool hovering;
  12168. int indent;
  12169. int indentSpacing;
  12170. /* readonly */
  12171. int indentWidth;
  12172. bool internal;
  12173. IntRect layoutBorder;
  12174. Vector2 layoutFlexScale;
  12175. LayoutMode layoutMode;
  12176. int layoutSpacing;
  12177. int maxHeight;
  12178. IntVector2 maxSize;
  12179. int maxWidth;
  12180. int minHeight;
  12181. IntVector2 minSize;
  12182. int minWidth;
  12183. String name;
  12184. /* readonly */
  12185. uint numAllChildren;
  12186. /* readonly */
  12187. uint numAttributes;
  12188. /* readonly */
  12189. uint numChildren;
  12190. ObjectAnimation objectAnimation;
  12191. float opacity;
  12192. UIElement parent;
  12193. IntVector2 position;
  12194. int priority;
  12195. /* readonly */
  12196. int refs;
  12197. /* readonly */
  12198. UIElement root;
  12199. /* readonly */
  12200. IntVector2 screenPosition;
  12201. bool selected;
  12202. IntVector2 size;
  12203. bool sortChildren;
  12204. String style;
  12205. /* readonly */
  12206. Array<String> tags;
  12207. bool temporary;
  12208. TraversalMode traversalMode;
  12209. /* readonly */
  12210. StringHash type;
  12211. /* readonly */
  12212. String typeName;
  12213. bool useDerivedOpacity;
  12214. /* readonly */
  12215. VariantMap vars;
  12216. VerticalAlignment verticalAlignment;
  12217. bool visible;
  12218. /* readonly */
  12219. bool visibleEffective;
  12220. /* readonly */
  12221. int weakRefs;
  12222. int width;
  12223. };
  12224. class ValueAnimation
  12225. {
  12226. // Methods:
  12227. bool HasSubscribedToEvent(Object, const String&);
  12228. bool HasSubscribedToEvent(const String&);
  12229. bool Load(File);
  12230. bool Load(VectorBuffer&);
  12231. bool Save(File) const;
  12232. bool Save(VectorBuffer&) const;
  12233. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12234. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12235. void SetKeyFrame(float, const Variant&);
  12236. // Properties:
  12237. /* readonly */
  12238. String category;
  12239. InterpMethod interpolationMethod;
  12240. /* readonly */
  12241. uint memoryUse;
  12242. String name;
  12243. /* readonly */
  12244. int refs;
  12245. float splineTension;
  12246. /* readonly */
  12247. StringHash type;
  12248. /* readonly */
  12249. String typeName;
  12250. /* readonly */
  12251. uint useTimer;
  12252. VariantType valueType;
  12253. /* readonly */
  12254. int weakRefs;
  12255. };
  12256. class Variant
  12257. {
  12258. // Methods:
  12259. void Clear();
  12260. const Color& GetColor() const;
  12261. void FromString(VariantType, const String&);
  12262. void FromString(const String&, const String&);
  12263. bool GetBool() const;
  12264. VectorBuffer GetBuffer() const;
  12265. double GetDouble() const;
  12266. float GetFloat() const;
  12267. int GetInt() const;
  12268. RefCounted GetPtr() const;
  12269. ScriptObject GetScriptObject() const;
  12270. StringHash GetStringHash() const;
  12271. Array<String> GetStringVector() const;
  12272. uint GetUInt() const;
  12273. Array<Variant> GetVariantVector() const;
  12274. const IntRect& GetIntRect() const;
  12275. const IntVector2& GetIntVector2() const;
  12276. const Matrix3& GetMatrix3() const;
  12277. const Matrix3x4& GetMatrix3x4() const;
  12278. const Matrix4& GetMatrix4() const;
  12279. const Quaternion& GetQuaternion() const;
  12280. const ResourceRef& GetResourceRef() const;
  12281. const ResourceRefList& GetResourceRefList() const;
  12282. const String& GetString() const;
  12283. String ToString() const;
  12284. const VariantMap& GetVariantMap() const;
  12285. const Vector2& GetVector2() const;
  12286. const Vector3& GetVector3() const;
  12287. const Vector4& GetVector4() const;
  12288. // Properties:
  12289. /* readonly */
  12290. bool empty;
  12291. /* readonly */
  12292. VariantType type;
  12293. /* readonly */
  12294. String typeName;
  12295. /* readonly */
  12296. bool zero;
  12297. };
  12298. class VariantMap
  12299. {
  12300. // Methods:
  12301. void Clear();
  12302. bool Contains(StringHash) const;
  12303. bool Contains(const String&) const;
  12304. bool Erase(StringHash);
  12305. bool Erase(const String&);
  12306. // Properties:
  12307. /* readonly */
  12308. Array<StringHash> keys;
  12309. /* readonly */
  12310. uint length;
  12311. /* readonly */
  12312. Array<Variant> values;
  12313. };
  12314. class Vector2
  12315. {
  12316. // Methods:
  12317. Vector2 Abs() const;
  12318. float AbsDotProduct(const Vector2&) const;
  12319. float Angle(const Vector2&) const;
  12320. float DotProduct(const Vector2&) const;
  12321. bool Equals(const Vector2&) const;
  12322. bool IsNaN() const;
  12323. Vector2 Lerp(const Vector2&, float) const;
  12324. void Normalize();
  12325. Vector2 Normalized() const;
  12326. String ToString() const;
  12327. // Properties:
  12328. /* readonly */
  12329. Array<float> data;
  12330. /* readonly */
  12331. float length;
  12332. /* readonly */
  12333. float lengthSquared;
  12334. float x;
  12335. float y;
  12336. };
  12337. class Vector3
  12338. {
  12339. // Methods:
  12340. Vector3 Abs() const;
  12341. float AbsDotProduct(const Vector3&) const;
  12342. float Angle(const Vector3&) const;
  12343. Vector3 CrossProduct(const Vector3&) const;
  12344. float DotProduct(const Vector3&) const;
  12345. bool Equals(const Vector3&) const;
  12346. bool IsNaN() const;
  12347. Vector3 Lerp(const Vector3&, float) const;
  12348. void Normalize();
  12349. Vector3 Normalized() const;
  12350. String ToString() const;
  12351. // Properties:
  12352. /* readonly */
  12353. Array<float> data;
  12354. /* readonly */
  12355. float length;
  12356. /* readonly */
  12357. float lengthSquared;
  12358. float x;
  12359. float y;
  12360. float z;
  12361. };
  12362. class Vector4
  12363. {
  12364. // Methods:
  12365. Vector4 Abs() const;
  12366. float AbsDotProduct(const Vector4&) const;
  12367. float DotProduct(const Vector4&) const;
  12368. bool Equals(const Vector4&) const;
  12369. bool IsNaN() const;
  12370. Vector4 Lerp(const Vector4&, float) const;
  12371. String ToString() const;
  12372. // Properties:
  12373. /* readonly */
  12374. Array<float> data;
  12375. float w;
  12376. float x;
  12377. float y;
  12378. float z;
  12379. };
  12380. class VectorBuffer
  12381. {
  12382. // Methods:
  12383. void Clear();
  12384. Array<uint8> Read(uint);
  12385. bool ReadBool();
  12386. BoundingBox ReadBoundingBox();
  12387. int8 ReadByte();
  12388. Color ReadColor();
  12389. double ReadDouble();
  12390. String ReadFileID();
  12391. float ReadFloat();
  12392. int ReadInt();
  12393. IntRect ReadIntRect();
  12394. IntVector2 ReadIntVector2();
  12395. String ReadLine();
  12396. Matrix3 ReadMatrix3();
  12397. Matrix3x4 ReadMatrix3x4();
  12398. Matrix4 ReadMatrix4();
  12399. uint ReadNetID();
  12400. Quaternion ReadPackedQuaternion();
  12401. Vector3 ReadPackedVector3(float);
  12402. Quaternion ReadQuaternion();
  12403. int16 ReadShort();
  12404. String ReadString();
  12405. StringHash ReadStringHash();
  12406. uint8 ReadUByte();
  12407. uint ReadUInt();
  12408. uint16 ReadUShort();
  12409. uint ReadVLE();
  12410. Variant ReadVariant();
  12411. VariantMap ReadVariantMap();
  12412. Vector2 ReadVector2();
  12413. Vector3 ReadVector3();
  12414. Vector4 ReadVector4();
  12415. VectorBuffer ReadVectorBuffer(uint);
  12416. void Resize(uint);
  12417. uint Seek(uint);
  12418. void SetData(Deserializer, uint);
  12419. uint Write(Array<uint8>);
  12420. bool WriteBool(bool);
  12421. bool WriteBoundingBox(const BoundingBox&);
  12422. bool WriteByte(int8);
  12423. bool WriteColor(const Color&);
  12424. bool WriteDouble(double);
  12425. bool WriteFileID(const String&);
  12426. bool WriteFloat(float);
  12427. bool WriteInt(int);
  12428. bool WriteIntRect(const IntRect&);
  12429. bool WriteIntVector2(const IntVector2&);
  12430. bool WriteLine(const String&);
  12431. bool WriteMatrix3(const Matrix3&);
  12432. bool WriteMatrix3x4(const Matrix3x4&);
  12433. bool WriteMatrix4(const Matrix4&);
  12434. bool WriteNetID(uint);
  12435. bool WritePackedQuaternion(const Quaternion&);
  12436. bool WritePackedVector3(const Vector3&, float);
  12437. bool WriteQuaternion(const Quaternion&);
  12438. bool WriteShort(int16);
  12439. bool WriteString(const String&);
  12440. bool WriteStringHash(const StringHash&);
  12441. bool WriteUByte(uint8);
  12442. bool WriteUInt(uint);
  12443. bool WriteUShort(uint16);
  12444. bool WriteVLE(uint);
  12445. bool WriteVariant(const Variant&);
  12446. bool WriteVariantMap(const VariantMap&);
  12447. bool WriteVector2(const Vector2&);
  12448. bool WriteVector3(const Vector3&);
  12449. bool WriteVector4(const Vector4&);
  12450. bool WriteVectorBuffer(const VectorBuffer&);
  12451. // Properties:
  12452. /* readonly */
  12453. uint checksum;
  12454. /* readonly */
  12455. bool eof;
  12456. /* readonly */
  12457. String name;
  12458. /* readonly */
  12459. uint position;
  12460. /* readonly */
  12461. uint size;
  12462. };
  12463. class VertexBuffer
  12464. {
  12465. // Methods:
  12466. VectorBuffer GetData();
  12467. bool HasSubscribedToEvent(Object, const String&);
  12468. bool HasSubscribedToEvent(const String&);
  12469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12470. bool SetData(VectorBuffer&);
  12471. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12472. void SetSize(uint, uint, bool = false);
  12473. // Properties:
  12474. /* readonly */
  12475. String category;
  12476. /* readonly */
  12477. bool dynamic;
  12478. /* readonly */
  12479. uint elementMask;
  12480. /* readonly */
  12481. int refs;
  12482. bool shadowed;
  12483. /* readonly */
  12484. StringHash type;
  12485. /* readonly */
  12486. String typeName;
  12487. /* readonly */
  12488. uint vertexCount;
  12489. /* readonly */
  12490. uint vertexSize;
  12491. /* readonly */
  12492. int weakRefs;
  12493. };
  12494. class View3D
  12495. {
  12496. // Methods:
  12497. void AddChild(UIElement);
  12498. void AddTag(const String&);
  12499. void AddTags(const String&, int8 = ';');
  12500. void ApplyAttributes();
  12501. void BringToFront();
  12502. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12503. void DisableLayoutUpdate();
  12504. IntVector2 ElementToScreen(const IntVector2&);
  12505. void EnableLayoutUpdate();
  12506. uint FindChild(UIElement) const;
  12507. Variant GetAttribute(const String&) const;
  12508. ValueAnimation GetAttributeAnimation(const String&) const;
  12509. float GetAttributeAnimationSpeed(const String&) const;
  12510. float GetAttributeAnimationTime(const String&) const;
  12511. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12512. Variant GetAttributeDefault(const String&) const;
  12513. UIElement GetChild(const String&, bool = false) const;
  12514. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12515. Array<UIElement> GetChildren(bool = false) const;
  12516. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12517. UIElement GetElementEventSender() const;
  12518. bool GetInterceptNetworkUpdate(const String&) const;
  12519. uint GetNumChildren(bool) const;
  12520. bool HasSubscribedToEvent(Object, const String&);
  12521. bool HasSubscribedToEvent(const String&);
  12522. bool HasTag(const String&) const;
  12523. void InsertChild(uint, UIElement);
  12524. bool IsInside(IntVector2, bool);
  12525. bool IsInsideCombined(IntVector2, bool);
  12526. bool Load(File, bool = false);
  12527. bool Load(VectorBuffer&, bool = false);
  12528. bool LoadChildXML(XMLFile, XMLFile = null);
  12529. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12530. bool LoadJSON(const JSONValue&, bool = false);
  12531. bool LoadXML(File);
  12532. bool LoadXML(VectorBuffer&);
  12533. bool LoadXML(XMLFile, XMLFile);
  12534. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12535. bool LoadXML(const XMLElement&, bool = false);
  12536. void MarkNetworkUpdate() const;
  12537. void QueueUpdate();
  12538. void Remove();
  12539. void RemoveAllChildren();
  12540. void RemoveAllTags();
  12541. void RemoveAttributeAnimation(const String&);
  12542. void RemoveChild(UIElement, uint = 0);
  12543. void RemoveChild(uint);
  12544. void RemoveInstanceDefault();
  12545. void RemoveObjectAnimation();
  12546. bool RemoveTag(const String&);
  12547. void ResetDeepEnabled();
  12548. void ResetToDefault();
  12549. bool Save(File) const;
  12550. bool Save(VectorBuffer&) const;
  12551. bool SaveJSON(JSONValue&) const;
  12552. bool SaveXML(File, const String& = "\t");
  12553. bool SaveXML(VectorBuffer&, const String& = "\t");
  12554. bool SaveXML(XMLElement&) const;
  12555. IntVector2 ScreenToElement(const IntVector2&);
  12556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12557. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12558. void SetAnimationTime(float);
  12559. bool SetAttribute(const String&, const Variant&);
  12560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12561. void SetAttributeAnimationSpeed(const String&, float);
  12562. void SetAttributeAnimationTime(const String&, float);
  12563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12564. void SetDeepEnabled(bool);
  12565. void SetEnabledRecursive(bool);
  12566. void SetFixedHeight(int);
  12567. void SetFixedSize(int, int);
  12568. void SetFixedWidth(int);
  12569. void SetFullImageRect();
  12570. void SetHoverOffset(int, int);
  12571. void SetInterceptNetworkUpdate(const String&, bool);
  12572. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12573. void SetMaxSize(int, int);
  12574. void SetMinSize(int, int);
  12575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12576. void SetPosition(int, int);
  12577. void SetSize(int, int);
  12578. bool SetStyle(const String&, XMLFile = null);
  12579. bool SetStyle(const XMLElement&);
  12580. bool SetStyleAuto(XMLFile = null);
  12581. void SetView(Scene, Camera, bool = true);
  12582. void UpdateLayout();
  12583. const Variant& GetVar(const StringHash&);
  12584. // Properties:
  12585. bool animationEnabled;
  12586. /* readonly */
  12587. Array<Variant> attributeDefaults;
  12588. /* readonly */
  12589. Array<AttributeInfo> attributeInfos;
  12590. Array<Variant> attributes;
  12591. bool autoUpdate;
  12592. BlendMode blendMode;
  12593. IntRect border;
  12594. bool bringToBack;
  12595. bool bringToFront;
  12596. /* readonly */
  12597. Node cameraNode;
  12598. /* readonly */
  12599. String category;
  12600. /* readonly */
  12601. IntVector2 childOffset;
  12602. /* readonly */
  12603. Array<UIElement> children;
  12604. IntRect clipBorder;
  12605. bool clipChildren;
  12606. /* writeonly */
  12607. Color color;
  12608. /* readonly */
  12609. bool colorGradient;
  12610. Array<Color> colors;
  12611. /* readonly */
  12612. IntRect combinedScreenRect;
  12613. XMLFile defaultStyle;
  12614. /* readonly */
  12615. Texture2D depthTexture;
  12616. /* readonly */
  12617. float derivedOpacity;
  12618. /* readonly */
  12619. uint dragButtonCombo;
  12620. /* readonly */
  12621. int dragButtonCount;
  12622. uint dragDropMode;
  12623. bool editable;
  12624. bool elementEventSender;
  12625. bool enabled;
  12626. /* readonly */
  12627. bool enabledSelf;
  12628. /* readonly */
  12629. bool fixedHeight;
  12630. bool fixedHeightResizing;
  12631. /* readonly */
  12632. bool fixedSize;
  12633. /* readonly */
  12634. bool fixedWidth;
  12635. bool fixedWidthResizing;
  12636. bool focus;
  12637. FocusMode focusMode;
  12638. uint format;
  12639. int height;
  12640. HorizontalAlignment horizontalAlignment;
  12641. IntVector2 hoverOffset;
  12642. /* readonly */
  12643. bool hovering;
  12644. IntRect imageBorder;
  12645. IntRect imageRect;
  12646. int indent;
  12647. int indentSpacing;
  12648. /* readonly */
  12649. int indentWidth;
  12650. bool internal;
  12651. IntRect layoutBorder;
  12652. Vector2 layoutFlexScale;
  12653. LayoutMode layoutMode;
  12654. int layoutSpacing;
  12655. int maxHeight;
  12656. IntVector2 maxSize;
  12657. int maxWidth;
  12658. int minHeight;
  12659. IntVector2 minSize;
  12660. int minWidth;
  12661. bool modal;
  12662. bool modalAutoDismiss;
  12663. Color modalFrameColor;
  12664. IntVector2 modalFrameSize;
  12665. Color modalShadeColor;
  12666. bool movable;
  12667. String name;
  12668. /* readonly */
  12669. uint numAllChildren;
  12670. /* readonly */
  12671. uint numAttributes;
  12672. /* readonly */
  12673. uint numChildren;
  12674. ObjectAnimation objectAnimation;
  12675. float opacity;
  12676. UIElement parent;
  12677. IntVector2 position;
  12678. int priority;
  12679. /* readonly */
  12680. int refs;
  12681. /* readonly */
  12682. Texture2D renderTexture;
  12683. bool resizable;
  12684. IntRect resizeBorder;
  12685. /* readonly */
  12686. UIElement root;
  12687. /* readonly */
  12688. Scene scene;
  12689. /* readonly */
  12690. IntVector2 screenPosition;
  12691. bool selected;
  12692. IntVector2 size;
  12693. bool sortChildren;
  12694. String style;
  12695. /* readonly */
  12696. Array<String> tags;
  12697. bool temporary;
  12698. Texture texture;
  12699. bool tiled;
  12700. TraversalMode traversalMode;
  12701. /* readonly */
  12702. StringHash type;
  12703. /* readonly */
  12704. String typeName;
  12705. bool useDerivedOpacity;
  12706. /* readonly */
  12707. VariantMap vars;
  12708. VerticalAlignment verticalAlignment;
  12709. /* readonly */
  12710. Viewport viewport;
  12711. bool visible;
  12712. /* readonly */
  12713. bool visibleEffective;
  12714. /* readonly */
  12715. int weakRefs;
  12716. int width;
  12717. };
  12718. class Viewport
  12719. {
  12720. // Methods:
  12721. Ray GetScreenRay(int, int) const;
  12722. bool HasSubscribedToEvent(Object, const String&);
  12723. bool HasSubscribedToEvent(const String&);
  12724. Vector3 ScreenToWorldPoint(int, int, float) const;
  12725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12726. void SetRenderPath(XMLFile);
  12727. Vector2 WorldToScreenPoint(const Vector3&) const;
  12728. // Properties:
  12729. Camera camera;
  12730. /* readonly */
  12731. String category;
  12732. Camera cullCamera;
  12733. bool drawDebug;
  12734. IntRect rect;
  12735. /* readonly */
  12736. int refs;
  12737. RenderPath renderPath;
  12738. Scene scene;
  12739. /* readonly */
  12740. StringHash type;
  12741. /* readonly */
  12742. String typeName;
  12743. /* readonly */
  12744. int weakRefs;
  12745. };
  12746. class WeakHandle
  12747. {
  12748. // Methods:
  12749. RefCounted Get() const;
  12750. // Properties:
  12751. /* readonly */
  12752. bool expired;
  12753. /* readonly */
  12754. int refs;
  12755. /* readonly */
  12756. int weakRefs;
  12757. };
  12758. class Window
  12759. {
  12760. // Methods:
  12761. void AddChild(UIElement);
  12762. void AddTag(const String&);
  12763. void AddTags(const String&, int8 = ';');
  12764. void ApplyAttributes();
  12765. void BringToFront();
  12766. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12767. void DisableLayoutUpdate();
  12768. IntVector2 ElementToScreen(const IntVector2&);
  12769. void EnableLayoutUpdate();
  12770. uint FindChild(UIElement) const;
  12771. Variant GetAttribute(const String&) const;
  12772. ValueAnimation GetAttributeAnimation(const String&) const;
  12773. float GetAttributeAnimationSpeed(const String&) const;
  12774. float GetAttributeAnimationTime(const String&) const;
  12775. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12776. Variant GetAttributeDefault(const String&) const;
  12777. UIElement GetChild(const String&, bool = false) const;
  12778. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12779. Array<UIElement> GetChildren(bool = false) const;
  12780. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12781. UIElement GetElementEventSender() const;
  12782. bool GetInterceptNetworkUpdate(const String&) const;
  12783. uint GetNumChildren(bool) const;
  12784. bool HasSubscribedToEvent(Object, const String&);
  12785. bool HasSubscribedToEvent(const String&);
  12786. bool HasTag(const String&) const;
  12787. void InsertChild(uint, UIElement);
  12788. bool IsInside(IntVector2, bool);
  12789. bool IsInsideCombined(IntVector2, bool);
  12790. bool Load(File, bool = false);
  12791. bool Load(VectorBuffer&, bool = false);
  12792. bool LoadChildXML(XMLFile, XMLFile = null);
  12793. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12794. bool LoadJSON(const JSONValue&, bool = false);
  12795. bool LoadXML(File);
  12796. bool LoadXML(VectorBuffer&);
  12797. bool LoadXML(XMLFile, XMLFile);
  12798. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12799. bool LoadXML(const XMLElement&, bool = false);
  12800. void MarkNetworkUpdate() const;
  12801. void Remove();
  12802. void RemoveAllChildren();
  12803. void RemoveAllTags();
  12804. void RemoveAttributeAnimation(const String&);
  12805. void RemoveChild(UIElement, uint = 0);
  12806. void RemoveChild(uint);
  12807. void RemoveInstanceDefault();
  12808. void RemoveObjectAnimation();
  12809. bool RemoveTag(const String&);
  12810. void ResetDeepEnabled();
  12811. void ResetToDefault();
  12812. bool Save(File) const;
  12813. bool Save(VectorBuffer&) const;
  12814. bool SaveJSON(JSONValue&) const;
  12815. bool SaveXML(File, const String& = "\t");
  12816. bool SaveXML(VectorBuffer&, const String& = "\t");
  12817. bool SaveXML(XMLElement&) const;
  12818. IntVector2 ScreenToElement(const IntVector2&);
  12819. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12820. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12821. void SetAnimationTime(float);
  12822. bool SetAttribute(const String&, const Variant&);
  12823. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12824. void SetAttributeAnimationSpeed(const String&, float);
  12825. void SetAttributeAnimationTime(const String&, float);
  12826. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12827. void SetDeepEnabled(bool);
  12828. void SetEnabledRecursive(bool);
  12829. void SetFixedHeight(int);
  12830. void SetFixedSize(int, int);
  12831. void SetFixedWidth(int);
  12832. void SetFullImageRect();
  12833. void SetHoverOffset(int, int);
  12834. void SetInterceptNetworkUpdate(const String&, bool);
  12835. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12836. void SetMaxSize(int, int);
  12837. void SetMinSize(int, int);
  12838. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12839. void SetPosition(int, int);
  12840. void SetSize(int, int);
  12841. bool SetStyle(const String&, XMLFile = null);
  12842. bool SetStyle(const XMLElement&);
  12843. bool SetStyleAuto(XMLFile = null);
  12844. void UpdateLayout();
  12845. const Variant& GetVar(const StringHash&);
  12846. // Properties:
  12847. bool animationEnabled;
  12848. /* readonly */
  12849. Array<Variant> attributeDefaults;
  12850. /* readonly */
  12851. Array<AttributeInfo> attributeInfos;
  12852. Array<Variant> attributes;
  12853. BlendMode blendMode;
  12854. IntRect border;
  12855. bool bringToBack;
  12856. bool bringToFront;
  12857. /* readonly */
  12858. String category;
  12859. /* readonly */
  12860. IntVector2 childOffset;
  12861. /* readonly */
  12862. Array<UIElement> children;
  12863. IntRect clipBorder;
  12864. bool clipChildren;
  12865. /* writeonly */
  12866. Color color;
  12867. /* readonly */
  12868. bool colorGradient;
  12869. Array<Color> colors;
  12870. /* readonly */
  12871. IntRect combinedScreenRect;
  12872. XMLFile defaultStyle;
  12873. /* readonly */
  12874. float derivedOpacity;
  12875. /* readonly */
  12876. uint dragButtonCombo;
  12877. /* readonly */
  12878. int dragButtonCount;
  12879. uint dragDropMode;
  12880. bool editable;
  12881. bool elementEventSender;
  12882. bool enabled;
  12883. /* readonly */
  12884. bool enabledSelf;
  12885. /* readonly */
  12886. bool fixedHeight;
  12887. bool fixedHeightResizing;
  12888. /* readonly */
  12889. bool fixedSize;
  12890. /* readonly */
  12891. bool fixedWidth;
  12892. bool fixedWidthResizing;
  12893. bool focus;
  12894. FocusMode focusMode;
  12895. int height;
  12896. HorizontalAlignment horizontalAlignment;
  12897. IntVector2 hoverOffset;
  12898. /* readonly */
  12899. bool hovering;
  12900. IntRect imageBorder;
  12901. IntRect imageRect;
  12902. int indent;
  12903. int indentSpacing;
  12904. /* readonly */
  12905. int indentWidth;
  12906. bool internal;
  12907. IntRect layoutBorder;
  12908. Vector2 layoutFlexScale;
  12909. LayoutMode layoutMode;
  12910. int layoutSpacing;
  12911. int maxHeight;
  12912. IntVector2 maxSize;
  12913. int maxWidth;
  12914. int minHeight;
  12915. IntVector2 minSize;
  12916. int minWidth;
  12917. bool modal;
  12918. bool modalAutoDismiss;
  12919. Color modalFrameColor;
  12920. IntVector2 modalFrameSize;
  12921. Color modalShadeColor;
  12922. bool movable;
  12923. String name;
  12924. /* readonly */
  12925. uint numAllChildren;
  12926. /* readonly */
  12927. uint numAttributes;
  12928. /* readonly */
  12929. uint numChildren;
  12930. ObjectAnimation objectAnimation;
  12931. float opacity;
  12932. UIElement parent;
  12933. IntVector2 position;
  12934. int priority;
  12935. /* readonly */
  12936. int refs;
  12937. bool resizable;
  12938. IntRect resizeBorder;
  12939. /* readonly */
  12940. UIElement root;
  12941. /* readonly */
  12942. IntVector2 screenPosition;
  12943. bool selected;
  12944. IntVector2 size;
  12945. bool sortChildren;
  12946. String style;
  12947. /* readonly */
  12948. Array<String> tags;
  12949. bool temporary;
  12950. Texture texture;
  12951. bool tiled;
  12952. TraversalMode traversalMode;
  12953. /* readonly */
  12954. StringHash type;
  12955. /* readonly */
  12956. String typeName;
  12957. bool useDerivedOpacity;
  12958. /* readonly */
  12959. VariantMap vars;
  12960. VerticalAlignment verticalAlignment;
  12961. bool visible;
  12962. /* readonly */
  12963. bool visibleEffective;
  12964. /* readonly */
  12965. int weakRefs;
  12966. int width;
  12967. };
  12968. class XMLElement
  12969. {
  12970. // Methods:
  12971. XMLElement CreateChild(const String&);
  12972. String GetAttribute(const String& = String ( )) const;
  12973. String GetAttributeLower(const String&) const;
  12974. Array<String> GetAttributeNames() const;
  12975. String GetAttributeUpper(const String&) const;
  12976. bool GetBool(const String&) const;
  12977. BoundingBox GetBoundingBox() const;
  12978. XMLElement GetChild(const String& = String ( )) const;
  12979. Color GetColor(const String&) const;
  12980. double GetDouble(const String&) const;
  12981. float GetFloat(const String&) const;
  12982. int GetInt(const String&) const;
  12983. IntRect GetIntRect(const String&) const;
  12984. IntVector2 GetIntVector2(const String&) const;
  12985. Matrix3 GetMatrix3(const String&) const;
  12986. Matrix3x4 GetMatrix3x4(const String&) const;
  12987. Matrix4 GetMatrix4(const String&) const;
  12988. XMLElement GetNext(const String& = String ( )) const;
  12989. Quaternion GetQuaternion(const String&) const;
  12990. ResourceRef GetResourceRef() const;
  12991. ResourceRefList GetResourceRefList() const;
  12992. uint GetUInt(const String&) const;
  12993. String GetValue() const;
  12994. Variant GetVariant() const;
  12995. VariantMap GetVariantMap() const;
  12996. Array<Variant> GetVariantVector() const;
  12997. Vector2 GetVector2(const String&) const;
  12998. Vector3 GetVector3(const String&) const;
  12999. Vector4 GetVector4(const String&) const;
  13000. Variant GetVectorVariant(const String&) const;
  13001. bool HasAttribute(const String&) const;
  13002. bool HasChild(const String&) const;
  13003. bool RemoveAttribute(const String& = String ( ));
  13004. bool RemoveChild(const String&);
  13005. bool RemoveChild(const XMLElement&);
  13006. bool RemoveChildren(const String& = String ( ));
  13007. XPathResultSet Select(const String&);
  13008. XPathResultSet SelectPrepared(const XPathQuery&);
  13009. XMLElement SelectSingle(const String&);
  13010. XMLElement SelectSinglePrepared(const XPathQuery&);
  13011. bool SetAttribute(const String&);
  13012. bool SetAttribute(const String&, const String&);
  13013. bool SetBool(const String&, bool);
  13014. bool SetBoundingBox(const BoundingBox&);
  13015. bool SetColor(const String&, const Color&);
  13016. bool SetDouble(const String&, double);
  13017. bool SetFloat(const String&, float);
  13018. bool SetInt(const String&, int);
  13019. bool SetIntRect(const String&, const IntRect&);
  13020. bool SetIntVector2(const String&, const IntVector2&);
  13021. bool SetMatrix3(const String&, const Matrix3&);
  13022. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13023. bool SetMatrix4(const String&, const Matrix4&);
  13024. bool SetQuaternion(const String&, const Quaternion&);
  13025. bool SetResourceRef(const String&, const ResourceRef&);
  13026. bool SetResourceRefList(const String&, const ResourceRefList&);
  13027. bool SetUInt(const String&, uint);
  13028. bool SetValue(const String&);
  13029. bool SetVariant(const Variant&);
  13030. bool SetVariantMap(const VariantMap&);
  13031. bool SetVariantVector(Array<Variant>);
  13032. bool SetVector2(const String&, const Vector2&);
  13033. bool SetVector3(const String&, const Vector3&);
  13034. bool SetVector4(const String&, const Vector4&);
  13035. bool SetVectorVariant(const String&, const Variant&);
  13036. // Properties:
  13037. /* readonly */
  13038. XMLFile file;
  13039. /* readonly */
  13040. bool isNull;
  13041. /* readonly */
  13042. String name;
  13043. /* readonly */
  13044. XMLElement nextResult;
  13045. /* readonly */
  13046. bool notNull;
  13047. /* readonly */
  13048. uint numAttributes;
  13049. /* readonly */
  13050. XMLElement parent;
  13051. String value;
  13052. };
  13053. class XMLFile
  13054. {
  13055. // Methods:
  13056. XMLElement CreateRoot(const String&);
  13057. bool FromString(const String&);
  13058. XMLElement GetRoot(const String& = String ( ));
  13059. bool HasSubscribedToEvent(Object, const String&);
  13060. bool HasSubscribedToEvent(const String&);
  13061. bool Load(File);
  13062. bool Load(VectorBuffer&);
  13063. void Patch(XMLElement);
  13064. void Patch(XMLFile);
  13065. bool Save(File) const;
  13066. bool Save(File, const String&) const;
  13067. bool Save(VectorBuffer&) const;
  13068. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13069. String ToString(const String& = String ( "\t" )) const;
  13070. // Properties:
  13071. /* readonly */
  13072. String category;
  13073. /* readonly */
  13074. uint memoryUse;
  13075. String name;
  13076. /* readonly */
  13077. int refs;
  13078. /* readonly */
  13079. XMLElement root;
  13080. /* readonly */
  13081. StringHash type;
  13082. /* readonly */
  13083. String typeName;
  13084. /* readonly */
  13085. uint useTimer;
  13086. /* readonly */
  13087. int weakRefs;
  13088. };
  13089. class XPathQuery
  13090. {
  13091. // Methods:
  13092. void Bind();
  13093. void Clear();
  13094. XPathResultSet Evaluate(XMLElement);
  13095. bool EvaluateToBool(XMLElement);
  13096. float EvaluateToFloat(XMLElement);
  13097. String EvaluateToString(XMLElement);
  13098. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13099. bool SetVariable(const String&, bool);
  13100. bool SetVariable(const String&, const String&);
  13101. bool SetVariable(const String&, const XPathResultSet&);
  13102. bool SetVariable(const String&, float);
  13103. // Properties:
  13104. String query;
  13105. };
  13106. class XPathResultSet
  13107. {
  13108. // Properties:
  13109. /* readonly */
  13110. bool empty;
  13111. /* readonly */
  13112. XMLElement firstResult;
  13113. /* readonly */
  13114. uint size;
  13115. };
  13116. class Zone
  13117. {
  13118. // Methods:
  13119. void ApplyAttributes();
  13120. void DrawDebugGeometry(DebugRenderer, bool);
  13121. Variant GetAttribute(const String&) const;
  13122. ValueAnimation GetAttributeAnimation(const String&) const;
  13123. float GetAttributeAnimationSpeed(const String&) const;
  13124. float GetAttributeAnimationTime(const String&) const;
  13125. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13126. Variant GetAttributeDefault(const String&) const;
  13127. bool GetInterceptNetworkUpdate(const String&) const;
  13128. bool HasSubscribedToEvent(Object, const String&);
  13129. bool HasSubscribedToEvent(const String&);
  13130. bool IsInView(Camera) const;
  13131. bool Load(File, bool = false);
  13132. bool Load(VectorBuffer&, bool = false);
  13133. bool LoadJSON(const JSONValue&, bool = false);
  13134. bool LoadXML(const XMLElement&, bool = false);
  13135. void MarkNetworkUpdate() const;
  13136. void Remove();
  13137. void RemoveAttributeAnimation(const String&);
  13138. void RemoveInstanceDefault();
  13139. void RemoveObjectAnimation();
  13140. void ResetToDefault();
  13141. bool Save(File) const;
  13142. bool Save(VectorBuffer&) const;
  13143. bool SaveJSON(JSONValue&) const;
  13144. bool SaveXML(XMLElement&) const;
  13145. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  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 SetInterceptNetworkUpdate(const String&, bool);
  13153. // Properties:
  13154. Color ambientColor;
  13155. /* readonly */
  13156. Color ambientEndColor;
  13157. bool ambientGradient;
  13158. /* readonly */
  13159. Color ambientStartColor;
  13160. bool animationEnabled;
  13161. /* readonly */
  13162. Array<Variant> attributeDefaults;
  13163. /* readonly */
  13164. Array<AttributeInfo> attributeInfos;
  13165. Array<Variant> attributes;
  13166. BoundingBox boundingBox;
  13167. bool castShadows;
  13168. /* readonly */
  13169. String category;
  13170. float drawDistance;
  13171. bool enabled;
  13172. /* readonly */
  13173. bool enabledEffective;
  13174. Color fogColor;
  13175. float fogEnd;
  13176. float fogHeight;
  13177. float fogHeightScale;
  13178. float fogStart;
  13179. bool heightFog;
  13180. /* readonly */
  13181. uint id;
  13182. /* readonly */
  13183. bool inView;
  13184. /* readonly */
  13185. Matrix3x4 inverseWorldTransform;
  13186. uint lightMask;
  13187. float lodBias;
  13188. uint maxLights;
  13189. /* readonly */
  13190. Node node;
  13191. /* readonly */
  13192. uint numAttributes;
  13193. ObjectAnimation objectAnimation;
  13194. bool occludee;
  13195. bool occluder;
  13196. bool override;
  13197. int priority;
  13198. /* readonly */
  13199. int refs;
  13200. float shadowDistance;
  13201. uint shadowMask;
  13202. bool temporary;
  13203. /* readonly */
  13204. StringHash type;
  13205. /* readonly */
  13206. String typeName;
  13207. uint viewMask;
  13208. /* readonly */
  13209. int weakRefs;
  13210. /* readonly */
  13211. BoundingBox worldBoundingBox;
  13212. uint zoneMask;
  13213. Texture zoneTexture;
  13214. };
  13215. // Enumerations
  13216. enum AnimationBlendMode
  13217. {
  13218. ABM_LERP,
  13219. ABM_ADDITIVE,
  13220. };
  13221. enum BlendMode
  13222. {
  13223. BLEND_REPLACE,
  13224. BLEND_ADD,
  13225. BLEND_MULTIPLY,
  13226. BLEND_ALPHA,
  13227. BLEND_ADDALPHA,
  13228. BLEND_PREMULALPHA,
  13229. BLEND_INVDESTALPHA,
  13230. BLEND_SUBTRACT,
  13231. BLEND_SUBTRACTALPHA,
  13232. };
  13233. enum BodyType2D
  13234. {
  13235. BT_STATIC,
  13236. BT_KINEMATIC,
  13237. BT_DYNAMIC,
  13238. };
  13239. enum CollisionEventMode
  13240. {
  13241. COLLISION_NEVER,
  13242. COLLISION_ACTIVE,
  13243. COLLISION_ALWAYS,
  13244. };
  13245. enum CompareMode
  13246. {
  13247. CMP_ALWAYS,
  13248. CMP_EQUAL,
  13249. CMP_NOTEQUAL,
  13250. CMP_LESS,
  13251. CMP_LESSEQUAL,
  13252. CMP_GREATER,
  13253. CMP_GREATEREQUAL,
  13254. };
  13255. enum CompressedFormat
  13256. {
  13257. CF_NONE,
  13258. CF_RGBA,
  13259. CF_DXT1,
  13260. CF_DXT3,
  13261. CF_DXT5,
  13262. CF_ETC1,
  13263. CF_PVRTC_RGB_2BPP,
  13264. CF_PVRTC_RGBA_2BPP,
  13265. CF_PVRTC_RGB_4BPP,
  13266. CF_PVRTC_RGBA_4BPP,
  13267. };
  13268. enum ConstraintType
  13269. {
  13270. CONSTRAINT_POINT,
  13271. CONSTRAINT_HINGE,
  13272. CONSTRAINT_SLIDER,
  13273. CONSTRAINT_CONETWIST,
  13274. };
  13275. enum Corner
  13276. {
  13277. C_TOPLEFT,
  13278. C_TOPRIGHT,
  13279. C_BOTTOMLEFT,
  13280. C_BOTTOMRIGHT,
  13281. };
  13282. enum CreateMode
  13283. {
  13284. REPLICATED,
  13285. LOCAL,
  13286. };
  13287. enum CrowdAgentRequestedTarget
  13288. {
  13289. CA_REQUESTEDTARGET_NONE,
  13290. CA_REQUESTEDTARGET_POSITION,
  13291. CA_REQUESTEDTARGET_VELOCITY,
  13292. };
  13293. enum CrowdAgentState
  13294. {
  13295. CA_STATE_INVALID,
  13296. CA_STATE_WALKING,
  13297. CA_STATE_OFFMESH,
  13298. };
  13299. enum CrowdAgentTargetState
  13300. {
  13301. CA_TARGET_NONE,
  13302. CA_TARGET_FAILED,
  13303. CA_TARGET_VALID,
  13304. CA_TARGET_REQUESTING,
  13305. CA_TARGET_WAITINGFORQUEUE,
  13306. CA_TARGET_WAITINGFORPATH,
  13307. CA_TARGET_VELOCITY,
  13308. };
  13309. enum CubeMapFace
  13310. {
  13311. FACE_POSITIVE_X,
  13312. FACE_NEGATIVE_X,
  13313. FACE_POSITIVE_Y,
  13314. FACE_NEGATIVE_Y,
  13315. FACE_POSITIVE_Z,
  13316. FACE_NEGATIVE_Z,
  13317. };
  13318. enum CullMode
  13319. {
  13320. CULL_NONE,
  13321. CULL_CCW,
  13322. CULL_CW,
  13323. };
  13324. enum CursorShape
  13325. {
  13326. CS_NORMAL,
  13327. CS_IBEAM,
  13328. CS_CROSS,
  13329. CS_RESIZEVERTICAL,
  13330. CS_RESIZEDIAGONAL_TOPRIGHT,
  13331. CS_RESIZEHORIZONTAL,
  13332. CS_RESIZEDIAGONAL_TOPLEFT,
  13333. CS_RESIZE_ALL,
  13334. CS_ACCEPTDROP,
  13335. CS_REJECTDROP,
  13336. CS_BUSY,
  13337. CS_BUSY_ARROW,
  13338. };
  13339. enum DBAPI
  13340. {
  13341. DBAPI_SQLITE,
  13342. DBAPI_ODBC,
  13343. };
  13344. enum DumpMode
  13345. {
  13346. DOXYGEN,
  13347. C_HEADER,
  13348. };
  13349. enum EmitterType
  13350. {
  13351. EMITTER_SPHERE,
  13352. EMITTER_BOX,
  13353. };
  13354. enum EmitterType2D
  13355. {
  13356. EMITTER_TYPE_GRAVITY,
  13357. EMITTER_TYPE_RADIAL,
  13358. };
  13359. enum FaceCameraMode
  13360. {
  13361. FC_NONE,
  13362. FC_ROTATE_XYZ,
  13363. FC_ROTATE_Y,
  13364. FC_LOOKAT_XYZ,
  13365. FC_LOOKAT_Y,
  13366. FC_DIRECTION,
  13367. };
  13368. enum FileMode
  13369. {
  13370. FILE_READ,
  13371. FILE_WRITE,
  13372. FILE_READWRITE,
  13373. };
  13374. enum FillMode
  13375. {
  13376. FILL_SOLID,
  13377. FILL_WIREFRAME,
  13378. FILL_POINT,
  13379. };
  13380. enum FocusMode
  13381. {
  13382. FM_NOTFOCUSABLE,
  13383. FM_RESETFOCUS,
  13384. FM_FOCUSABLE,
  13385. FM_FOCUSABLE_DEFOCUSABLE,
  13386. };
  13387. enum HighlightMode
  13388. {
  13389. HM_NEVER,
  13390. HM_FOCUS,
  13391. HM_ALWAYS,
  13392. };
  13393. enum HorizontalAlignment
  13394. {
  13395. HA_LEFT,
  13396. HA_CENTER,
  13397. HA_RIGHT,
  13398. };
  13399. enum HttpRequestState
  13400. {
  13401. HTTP_INITIALIZING,
  13402. HTTP_ERROR,
  13403. HTTP_OPEN,
  13404. HTTP_CLOSED,
  13405. };
  13406. enum InterpMethod
  13407. {
  13408. IM_LINEAR,
  13409. IM_SPLINE,
  13410. };
  13411. enum InterpolationMode
  13412. {
  13413. BEZIER_CURVE,
  13414. CATMULL_ROM_CURVE,
  13415. LINEAR_CURVE,
  13416. CATMULL_ROM_FULL_CURVE,
  13417. };
  13418. enum Intersection
  13419. {
  13420. OUTSIDE,
  13421. INTERSECTS,
  13422. INSIDE,
  13423. };
  13424. enum JSONValueType
  13425. {
  13426. JSON_NULL,
  13427. JSON_BOOL,
  13428. JSON_NUMBER,
  13429. JSON_STRING,
  13430. JSON_ARRAY,
  13431. JSON_OBJECT,
  13432. };
  13433. enum LayoutMode
  13434. {
  13435. LM_FREE,
  13436. LM_HORIZONTAL,
  13437. LM_VERTICAL,
  13438. };
  13439. enum LightType
  13440. {
  13441. LIGHT_DIRECTIONAL,
  13442. LIGHT_SPOT,
  13443. LIGHT_POINT,
  13444. };
  13445. enum LoadMode
  13446. {
  13447. LOAD_RESOURCES_ONLY,
  13448. LOAD_SCENE,
  13449. LOAD_SCENE_AND_RESOURCES,
  13450. };
  13451. enum LoopMode2D
  13452. {
  13453. LM_DEFAULT,
  13454. LM_FORCE_LOOPED,
  13455. LM_FORCE_CLAMPED,
  13456. };
  13457. enum MouseMode
  13458. {
  13459. MM_ABSOLUTE,
  13460. MM_RELATIVE,
  13461. MM_WRAP,
  13462. MM_FREE,
  13463. };
  13464. enum NavigationPushiness
  13465. {
  13466. NAVIGATIONPUSHINESS_LOW,
  13467. NAVIGATIONPUSHINESS_MEDIUM,
  13468. NAVIGATIONPUSHINESS_HIGH,
  13469. };
  13470. enum NavigationQuality
  13471. {
  13472. NAVIGATIONQUALITY_LOW,
  13473. NAVIGATIONQUALITY_MEDIUM,
  13474. NAVIGATIONQUALITY_HIGH,
  13475. };
  13476. enum NavmeshPartitionType
  13477. {
  13478. NAVMESH_PARTITION_WATERSHED,
  13479. NAVMESH_PARTITION_MONOTONE,
  13480. };
  13481. enum Orientation
  13482. {
  13483. O_HORIZONTAL,
  13484. O_VERTICAL,
  13485. };
  13486. enum Orientation2D
  13487. {
  13488. O_ORTHOGONAL,
  13489. O_ISOMETRIC,
  13490. O_STAGGERED,
  13491. };
  13492. enum PassLightingMode
  13493. {
  13494. LIGHTING_UNLIT,
  13495. LIGHTING_PERVERTEX,
  13496. LIGHTING_PERPIXEL,
  13497. };
  13498. enum PrimitiveType
  13499. {
  13500. TRIANGLE_LIST,
  13501. LINE_LIST,
  13502. POINT_LIST,
  13503. TRIANGLE_STRIP,
  13504. LINE_STRIP,
  13505. TRIANGLE_FAN,
  13506. };
  13507. enum RayQueryLevel
  13508. {
  13509. RAY_AABB,
  13510. RAY_OBB,
  13511. RAY_TRIANGLE,
  13512. RAY_TRIANGLE_UV,
  13513. };
  13514. enum RenderCommandSortMode
  13515. {
  13516. SORT_FRONTTOBACK,
  13517. SORT_BACKTOFRONT,
  13518. };
  13519. enum RenderCommandType
  13520. {
  13521. CMD_NONE,
  13522. CMD_CLEAR,
  13523. CMD_SCENEPASS,
  13524. CMD_QUAD,
  13525. CMD_FORWARDLIGHTS,
  13526. CMD_LIGHTVOLUMES,
  13527. CMD_RENDERUI,
  13528. };
  13529. enum RenderSurfaceUpdateMode
  13530. {
  13531. SURFACE_MANUALUPDATE,
  13532. SURFACE_UPDATEVISIBLE,
  13533. SURFACE_UPDATEALWAYS,
  13534. };
  13535. enum RenderTargetSizeMode
  13536. {
  13537. SIZE_ABSOLUTE,
  13538. SIZE_VIEWPORTDIVISOR,
  13539. SIZE_VIEWPORTMULTIPLIER,
  13540. };
  13541. enum ShadowQuality
  13542. {
  13543. SHADOWQUALITY_SIMPLE_16BIT,
  13544. SHADOWQUALITY_SIMPLE_24BIT,
  13545. SHADOWQUALITY_PCF_16BIT,
  13546. SHADOWQUALITY_PCF_24BIT,
  13547. SHADOWQUALITY_VSM,
  13548. SHADOWQUALITY_BLUR_VSM,
  13549. };
  13550. enum ShapeType
  13551. {
  13552. SHAPE_BOX,
  13553. SHAPE_SPHERE,
  13554. SHAPE_STATICPLANE,
  13555. SHAPE_CYLINDER,
  13556. SHAPE_CAPSULE,
  13557. SHAPE_CONE,
  13558. SHAPE_TRIANGLEMESH,
  13559. SHAPE_CONVEXHULL,
  13560. SHAPE_TERRAIN,
  13561. };
  13562. enum TextEffect
  13563. {
  13564. TE_NONE,
  13565. TE_SHADOW,
  13566. TE_STROKE,
  13567. };
  13568. enum TextureAddressMode
  13569. {
  13570. ADDRESS_WRAP,
  13571. ADDRESS_MIRROR,
  13572. ADDRESS_CLAMP,
  13573. ADDRESS_BORDER,
  13574. };
  13575. enum TextureCoordinate
  13576. {
  13577. COORD_U,
  13578. COORD_V,
  13579. COORD_W,
  13580. };
  13581. enum TextureFilterMode
  13582. {
  13583. FILTER_NEAREST,
  13584. FILTER_BILINEAR,
  13585. FILTER_TRILINEAR,
  13586. FILTER_ANISOTROPIC,
  13587. FILTER_DEFAULT,
  13588. };
  13589. enum TextureUnit
  13590. {
  13591. TU_DIFFUSE,
  13592. TU_ALBEDOBUFFER,
  13593. TU_NORMAL,
  13594. TU_NORMALBUFFER,
  13595. TU_SPECULAR,
  13596. TU_EMISSIVE,
  13597. TU_ENVIRONMENT,
  13598. TU_LIGHTRAMP,
  13599. TU_LIGHTSHAPE,
  13600. TU_SHADOWMAP,
  13601. TU_CUSTOM1,
  13602. TU_CUSTOM2,
  13603. TU_VOLUMEMAP,
  13604. TU_FACESELECT,
  13605. TU_INDIRECTION,
  13606. TU_DEPTHBUFFER,
  13607. TU_LIGHTBUFFER,
  13608. TU_ZONE,
  13609. MAX_MATERIAL_TEXTURE_UNITS,
  13610. MAX_TEXTURE_UNITS,
  13611. };
  13612. enum TextureUsage
  13613. {
  13614. TEXTURE_STATIC,
  13615. TEXTURE_DYNAMIC,
  13616. TEXTURE_RENDERTARGET,
  13617. TEXTURE_DEPTHSTENCIL,
  13618. };
  13619. enum TileMapLayerType2D
  13620. {
  13621. LT_TILE_LAYER,
  13622. LT_OBJECT_GROUP,
  13623. LT_IMAGE_LAYER,
  13624. LT_INVALID,
  13625. };
  13626. enum TileObjectType2D
  13627. {
  13628. OT_RECTANGLE,
  13629. OT_ELLIPSE,
  13630. OT_POLYGON,
  13631. OT_POLYLINE,
  13632. OT_TILE,
  13633. OT_INVALID,
  13634. };
  13635. enum TransformSpace
  13636. {
  13637. TS_LOCAL,
  13638. TS_PARENT,
  13639. TS_WORLD,
  13640. };
  13641. enum TraversalMode
  13642. {
  13643. TM_BREADTH_FIRST,
  13644. TM_DEPTH_FIRST,
  13645. };
  13646. enum VariantType
  13647. {
  13648. VAR_NONE,
  13649. VAR_INT,
  13650. VAR_BOOL,
  13651. VAR_FLOAT,
  13652. VAR_VECTOR2,
  13653. VAR_VECTOR3,
  13654. VAR_VECTOR4,
  13655. VAR_QUATERNION,
  13656. VAR_COLOR,
  13657. VAR_STRING,
  13658. VAR_BUFFER,
  13659. VAR_VOIDPTR,
  13660. VAR_RESOURCEREF,
  13661. VAR_RESOURCEREFLIST,
  13662. VAR_VARIANTVECTOR,
  13663. VAR_VARIANTMAP,
  13664. VAR_INTRECT,
  13665. VAR_INTVECTOR2,
  13666. VAR_PTR,
  13667. VAR_MATRIX3,
  13668. VAR_MATRIX3X4,
  13669. VAR_MATRIX4,
  13670. VAR_DOUBLE,
  13671. VAR_STRINGVECTOR,
  13672. };
  13673. enum VerticalAlignment
  13674. {
  13675. VA_TOP,
  13676. VA_CENTER,
  13677. VA_BOTTOM,
  13678. };
  13679. enum WrapMode
  13680. {
  13681. WM_LOOP,
  13682. WM_ONCE,
  13683. WM_CLAMP,
  13684. };
  13685. // Global functions
  13686. float Abs(float);
  13687. float Acos(float);
  13688. String AddTrailingSlash(const String&);
  13689. float Asin(float);
  13690. float Atan(float);
  13691. float Atan2(float, float);
  13692. float Ceil(float);
  13693. float Clamp(float, float, float);
  13694. int Clamp(int, int, int);
  13695. void ClearDelayedExecute(const String& = String ( ));
  13696. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13697. float Cos(float);
  13698. uint CountSetBits(uint);
  13699. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13700. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13701. bool Equals(float, float);
  13702. void ErrorDialog(const String&, const String&);
  13703. float Floor(float);
  13704. uint GetAlphaFormat();
  13705. Array<String> GetArguments();
  13706. String GetConsoleInput();
  13707. uint GetDepthStencilFormat();
  13708. Object GetEventSender();
  13709. String GetExtension(const String&, bool = true);
  13710. String GetFileName(const String&);
  13711. String GetFileNameAndExtension(const String&, bool = false);
  13712. String GetFileSizeString(uint64);
  13713. uint GetFloat16Format();
  13714. uint GetFloat32Format();
  13715. uint GetFormat(const String&);
  13716. Variant GetGlobalVar(const String&);
  13717. String GetInternalPath(const String&);
  13718. uint GetLinearDepthFormat();
  13719. uint GetLuminanceAlphaFormat();
  13720. uint GetLuminanceFormat();
  13721. uint GetMaxBones();
  13722. String GetMiniDumpDir();
  13723. uint GetNumLogicalCPUs();
  13724. uint GetNumPhysicalCPUs();
  13725. Array<String> GetObjectCategories();
  13726. Array<String> GetObjectsByCategory(const String&);
  13727. String GetParentPath(const String&);
  13728. String GetPath(const String&);
  13729. String GetPlatform();
  13730. uint GetRG16Format();
  13731. uint GetRGBA16Format();
  13732. uint GetRGBAFloat16Format();
  13733. uint GetRGBAFloat32Format();
  13734. uint GetRGBAFormat();
  13735. uint GetRGBFormat();
  13736. uint GetRGFloat16Format();
  13737. uint GetRGFloat32Format();
  13738. uint GetRandomSeed();
  13739. uint GetReadableDepthFormat();
  13740. String GetTextureUnitName(TextureUnit);
  13741. bool HasSubscribedToEvent(Object, const String&);
  13742. bool HasSubscribedToEvent(const String&);
  13743. bool IsAbsolutePath(const String&);
  13744. bool IsAlpha(uint);
  13745. bool IsDigit(uint);
  13746. bool IsNaN(float);
  13747. bool IsPowerOfTwo(uint);
  13748. String Join(Array<String>&, const String&);
  13749. float Lerp(float, float, float);
  13750. void MarkNetworkUpdate();
  13751. float Max(float, float);
  13752. int Max(int, int);
  13753. float Min(float, float);
  13754. int Min(int, int);
  13755. float Mod(float, float);
  13756. uint NextPowerOfTwo(uint);
  13757. void OpenConsoleWindow();
  13758. float Pow(float, float);
  13759. void Print(bool, bool = false);
  13760. void Print(const String&, bool = false);
  13761. void Print(const Variant&, bool = false);
  13762. void Print(float, bool = false);
  13763. void Print(int, bool = false);
  13764. void Print(uint, bool = false);
  13765. void PrintCallStack(bool = false);
  13766. float Random();
  13767. float Random(float);
  13768. float Random(float, float);
  13769. int RandomInt();
  13770. int RandomInt(int);
  13771. int RandomInt(int, int);
  13772. float RandomNormal(float, float);
  13773. void Remove();
  13774. String RemoveTrailingSlash(const String&);
  13775. String ReplaceExtension(const String&, const String&);
  13776. uint SDBMHash(uint, uint8);
  13777. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13778. void SetGlobalVar(const String&, Variant&);
  13779. void SetMiniDumpDir(const String&);
  13780. void SetRandomSeed(uint);
  13781. float Sign(float);
  13782. float Sin(float);
  13783. float SmoothStep(float, float, float);
  13784. float Sqrt(float);
  13785. const String& GetTypeName(StringHash);
  13786. void SubscribeToEvent(Object, const String&, const String&);
  13787. void SubscribeToEvent(const String&, const String&);
  13788. float Tan(float);
  13789. uint ToLower(uint);
  13790. String ToStringHex(int);
  13791. uint ToUpper(uint);
  13792. void UnsubscribeFromAllEvents();
  13793. void UnsubscribeFromAllEventsExcept(Array<String>);
  13794. void UnsubscribeFromEvent(Object, const String&);
  13795. void UnsubscribeFromEvent(const String&);
  13796. void UnsubscribeFromEvents(Object);
  13797. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13798. // Global properties
  13799. DBAPI DBAPI;
  13800. Audio audio;
  13801. ResourceCache cache;
  13802. Console console;
  13803. Database database;
  13804. DebugHud debugHud;
  13805. DebugRenderer debugRenderer;
  13806. Engine engine;
  13807. FileSystem fileSystem;
  13808. VariantMap globalVars;
  13809. Graphics graphics;
  13810. Input input;
  13811. Localization localization;
  13812. Log log;
  13813. Network network;
  13814. Node node;
  13815. Octree octree;
  13816. PhysicsWorld physicsWorld;
  13817. PhysicsWorld2D physicsWorld2D;
  13818. Renderer renderer;
  13819. ResourceCache resourceCache;
  13820. Scene scene;
  13821. Script script;
  13822. ScriptFile scriptFile;
  13823. ScriptInstance self;
  13824. Time time;
  13825. UI ui;
  13826. // Global constants
  13827. uint AM_COMPONENTID;
  13828. uint AM_DEFAULT;
  13829. uint AM_FILE;
  13830. uint AM_LATESTDATA;
  13831. uint AM_NET;
  13832. uint AM_NODEID;
  13833. uint AM_NODEIDVECTOR;
  13834. uint AM_NOEDIT;
  13835. Color BLACK;
  13836. Color BLUE;
  13837. uint8 CHANNEL_POSITION;
  13838. uint8 CHANNEL_ROTATION;
  13839. uint8 CHANNEL_SCALE;
  13840. uint CLEAR_COLOR;
  13841. uint CLEAR_DEPTH;
  13842. uint CLEAR_STENCIL;
  13843. int CONTROLLER_AXIS_LEFTX;
  13844. int CONTROLLER_AXIS_LEFTY;
  13845. int CONTROLLER_AXIS_RIGHTX;
  13846. int CONTROLLER_AXIS_RIGHTY;
  13847. int CONTROLLER_AXIS_TRIGGERLEFT;
  13848. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13849. int CONTROLLER_BUTTON_A;
  13850. int CONTROLLER_BUTTON_B;
  13851. int CONTROLLER_BUTTON_BACK;
  13852. int CONTROLLER_BUTTON_DPAD_DOWN;
  13853. int CONTROLLER_BUTTON_DPAD_LEFT;
  13854. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13855. int CONTROLLER_BUTTON_DPAD_UP;
  13856. int CONTROLLER_BUTTON_GUIDE;
  13857. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13858. int CONTROLLER_BUTTON_LEFTSTICK;
  13859. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13860. int CONTROLLER_BUTTON_RIGHTSTICK;
  13861. int CONTROLLER_BUTTON_START;
  13862. int CONTROLLER_BUTTON_X;
  13863. int CONTROLLER_BUTTON_Y;
  13864. Color CYAN;
  13865. uint DD_DISABLED;
  13866. uint DD_SOURCE;
  13867. uint DD_SOURCE_AND_TARGET;
  13868. uint DD_TARGET;
  13869. uint DEBUGHUD_SHOW_ALL;
  13870. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13871. uint DEBUGHUD_SHOW_MEMORY;
  13872. uint DEBUGHUD_SHOW_MODE;
  13873. uint DEBUGHUD_SHOW_NONE;
  13874. uint DEBUGHUD_SHOW_PROFILER;
  13875. uint DEBUGHUD_SHOW_STATS;
  13876. uint DEFAULT_LIGHTMASK;
  13877. uint DEFAULT_VIEWMASK;
  13878. uint DRAWABLE_ANY;
  13879. uint DRAWABLE_GEOMETRY;
  13880. uint DRAWABLE_GEOMETRY2D;
  13881. uint DRAWABLE_LIGHT;
  13882. uint DRAWABLE_ZONE;
  13883. uint FIRST_LOCAL_ID;
  13884. uint FIRST_REPLICATED_ID;
  13885. Color GRAY;
  13886. Color GREEN;
  13887. int HAT_CENTER;
  13888. int HAT_DOWN;
  13889. int HAT_LEFT;
  13890. int HAT_RIGHT;
  13891. int HAT_UP;
  13892. int KEY_0;
  13893. int KEY_1;
  13894. int KEY_2;
  13895. int KEY_3;
  13896. int KEY_4;
  13897. int KEY_5;
  13898. int KEY_6;
  13899. int KEY_7;
  13900. int KEY_8;
  13901. int KEY_9;
  13902. int KEY_A;
  13903. int KEY_ALT;
  13904. int KEY_APPLICATION;
  13905. int KEY_B;
  13906. int KEY_BACKSPACE;
  13907. int KEY_C;
  13908. int KEY_CAPSLOCK;
  13909. int KEY_CTRL;
  13910. int KEY_D;
  13911. int KEY_DELETE;
  13912. int KEY_DOWN;
  13913. int KEY_E;
  13914. int KEY_END;
  13915. int KEY_ESC;
  13916. int KEY_F;
  13917. int KEY_F1;
  13918. int KEY_F10;
  13919. int KEY_F11;
  13920. int KEY_F12;
  13921. int KEY_F13;
  13922. int KEY_F14;
  13923. int KEY_F15;
  13924. int KEY_F16;
  13925. int KEY_F17;
  13926. int KEY_F18;
  13927. int KEY_F19;
  13928. int KEY_F2;
  13929. int KEY_F20;
  13930. int KEY_F21;
  13931. int KEY_F22;
  13932. int KEY_F23;
  13933. int KEY_F24;
  13934. int KEY_F3;
  13935. int KEY_F4;
  13936. int KEY_F5;
  13937. int KEY_F6;
  13938. int KEY_F7;
  13939. int KEY_F8;
  13940. int KEY_F9;
  13941. int KEY_G;
  13942. int KEY_GUI;
  13943. int KEY_H;
  13944. int KEY_HOME;
  13945. int KEY_I;
  13946. int KEY_INSERT;
  13947. int KEY_J;
  13948. int KEY_K;
  13949. int KEY_KP_0;
  13950. int KEY_KP_1;
  13951. int KEY_KP_2;
  13952. int KEY_KP_3;
  13953. int KEY_KP_4;
  13954. int KEY_KP_5;
  13955. int KEY_KP_6;
  13956. int KEY_KP_7;
  13957. int KEY_KP_8;
  13958. int KEY_KP_9;
  13959. int KEY_KP_DIVIDE;
  13960. int KEY_KP_ENTER;
  13961. int KEY_KP_MINUS;
  13962. int KEY_KP_MULTIPLY;
  13963. int KEY_KP_PERIOD;
  13964. int KEY_KP_PLUS;
  13965. int KEY_L;
  13966. int KEY_LALT;
  13967. int KEY_LCTRL;
  13968. int KEY_LEFT;
  13969. int KEY_LGUI;
  13970. int KEY_LSHIFT;
  13971. int KEY_M;
  13972. int KEY_N;
  13973. int KEY_NUMLOCKCLEAR;
  13974. int KEY_O;
  13975. int KEY_P;
  13976. int KEY_PAGEDOWN;
  13977. int KEY_PAGEUP;
  13978. int KEY_PAUSE;
  13979. int KEY_PRINTSCREEN;
  13980. int KEY_Q;
  13981. int KEY_R;
  13982. int KEY_RALT;
  13983. int KEY_RCTRL;
  13984. int KEY_RETURN;
  13985. int KEY_RETURN2;
  13986. int KEY_RGUI;
  13987. int KEY_RIGHT;
  13988. int KEY_RSHIFT;
  13989. int KEY_S;
  13990. int KEY_SCROLLLOCK;
  13991. int KEY_SELECT;
  13992. int KEY_SHIFT;
  13993. int KEY_SPACE;
  13994. int KEY_T;
  13995. int KEY_TAB;
  13996. int KEY_U;
  13997. int KEY_UP;
  13998. int KEY_V;
  13999. int KEY_W;
  14000. int KEY_X;
  14001. int KEY_Y;
  14002. int KEY_Z;
  14003. uint LAST_LOCAL_ID;
  14004. uint LAST_REPLICATED_ID;
  14005. int LOG_DEBUG;
  14006. int LOG_ERROR;
  14007. int LOG_INFO;
  14008. int LOG_NONE;
  14009. int LOG_WARNING;
  14010. Color MAGENTA;
  14011. uint MASK_BLENDINDICES;
  14012. uint MASK_BLENDWEIGHTS;
  14013. uint MASK_COLOR;
  14014. uint MASK_CUBETEXCOORD1;
  14015. uint MASK_CUBETEXCOORD2;
  14016. uint MASK_DEFAULT;
  14017. uint MASK_INSTANCEMATRIX1;
  14018. uint MASK_INSTANCEMATRIX2;
  14019. uint MASK_INSTANCEMATRIX3;
  14020. uint MASK_NONE;
  14021. uint MASK_NORMAL;
  14022. uint MASK_OBJECTINDEX;
  14023. uint MASK_POSITION;
  14024. uint MASK_TANGENT;
  14025. uint MASK_TEXCOORD1;
  14026. uint MASK_TEXCOORD2;
  14027. int MOUSEB_LEFT;
  14028. int MOUSEB_MIDDLE;
  14029. int MOUSEB_RIGHT;
  14030. float M_DEGTORAD;
  14031. float M_DEGTORAD_2;
  14032. float M_EPSILON;
  14033. float M_HALF_PI;
  14034. float M_INFINITY;
  14035. float M_LARGE_EPSILON;
  14036. float M_LARGE_VALUE;
  14037. int M_MAX_INT;
  14038. uint M_MAX_UNSIGNED;
  14039. int M_MIN_INT;
  14040. uint M_MIN_UNSIGNED;
  14041. float M_PI;
  14042. float M_RADTODEG;
  14043. uint NPOS;
  14044. float PIXEL_SIZE;
  14045. int QUALITY_HIGH;
  14046. int QUALITY_LOW;
  14047. int QUALITY_MAX;
  14048. int QUALITY_MEDIUM;
  14049. int QUAL_ALT;
  14050. int QUAL_ANY;
  14051. int QUAL_CTRL;
  14052. int QUAL_SHIFT;
  14053. Color RED;
  14054. int SCANCODE_0;
  14055. int SCANCODE_1;
  14056. int SCANCODE_2;
  14057. int SCANCODE_3;
  14058. int SCANCODE_4;
  14059. int SCANCODE_5;
  14060. int SCANCODE_6;
  14061. int SCANCODE_7;
  14062. int SCANCODE_8;
  14063. int SCANCODE_9;
  14064. int SCANCODE_A;
  14065. int SCANCODE_AC_BACK;
  14066. int SCANCODE_AC_BOOKMARKS;
  14067. int SCANCODE_AC_FORWARD;
  14068. int SCANCODE_AC_HOME;
  14069. int SCANCODE_AC_REFRESH;
  14070. int SCANCODE_AC_SEARCH;
  14071. int SCANCODE_AC_STOP;
  14072. int SCANCODE_AGAIN;
  14073. int SCANCODE_ALT;
  14074. int SCANCODE_ALTERASE;
  14075. int SCANCODE_APOSTROPHE;
  14076. int SCANCODE_APP1;
  14077. int SCANCODE_APP2;
  14078. int SCANCODE_APPLICATION;
  14079. int SCANCODE_AUDIOMUTE;
  14080. int SCANCODE_AUDIONEXT;
  14081. int SCANCODE_AUDIOPLAY;
  14082. int SCANCODE_AUDIOPREV;
  14083. int SCANCODE_AUDIOSTOP;
  14084. int SCANCODE_B;
  14085. int SCANCODE_BACKSLASH;
  14086. int SCANCODE_BACKSPACE;
  14087. int SCANCODE_BRIGHTNESSDOWN;
  14088. int SCANCODE_BRIGHTNESSUP;
  14089. int SCANCODE_C;
  14090. int SCANCODE_CALCULATOR;
  14091. int SCANCODE_CANCEL;
  14092. int SCANCODE_CAPSLOCK;
  14093. int SCANCODE_CLEAR;
  14094. int SCANCODE_CLEARAGAIN;
  14095. int SCANCODE_COMMA;
  14096. int SCANCODE_COMPUTER;
  14097. int SCANCODE_COPY;
  14098. int SCANCODE_CRSEL;
  14099. int SCANCODE_CTRL;
  14100. int SCANCODE_CURRENCYSUBUNIT;
  14101. int SCANCODE_CURRENCYUNIT;
  14102. int SCANCODE_CUT;
  14103. int SCANCODE_D;
  14104. int SCANCODE_DECIMALSEPARATOR;
  14105. int SCANCODE_DELETE;
  14106. int SCANCODE_DISPLAYSWITCH;
  14107. int SCANCODE_DOWN;
  14108. int SCANCODE_E;
  14109. int SCANCODE_EJECT;
  14110. int SCANCODE_END;
  14111. int SCANCODE_EQUALS;
  14112. int SCANCODE_ESCAPE;
  14113. int SCANCODE_EXECUTE;
  14114. int SCANCODE_EXSEL;
  14115. int SCANCODE_F;
  14116. int SCANCODE_F1;
  14117. int SCANCODE_F10;
  14118. int SCANCODE_F11;
  14119. int SCANCODE_F12;
  14120. int SCANCODE_F13;
  14121. int SCANCODE_F14;
  14122. int SCANCODE_F15;
  14123. int SCANCODE_F16;
  14124. int SCANCODE_F17;
  14125. int SCANCODE_F18;
  14126. int SCANCODE_F19;
  14127. int SCANCODE_F2;
  14128. int SCANCODE_F20;
  14129. int SCANCODE_F21;
  14130. int SCANCODE_F22;
  14131. int SCANCODE_F23;
  14132. int SCANCODE_F24;
  14133. int SCANCODE_F3;
  14134. int SCANCODE_F4;
  14135. int SCANCODE_F5;
  14136. int SCANCODE_F6;
  14137. int SCANCODE_F7;
  14138. int SCANCODE_F8;
  14139. int SCANCODE_F9;
  14140. int SCANCODE_FIND;
  14141. int SCANCODE_G;
  14142. int SCANCODE_GRAVE;
  14143. int SCANCODE_GUI;
  14144. int SCANCODE_H;
  14145. int SCANCODE_HELP;
  14146. int SCANCODE_HOME;
  14147. int SCANCODE_I;
  14148. int SCANCODE_INSERT;
  14149. int SCANCODE_INTERNATIONAL1;
  14150. int SCANCODE_INTERNATIONAL2;
  14151. int SCANCODE_INTERNATIONAL3;
  14152. int SCANCODE_INTERNATIONAL4;
  14153. int SCANCODE_INTERNATIONAL5;
  14154. int SCANCODE_INTERNATIONAL6;
  14155. int SCANCODE_INTERNATIONAL7;
  14156. int SCANCODE_INTERNATIONAL8;
  14157. int SCANCODE_INTERNATIONAL9;
  14158. int SCANCODE_J;
  14159. int SCANCODE_K;
  14160. int SCANCODE_KBDILLUMDOWN;
  14161. int SCANCODE_KBDILLUMTOGGLE;
  14162. int SCANCODE_KBDILLUMUP;
  14163. int SCANCODE_KP_0;
  14164. int SCANCODE_KP_00;
  14165. int SCANCODE_KP_000;
  14166. int SCANCODE_KP_1;
  14167. int SCANCODE_KP_2;
  14168. int SCANCODE_KP_3;
  14169. int SCANCODE_KP_4;
  14170. int SCANCODE_KP_5;
  14171. int SCANCODE_KP_6;
  14172. int SCANCODE_KP_7;
  14173. int SCANCODE_KP_8;
  14174. int SCANCODE_KP_9;
  14175. int SCANCODE_KP_A;
  14176. int SCANCODE_KP_AMPERSAND;
  14177. int SCANCODE_KP_AT;
  14178. int SCANCODE_KP_B;
  14179. int SCANCODE_KP_BACKSPACE;
  14180. int SCANCODE_KP_BINARY;
  14181. int SCANCODE_KP_C;
  14182. int SCANCODE_KP_CLEAR;
  14183. int SCANCODE_KP_CLEARENTRY;
  14184. int SCANCODE_KP_COLON;
  14185. int SCANCODE_KP_COMMA;
  14186. int SCANCODE_KP_D;
  14187. int SCANCODE_KP_DBLAMPERSAND;
  14188. int SCANCODE_KP_DBLVERTICALBAR;
  14189. int SCANCODE_KP_DECIMAL;
  14190. int SCANCODE_KP_DIVIDE;
  14191. int SCANCODE_KP_E;
  14192. int SCANCODE_KP_ENTER;
  14193. int SCANCODE_KP_EQUALS;
  14194. int SCANCODE_KP_EQUALSAS400;
  14195. int SCANCODE_KP_EXCLAM;
  14196. int SCANCODE_KP_F;
  14197. int SCANCODE_KP_GREATER;
  14198. int SCANCODE_KP_HASH;
  14199. int SCANCODE_KP_HEXADECIMAL;
  14200. int SCANCODE_KP_LEFTBRACE;
  14201. int SCANCODE_KP_LEFTPAREN;
  14202. int SCANCODE_KP_LESS;
  14203. int SCANCODE_KP_MEMADD;
  14204. int SCANCODE_KP_MEMCLEAR;
  14205. int SCANCODE_KP_MEMDIVIDE;
  14206. int SCANCODE_KP_MEMMULTIPLY;
  14207. int SCANCODE_KP_MEMRECALL;
  14208. int SCANCODE_KP_MEMSTORE;
  14209. int SCANCODE_KP_MEMSUBTRACT;
  14210. int SCANCODE_KP_MINUS;
  14211. int SCANCODE_KP_MULTIPLY;
  14212. int SCANCODE_KP_OCTAL;
  14213. int SCANCODE_KP_PERCENT;
  14214. int SCANCODE_KP_PERIOD;
  14215. int SCANCODE_KP_PLUS;
  14216. int SCANCODE_KP_PLUSMINUS;
  14217. int SCANCODE_KP_POWER;
  14218. int SCANCODE_KP_RIGHTBRACE;
  14219. int SCANCODE_KP_RIGHTPAREN;
  14220. int SCANCODE_KP_SPACE;
  14221. int SCANCODE_KP_TAB;
  14222. int SCANCODE_KP_VERTICALBAR;
  14223. int SCANCODE_KP_XOR;
  14224. int SCANCODE_L;
  14225. int SCANCODE_LALT;
  14226. int SCANCODE_LANG1;
  14227. int SCANCODE_LANG2;
  14228. int SCANCODE_LANG3;
  14229. int SCANCODE_LANG4;
  14230. int SCANCODE_LANG5;
  14231. int SCANCODE_LANG6;
  14232. int SCANCODE_LANG7;
  14233. int SCANCODE_LANG8;
  14234. int SCANCODE_LANG9;
  14235. int SCANCODE_LCTRL;
  14236. int SCANCODE_LEFT;
  14237. int SCANCODE_LEFTBRACKET;
  14238. int SCANCODE_LGUI;
  14239. int SCANCODE_LSHIFT;
  14240. int SCANCODE_M;
  14241. int SCANCODE_MAIL;
  14242. int SCANCODE_MEDIASELECT;
  14243. int SCANCODE_MENU;
  14244. int SCANCODE_MINUS;
  14245. int SCANCODE_MODE;
  14246. int SCANCODE_MUTE;
  14247. int SCANCODE_N;
  14248. int SCANCODE_NONUSBACKSLASH;
  14249. int SCANCODE_NONUSHASH;
  14250. int SCANCODE_NUMLOCKCLEAR;
  14251. int SCANCODE_O;
  14252. int SCANCODE_OPER;
  14253. int SCANCODE_OUT;
  14254. int SCANCODE_P;
  14255. int SCANCODE_PAGEDOWN;
  14256. int SCANCODE_PAGEUP;
  14257. int SCANCODE_PASTE;
  14258. int SCANCODE_PAUSE;
  14259. int SCANCODE_PERIOD;
  14260. int SCANCODE_POWER;
  14261. int SCANCODE_PRINTSCREEN;
  14262. int SCANCODE_PRIOR;
  14263. int SCANCODE_Q;
  14264. int SCANCODE_R;
  14265. int SCANCODE_RALT;
  14266. int SCANCODE_RCTRL;
  14267. int SCANCODE_RETURN;
  14268. int SCANCODE_RETURN2;
  14269. int SCANCODE_RGUI;
  14270. int SCANCODE_RIGHT;
  14271. int SCANCODE_RIGHTBRACKET;
  14272. int SCANCODE_RSHIFT;
  14273. int SCANCODE_S;
  14274. int SCANCODE_SCROLLLOCK;
  14275. int SCANCODE_SELECT;
  14276. int SCANCODE_SEMICOLON;
  14277. int SCANCODE_SEPARATOR;
  14278. int SCANCODE_SHIFT;
  14279. int SCANCODE_SLASH;
  14280. int SCANCODE_SLEEP;
  14281. int SCANCODE_SPACE;
  14282. int SCANCODE_STOP;
  14283. int SCANCODE_SYSREQ;
  14284. int SCANCODE_T;
  14285. int SCANCODE_TAB;
  14286. int SCANCODE_THOUSANDSSEPARATOR;
  14287. int SCANCODE_U;
  14288. int SCANCODE_UNDO;
  14289. int SCANCODE_UNKNOWN;
  14290. int SCANCODE_UP;
  14291. int SCANCODE_V;
  14292. int SCANCODE_VOLUMEDOWN;
  14293. int SCANCODE_VOLUMEUP;
  14294. int SCANCODE_W;
  14295. int SCANCODE_WWW;
  14296. int SCANCODE_X;
  14297. int SCANCODE_Y;
  14298. int SCANCODE_Z;
  14299. uint SCAN_DIRS;
  14300. uint SCAN_FILES;
  14301. uint SCAN_HIDDEN;
  14302. String SOUND_AMBIENT;
  14303. String SOUND_EFFECT;
  14304. String SOUND_MASTER;
  14305. String SOUND_MUSIC;
  14306. String SOUND_VOICE;
  14307. Color TRANSPARENT;
  14308. uint VO_DISABLE_OCCLUSION;
  14309. uint VO_DISABLE_SHADOWS;
  14310. uint VO_LOW_MATERIAL_QUALITY;
  14311. uint VO_NONE;
  14312. Color WHITE;
  14313. Color YELLOW;