AngelScriptAPI.h 366 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718
  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. bool HasSubscribedToEvent(Object, const String&);
  291. bool HasSubscribedToEvent(const String&);
  292. bool Load(File);
  293. bool Load(VectorBuffer&);
  294. bool RemoveAllTracks();
  295. void RemoveAllTriggers();
  296. bool RemoveTrack(const String&);
  297. void RemoveTrigger(uint);
  298. bool Save(File) const;
  299. bool Save(VectorBuffer&) const;
  300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  301. // Properties:
  302. String animationName;
  303. /* readonly */
  304. String category;
  305. float length;
  306. /* readonly */
  307. uint memoryUse;
  308. String name;
  309. /* readonly */
  310. uint numTracks;
  311. uint numTriggers;
  312. /* readonly */
  313. int refs;
  314. /* readonly */
  315. Array<AnimationTrack> tracks;
  316. Array<AnimationTriggerPoint> triggers;
  317. /* readonly */
  318. StringHash type;
  319. /* readonly */
  320. String typeName;
  321. /* readonly */
  322. uint useTimer;
  323. /* readonly */
  324. int weakRefs;
  325. };
  326. class AnimationController
  327. {
  328. // Methods:
  329. void ApplyAttributes();
  330. void DrawDebugGeometry(DebugRenderer, bool);
  331. bool Fade(const String&, float, float);
  332. bool FadeOthers(const String&, float, float);
  333. AnimationState GetAnimationState(StringHash) const;
  334. AnimationState GetAnimationState(const String&) const;
  335. Variant GetAttribute(const String&) const;
  336. ValueAnimation GetAttributeAnimation(const String&) const;
  337. float GetAttributeAnimationSpeed(const String&) const;
  338. float GetAttributeAnimationTime(const String&) const;
  339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  340. Variant GetAttributeDefault(const String&) const;
  341. float GetAutoFade(const String&) const;
  342. AnimationBlendMode GetBlendMode(const String&) const;
  343. float GetFadeTarget(const String&) const;
  344. float GetFadeTime(const String&) const;
  345. bool GetInterceptNetworkUpdate(const String&) const;
  346. uint8 GetLayer(const String&) const;
  347. float GetLength(const String&) const;
  348. bool GetLooped(const String&) const;
  349. bool GetRemoveOnCompletion(const String&);
  350. float GetSpeed(const String&) const;
  351. float GetTime(const String&) const;
  352. float GetWeight(const String&) const;
  353. bool HasSubscribedToEvent(Object, const String&);
  354. bool HasSubscribedToEvent(const String&);
  355. bool IsAtEnd(const String&) const;
  356. bool IsFadingIn(const String&) const;
  357. bool IsFadingOut(const String&) const;
  358. bool IsPlaying(const String&) const;
  359. bool Load(File, bool = false);
  360. bool Load(VectorBuffer&, bool = false);
  361. bool LoadJSON(const JSONValue&, bool = false);
  362. bool LoadXML(const XMLElement&, bool = false);
  363. void MarkNetworkUpdate() const;
  364. bool Play(const String&, uint8, bool, float = 0.0f);
  365. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  366. void Remove();
  367. void RemoveAttributeAnimation(const String&);
  368. void RemoveInstanceDefault();
  369. void RemoveObjectAnimation();
  370. void ResetToDefault();
  371. bool Save(File) const;
  372. bool Save(VectorBuffer&) const;
  373. bool SaveJSON(JSONValue&) const;
  374. bool SaveXML(XMLElement&) const;
  375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  376. void SetAnimationTime(float);
  377. bool SetAttribute(const String&, const Variant&);
  378. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  379. void SetAttributeAnimationSpeed(const String&, float);
  380. void SetAttributeAnimationTime(const String&, float);
  381. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  382. bool SetAutoFade(const String&, float);
  383. bool SetBlendMode(const String&, AnimationBlendMode);
  384. void SetInterceptNetworkUpdate(const String&, bool);
  385. bool SetLayer(const String&, uint8);
  386. bool SetLooped(const String&, bool);
  387. bool SetRemoveOnCompletion(const String&, bool);
  388. bool SetSpeed(const String&, float);
  389. bool SetStartBone(const String&, const String&);
  390. bool SetTime(const String&, float);
  391. bool SetWeight(const String&, float);
  392. void Stop(const String&, float = 0.0f);
  393. void StopAll(float = 0.0f);
  394. void StopLayer(uint8, float = 0.0f);
  395. const String& GetStartBone(const String&) const;
  396. // Properties:
  397. bool animationEnabled;
  398. /* readonly */
  399. Array<Variant> attributeDefaults;
  400. /* readonly */
  401. Array<AttributeInfo> attributeInfos;
  402. Array<Variant> attributes;
  403. /* readonly */
  404. String category;
  405. bool enabled;
  406. /* readonly */
  407. bool enabledEffective;
  408. /* readonly */
  409. uint id;
  410. /* readonly */
  411. Node node;
  412. /* readonly */
  413. uint numAttributes;
  414. ObjectAnimation objectAnimation;
  415. /* readonly */
  416. int refs;
  417. bool temporary;
  418. /* readonly */
  419. StringHash type;
  420. /* readonly */
  421. String typeName;
  422. /* readonly */
  423. int weakRefs;
  424. };
  425. class AnimationKeyFrame
  426. {
  427. // Properties:
  428. Vector3 position;
  429. Quaternion rotation;
  430. Vector3 scale;
  431. float time;
  432. };
  433. class AnimationSet2D
  434. {
  435. // Methods:
  436. String GetAnimation(uint) const;
  437. bool HasSubscribedToEvent(Object, const String&);
  438. bool HasSubscribedToEvent(const String&);
  439. bool Load(File);
  440. bool Load(VectorBuffer&);
  441. bool Save(File) const;
  442. bool Save(VectorBuffer&) const;
  443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  444. // Properties:
  445. /* readonly */
  446. String category;
  447. /* readonly */
  448. uint memoryUse;
  449. String name;
  450. /* readonly */
  451. uint numAnimations;
  452. /* readonly */
  453. int refs;
  454. /* readonly */
  455. StringHash type;
  456. /* readonly */
  457. String typeName;
  458. /* readonly */
  459. uint useTimer;
  460. /* readonly */
  461. int weakRefs;
  462. };
  463. class AnimationState
  464. {
  465. // Methods:
  466. void AddTime(float);
  467. void AddWeight(float);
  468. void Apply();
  469. float GetBoneWeight(StringHash) const;
  470. float GetBoneWeight(uint) const;
  471. uint GetTrackIndex(StringHash) const;
  472. uint GetTrackIndex(const String&) const;
  473. void SetBoneWeight(StringHash, float, bool = false);
  474. void SetBoneWeight(const String&, float, bool = false);
  475. void SetBoneWeight(uint, float, bool = false);
  476. // Properties:
  477. /* readonly */
  478. Animation animation;
  479. AnimationBlendMode blendMode;
  480. Array<float> boneWeights;
  481. /* readonly */
  482. bool enabled;
  483. uint8 layer;
  484. /* readonly */
  485. float length;
  486. bool looped;
  487. /* readonly */
  488. AnimatedModel model;
  489. /* readonly */
  490. Node node;
  491. /* readonly */
  492. int refs;
  493. Bone startBone;
  494. float time;
  495. /* readonly */
  496. int weakRefs;
  497. float weight;
  498. };
  499. class AnimationTrack
  500. {
  501. // Methods:
  502. void AddKeyFrame(const AnimationKeyFrame&);
  503. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  504. void RemoveAllKeyFrames();
  505. void RemoveKeyFrame(uint);
  506. // Properties:
  507. uint8 channelMask;
  508. Array<AnimationKeyFrame> keyFrames;
  509. String name;
  510. StringHash nameHash;
  511. /* readonly */
  512. uint numKeyFrames;
  513. };
  514. class AnimationTriggerPoint
  515. {
  516. // Properties:
  517. Variant data;
  518. float time;
  519. };
  520. template <class T> class Array
  521. {
  522. // Methods:
  523. void Clear();
  524. void Erase(uint);
  525. int Find(const T&) const;
  526. int Find(uint, const T&) const;
  527. int FindByRef(const T&) const;
  528. int FindByRef(uint, const T&) const;
  529. void Insert(uint, const T&);
  530. void Pop();
  531. void Push(const T&);
  532. void Reserve(uint);
  533. void Resize(uint);
  534. void Reverse();
  535. void Sort();
  536. void Sort(uint, uint);
  537. void SortReverse();
  538. void SortReverse(uint, uint);
  539. // Properties:
  540. /* readonly */
  541. bool empty;
  542. uint length;
  543. };
  544. class AttributeInfo
  545. {
  546. // Properties:
  547. Variant defaultValue;
  548. /* readonly */
  549. Array<String> enumNames;
  550. uint mode;
  551. String name;
  552. VariantType type;
  553. };
  554. class Audio
  555. {
  556. // Methods:
  557. bool HasMasterGain(const String&) const;
  558. bool HasSubscribedToEvent(Object, const String&);
  559. bool HasSubscribedToEvent(const String&);
  560. bool Play();
  561. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  562. void SetMode(int, int, bool, bool = true);
  563. void Stop();
  564. // Properties:
  565. /* readonly */
  566. String category;
  567. /* readonly */
  568. bool initialized;
  569. /* readonly */
  570. bool interpolation;
  571. SoundListener listener;
  572. Array<float> masterGain;
  573. /* readonly */
  574. int mixRate;
  575. /* readonly */
  576. bool playing;
  577. /* readonly */
  578. int refs;
  579. /* readonly */
  580. uint sampleSize;
  581. /* readonly */
  582. bool stereo;
  583. /* readonly */
  584. StringHash type;
  585. /* readonly */
  586. String typeName;
  587. /* readonly */
  588. int weakRefs;
  589. };
  590. class BiasParameters
  591. {
  592. // Properties:
  593. float constantBias;
  594. float slopeScaledBias;
  595. };
  596. class Billboard
  597. {
  598. // Properties:
  599. Color color;
  600. Vector3 direction;
  601. bool enabled;
  602. Vector3 position;
  603. float rotation;
  604. Vector2 size;
  605. Rect uv;
  606. };
  607. class BillboardSet
  608. {
  609. // Methods:
  610. void ApplyAttributes();
  611. void Commit();
  612. void DrawDebugGeometry(DebugRenderer, bool);
  613. Variant GetAttribute(const String&) const;
  614. ValueAnimation GetAttributeAnimation(const String&) const;
  615. float GetAttributeAnimationSpeed(const String&) const;
  616. float GetAttributeAnimationTime(const String&) const;
  617. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  618. Variant GetAttributeDefault(const String&) const;
  619. bool GetInterceptNetworkUpdate(const String&) const;
  620. bool HasSubscribedToEvent(Object, const String&);
  621. bool HasSubscribedToEvent(const String&);
  622. bool IsInView(Camera) const;
  623. bool Load(File, bool = false);
  624. bool Load(VectorBuffer&, bool = false);
  625. bool LoadJSON(const JSONValue&, bool = false);
  626. bool LoadXML(const XMLElement&, bool = false);
  627. void MarkNetworkUpdate() const;
  628. void Remove();
  629. void RemoveAttributeAnimation(const String&);
  630. void RemoveInstanceDefault();
  631. void RemoveObjectAnimation();
  632. void ResetToDefault();
  633. bool Save(File) const;
  634. bool Save(VectorBuffer&) const;
  635. bool SaveJSON(JSONValue&) const;
  636. bool SaveXML(XMLElement&) const;
  637. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  638. void SetAnimationTime(float);
  639. bool SetAttribute(const String&, const Variant&);
  640. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  641. void SetAttributeAnimationSpeed(const String&, float);
  642. void SetAttributeAnimationTime(const String&, float);
  643. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  644. void SetInterceptNetworkUpdate(const String&, bool);
  645. // Properties:
  646. bool animationEnabled;
  647. float animationLodBias;
  648. /* readonly */
  649. Array<Variant> attributeDefaults;
  650. /* readonly */
  651. Array<AttributeInfo> attributeInfos;
  652. Array<Variant> attributes;
  653. /* readonly */
  654. Array<Billboard> billboards;
  655. /* readonly */
  656. BoundingBox boundingBox;
  657. bool castShadows;
  658. /* readonly */
  659. String category;
  660. float drawDistance;
  661. bool enabled;
  662. /* readonly */
  663. bool enabledEffective;
  664. FaceCameraMode faceCameraMode;
  665. /* readonly */
  666. uint id;
  667. /* readonly */
  668. bool inView;
  669. uint lightMask;
  670. float lodBias;
  671. Material material;
  672. uint maxLights;
  673. /* readonly */
  674. Node node;
  675. /* readonly */
  676. uint numAttributes;
  677. uint numBillboards;
  678. ObjectAnimation objectAnimation;
  679. bool occludee;
  680. bool occluder;
  681. /* readonly */
  682. int refs;
  683. bool relative;
  684. bool scaled;
  685. float shadowDistance;
  686. uint shadowMask;
  687. bool sorted;
  688. bool temporary;
  689. /* readonly */
  690. StringHash type;
  691. /* readonly */
  692. String typeName;
  693. uint viewMask;
  694. /* readonly */
  695. int weakRefs;
  696. /* readonly */
  697. BoundingBox worldBoundingBox;
  698. /* readonly */
  699. Zone zone;
  700. uint zoneMask;
  701. };
  702. class Bone
  703. {
  704. // Properties:
  705. bool animated;
  706. BoundingBox boundingBox;
  707. Vector3 initialPosition;
  708. Quaternion initialRotation;
  709. Vector3 initialScale;
  710. String name;
  711. Node node;
  712. float radius;
  713. };
  714. class BorderImage
  715. {
  716. // Methods:
  717. void AddChild(UIElement);
  718. void AddTag(const String&);
  719. void AddTags(const String&, int8 = ';');
  720. void ApplyAttributes();
  721. void BringToFront();
  722. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  723. void DisableLayoutUpdate();
  724. IntVector2 ElementToScreen(const IntVector2&);
  725. void EnableLayoutUpdate();
  726. uint FindChild(UIElement) const;
  727. Variant GetAttribute(const String&) const;
  728. ValueAnimation GetAttributeAnimation(const String&) const;
  729. float GetAttributeAnimationSpeed(const String&) const;
  730. float GetAttributeAnimationTime(const String&) const;
  731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  732. Variant GetAttributeDefault(const String&) const;
  733. UIElement GetChild(const String&, bool = false) const;
  734. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  735. Array<UIElement> GetChildren(bool = false) const;
  736. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  737. UIElement GetElementEventSender() const;
  738. bool GetInterceptNetworkUpdate(const String&) const;
  739. uint GetNumChildren(bool) const;
  740. bool HasSubscribedToEvent(Object, const String&);
  741. bool HasSubscribedToEvent(const String&);
  742. bool HasTag(const String&) const;
  743. void InsertChild(uint, UIElement);
  744. bool IsInside(IntVector2, bool);
  745. bool IsInsideCombined(IntVector2, bool);
  746. bool Load(File, bool = false);
  747. bool Load(VectorBuffer&, bool = false);
  748. bool LoadChildXML(XMLFile, XMLFile = null);
  749. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  750. bool LoadJSON(const JSONValue&, bool = false);
  751. bool LoadXML(File);
  752. bool LoadXML(VectorBuffer&);
  753. bool LoadXML(XMLFile, XMLFile);
  754. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  755. bool LoadXML(const XMLElement&, bool = false);
  756. void MarkNetworkUpdate() const;
  757. void Remove();
  758. void RemoveAllChildren();
  759. void RemoveAllTags();
  760. void RemoveAttributeAnimation(const String&);
  761. void RemoveChild(UIElement, uint = 0);
  762. void RemoveChild(uint);
  763. void RemoveInstanceDefault();
  764. void RemoveObjectAnimation();
  765. bool RemoveTag(const String&);
  766. void ResetDeepEnabled();
  767. void ResetToDefault();
  768. bool Save(File) const;
  769. bool Save(VectorBuffer&) const;
  770. bool SaveJSON(JSONValue&) const;
  771. bool SaveXML(File, const String& = "\t");
  772. bool SaveXML(VectorBuffer&, const String& = "\t");
  773. bool SaveXML(XMLElement&) const;
  774. IntVector2 ScreenToElement(const IntVector2&);
  775. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  776. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  777. void SetAnimationTime(float);
  778. bool SetAttribute(const String&, const Variant&);
  779. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  780. void SetAttributeAnimationSpeed(const String&, float);
  781. void SetAttributeAnimationTime(const String&, float);
  782. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  783. void SetDeepEnabled(bool);
  784. void SetEnabledRecursive(bool);
  785. void SetFixedHeight(int);
  786. void SetFixedSize(int, int);
  787. void SetFixedWidth(int);
  788. void SetFullImageRect();
  789. void SetHoverOffset(int, int);
  790. void SetInterceptNetworkUpdate(const String&, bool);
  791. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  792. void SetMaxSize(int, int);
  793. void SetMinSize(int, int);
  794. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  795. void SetPosition(int, int);
  796. void SetSize(int, int);
  797. bool SetStyle(const String&, XMLFile = null);
  798. bool SetStyle(const XMLElement&);
  799. bool SetStyleAuto(XMLFile = null);
  800. void UpdateLayout();
  801. const Variant& GetVar(const StringHash&);
  802. // Properties:
  803. bool animationEnabled;
  804. /* readonly */
  805. Array<Variant> attributeDefaults;
  806. /* readonly */
  807. Array<AttributeInfo> attributeInfos;
  808. Array<Variant> attributes;
  809. BlendMode blendMode;
  810. IntRect border;
  811. bool bringToBack;
  812. bool bringToFront;
  813. /* readonly */
  814. String category;
  815. /* readonly */
  816. IntVector2 childOffset;
  817. /* readonly */
  818. Array<UIElement> children;
  819. IntRect clipBorder;
  820. bool clipChildren;
  821. /* writeonly */
  822. Color color;
  823. /* readonly */
  824. bool colorGradient;
  825. Array<Color> colors;
  826. /* readonly */
  827. IntRect combinedScreenRect;
  828. XMLFile defaultStyle;
  829. /* readonly */
  830. float derivedOpacity;
  831. /* readonly */
  832. uint dragButtonCombo;
  833. /* readonly */
  834. int dragButtonCount;
  835. uint dragDropMode;
  836. bool editable;
  837. bool elementEventSender;
  838. bool enabled;
  839. /* readonly */
  840. bool enabledSelf;
  841. /* readonly */
  842. bool fixedHeight;
  843. /* readonly */
  844. bool fixedSize;
  845. /* readonly */
  846. bool fixedWidth;
  847. bool focus;
  848. FocusMode focusMode;
  849. int height;
  850. HorizontalAlignment horizontalAlignment;
  851. IntVector2 hoverOffset;
  852. /* readonly */
  853. bool hovering;
  854. IntRect imageBorder;
  855. IntRect imageRect;
  856. int indent;
  857. int indentSpacing;
  858. /* readonly */
  859. int indentWidth;
  860. bool internal;
  861. IntRect layoutBorder;
  862. Vector2 layoutFlexScale;
  863. LayoutMode layoutMode;
  864. int layoutSpacing;
  865. int maxHeight;
  866. IntVector2 maxSize;
  867. int maxWidth;
  868. int minHeight;
  869. IntVector2 minSize;
  870. int minWidth;
  871. String name;
  872. /* readonly */
  873. uint numAllChildren;
  874. /* readonly */
  875. uint numAttributes;
  876. /* readonly */
  877. uint numChildren;
  878. ObjectAnimation objectAnimation;
  879. float opacity;
  880. UIElement parent;
  881. IntVector2 position;
  882. int priority;
  883. /* readonly */
  884. int refs;
  885. /* readonly */
  886. UIElement root;
  887. /* readonly */
  888. IntVector2 screenPosition;
  889. bool selected;
  890. IntVector2 size;
  891. bool sortChildren;
  892. String style;
  893. /* readonly */
  894. Array<String> tags;
  895. bool temporary;
  896. Texture texture;
  897. bool tiled;
  898. TraversalMode traversalMode;
  899. /* readonly */
  900. StringHash type;
  901. /* readonly */
  902. String typeName;
  903. bool useDerivedOpacity;
  904. /* readonly */
  905. VariantMap vars;
  906. VerticalAlignment verticalAlignment;
  907. bool visible;
  908. /* readonly */
  909. bool visibleEffective;
  910. /* readonly */
  911. int weakRefs;
  912. int width;
  913. };
  914. class BoundingBox
  915. {
  916. // Methods:
  917. void Clear();
  918. void Clip(const BoundingBox&);
  919. void Define(const BoundingBox&);
  920. void Define(const Frustum&);
  921. void Define(const Polyhedron&);
  922. void Define(const Sphere&);
  923. void Define(const Vector3&);
  924. void Define(const Vector3&, const Vector3&);
  925. void Define(float, float);
  926. bool Defined() const;
  927. Intersection IsInside(const BoundingBox&) const;
  928. Intersection IsInside(const Sphere&) const;
  929. Intersection IsInside(const Vector3&) const;
  930. Intersection IsInsideFast(const BoundingBox&) const;
  931. Intersection IsInsideFast(const Sphere&) const;
  932. void Merge(const BoundingBox&);
  933. void Merge(const Frustum&);
  934. void Merge(const Polyhedron&);
  935. void Merge(const Sphere&);
  936. void Merge(const Vector3&);
  937. Rect Projected(const Matrix4&) const;
  938. String ToString() const;
  939. void Transform(const Matrix3&);
  940. void Transform(const Matrix3x4&);
  941. BoundingBox Transformed(const Matrix3&) const;
  942. BoundingBox Transformed(const Matrix3x4&) const;
  943. // Properties:
  944. /* readonly */
  945. Vector3 center;
  946. /* readonly */
  947. Vector3 halfSize;
  948. Vector3 max;
  949. Vector3 min;
  950. /* readonly */
  951. Vector3 size;
  952. };
  953. class Button
  954. {
  955. // Methods:
  956. void AddChild(UIElement);
  957. void AddTag(const String&);
  958. void AddTags(const String&, int8 = ';');
  959. void ApplyAttributes();
  960. void BringToFront();
  961. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  962. void DisableLayoutUpdate();
  963. IntVector2 ElementToScreen(const IntVector2&);
  964. void EnableLayoutUpdate();
  965. uint FindChild(UIElement) const;
  966. Variant GetAttribute(const String&) const;
  967. ValueAnimation GetAttributeAnimation(const String&) const;
  968. float GetAttributeAnimationSpeed(const String&) const;
  969. float GetAttributeAnimationTime(const String&) const;
  970. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  971. Variant GetAttributeDefault(const String&) const;
  972. UIElement GetChild(const String&, bool = false) const;
  973. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  974. Array<UIElement> GetChildren(bool = false) const;
  975. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  976. UIElement GetElementEventSender() const;
  977. bool GetInterceptNetworkUpdate(const String&) const;
  978. uint GetNumChildren(bool) const;
  979. bool HasSubscribedToEvent(Object, const String&);
  980. bool HasSubscribedToEvent(const String&);
  981. bool HasTag(const String&) const;
  982. void InsertChild(uint, UIElement);
  983. bool IsInside(IntVector2, bool);
  984. bool IsInsideCombined(IntVector2, bool);
  985. bool Load(File, bool = false);
  986. bool Load(VectorBuffer&, bool = false);
  987. bool LoadChildXML(XMLFile, XMLFile = null);
  988. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  989. bool LoadJSON(const JSONValue&, bool = false);
  990. bool LoadXML(File);
  991. bool LoadXML(VectorBuffer&);
  992. bool LoadXML(XMLFile, XMLFile);
  993. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  994. bool LoadXML(const XMLElement&, bool = false);
  995. void MarkNetworkUpdate() const;
  996. void Remove();
  997. void RemoveAllChildren();
  998. void RemoveAllTags();
  999. void RemoveAttributeAnimation(const String&);
  1000. void RemoveChild(UIElement, uint = 0);
  1001. void RemoveChild(uint);
  1002. void RemoveInstanceDefault();
  1003. void RemoveObjectAnimation();
  1004. bool RemoveTag(const String&);
  1005. void ResetDeepEnabled();
  1006. void ResetToDefault();
  1007. bool Save(File) const;
  1008. bool Save(VectorBuffer&) const;
  1009. bool SaveJSON(JSONValue&) const;
  1010. bool SaveXML(File, const String& = "\t");
  1011. bool SaveXML(VectorBuffer&, const String& = "\t");
  1012. bool SaveXML(XMLElement&) const;
  1013. IntVector2 ScreenToElement(const IntVector2&);
  1014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1015. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1016. void SetAnimationTime(float);
  1017. bool SetAttribute(const String&, const Variant&);
  1018. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1019. void SetAttributeAnimationSpeed(const String&, float);
  1020. void SetAttributeAnimationTime(const String&, float);
  1021. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1022. void SetDeepEnabled(bool);
  1023. void SetEnabledRecursive(bool);
  1024. void SetFixedHeight(int);
  1025. void SetFixedSize(int, int);
  1026. void SetFixedWidth(int);
  1027. void SetFullImageRect();
  1028. void SetHoverOffset(int, int);
  1029. void SetInterceptNetworkUpdate(const String&, bool);
  1030. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1031. void SetMaxSize(int, int);
  1032. void SetMinSize(int, int);
  1033. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1034. void SetPosition(int, int);
  1035. void SetPressedChildOffset(int, int);
  1036. void SetPressedOffset(int, int);
  1037. void SetRepeat(float, float);
  1038. void SetSize(int, int);
  1039. bool SetStyle(const String&, XMLFile = null);
  1040. bool SetStyle(const XMLElement&);
  1041. bool SetStyleAuto(XMLFile = null);
  1042. void UpdateLayout();
  1043. const Variant& GetVar(const StringHash&);
  1044. // Properties:
  1045. bool animationEnabled;
  1046. /* readonly */
  1047. Array<Variant> attributeDefaults;
  1048. /* readonly */
  1049. Array<AttributeInfo> attributeInfos;
  1050. Array<Variant> attributes;
  1051. BlendMode blendMode;
  1052. IntRect border;
  1053. bool bringToBack;
  1054. bool bringToFront;
  1055. /* readonly */
  1056. String category;
  1057. /* readonly */
  1058. IntVector2 childOffset;
  1059. /* readonly */
  1060. Array<UIElement> children;
  1061. IntRect clipBorder;
  1062. bool clipChildren;
  1063. /* writeonly */
  1064. Color color;
  1065. /* readonly */
  1066. bool colorGradient;
  1067. Array<Color> colors;
  1068. /* readonly */
  1069. IntRect combinedScreenRect;
  1070. XMLFile defaultStyle;
  1071. /* readonly */
  1072. float derivedOpacity;
  1073. /* readonly */
  1074. uint dragButtonCombo;
  1075. /* readonly */
  1076. int dragButtonCount;
  1077. uint dragDropMode;
  1078. bool editable;
  1079. bool elementEventSender;
  1080. bool enabled;
  1081. /* readonly */
  1082. bool enabledSelf;
  1083. /* readonly */
  1084. bool fixedHeight;
  1085. /* readonly */
  1086. bool fixedSize;
  1087. /* readonly */
  1088. bool fixedWidth;
  1089. bool focus;
  1090. FocusMode focusMode;
  1091. int height;
  1092. HorizontalAlignment horizontalAlignment;
  1093. IntVector2 hoverOffset;
  1094. /* readonly */
  1095. bool hovering;
  1096. IntRect imageBorder;
  1097. IntRect imageRect;
  1098. int indent;
  1099. int indentSpacing;
  1100. /* readonly */
  1101. int indentWidth;
  1102. bool internal;
  1103. IntRect layoutBorder;
  1104. Vector2 layoutFlexScale;
  1105. LayoutMode layoutMode;
  1106. int layoutSpacing;
  1107. int maxHeight;
  1108. IntVector2 maxSize;
  1109. int maxWidth;
  1110. int minHeight;
  1111. IntVector2 minSize;
  1112. int minWidth;
  1113. String name;
  1114. /* readonly */
  1115. uint numAllChildren;
  1116. /* readonly */
  1117. uint numAttributes;
  1118. /* readonly */
  1119. uint numChildren;
  1120. ObjectAnimation objectAnimation;
  1121. float opacity;
  1122. UIElement parent;
  1123. IntVector2 position;
  1124. /* readonly */
  1125. bool pressed;
  1126. IntVector2 pressedChildOffset;
  1127. IntVector2 pressedOffset;
  1128. int priority;
  1129. /* readonly */
  1130. int refs;
  1131. float repeatDelay;
  1132. float repeatRate;
  1133. /* readonly */
  1134. UIElement root;
  1135. /* readonly */
  1136. IntVector2 screenPosition;
  1137. bool selected;
  1138. IntVector2 size;
  1139. bool sortChildren;
  1140. String style;
  1141. /* readonly */
  1142. Array<String> tags;
  1143. bool temporary;
  1144. Texture texture;
  1145. bool tiled;
  1146. TraversalMode traversalMode;
  1147. /* readonly */
  1148. StringHash type;
  1149. /* readonly */
  1150. String typeName;
  1151. bool useDerivedOpacity;
  1152. /* readonly */
  1153. VariantMap vars;
  1154. VerticalAlignment verticalAlignment;
  1155. bool visible;
  1156. /* readonly */
  1157. bool visibleEffective;
  1158. /* readonly */
  1159. int weakRefs;
  1160. int width;
  1161. };
  1162. class Camera
  1163. {
  1164. // Methods:
  1165. void ApplyAttributes();
  1166. void DrawDebugGeometry(DebugRenderer, bool);
  1167. Variant GetAttribute(const String&) const;
  1168. ValueAnimation GetAttributeAnimation(const String&) const;
  1169. float GetAttributeAnimationSpeed(const String&) const;
  1170. float GetAttributeAnimationTime(const String&) const;
  1171. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1172. Variant GetAttributeDefault(const String&) const;
  1173. float GetDistance(const Vector3&) const;
  1174. float GetDistanceSquared(const Vector3&) const;
  1175. bool GetInterceptNetworkUpdate(const String&) const;
  1176. Ray GetScreenRay(float, float) const;
  1177. Frustum GetSplitFrustum(float, float) const;
  1178. bool HasSubscribedToEvent(Object, const String&);
  1179. bool HasSubscribedToEvent(const String&);
  1180. bool Load(File, bool = false);
  1181. bool Load(VectorBuffer&, bool = false);
  1182. bool LoadJSON(const JSONValue&, bool = false);
  1183. bool LoadXML(const XMLElement&, bool = false);
  1184. void MarkNetworkUpdate() const;
  1185. void Remove();
  1186. void RemoveAttributeAnimation(const String&);
  1187. void RemoveInstanceDefault();
  1188. void RemoveObjectAnimation();
  1189. void ResetToDefault();
  1190. bool Save(File) const;
  1191. bool Save(VectorBuffer&) const;
  1192. bool SaveJSON(JSONValue&) const;
  1193. bool SaveXML(XMLElement&) const;
  1194. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1195. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1196. void SetAnimationTime(float);
  1197. bool SetAttribute(const String&, const Variant&);
  1198. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1199. void SetAttributeAnimationSpeed(const String&, float);
  1200. void SetAttributeAnimationTime(const String&, float);
  1201. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1202. void SetInterceptNetworkUpdate(const String&, bool);
  1203. void SetOrthoSize(const Vector2&);
  1204. Vector2 WorldToScreenPoint(const Vector3&) const;
  1205. // Properties:
  1206. bool animationEnabled;
  1207. float aspectRatio;
  1208. /* readonly */
  1209. Array<Variant> attributeDefaults;
  1210. /* readonly */
  1211. Array<AttributeInfo> attributeInfos;
  1212. Array<Variant> attributes;
  1213. bool autoAspectRatio;
  1214. /* readonly */
  1215. String category;
  1216. Plane clipPlane;
  1217. /* readonly */
  1218. Matrix3x4 effectiveWorldTransform;
  1219. bool enabled;
  1220. /* readonly */
  1221. bool enabledEffective;
  1222. float farClip;
  1223. FillMode fillMode;
  1224. float fov;
  1225. /* readonly */
  1226. Frustum frustum;
  1227. /* readonly */
  1228. float halfViewSize;
  1229. /* readonly */
  1230. uint id;
  1231. float lodBias;
  1232. float nearClip;
  1233. /* readonly */
  1234. Node node;
  1235. /* readonly */
  1236. uint numAttributes;
  1237. ObjectAnimation objectAnimation;
  1238. float orthoSize;
  1239. bool orthographic;
  1240. /* readonly */
  1241. Matrix4 projection;
  1242. Vector2 projectionOffset;
  1243. Plane reflectionPlane;
  1244. /* readonly */
  1245. int refs;
  1246. bool temporary;
  1247. /* readonly */
  1248. StringHash type;
  1249. /* readonly */
  1250. String typeName;
  1251. bool useClipping;
  1252. bool useReflection;
  1253. /* readonly */
  1254. Matrix3x4 view;
  1255. uint viewMask;
  1256. uint viewOverrideFlags;
  1257. /* readonly */
  1258. Frustum viewSpaceFrustum;
  1259. /* readonly */
  1260. int weakRefs;
  1261. float zoom;
  1262. };
  1263. class CascadeParameters
  1264. {
  1265. // Properties:
  1266. float biasAutoAdjust;
  1267. float fadeStart;
  1268. float split1;
  1269. float split2;
  1270. float split3;
  1271. float split4;
  1272. };
  1273. class CheckBox
  1274. {
  1275. // Methods:
  1276. void AddChild(UIElement);
  1277. void AddTag(const String&);
  1278. void AddTags(const String&, int8 = ';');
  1279. void ApplyAttributes();
  1280. void BringToFront();
  1281. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1282. void DisableLayoutUpdate();
  1283. IntVector2 ElementToScreen(const IntVector2&);
  1284. void EnableLayoutUpdate();
  1285. uint FindChild(UIElement) const;
  1286. Variant GetAttribute(const String&) const;
  1287. ValueAnimation GetAttributeAnimation(const String&) const;
  1288. float GetAttributeAnimationSpeed(const String&) const;
  1289. float GetAttributeAnimationTime(const String&) const;
  1290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1291. Variant GetAttributeDefault(const String&) const;
  1292. UIElement GetChild(const String&, bool = false) const;
  1293. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1294. Array<UIElement> GetChildren(bool = false) const;
  1295. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1296. UIElement GetElementEventSender() const;
  1297. bool GetInterceptNetworkUpdate(const String&) const;
  1298. uint GetNumChildren(bool) const;
  1299. bool HasSubscribedToEvent(Object, const String&);
  1300. bool HasSubscribedToEvent(const String&);
  1301. bool HasTag(const String&) const;
  1302. void InsertChild(uint, UIElement);
  1303. bool IsInside(IntVector2, bool);
  1304. bool IsInsideCombined(IntVector2, bool);
  1305. bool Load(File, bool = false);
  1306. bool Load(VectorBuffer&, bool = false);
  1307. bool LoadChildXML(XMLFile, XMLFile = null);
  1308. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1309. bool LoadJSON(const JSONValue&, bool = false);
  1310. bool LoadXML(File);
  1311. bool LoadXML(VectorBuffer&);
  1312. bool LoadXML(XMLFile, XMLFile);
  1313. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1314. bool LoadXML(const XMLElement&, bool = false);
  1315. void MarkNetworkUpdate() const;
  1316. void Remove();
  1317. void RemoveAllChildren();
  1318. void RemoveAllTags();
  1319. void RemoveAttributeAnimation(const String&);
  1320. void RemoveChild(UIElement, uint = 0);
  1321. void RemoveChild(uint);
  1322. void RemoveInstanceDefault();
  1323. void RemoveObjectAnimation();
  1324. bool RemoveTag(const String&);
  1325. void ResetDeepEnabled();
  1326. void ResetToDefault();
  1327. bool Save(File) const;
  1328. bool Save(VectorBuffer&) const;
  1329. bool SaveJSON(JSONValue&) const;
  1330. bool SaveXML(File, const String& = "\t");
  1331. bool SaveXML(VectorBuffer&, const String& = "\t");
  1332. bool SaveXML(XMLElement&) const;
  1333. IntVector2 ScreenToElement(const IntVector2&);
  1334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1335. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1336. void SetAnimationTime(float);
  1337. bool SetAttribute(const String&, const Variant&);
  1338. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1339. void SetAttributeAnimationSpeed(const String&, float);
  1340. void SetAttributeAnimationTime(const String&, float);
  1341. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1342. void SetCheckedOffset(int, int);
  1343. void SetDeepEnabled(bool);
  1344. void SetEnabledRecursive(bool);
  1345. void SetFixedHeight(int);
  1346. void SetFixedSize(int, int);
  1347. void SetFixedWidth(int);
  1348. void SetFullImageRect();
  1349. void SetHoverOffset(int, int);
  1350. void SetInterceptNetworkUpdate(const String&, bool);
  1351. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1352. void SetMaxSize(int, int);
  1353. void SetMinSize(int, int);
  1354. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1355. void SetPosition(int, int);
  1356. void SetSize(int, int);
  1357. bool SetStyle(const String&, XMLFile = null);
  1358. bool SetStyle(const XMLElement&);
  1359. bool SetStyleAuto(XMLFile = null);
  1360. void UpdateLayout();
  1361. const Variant& GetVar(const StringHash&);
  1362. // Properties:
  1363. bool animationEnabled;
  1364. /* readonly */
  1365. Array<Variant> attributeDefaults;
  1366. /* readonly */
  1367. Array<AttributeInfo> attributeInfos;
  1368. Array<Variant> attributes;
  1369. BlendMode blendMode;
  1370. IntRect border;
  1371. bool bringToBack;
  1372. bool bringToFront;
  1373. /* readonly */
  1374. String category;
  1375. bool checked;
  1376. IntVector2 checkedOffset;
  1377. /* readonly */
  1378. IntVector2 childOffset;
  1379. /* readonly */
  1380. Array<UIElement> children;
  1381. IntRect clipBorder;
  1382. bool clipChildren;
  1383. /* writeonly */
  1384. Color color;
  1385. /* readonly */
  1386. bool colorGradient;
  1387. Array<Color> colors;
  1388. /* readonly */
  1389. IntRect combinedScreenRect;
  1390. XMLFile defaultStyle;
  1391. /* readonly */
  1392. float derivedOpacity;
  1393. /* readonly */
  1394. uint dragButtonCombo;
  1395. /* readonly */
  1396. int dragButtonCount;
  1397. uint dragDropMode;
  1398. bool editable;
  1399. bool elementEventSender;
  1400. bool enabled;
  1401. /* readonly */
  1402. bool enabledSelf;
  1403. /* readonly */
  1404. bool fixedHeight;
  1405. /* readonly */
  1406. bool fixedSize;
  1407. /* readonly */
  1408. bool fixedWidth;
  1409. bool focus;
  1410. FocusMode focusMode;
  1411. int height;
  1412. HorizontalAlignment horizontalAlignment;
  1413. IntVector2 hoverOffset;
  1414. /* readonly */
  1415. bool hovering;
  1416. IntRect imageBorder;
  1417. IntRect imageRect;
  1418. int indent;
  1419. int indentSpacing;
  1420. /* readonly */
  1421. int indentWidth;
  1422. bool internal;
  1423. IntRect layoutBorder;
  1424. Vector2 layoutFlexScale;
  1425. LayoutMode layoutMode;
  1426. int layoutSpacing;
  1427. int maxHeight;
  1428. IntVector2 maxSize;
  1429. int maxWidth;
  1430. int minHeight;
  1431. IntVector2 minSize;
  1432. int minWidth;
  1433. String name;
  1434. /* readonly */
  1435. uint numAllChildren;
  1436. /* readonly */
  1437. uint numAttributes;
  1438. /* readonly */
  1439. uint numChildren;
  1440. ObjectAnimation objectAnimation;
  1441. float opacity;
  1442. UIElement parent;
  1443. IntVector2 position;
  1444. int priority;
  1445. /* readonly */
  1446. int refs;
  1447. /* readonly */
  1448. UIElement root;
  1449. /* readonly */
  1450. IntVector2 screenPosition;
  1451. bool selected;
  1452. IntVector2 size;
  1453. bool sortChildren;
  1454. String style;
  1455. /* readonly */
  1456. Array<String> tags;
  1457. bool temporary;
  1458. Texture texture;
  1459. bool tiled;
  1460. TraversalMode traversalMode;
  1461. /* readonly */
  1462. StringHash type;
  1463. /* readonly */
  1464. String typeName;
  1465. bool useDerivedOpacity;
  1466. /* readonly */
  1467. VariantMap vars;
  1468. VerticalAlignment verticalAlignment;
  1469. bool visible;
  1470. /* readonly */
  1471. bool visibleEffective;
  1472. /* readonly */
  1473. int weakRefs;
  1474. int width;
  1475. };
  1476. class CollisionBox2D
  1477. {
  1478. // Methods:
  1479. void ApplyAttributes();
  1480. void DrawDebugGeometry(DebugRenderer, bool);
  1481. Variant GetAttribute(const String&) const;
  1482. ValueAnimation GetAttributeAnimation(const String&) const;
  1483. float GetAttributeAnimationSpeed(const String&) const;
  1484. float GetAttributeAnimationTime(const String&) const;
  1485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1486. Variant GetAttributeDefault(const String&) const;
  1487. bool GetInterceptNetworkUpdate(const String&) const;
  1488. bool HasSubscribedToEvent(Object, const String&);
  1489. bool HasSubscribedToEvent(const String&);
  1490. bool Load(File, bool = false);
  1491. bool Load(VectorBuffer&, bool = false);
  1492. bool LoadJSON(const JSONValue&, bool = false);
  1493. bool LoadXML(const XMLElement&, bool = false);
  1494. void MarkNetworkUpdate() const;
  1495. void Remove();
  1496. void RemoveAttributeAnimation(const String&);
  1497. void RemoveInstanceDefault();
  1498. void RemoveObjectAnimation();
  1499. void ResetToDefault();
  1500. bool Save(File) const;
  1501. bool Save(VectorBuffer&) const;
  1502. bool SaveJSON(JSONValue&) const;
  1503. bool SaveXML(XMLElement&) const;
  1504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1505. void SetAnimationTime(float);
  1506. bool SetAttribute(const String&, const Variant&);
  1507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1508. void SetAttributeAnimationSpeed(const String&, float);
  1509. void SetAttributeAnimationTime(const String&, float);
  1510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1511. void SetCenter(float, float);
  1512. void SetInterceptNetworkUpdate(const String&, bool);
  1513. void SetSize(float, float);
  1514. // Properties:
  1515. float angle;
  1516. bool animationEnabled;
  1517. /* readonly */
  1518. Array<Variant> attributeDefaults;
  1519. /* readonly */
  1520. Array<AttributeInfo> attributeInfos;
  1521. Array<Variant> attributes;
  1522. /* readonly */
  1523. String category;
  1524. int categoryBits;
  1525. Vector2 center;
  1526. float density;
  1527. bool enabled;
  1528. /* readonly */
  1529. bool enabledEffective;
  1530. float friction;
  1531. int groupIndex;
  1532. /* readonly */
  1533. uint id;
  1534. /* readonly */
  1535. float inertia;
  1536. int maskBits;
  1537. /* readonly */
  1538. float mass;
  1539. /* readonly */
  1540. Vector2 massCenter;
  1541. /* readonly */
  1542. Node node;
  1543. /* readonly */
  1544. uint numAttributes;
  1545. ObjectAnimation objectAnimation;
  1546. /* readonly */
  1547. int refs;
  1548. float restitution;
  1549. Vector2 size;
  1550. bool temporary;
  1551. bool trigger;
  1552. /* readonly */
  1553. StringHash type;
  1554. /* readonly */
  1555. String typeName;
  1556. /* readonly */
  1557. int weakRefs;
  1558. };
  1559. class CollisionChain2D
  1560. {
  1561. // Methods:
  1562. void ApplyAttributes();
  1563. void DrawDebugGeometry(DebugRenderer, bool);
  1564. Variant GetAttribute(const String&) const;
  1565. ValueAnimation GetAttributeAnimation(const String&) const;
  1566. float GetAttributeAnimationSpeed(const String&) const;
  1567. float GetAttributeAnimationTime(const String&) const;
  1568. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1569. Variant GetAttributeDefault(const String&) const;
  1570. bool GetInterceptNetworkUpdate(const String&) const;
  1571. Array<Vector2> GetVertices() const;
  1572. bool HasSubscribedToEvent(Object, const String&);
  1573. bool HasSubscribedToEvent(const String&);
  1574. bool Load(File, bool = false);
  1575. bool Load(VectorBuffer&, bool = false);
  1576. bool LoadJSON(const JSONValue&, bool = false);
  1577. bool LoadXML(const XMLElement&, bool = false);
  1578. void MarkNetworkUpdate() const;
  1579. void Remove();
  1580. void RemoveAttributeAnimation(const String&);
  1581. void RemoveInstanceDefault();
  1582. void RemoveObjectAnimation();
  1583. void ResetToDefault();
  1584. bool Save(File) const;
  1585. bool Save(VectorBuffer&) const;
  1586. bool SaveJSON(JSONValue&) const;
  1587. bool SaveXML(XMLElement&) const;
  1588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1589. void SetAnimationTime(float);
  1590. bool SetAttribute(const String&, const Variant&);
  1591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1592. void SetAttributeAnimationSpeed(const String&, float);
  1593. void SetAttributeAnimationTime(const String&, float);
  1594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1595. void SetInterceptNetworkUpdate(const String&, bool);
  1596. void SetVertex(uint, const Vector2&);
  1597. void SetVertices(Array<Vector2>);
  1598. const Vector2& GetVertex(uint) const;
  1599. // Properties:
  1600. bool animationEnabled;
  1601. /* readonly */
  1602. Array<Variant> attributeDefaults;
  1603. /* readonly */
  1604. Array<AttributeInfo> attributeInfos;
  1605. Array<Variant> attributes;
  1606. /* readonly */
  1607. String category;
  1608. int categoryBits;
  1609. float density;
  1610. bool enabled;
  1611. /* readonly */
  1612. bool enabledEffective;
  1613. float friction;
  1614. int groupIndex;
  1615. /* readonly */
  1616. uint id;
  1617. /* readonly */
  1618. float inertia;
  1619. bool loop;
  1620. int maskBits;
  1621. /* readonly */
  1622. float mass;
  1623. /* readonly */
  1624. Vector2 massCenter;
  1625. /* readonly */
  1626. Node node;
  1627. /* readonly */
  1628. uint numAttributes;
  1629. ObjectAnimation objectAnimation;
  1630. /* readonly */
  1631. int refs;
  1632. float restitution;
  1633. bool temporary;
  1634. bool trigger;
  1635. /* readonly */
  1636. StringHash type;
  1637. /* readonly */
  1638. String typeName;
  1639. uint vertexCount;
  1640. /* readonly */
  1641. int weakRefs;
  1642. };
  1643. class CollisionCircle2D
  1644. {
  1645. // Methods:
  1646. void ApplyAttributes();
  1647. void DrawDebugGeometry(DebugRenderer, bool);
  1648. Variant GetAttribute(const String&) const;
  1649. ValueAnimation GetAttributeAnimation(const String&) const;
  1650. float GetAttributeAnimationSpeed(const String&) const;
  1651. float GetAttributeAnimationTime(const String&) const;
  1652. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1653. Variant GetAttributeDefault(const String&) const;
  1654. bool GetInterceptNetworkUpdate(const String&) const;
  1655. bool HasSubscribedToEvent(Object, const String&);
  1656. bool HasSubscribedToEvent(const String&);
  1657. bool Load(File, bool = false);
  1658. bool Load(VectorBuffer&, bool = false);
  1659. bool LoadJSON(const JSONValue&, bool = false);
  1660. bool LoadXML(const XMLElement&, bool = false);
  1661. void MarkNetworkUpdate() const;
  1662. void Remove();
  1663. void RemoveAttributeAnimation(const String&);
  1664. void RemoveInstanceDefault();
  1665. void RemoveObjectAnimation();
  1666. void ResetToDefault();
  1667. bool Save(File) const;
  1668. bool Save(VectorBuffer&) const;
  1669. bool SaveJSON(JSONValue&) const;
  1670. bool SaveXML(XMLElement&) const;
  1671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1672. void SetAnimationTime(float);
  1673. bool SetAttribute(const String&, const Variant&);
  1674. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1675. void SetAttributeAnimationSpeed(const String&, float);
  1676. void SetAttributeAnimationTime(const String&, float);
  1677. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1678. void SetCenter(float, float);
  1679. void SetInterceptNetworkUpdate(const String&, bool);
  1680. // Properties:
  1681. bool animationEnabled;
  1682. /* readonly */
  1683. Array<Variant> attributeDefaults;
  1684. /* readonly */
  1685. Array<AttributeInfo> attributeInfos;
  1686. Array<Variant> attributes;
  1687. /* readonly */
  1688. String category;
  1689. int categoryBits;
  1690. Vector2 center;
  1691. float density;
  1692. bool enabled;
  1693. /* readonly */
  1694. bool enabledEffective;
  1695. float friction;
  1696. int groupIndex;
  1697. /* readonly */
  1698. uint id;
  1699. /* readonly */
  1700. float inertia;
  1701. int maskBits;
  1702. /* readonly */
  1703. float mass;
  1704. /* readonly */
  1705. Vector2 massCenter;
  1706. /* readonly */
  1707. Node node;
  1708. /* readonly */
  1709. uint numAttributes;
  1710. ObjectAnimation objectAnimation;
  1711. float radius;
  1712. /* readonly */
  1713. int refs;
  1714. float restitution;
  1715. bool temporary;
  1716. bool trigger;
  1717. /* readonly */
  1718. StringHash type;
  1719. /* readonly */
  1720. String typeName;
  1721. /* readonly */
  1722. int weakRefs;
  1723. };
  1724. class CollisionEdge2D
  1725. {
  1726. // Methods:
  1727. void ApplyAttributes();
  1728. void DrawDebugGeometry(DebugRenderer, bool);
  1729. Variant GetAttribute(const String&) const;
  1730. ValueAnimation GetAttributeAnimation(const String&) const;
  1731. float GetAttributeAnimationSpeed(const String&) const;
  1732. float GetAttributeAnimationTime(const String&) const;
  1733. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1734. Variant GetAttributeDefault(const String&) const;
  1735. bool GetInterceptNetworkUpdate(const String&) const;
  1736. bool HasSubscribedToEvent(Object, const String&);
  1737. bool HasSubscribedToEvent(const String&);
  1738. bool Load(File, bool = false);
  1739. bool Load(VectorBuffer&, bool = false);
  1740. bool LoadJSON(const JSONValue&, bool = false);
  1741. bool LoadXML(const XMLElement&, bool = false);
  1742. void MarkNetworkUpdate() const;
  1743. void Remove();
  1744. void RemoveAttributeAnimation(const String&);
  1745. void RemoveInstanceDefault();
  1746. void RemoveObjectAnimation();
  1747. void ResetToDefault();
  1748. bool Save(File) const;
  1749. bool Save(VectorBuffer&) const;
  1750. bool SaveJSON(JSONValue&) const;
  1751. bool SaveXML(XMLElement&) const;
  1752. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1753. void SetAnimationTime(float);
  1754. bool SetAttribute(const String&, const Variant&);
  1755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1756. void SetAttributeAnimationSpeed(const String&, float);
  1757. void SetAttributeAnimationTime(const String&, float);
  1758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1759. void SetInterceptNetworkUpdate(const String&, bool);
  1760. void SetVertices(const Vector2&, const Vector2&);
  1761. // Properties:
  1762. bool animationEnabled;
  1763. /* readonly */
  1764. Array<Variant> attributeDefaults;
  1765. /* readonly */
  1766. Array<AttributeInfo> attributeInfos;
  1767. Array<Variant> attributes;
  1768. /* readonly */
  1769. String category;
  1770. int categoryBits;
  1771. float density;
  1772. bool enabled;
  1773. /* readonly */
  1774. bool enabledEffective;
  1775. float friction;
  1776. int groupIndex;
  1777. /* readonly */
  1778. uint id;
  1779. /* readonly */
  1780. float inertia;
  1781. int maskBits;
  1782. /* readonly */
  1783. float mass;
  1784. /* readonly */
  1785. Vector2 massCenter;
  1786. /* readonly */
  1787. Node node;
  1788. /* readonly */
  1789. uint numAttributes;
  1790. ObjectAnimation objectAnimation;
  1791. /* readonly */
  1792. int refs;
  1793. float restitution;
  1794. bool temporary;
  1795. bool trigger;
  1796. /* readonly */
  1797. StringHash type;
  1798. /* readonly */
  1799. String typeName;
  1800. Vector2 vertex1;
  1801. Vector2 vertex2;
  1802. /* readonly */
  1803. int weakRefs;
  1804. };
  1805. class CollisionPolygon2D
  1806. {
  1807. // Methods:
  1808. void ApplyAttributes();
  1809. void DrawDebugGeometry(DebugRenderer, bool);
  1810. Variant GetAttribute(const String&) const;
  1811. ValueAnimation GetAttributeAnimation(const String&) const;
  1812. float GetAttributeAnimationSpeed(const String&) const;
  1813. float GetAttributeAnimationTime(const String&) const;
  1814. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1815. Variant GetAttributeDefault(const String&) const;
  1816. bool GetInterceptNetworkUpdate(const String&) const;
  1817. Array<Vector2> GetVertices() const;
  1818. bool HasSubscribedToEvent(Object, const String&);
  1819. bool HasSubscribedToEvent(const String&);
  1820. bool Load(File, bool = false);
  1821. bool Load(VectorBuffer&, bool = false);
  1822. bool LoadJSON(const JSONValue&, bool = false);
  1823. bool LoadXML(const XMLElement&, bool = false);
  1824. void MarkNetworkUpdate() const;
  1825. void Remove();
  1826. void RemoveAttributeAnimation(const String&);
  1827. void RemoveInstanceDefault();
  1828. void RemoveObjectAnimation();
  1829. void ResetToDefault();
  1830. bool Save(File) const;
  1831. bool Save(VectorBuffer&) const;
  1832. bool SaveJSON(JSONValue&) const;
  1833. bool SaveXML(XMLElement&) const;
  1834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1835. void SetAnimationTime(float);
  1836. bool SetAttribute(const String&, const Variant&);
  1837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1838. void SetAttributeAnimationSpeed(const String&, float);
  1839. void SetAttributeAnimationTime(const String&, float);
  1840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1841. void SetInterceptNetworkUpdate(const String&, bool);
  1842. void SetVertex(uint, const Vector2&);
  1843. void SetVertices(Array<Vector2>);
  1844. const Vector2& GetVertex(uint) const;
  1845. // Properties:
  1846. bool animationEnabled;
  1847. /* readonly */
  1848. Array<Variant> attributeDefaults;
  1849. /* readonly */
  1850. Array<AttributeInfo> attributeInfos;
  1851. Array<Variant> attributes;
  1852. /* readonly */
  1853. String category;
  1854. int categoryBits;
  1855. float density;
  1856. bool enabled;
  1857. /* readonly */
  1858. bool enabledEffective;
  1859. float friction;
  1860. int groupIndex;
  1861. /* readonly */
  1862. uint id;
  1863. /* readonly */
  1864. float inertia;
  1865. int maskBits;
  1866. /* readonly */
  1867. float mass;
  1868. /* readonly */
  1869. Vector2 massCenter;
  1870. /* readonly */
  1871. Node node;
  1872. /* readonly */
  1873. uint numAttributes;
  1874. ObjectAnimation objectAnimation;
  1875. /* readonly */
  1876. int refs;
  1877. float restitution;
  1878. bool temporary;
  1879. bool trigger;
  1880. /* readonly */
  1881. StringHash type;
  1882. /* readonly */
  1883. String typeName;
  1884. uint vertexCount;
  1885. /* readonly */
  1886. int weakRefs;
  1887. };
  1888. class CollisionShape
  1889. {
  1890. // Methods:
  1891. void ApplyAttributes();
  1892. void DrawDebugGeometry(DebugRenderer, bool);
  1893. Variant GetAttribute(const String&) const;
  1894. ValueAnimation GetAttributeAnimation(const String&) const;
  1895. float GetAttributeAnimationSpeed(const String&) const;
  1896. float GetAttributeAnimationTime(const String&) const;
  1897. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1898. Variant GetAttributeDefault(const String&) const;
  1899. bool GetInterceptNetworkUpdate(const String&) const;
  1900. bool HasSubscribedToEvent(Object, const String&);
  1901. bool HasSubscribedToEvent(const String&);
  1902. bool Load(File, bool = false);
  1903. bool Load(VectorBuffer&, bool = false);
  1904. bool LoadJSON(const JSONValue&, bool = false);
  1905. bool LoadXML(const XMLElement&, bool = false);
  1906. void MarkNetworkUpdate() const;
  1907. void Remove();
  1908. void RemoveAttributeAnimation(const String&);
  1909. void RemoveInstanceDefault();
  1910. void RemoveObjectAnimation();
  1911. void ResetToDefault();
  1912. bool Save(File) const;
  1913. bool Save(VectorBuffer&) const;
  1914. bool SaveJSON(JSONValue&) const;
  1915. bool SaveXML(XMLElement&) const;
  1916. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1917. void SetAnimationTime(float);
  1918. bool SetAttribute(const String&, const Variant&);
  1919. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1920. void SetAttributeAnimationSpeed(const String&, float);
  1921. void SetAttributeAnimationTime(const String&, float);
  1922. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1923. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1924. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1925. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1926. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1927. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1928. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetInterceptNetworkUpdate(const String&, bool);
  1931. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetTerrain(uint = 0);
  1934. void SetTransform(const Vector3&, const Quaternion&);
  1935. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. // Properties:
  1937. bool animationEnabled;
  1938. /* readonly */
  1939. Array<Variant> attributeDefaults;
  1940. /* readonly */
  1941. Array<AttributeInfo> attributeInfos;
  1942. Array<Variant> attributes;
  1943. /* readonly */
  1944. String category;
  1945. bool enabled;
  1946. /* readonly */
  1947. bool enabledEffective;
  1948. /* readonly */
  1949. uint id;
  1950. uint lodLevel;
  1951. float margin;
  1952. Model model;
  1953. /* readonly */
  1954. Node node;
  1955. /* readonly */
  1956. uint numAttributes;
  1957. ObjectAnimation objectAnimation;
  1958. Vector3 position;
  1959. /* readonly */
  1960. int refs;
  1961. Quaternion rotation;
  1962. ShapeType shapeType;
  1963. Vector3 size;
  1964. bool temporary;
  1965. /* readonly */
  1966. StringHash type;
  1967. /* readonly */
  1968. String typeName;
  1969. /* readonly */
  1970. int weakRefs;
  1971. /* readonly */
  1972. BoundingBox worldBoundingBox;
  1973. };
  1974. class CollisionShape2D
  1975. {
  1976. // Methods:
  1977. void ApplyAttributes();
  1978. void DrawDebugGeometry(DebugRenderer, bool);
  1979. Variant GetAttribute(const String&) const;
  1980. ValueAnimation GetAttributeAnimation(const String&) const;
  1981. float GetAttributeAnimationSpeed(const String&) const;
  1982. float GetAttributeAnimationTime(const String&) const;
  1983. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1984. Variant GetAttributeDefault(const String&) const;
  1985. bool GetInterceptNetworkUpdate(const String&) const;
  1986. bool HasSubscribedToEvent(Object, const String&);
  1987. bool HasSubscribedToEvent(const String&);
  1988. bool Load(File, bool = false);
  1989. bool Load(VectorBuffer&, bool = false);
  1990. bool LoadJSON(const JSONValue&, bool = false);
  1991. bool LoadXML(const XMLElement&, bool = false);
  1992. void MarkNetworkUpdate() const;
  1993. void Remove();
  1994. void RemoveAttributeAnimation(const String&);
  1995. void RemoveInstanceDefault();
  1996. void RemoveObjectAnimation();
  1997. void ResetToDefault();
  1998. bool Save(File) const;
  1999. bool Save(VectorBuffer&) const;
  2000. bool SaveJSON(JSONValue&) const;
  2001. bool SaveXML(XMLElement&) const;
  2002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2003. void SetAnimationTime(float);
  2004. bool SetAttribute(const String&, const Variant&);
  2005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2006. void SetAttributeAnimationSpeed(const String&, float);
  2007. void SetAttributeAnimationTime(const String&, float);
  2008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2009. void SetInterceptNetworkUpdate(const String&, bool);
  2010. // Properties:
  2011. bool animationEnabled;
  2012. /* readonly */
  2013. Array<Variant> attributeDefaults;
  2014. /* readonly */
  2015. Array<AttributeInfo> attributeInfos;
  2016. Array<Variant> attributes;
  2017. /* readonly */
  2018. String category;
  2019. int categoryBits;
  2020. float density;
  2021. bool enabled;
  2022. /* readonly */
  2023. bool enabledEffective;
  2024. float friction;
  2025. int groupIndex;
  2026. /* readonly */
  2027. uint id;
  2028. /* readonly */
  2029. float inertia;
  2030. int maskBits;
  2031. /* readonly */
  2032. float mass;
  2033. /* readonly */
  2034. Vector2 massCenter;
  2035. /* readonly */
  2036. Node node;
  2037. /* readonly */
  2038. uint numAttributes;
  2039. ObjectAnimation objectAnimation;
  2040. /* readonly */
  2041. int refs;
  2042. float restitution;
  2043. bool temporary;
  2044. bool trigger;
  2045. /* readonly */
  2046. StringHash type;
  2047. /* readonly */
  2048. String typeName;
  2049. /* readonly */
  2050. int weakRefs;
  2051. };
  2052. class Color
  2053. {
  2054. // Methods:
  2055. Color Abs() const;
  2056. float Average() const;
  2057. float Chroma() const;
  2058. void Clip(bool);
  2059. bool Equals() const;
  2060. void FromHSL(float, float, float, float);
  2061. void FromHSV(float, float, float, float);
  2062. float Hue() const;
  2063. void Invert(bool);
  2064. Color Lerp(const Color&, float) const;
  2065. float Lightness() const;
  2066. float Luma() const;
  2067. float MaxRGB() const;
  2068. float MinRGB() const;
  2069. float Range() const;
  2070. float SaturationHSL() const;
  2071. float SaturationHSV() const;
  2072. float SumRGB() const;
  2073. Vector3 ToHSL() const;
  2074. Vector3 ToHSV() const;
  2075. String ToString() const;
  2076. uint ToUInt() const;
  2077. float Value() const;
  2078. // Properties:
  2079. float a;
  2080. float b;
  2081. /* readonly */
  2082. Array<float> data;
  2083. float g;
  2084. float r;
  2085. /* readonly */
  2086. Vector3 rgb;
  2087. /* readonly */
  2088. Vector4 rgba;
  2089. };
  2090. class ColorFrame
  2091. {
  2092. // Properties:
  2093. Color color;
  2094. float time;
  2095. };
  2096. class Component
  2097. {
  2098. // Methods:
  2099. void ApplyAttributes();
  2100. void DrawDebugGeometry(DebugRenderer, bool);
  2101. Variant GetAttribute(const String&) const;
  2102. ValueAnimation GetAttributeAnimation(const String&) const;
  2103. float GetAttributeAnimationSpeed(const String&) const;
  2104. float GetAttributeAnimationTime(const String&) const;
  2105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2106. Variant GetAttributeDefault(const String&) const;
  2107. bool GetInterceptNetworkUpdate(const String&) const;
  2108. bool HasSubscribedToEvent(Object, const String&);
  2109. bool HasSubscribedToEvent(const String&);
  2110. bool Load(File, bool = false);
  2111. bool Load(VectorBuffer&, bool = false);
  2112. bool LoadJSON(const JSONValue&, bool = false);
  2113. bool LoadXML(const XMLElement&, bool = false);
  2114. void MarkNetworkUpdate() const;
  2115. void Remove();
  2116. void RemoveAttributeAnimation(const String&);
  2117. void RemoveInstanceDefault();
  2118. void RemoveObjectAnimation();
  2119. void ResetToDefault();
  2120. bool Save(File) const;
  2121. bool Save(VectorBuffer&) const;
  2122. bool SaveJSON(JSONValue&) const;
  2123. bool SaveXML(XMLElement&) const;
  2124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2125. void SetAnimationTime(float);
  2126. bool SetAttribute(const String&, const Variant&);
  2127. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2128. void SetAttributeAnimationSpeed(const String&, float);
  2129. void SetAttributeAnimationTime(const String&, float);
  2130. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2131. void SetInterceptNetworkUpdate(const String&, bool);
  2132. // Properties:
  2133. bool animationEnabled;
  2134. /* readonly */
  2135. Array<Variant> attributeDefaults;
  2136. /* readonly */
  2137. Array<AttributeInfo> attributeInfos;
  2138. Array<Variant> attributes;
  2139. /* readonly */
  2140. String category;
  2141. bool enabled;
  2142. /* readonly */
  2143. bool enabledEffective;
  2144. /* readonly */
  2145. uint id;
  2146. /* readonly */
  2147. Node node;
  2148. /* readonly */
  2149. uint numAttributes;
  2150. ObjectAnimation objectAnimation;
  2151. /* readonly */
  2152. int refs;
  2153. bool temporary;
  2154. /* readonly */
  2155. StringHash type;
  2156. /* readonly */
  2157. String typeName;
  2158. /* readonly */
  2159. int weakRefs;
  2160. };
  2161. class Connection
  2162. {
  2163. // Methods:
  2164. void Disconnect(int = 0);
  2165. bool HasSubscribedToEvent(Object, const String&);
  2166. bool HasSubscribedToEvent(const String&);
  2167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2168. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2169. void SendPackageToClient(PackageFile);
  2170. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2171. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2172. String ToString() const;
  2173. // Properties:
  2174. /* readonly */
  2175. String address;
  2176. /* readonly */
  2177. float bytesInPerSec;
  2178. /* readonly */
  2179. float bytesOutPerSec;
  2180. /* readonly */
  2181. String category;
  2182. /* readonly */
  2183. bool client;
  2184. /* readonly */
  2185. bool connectPending;
  2186. /* readonly */
  2187. bool connected;
  2188. Controls controls;
  2189. /* readonly */
  2190. String downloadName;
  2191. /* readonly */
  2192. float downloadProgress;
  2193. VariantMap identity;
  2194. /* readonly */
  2195. float lastHeardTime;
  2196. bool logStatistics;
  2197. /* readonly */
  2198. uint numDownloads;
  2199. /* readonly */
  2200. float packetsInPerSec;
  2201. /* readonly */
  2202. float packetsOutPerSec;
  2203. /* readonly */
  2204. uint16 port;
  2205. Vector3 position;
  2206. /* readonly */
  2207. int refs;
  2208. Quaternion rotation;
  2209. /* readonly */
  2210. float roundTripTime;
  2211. Scene scene;
  2212. /* readonly */
  2213. bool sceneLoaded;
  2214. uint8 timeStamp;
  2215. /* readonly */
  2216. StringHash type;
  2217. /* readonly */
  2218. String typeName;
  2219. /* readonly */
  2220. int weakRefs;
  2221. };
  2222. class Console
  2223. {
  2224. // Methods:
  2225. void CopySelectedRows() const;
  2226. bool HasSubscribedToEvent(Object, const String&);
  2227. bool HasSubscribedToEvent(const String&);
  2228. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2229. void Toggle();
  2230. void UpdateElements();
  2231. // Properties:
  2232. bool autoVisibleOnError;
  2233. /* readonly */
  2234. BorderImage background;
  2235. /* readonly */
  2236. String category;
  2237. /* readonly */
  2238. Button closeButton;
  2239. String commandInterpreter;
  2240. XMLFile defaultStyle;
  2241. bool focusOnShow;
  2242. /* readonly */
  2243. uint historyPosition;
  2244. /* readonly */
  2245. Array<String> historyRow;
  2246. /* readonly */
  2247. LineEdit lineEdit;
  2248. uint numBufferedRows;
  2249. uint numHistoryRows;
  2250. uint numRows;
  2251. /* readonly */
  2252. int refs;
  2253. /* readonly */
  2254. StringHash type;
  2255. /* readonly */
  2256. String typeName;
  2257. bool visible;
  2258. /* readonly */
  2259. int weakRefs;
  2260. };
  2261. class Constraint
  2262. {
  2263. // Methods:
  2264. void ApplyAttributes();
  2265. void DrawDebugGeometry(DebugRenderer, bool);
  2266. Variant GetAttribute(const String&) const;
  2267. ValueAnimation GetAttributeAnimation(const String&) const;
  2268. float GetAttributeAnimationSpeed(const String&) const;
  2269. float GetAttributeAnimationTime(const String&) const;
  2270. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2271. Variant GetAttributeDefault(const String&) const;
  2272. bool GetInterceptNetworkUpdate(const String&) const;
  2273. bool HasSubscribedToEvent(Object, const String&);
  2274. bool HasSubscribedToEvent(const String&);
  2275. bool Load(File, bool = false);
  2276. bool Load(VectorBuffer&, bool = false);
  2277. bool LoadJSON(const JSONValue&, bool = false);
  2278. bool LoadXML(const XMLElement&, bool = false);
  2279. void MarkNetworkUpdate() const;
  2280. void Remove();
  2281. void RemoveAttributeAnimation(const String&);
  2282. void RemoveInstanceDefault();
  2283. void RemoveObjectAnimation();
  2284. void ResetToDefault();
  2285. bool Save(File) const;
  2286. bool Save(VectorBuffer&) const;
  2287. bool SaveJSON(JSONValue&) const;
  2288. bool SaveXML(XMLElement&) const;
  2289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2290. void SetAnimationTime(float);
  2291. bool SetAttribute(const String&, const Variant&);
  2292. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2293. void SetAttributeAnimationSpeed(const String&, float);
  2294. void SetAttributeAnimationTime(const String&, float);
  2295. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2296. void SetInterceptNetworkUpdate(const String&, bool);
  2297. // Properties:
  2298. bool animationEnabled;
  2299. /* readonly */
  2300. Array<Variant> attributeDefaults;
  2301. /* readonly */
  2302. Array<AttributeInfo> attributeInfos;
  2303. Array<Variant> attributes;
  2304. /* writeonly */
  2305. Vector3 axis;
  2306. /* readonly */
  2307. String category;
  2308. float cfm;
  2309. ConstraintType constraintType;
  2310. bool disableCollision;
  2311. bool enabled;
  2312. /* readonly */
  2313. bool enabledEffective;
  2314. float erp;
  2315. Vector2 highLimit;
  2316. /* readonly */
  2317. uint id;
  2318. Vector2 lowLimit;
  2319. /* readonly */
  2320. Node node;
  2321. /* readonly */
  2322. uint numAttributes;
  2323. ObjectAnimation objectAnimation;
  2324. /* writeonly */
  2325. Vector3 otherAxis;
  2326. RigidBody otherBody;
  2327. Vector3 otherPosition;
  2328. Quaternion otherRotation;
  2329. /* readonly */
  2330. RigidBody ownBody;
  2331. Vector3 position;
  2332. /* readonly */
  2333. int refs;
  2334. Quaternion rotation;
  2335. bool temporary;
  2336. /* readonly */
  2337. StringHash type;
  2338. /* readonly */
  2339. String typeName;
  2340. /* readonly */
  2341. int weakRefs;
  2342. Vector3 worldPosition;
  2343. };
  2344. class Constraint2D
  2345. {
  2346. // Methods:
  2347. void ApplyAttributes();
  2348. void DrawDebugGeometry(DebugRenderer, bool);
  2349. Variant GetAttribute(const String&) const;
  2350. ValueAnimation GetAttributeAnimation(const String&) const;
  2351. float GetAttributeAnimationSpeed(const String&) const;
  2352. float GetAttributeAnimationTime(const String&) const;
  2353. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2354. Variant GetAttributeDefault(const String&) const;
  2355. bool GetInterceptNetworkUpdate(const String&) const;
  2356. bool HasSubscribedToEvent(Object, const String&);
  2357. bool HasSubscribedToEvent(const String&);
  2358. bool Load(File, bool = false);
  2359. bool Load(VectorBuffer&, bool = false);
  2360. bool LoadJSON(const JSONValue&, bool = false);
  2361. bool LoadXML(const XMLElement&, bool = false);
  2362. void MarkNetworkUpdate() const;
  2363. void Remove();
  2364. void RemoveAttributeAnimation(const String&);
  2365. void RemoveInstanceDefault();
  2366. void RemoveObjectAnimation();
  2367. void ResetToDefault();
  2368. bool Save(File) const;
  2369. bool Save(VectorBuffer&) const;
  2370. bool SaveJSON(JSONValue&) const;
  2371. bool SaveXML(XMLElement&) const;
  2372. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2373. void SetAnimationTime(float);
  2374. bool SetAttribute(const String&, const Variant&);
  2375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2376. void SetAttributeAnimationSpeed(const String&, float);
  2377. void SetAttributeAnimationTime(const String&, float);
  2378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2379. void SetInterceptNetworkUpdate(const String&, bool);
  2380. // Properties:
  2381. bool animationEnabled;
  2382. /* readonly */
  2383. Array<Variant> attributeDefaults;
  2384. /* readonly */
  2385. Array<AttributeInfo> attributeInfos;
  2386. Array<Variant> attributes;
  2387. /* readonly */
  2388. String category;
  2389. bool collideConnected;
  2390. bool enabled;
  2391. /* readonly */
  2392. bool enabledEffective;
  2393. /* readonly */
  2394. uint id;
  2395. /* readonly */
  2396. Node node;
  2397. /* readonly */
  2398. uint numAttributes;
  2399. ObjectAnimation objectAnimation;
  2400. RigidBody2D otherBody;
  2401. /* readonly */
  2402. RigidBody2D ownerBody;
  2403. /* readonly */
  2404. int refs;
  2405. bool temporary;
  2406. /* readonly */
  2407. StringHash type;
  2408. /* readonly */
  2409. String typeName;
  2410. /* readonly */
  2411. int weakRefs;
  2412. };
  2413. class ConstraintDistance2D
  2414. {
  2415. // Methods:
  2416. void ApplyAttributes();
  2417. void DrawDebugGeometry(DebugRenderer, bool);
  2418. Variant GetAttribute(const String&) const;
  2419. ValueAnimation GetAttributeAnimation(const String&) const;
  2420. float GetAttributeAnimationSpeed(const String&) const;
  2421. float GetAttributeAnimationTime(const String&) const;
  2422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2423. Variant GetAttributeDefault(const String&) const;
  2424. bool GetInterceptNetworkUpdate(const String&) const;
  2425. bool HasSubscribedToEvent(Object, const String&);
  2426. bool HasSubscribedToEvent(const String&);
  2427. bool Load(File, bool = false);
  2428. bool Load(VectorBuffer&, bool = false);
  2429. bool LoadJSON(const JSONValue&, bool = false);
  2430. bool LoadXML(const XMLElement&, bool = false);
  2431. void MarkNetworkUpdate() const;
  2432. void Remove();
  2433. void RemoveAttributeAnimation(const String&);
  2434. void RemoveInstanceDefault();
  2435. void RemoveObjectAnimation();
  2436. void ResetToDefault();
  2437. bool Save(File) const;
  2438. bool Save(VectorBuffer&) const;
  2439. bool SaveJSON(JSONValue&) const;
  2440. bool SaveXML(XMLElement&) const;
  2441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2442. void SetAnimationTime(float);
  2443. bool SetAttribute(const String&, const Variant&);
  2444. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2445. void SetAttributeAnimationSpeed(const String&, float);
  2446. void SetAttributeAnimationTime(const String&, float);
  2447. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2448. void SetInterceptNetworkUpdate(const String&, bool);
  2449. // Properties:
  2450. bool animationEnabled;
  2451. /* readonly */
  2452. Array<Variant> attributeDefaults;
  2453. /* readonly */
  2454. Array<AttributeInfo> attributeInfos;
  2455. Array<Variant> attributes;
  2456. /* readonly */
  2457. String category;
  2458. bool collideConnected;
  2459. float dampingRatio;
  2460. bool enabled;
  2461. /* readonly */
  2462. bool enabledEffective;
  2463. float frequencyHz;
  2464. /* readonly */
  2465. uint id;
  2466. /* readonly */
  2467. Node node;
  2468. /* readonly */
  2469. uint numAttributes;
  2470. ObjectAnimation objectAnimation;
  2471. RigidBody2D otherBody;
  2472. Vector2 otherBodyAnchor;
  2473. /* readonly */
  2474. RigidBody2D ownerBody;
  2475. Vector2 ownerBodyAnchor;
  2476. /* readonly */
  2477. int refs;
  2478. bool temporary;
  2479. /* readonly */
  2480. StringHash type;
  2481. /* readonly */
  2482. String typeName;
  2483. /* readonly */
  2484. int weakRefs;
  2485. };
  2486. class ConstraintFriction2D
  2487. {
  2488. // Methods:
  2489. void ApplyAttributes();
  2490. void DrawDebugGeometry(DebugRenderer, bool);
  2491. Variant GetAttribute(const String&) const;
  2492. ValueAnimation GetAttributeAnimation(const String&) const;
  2493. float GetAttributeAnimationSpeed(const String&) const;
  2494. float GetAttributeAnimationTime(const String&) const;
  2495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2496. Variant GetAttributeDefault(const String&) const;
  2497. bool GetInterceptNetworkUpdate(const String&) const;
  2498. bool HasSubscribedToEvent(Object, const String&);
  2499. bool HasSubscribedToEvent(const String&);
  2500. bool Load(File, bool = false);
  2501. bool Load(VectorBuffer&, bool = false);
  2502. bool LoadJSON(const JSONValue&, bool = false);
  2503. bool LoadXML(const XMLElement&, bool = false);
  2504. void MarkNetworkUpdate() const;
  2505. void Remove();
  2506. void RemoveAttributeAnimation(const String&);
  2507. void RemoveInstanceDefault();
  2508. void RemoveObjectAnimation();
  2509. void ResetToDefault();
  2510. bool Save(File) const;
  2511. bool Save(VectorBuffer&) const;
  2512. bool SaveJSON(JSONValue&) const;
  2513. bool SaveXML(XMLElement&) const;
  2514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2515. void SetAnimationTime(float);
  2516. bool SetAttribute(const String&, const Variant&);
  2517. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2518. void SetAttributeAnimationSpeed(const String&, float);
  2519. void SetAttributeAnimationTime(const String&, float);
  2520. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2521. void SetInterceptNetworkUpdate(const String&, bool);
  2522. // Properties:
  2523. Vector2 anchor;
  2524. bool animationEnabled;
  2525. /* readonly */
  2526. Array<Variant> attributeDefaults;
  2527. /* readonly */
  2528. Array<AttributeInfo> attributeInfos;
  2529. Array<Variant> attributes;
  2530. /* readonly */
  2531. String category;
  2532. bool collideConnected;
  2533. bool enabled;
  2534. /* readonly */
  2535. bool enabledEffective;
  2536. /* readonly */
  2537. uint id;
  2538. float maxForce;
  2539. float maxTorque;
  2540. /* readonly */
  2541. Node node;
  2542. /* readonly */
  2543. uint numAttributes;
  2544. ObjectAnimation objectAnimation;
  2545. RigidBody2D otherBody;
  2546. /* readonly */
  2547. RigidBody2D ownerBody;
  2548. /* readonly */
  2549. int refs;
  2550. bool temporary;
  2551. /* readonly */
  2552. StringHash type;
  2553. /* readonly */
  2554. String typeName;
  2555. /* readonly */
  2556. int weakRefs;
  2557. };
  2558. class ConstraintGear2D
  2559. {
  2560. // Methods:
  2561. void ApplyAttributes();
  2562. void DrawDebugGeometry(DebugRenderer, bool);
  2563. Variant GetAttribute(const String&) const;
  2564. ValueAnimation GetAttributeAnimation(const String&) const;
  2565. float GetAttributeAnimationSpeed(const String&) const;
  2566. float GetAttributeAnimationTime(const String&) const;
  2567. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2568. Variant GetAttributeDefault(const String&) const;
  2569. bool GetInterceptNetworkUpdate(const String&) const;
  2570. bool HasSubscribedToEvent(Object, const String&);
  2571. bool HasSubscribedToEvent(const String&);
  2572. bool Load(File, bool = false);
  2573. bool Load(VectorBuffer&, bool = false);
  2574. bool LoadJSON(const JSONValue&, bool = false);
  2575. bool LoadXML(const XMLElement&, bool = false);
  2576. void MarkNetworkUpdate() const;
  2577. void Remove();
  2578. void RemoveAttributeAnimation(const String&);
  2579. void RemoveInstanceDefault();
  2580. void RemoveObjectAnimation();
  2581. void ResetToDefault();
  2582. bool Save(File) const;
  2583. bool Save(VectorBuffer&) const;
  2584. bool SaveJSON(JSONValue&) const;
  2585. bool SaveXML(XMLElement&) const;
  2586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2587. void SetAnimationTime(float);
  2588. bool SetAttribute(const String&, const Variant&);
  2589. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2590. void SetAttributeAnimationSpeed(const String&, float);
  2591. void SetAttributeAnimationTime(const String&, float);
  2592. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2593. void SetInterceptNetworkUpdate(const String&, bool);
  2594. // Properties:
  2595. bool animationEnabled;
  2596. /* readonly */
  2597. Array<Variant> attributeDefaults;
  2598. /* readonly */
  2599. Array<AttributeInfo> attributeInfos;
  2600. Array<Variant> attributes;
  2601. /* readonly */
  2602. String category;
  2603. bool collideConnected;
  2604. bool enabled;
  2605. /* readonly */
  2606. bool enabledEffective;
  2607. /* readonly */
  2608. uint id;
  2609. /* readonly */
  2610. Node node;
  2611. /* readonly */
  2612. uint numAttributes;
  2613. ObjectAnimation objectAnimation;
  2614. RigidBody2D otherBody;
  2615. Constraint2D otherConstraint;
  2616. /* readonly */
  2617. RigidBody2D ownerBody;
  2618. Constraint2D ownerConstraint;
  2619. float ratio;
  2620. /* readonly */
  2621. int refs;
  2622. bool temporary;
  2623. /* readonly */
  2624. StringHash type;
  2625. /* readonly */
  2626. String typeName;
  2627. /* readonly */
  2628. int weakRefs;
  2629. };
  2630. class ConstraintMotor2D
  2631. {
  2632. // Methods:
  2633. void ApplyAttributes();
  2634. void DrawDebugGeometry(DebugRenderer, bool);
  2635. Variant GetAttribute(const String&) const;
  2636. ValueAnimation GetAttributeAnimation(const String&) const;
  2637. float GetAttributeAnimationSpeed(const String&) const;
  2638. float GetAttributeAnimationTime(const String&) const;
  2639. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2640. Variant GetAttributeDefault(const String&) const;
  2641. bool GetInterceptNetworkUpdate(const String&) const;
  2642. bool HasSubscribedToEvent(Object, const String&);
  2643. bool HasSubscribedToEvent(const String&);
  2644. bool Load(File, bool = false);
  2645. bool Load(VectorBuffer&, bool = false);
  2646. bool LoadJSON(const JSONValue&, bool = false);
  2647. bool LoadXML(const XMLElement&, bool = false);
  2648. void MarkNetworkUpdate() const;
  2649. void Remove();
  2650. void RemoveAttributeAnimation(const String&);
  2651. void RemoveInstanceDefault();
  2652. void RemoveObjectAnimation();
  2653. void ResetToDefault();
  2654. bool Save(File) const;
  2655. bool Save(VectorBuffer&) const;
  2656. bool SaveJSON(JSONValue&) const;
  2657. bool SaveXML(XMLElement&) const;
  2658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2659. void SetAnimationTime(float);
  2660. bool SetAttribute(const String&, const Variant&);
  2661. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2662. void SetAttributeAnimationSpeed(const String&, float);
  2663. void SetAttributeAnimationTime(const String&, float);
  2664. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2665. void SetInterceptNetworkUpdate(const String&, bool);
  2666. // Properties:
  2667. float angularOffset;
  2668. bool animationEnabled;
  2669. /* readonly */
  2670. Array<Variant> attributeDefaults;
  2671. /* readonly */
  2672. Array<AttributeInfo> attributeInfos;
  2673. Array<Variant> attributes;
  2674. /* readonly */
  2675. String category;
  2676. bool collideConnected;
  2677. float correctionFactor;
  2678. bool enabled;
  2679. /* readonly */
  2680. bool enabledEffective;
  2681. /* readonly */
  2682. uint id;
  2683. Vector2 linearOffset;
  2684. float maxForce;
  2685. float maxTorque;
  2686. /* readonly */
  2687. Node node;
  2688. /* readonly */
  2689. uint numAttributes;
  2690. ObjectAnimation objectAnimation;
  2691. RigidBody2D otherBody;
  2692. /* readonly */
  2693. RigidBody2D ownerBody;
  2694. /* readonly */
  2695. int refs;
  2696. bool temporary;
  2697. /* readonly */
  2698. StringHash type;
  2699. /* readonly */
  2700. String typeName;
  2701. /* readonly */
  2702. int weakRefs;
  2703. };
  2704. class ConstraintMouse2D
  2705. {
  2706. // Methods:
  2707. void ApplyAttributes();
  2708. void DrawDebugGeometry(DebugRenderer, bool);
  2709. Variant GetAttribute(const String&) const;
  2710. ValueAnimation GetAttributeAnimation(const String&) const;
  2711. float GetAttributeAnimationSpeed(const String&) const;
  2712. float GetAttributeAnimationTime(const String&) const;
  2713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2714. Variant GetAttributeDefault(const String&) const;
  2715. bool GetInterceptNetworkUpdate(const String&) const;
  2716. bool HasSubscribedToEvent(Object, const String&);
  2717. bool HasSubscribedToEvent(const String&);
  2718. bool Load(File, bool = false);
  2719. bool Load(VectorBuffer&, bool = false);
  2720. bool LoadJSON(const JSONValue&, bool = false);
  2721. bool LoadXML(const XMLElement&, bool = false);
  2722. void MarkNetworkUpdate() const;
  2723. void Remove();
  2724. void RemoveAttributeAnimation(const String&);
  2725. void RemoveInstanceDefault();
  2726. void RemoveObjectAnimation();
  2727. void ResetToDefault();
  2728. bool Save(File) const;
  2729. bool Save(VectorBuffer&) const;
  2730. bool SaveJSON(JSONValue&) const;
  2731. bool SaveXML(XMLElement&) const;
  2732. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2733. void SetAnimationTime(float);
  2734. bool SetAttribute(const String&, const Variant&);
  2735. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2736. void SetAttributeAnimationSpeed(const String&, float);
  2737. void SetAttributeAnimationTime(const String&, float);
  2738. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2739. void SetInterceptNetworkUpdate(const String&, bool);
  2740. // Properties:
  2741. bool animationEnabled;
  2742. /* readonly */
  2743. Array<Variant> attributeDefaults;
  2744. /* readonly */
  2745. Array<AttributeInfo> attributeInfos;
  2746. Array<Variant> attributes;
  2747. /* readonly */
  2748. String category;
  2749. bool collideConnected;
  2750. float dampingRatio;
  2751. bool enabled;
  2752. /* readonly */
  2753. bool enabledEffective;
  2754. float frequencyHz;
  2755. /* readonly */
  2756. uint id;
  2757. float maxForce;
  2758. /* readonly */
  2759. Node node;
  2760. /* readonly */
  2761. uint numAttributes;
  2762. ObjectAnimation objectAnimation;
  2763. RigidBody2D otherBody;
  2764. /* readonly */
  2765. RigidBody2D ownerBody;
  2766. /* readonly */
  2767. int refs;
  2768. Vector2 target;
  2769. bool temporary;
  2770. /* readonly */
  2771. StringHash type;
  2772. /* readonly */
  2773. String typeName;
  2774. /* readonly */
  2775. int weakRefs;
  2776. };
  2777. class ConstraintPrismatic2D
  2778. {
  2779. // Methods:
  2780. void ApplyAttributes();
  2781. void DrawDebugGeometry(DebugRenderer, bool);
  2782. Variant GetAttribute(const String&) const;
  2783. ValueAnimation GetAttributeAnimation(const String&) const;
  2784. float GetAttributeAnimationSpeed(const String&) const;
  2785. float GetAttributeAnimationTime(const String&) const;
  2786. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2787. Variant GetAttributeDefault(const String&) const;
  2788. bool GetInterceptNetworkUpdate(const String&) const;
  2789. bool HasSubscribedToEvent(Object, const String&);
  2790. bool HasSubscribedToEvent(const String&);
  2791. bool Load(File, bool = false);
  2792. bool Load(VectorBuffer&, bool = false);
  2793. bool LoadJSON(const JSONValue&, bool = false);
  2794. bool LoadXML(const XMLElement&, bool = false);
  2795. void MarkNetworkUpdate() const;
  2796. void Remove();
  2797. void RemoveAttributeAnimation(const String&);
  2798. void RemoveInstanceDefault();
  2799. void RemoveObjectAnimation();
  2800. void ResetToDefault();
  2801. bool Save(File) const;
  2802. bool Save(VectorBuffer&) const;
  2803. bool SaveJSON(JSONValue&) const;
  2804. bool SaveXML(XMLElement&) const;
  2805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2806. void SetAnimationTime(float);
  2807. bool SetAttribute(const String&, const Variant&);
  2808. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2809. void SetAttributeAnimationSpeed(const String&, float);
  2810. void SetAttributeAnimationTime(const String&, float);
  2811. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2812. void SetInterceptNetworkUpdate(const String&, bool);
  2813. // Properties:
  2814. Vector2 anchor;
  2815. bool animationEnabled;
  2816. /* readonly */
  2817. Array<Variant> attributeDefaults;
  2818. /* readonly */
  2819. Array<AttributeInfo> attributeInfos;
  2820. Array<Variant> attributes;
  2821. Vector2 axis;
  2822. /* readonly */
  2823. String category;
  2824. bool collideConnected;
  2825. bool enableLimit;
  2826. bool enableMotor;
  2827. bool enabled;
  2828. /* readonly */
  2829. bool enabledEffective;
  2830. /* readonly */
  2831. uint id;
  2832. float lowerTranslation;
  2833. float maxMotorForce;
  2834. float motorSpeed;
  2835. /* readonly */
  2836. Node node;
  2837. /* readonly */
  2838. uint numAttributes;
  2839. ObjectAnimation objectAnimation;
  2840. RigidBody2D otherBody;
  2841. /* readonly */
  2842. RigidBody2D ownerBody;
  2843. /* readonly */
  2844. int refs;
  2845. bool temporary;
  2846. /* readonly */
  2847. StringHash type;
  2848. /* readonly */
  2849. String typeName;
  2850. float upperTranslation;
  2851. /* readonly */
  2852. int weakRefs;
  2853. };
  2854. class ConstraintPulley2D
  2855. {
  2856. // Methods:
  2857. void ApplyAttributes();
  2858. void DrawDebugGeometry(DebugRenderer, bool);
  2859. Variant GetAttribute(const String&) const;
  2860. ValueAnimation GetAttributeAnimation(const String&) const;
  2861. float GetAttributeAnimationSpeed(const String&) const;
  2862. float GetAttributeAnimationTime(const String&) const;
  2863. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2864. Variant GetAttributeDefault(const String&) const;
  2865. bool GetInterceptNetworkUpdate(const String&) const;
  2866. bool HasSubscribedToEvent(Object, const String&);
  2867. bool HasSubscribedToEvent(const String&);
  2868. bool Load(File, bool = false);
  2869. bool Load(VectorBuffer&, bool = false);
  2870. bool LoadJSON(const JSONValue&, bool = false);
  2871. bool LoadXML(const XMLElement&, bool = false);
  2872. void MarkNetworkUpdate() const;
  2873. void Remove();
  2874. void RemoveAttributeAnimation(const String&);
  2875. void RemoveInstanceDefault();
  2876. void RemoveObjectAnimation();
  2877. void ResetToDefault();
  2878. bool Save(File) const;
  2879. bool Save(VectorBuffer&) const;
  2880. bool SaveJSON(JSONValue&) const;
  2881. bool SaveXML(XMLElement&) const;
  2882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2883. void SetAnimationTime(float);
  2884. bool SetAttribute(const String&, const Variant&);
  2885. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2886. void SetAttributeAnimationSpeed(const String&, float);
  2887. void SetAttributeAnimationTime(const String&, float);
  2888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2889. void SetInterceptNetworkUpdate(const String&, bool);
  2890. // Properties:
  2891. bool animationEnabled;
  2892. /* readonly */
  2893. Array<Variant> attributeDefaults;
  2894. /* readonly */
  2895. Array<AttributeInfo> attributeInfos;
  2896. Array<Variant> attributes;
  2897. /* readonly */
  2898. String category;
  2899. bool collideConnected;
  2900. bool enabled;
  2901. /* readonly */
  2902. bool enabledEffective;
  2903. /* readonly */
  2904. uint id;
  2905. /* readonly */
  2906. Node node;
  2907. /* readonly */
  2908. uint numAttributes;
  2909. ObjectAnimation objectAnimation;
  2910. RigidBody2D otherBody;
  2911. Vector2 otherBodyAnchor;
  2912. Vector2 otherBodyGroundAnchor;
  2913. /* readonly */
  2914. RigidBody2D ownerBody;
  2915. Vector2 ownerBodyAnchor;
  2916. Vector2 ownerBodyGroundAnchor;
  2917. float ratio;
  2918. /* readonly */
  2919. int refs;
  2920. bool temporary;
  2921. /* readonly */
  2922. StringHash type;
  2923. /* readonly */
  2924. String typeName;
  2925. /* readonly */
  2926. int weakRefs;
  2927. };
  2928. class ConstraintRevolute2D
  2929. {
  2930. // Methods:
  2931. void ApplyAttributes();
  2932. void DrawDebugGeometry(DebugRenderer, bool);
  2933. Variant GetAttribute(const String&) const;
  2934. ValueAnimation GetAttributeAnimation(const String&) const;
  2935. float GetAttributeAnimationSpeed(const String&) const;
  2936. float GetAttributeAnimationTime(const String&) const;
  2937. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2938. Variant GetAttributeDefault(const String&) const;
  2939. bool GetInterceptNetworkUpdate(const String&) const;
  2940. bool HasSubscribedToEvent(Object, const String&);
  2941. bool HasSubscribedToEvent(const String&);
  2942. bool Load(File, bool = false);
  2943. bool Load(VectorBuffer&, bool = false);
  2944. bool LoadJSON(const JSONValue&, bool = false);
  2945. bool LoadXML(const XMLElement&, bool = false);
  2946. void MarkNetworkUpdate() const;
  2947. void Remove();
  2948. void RemoveAttributeAnimation(const String&);
  2949. void RemoveInstanceDefault();
  2950. void RemoveObjectAnimation();
  2951. void ResetToDefault();
  2952. bool Save(File) const;
  2953. bool Save(VectorBuffer&) const;
  2954. bool SaveJSON(JSONValue&) const;
  2955. bool SaveXML(XMLElement&) const;
  2956. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2957. void SetAnimationTime(float);
  2958. bool SetAttribute(const String&, const Variant&);
  2959. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2960. void SetAttributeAnimationSpeed(const String&, float);
  2961. void SetAttributeAnimationTime(const String&, float);
  2962. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2963. void SetInterceptNetworkUpdate(const String&, bool);
  2964. // Properties:
  2965. Vector2 anchor;
  2966. bool animationEnabled;
  2967. /* readonly */
  2968. Array<Variant> attributeDefaults;
  2969. /* readonly */
  2970. Array<AttributeInfo> attributeInfos;
  2971. Array<Variant> attributes;
  2972. /* readonly */
  2973. String category;
  2974. bool collideConnected;
  2975. bool enableLimit;
  2976. bool enableMotor;
  2977. bool enabled;
  2978. /* readonly */
  2979. bool enabledEffective;
  2980. /* readonly */
  2981. uint id;
  2982. float lowerAngle;
  2983. float maxMotorTorque;
  2984. float motorSpeed;
  2985. /* readonly */
  2986. Node node;
  2987. /* readonly */
  2988. uint numAttributes;
  2989. ObjectAnimation objectAnimation;
  2990. RigidBody2D otherBody;
  2991. /* readonly */
  2992. RigidBody2D ownerBody;
  2993. /* readonly */
  2994. int refs;
  2995. bool temporary;
  2996. /* readonly */
  2997. StringHash type;
  2998. /* readonly */
  2999. String typeName;
  3000. float upperAngle;
  3001. /* readonly */
  3002. int weakRefs;
  3003. };
  3004. class ConstraintRope2D
  3005. {
  3006. // Methods:
  3007. void ApplyAttributes();
  3008. void DrawDebugGeometry(DebugRenderer, bool);
  3009. Variant GetAttribute(const String&) const;
  3010. ValueAnimation GetAttributeAnimation(const String&) const;
  3011. float GetAttributeAnimationSpeed(const String&) const;
  3012. float GetAttributeAnimationTime(const String&) const;
  3013. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3014. Variant GetAttributeDefault(const String&) const;
  3015. bool GetInterceptNetworkUpdate(const String&) const;
  3016. bool HasSubscribedToEvent(Object, const String&);
  3017. bool HasSubscribedToEvent(const String&);
  3018. bool Load(File, bool = false);
  3019. bool Load(VectorBuffer&, bool = false);
  3020. bool LoadJSON(const JSONValue&, bool = false);
  3021. bool LoadXML(const XMLElement&, bool = false);
  3022. void MarkNetworkUpdate() const;
  3023. void Remove();
  3024. void RemoveAttributeAnimation(const String&);
  3025. void RemoveInstanceDefault();
  3026. void RemoveObjectAnimation();
  3027. void ResetToDefault();
  3028. bool Save(File) const;
  3029. bool Save(VectorBuffer&) const;
  3030. bool SaveJSON(JSONValue&) const;
  3031. bool SaveXML(XMLElement&) const;
  3032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3033. void SetAnimationTime(float);
  3034. bool SetAttribute(const String&, const Variant&);
  3035. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3036. void SetAttributeAnimationSpeed(const String&, float);
  3037. void SetAttributeAnimationTime(const String&, float);
  3038. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3039. void SetInterceptNetworkUpdate(const String&, bool);
  3040. // Properties:
  3041. bool animationEnabled;
  3042. /* readonly */
  3043. Array<Variant> attributeDefaults;
  3044. /* readonly */
  3045. Array<AttributeInfo> attributeInfos;
  3046. Array<Variant> attributes;
  3047. /* readonly */
  3048. String category;
  3049. bool collideConnected;
  3050. bool enabled;
  3051. /* readonly */
  3052. bool enabledEffective;
  3053. /* readonly */
  3054. uint id;
  3055. float maxLength;
  3056. /* readonly */
  3057. Node node;
  3058. /* readonly */
  3059. uint numAttributes;
  3060. ObjectAnimation objectAnimation;
  3061. RigidBody2D otherBody;
  3062. Vector2 otherBodyAnchor;
  3063. /* readonly */
  3064. RigidBody2D ownerBody;
  3065. Vector2 ownerBodyAnchor;
  3066. /* readonly */
  3067. int refs;
  3068. bool temporary;
  3069. /* readonly */
  3070. StringHash type;
  3071. /* readonly */
  3072. String typeName;
  3073. /* readonly */
  3074. int weakRefs;
  3075. };
  3076. class ConstraintWeld2D
  3077. {
  3078. // Methods:
  3079. void ApplyAttributes();
  3080. void DrawDebugGeometry(DebugRenderer, bool);
  3081. Variant GetAttribute(const String&) const;
  3082. ValueAnimation GetAttributeAnimation(const String&) const;
  3083. float GetAttributeAnimationSpeed(const String&) const;
  3084. float GetAttributeAnimationTime(const String&) const;
  3085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3086. Variant GetAttributeDefault(const String&) const;
  3087. bool GetInterceptNetworkUpdate(const String&) const;
  3088. bool HasSubscribedToEvent(Object, const String&);
  3089. bool HasSubscribedToEvent(const String&);
  3090. bool Load(File, bool = false);
  3091. bool Load(VectorBuffer&, bool = false);
  3092. bool LoadJSON(const JSONValue&, bool = false);
  3093. bool LoadXML(const XMLElement&, bool = false);
  3094. void MarkNetworkUpdate() const;
  3095. void Remove();
  3096. void RemoveAttributeAnimation(const String&);
  3097. void RemoveInstanceDefault();
  3098. void RemoveObjectAnimation();
  3099. void ResetToDefault();
  3100. bool Save(File) const;
  3101. bool Save(VectorBuffer&) const;
  3102. bool SaveJSON(JSONValue&) const;
  3103. bool SaveXML(XMLElement&) const;
  3104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3105. void SetAnimationTime(float);
  3106. bool SetAttribute(const String&, const Variant&);
  3107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3108. void SetAttributeAnimationSpeed(const String&, float);
  3109. void SetAttributeAnimationTime(const String&, float);
  3110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3111. void SetInterceptNetworkUpdate(const String&, bool);
  3112. // Properties:
  3113. Vector2 anchor;
  3114. bool animationEnabled;
  3115. /* readonly */
  3116. Array<Variant> attributeDefaults;
  3117. /* readonly */
  3118. Array<AttributeInfo> attributeInfos;
  3119. Array<Variant> attributes;
  3120. /* readonly */
  3121. String category;
  3122. bool collideConnected;
  3123. float dampingRatio;
  3124. bool enabled;
  3125. /* readonly */
  3126. bool enabledEffective;
  3127. float frequencyHz;
  3128. /* readonly */
  3129. uint id;
  3130. /* readonly */
  3131. Node node;
  3132. /* readonly */
  3133. uint numAttributes;
  3134. ObjectAnimation objectAnimation;
  3135. RigidBody2D otherBody;
  3136. /* readonly */
  3137. RigidBody2D ownerBody;
  3138. /* readonly */
  3139. int refs;
  3140. bool temporary;
  3141. /* readonly */
  3142. StringHash type;
  3143. /* readonly */
  3144. String typeName;
  3145. /* readonly */
  3146. int weakRefs;
  3147. };
  3148. class ConstraintWheel2D
  3149. {
  3150. // Methods:
  3151. void ApplyAttributes();
  3152. void DrawDebugGeometry(DebugRenderer, bool);
  3153. Variant GetAttribute(const String&) const;
  3154. ValueAnimation GetAttributeAnimation(const String&) const;
  3155. float GetAttributeAnimationSpeed(const String&) const;
  3156. float GetAttributeAnimationTime(const String&) const;
  3157. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3158. Variant GetAttributeDefault(const String&) const;
  3159. bool GetInterceptNetworkUpdate(const String&) const;
  3160. bool HasSubscribedToEvent(Object, const String&);
  3161. bool HasSubscribedToEvent(const String&);
  3162. bool Load(File, bool = false);
  3163. bool Load(VectorBuffer&, bool = false);
  3164. bool LoadJSON(const JSONValue&, bool = false);
  3165. bool LoadXML(const XMLElement&, bool = false);
  3166. void MarkNetworkUpdate() const;
  3167. void Remove();
  3168. void RemoveAttributeAnimation(const String&);
  3169. void RemoveInstanceDefault();
  3170. void RemoveObjectAnimation();
  3171. void ResetToDefault();
  3172. bool Save(File) const;
  3173. bool Save(VectorBuffer&) const;
  3174. bool SaveJSON(JSONValue&) const;
  3175. bool SaveXML(XMLElement&) const;
  3176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3177. void SetAnimationTime(float);
  3178. bool SetAttribute(const String&, const Variant&);
  3179. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3180. void SetAttributeAnimationSpeed(const String&, float);
  3181. void SetAttributeAnimationTime(const String&, float);
  3182. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3183. void SetInterceptNetworkUpdate(const String&, bool);
  3184. // Properties:
  3185. Vector2 anchor;
  3186. bool animationEnabled;
  3187. /* readonly */
  3188. Array<Variant> attributeDefaults;
  3189. /* readonly */
  3190. Array<AttributeInfo> attributeInfos;
  3191. Array<Variant> attributes;
  3192. Vector2 axis;
  3193. /* readonly */
  3194. String category;
  3195. bool collideConnected;
  3196. float dampingRatio;
  3197. bool enableMotor;
  3198. bool enabled;
  3199. /* readonly */
  3200. bool enabledEffective;
  3201. float frequencyHz;
  3202. /* readonly */
  3203. uint id;
  3204. float maxMotorTorque;
  3205. float motorSpeed;
  3206. /* readonly */
  3207. Node node;
  3208. /* readonly */
  3209. uint numAttributes;
  3210. ObjectAnimation objectAnimation;
  3211. RigidBody2D otherBody;
  3212. /* readonly */
  3213. RigidBody2D ownerBody;
  3214. /* readonly */
  3215. int refs;
  3216. bool temporary;
  3217. /* readonly */
  3218. StringHash type;
  3219. /* readonly */
  3220. String typeName;
  3221. /* readonly */
  3222. int weakRefs;
  3223. };
  3224. class Controls
  3225. {
  3226. // Methods:
  3227. bool IsDown(uint) const;
  3228. bool IsPressed(uint, const Controls&) const;
  3229. void Reset();
  3230. void Set(uint, bool);
  3231. // Properties:
  3232. uint buttons;
  3233. VariantMap extraData;
  3234. float pitch;
  3235. float yaw;
  3236. };
  3237. class CrowdAgent
  3238. {
  3239. // Methods:
  3240. void ApplyAttributes();
  3241. void DrawDebugGeometry(DebugRenderer, bool);
  3242. void DrawDebugGeometry(bool);
  3243. Variant GetAttribute(const String&) const;
  3244. ValueAnimation GetAttributeAnimation(const String&) const;
  3245. float GetAttributeAnimationSpeed(const String&) const;
  3246. float GetAttributeAnimationTime(const String&) const;
  3247. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3248. Variant GetAttributeDefault(const String&) const;
  3249. bool GetInterceptNetworkUpdate(const String&) const;
  3250. bool HasSubscribedToEvent(Object, const String&);
  3251. bool HasSubscribedToEvent(const String&);
  3252. bool Load(File, bool = false);
  3253. bool Load(VectorBuffer&, bool = false);
  3254. bool LoadJSON(const JSONValue&, bool = false);
  3255. bool LoadXML(const XMLElement&, bool = false);
  3256. void MarkNetworkUpdate() const;
  3257. void Remove();
  3258. void RemoveAttributeAnimation(const String&);
  3259. void RemoveInstanceDefault();
  3260. void RemoveObjectAnimation();
  3261. void ResetTarget();
  3262. void ResetToDefault();
  3263. bool Save(File) const;
  3264. bool Save(VectorBuffer&) const;
  3265. bool SaveJSON(JSONValue&) const;
  3266. bool SaveXML(XMLElement&) const;
  3267. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3268. void SetAnimationTime(float);
  3269. bool SetAttribute(const String&, const Variant&);
  3270. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3271. void SetAttributeAnimationSpeed(const String&, float);
  3272. void SetAttributeAnimationTime(const String&, float);
  3273. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3274. void SetInterceptNetworkUpdate(const String&, bool);
  3275. // Properties:
  3276. /* readonly */
  3277. Vector3 actualVelocity;
  3278. /* readonly */
  3279. CrowdAgentState agentState;
  3280. bool animationEnabled;
  3281. /* readonly */
  3282. bool arrived;
  3283. /* readonly */
  3284. Array<Variant> attributeDefaults;
  3285. /* readonly */
  3286. Array<AttributeInfo> attributeInfos;
  3287. Array<Variant> attributes;
  3288. /* readonly */
  3289. String category;
  3290. /* readonly */
  3291. Vector3 desiredVelocity;
  3292. bool enabled;
  3293. /* readonly */
  3294. bool enabledEffective;
  3295. float height;
  3296. /* readonly */
  3297. uint id;
  3298. /* readonly */
  3299. bool inCrowd;
  3300. float maxAccel;
  3301. float maxSpeed;
  3302. NavigationPushiness navigationPushiness;
  3303. NavigationQuality navigationQuality;
  3304. /* readonly */
  3305. Node node;
  3306. /* readonly */
  3307. uint numAttributes;
  3308. ObjectAnimation objectAnimation;
  3309. uint obstacleAvoidanceType;
  3310. /* readonly */
  3311. Vector3 position;
  3312. uint queryFilterType;
  3313. float radius;
  3314. /* readonly */
  3315. int refs;
  3316. /* readonly */
  3317. bool requestedTarget;
  3318. /* readonly */
  3319. CrowdAgentRequestedTarget requestedTargetType;
  3320. Vector3 targetPosition;
  3321. /* readonly */
  3322. CrowdAgentTargetState targetState;
  3323. Vector3 targetVelocity;
  3324. bool temporary;
  3325. /* readonly */
  3326. StringHash type;
  3327. /* readonly */
  3328. String typeName;
  3329. bool updateNodePosition;
  3330. /* readonly */
  3331. int weakRefs;
  3332. };
  3333. class CrowdManager
  3334. {
  3335. // Methods:
  3336. void ApplyAttributes();
  3337. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3338. void DrawDebugGeometry(DebugRenderer, bool);
  3339. void DrawDebugGeometry(bool);
  3340. Vector3 FindNearestPoint(const Vector3&, int);
  3341. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3342. float GetAreaCost(uint, uint);
  3343. Variant GetAttribute(const String&) const;
  3344. ValueAnimation GetAttributeAnimation(const String&) const;
  3345. float GetAttributeAnimationSpeed(const String&) const;
  3346. float GetAttributeAnimationTime(const String&) const;
  3347. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3348. Variant GetAttributeDefault(const String&) const;
  3349. float GetDistanceToWall(const Vector3&, float, int);
  3350. uint16 GetExcludeFlags(uint);
  3351. uint16 GetIncludeFlags(uint);
  3352. bool GetInterceptNetworkUpdate(const String&) const;
  3353. Vector3 GetRandomPoint(int);
  3354. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3355. bool HasSubscribedToEvent(Object, const String&);
  3356. bool HasSubscribedToEvent(const String&);
  3357. bool Load(File, bool = false);
  3358. bool Load(VectorBuffer&, bool = false);
  3359. bool LoadJSON(const JSONValue&, bool = false);
  3360. bool LoadXML(const XMLElement&, bool = false);
  3361. void MarkNetworkUpdate() const;
  3362. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3363. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3364. void Remove();
  3365. void RemoveAttributeAnimation(const String&);
  3366. void RemoveInstanceDefault();
  3367. void RemoveObjectAnimation();
  3368. void ResetCrowdTarget(Node = null);
  3369. void ResetToDefault();
  3370. bool Save(File) const;
  3371. bool Save(VectorBuffer&) const;
  3372. bool SaveJSON(JSONValue&) const;
  3373. bool SaveXML(XMLElement&) const;
  3374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3375. void SetAnimationTime(float);
  3376. void SetAreaCost(uint, uint, float);
  3377. bool SetAttribute(const String&, const Variant&);
  3378. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3379. void SetAttributeAnimationSpeed(const String&, float);
  3380. void SetAttributeAnimationTime(const String&, float);
  3381. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3382. void SetCrowdTarget(const Vector3&, Node = null);
  3383. void SetCrowdVelocity(const Vector3&, Node = null);
  3384. void SetExcludeFlags(uint, uint16);
  3385. void SetIncludeFlags(uint, uint16);
  3386. void SetInterceptNetworkUpdate(const String&, bool);
  3387. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3388. // Properties:
  3389. bool animationEnabled;
  3390. /* readonly */
  3391. Array<Variant> attributeDefaults;
  3392. /* readonly */
  3393. Array<AttributeInfo> attributeInfos;
  3394. Array<Variant> attributes;
  3395. /* readonly */
  3396. String category;
  3397. bool enabled;
  3398. /* readonly */
  3399. bool enabledEffective;
  3400. /* readonly */
  3401. uint id;
  3402. float maxAgentRadius;
  3403. int maxAgents;
  3404. NavigationMesh navMesh;
  3405. /* readonly */
  3406. Node node;
  3407. /* readonly */
  3408. Array<uint> numAreas;
  3409. /* readonly */
  3410. uint numAttributes;
  3411. /* readonly */
  3412. uint numObstacleAvoidanceTypes;
  3413. /* readonly */
  3414. uint numQueryFilterTypes;
  3415. ObjectAnimation objectAnimation;
  3416. /* readonly */
  3417. int refs;
  3418. bool temporary;
  3419. /* readonly */
  3420. StringHash type;
  3421. /* readonly */
  3422. String typeName;
  3423. /* readonly */
  3424. int weakRefs;
  3425. };
  3426. class CrowdObstacleAvoidanceParams
  3427. {
  3428. // Properties:
  3429. uint8 adaptiveDepth;
  3430. uint8 adaptiveDivs;
  3431. uint8 adaptiveRings;
  3432. uint8 gridSize;
  3433. float horizTime;
  3434. float velBias;
  3435. float weightCurVel;
  3436. float weightDesVel;
  3437. float weightSide;
  3438. float weightToi;
  3439. };
  3440. class Cursor
  3441. {
  3442. // Methods:
  3443. void AddChild(UIElement);
  3444. void AddTag(const String&);
  3445. void AddTags(const String&, int8 = ';');
  3446. void ApplyAttributes();
  3447. void BringToFront();
  3448. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3449. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3450. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3451. void DisableLayoutUpdate();
  3452. IntVector2 ElementToScreen(const IntVector2&);
  3453. void EnableLayoutUpdate();
  3454. uint FindChild(UIElement) const;
  3455. Variant GetAttribute(const String&) const;
  3456. ValueAnimation GetAttributeAnimation(const String&) const;
  3457. float GetAttributeAnimationSpeed(const String&) const;
  3458. float GetAttributeAnimationTime(const String&) const;
  3459. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3460. Variant GetAttributeDefault(const String&) const;
  3461. UIElement GetChild(const String&, bool = false) const;
  3462. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3463. Array<UIElement> GetChildren(bool = false) const;
  3464. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3465. UIElement GetElementEventSender() const;
  3466. bool GetInterceptNetworkUpdate(const String&) const;
  3467. uint GetNumChildren(bool) const;
  3468. bool HasSubscribedToEvent(Object, const String&);
  3469. bool HasSubscribedToEvent(const String&);
  3470. bool HasTag(const String&) const;
  3471. void InsertChild(uint, UIElement);
  3472. bool IsInside(IntVector2, bool);
  3473. bool IsInsideCombined(IntVector2, bool);
  3474. bool Load(File, bool = false);
  3475. bool Load(VectorBuffer&, bool = false);
  3476. bool LoadChildXML(XMLFile, XMLFile = null);
  3477. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3478. bool LoadJSON(const JSONValue&, bool = false);
  3479. bool LoadXML(File);
  3480. bool LoadXML(VectorBuffer&);
  3481. bool LoadXML(XMLFile, XMLFile);
  3482. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3483. bool LoadXML(const XMLElement&, bool = false);
  3484. void MarkNetworkUpdate() const;
  3485. void Remove();
  3486. void RemoveAllChildren();
  3487. void RemoveAllTags();
  3488. void RemoveAttributeAnimation(const String&);
  3489. void RemoveChild(UIElement, uint = 0);
  3490. void RemoveChild(uint);
  3491. void RemoveInstanceDefault();
  3492. void RemoveObjectAnimation();
  3493. bool RemoveTag(const String&);
  3494. void ResetDeepEnabled();
  3495. void ResetToDefault();
  3496. bool Save(File) const;
  3497. bool Save(VectorBuffer&) const;
  3498. bool SaveJSON(JSONValue&) const;
  3499. bool SaveXML(File, const String& = "\t");
  3500. bool SaveXML(VectorBuffer&, const String& = "\t");
  3501. bool SaveXML(XMLElement&) const;
  3502. IntVector2 ScreenToElement(const IntVector2&);
  3503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3504. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3505. void SetAnimationTime(float);
  3506. bool SetAttribute(const String&, const Variant&);
  3507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3508. void SetAttributeAnimationSpeed(const String&, float);
  3509. void SetAttributeAnimationTime(const String&, float);
  3510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3511. void SetDeepEnabled(bool);
  3512. void SetEnabledRecursive(bool);
  3513. void SetFixedHeight(int);
  3514. void SetFixedSize(int, int);
  3515. void SetFixedWidth(int);
  3516. void SetFullImageRect();
  3517. void SetHoverOffset(int, int);
  3518. void SetInterceptNetworkUpdate(const String&, bool);
  3519. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3520. void SetMaxSize(int, int);
  3521. void SetMinSize(int, int);
  3522. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3523. void SetPosition(int, int);
  3524. void SetShape(CursorShape);
  3525. void SetShape(const String&);
  3526. void SetSize(int, int);
  3527. bool SetStyle(const String&, XMLFile = null);
  3528. bool SetStyle(const XMLElement&);
  3529. bool SetStyleAuto(XMLFile = null);
  3530. void UpdateLayout();
  3531. const Variant& GetVar(const StringHash&);
  3532. // Properties:
  3533. bool animationEnabled;
  3534. /* readonly */
  3535. Array<Variant> attributeDefaults;
  3536. /* readonly */
  3537. Array<AttributeInfo> attributeInfos;
  3538. Array<Variant> attributes;
  3539. BlendMode blendMode;
  3540. IntRect border;
  3541. bool bringToBack;
  3542. bool bringToFront;
  3543. /* readonly */
  3544. String category;
  3545. /* readonly */
  3546. IntVector2 childOffset;
  3547. /* readonly */
  3548. Array<UIElement> children;
  3549. IntRect clipBorder;
  3550. bool clipChildren;
  3551. /* writeonly */
  3552. Color color;
  3553. /* readonly */
  3554. bool colorGradient;
  3555. Array<Color> colors;
  3556. /* readonly */
  3557. IntRect combinedScreenRect;
  3558. XMLFile defaultStyle;
  3559. /* readonly */
  3560. float derivedOpacity;
  3561. /* readonly */
  3562. uint dragButtonCombo;
  3563. /* readonly */
  3564. int dragButtonCount;
  3565. uint dragDropMode;
  3566. bool editable;
  3567. bool elementEventSender;
  3568. bool enabled;
  3569. /* readonly */
  3570. bool enabledSelf;
  3571. /* readonly */
  3572. bool fixedHeight;
  3573. /* readonly */
  3574. bool fixedSize;
  3575. /* readonly */
  3576. bool fixedWidth;
  3577. bool focus;
  3578. FocusMode focusMode;
  3579. int height;
  3580. HorizontalAlignment horizontalAlignment;
  3581. IntVector2 hoverOffset;
  3582. /* readonly */
  3583. bool hovering;
  3584. IntRect imageBorder;
  3585. IntRect imageRect;
  3586. int indent;
  3587. int indentSpacing;
  3588. /* readonly */
  3589. int indentWidth;
  3590. bool internal;
  3591. IntRect layoutBorder;
  3592. Vector2 layoutFlexScale;
  3593. LayoutMode layoutMode;
  3594. int layoutSpacing;
  3595. int maxHeight;
  3596. IntVector2 maxSize;
  3597. int maxWidth;
  3598. int minHeight;
  3599. IntVector2 minSize;
  3600. int minWidth;
  3601. String name;
  3602. /* readonly */
  3603. uint numAllChildren;
  3604. /* readonly */
  3605. uint numAttributes;
  3606. /* readonly */
  3607. uint numChildren;
  3608. ObjectAnimation objectAnimation;
  3609. float opacity;
  3610. UIElement parent;
  3611. IntVector2 position;
  3612. int priority;
  3613. /* readonly */
  3614. int refs;
  3615. /* readonly */
  3616. UIElement root;
  3617. /* readonly */
  3618. IntVector2 screenPosition;
  3619. bool selected;
  3620. String shape;
  3621. IntVector2 size;
  3622. bool sortChildren;
  3623. String style;
  3624. /* readonly */
  3625. Array<String> tags;
  3626. bool temporary;
  3627. Texture texture;
  3628. bool tiled;
  3629. TraversalMode traversalMode;
  3630. /* readonly */
  3631. StringHash type;
  3632. /* readonly */
  3633. String typeName;
  3634. bool useDerivedOpacity;
  3635. bool useSystemShapes;
  3636. /* readonly */
  3637. VariantMap vars;
  3638. VerticalAlignment verticalAlignment;
  3639. bool visible;
  3640. /* readonly */
  3641. bool visibleEffective;
  3642. /* readonly */
  3643. int weakRefs;
  3644. int width;
  3645. };
  3646. class CustomGeometry
  3647. {
  3648. // Methods:
  3649. void ApplyAttributes();
  3650. void BeginGeometry(uint, PrimitiveType);
  3651. void Clear();
  3652. void Commit();
  3653. void DefineColor(const Color&);
  3654. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3655. void DefineNormal(const Vector3&);
  3656. void DefineTangent(const Vector4&);
  3657. void DefineTexCoord(const Vector2&);
  3658. void DefineVertex(const Vector3&);
  3659. void DrawDebugGeometry(DebugRenderer, bool);
  3660. Variant GetAttribute(const String&) const;
  3661. ValueAnimation GetAttributeAnimation(const String&) const;
  3662. float GetAttributeAnimationSpeed(const String&) const;
  3663. float GetAttributeAnimationTime(const String&) const;
  3664. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3665. Variant GetAttributeDefault(const String&) const;
  3666. bool GetInterceptNetworkUpdate(const String&) const;
  3667. CustomGeometryVertex GetVertex(uint, uint);
  3668. bool HasSubscribedToEvent(Object, const String&);
  3669. bool HasSubscribedToEvent(const String&);
  3670. bool IsInView(Camera) const;
  3671. bool Load(File, bool = false);
  3672. bool Load(VectorBuffer&, bool = false);
  3673. bool LoadJSON(const JSONValue&, bool = false);
  3674. bool LoadXML(const XMLElement&, bool = false);
  3675. void MarkNetworkUpdate() const;
  3676. void Remove();
  3677. void RemoveAttributeAnimation(const String&);
  3678. void RemoveInstanceDefault();
  3679. void RemoveObjectAnimation();
  3680. void ResetToDefault();
  3681. bool Save(File) const;
  3682. bool Save(VectorBuffer&) const;
  3683. bool SaveJSON(JSONValue&) const;
  3684. bool SaveXML(XMLElement&) const;
  3685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3686. void SetAnimationTime(float);
  3687. bool SetAttribute(const String&, const Variant&);
  3688. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3689. void SetAttributeAnimationSpeed(const String&, float);
  3690. void SetAttributeAnimationTime(const String&, float);
  3691. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3692. void SetInterceptNetworkUpdate(const String&, bool);
  3693. // Properties:
  3694. bool animationEnabled;
  3695. /* readonly */
  3696. Array<Variant> attributeDefaults;
  3697. /* readonly */
  3698. Array<AttributeInfo> attributeInfos;
  3699. Array<Variant> attributes;
  3700. /* readonly */
  3701. BoundingBox boundingBox;
  3702. bool castShadows;
  3703. /* readonly */
  3704. String category;
  3705. float drawDistance;
  3706. bool dynamic;
  3707. bool enabled;
  3708. /* readonly */
  3709. bool enabledEffective;
  3710. /* readonly */
  3711. uint id;
  3712. /* readonly */
  3713. bool inView;
  3714. uint lightMask;
  3715. float lodBias;
  3716. /* writeonly */
  3717. Material material;
  3718. Array<Material> materials;
  3719. uint maxLights;
  3720. /* readonly */
  3721. Node node;
  3722. /* readonly */
  3723. uint numAttributes;
  3724. uint numGeometries;
  3725. /* readonly */
  3726. Array<uint> numVertices;
  3727. ObjectAnimation objectAnimation;
  3728. bool occludee;
  3729. bool occluder;
  3730. /* readonly */
  3731. int refs;
  3732. float shadowDistance;
  3733. uint shadowMask;
  3734. bool temporary;
  3735. /* readonly */
  3736. StringHash type;
  3737. /* readonly */
  3738. String typeName;
  3739. uint viewMask;
  3740. /* readonly */
  3741. int weakRefs;
  3742. /* readonly */
  3743. BoundingBox worldBoundingBox;
  3744. /* readonly */
  3745. Zone zone;
  3746. uint zoneMask;
  3747. };
  3748. class CustomGeometryVertex
  3749. {
  3750. // Properties:
  3751. uint color;
  3752. Vector3 normal;
  3753. Vector3 position;
  3754. Vector4 tangent;
  3755. Vector2 texCoord;
  3756. };
  3757. class Database
  3758. {
  3759. // Methods:
  3760. DbConnection Connect(const String&);
  3761. void Disconnect(DbConnection);
  3762. bool HasSubscribedToEvent(Object, const String&);
  3763. bool HasSubscribedToEvent(const String&);
  3764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3765. // Properties:
  3766. /* readonly */
  3767. String category;
  3768. uint poolSize;
  3769. /* readonly */
  3770. bool pooling;
  3771. /* readonly */
  3772. int refs;
  3773. /* readonly */
  3774. StringHash type;
  3775. /* readonly */
  3776. String typeName;
  3777. /* readonly */
  3778. int weakRefs;
  3779. };
  3780. class DbConnection
  3781. {
  3782. // Methods:
  3783. DbResult Execute(const String&, bool = false);
  3784. bool HasSubscribedToEvent(Object, const String&);
  3785. bool HasSubscribedToEvent(const String&);
  3786. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3787. // Properties:
  3788. /* readonly */
  3789. String category;
  3790. /* readonly */
  3791. bool connected;
  3792. /* readonly */
  3793. String connectionString;
  3794. /* readonly */
  3795. int refs;
  3796. /* readonly */
  3797. StringHash type;
  3798. /* readonly */
  3799. String typeName;
  3800. /* readonly */
  3801. int weakRefs;
  3802. };
  3803. class DbResult
  3804. {
  3805. // Properties:
  3806. /* readonly */
  3807. Array<String> columns;
  3808. /* readonly */
  3809. int64 numAffectedRows;
  3810. /* readonly */
  3811. uint numColumns;
  3812. /* readonly */
  3813. uint numRows;
  3814. /* readonly */
  3815. Array<Array<Variant>> row;
  3816. };
  3817. class DebugHud
  3818. {
  3819. // Methods:
  3820. void ClearAppStats();
  3821. bool HasSubscribedToEvent(Object, const String&);
  3822. bool HasSubscribedToEvent(const String&);
  3823. void ResetAppStats(const String&);
  3824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3825. void SetAppStats(const String&, const String&);
  3826. void SetAppStats(const String&, const Variant&);
  3827. void Toggle(uint);
  3828. void ToggleAll();
  3829. void Update();
  3830. // Properties:
  3831. /* readonly */
  3832. String category;
  3833. XMLFile defaultStyle;
  3834. /* readonly */
  3835. Text memoryText;
  3836. uint mode;
  3837. /* readonly */
  3838. Text modeText;
  3839. float profilerInterval;
  3840. uint profilerMaxDepth;
  3841. /* readonly */
  3842. Text profilerText;
  3843. /* readonly */
  3844. int refs;
  3845. /* readonly */
  3846. Text statsText;
  3847. /* readonly */
  3848. StringHash type;
  3849. /* readonly */
  3850. String typeName;
  3851. bool useRendererStats;
  3852. /* readonly */
  3853. int weakRefs;
  3854. };
  3855. class DebugRenderer
  3856. {
  3857. // Methods:
  3858. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3859. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3860. void AddCross(const Vector3&, float, const Color&, bool = true);
  3861. void AddFrustum(const Frustum&, const Color&, bool = true);
  3862. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3863. void AddNode(Node, float = 1.0, bool = true);
  3864. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3865. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3866. void AddSkeleton(Skeleton, const Color&, bool = true);
  3867. void AddSphere(const Sphere&, const Color&, bool = true);
  3868. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3869. void ApplyAttributes();
  3870. void DrawDebugGeometry(DebugRenderer, bool);
  3871. Variant GetAttribute(const String&) const;
  3872. ValueAnimation GetAttributeAnimation(const String&) const;
  3873. float GetAttributeAnimationSpeed(const String&) const;
  3874. float GetAttributeAnimationTime(const String&) const;
  3875. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3876. Variant GetAttributeDefault(const String&) const;
  3877. bool GetInterceptNetworkUpdate(const String&) const;
  3878. bool HasSubscribedToEvent(Object, const String&);
  3879. bool HasSubscribedToEvent(const String&);
  3880. bool Load(File, bool = false);
  3881. bool Load(VectorBuffer&, bool = false);
  3882. bool LoadJSON(const JSONValue&, bool = false);
  3883. bool LoadXML(const XMLElement&, bool = false);
  3884. void MarkNetworkUpdate() const;
  3885. void Remove();
  3886. void RemoveAttributeAnimation(const String&);
  3887. void RemoveInstanceDefault();
  3888. void RemoveObjectAnimation();
  3889. void ResetToDefault();
  3890. bool Save(File) const;
  3891. bool Save(VectorBuffer&) const;
  3892. bool SaveJSON(JSONValue&) const;
  3893. bool SaveXML(XMLElement&) const;
  3894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3895. void SetAnimationTime(float);
  3896. bool SetAttribute(const String&, const Variant&);
  3897. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3898. void SetAttributeAnimationSpeed(const String&, float);
  3899. void SetAttributeAnimationTime(const String&, float);
  3900. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3901. void SetInterceptNetworkUpdate(const String&, bool);
  3902. // Properties:
  3903. bool animationEnabled;
  3904. /* readonly */
  3905. Array<Variant> attributeDefaults;
  3906. /* readonly */
  3907. Array<AttributeInfo> attributeInfos;
  3908. Array<Variant> attributes;
  3909. /* readonly */
  3910. String category;
  3911. bool enabled;
  3912. /* readonly */
  3913. bool enabledEffective;
  3914. /* readonly */
  3915. uint id;
  3916. /* readonly */
  3917. Node node;
  3918. /* readonly */
  3919. uint numAttributes;
  3920. ObjectAnimation objectAnimation;
  3921. /* readonly */
  3922. int refs;
  3923. bool temporary;
  3924. /* readonly */
  3925. StringHash type;
  3926. /* readonly */
  3927. String typeName;
  3928. /* readonly */
  3929. int weakRefs;
  3930. };
  3931. class DecalSet
  3932. {
  3933. // Methods:
  3934. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3935. void ApplyAttributes();
  3936. void DrawDebugGeometry(DebugRenderer, bool);
  3937. Variant GetAttribute(const String&) const;
  3938. ValueAnimation GetAttributeAnimation(const String&) const;
  3939. float GetAttributeAnimationSpeed(const String&) const;
  3940. float GetAttributeAnimationTime(const String&) const;
  3941. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3942. Variant GetAttributeDefault(const String&) const;
  3943. bool GetInterceptNetworkUpdate(const String&) const;
  3944. bool HasSubscribedToEvent(Object, const String&);
  3945. bool HasSubscribedToEvent(const String&);
  3946. bool IsInView(Camera) const;
  3947. bool Load(File, bool = false);
  3948. bool Load(VectorBuffer&, bool = false);
  3949. bool LoadJSON(const JSONValue&, bool = false);
  3950. bool LoadXML(const XMLElement&, bool = false);
  3951. void MarkNetworkUpdate() const;
  3952. void Remove();
  3953. void RemoveAllDecals();
  3954. void RemoveAttributeAnimation(const String&);
  3955. void RemoveDecals(uint);
  3956. void RemoveInstanceDefault();
  3957. void RemoveObjectAnimation();
  3958. void ResetToDefault();
  3959. bool Save(File) const;
  3960. bool Save(VectorBuffer&) const;
  3961. bool SaveJSON(JSONValue&) const;
  3962. bool SaveXML(XMLElement&) const;
  3963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3964. void SetAnimationTime(float);
  3965. bool SetAttribute(const String&, const Variant&);
  3966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3967. void SetAttributeAnimationSpeed(const String&, float);
  3968. void SetAttributeAnimationTime(const String&, float);
  3969. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3970. void SetInterceptNetworkUpdate(const String&, bool);
  3971. // Properties:
  3972. bool animationEnabled;
  3973. /* readonly */
  3974. Array<Variant> attributeDefaults;
  3975. /* readonly */
  3976. Array<AttributeInfo> attributeInfos;
  3977. Array<Variant> attributes;
  3978. /* readonly */
  3979. BoundingBox boundingBox;
  3980. bool castShadows;
  3981. /* readonly */
  3982. String category;
  3983. float drawDistance;
  3984. bool enabled;
  3985. /* readonly */
  3986. bool enabledEffective;
  3987. /* readonly */
  3988. uint id;
  3989. /* readonly */
  3990. bool inView;
  3991. uint lightMask;
  3992. float lodBias;
  3993. Material material;
  3994. uint maxIndices;
  3995. uint maxLights;
  3996. uint maxVertices;
  3997. /* readonly */
  3998. Node node;
  3999. /* readonly */
  4000. uint numAttributes;
  4001. /* readonly */
  4002. uint numDecals;
  4003. /* readonly */
  4004. uint numIndices;
  4005. /* readonly */
  4006. uint numVertices;
  4007. ObjectAnimation objectAnimation;
  4008. bool occludee;
  4009. bool occluder;
  4010. /* readonly */
  4011. int refs;
  4012. float shadowDistance;
  4013. uint shadowMask;
  4014. bool temporary;
  4015. /* readonly */
  4016. StringHash type;
  4017. /* readonly */
  4018. String typeName;
  4019. uint viewMask;
  4020. /* readonly */
  4021. int weakRefs;
  4022. /* readonly */
  4023. BoundingBox worldBoundingBox;
  4024. /* readonly */
  4025. Zone zone;
  4026. uint zoneMask;
  4027. };
  4028. class Deserializer
  4029. {
  4030. // Methods:
  4031. Array<uint8> Read(uint);
  4032. bool ReadBool();
  4033. BoundingBox ReadBoundingBox();
  4034. int8 ReadByte();
  4035. Color ReadColor();
  4036. double ReadDouble();
  4037. String ReadFileID();
  4038. float ReadFloat();
  4039. int ReadInt();
  4040. IntRect ReadIntRect();
  4041. IntVector2 ReadIntVector2();
  4042. String ReadLine();
  4043. Matrix3 ReadMatrix3();
  4044. Matrix3x4 ReadMatrix3x4();
  4045. Matrix4 ReadMatrix4();
  4046. uint ReadNetID();
  4047. Quaternion ReadPackedQuaternion();
  4048. Vector3 ReadPackedVector3(float);
  4049. Quaternion ReadQuaternion();
  4050. int16 ReadShort();
  4051. String ReadString();
  4052. StringHash ReadStringHash();
  4053. uint8 ReadUByte();
  4054. uint ReadUInt();
  4055. uint16 ReadUShort();
  4056. uint ReadVLE();
  4057. Variant ReadVariant();
  4058. VariantMap ReadVariantMap();
  4059. Vector2 ReadVector2();
  4060. Vector3 ReadVector3();
  4061. Vector4 ReadVector4();
  4062. VectorBuffer ReadVectorBuffer(uint);
  4063. uint Seek(uint);
  4064. // Properties:
  4065. /* readonly */
  4066. uint checksum;
  4067. /* readonly */
  4068. bool eof;
  4069. /* readonly */
  4070. String name;
  4071. /* readonly */
  4072. uint position;
  4073. /* readonly */
  4074. uint size;
  4075. };
  4076. class Dictionary
  4077. {
  4078. // Methods:
  4079. void Clear();
  4080. void Erase(const String&);
  4081. bool Exists(const String&) const;
  4082. bool Get(const String&, void*) const;
  4083. bool Get(const String&, double&) const;
  4084. bool Get(const String&, int64&) const;
  4085. void Set(const String&, const void*);
  4086. void Set(const String&, const double&);
  4087. void Set(const String&, const int64&);
  4088. // Properties:
  4089. /* readonly */
  4090. bool empty;
  4091. /* readonly */
  4092. Array<String> keys;
  4093. /* readonly */
  4094. uint length;
  4095. };
  4096. class DictionaryValue
  4097. {
  4098. };
  4099. class Drawable
  4100. {
  4101. // Methods:
  4102. void ApplyAttributes();
  4103. void DrawDebugGeometry(DebugRenderer, bool);
  4104. Variant GetAttribute(const String&) const;
  4105. ValueAnimation GetAttributeAnimation(const String&) const;
  4106. float GetAttributeAnimationSpeed(const String&) const;
  4107. float GetAttributeAnimationTime(const String&) const;
  4108. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4109. Variant GetAttributeDefault(const String&) const;
  4110. bool GetInterceptNetworkUpdate(const String&) const;
  4111. bool HasSubscribedToEvent(Object, const String&);
  4112. bool HasSubscribedToEvent(const String&);
  4113. bool IsInView(Camera) const;
  4114. bool Load(File, bool = false);
  4115. bool Load(VectorBuffer&, bool = false);
  4116. bool LoadJSON(const JSONValue&, bool = false);
  4117. bool LoadXML(const XMLElement&, bool = false);
  4118. void MarkNetworkUpdate() const;
  4119. void Remove();
  4120. void RemoveAttributeAnimation(const String&);
  4121. void RemoveInstanceDefault();
  4122. void RemoveObjectAnimation();
  4123. void ResetToDefault();
  4124. bool Save(File) const;
  4125. bool Save(VectorBuffer&) const;
  4126. bool SaveJSON(JSONValue&) const;
  4127. bool SaveXML(XMLElement&) const;
  4128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4129. void SetAnimationTime(float);
  4130. bool SetAttribute(const String&, const Variant&);
  4131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4132. void SetAttributeAnimationSpeed(const String&, float);
  4133. void SetAttributeAnimationTime(const String&, float);
  4134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4135. void SetInterceptNetworkUpdate(const String&, bool);
  4136. // Properties:
  4137. bool animationEnabled;
  4138. /* readonly */
  4139. Array<Variant> attributeDefaults;
  4140. /* readonly */
  4141. Array<AttributeInfo> attributeInfos;
  4142. Array<Variant> attributes;
  4143. /* readonly */
  4144. BoundingBox boundingBox;
  4145. bool castShadows;
  4146. /* readonly */
  4147. String category;
  4148. float drawDistance;
  4149. bool enabled;
  4150. /* readonly */
  4151. bool enabledEffective;
  4152. /* readonly */
  4153. uint id;
  4154. /* readonly */
  4155. bool inView;
  4156. uint lightMask;
  4157. float lodBias;
  4158. uint maxLights;
  4159. /* readonly */
  4160. Node node;
  4161. /* readonly */
  4162. uint numAttributes;
  4163. ObjectAnimation objectAnimation;
  4164. bool occludee;
  4165. bool occluder;
  4166. /* readonly */
  4167. int refs;
  4168. float shadowDistance;
  4169. uint shadowMask;
  4170. bool temporary;
  4171. /* readonly */
  4172. StringHash type;
  4173. /* readonly */
  4174. String typeName;
  4175. uint viewMask;
  4176. /* readonly */
  4177. int weakRefs;
  4178. /* readonly */
  4179. BoundingBox worldBoundingBox;
  4180. uint zoneMask;
  4181. };
  4182. class Drawable2D
  4183. {
  4184. // Methods:
  4185. void ApplyAttributes();
  4186. void DrawDebugGeometry(DebugRenderer, bool);
  4187. Variant GetAttribute(const String&) const;
  4188. ValueAnimation GetAttributeAnimation(const String&) const;
  4189. float GetAttributeAnimationSpeed(const String&) const;
  4190. float GetAttributeAnimationTime(const String&) const;
  4191. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4192. Variant GetAttributeDefault(const String&) const;
  4193. bool GetInterceptNetworkUpdate(const String&) const;
  4194. bool HasSubscribedToEvent(Object, const String&);
  4195. bool HasSubscribedToEvent(const String&);
  4196. bool IsInView(Camera) const;
  4197. bool Load(File, bool = false);
  4198. bool Load(VectorBuffer&, bool = false);
  4199. bool LoadJSON(const JSONValue&, bool = false);
  4200. bool LoadXML(const XMLElement&, bool = false);
  4201. void MarkNetworkUpdate() const;
  4202. void Remove();
  4203. void RemoveAttributeAnimation(const String&);
  4204. void RemoveInstanceDefault();
  4205. void RemoveObjectAnimation();
  4206. void ResetToDefault();
  4207. bool Save(File) const;
  4208. bool Save(VectorBuffer&) const;
  4209. bool SaveJSON(JSONValue&) const;
  4210. bool SaveXML(XMLElement&) const;
  4211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4212. void SetAnimationTime(float);
  4213. bool SetAttribute(const String&, const Variant&);
  4214. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4215. void SetAttributeAnimationSpeed(const String&, float);
  4216. void SetAttributeAnimationTime(const String&, float);
  4217. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4218. void SetInterceptNetworkUpdate(const String&, bool);
  4219. // Properties:
  4220. bool animationEnabled;
  4221. /* readonly */
  4222. Array<Variant> attributeDefaults;
  4223. /* readonly */
  4224. Array<AttributeInfo> attributeInfos;
  4225. Array<Variant> attributes;
  4226. /* readonly */
  4227. BoundingBox boundingBox;
  4228. bool castShadows;
  4229. /* readonly */
  4230. String category;
  4231. float drawDistance;
  4232. bool enabled;
  4233. /* readonly */
  4234. bool enabledEffective;
  4235. /* readonly */
  4236. uint id;
  4237. /* readonly */
  4238. bool inView;
  4239. int layer;
  4240. uint lightMask;
  4241. float lodBias;
  4242. uint maxLights;
  4243. /* readonly */
  4244. Node node;
  4245. /* readonly */
  4246. uint numAttributes;
  4247. ObjectAnimation objectAnimation;
  4248. bool occludee;
  4249. bool occluder;
  4250. int orderInLayer;
  4251. /* readonly */
  4252. int refs;
  4253. float shadowDistance;
  4254. uint shadowMask;
  4255. bool temporary;
  4256. /* readonly */
  4257. StringHash type;
  4258. /* readonly */
  4259. String typeName;
  4260. uint viewMask;
  4261. /* readonly */
  4262. int weakRefs;
  4263. /* readonly */
  4264. BoundingBox worldBoundingBox;
  4265. uint zoneMask;
  4266. };
  4267. class DropDownList
  4268. {
  4269. // Methods:
  4270. void AddChild(UIElement);
  4271. void AddItem(UIElement);
  4272. void AddTag(const String&);
  4273. void AddTags(const String&, int8 = ';');
  4274. void ApplyAttributes();
  4275. void BringToFront();
  4276. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4277. void DisableLayoutUpdate();
  4278. IntVector2 ElementToScreen(const IntVector2&);
  4279. void EnableLayoutUpdate();
  4280. uint FindChild(UIElement) const;
  4281. Variant GetAttribute(const String&) const;
  4282. ValueAnimation GetAttributeAnimation(const String&) const;
  4283. float GetAttributeAnimationSpeed(const String&) const;
  4284. float GetAttributeAnimationTime(const String&) const;
  4285. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4286. Variant GetAttributeDefault(const String&) const;
  4287. UIElement GetChild(const String&, bool = false) const;
  4288. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4289. Array<UIElement> GetChildren(bool = false) const;
  4290. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4291. UIElement GetElementEventSender() const;
  4292. bool GetInterceptNetworkUpdate(const String&) const;
  4293. Array<UIElement> GetItems() const;
  4294. uint GetNumChildren(bool) const;
  4295. bool HasSubscribedToEvent(Object, const String&);
  4296. bool HasSubscribedToEvent(const String&);
  4297. bool HasTag(const String&) const;
  4298. void InsertChild(uint, UIElement);
  4299. void InsertItem(uint, UIElement);
  4300. bool IsInside(IntVector2, bool);
  4301. bool IsInsideCombined(IntVector2, bool);
  4302. bool Load(File, bool = false);
  4303. bool Load(VectorBuffer&, bool = false);
  4304. bool LoadChildXML(XMLFile, XMLFile = null);
  4305. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4306. bool LoadJSON(const JSONValue&, bool = false);
  4307. bool LoadXML(File);
  4308. bool LoadXML(VectorBuffer&);
  4309. bool LoadXML(XMLFile, XMLFile);
  4310. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4311. bool LoadXML(const XMLElement&, bool = false);
  4312. void MarkNetworkUpdate() const;
  4313. void Remove();
  4314. void RemoveAllChildren();
  4315. void RemoveAllItems();
  4316. void RemoveAllTags();
  4317. void RemoveAttributeAnimation(const String&);
  4318. void RemoveChild(UIElement, uint = 0);
  4319. void RemoveChild(uint);
  4320. void RemoveInstanceDefault();
  4321. void RemoveItem(UIElement);
  4322. void RemoveItem(uint);
  4323. void RemoveObjectAnimation();
  4324. bool RemoveTag(const String&);
  4325. void ResetDeepEnabled();
  4326. void ResetToDefault();
  4327. bool Save(File) const;
  4328. bool Save(VectorBuffer&) const;
  4329. bool SaveJSON(JSONValue&) const;
  4330. bool SaveXML(File, const String& = "\t");
  4331. bool SaveXML(VectorBuffer&, const String& = "\t");
  4332. bool SaveXML(XMLElement&) const;
  4333. IntVector2 ScreenToElement(const IntVector2&);
  4334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4335. void SetAccelerator(int, int);
  4336. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4337. void SetAnimationTime(float);
  4338. bool SetAttribute(const String&, const Variant&);
  4339. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4340. void SetAttributeAnimationSpeed(const String&, float);
  4341. void SetAttributeAnimationTime(const String&, float);
  4342. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4343. void SetDeepEnabled(bool);
  4344. void SetEnabledRecursive(bool);
  4345. void SetFixedHeight(int);
  4346. void SetFixedSize(int, int);
  4347. void SetFixedWidth(int);
  4348. void SetFullImageRect();
  4349. void SetHoverOffset(int, int);
  4350. void SetInterceptNetworkUpdate(const String&, bool);
  4351. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4352. void SetMaxSize(int, int);
  4353. void SetMinSize(int, int);
  4354. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4355. void SetPosition(int, int);
  4356. void SetPressedChildOffset(int, int);
  4357. void SetPressedOffset(int, int);
  4358. void SetRepeat(float, float);
  4359. void SetSize(int, int);
  4360. bool SetStyle(const String&, XMLFile = null);
  4361. bool SetStyle(const XMLElement&);
  4362. bool SetStyleAuto(XMLFile = null);
  4363. void UpdateLayout();
  4364. const Variant& GetVar(const StringHash&);
  4365. UIElement getPopup() const;
  4366. // Properties:
  4367. /* readonly */
  4368. int acceleratorKey;
  4369. /* readonly */
  4370. int acceleratorQualifiers;
  4371. bool animationEnabled;
  4372. /* readonly */
  4373. Array<Variant> attributeDefaults;
  4374. /* readonly */
  4375. Array<AttributeInfo> attributeInfos;
  4376. Array<Variant> attributes;
  4377. BlendMode blendMode;
  4378. IntRect border;
  4379. bool bringToBack;
  4380. bool bringToFront;
  4381. /* readonly */
  4382. String category;
  4383. /* readonly */
  4384. IntVector2 childOffset;
  4385. /* readonly */
  4386. Array<UIElement> children;
  4387. IntRect clipBorder;
  4388. bool clipChildren;
  4389. /* writeonly */
  4390. Color color;
  4391. /* readonly */
  4392. bool colorGradient;
  4393. Array<Color> colors;
  4394. /* readonly */
  4395. IntRect combinedScreenRect;
  4396. XMLFile defaultStyle;
  4397. /* readonly */
  4398. float derivedOpacity;
  4399. /* readonly */
  4400. uint dragButtonCombo;
  4401. /* readonly */
  4402. int dragButtonCount;
  4403. uint dragDropMode;
  4404. bool editable;
  4405. bool elementEventSender;
  4406. bool enabled;
  4407. /* readonly */
  4408. bool enabledSelf;
  4409. /* readonly */
  4410. bool fixedHeight;
  4411. /* readonly */
  4412. bool fixedSize;
  4413. /* readonly */
  4414. bool fixedWidth;
  4415. bool focus;
  4416. FocusMode focusMode;
  4417. int height;
  4418. HorizontalAlignment horizontalAlignment;
  4419. IntVector2 hoverOffset;
  4420. /* readonly */
  4421. bool hovering;
  4422. IntRect imageBorder;
  4423. IntRect imageRect;
  4424. int indent;
  4425. int indentSpacing;
  4426. /* readonly */
  4427. int indentWidth;
  4428. bool internal;
  4429. /* readonly */
  4430. Array<UIElement> items;
  4431. IntRect layoutBorder;
  4432. Vector2 layoutFlexScale;
  4433. LayoutMode layoutMode;
  4434. int layoutSpacing;
  4435. /* readonly */
  4436. ListView listView;
  4437. int maxHeight;
  4438. IntVector2 maxSize;
  4439. int maxWidth;
  4440. int minHeight;
  4441. IntVector2 minSize;
  4442. int minWidth;
  4443. String name;
  4444. /* readonly */
  4445. uint numAllChildren;
  4446. /* readonly */
  4447. uint numAttributes;
  4448. /* readonly */
  4449. uint numChildren;
  4450. /* readonly */
  4451. uint numItems;
  4452. ObjectAnimation objectAnimation;
  4453. float opacity;
  4454. UIElement parent;
  4455. /* readonly */
  4456. UIElement placeholder;
  4457. String placeholderText;
  4458. IntVector2 position;
  4459. /* readonly */
  4460. bool pressed;
  4461. IntVector2 pressedChildOffset;
  4462. IntVector2 pressedOffset;
  4463. int priority;
  4464. /* readonly */
  4465. int refs;
  4466. float repeatDelay;
  4467. float repeatRate;
  4468. bool resizePopup;
  4469. /* readonly */
  4470. UIElement root;
  4471. /* readonly */
  4472. IntVector2 screenPosition;
  4473. bool selected;
  4474. /* readonly */
  4475. UIElement selectedItem;
  4476. uint selection;
  4477. bool showPopup;
  4478. IntVector2 size;
  4479. bool sortChildren;
  4480. String style;
  4481. /* readonly */
  4482. Array<String> tags;
  4483. bool temporary;
  4484. Texture texture;
  4485. bool tiled;
  4486. TraversalMode traversalMode;
  4487. /* readonly */
  4488. StringHash type;
  4489. /* readonly */
  4490. String typeName;
  4491. bool useDerivedOpacity;
  4492. /* readonly */
  4493. VariantMap vars;
  4494. VerticalAlignment verticalAlignment;
  4495. bool visible;
  4496. /* readonly */
  4497. bool visibleEffective;
  4498. /* readonly */
  4499. int weakRefs;
  4500. int width;
  4501. };
  4502. class DynamicNavigationMesh
  4503. {
  4504. // Methods:
  4505. void ApplyAttributes();
  4506. bool Build();
  4507. bool Build(const BoundingBox&);
  4508. void DrawDebugGeometry(DebugRenderer, bool);
  4509. void DrawDebugGeometry(bool);
  4510. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4511. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4512. float GetAreaCost(uint) const;
  4513. Variant GetAttribute(const String&) const;
  4514. ValueAnimation GetAttributeAnimation(const String&) const;
  4515. float GetAttributeAnimationSpeed(const String&) const;
  4516. float GetAttributeAnimationTime(const String&) const;
  4517. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4518. Variant GetAttributeDefault(const String&) const;
  4519. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. bool GetInterceptNetworkUpdate(const String&) const;
  4521. Vector3 GetRandomPoint();
  4522. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4523. bool HasSubscribedToEvent(Object, const String&);
  4524. bool HasSubscribedToEvent(const String&);
  4525. bool Load(File, bool = false);
  4526. bool Load(VectorBuffer&, bool = false);
  4527. bool LoadJSON(const JSONValue&, bool = false);
  4528. bool LoadXML(const XMLElement&, bool = false);
  4529. void MarkNetworkUpdate() const;
  4530. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4531. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4532. void Remove();
  4533. void RemoveAttributeAnimation(const String&);
  4534. void RemoveInstanceDefault();
  4535. void RemoveObjectAnimation();
  4536. void ResetToDefault();
  4537. bool Save(File) const;
  4538. bool Save(VectorBuffer&) const;
  4539. bool SaveJSON(JSONValue&) const;
  4540. bool SaveXML(XMLElement&) const;
  4541. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4542. void SetAnimationTime(float);
  4543. void SetAreaCost(uint, float);
  4544. bool SetAttribute(const String&, const Variant&);
  4545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4546. void SetAttributeAnimationSpeed(const String&, float);
  4547. void SetAttributeAnimationTime(const String&, float);
  4548. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4549. void SetInterceptNetworkUpdate(const String&, bool);
  4550. // Properties:
  4551. float agentHeight;
  4552. float agentMaxClimb;
  4553. float agentMaxSlope;
  4554. float agentRadius;
  4555. bool animationEnabled;
  4556. /* readonly */
  4557. Array<Variant> attributeDefaults;
  4558. /* readonly */
  4559. Array<AttributeInfo> attributeInfos;
  4560. Array<Variant> attributes;
  4561. /* readonly */
  4562. BoundingBox boundingBox;
  4563. /* readonly */
  4564. String category;
  4565. float cellHeight;
  4566. float cellSize;
  4567. float detailSampleDistance;
  4568. float detailSampleMaxError;
  4569. bool drawNavAreas;
  4570. bool drawObstacles;
  4571. bool drawOffMeshConnections;
  4572. float edgeMaxError;
  4573. float edgeMaxLength;
  4574. bool enabled;
  4575. /* readonly */
  4576. bool enabledEffective;
  4577. /* readonly */
  4578. uint id;
  4579. /* readonly */
  4580. bool initialized;
  4581. bool maxLayers;
  4582. uint maxObstacles;
  4583. /* readonly */
  4584. Node node;
  4585. /* readonly */
  4586. uint numAttributes;
  4587. /* readonly */
  4588. IntVector2 numTiles;
  4589. ObjectAnimation objectAnimation;
  4590. Vector3 padding;
  4591. NavmeshPartitionType partitionType;
  4592. /* readonly */
  4593. int refs;
  4594. float regionMergeSize;
  4595. float regionMinSize;
  4596. bool temporary;
  4597. int tileSize;
  4598. /* readonly */
  4599. StringHash type;
  4600. /* readonly */
  4601. String typeName;
  4602. /* readonly */
  4603. int weakRefs;
  4604. /* readonly */
  4605. BoundingBox worldBoundingBox;
  4606. };
  4607. class Engine
  4608. {
  4609. // Methods:
  4610. Console CreateConsole();
  4611. DebugHud CreateDebugHud();
  4612. void DumpMemory();
  4613. void DumpProfiler();
  4614. void DumpResources(bool = false);
  4615. void Exit();
  4616. bool HasSubscribedToEvent(Object, const String&);
  4617. bool HasSubscribedToEvent(const String&);
  4618. void RunFrame();
  4619. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4620. // Properties:
  4621. bool autoExit;
  4622. /* readonly */
  4623. String category;
  4624. /* readonly */
  4625. bool exiting;
  4626. /* readonly */
  4627. bool headless;
  4628. /* readonly */
  4629. bool initialized;
  4630. int maxFps;
  4631. int maxInactiveFps;
  4632. int minFps;
  4633. bool pauseMinimized;
  4634. /* readonly */
  4635. int refs;
  4636. int timeStepSmoothing;
  4637. /* readonly */
  4638. StringHash type;
  4639. /* readonly */
  4640. String typeName;
  4641. /* readonly */
  4642. int weakRefs;
  4643. };
  4644. class File
  4645. {
  4646. // Methods:
  4647. void Close();
  4648. bool HasSubscribedToEvent(Object, const String&);
  4649. bool HasSubscribedToEvent(const String&);
  4650. bool Open(const String&, FileMode = FILE_READ);
  4651. Array<uint8> Read(uint);
  4652. bool ReadBool();
  4653. BoundingBox ReadBoundingBox();
  4654. int8 ReadByte();
  4655. Color ReadColor();
  4656. double ReadDouble();
  4657. String ReadFileID();
  4658. float ReadFloat();
  4659. int ReadInt();
  4660. IntRect ReadIntRect();
  4661. IntVector2 ReadIntVector2();
  4662. String ReadLine();
  4663. Matrix3 ReadMatrix3();
  4664. Matrix3x4 ReadMatrix3x4();
  4665. Matrix4 ReadMatrix4();
  4666. uint ReadNetID();
  4667. Quaternion ReadPackedQuaternion();
  4668. Vector3 ReadPackedVector3(float);
  4669. Quaternion ReadQuaternion();
  4670. int16 ReadShort();
  4671. String ReadString();
  4672. StringHash ReadStringHash();
  4673. uint8 ReadUByte();
  4674. uint ReadUInt();
  4675. uint16 ReadUShort();
  4676. uint ReadVLE();
  4677. Variant ReadVariant();
  4678. VariantMap ReadVariantMap();
  4679. Vector2 ReadVector2();
  4680. Vector3 ReadVector3();
  4681. Vector4 ReadVector4();
  4682. VectorBuffer ReadVectorBuffer(uint);
  4683. uint Seek(uint);
  4684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4685. uint Write(Array<uint8>);
  4686. bool WriteBool(bool);
  4687. bool WriteBoundingBox(const BoundingBox&);
  4688. bool WriteByte(int8);
  4689. bool WriteColor(const Color&);
  4690. bool WriteDouble(double);
  4691. bool WriteFileID(const String&);
  4692. bool WriteFloat(float);
  4693. bool WriteInt(int);
  4694. bool WriteIntRect(const IntRect&);
  4695. bool WriteIntVector2(const IntVector2&);
  4696. bool WriteLine(const String&);
  4697. bool WriteMatrix3(const Matrix3&);
  4698. bool WriteMatrix3x4(const Matrix3x4&);
  4699. bool WriteMatrix4(const Matrix4&);
  4700. bool WriteNetID(uint);
  4701. bool WritePackedQuaternion(const Quaternion&);
  4702. bool WritePackedVector3(const Vector3&, float);
  4703. bool WriteQuaternion(const Quaternion&);
  4704. bool WriteShort(int16);
  4705. bool WriteString(const String&);
  4706. bool WriteStringHash(const StringHash&);
  4707. bool WriteUByte(uint8);
  4708. bool WriteUInt(uint);
  4709. bool WriteUShort(uint16);
  4710. bool WriteVLE(uint);
  4711. bool WriteVariant(const Variant&);
  4712. bool WriteVariantMap(const VariantMap&);
  4713. bool WriteVector2(const Vector2&);
  4714. bool WriteVector3(const Vector3&);
  4715. bool WriteVector4(const Vector4&);
  4716. bool WriteVectorBuffer(const VectorBuffer&);
  4717. // Properties:
  4718. /* readonly */
  4719. String category;
  4720. /* readonly */
  4721. uint checksum;
  4722. /* readonly */
  4723. bool eof;
  4724. /* readonly */
  4725. FileMode mode;
  4726. /* readonly */
  4727. String name;
  4728. /* readonly */
  4729. bool open;
  4730. /* readonly */
  4731. bool packaged;
  4732. /* readonly */
  4733. uint position;
  4734. /* readonly */
  4735. int refs;
  4736. /* readonly */
  4737. uint size;
  4738. /* readonly */
  4739. StringHash type;
  4740. /* readonly */
  4741. String typeName;
  4742. /* readonly */
  4743. int weakRefs;
  4744. };
  4745. class FileSelector
  4746. {
  4747. // Methods:
  4748. bool HasSubscribedToEvent(Object, const String&);
  4749. bool HasSubscribedToEvent(const String&);
  4750. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4751. void SetButtonTexts(const String&, const String&);
  4752. void SetFilters(Array<String>, uint);
  4753. void UpdateElements();
  4754. // Properties:
  4755. /* readonly */
  4756. Button cancelButton;
  4757. /* readonly */
  4758. String category;
  4759. XMLFile defaultStyle;
  4760. bool directoryMode;
  4761. /* readonly */
  4762. ListView fileList;
  4763. String fileName;
  4764. /* readonly */
  4765. LineEdit fileNameEdit;
  4766. /* readonly */
  4767. String filter;
  4768. /* readonly */
  4769. uint filterIndex;
  4770. /* readonly */
  4771. DropDownList filterList;
  4772. /* readonly */
  4773. Button okButton;
  4774. String path;
  4775. /* readonly */
  4776. LineEdit pathEdit;
  4777. /* readonly */
  4778. int refs;
  4779. String title;
  4780. /* readonly */
  4781. Text titleText;
  4782. /* readonly */
  4783. StringHash type;
  4784. /* readonly */
  4785. String typeName;
  4786. /* readonly */
  4787. int weakRefs;
  4788. /* readonly */
  4789. Window window;
  4790. };
  4791. class FileSystem
  4792. {
  4793. // Methods:
  4794. bool Copy(const String&, const String&);
  4795. bool CreateDir(const String&);
  4796. bool Delete(const String&);
  4797. bool DirExists(const String&) const;
  4798. bool FileExists(const String&) const;
  4799. String GetAppPreferencesDir(const String&, const String&) const;
  4800. uint GetLastModifiedTime(const String&) const;
  4801. bool HasSubscribedToEvent(Object, const String&);
  4802. bool HasSubscribedToEvent(const String&);
  4803. bool Rename(const String&, const String&);
  4804. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4806. bool SetLastModifiedTime(const String&, uint);
  4807. int SystemCommand(const String&, bool = false);
  4808. uint SystemCommandAsync(const String&);
  4809. bool SystemOpen(const String&, const String&);
  4810. int SystemRun(const String&, Array<String>);
  4811. uint SystemRunAsync(const String&, Array<String>);
  4812. // Properties:
  4813. /* readonly */
  4814. String category;
  4815. String currentDir;
  4816. bool executeConsoleCommands;
  4817. /* readonly */
  4818. String programDir;
  4819. /* readonly */
  4820. int refs;
  4821. /* readonly */
  4822. StringHash type;
  4823. /* readonly */
  4824. String typeName;
  4825. /* readonly */
  4826. String userDocumentsDir;
  4827. /* readonly */
  4828. int weakRefs;
  4829. };
  4830. class FocusParameters
  4831. {
  4832. // Properties:
  4833. bool autoSize;
  4834. bool focus;
  4835. float minView;
  4836. bool nonUniform;
  4837. float quantize;
  4838. };
  4839. class Font
  4840. {
  4841. // Methods:
  4842. IntVector2 GetTotalGlyphOffset(int) const;
  4843. bool HasSubscribedToEvent(Object, const String&);
  4844. bool HasSubscribedToEvent(const String&);
  4845. bool Load(File);
  4846. bool Load(VectorBuffer&);
  4847. bool Save(File) const;
  4848. bool Save(VectorBuffer&) const;
  4849. bool SaveXML(File, int, bool = false, const String& = "\t");
  4850. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4851. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4852. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4853. // Properties:
  4854. IntVector2 absoluteGlyphOffset;
  4855. /* readonly */
  4856. String category;
  4857. /* readonly */
  4858. uint memoryUse;
  4859. String name;
  4860. /* readonly */
  4861. int refs;
  4862. Vector2 scaledGlyphOffset;
  4863. /* readonly */
  4864. StringHash type;
  4865. /* readonly */
  4866. String typeName;
  4867. /* readonly */
  4868. uint useTimer;
  4869. /* readonly */
  4870. int weakRefs;
  4871. };
  4872. class Frustum
  4873. {
  4874. // Methods:
  4875. void Define(const BoundingBox&, const Matrix3x4&);
  4876. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4877. void Define(float, float, float, float, float, const Matrix3x4&);
  4878. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4879. float Distance(const Vector3&) const;
  4880. Intersection IsInside(const BoundingBox&);
  4881. Intersection IsInside(const Sphere&);
  4882. Intersection IsInside(const Vector3&);
  4883. Intersection IsInsideFast(const BoundingBox&) const;
  4884. Intersection IsInsideFast(const Sphere&) const;
  4885. void Transform(const Matrix3&);
  4886. void Transform(const Matrix3x4&);
  4887. Frustum Transformed(const Matrix3&) const;
  4888. Frustum Transformed(const Matrix3x4&) const;
  4889. // Properties:
  4890. /* readonly */
  4891. Array<Vector3> vertices;
  4892. };
  4893. class Geometry
  4894. {
  4895. // Methods:
  4896. bool HasSubscribedToEvent(Object, const String&);
  4897. bool HasSubscribedToEvent(const String&);
  4898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4899. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4900. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4901. void SetIndexBuffer(IndexBuffer);
  4902. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4903. // Properties:
  4904. /* readonly */
  4905. String category;
  4906. /* readonly */
  4907. bool empty;
  4908. IndexBuffer indexBuffer;
  4909. /* readonly */
  4910. uint indexCount;
  4911. /* readonly */
  4912. uint indexStart;
  4913. float lodDistance;
  4914. uint numVertexBuffers;
  4915. /* readonly */
  4916. PrimitiveType primitiveType;
  4917. /* readonly */
  4918. int refs;
  4919. /* readonly */
  4920. StringHash type;
  4921. /* readonly */
  4922. String typeName;
  4923. /* readonly */
  4924. Array<VertexBuffer> vertexBuffers;
  4925. /* readonly */
  4926. uint vertexCount;
  4927. /* readonly */
  4928. Array<uint> vertexElementMasks;
  4929. /* readonly */
  4930. uint vertexStart;
  4931. /* readonly */
  4932. int weakRefs;
  4933. };
  4934. class Graphics
  4935. {
  4936. // Methods:
  4937. void BeginDumpShaders(const String&);
  4938. void Close();
  4939. void EndDumpShaders();
  4940. bool HasSubscribedToEvent(Object, const String&);
  4941. bool HasSubscribedToEvent(const String&);
  4942. void Maximize();
  4943. void Minimize();
  4944. void PrecacheShaders(File);
  4945. void PrecacheShaders(VectorBuffer&);
  4946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4947. bool SetMode(int, int);
  4948. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4949. void SetWindowPosition(int, int);
  4950. bool TakeScreenShot(Image);
  4951. bool ToggleFullscreen();
  4952. // Properties:
  4953. /* readonly */
  4954. String apiName;
  4955. /* readonly */
  4956. bool borderless;
  4957. /* readonly */
  4958. String category;
  4959. /* readonly */
  4960. bool deferredSupport;
  4961. /* readonly */
  4962. IntVector2 desktopResolution;
  4963. /* readonly */
  4964. bool deviceLost;
  4965. bool flushGPU;
  4966. /* readonly */
  4967. bool fullscreen;
  4968. /* readonly */
  4969. bool hardwareShadowSupport;
  4970. /* readonly */
  4971. int height;
  4972. /* readonly */
  4973. bool initialized;
  4974. /* readonly */
  4975. bool instancingSupport;
  4976. /* readonly */
  4977. bool lightPrepassSupport;
  4978. /* readonly */
  4979. int multiSample;
  4980. /* readonly */
  4981. Array<int> multiSampleLevels;
  4982. /* readonly */
  4983. uint numBatches;
  4984. /* readonly */
  4985. uint numPrimitives;
  4986. String orientations;
  4987. /* readonly */
  4988. bool readableDepthSupport;
  4989. /* readonly */
  4990. int refs;
  4991. /* readonly */
  4992. bool resizable;
  4993. /* readonly */
  4994. Array<IntVector2> resolutions;
  4995. bool sRGB;
  4996. /* readonly */
  4997. bool sRGBSupport;
  4998. /* readonly */
  4999. bool sRGBWriteSupport;
  5000. /* readonly */
  5001. bool tripleBuffer;
  5002. /* readonly */
  5003. StringHash type;
  5004. /* readonly */
  5005. String typeName;
  5006. /* readonly */
  5007. bool vsync;
  5008. /* readonly */
  5009. int weakRefs;
  5010. /* readonly */
  5011. int width;
  5012. /* writeonly */
  5013. Image windowIcon;
  5014. IntVector2 windowPosition;
  5015. String windowTitle;
  5016. };
  5017. class HttpRequest
  5018. {
  5019. // Methods:
  5020. Array<uint8> Read(uint);
  5021. bool ReadBool();
  5022. BoundingBox ReadBoundingBox();
  5023. int8 ReadByte();
  5024. Color ReadColor();
  5025. double ReadDouble();
  5026. String ReadFileID();
  5027. float ReadFloat();
  5028. int ReadInt();
  5029. IntRect ReadIntRect();
  5030. IntVector2 ReadIntVector2();
  5031. String ReadLine();
  5032. Matrix3 ReadMatrix3();
  5033. Matrix3x4 ReadMatrix3x4();
  5034. Matrix4 ReadMatrix4();
  5035. uint ReadNetID();
  5036. Quaternion ReadPackedQuaternion();
  5037. Vector3 ReadPackedVector3(float);
  5038. Quaternion ReadQuaternion();
  5039. int16 ReadShort();
  5040. String ReadString();
  5041. StringHash ReadStringHash();
  5042. uint8 ReadUByte();
  5043. uint ReadUInt();
  5044. uint16 ReadUShort();
  5045. uint ReadVLE();
  5046. Variant ReadVariant();
  5047. VariantMap ReadVariantMap();
  5048. Vector2 ReadVector2();
  5049. Vector3 ReadVector3();
  5050. Vector4 ReadVector4();
  5051. VectorBuffer ReadVectorBuffer(uint);
  5052. uint Seek(uint);
  5053. // Properties:
  5054. /* readonly */
  5055. uint availableSize;
  5056. /* readonly */
  5057. uint checksum;
  5058. /* readonly */
  5059. bool eof;
  5060. /* readonly */
  5061. String error;
  5062. /* readonly */
  5063. String name;
  5064. /* readonly */
  5065. bool open;
  5066. /* readonly */
  5067. uint position;
  5068. /* readonly */
  5069. int refs;
  5070. /* readonly */
  5071. uint size;
  5072. /* readonly */
  5073. HttpRequestState state;
  5074. /* readonly */
  5075. String url;
  5076. /* readonly */
  5077. String verb;
  5078. /* readonly */
  5079. int weakRefs;
  5080. };
  5081. class Image
  5082. {
  5083. // Methods:
  5084. void Clear(const Color&);
  5085. void ClearInt(uint);
  5086. bool FlipHorizontal();
  5087. bool FlipVertical();
  5088. Color GetPixel(int, int) const;
  5089. Color GetPixel(int, int, int) const;
  5090. Color GetPixelBilinear(float, float) const;
  5091. uint GetPixelInt(int, int) const;
  5092. uint GetPixelInt(int, int, int) const;
  5093. Color GetPixelTrilinear(float, float, float) const;
  5094. Image GetSubimage(const IntRect&) const;
  5095. bool HasSubscribedToEvent(Object, const String&);
  5096. bool HasSubscribedToEvent(const String&);
  5097. bool Load(File);
  5098. bool Load(VectorBuffer&);
  5099. bool LoadColorLUT(File);
  5100. bool LoadColorLUT(VectorBuffer&);
  5101. bool Resize(int, int);
  5102. bool Save(File) const;
  5103. bool Save(VectorBuffer&) const;
  5104. bool SaveBMP(const String&) const;
  5105. bool SaveJPG(const String&, int) const;
  5106. bool SavePNG(const String&) const;
  5107. bool SaveTGA(const String&) const;
  5108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5109. void SetPixel(int, int, const Color&);
  5110. void SetPixel(int, int, int, const Color&);
  5111. void SetPixelInt(int, int, int, uint);
  5112. void SetPixelInt(int, int, uint);
  5113. bool SetSize(int, int, int, uint);
  5114. bool SetSize(int, int, uint);
  5115. // Properties:
  5116. /* readonly */
  5117. bool array;
  5118. /* readonly */
  5119. String category;
  5120. /* readonly */
  5121. uint components;
  5122. /* readonly */
  5123. bool compressed;
  5124. /* readonly */
  5125. CompressedFormat compressedFormat;
  5126. /* readonly */
  5127. bool cubemap;
  5128. /* readonly */
  5129. int depth;
  5130. /* readonly */
  5131. int height;
  5132. /* readonly */
  5133. uint memoryUse;
  5134. String name;
  5135. /* readonly */
  5136. uint numCompressedLevels;
  5137. /* readonly */
  5138. int refs;
  5139. /* readonly */
  5140. bool sRGB;
  5141. /* readonly */
  5142. StringHash type;
  5143. /* readonly */
  5144. String typeName;
  5145. /* readonly */
  5146. uint useTimer;
  5147. /* readonly */
  5148. int weakRefs;
  5149. /* readonly */
  5150. int width;
  5151. };
  5152. class IndexBuffer
  5153. {
  5154. // Methods:
  5155. VectorBuffer GetData();
  5156. bool HasSubscribedToEvent(Object, const String&);
  5157. bool HasSubscribedToEvent(const String&);
  5158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5159. bool SetData(VectorBuffer&);
  5160. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5161. void SetSize(uint, bool, bool = false);
  5162. // Properties:
  5163. /* readonly */
  5164. String category;
  5165. /* readonly */
  5166. bool dynamic;
  5167. /* readonly */
  5168. uint indexCount;
  5169. /* readonly */
  5170. uint indexSize;
  5171. /* readonly */
  5172. int refs;
  5173. bool shadowed;
  5174. /* readonly */
  5175. StringHash type;
  5176. /* readonly */
  5177. String typeName;
  5178. /* readonly */
  5179. int weakRefs;
  5180. };
  5181. class Input
  5182. {
  5183. // Methods:
  5184. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5185. int GetKeyFromName(const String&) const;
  5186. int GetKeyFromScancode(int) const;
  5187. String GetKeyName(int) const;
  5188. int GetScancodeFromKey(int) const;
  5189. int GetScancodeFromName(const String&) const;
  5190. String GetScancodeName(int) const;
  5191. bool HasSubscribedToEvent(Object, const String&);
  5192. bool HasSubscribedToEvent(const String&);
  5193. uint LoadGestures(File);
  5194. uint LoadGestures(VectorBuffer&);
  5195. bool RecordGesture();
  5196. void RemoveAllGestures();
  5197. bool RemoveGesture(uint);
  5198. bool RemoveScreenJoystick(int);
  5199. void ResetMouseVisible();
  5200. bool SaveGesture(File, uint);
  5201. bool SaveGesture(VectorBuffer&, uint);
  5202. bool SaveGestures(File);
  5203. bool SaveGestures(VectorBuffer&);
  5204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5205. void SetMouseVisible(bool, bool = false);
  5206. // Properties:
  5207. /* readonly */
  5208. String category;
  5209. /* readonly */
  5210. bool focus;
  5211. /* readonly */
  5212. Array<JoystickState> joysticks;
  5213. /* readonly */
  5214. Array<JoystickState> joysticksByIndex;
  5215. /* readonly */
  5216. Array<bool> keyDown;
  5217. /* readonly */
  5218. Array<bool> keyPress;
  5219. /* readonly */
  5220. bool minimized;
  5221. /* readonly */
  5222. Array<bool> mouseButtonDown;
  5223. /* readonly */
  5224. Array<bool> mouseButtonPress;
  5225. bool mouseGrabbed;
  5226. MouseMode mouseMode;
  5227. /* readonly */
  5228. IntVector2 mouseMove;
  5229. /* readonly */
  5230. int mouseMoveWheel;
  5231. /* readonly */
  5232. int mouseMoveX;
  5233. /* readonly */
  5234. int mouseMoveY;
  5235. /* readonly */
  5236. IntVector2 mousePosition;
  5237. bool mouseVisible;
  5238. /* readonly */
  5239. uint numJoysticks;
  5240. /* readonly */
  5241. uint numTouches;
  5242. /* readonly */
  5243. Array<bool> qualifierDown;
  5244. /* readonly */
  5245. Array<bool> qualifierPress;
  5246. /* readonly */
  5247. int qualifiers;
  5248. /* readonly */
  5249. int refs;
  5250. /* readonly */
  5251. Array<bool> scancodeDown;
  5252. /* readonly */
  5253. Array<bool> scancodePress;
  5254. Array<bool> screenJoystickVisible;
  5255. /* readonly */
  5256. bool screenKeyboardSupport;
  5257. bool screenKeyboardVisible;
  5258. bool toggleFullscreen;
  5259. bool touchEmulation;
  5260. /* readonly */
  5261. Array<TouchState> touches;
  5262. /* readonly */
  5263. StringHash type;
  5264. /* readonly */
  5265. String typeName;
  5266. /* readonly */
  5267. int weakRefs;
  5268. };
  5269. class IntRect
  5270. {
  5271. // Methods:
  5272. Intersection IsInside(const IntVector2&) const;
  5273. // Properties:
  5274. int bottom;
  5275. /* readonly */
  5276. Array<int> data;
  5277. /* readonly */
  5278. int height;
  5279. int left;
  5280. int right;
  5281. /* readonly */
  5282. IntVector2 size;
  5283. int top;
  5284. /* readonly */
  5285. int width;
  5286. };
  5287. class IntVector2
  5288. {
  5289. // Methods:
  5290. String ToString() const;
  5291. // Properties:
  5292. /* readonly */
  5293. Array<int> data;
  5294. int x;
  5295. int y;
  5296. };
  5297. class JSONFile
  5298. {
  5299. // Methods:
  5300. JSONValue& GetRoot();
  5301. bool HasSubscribedToEvent(Object, const String&);
  5302. bool HasSubscribedToEvent(const String&);
  5303. bool Load(File);
  5304. bool Load(VectorBuffer&);
  5305. bool Save(File) const;
  5306. bool Save(File, const String&) const;
  5307. bool Save(VectorBuffer&) const;
  5308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5309. // Properties:
  5310. /* readonly */
  5311. String category;
  5312. /* readonly */
  5313. uint memoryUse;
  5314. String name;
  5315. /* readonly */
  5316. int refs;
  5317. /* readonly */
  5318. JSONValue root;
  5319. /* readonly */
  5320. StringHash type;
  5321. /* readonly */
  5322. String typeName;
  5323. /* readonly */
  5324. uint useTimer;
  5325. /* readonly */
  5326. int weakRefs;
  5327. };
  5328. class JSONValue
  5329. {
  5330. // Methods:
  5331. void Clear();
  5332. bool Contains(const String&) const;
  5333. void Erase(const String&);
  5334. void Erase(uint, uint = 1);
  5335. bool GetBool() const;
  5336. double GetDouble() const;
  5337. float GetFloat() const;
  5338. int GetInt() const;
  5339. uint GetUInt() const;
  5340. void Insert(uint, const JSONValue&);
  5341. const JSONValue& Get(const String&) const;
  5342. void Pop();
  5343. void Push(const JSONValue&);
  5344. void Resize(uint);
  5345. void Set(const String&, const JSONValue&);
  5346. const String& GetString() const;
  5347. // Properties:
  5348. /* readonly */
  5349. bool isArray;
  5350. /* readonly */
  5351. bool isBool;
  5352. /* readonly */
  5353. bool isNull;
  5354. /* readonly */
  5355. bool isNumber;
  5356. /* readonly */
  5357. bool isObject;
  5358. /* readonly */
  5359. bool isString;
  5360. /* readonly */
  5361. uint size;
  5362. /* readonly */
  5363. JSONValueType valueType;
  5364. };
  5365. class JoystickState
  5366. {
  5367. // Properties:
  5368. /* readonly */
  5369. Array<float> axisPosition;
  5370. /* readonly */
  5371. Array<bool> buttonDown;
  5372. /* readonly */
  5373. Array<bool> buttonPress;
  5374. /* readonly */
  5375. bool controller;
  5376. /* readonly */
  5377. Array<int> hatPosition;
  5378. int joystickID;
  5379. String name;
  5380. /* readonly */
  5381. uint numAxes;
  5382. /* readonly */
  5383. uint numButtons;
  5384. /* readonly */
  5385. uint numHats;
  5386. };
  5387. class Light
  5388. {
  5389. // Methods:
  5390. void ApplyAttributes();
  5391. void DrawDebugGeometry(DebugRenderer, bool);
  5392. Variant GetAttribute(const String&) const;
  5393. ValueAnimation GetAttributeAnimation(const String&) const;
  5394. float GetAttributeAnimationSpeed(const String&) const;
  5395. float GetAttributeAnimationTime(const String&) const;
  5396. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5397. Variant GetAttributeDefault(const String&) const;
  5398. bool GetInterceptNetworkUpdate(const String&) const;
  5399. bool HasSubscribedToEvent(Object, const String&);
  5400. bool HasSubscribedToEvent(const String&);
  5401. bool IsInView(Camera) const;
  5402. bool Load(File, bool = false);
  5403. bool Load(VectorBuffer&, bool = false);
  5404. bool LoadJSON(const JSONValue&, bool = false);
  5405. bool LoadXML(const XMLElement&, bool = false);
  5406. void MarkNetworkUpdate() const;
  5407. void Remove();
  5408. void RemoveAttributeAnimation(const String&);
  5409. void RemoveInstanceDefault();
  5410. void RemoveObjectAnimation();
  5411. void ResetToDefault();
  5412. bool Save(File) const;
  5413. bool Save(VectorBuffer&) const;
  5414. bool SaveJSON(JSONValue&) const;
  5415. bool SaveXML(XMLElement&) const;
  5416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5417. void SetAnimationTime(float);
  5418. bool SetAttribute(const String&, const Variant&);
  5419. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5420. void SetAttributeAnimationSpeed(const String&, float);
  5421. void SetAttributeAnimationTime(const String&, float);
  5422. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5423. void SetInterceptNetworkUpdate(const String&, bool);
  5424. // Properties:
  5425. bool animationEnabled;
  5426. float aspectRatio;
  5427. /* readonly */
  5428. Array<Variant> attributeDefaults;
  5429. /* readonly */
  5430. Array<AttributeInfo> attributeInfos;
  5431. Array<Variant> attributes;
  5432. /* readonly */
  5433. BoundingBox boundingBox;
  5434. float brightness;
  5435. bool castShadows;
  5436. /* readonly */
  5437. String category;
  5438. Color color;
  5439. float drawDistance;
  5440. /* readonly */
  5441. Color effectiveColor;
  5442. /* readonly */
  5443. float effectiveSpecularIntensity;
  5444. bool enabled;
  5445. /* readonly */
  5446. bool enabledEffective;
  5447. float fadeDistance;
  5448. float fov;
  5449. /* readonly */
  5450. Frustum frustum;
  5451. /* readonly */
  5452. uint id;
  5453. /* readonly */
  5454. bool inView;
  5455. uint lightMask;
  5456. LightType lightType;
  5457. float lodBias;
  5458. uint maxLights;
  5459. /* readonly */
  5460. bool negative;
  5461. /* readonly */
  5462. Node node;
  5463. /* readonly */
  5464. uint numAttributes;
  5465. /* readonly */
  5466. int numShadowSplits;
  5467. ObjectAnimation objectAnimation;
  5468. bool occludee;
  5469. bool occluder;
  5470. bool perVertex;
  5471. Texture rampTexture;
  5472. float range;
  5473. /* readonly */
  5474. int refs;
  5475. BiasParameters shadowBias;
  5476. CascadeParameters shadowCascade;
  5477. float shadowDistance;
  5478. float shadowFadeDistance;
  5479. FocusParameters shadowFocus;
  5480. float shadowIntensity;
  5481. uint shadowMask;
  5482. float shadowNearFarRatio;
  5483. float shadowResolution;
  5484. Texture shapeTexture;
  5485. float specularIntensity;
  5486. bool temporary;
  5487. /* readonly */
  5488. StringHash type;
  5489. /* readonly */
  5490. String typeName;
  5491. uint viewMask;
  5492. /* readonly */
  5493. int weakRefs;
  5494. /* readonly */
  5495. BoundingBox worldBoundingBox;
  5496. uint zoneMask;
  5497. };
  5498. class LineEdit
  5499. {
  5500. // Methods:
  5501. void AddChild(UIElement);
  5502. void AddTag(const String&);
  5503. void AddTags(const String&, int8 = ';');
  5504. void ApplyAttributes();
  5505. void BringToFront();
  5506. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5507. void DisableLayoutUpdate();
  5508. IntVector2 ElementToScreen(const IntVector2&);
  5509. void EnableLayoutUpdate();
  5510. uint FindChild(UIElement) const;
  5511. Variant GetAttribute(const String&) const;
  5512. ValueAnimation GetAttributeAnimation(const String&) const;
  5513. float GetAttributeAnimationSpeed(const String&) const;
  5514. float GetAttributeAnimationTime(const String&) const;
  5515. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5516. Variant GetAttributeDefault(const String&) const;
  5517. UIElement GetChild(const String&, bool = false) const;
  5518. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5519. Array<UIElement> GetChildren(bool = false) const;
  5520. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5521. UIElement GetElementEventSender() const;
  5522. bool GetInterceptNetworkUpdate(const String&) const;
  5523. uint GetNumChildren(bool) const;
  5524. bool HasSubscribedToEvent(Object, const String&);
  5525. bool HasSubscribedToEvent(const String&);
  5526. bool HasTag(const String&) const;
  5527. void InsertChild(uint, UIElement);
  5528. bool IsInside(IntVector2, bool);
  5529. bool IsInsideCombined(IntVector2, bool);
  5530. bool Load(File, bool = false);
  5531. bool Load(VectorBuffer&, bool = false);
  5532. bool LoadChildXML(XMLFile, XMLFile = null);
  5533. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5534. bool LoadJSON(const JSONValue&, bool = false);
  5535. bool LoadXML(File);
  5536. bool LoadXML(VectorBuffer&);
  5537. bool LoadXML(XMLFile, XMLFile);
  5538. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5539. bool LoadXML(const XMLElement&, bool = false);
  5540. void MarkNetworkUpdate() const;
  5541. void Remove();
  5542. void RemoveAllChildren();
  5543. void RemoveAllTags();
  5544. void RemoveAttributeAnimation(const String&);
  5545. void RemoveChild(UIElement, uint = 0);
  5546. void RemoveChild(uint);
  5547. void RemoveInstanceDefault();
  5548. void RemoveObjectAnimation();
  5549. bool RemoveTag(const String&);
  5550. void ResetDeepEnabled();
  5551. void ResetToDefault();
  5552. bool Save(File) const;
  5553. bool Save(VectorBuffer&) const;
  5554. bool SaveJSON(JSONValue&) const;
  5555. bool SaveXML(File, const String& = "\t");
  5556. bool SaveXML(VectorBuffer&, const String& = "\t");
  5557. bool SaveXML(XMLElement&) const;
  5558. IntVector2 ScreenToElement(const IntVector2&);
  5559. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5560. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5561. void SetAnimationTime(float);
  5562. bool SetAttribute(const String&, const Variant&);
  5563. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5564. void SetAttributeAnimationSpeed(const String&, float);
  5565. void SetAttributeAnimationTime(const String&, float);
  5566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5567. void SetDeepEnabled(bool);
  5568. void SetEnabledRecursive(bool);
  5569. void SetFixedHeight(int);
  5570. void SetFixedSize(int, int);
  5571. void SetFixedWidth(int);
  5572. void SetFullImageRect();
  5573. void SetHoverOffset(int, int);
  5574. void SetInterceptNetworkUpdate(const String&, bool);
  5575. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5576. void SetMaxSize(int, int);
  5577. void SetMinSize(int, int);
  5578. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5579. void SetPosition(int, int);
  5580. void SetSize(int, int);
  5581. bool SetStyle(const String&, XMLFile = null);
  5582. bool SetStyle(const XMLElement&);
  5583. bool SetStyleAuto(XMLFile = null);
  5584. void UpdateLayout();
  5585. const Variant& GetVar(const StringHash&);
  5586. // Properties:
  5587. bool animationEnabled;
  5588. /* readonly */
  5589. Array<Variant> attributeDefaults;
  5590. /* readonly */
  5591. Array<AttributeInfo> attributeInfos;
  5592. Array<Variant> attributes;
  5593. BlendMode blendMode;
  5594. IntRect border;
  5595. bool bringToBack;
  5596. bool bringToFront;
  5597. /* readonly */
  5598. String category;
  5599. /* readonly */
  5600. IntVector2 childOffset;
  5601. /* readonly */
  5602. Array<UIElement> children;
  5603. IntRect clipBorder;
  5604. bool clipChildren;
  5605. /* writeonly */
  5606. Color color;
  5607. /* readonly */
  5608. bool colorGradient;
  5609. Array<Color> colors;
  5610. /* readonly */
  5611. IntRect combinedScreenRect;
  5612. /* readonly */
  5613. BorderImage cursor;
  5614. float cursorBlinkRate;
  5615. bool cursorMovable;
  5616. uint cursorPosition;
  5617. XMLFile defaultStyle;
  5618. /* readonly */
  5619. float derivedOpacity;
  5620. /* readonly */
  5621. uint dragButtonCombo;
  5622. /* readonly */
  5623. int dragButtonCount;
  5624. uint dragDropMode;
  5625. uint echoCharacter;
  5626. bool editable;
  5627. bool elementEventSender;
  5628. bool enabled;
  5629. /* readonly */
  5630. bool enabledSelf;
  5631. /* readonly */
  5632. bool fixedHeight;
  5633. /* readonly */
  5634. bool fixedSize;
  5635. /* readonly */
  5636. bool fixedWidth;
  5637. bool focus;
  5638. FocusMode focusMode;
  5639. int height;
  5640. HorizontalAlignment horizontalAlignment;
  5641. IntVector2 hoverOffset;
  5642. /* readonly */
  5643. bool hovering;
  5644. IntRect imageBorder;
  5645. IntRect imageRect;
  5646. int indent;
  5647. int indentSpacing;
  5648. /* readonly */
  5649. int indentWidth;
  5650. bool internal;
  5651. IntRect layoutBorder;
  5652. Vector2 layoutFlexScale;
  5653. LayoutMode layoutMode;
  5654. int layoutSpacing;
  5655. int maxHeight;
  5656. uint maxLength;
  5657. IntVector2 maxSize;
  5658. int maxWidth;
  5659. int minHeight;
  5660. IntVector2 minSize;
  5661. int minWidth;
  5662. String name;
  5663. /* readonly */
  5664. uint numAllChildren;
  5665. /* readonly */
  5666. uint numAttributes;
  5667. /* readonly */
  5668. uint numChildren;
  5669. ObjectAnimation objectAnimation;
  5670. float opacity;
  5671. UIElement parent;
  5672. IntVector2 position;
  5673. int priority;
  5674. /* readonly */
  5675. int refs;
  5676. /* readonly */
  5677. UIElement root;
  5678. /* readonly */
  5679. IntVector2 screenPosition;
  5680. bool selected;
  5681. IntVector2 size;
  5682. bool sortChildren;
  5683. String style;
  5684. /* readonly */
  5685. Array<String> tags;
  5686. bool temporary;
  5687. String text;
  5688. bool textCopyable;
  5689. /* readonly */
  5690. Text textElement;
  5691. bool textSelectable;
  5692. Texture texture;
  5693. bool tiled;
  5694. TraversalMode traversalMode;
  5695. /* readonly */
  5696. StringHash type;
  5697. /* readonly */
  5698. String typeName;
  5699. bool useDerivedOpacity;
  5700. /* readonly */
  5701. VariantMap vars;
  5702. VerticalAlignment verticalAlignment;
  5703. bool visible;
  5704. /* readonly */
  5705. bool visibleEffective;
  5706. /* readonly */
  5707. int weakRefs;
  5708. int width;
  5709. };
  5710. class ListView
  5711. {
  5712. // Methods:
  5713. void AddChild(UIElement);
  5714. void AddItem(UIElement);
  5715. void AddSelection(uint);
  5716. void AddTag(const String&);
  5717. void AddTags(const String&, int8 = ';');
  5718. void ApplyAttributes();
  5719. void BringToFront();
  5720. void ChangeSelection(int, bool);
  5721. void ClearSelection();
  5722. void CopySelectedItemsToClipboard();
  5723. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5724. void DisableLayoutUpdate();
  5725. IntVector2 ElementToScreen(const IntVector2&);
  5726. void EnableLayoutUpdate();
  5727. void Expand(uint, bool, bool = false);
  5728. uint FindChild(UIElement) const;
  5729. uint FindItem(UIElement);
  5730. Variant GetAttribute(const String&) const;
  5731. ValueAnimation GetAttributeAnimation(const String&) const;
  5732. float GetAttributeAnimationSpeed(const String&) const;
  5733. float GetAttributeAnimationTime(const String&) const;
  5734. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5735. Variant GetAttributeDefault(const String&) const;
  5736. UIElement GetChild(const String&, bool = false) const;
  5737. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5738. Array<UIElement> GetChildren(bool = false) const;
  5739. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5740. UIElement GetElementEventSender() const;
  5741. bool GetInterceptNetworkUpdate(const String&) const;
  5742. Array<UIElement> GetItems() const;
  5743. uint GetNumChildren(bool) const;
  5744. bool HasSubscribedToEvent(Object, const String&);
  5745. bool HasSubscribedToEvent(const String&);
  5746. bool HasTag(const String&) const;
  5747. void InsertChild(uint, UIElement);
  5748. void InsertItem(uint, UIElement, UIElement = null);
  5749. bool IsExpanded(uint) const;
  5750. bool IsInside(IntVector2, bool);
  5751. bool IsInsideCombined(IntVector2, bool);
  5752. bool IsSelected(uint) const;
  5753. bool Load(File, bool = false);
  5754. bool Load(VectorBuffer&, bool = false);
  5755. bool LoadChildXML(XMLFile, XMLFile = null);
  5756. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5757. bool LoadJSON(const JSONValue&, bool = false);
  5758. bool LoadXML(File);
  5759. bool LoadXML(VectorBuffer&);
  5760. bool LoadXML(XMLFile, XMLFile);
  5761. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5762. bool LoadXML(const XMLElement&, bool = false);
  5763. void MarkNetworkUpdate() const;
  5764. void Remove();
  5765. void RemoveAllChildren();
  5766. void RemoveAllItems();
  5767. void RemoveAllTags();
  5768. void RemoveAttributeAnimation(const String&);
  5769. void RemoveChild(UIElement, uint = 0);
  5770. void RemoveChild(uint);
  5771. void RemoveInstanceDefault();
  5772. void RemoveItem(UIElement, uint = 0);
  5773. void RemoveItem(uint);
  5774. void RemoveObjectAnimation();
  5775. void RemoveSelection(uint);
  5776. bool RemoveTag(const String&);
  5777. void ResetDeepEnabled();
  5778. void ResetToDefault();
  5779. bool Save(File) const;
  5780. bool Save(VectorBuffer&) const;
  5781. bool SaveJSON(JSONValue&) const;
  5782. bool SaveXML(File, const String& = "\t");
  5783. bool SaveXML(VectorBuffer&, const String& = "\t");
  5784. bool SaveXML(XMLElement&) const;
  5785. IntVector2 ScreenToElement(const IntVector2&);
  5786. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5787. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5788. void SetAnimationTime(float);
  5789. bool SetAttribute(const String&, const Variant&);
  5790. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5791. void SetAttributeAnimationSpeed(const String&, float);
  5792. void SetAttributeAnimationTime(const String&, float);
  5793. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5794. void SetDeepEnabled(bool);
  5795. void SetEnabledRecursive(bool);
  5796. void SetFixedHeight(int);
  5797. void SetFixedSize(int, int);
  5798. void SetFixedWidth(int);
  5799. void SetInterceptNetworkUpdate(const String&, bool);
  5800. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5801. void SetMaxSize(int, int);
  5802. void SetMinSize(int, int);
  5803. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5804. void SetPosition(int, int);
  5805. void SetScrollBarsVisible(bool, bool);
  5806. void SetSelections(Array<uint>);
  5807. void SetSize(int, int);
  5808. bool SetStyle(const String&, XMLFile = null);
  5809. bool SetStyle(const XMLElement&);
  5810. bool SetStyleAuto(XMLFile = null);
  5811. void SetViewPosition(int, int);
  5812. void ToggleExpand(uint, bool = false);
  5813. void ToggleSelection(uint);
  5814. void UpdateLayout();
  5815. const Variant& GetVar(const StringHash&);
  5816. // Properties:
  5817. bool animationEnabled;
  5818. /* readonly */
  5819. Array<Variant> attributeDefaults;
  5820. /* readonly */
  5821. Array<AttributeInfo> attributeInfos;
  5822. Array<Variant> attributes;
  5823. bool autoDisableChildren;
  5824. float autoDisableThreshold;
  5825. int baseIndent;
  5826. bool bringToBack;
  5827. bool bringToFront;
  5828. /* readonly */
  5829. String category;
  5830. /* readonly */
  5831. IntVector2 childOffset;
  5832. /* readonly */
  5833. Array<UIElement> children;
  5834. bool clearSelectionOnDefocus;
  5835. IntRect clipBorder;
  5836. bool clipChildren;
  5837. /* writeonly */
  5838. Color color;
  5839. /* readonly */
  5840. bool colorGradient;
  5841. Array<Color> colors;
  5842. /* readonly */
  5843. IntRect combinedScreenRect;
  5844. /* readonly */
  5845. UIElement contentElement;
  5846. XMLFile defaultStyle;
  5847. /* readonly */
  5848. float derivedOpacity;
  5849. /* readonly */
  5850. uint dragButtonCombo;
  5851. /* readonly */
  5852. int dragButtonCount;
  5853. uint dragDropMode;
  5854. bool editable;
  5855. bool elementEventSender;
  5856. bool enabled;
  5857. /* readonly */
  5858. bool enabledSelf;
  5859. /* readonly */
  5860. bool fixedHeight;
  5861. /* readonly */
  5862. bool fixedSize;
  5863. /* readonly */
  5864. bool fixedWidth;
  5865. bool focus;
  5866. FocusMode focusMode;
  5867. int height;
  5868. bool hierarchyMode;
  5869. HighlightMode highlightMode;
  5870. HorizontalAlignment horizontalAlignment;
  5871. /* readonly */
  5872. ScrollBar horizontalScrollBar;
  5873. /* readonly */
  5874. bool hovering;
  5875. int indent;
  5876. int indentSpacing;
  5877. /* readonly */
  5878. int indentWidth;
  5879. bool internal;
  5880. /* readonly */
  5881. Array<UIElement> items;
  5882. IntRect layoutBorder;
  5883. Vector2 layoutFlexScale;
  5884. LayoutMode layoutMode;
  5885. int layoutSpacing;
  5886. int maxHeight;
  5887. IntVector2 maxSize;
  5888. int maxWidth;
  5889. int minHeight;
  5890. IntVector2 minSize;
  5891. int minWidth;
  5892. bool multiselect;
  5893. String name;
  5894. /* readonly */
  5895. uint numAllChildren;
  5896. /* readonly */
  5897. uint numAttributes;
  5898. /* readonly */
  5899. uint numChildren;
  5900. /* readonly */
  5901. uint numItems;
  5902. ObjectAnimation objectAnimation;
  5903. float opacity;
  5904. float pageStep;
  5905. UIElement parent;
  5906. IntVector2 position;
  5907. int priority;
  5908. /* readonly */
  5909. int refs;
  5910. /* readonly */
  5911. UIElement root;
  5912. /* readonly */
  5913. IntVector2 screenPosition;
  5914. bool scrollBarsAutoVisible;
  5915. float scrollDeceleration;
  5916. /* readonly */
  5917. BorderImage scrollPanel;
  5918. float scrollSnapEpsilon;
  5919. float scrollStep;
  5920. bool selectOnClickEnd;
  5921. bool selected;
  5922. /* readonly */
  5923. UIElement selectedItem;
  5924. /* readonly */
  5925. Array<UIElement> selectedItems;
  5926. uint selection;
  5927. /* readonly */
  5928. Array<uint> selections;
  5929. IntVector2 size;
  5930. bool sortChildren;
  5931. String style;
  5932. /* readonly */
  5933. Array<String> tags;
  5934. bool temporary;
  5935. TraversalMode traversalMode;
  5936. /* readonly */
  5937. StringHash type;
  5938. /* readonly */
  5939. String typeName;
  5940. bool useDerivedOpacity;
  5941. /* readonly */
  5942. VariantMap vars;
  5943. VerticalAlignment verticalAlignment;
  5944. /* readonly */
  5945. ScrollBar verticalScrollBar;
  5946. IntVector2 viewPosition;
  5947. bool visible;
  5948. /* readonly */
  5949. bool visibleEffective;
  5950. /* readonly */
  5951. int weakRefs;
  5952. int width;
  5953. };
  5954. class Localization
  5955. {
  5956. // Methods:
  5957. String Get(const String&);
  5958. String GetLanguage(int);
  5959. int GetLanguageIndex(const String&);
  5960. bool HasSubscribedToEvent(Object, const String&);
  5961. bool HasSubscribedToEvent(const String&);
  5962. void LoadJSON(const JSONValue&);
  5963. void LoadJSONFile(const String&);
  5964. void Reset();
  5965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5966. void SetLanguage(const String&);
  5967. void SetLanguage(int);
  5968. // Properties:
  5969. /* readonly */
  5970. String category;
  5971. /* readonly */
  5972. String language;
  5973. /* readonly */
  5974. int languageIndex;
  5975. /* readonly */
  5976. int numLanguages;
  5977. /* readonly */
  5978. int refs;
  5979. /* readonly */
  5980. StringHash type;
  5981. /* readonly */
  5982. String typeName;
  5983. /* readonly */
  5984. int weakRefs;
  5985. };
  5986. class Log
  5987. {
  5988. // Methods:
  5989. void Close();
  5990. void Debug(const String&);
  5991. void Error(const String&);
  5992. bool HasSubscribedToEvent(Object, const String&);
  5993. bool HasSubscribedToEvent(const String&);
  5994. void Info(const String&);
  5995. void Open(const String&);
  5996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5997. void Warning(const String&);
  5998. void Write(const String&, bool = false);
  5999. // Properties:
  6000. /* readonly */
  6001. String category;
  6002. /* readonly */
  6003. String lastMessage;
  6004. int level;
  6005. bool quiet;
  6006. /* readonly */
  6007. int refs;
  6008. bool timeStamp;
  6009. /* readonly */
  6010. StringHash type;
  6011. /* readonly */
  6012. String typeName;
  6013. /* readonly */
  6014. int weakRefs;
  6015. };
  6016. class Material
  6017. {
  6018. // Methods:
  6019. Material Clone(const String& = String ( )) const;
  6020. Pass GetPass(uint, const String&);
  6021. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6022. float GetShaderParameterAnimationSpeed(const String&) const;
  6023. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6024. bool HasSubscribedToEvent(Object, const String&);
  6025. bool HasSubscribedToEvent(const String&);
  6026. bool Load(File);
  6027. bool Load(VectorBuffer&);
  6028. bool Load(const JSONValue&);
  6029. bool Load(const XMLElement&);
  6030. void RemoveShaderParameter(const String&);
  6031. bool Save(File) const;
  6032. bool Save(JSONValue&) const;
  6033. bool Save(VectorBuffer&) const;
  6034. bool Save(XMLElement&) const;
  6035. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6036. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6037. void SetShaderParameterAnimationSpeed(const String&, float);
  6038. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6039. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6040. void SetUVTransform(const Vector2&, float, const Vector2&);
  6041. void SetUVTransform(const Vector2&, float, float);
  6042. void SortTechniques();
  6043. // Properties:
  6044. /* readonly */
  6045. String category;
  6046. CullMode cullMode;
  6047. BiasParameters depthBias;
  6048. FillMode fillMode;
  6049. /* readonly */
  6050. uint memoryUse;
  6051. String name;
  6052. uint numTechniques;
  6053. /* readonly */
  6054. bool occlusion;
  6055. /* readonly */
  6056. int refs;
  6057. uint8 renderOrder;
  6058. Scene scene;
  6059. /* readonly */
  6060. Array<String> shaderParameterNames;
  6061. Array<Variant> shaderParameters;
  6062. CullMode shadowCullMode;
  6063. /* readonly */
  6064. Array<TechniqueEntry> techniqueEntries;
  6065. /* readonly */
  6066. Array<Technique> techniques;
  6067. Array<Texture> textures;
  6068. /* readonly */
  6069. StringHash type;
  6070. /* readonly */
  6071. String typeName;
  6072. /* readonly */
  6073. uint useTimer;
  6074. /* readonly */
  6075. int weakRefs;
  6076. };
  6077. class Matrix2
  6078. {
  6079. // Methods:
  6080. bool Equals(const Matrix2&) const;
  6081. Matrix2 Inverse() const;
  6082. Vector2 Scale() const;
  6083. Matrix2 Scaled(const Vector2&) const;
  6084. void SetScale(const Vector2&);
  6085. void SetScale(float);
  6086. String ToString() const;
  6087. Matrix2 Transpose() const;
  6088. // Properties:
  6089. float m00;
  6090. float m01;
  6091. float m10;
  6092. float m11;
  6093. };
  6094. class Matrix3
  6095. {
  6096. // Methods:
  6097. bool Equals(const Matrix3&) const;
  6098. Matrix3 Inverse() const;
  6099. Vector3 Scale() const;
  6100. Matrix3 Scaled(const Vector3&) const;
  6101. void SetScale(const Vector3&);
  6102. void SetScale(float);
  6103. String ToString() const;
  6104. Matrix3 Transpose() const;
  6105. // Properties:
  6106. float m00;
  6107. float m01;
  6108. float m02;
  6109. float m10;
  6110. float m11;
  6111. float m12;
  6112. float m20;
  6113. float m21;
  6114. float m22;
  6115. };
  6116. class Matrix3x4
  6117. {
  6118. // Methods:
  6119. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6120. bool Equals(const Matrix3x4&) const;
  6121. Matrix3x4 Inverse() const;
  6122. Quaternion Rotation() const;
  6123. Matrix3 RotationMatrix() const;
  6124. Vector3 Scale() const;
  6125. void SetRotation(const Matrix3&);
  6126. void SetScale(const Vector3&);
  6127. void SetScale(float);
  6128. void SetTranslation(const Vector3&);
  6129. Matrix3 ToMatrix3() const;
  6130. Matrix4 ToMatrix4() const;
  6131. String ToString() const;
  6132. Vector3 Translation() const;
  6133. // Properties:
  6134. float m00;
  6135. float m01;
  6136. float m02;
  6137. float m03;
  6138. float m10;
  6139. float m11;
  6140. float m12;
  6141. float m13;
  6142. float m20;
  6143. float m21;
  6144. float m22;
  6145. float m23;
  6146. };
  6147. class Matrix4
  6148. {
  6149. // Methods:
  6150. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6151. bool Equals(const Matrix4&) const;
  6152. Matrix4 Inverse() const;
  6153. Quaternion Rotation() const;
  6154. Matrix3 RotationMatrix() const;
  6155. Vector3 Scale() const;
  6156. void SetRotation(const Matrix3&);
  6157. void SetScale(const Vector3&);
  6158. void SetScale(float);
  6159. void SetTranslation(const Vector3&);
  6160. Matrix3 ToMatrix3() const;
  6161. String ToString() const;
  6162. Vector3 Translation() const;
  6163. Matrix4 Transpose() const;
  6164. // Properties:
  6165. float m00;
  6166. float m01;
  6167. float m02;
  6168. float m03;
  6169. float m10;
  6170. float m11;
  6171. float m12;
  6172. float m13;
  6173. float m20;
  6174. float m21;
  6175. float m22;
  6176. float m23;
  6177. float m30;
  6178. float m31;
  6179. float m32;
  6180. float m33;
  6181. };
  6182. class Menu
  6183. {
  6184. // Methods:
  6185. void AddChild(UIElement);
  6186. void AddTag(const String&);
  6187. void AddTags(const String&, int8 = ';');
  6188. void ApplyAttributes();
  6189. void BringToFront();
  6190. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6191. void DisableLayoutUpdate();
  6192. IntVector2 ElementToScreen(const IntVector2&);
  6193. void EnableLayoutUpdate();
  6194. uint FindChild(UIElement) const;
  6195. Variant GetAttribute(const String&) const;
  6196. ValueAnimation GetAttributeAnimation(const String&) const;
  6197. float GetAttributeAnimationSpeed(const String&) const;
  6198. float GetAttributeAnimationTime(const String&) const;
  6199. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6200. Variant GetAttributeDefault(const String&) const;
  6201. UIElement GetChild(const String&, bool = false) const;
  6202. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6203. Array<UIElement> GetChildren(bool = false) const;
  6204. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6205. UIElement GetElementEventSender() const;
  6206. bool GetInterceptNetworkUpdate(const String&) const;
  6207. uint GetNumChildren(bool) const;
  6208. bool HasSubscribedToEvent(Object, const String&);
  6209. bool HasSubscribedToEvent(const String&);
  6210. bool HasTag(const String&) const;
  6211. void InsertChild(uint, UIElement);
  6212. bool IsInside(IntVector2, bool);
  6213. bool IsInsideCombined(IntVector2, bool);
  6214. bool Load(File, bool = false);
  6215. bool Load(VectorBuffer&, bool = false);
  6216. bool LoadChildXML(XMLFile, XMLFile = null);
  6217. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6218. bool LoadJSON(const JSONValue&, bool = false);
  6219. bool LoadXML(File);
  6220. bool LoadXML(VectorBuffer&);
  6221. bool LoadXML(XMLFile, XMLFile);
  6222. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6223. bool LoadXML(const XMLElement&, bool = false);
  6224. void MarkNetworkUpdate() const;
  6225. void Remove();
  6226. void RemoveAllChildren();
  6227. void RemoveAllTags();
  6228. void RemoveAttributeAnimation(const String&);
  6229. void RemoveChild(UIElement, uint = 0);
  6230. void RemoveChild(uint);
  6231. void RemoveInstanceDefault();
  6232. void RemoveObjectAnimation();
  6233. bool RemoveTag(const String&);
  6234. void ResetDeepEnabled();
  6235. void ResetToDefault();
  6236. bool Save(File) const;
  6237. bool Save(VectorBuffer&) const;
  6238. bool SaveJSON(JSONValue&) const;
  6239. bool SaveXML(File, const String& = "\t");
  6240. bool SaveXML(VectorBuffer&, const String& = "\t");
  6241. bool SaveXML(XMLElement&) const;
  6242. IntVector2 ScreenToElement(const IntVector2&);
  6243. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6244. void SetAccelerator(int, int);
  6245. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6246. void SetAnimationTime(float);
  6247. bool SetAttribute(const String&, const Variant&);
  6248. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6249. void SetAttributeAnimationSpeed(const String&, float);
  6250. void SetAttributeAnimationTime(const String&, float);
  6251. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6252. void SetDeepEnabled(bool);
  6253. void SetEnabledRecursive(bool);
  6254. void SetFixedHeight(int);
  6255. void SetFixedSize(int, int);
  6256. void SetFixedWidth(int);
  6257. void SetFullImageRect();
  6258. void SetHoverOffset(int, int);
  6259. void SetInterceptNetworkUpdate(const String&, bool);
  6260. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6261. void SetMaxSize(int, int);
  6262. void SetMinSize(int, int);
  6263. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6264. void SetPopupOffset(int, int);
  6265. void SetPosition(int, int);
  6266. void SetPressedChildOffset(int, int);
  6267. void SetPressedOffset(int, int);
  6268. void SetRepeat(float, float);
  6269. void SetSize(int, int);
  6270. bool SetStyle(const String&, XMLFile = null);
  6271. bool SetStyle(const XMLElement&);
  6272. bool SetStyleAuto(XMLFile = null);
  6273. void UpdateLayout();
  6274. const Variant& GetVar(const StringHash&);
  6275. // Properties:
  6276. /* readonly */
  6277. int acceleratorKey;
  6278. /* readonly */
  6279. int acceleratorQualifiers;
  6280. bool animationEnabled;
  6281. /* readonly */
  6282. Array<Variant> attributeDefaults;
  6283. /* readonly */
  6284. Array<AttributeInfo> attributeInfos;
  6285. Array<Variant> attributes;
  6286. BlendMode blendMode;
  6287. IntRect border;
  6288. bool bringToBack;
  6289. bool bringToFront;
  6290. /* readonly */
  6291. String category;
  6292. /* readonly */
  6293. IntVector2 childOffset;
  6294. /* readonly */
  6295. Array<UIElement> children;
  6296. IntRect clipBorder;
  6297. bool clipChildren;
  6298. /* writeonly */
  6299. Color color;
  6300. /* readonly */
  6301. bool colorGradient;
  6302. Array<Color> colors;
  6303. /* readonly */
  6304. IntRect combinedScreenRect;
  6305. XMLFile defaultStyle;
  6306. /* readonly */
  6307. float derivedOpacity;
  6308. /* readonly */
  6309. uint dragButtonCombo;
  6310. /* readonly */
  6311. int dragButtonCount;
  6312. uint dragDropMode;
  6313. bool editable;
  6314. bool elementEventSender;
  6315. bool enabled;
  6316. /* readonly */
  6317. bool enabledSelf;
  6318. /* readonly */
  6319. bool fixedHeight;
  6320. /* readonly */
  6321. bool fixedSize;
  6322. /* readonly */
  6323. bool fixedWidth;
  6324. bool focus;
  6325. FocusMode focusMode;
  6326. int height;
  6327. HorizontalAlignment horizontalAlignment;
  6328. IntVector2 hoverOffset;
  6329. /* readonly */
  6330. bool hovering;
  6331. IntRect imageBorder;
  6332. IntRect imageRect;
  6333. int indent;
  6334. int indentSpacing;
  6335. /* readonly */
  6336. int indentWidth;
  6337. bool internal;
  6338. IntRect layoutBorder;
  6339. Vector2 layoutFlexScale;
  6340. LayoutMode layoutMode;
  6341. int layoutSpacing;
  6342. int maxHeight;
  6343. IntVector2 maxSize;
  6344. int maxWidth;
  6345. int minHeight;
  6346. IntVector2 minSize;
  6347. int minWidth;
  6348. String name;
  6349. /* readonly */
  6350. uint numAllChildren;
  6351. /* readonly */
  6352. uint numAttributes;
  6353. /* readonly */
  6354. uint numChildren;
  6355. ObjectAnimation objectAnimation;
  6356. float opacity;
  6357. UIElement parent;
  6358. UIElement popup;
  6359. IntVector2 popupOffset;
  6360. IntVector2 position;
  6361. /* readonly */
  6362. bool pressed;
  6363. IntVector2 pressedChildOffset;
  6364. IntVector2 pressedOffset;
  6365. int priority;
  6366. /* readonly */
  6367. int refs;
  6368. float repeatDelay;
  6369. float repeatRate;
  6370. /* readonly */
  6371. UIElement root;
  6372. /* readonly */
  6373. IntVector2 screenPosition;
  6374. bool selected;
  6375. bool showPopup;
  6376. IntVector2 size;
  6377. bool sortChildren;
  6378. String style;
  6379. /* readonly */
  6380. Array<String> tags;
  6381. bool temporary;
  6382. Texture texture;
  6383. bool tiled;
  6384. TraversalMode traversalMode;
  6385. /* readonly */
  6386. StringHash type;
  6387. /* readonly */
  6388. String typeName;
  6389. bool useDerivedOpacity;
  6390. /* readonly */
  6391. VariantMap vars;
  6392. VerticalAlignment verticalAlignment;
  6393. bool visible;
  6394. /* readonly */
  6395. bool visibleEffective;
  6396. /* readonly */
  6397. int weakRefs;
  6398. int width;
  6399. };
  6400. class MessageBox
  6401. {
  6402. // Methods:
  6403. bool HasSubscribedToEvent(Object, const String&);
  6404. bool HasSubscribedToEvent(const String&);
  6405. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6406. // Properties:
  6407. /* readonly */
  6408. String category;
  6409. String message;
  6410. /* readonly */
  6411. int refs;
  6412. String title;
  6413. /* readonly */
  6414. StringHash type;
  6415. /* readonly */
  6416. String typeName;
  6417. /* readonly */
  6418. int weakRefs;
  6419. /* readonly */
  6420. UIElement window;
  6421. };
  6422. class Model
  6423. {
  6424. // Methods:
  6425. Model Clone(const String& = String ( )) const;
  6426. Geometry GetGeometry(uint, uint) const;
  6427. bool HasSubscribedToEvent(Object, const String&);
  6428. bool HasSubscribedToEvent(const String&);
  6429. bool Load(File);
  6430. bool Load(VectorBuffer&);
  6431. bool Save(File) const;
  6432. bool Save(VectorBuffer&) const;
  6433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6434. bool SetGeometry(uint, uint, Geometry);
  6435. // Properties:
  6436. BoundingBox boundingBox;
  6437. /* readonly */
  6438. String category;
  6439. Array<Vector3> geometryCenters;
  6440. /* readonly */
  6441. uint memoryUse;
  6442. String name;
  6443. uint numGeometries;
  6444. Array<uint> numGeometryLodLevels;
  6445. /* readonly */
  6446. uint numMorphs;
  6447. /* readonly */
  6448. int refs;
  6449. /* readonly */
  6450. Skeleton skeleton;
  6451. /* readonly */
  6452. StringHash type;
  6453. /* readonly */
  6454. String typeName;
  6455. /* readonly */
  6456. uint useTimer;
  6457. /* readonly */
  6458. int weakRefs;
  6459. };
  6460. class NavArea
  6461. {
  6462. // Methods:
  6463. void ApplyAttributes();
  6464. void DrawDebugGeometry(DebugRenderer, bool);
  6465. Variant GetAttribute(const String&) const;
  6466. ValueAnimation GetAttributeAnimation(const String&) const;
  6467. float GetAttributeAnimationSpeed(const String&) const;
  6468. float GetAttributeAnimationTime(const String&) const;
  6469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6470. Variant GetAttributeDefault(const String&) const;
  6471. bool GetInterceptNetworkUpdate(const String&) const;
  6472. bool HasSubscribedToEvent(Object, const String&);
  6473. bool HasSubscribedToEvent(const String&);
  6474. bool Load(File, bool = false);
  6475. bool Load(VectorBuffer&, bool = false);
  6476. bool LoadJSON(const JSONValue&, bool = false);
  6477. bool LoadXML(const XMLElement&, bool = false);
  6478. void MarkNetworkUpdate() const;
  6479. void Remove();
  6480. void RemoveAttributeAnimation(const String&);
  6481. void RemoveInstanceDefault();
  6482. void RemoveObjectAnimation();
  6483. void ResetToDefault();
  6484. bool Save(File) const;
  6485. bool Save(VectorBuffer&) const;
  6486. bool SaveJSON(JSONValue&) const;
  6487. bool SaveXML(XMLElement&) const;
  6488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6489. void SetAnimationTime(float);
  6490. bool SetAttribute(const String&, const Variant&);
  6491. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6492. void SetAttributeAnimationSpeed(const String&, float);
  6493. void SetAttributeAnimationTime(const String&, float);
  6494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6495. void SetInterceptNetworkUpdate(const String&, bool);
  6496. // Properties:
  6497. bool animationEnabled;
  6498. uint areaID;
  6499. /* readonly */
  6500. Array<Variant> attributeDefaults;
  6501. /* readonly */
  6502. Array<AttributeInfo> attributeInfos;
  6503. Array<Variant> attributes;
  6504. BoundingBox boundingBox;
  6505. /* readonly */
  6506. String category;
  6507. bool enabled;
  6508. /* readonly */
  6509. bool enabledEffective;
  6510. /* readonly */
  6511. uint id;
  6512. /* readonly */
  6513. Node node;
  6514. /* readonly */
  6515. uint numAttributes;
  6516. ObjectAnimation objectAnimation;
  6517. /* readonly */
  6518. int refs;
  6519. bool temporary;
  6520. /* readonly */
  6521. StringHash type;
  6522. /* readonly */
  6523. String typeName;
  6524. /* readonly */
  6525. int weakRefs;
  6526. /* readonly */
  6527. BoundingBox worldBoundingBox;
  6528. };
  6529. class Navigable
  6530. {
  6531. // Methods:
  6532. void ApplyAttributes();
  6533. void DrawDebugGeometry(DebugRenderer, bool);
  6534. Variant GetAttribute(const String&) const;
  6535. ValueAnimation GetAttributeAnimation(const String&) const;
  6536. float GetAttributeAnimationSpeed(const String&) const;
  6537. float GetAttributeAnimationTime(const String&) const;
  6538. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6539. Variant GetAttributeDefault(const String&) const;
  6540. bool GetInterceptNetworkUpdate(const String&) const;
  6541. bool HasSubscribedToEvent(Object, const String&);
  6542. bool HasSubscribedToEvent(const String&);
  6543. bool Load(File, bool = false);
  6544. bool Load(VectorBuffer&, bool = false);
  6545. bool LoadJSON(const JSONValue&, bool = false);
  6546. bool LoadXML(const XMLElement&, bool = false);
  6547. void MarkNetworkUpdate() const;
  6548. void Remove();
  6549. void RemoveAttributeAnimation(const String&);
  6550. void RemoveInstanceDefault();
  6551. void RemoveObjectAnimation();
  6552. void ResetToDefault();
  6553. bool Save(File) const;
  6554. bool Save(VectorBuffer&) const;
  6555. bool SaveJSON(JSONValue&) const;
  6556. bool SaveXML(XMLElement&) const;
  6557. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6558. void SetAnimationTime(float);
  6559. bool SetAttribute(const String&, const Variant&);
  6560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6561. void SetAttributeAnimationSpeed(const String&, float);
  6562. void SetAttributeAnimationTime(const String&, float);
  6563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6564. void SetInterceptNetworkUpdate(const String&, bool);
  6565. // Properties:
  6566. bool animationEnabled;
  6567. /* readonly */
  6568. Array<Variant> attributeDefaults;
  6569. /* readonly */
  6570. Array<AttributeInfo> attributeInfos;
  6571. Array<Variant> attributes;
  6572. /* readonly */
  6573. String category;
  6574. bool enabled;
  6575. /* readonly */
  6576. bool enabledEffective;
  6577. /* readonly */
  6578. uint id;
  6579. /* readonly */
  6580. Node node;
  6581. /* readonly */
  6582. uint numAttributes;
  6583. ObjectAnimation objectAnimation;
  6584. bool recursive;
  6585. /* readonly */
  6586. int refs;
  6587. bool temporary;
  6588. /* readonly */
  6589. StringHash type;
  6590. /* readonly */
  6591. String typeName;
  6592. /* readonly */
  6593. int weakRefs;
  6594. };
  6595. class NavigationMesh
  6596. {
  6597. // Methods:
  6598. void ApplyAttributes();
  6599. bool Build();
  6600. bool Build(const BoundingBox&);
  6601. void DrawDebugGeometry(DebugRenderer, bool);
  6602. void DrawDebugGeometry(bool);
  6603. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6604. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6605. float GetAreaCost(uint) const;
  6606. Variant GetAttribute(const String&) const;
  6607. ValueAnimation GetAttributeAnimation(const String&) const;
  6608. float GetAttributeAnimationSpeed(const String&) const;
  6609. float GetAttributeAnimationTime(const String&) const;
  6610. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6611. Variant GetAttributeDefault(const String&) const;
  6612. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6613. bool GetInterceptNetworkUpdate(const String&) const;
  6614. Vector3 GetRandomPoint();
  6615. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6616. bool HasSubscribedToEvent(Object, const String&);
  6617. bool HasSubscribedToEvent(const String&);
  6618. bool Load(File, bool = false);
  6619. bool Load(VectorBuffer&, bool = false);
  6620. bool LoadJSON(const JSONValue&, bool = false);
  6621. bool LoadXML(const XMLElement&, bool = false);
  6622. void MarkNetworkUpdate() const;
  6623. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6624. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6625. void Remove();
  6626. void RemoveAttributeAnimation(const String&);
  6627. void RemoveInstanceDefault();
  6628. void RemoveObjectAnimation();
  6629. void ResetToDefault();
  6630. bool Save(File) const;
  6631. bool Save(VectorBuffer&) const;
  6632. bool SaveJSON(JSONValue&) const;
  6633. bool SaveXML(XMLElement&) const;
  6634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6635. void SetAnimationTime(float);
  6636. void SetAreaCost(uint, float);
  6637. bool SetAttribute(const String&, const Variant&);
  6638. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6639. void SetAttributeAnimationSpeed(const String&, float);
  6640. void SetAttributeAnimationTime(const String&, float);
  6641. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6642. void SetInterceptNetworkUpdate(const String&, bool);
  6643. // Properties:
  6644. float agentHeight;
  6645. float agentMaxClimb;
  6646. float agentMaxSlope;
  6647. float agentRadius;
  6648. bool animationEnabled;
  6649. /* readonly */
  6650. Array<Variant> attributeDefaults;
  6651. /* readonly */
  6652. Array<AttributeInfo> attributeInfos;
  6653. Array<Variant> attributes;
  6654. /* readonly */
  6655. BoundingBox boundingBox;
  6656. /* readonly */
  6657. String category;
  6658. float cellHeight;
  6659. float cellSize;
  6660. float detailSampleDistance;
  6661. float detailSampleMaxError;
  6662. bool drawNavAreas;
  6663. bool drawOffMeshConnections;
  6664. float edgeMaxError;
  6665. float edgeMaxLength;
  6666. bool enabled;
  6667. /* readonly */
  6668. bool enabledEffective;
  6669. /* readonly */
  6670. uint id;
  6671. /* readonly */
  6672. bool initialized;
  6673. /* readonly */
  6674. Node node;
  6675. /* readonly */
  6676. uint numAttributes;
  6677. /* readonly */
  6678. IntVector2 numTiles;
  6679. ObjectAnimation objectAnimation;
  6680. Vector3 padding;
  6681. NavmeshPartitionType partitionType;
  6682. /* readonly */
  6683. int refs;
  6684. float regionMergeSize;
  6685. float regionMinSize;
  6686. bool temporary;
  6687. int tileSize;
  6688. /* readonly */
  6689. StringHash type;
  6690. /* readonly */
  6691. String typeName;
  6692. /* readonly */
  6693. int weakRefs;
  6694. /* readonly */
  6695. BoundingBox worldBoundingBox;
  6696. };
  6697. class Network
  6698. {
  6699. // Methods:
  6700. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6701. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6702. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6703. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6704. bool CheckRemoteEvent(const String&) const;
  6705. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6706. void Disconnect(int = 0);
  6707. bool HasSubscribedToEvent(Object, const String&);
  6708. bool HasSubscribedToEvent(const String&);
  6709. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6710. void RegisterRemoteEvent(const String&) const;
  6711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6712. void SendPackageToClients(Scene, PackageFile);
  6713. bool StartServer(uint16);
  6714. void StopServer();
  6715. void UnregisterAllRemoteEvents();
  6716. void UnregisterRemoteEvent(const String&) const;
  6717. // Properties:
  6718. /* readonly */
  6719. String category;
  6720. /* readonly */
  6721. Array<Connection> clientConnections;
  6722. String packageCacheDir;
  6723. /* readonly */
  6724. int refs;
  6725. /* readonly */
  6726. Connection serverConnection;
  6727. /* readonly */
  6728. bool serverRunning;
  6729. int simulatedLatency;
  6730. float simulatedPacketLoss;
  6731. /* readonly */
  6732. StringHash type;
  6733. /* readonly */
  6734. String typeName;
  6735. int updateFps;
  6736. /* readonly */
  6737. int weakRefs;
  6738. };
  6739. class NetworkPriority
  6740. {
  6741. // Methods:
  6742. void ApplyAttributes();
  6743. void DrawDebugGeometry(DebugRenderer, bool);
  6744. Variant GetAttribute(const String&) const;
  6745. ValueAnimation GetAttributeAnimation(const String&) const;
  6746. float GetAttributeAnimationSpeed(const String&) const;
  6747. float GetAttributeAnimationTime(const String&) const;
  6748. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6749. Variant GetAttributeDefault(const String&) const;
  6750. bool GetInterceptNetworkUpdate(const String&) const;
  6751. bool HasSubscribedToEvent(Object, const String&);
  6752. bool HasSubscribedToEvent(const String&);
  6753. bool Load(File, bool = false);
  6754. bool Load(VectorBuffer&, bool = false);
  6755. bool LoadJSON(const JSONValue&, bool = false);
  6756. bool LoadXML(const XMLElement&, bool = false);
  6757. void MarkNetworkUpdate() const;
  6758. void Remove();
  6759. void RemoveAttributeAnimation(const String&);
  6760. void RemoveInstanceDefault();
  6761. void RemoveObjectAnimation();
  6762. void ResetToDefault();
  6763. bool Save(File) const;
  6764. bool Save(VectorBuffer&) const;
  6765. bool SaveJSON(JSONValue&) const;
  6766. bool SaveXML(XMLElement&) const;
  6767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6768. void SetAnimationTime(float);
  6769. bool SetAttribute(const String&, const Variant&);
  6770. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6771. void SetAttributeAnimationSpeed(const String&, float);
  6772. void SetAttributeAnimationTime(const String&, float);
  6773. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6774. void SetInterceptNetworkUpdate(const String&, bool);
  6775. // Properties:
  6776. bool alwaysUpdateOwner;
  6777. bool animationEnabled;
  6778. /* readonly */
  6779. Array<Variant> attributeDefaults;
  6780. /* readonly */
  6781. Array<AttributeInfo> attributeInfos;
  6782. Array<Variant> attributes;
  6783. float basePriority;
  6784. /* readonly */
  6785. String category;
  6786. float distanceFactor;
  6787. bool enabled;
  6788. /* readonly */
  6789. bool enabledEffective;
  6790. /* readonly */
  6791. uint id;
  6792. float minPriority;
  6793. /* readonly */
  6794. Node node;
  6795. /* readonly */
  6796. uint numAttributes;
  6797. ObjectAnimation objectAnimation;
  6798. /* readonly */
  6799. int refs;
  6800. bool temporary;
  6801. /* readonly */
  6802. StringHash type;
  6803. /* readonly */
  6804. String typeName;
  6805. /* readonly */
  6806. int weakRefs;
  6807. };
  6808. class Node
  6809. {
  6810. // Methods:
  6811. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6812. void AddTag(const String&);
  6813. void AddTags(const String&, int8 = ';');
  6814. void ApplyAttributes();
  6815. Node Clone(CreateMode = REPLICATED);
  6816. Component CloneComponent(Component, CreateMode, uint = 0);
  6817. Component CloneComponent(Component, uint = 0);
  6818. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6819. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6820. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6821. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6822. Variant GetAttribute(const String&) const;
  6823. ValueAnimation GetAttributeAnimation(const String&) const;
  6824. float GetAttributeAnimationSpeed(const String&) const;
  6825. float GetAttributeAnimationTime(const String&) const;
  6826. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6827. Variant GetAttributeDefault(const String&) const;
  6828. Node GetChild(const String&, bool = false) const;
  6829. Array<Node> GetChildren(bool = false) const;
  6830. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6831. Array<Node> GetChildrenWithScript(bool = false) const;
  6832. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6833. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6834. Component GetComponent(const String&, bool = false) const;
  6835. Array<Component> GetComponents() const;
  6836. Array<Component> GetComponents(const String&, bool = false) const;
  6837. bool GetInterceptNetworkUpdate(const String&) const;
  6838. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6839. Component GetParentComponent(const String&, bool = false) const;
  6840. ScriptObject GetScriptObject() const;
  6841. ScriptObject GetScriptObject(const String&) const;
  6842. bool HasComponent(const String&) const;
  6843. bool HasSubscribedToEvent(Object, const String&);
  6844. bool HasSubscribedToEvent(const String&);
  6845. bool HasTag(const String&);
  6846. bool Load(File, bool = false);
  6847. bool Load(VectorBuffer&, bool = false);
  6848. bool LoadJSON(const JSONValue&, bool = false);
  6849. bool LoadXML(const XMLElement&, bool = false);
  6850. Vector3 LocalToWorld(const Vector3&) const;
  6851. Vector3 LocalToWorld(const Vector4&) const;
  6852. Vector2 LocalToWorld2D(const Vector2&) const;
  6853. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6854. void MarkDirty();
  6855. void MarkNetworkUpdate() const;
  6856. void Pitch(float, TransformSpace = TS_LOCAL);
  6857. void Remove();
  6858. void RemoveAllChildren();
  6859. void RemoveAllComponents();
  6860. void RemoveAllTags();
  6861. void RemoveAttributeAnimation(const String&);
  6862. void RemoveChild(Node);
  6863. void RemoveChildren(bool, bool, bool);
  6864. void RemoveComponent(Component);
  6865. void RemoveComponent(const String&);
  6866. void RemoveComponents(bool, bool);
  6867. void RemoveComponents(const String&);
  6868. void RemoveInstanceDefault();
  6869. void RemoveObjectAnimation();
  6870. bool RemoveTag(const String&);
  6871. void ResetDeepEnabled();
  6872. void ResetToDefault();
  6873. void Roll(float, TransformSpace = TS_LOCAL);
  6874. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6875. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6876. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6877. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6878. bool Save(File) const;
  6879. bool Save(VectorBuffer&) const;
  6880. bool SaveJSON(File);
  6881. bool SaveJSON(JSONValue&) const;
  6882. bool SaveJSON(VectorBuffer&);
  6883. bool SaveXML(File, const String& = "\t");
  6884. bool SaveXML(VectorBuffer&, const String& = "\t");
  6885. bool SaveXML(XMLElement&) const;
  6886. void Scale(const Vector3&);
  6887. void Scale(float);
  6888. void Scale2D(const Vector2&);
  6889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6890. void SetAnimationTime(float);
  6891. bool SetAttribute(const String&, const Variant&);
  6892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6893. void SetAttributeAnimationSpeed(const String&, float);
  6894. void SetAttributeAnimationTime(const String&, float);
  6895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6896. void SetDeepEnabled(bool);
  6897. void SetEnabledRecursive(bool);
  6898. void SetInterceptNetworkUpdate(const String&, bool);
  6899. void SetPosition2D(float, float);
  6900. void SetScale(float);
  6901. void SetScale2D(float, float);
  6902. void SetTransform(const Vector3&, const Quaternion&);
  6903. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6904. void SetTransform(const Vector3&, const Quaternion&, float);
  6905. void SetTransform2D(const Vector2&, float);
  6906. void SetTransform2D(const Vector2&, float, const Vector2&);
  6907. void SetTransform2D(const Vector2&, float, float);
  6908. void SetWorldTransform(const Vector3&, const Quaternion&);
  6909. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6910. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6911. void SetWorldTransform2D(const Vector2&, float);
  6912. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6913. void SetWorldTransform2D(const Vector2&, float, float);
  6914. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6915. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6916. Vector3 WorldToLocal(const Vector3&) const;
  6917. Vector3 WorldToLocal(const Vector4&) const;
  6918. Vector2 WorldToLocal2D(const Vector2&) const;
  6919. void Yaw(float, TransformSpace = TS_LOCAL);
  6920. // Properties:
  6921. bool animationEnabled;
  6922. /* readonly */
  6923. Array<Variant> attributeDefaults;
  6924. /* readonly */
  6925. Array<AttributeInfo> attributeInfos;
  6926. Array<Variant> attributes;
  6927. /* readonly */
  6928. String category;
  6929. /* readonly */
  6930. Array<Node> children;
  6931. /* readonly */
  6932. Array<Component> components;
  6933. Vector3 direction;
  6934. bool enabled;
  6935. /* readonly */
  6936. bool enabledSelf;
  6937. /* readonly */
  6938. uint id;
  6939. String name;
  6940. /* readonly */
  6941. uint numAllChildren;
  6942. /* readonly */
  6943. uint numAttributes;
  6944. /* readonly */
  6945. uint numChildren;
  6946. /* readonly */
  6947. uint numComponents;
  6948. ObjectAnimation objectAnimation;
  6949. Connection owner;
  6950. Node parent;
  6951. Vector3 position;
  6952. Vector2 position2D;
  6953. /* readonly */
  6954. int refs;
  6955. /* readonly */
  6956. Vector3 right;
  6957. Quaternion rotation;
  6958. float rotation2D;
  6959. Vector3 scale;
  6960. Vector2 scale2D;
  6961. /* readonly */
  6962. Scene scene;
  6963. /* readonly */
  6964. ScriptObject scriptObject;
  6965. /* readonly */
  6966. Array<String> tags;
  6967. bool temporary;
  6968. /* readonly */
  6969. Matrix3x4 transform;
  6970. /* readonly */
  6971. StringHash type;
  6972. /* readonly */
  6973. String typeName;
  6974. /* readonly */
  6975. Vector3 up;
  6976. /* readonly */
  6977. VariantMap vars;
  6978. /* readonly */
  6979. int weakRefs;
  6980. Vector3 worldDirection;
  6981. Vector3 worldPosition;
  6982. Vector2 worldPosition2D;
  6983. /* readonly */
  6984. Vector3 worldRight;
  6985. Quaternion worldRotation;
  6986. float worldRotation2D;
  6987. Vector3 worldScale;
  6988. Vector2 worldScale2D;
  6989. /* readonly */
  6990. Matrix3x4 worldTransform;
  6991. /* readonly */
  6992. Vector3 worldUp;
  6993. };
  6994. class Object
  6995. {
  6996. // Methods:
  6997. bool HasSubscribedToEvent(Object, const String&);
  6998. bool HasSubscribedToEvent(const String&);
  6999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7000. // Properties:
  7001. /* readonly */
  7002. String category;
  7003. /* readonly */
  7004. int refs;
  7005. /* readonly */
  7006. StringHash type;
  7007. /* readonly */
  7008. String typeName;
  7009. /* readonly */
  7010. int weakRefs;
  7011. };
  7012. class ObjectAnimation
  7013. {
  7014. // Methods:
  7015. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7016. ValueAnimation GetAttributeAnimation(const String&) const;
  7017. float GetAttributeAnimationSpeed(const String&) const;
  7018. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7019. bool HasSubscribedToEvent(Object, const String&);
  7020. bool HasSubscribedToEvent(const String&);
  7021. bool Load(File);
  7022. bool Load(VectorBuffer&);
  7023. void RemoveAttributeAnimation(ValueAnimation);
  7024. void RemoveAttributeAnimation(const String&);
  7025. bool Save(File) const;
  7026. bool Save(VectorBuffer&) const;
  7027. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7028. // Properties:
  7029. /* readonly */
  7030. Array<Variant> attributeAnimations;
  7031. /* readonly */
  7032. String category;
  7033. /* readonly */
  7034. uint memoryUse;
  7035. String name;
  7036. /* readonly */
  7037. int refs;
  7038. /* readonly */
  7039. Array<Variant> speeds;
  7040. /* readonly */
  7041. StringHash type;
  7042. /* readonly */
  7043. String typeName;
  7044. /* readonly */
  7045. uint useTimer;
  7046. /* readonly */
  7047. int weakRefs;
  7048. /* readonly */
  7049. Array<Variant> wrapModes;
  7050. };
  7051. class Obstacle
  7052. {
  7053. // Methods:
  7054. void ApplyAttributes();
  7055. void DrawDebugGeometry(DebugRenderer, bool);
  7056. void DrawDebugGeometry(bool);
  7057. Variant GetAttribute(const String&) const;
  7058. ValueAnimation GetAttributeAnimation(const String&) const;
  7059. float GetAttributeAnimationSpeed(const String&) const;
  7060. float GetAttributeAnimationTime(const String&) const;
  7061. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7062. Variant GetAttributeDefault(const String&) const;
  7063. bool GetInterceptNetworkUpdate(const String&) const;
  7064. bool HasSubscribedToEvent(Object, const String&);
  7065. bool HasSubscribedToEvent(const String&);
  7066. bool Load(File, bool = false);
  7067. bool Load(VectorBuffer&, bool = false);
  7068. bool LoadJSON(const JSONValue&, bool = false);
  7069. bool LoadXML(const XMLElement&, bool = false);
  7070. void MarkNetworkUpdate() const;
  7071. void Remove();
  7072. void RemoveAttributeAnimation(const String&);
  7073. void RemoveInstanceDefault();
  7074. void RemoveObjectAnimation();
  7075. void ResetToDefault();
  7076. bool Save(File) const;
  7077. bool Save(VectorBuffer&) const;
  7078. bool SaveJSON(JSONValue&) const;
  7079. bool SaveXML(XMLElement&) const;
  7080. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7081. void SetAnimationTime(float);
  7082. bool SetAttribute(const String&, const Variant&);
  7083. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7084. void SetAttributeAnimationSpeed(const String&, float);
  7085. void SetAttributeAnimationTime(const String&, float);
  7086. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7087. void SetInterceptNetworkUpdate(const String&, bool);
  7088. // Properties:
  7089. bool animationEnabled;
  7090. /* readonly */
  7091. Array<Variant> attributeDefaults;
  7092. /* readonly */
  7093. Array<AttributeInfo> attributeInfos;
  7094. Array<Variant> attributes;
  7095. /* readonly */
  7096. String category;
  7097. bool enabled;
  7098. /* readonly */
  7099. bool enabledEffective;
  7100. float height;
  7101. /* readonly */
  7102. uint id;
  7103. /* readonly */
  7104. Node node;
  7105. /* readonly */
  7106. uint numAttributes;
  7107. ObjectAnimation objectAnimation;
  7108. /* readonly */
  7109. uint obstacleId;
  7110. float radius;
  7111. /* readonly */
  7112. int refs;
  7113. bool temporary;
  7114. /* readonly */
  7115. StringHash type;
  7116. /* readonly */
  7117. String typeName;
  7118. /* readonly */
  7119. int weakRefs;
  7120. };
  7121. class Octree
  7122. {
  7123. // Methods:
  7124. void AddManualDrawable(Drawable);
  7125. void ApplyAttributes();
  7126. void DrawDebugGeometry(DebugRenderer, bool);
  7127. void DrawDebugGeometry(bool) const;
  7128. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7129. Variant GetAttribute(const String&) const;
  7130. ValueAnimation GetAttributeAnimation(const String&) const;
  7131. float GetAttributeAnimationSpeed(const String&) const;
  7132. float GetAttributeAnimationTime(const String&) const;
  7133. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7134. Variant GetAttributeDefault(const String&) const;
  7135. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7136. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7137. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7138. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7139. bool GetInterceptNetworkUpdate(const String&) const;
  7140. bool HasSubscribedToEvent(Object, const String&);
  7141. bool HasSubscribedToEvent(const String&);
  7142. bool Load(File, bool = false);
  7143. bool Load(VectorBuffer&, bool = false);
  7144. bool LoadJSON(const JSONValue&, bool = false);
  7145. bool LoadXML(const XMLElement&, bool = false);
  7146. void MarkNetworkUpdate() const;
  7147. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7148. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7149. void Remove();
  7150. void RemoveAttributeAnimation(const String&);
  7151. void RemoveInstanceDefault();
  7152. void RemoveManualDrawable(Drawable);
  7153. void RemoveObjectAnimation();
  7154. void ResetToDefault();
  7155. bool Save(File) const;
  7156. bool Save(VectorBuffer&) const;
  7157. bool SaveJSON(JSONValue&) const;
  7158. bool SaveXML(XMLElement&) const;
  7159. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7160. void SetAnimationTime(float);
  7161. bool SetAttribute(const String&, const Variant&);
  7162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7163. void SetAttributeAnimationSpeed(const String&, float);
  7164. void SetAttributeAnimationTime(const String&, float);
  7165. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7166. void SetInterceptNetworkUpdate(const String&, bool);
  7167. void SetSize(const BoundingBox&, uint);
  7168. // Properties:
  7169. bool animationEnabled;
  7170. /* readonly */
  7171. Array<Variant> attributeDefaults;
  7172. /* readonly */
  7173. Array<AttributeInfo> attributeInfos;
  7174. Array<Variant> attributes;
  7175. /* readonly */
  7176. String category;
  7177. bool enabled;
  7178. /* readonly */
  7179. bool enabledEffective;
  7180. /* readonly */
  7181. uint id;
  7182. /* readonly */
  7183. Node node;
  7184. /* readonly */
  7185. uint numAttributes;
  7186. /* readonly */
  7187. uint numLevels;
  7188. ObjectAnimation objectAnimation;
  7189. /* readonly */
  7190. int refs;
  7191. bool temporary;
  7192. /* readonly */
  7193. StringHash type;
  7194. /* readonly */
  7195. String typeName;
  7196. /* readonly */
  7197. int weakRefs;
  7198. /* readonly */
  7199. BoundingBox worldBoundingBox;
  7200. };
  7201. class OffMeshConnection
  7202. {
  7203. // Methods:
  7204. void ApplyAttributes();
  7205. void DrawDebugGeometry(DebugRenderer, bool);
  7206. Variant GetAttribute(const String&) const;
  7207. ValueAnimation GetAttributeAnimation(const String&) const;
  7208. float GetAttributeAnimationSpeed(const String&) const;
  7209. float GetAttributeAnimationTime(const String&) const;
  7210. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7211. Variant GetAttributeDefault(const String&) const;
  7212. bool GetInterceptNetworkUpdate(const String&) const;
  7213. bool HasSubscribedToEvent(Object, const String&);
  7214. bool HasSubscribedToEvent(const String&);
  7215. bool Load(File, bool = false);
  7216. bool Load(VectorBuffer&, bool = false);
  7217. bool LoadJSON(const JSONValue&, bool = false);
  7218. bool LoadXML(const XMLElement&, bool = false);
  7219. void MarkNetworkUpdate() const;
  7220. void Remove();
  7221. void RemoveAttributeAnimation(const String&);
  7222. void RemoveInstanceDefault();
  7223. void RemoveObjectAnimation();
  7224. void ResetToDefault();
  7225. bool Save(File) const;
  7226. bool Save(VectorBuffer&) const;
  7227. bool SaveJSON(JSONValue&) const;
  7228. bool SaveXML(XMLElement&) const;
  7229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7230. void SetAnimationTime(float);
  7231. bool SetAttribute(const String&, const Variant&);
  7232. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7233. void SetAttributeAnimationSpeed(const String&, float);
  7234. void SetAttributeAnimationTime(const String&, float);
  7235. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7236. void SetInterceptNetworkUpdate(const String&, bool);
  7237. // Properties:
  7238. bool animationEnabled;
  7239. uint areaID;
  7240. /* readonly */
  7241. Array<Variant> attributeDefaults;
  7242. /* readonly */
  7243. Array<AttributeInfo> attributeInfos;
  7244. Array<Variant> attributes;
  7245. bool bidirectional;
  7246. /* readonly */
  7247. String category;
  7248. bool enabled;
  7249. /* readonly */
  7250. bool enabledEffective;
  7251. Node endPoint;
  7252. /* readonly */
  7253. uint id;
  7254. uint mask;
  7255. /* readonly */
  7256. Node node;
  7257. /* readonly */
  7258. uint numAttributes;
  7259. ObjectAnimation objectAnimation;
  7260. float radius;
  7261. /* readonly */
  7262. int refs;
  7263. bool temporary;
  7264. /* readonly */
  7265. StringHash type;
  7266. /* readonly */
  7267. String typeName;
  7268. /* readonly */
  7269. int weakRefs;
  7270. };
  7271. class PackageFile
  7272. {
  7273. // Methods:
  7274. bool Exists(const String&) const;
  7275. Array<String> GetEntryNames() const;
  7276. bool HasSubscribedToEvent(Object, const String&);
  7277. bool HasSubscribedToEvent(const String&);
  7278. bool Open(const String&, uint = 0) const;
  7279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7280. bool compressed() const;
  7281. // Properties:
  7282. /* readonly */
  7283. String category;
  7284. /* readonly */
  7285. uint checksum;
  7286. /* readonly */
  7287. String name;
  7288. /* readonly */
  7289. uint numFiles;
  7290. /* readonly */
  7291. int refs;
  7292. /* readonly */
  7293. uint totalSize;
  7294. /* readonly */
  7295. StringHash type;
  7296. /* readonly */
  7297. String typeName;
  7298. /* readonly */
  7299. int weakRefs;
  7300. };
  7301. class ParticleEffect
  7302. {
  7303. // Methods:
  7304. void AddColorFrame(ColorFrame);
  7305. void AddColorTime(Color&, float);
  7306. void AddTextureFrame(TextureFrame);
  7307. void AddTextureTime(Rect&, float);
  7308. ColorFrame GetColorFrame(uint) const;
  7309. TextureFrame GetTextureFrame(uint) const;
  7310. bool HasSubscribedToEvent(Object, const String&);
  7311. bool HasSubscribedToEvent(const String&);
  7312. bool Load(File);
  7313. bool Load(VectorBuffer&);
  7314. bool Load(const XMLElement&);
  7315. void RemoveColorFrame(uint);
  7316. void RemoveTextureFrame(uint);
  7317. bool Save(File) const;
  7318. bool Save(VectorBuffer&) const;
  7319. bool Save(XMLElement&) const;
  7320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7321. void SetColorFrame(uint, ColorFrame);
  7322. void SetTextureFrame(uint, TextureFrame);
  7323. void SortColorFrames();
  7324. void SortTextureFrames();
  7325. // Properties:
  7326. float activeTime;
  7327. float animationLodBias;
  7328. /* readonly */
  7329. String category;
  7330. Vector3 constantForce;
  7331. float dampingForce;
  7332. Vector3 emitterSize;
  7333. EmitterType emitterType;
  7334. FaceCameraMode faceCameraMode;
  7335. float inactiveTime;
  7336. Material material;
  7337. Vector3 maxDirection;
  7338. float maxEmissionRate;
  7339. Vector2 maxParticleSize;
  7340. float maxRotation;
  7341. float maxRotationSpeed;
  7342. float maxTimeToLive;
  7343. float maxVelocity;
  7344. /* readonly */
  7345. uint memoryUse;
  7346. Vector3 minDirection;
  7347. float minEmissionRate;
  7348. Vector2 minParticleSize;
  7349. float minRotation;
  7350. float minRotationSpeed;
  7351. float minTimeToLive;
  7352. float minVelocity;
  7353. String name;
  7354. uint numColorFrames;
  7355. uint numParticles;
  7356. uint numTextureFrames;
  7357. /* readonly */
  7358. int refs;
  7359. bool relative;
  7360. bool scaled;
  7361. float sizeAdd;
  7362. float sizeMul;
  7363. bool sorted;
  7364. /* readonly */
  7365. StringHash type;
  7366. /* readonly */
  7367. String typeName;
  7368. bool updateInvisible;
  7369. /* readonly */
  7370. uint useTimer;
  7371. /* readonly */
  7372. int weakRefs;
  7373. };
  7374. class ParticleEffect2D
  7375. {
  7376. // Methods:
  7377. bool HasSubscribedToEvent(Object, const String&);
  7378. bool HasSubscribedToEvent(const String&);
  7379. bool Load(File);
  7380. bool Load(VectorBuffer&);
  7381. bool Save(File) const;
  7382. bool Save(VectorBuffer&) const;
  7383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7384. // Properties:
  7385. /* readonly */
  7386. String category;
  7387. /* readonly */
  7388. uint memoryUse;
  7389. String name;
  7390. /* readonly */
  7391. int refs;
  7392. /* readonly */
  7393. StringHash type;
  7394. /* readonly */
  7395. String typeName;
  7396. /* readonly */
  7397. uint useTimer;
  7398. /* readonly */
  7399. int weakRefs;
  7400. };
  7401. class ParticleEmitter
  7402. {
  7403. // Methods:
  7404. void ApplyAttributes();
  7405. void ApplyEffect();
  7406. void Commit();
  7407. void DrawDebugGeometry(DebugRenderer, bool);
  7408. Variant GetAttribute(const String&) const;
  7409. ValueAnimation GetAttributeAnimation(const String&) const;
  7410. float GetAttributeAnimationSpeed(const String&) const;
  7411. float GetAttributeAnimationTime(const String&) const;
  7412. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7413. Variant GetAttributeDefault(const String&) const;
  7414. bool GetInterceptNetworkUpdate(const String&) const;
  7415. bool HasSubscribedToEvent(Object, const String&);
  7416. bool HasSubscribedToEvent(const String&);
  7417. bool IsInView(Camera) const;
  7418. bool Load(File, bool = false);
  7419. bool Load(VectorBuffer&, bool = false);
  7420. bool LoadJSON(const JSONValue&, bool = false);
  7421. bool LoadXML(const XMLElement&, bool = false);
  7422. void MarkNetworkUpdate() const;
  7423. void Remove();
  7424. void RemoveAllParticles();
  7425. void RemoveAttributeAnimation(const String&);
  7426. void RemoveInstanceDefault();
  7427. void RemoveObjectAnimation();
  7428. void Reset();
  7429. void ResetEmissionTimer();
  7430. void ResetToDefault();
  7431. bool Save(File) const;
  7432. bool Save(VectorBuffer&) const;
  7433. bool SaveJSON(JSONValue&) const;
  7434. bool SaveXML(XMLElement&) const;
  7435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7436. void SetAnimationTime(float);
  7437. bool SetAttribute(const String&, const Variant&);
  7438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7439. void SetAttributeAnimationSpeed(const String&, float);
  7440. void SetAttributeAnimationTime(const String&, float);
  7441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7442. void SetInterceptNetworkUpdate(const String&, bool);
  7443. // Properties:
  7444. bool animationEnabled;
  7445. float animationLodBias;
  7446. /* readonly */
  7447. Array<Variant> attributeDefaults;
  7448. /* readonly */
  7449. Array<AttributeInfo> attributeInfos;
  7450. Array<Variant> attributes;
  7451. /* readonly */
  7452. Array<Billboard> billboards;
  7453. /* readonly */
  7454. BoundingBox boundingBox;
  7455. bool castShadows;
  7456. /* readonly */
  7457. String category;
  7458. float drawDistance;
  7459. ParticleEffect effect;
  7460. bool emitting;
  7461. bool enabled;
  7462. /* readonly */
  7463. bool enabledEffective;
  7464. FaceCameraMode faceCameraMode;
  7465. /* readonly */
  7466. uint id;
  7467. /* readonly */
  7468. bool inView;
  7469. uint lightMask;
  7470. float lodBias;
  7471. Material material;
  7472. uint maxLights;
  7473. /* readonly */
  7474. Node node;
  7475. /* readonly */
  7476. uint numAttributes;
  7477. uint numBillboards;
  7478. uint numParticles;
  7479. ObjectAnimation objectAnimation;
  7480. bool occludee;
  7481. bool occluder;
  7482. /* readonly */
  7483. int refs;
  7484. bool relative;
  7485. bool scaled;
  7486. bool serializeParticles;
  7487. float shadowDistance;
  7488. uint shadowMask;
  7489. bool sorted;
  7490. bool temporary;
  7491. /* readonly */
  7492. StringHash type;
  7493. /* readonly */
  7494. String typeName;
  7495. uint viewMask;
  7496. /* readonly */
  7497. int weakRefs;
  7498. /* readonly */
  7499. BoundingBox worldBoundingBox;
  7500. /* readonly */
  7501. Zone zone;
  7502. uint zoneMask;
  7503. };
  7504. class ParticleEmitter2D
  7505. {
  7506. // Methods:
  7507. void ApplyAttributes();
  7508. void DrawDebugGeometry(DebugRenderer, bool);
  7509. Variant GetAttribute(const String&) const;
  7510. ValueAnimation GetAttributeAnimation(const String&) const;
  7511. float GetAttributeAnimationSpeed(const String&) const;
  7512. float GetAttributeAnimationTime(const String&) const;
  7513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7514. Variant GetAttributeDefault(const String&) const;
  7515. bool GetInterceptNetworkUpdate(const String&) const;
  7516. bool HasSubscribedToEvent(Object, const String&);
  7517. bool HasSubscribedToEvent(const String&);
  7518. bool IsInView(Camera) const;
  7519. bool Load(File, bool = false);
  7520. bool Load(VectorBuffer&, bool = false);
  7521. bool LoadJSON(const JSONValue&, bool = false);
  7522. bool LoadXML(const XMLElement&, bool = false);
  7523. void MarkNetworkUpdate() const;
  7524. void Remove();
  7525. void RemoveAttributeAnimation(const String&);
  7526. void RemoveInstanceDefault();
  7527. void RemoveObjectAnimation();
  7528. void ResetToDefault();
  7529. bool Save(File) const;
  7530. bool Save(VectorBuffer&) const;
  7531. bool SaveJSON(JSONValue&) const;
  7532. bool SaveXML(XMLElement&) const;
  7533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7534. void SetAnimationTime(float);
  7535. bool SetAttribute(const String&, const Variant&);
  7536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7537. void SetAttributeAnimationSpeed(const String&, float);
  7538. void SetAttributeAnimationTime(const String&, float);
  7539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7540. void SetInterceptNetworkUpdate(const String&, bool);
  7541. // Properties:
  7542. bool animationEnabled;
  7543. /* readonly */
  7544. Array<Variant> attributeDefaults;
  7545. /* readonly */
  7546. Array<AttributeInfo> attributeInfos;
  7547. Array<Variant> attributes;
  7548. BlendMode blendMode;
  7549. /* readonly */
  7550. BoundingBox boundingBox;
  7551. bool castShadows;
  7552. /* readonly */
  7553. String category;
  7554. float drawDistance;
  7555. ParticleEffect2D effect;
  7556. bool enabled;
  7557. /* readonly */
  7558. bool enabledEffective;
  7559. /* readonly */
  7560. uint id;
  7561. /* readonly */
  7562. bool inView;
  7563. int layer;
  7564. uint lightMask;
  7565. float lodBias;
  7566. uint maxLights;
  7567. /* readonly */
  7568. Node node;
  7569. /* readonly */
  7570. uint numAttributes;
  7571. ObjectAnimation objectAnimation;
  7572. bool occludee;
  7573. bool occluder;
  7574. int orderInLayer;
  7575. /* readonly */
  7576. int refs;
  7577. float shadowDistance;
  7578. uint shadowMask;
  7579. Sprite2D sprite;
  7580. bool temporary;
  7581. /* readonly */
  7582. StringHash type;
  7583. /* readonly */
  7584. String typeName;
  7585. uint viewMask;
  7586. /* readonly */
  7587. int weakRefs;
  7588. /* readonly */
  7589. BoundingBox worldBoundingBox;
  7590. uint zoneMask;
  7591. };
  7592. class Pass
  7593. {
  7594. // Properties:
  7595. bool alphaMask;
  7596. BlendMode blendMode;
  7597. CompareMode depthTestMode;
  7598. bool depthWrite;
  7599. bool desktop;
  7600. PassLightingMode lightingMode;
  7601. String pixelShader;
  7602. String pixelShaderDefines;
  7603. /* readonly */
  7604. int refs;
  7605. String vertexShader;
  7606. String vertexShaderDefines;
  7607. /* readonly */
  7608. int weakRefs;
  7609. };
  7610. class PhysicsRaycastResult
  7611. {
  7612. // Properties:
  7613. /* readonly */
  7614. RigidBody body;
  7615. float distance;
  7616. float hitFraction;
  7617. Vector3 normal;
  7618. Vector3 position;
  7619. };
  7620. class PhysicsRaycastResult2D
  7621. {
  7622. // Properties:
  7623. /* readonly */
  7624. RigidBody2D body;
  7625. float distance;
  7626. Vector2 normal;
  7627. Vector2 position;
  7628. };
  7629. class PhysicsWorld
  7630. {
  7631. // Methods:
  7632. void ApplyAttributes();
  7633. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7634. void DrawDebugGeometry(DebugRenderer, bool);
  7635. void DrawDebugGeometry(bool);
  7636. Variant GetAttribute(const String&) const;
  7637. ValueAnimation GetAttributeAnimation(const String&) const;
  7638. float GetAttributeAnimationSpeed(const String&) const;
  7639. float GetAttributeAnimationTime(const String&) const;
  7640. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7641. Variant GetAttributeDefault(const String&) const;
  7642. Array<RigidBody> GetCollidingBodies(RigidBody);
  7643. bool GetInterceptNetworkUpdate(const String&) const;
  7644. Array<RigidBody> GetRigidBodies(RigidBody);
  7645. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7646. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7647. bool HasSubscribedToEvent(Object, const String&);
  7648. bool HasSubscribedToEvent(const String&);
  7649. bool Load(File, bool = false);
  7650. bool Load(VectorBuffer&, bool = false);
  7651. bool LoadJSON(const JSONValue&, bool = false);
  7652. bool LoadXML(const XMLElement&, bool = false);
  7653. void MarkNetworkUpdate() const;
  7654. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7655. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7656. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7657. void Remove();
  7658. void RemoveAttributeAnimation(const String&);
  7659. void RemoveCachedGeometry(Model);
  7660. void RemoveInstanceDefault();
  7661. void RemoveObjectAnimation();
  7662. void ResetToDefault();
  7663. bool Save(File) const;
  7664. bool Save(VectorBuffer&) const;
  7665. bool SaveJSON(JSONValue&) const;
  7666. bool SaveXML(XMLElement&) const;
  7667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7668. void SetAnimationTime(float);
  7669. bool SetAttribute(const String&, const Variant&);
  7670. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7671. void SetAttributeAnimationSpeed(const String&, float);
  7672. void SetAttributeAnimationTime(const String&, float);
  7673. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7674. void SetInterceptNetworkUpdate(const String&, bool);
  7675. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7676. void Update(float);
  7677. void UpdateCollisions();
  7678. // Properties:
  7679. bool animationEnabled;
  7680. /* readonly */
  7681. Array<Variant> attributeDefaults;
  7682. /* readonly */
  7683. Array<AttributeInfo> attributeInfos;
  7684. Array<Variant> attributes;
  7685. /* readonly */
  7686. String category;
  7687. bool enabled;
  7688. /* readonly */
  7689. bool enabledEffective;
  7690. int fps;
  7691. Vector3 gravity;
  7692. /* readonly */
  7693. uint id;
  7694. bool internalEdge;
  7695. bool interpolation;
  7696. int maxSubSteps;
  7697. /* readonly */
  7698. Node node;
  7699. /* readonly */
  7700. uint numAttributes;
  7701. int numIterations;
  7702. ObjectAnimation objectAnimation;
  7703. /* readonly */
  7704. int refs;
  7705. bool splitImpulse;
  7706. bool temporary;
  7707. /* readonly */
  7708. StringHash type;
  7709. /* readonly */
  7710. String typeName;
  7711. bool updateEnabled;
  7712. /* readonly */
  7713. int weakRefs;
  7714. };
  7715. class PhysicsWorld2D
  7716. {
  7717. // Methods:
  7718. void ApplyAttributes();
  7719. void DrawDebugGeometry() const;
  7720. void DrawDebugGeometry(DebugRenderer, bool);
  7721. Variant GetAttribute(const String&) const;
  7722. ValueAnimation GetAttributeAnimation(const String&) const;
  7723. float GetAttributeAnimationSpeed(const String&) const;
  7724. float GetAttributeAnimationTime(const String&) const;
  7725. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7726. Variant GetAttributeDefault(const String&) const;
  7727. bool GetInterceptNetworkUpdate(const String&) const;
  7728. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7729. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7730. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7731. bool HasSubscribedToEvent(Object, const String&);
  7732. bool HasSubscribedToEvent(const String&);
  7733. bool Load(File, bool = false);
  7734. bool Load(VectorBuffer&, bool = false);
  7735. bool LoadJSON(const JSONValue&, bool = false);
  7736. bool LoadXML(const XMLElement&, bool = false);
  7737. void MarkNetworkUpdate() const;
  7738. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7739. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7740. void Remove();
  7741. void RemoveAttributeAnimation(const String&);
  7742. void RemoveInstanceDefault();
  7743. void RemoveObjectAnimation();
  7744. void ResetToDefault();
  7745. bool Save(File) const;
  7746. bool Save(VectorBuffer&) const;
  7747. bool SaveJSON(JSONValue&) const;
  7748. bool SaveXML(XMLElement&) const;
  7749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7750. void SetAnimationTime(float);
  7751. bool SetAttribute(const String&, const Variant&);
  7752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7753. void SetAttributeAnimationSpeed(const String&, float);
  7754. void SetAttributeAnimationTime(const String&, float);
  7755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7756. void SetInterceptNetworkUpdate(const String&, bool);
  7757. // Properties:
  7758. bool allowSleeping;
  7759. bool animationEnabled;
  7760. /* readonly */
  7761. Array<Variant> attributeDefaults;
  7762. /* readonly */
  7763. Array<AttributeInfo> attributeInfos;
  7764. Array<Variant> attributes;
  7765. bool autoClearForces;
  7766. /* readonly */
  7767. String category;
  7768. bool continuousPhysics;
  7769. bool drawAabb;
  7770. bool drawCenterOfMass;
  7771. bool drawJoint;
  7772. bool drawPair;
  7773. bool drawShape;
  7774. bool enabled;
  7775. /* readonly */
  7776. bool enabledEffective;
  7777. Vector2 gravity;
  7778. /* readonly */
  7779. uint id;
  7780. /* readonly */
  7781. Node node;
  7782. /* readonly */
  7783. uint numAttributes;
  7784. ObjectAnimation objectAnimation;
  7785. uint positionIterations;
  7786. /* readonly */
  7787. int refs;
  7788. bool subStepping;
  7789. bool temporary;
  7790. /* readonly */
  7791. StringHash type;
  7792. /* readonly */
  7793. String typeName;
  7794. bool updateEnabled;
  7795. uint velocityIterations;
  7796. bool warmStarting;
  7797. /* readonly */
  7798. int weakRefs;
  7799. };
  7800. class Plane
  7801. {
  7802. // Methods:
  7803. void Define(const Vector3&, const Vector3&);
  7804. void Define(const Vector3&, const Vector3&, const Vector3&);
  7805. void Define(const Vector4&);
  7806. float Distance(const Vector3&) const;
  7807. Vector3 Project(const Vector3&) const;
  7808. Vector3 Reflect(const Vector3&) const;
  7809. Vector4 ToVector4() const;
  7810. void Transform(const Matrix3&);
  7811. void Transform(const Matrix3x4&);
  7812. void Transform(const Matrix4&);
  7813. Plane Transformed(const Matrix3&) const;
  7814. Plane Transformed(const Matrix3x4&) const;
  7815. Plane Transformed(const Matrix4&) const;
  7816. // Properties:
  7817. Vector3 absNormal;
  7818. float d;
  7819. Vector3 normal;
  7820. /* readonly */
  7821. Matrix3x4 reflectionMatrix;
  7822. };
  7823. class Polyhedron
  7824. {
  7825. // Methods:
  7826. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7827. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7828. void AddFace(const Array<Vector3>);
  7829. void Clear();
  7830. void Clip(const BoundingBox&);
  7831. void Clip(const Frustum&);
  7832. void Define(const BoundingBox&);
  7833. void Define(const Frustum&);
  7834. void Transform(const Matrix3&);
  7835. void Transform(const Matrix3x4&);
  7836. Polyhedron Transformed(const Matrix3&) const;
  7837. Polyhedron Transformed(const Matrix3x4&) const;
  7838. // Properties:
  7839. /* readonly */
  7840. Array<Array<Vector3>> face;
  7841. /* readonly */
  7842. uint numFaces;
  7843. };
  7844. class PropertySet2D
  7845. {
  7846. // Methods:
  7847. bool HasProperty(const String&) const;
  7848. const String& GetProperty(const String&) const;
  7849. // Properties:
  7850. /* readonly */
  7851. int refs;
  7852. /* readonly */
  7853. int weakRefs;
  7854. };
  7855. class Quaternion
  7856. {
  7857. // Methods:
  7858. Quaternion Conjugate() const;
  7859. float DotProduct(const Quaternion&) const;
  7860. bool Equals(const Quaternion&) const;
  7861. void FromAngleAxis(float, const Vector3&);
  7862. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7863. void FromEulerAngles(float, float, float);
  7864. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7865. void FromRotationMatrix(const Matrix3&);
  7866. void FromRotationTo(const Vector3&, const Vector3&);
  7867. Quaternion Inverse() const;
  7868. bool IsNaN() const;
  7869. float LengthSquared() const;
  7870. Quaternion Nlerp(Quaternion, float, bool) const;
  7871. void Normalize();
  7872. Quaternion Normalized() const;
  7873. Quaternion Slerp(Quaternion, float) const;
  7874. String ToString() const;
  7875. // Properties:
  7876. /* readonly */
  7877. Vector3 eulerAngles;
  7878. /* readonly */
  7879. float pitch;
  7880. /* readonly */
  7881. float roll;
  7882. /* readonly */
  7883. Matrix3 rotationMatrix;
  7884. float w;
  7885. float x;
  7886. float y;
  7887. /* readonly */
  7888. float yaw;
  7889. float z;
  7890. };
  7891. class Ray
  7892. {
  7893. // Methods:
  7894. Vector3 ClosestPoint(const Ray&) const;
  7895. void Define(const Vector3&, const Vector3&);
  7896. float Distance(const Vector3&) const;
  7897. float HitDistance(const BoundingBox&) const;
  7898. float HitDistance(const Frustum&, bool = true) const;
  7899. float HitDistance(const Plane&) const;
  7900. float HitDistance(const Sphere&) const;
  7901. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7902. Vector3 Project(const Vector3&) const;
  7903. Ray Transformed(const Matrix3x4&) const;
  7904. // Properties:
  7905. Vector3 direction;
  7906. Vector3 origin;
  7907. };
  7908. class RayQueryResult
  7909. {
  7910. // Properties:
  7911. float distance;
  7912. /* readonly */
  7913. Drawable drawable;
  7914. /* readonly */
  7915. Node node;
  7916. Vector3 normal;
  7917. Vector3 position;
  7918. uint subObject;
  7919. Vector2 textureUV;
  7920. };
  7921. class Rect
  7922. {
  7923. // Methods:
  7924. void Clear();
  7925. void Clip(const Rect&);
  7926. void Define(const Vector2&);
  7927. void Define(const Vector2&, const Vector2&);
  7928. bool Defined() const;
  7929. bool Equals(const Rect&) const;
  7930. Intersection IsInside(const Vector2&) const;
  7931. void Merge(const Rect&);
  7932. void Merge(const Vector2&);
  7933. Vector4 ToVector4() const;
  7934. // Properties:
  7935. float bottom;
  7936. /* readonly */
  7937. Vector2 center;
  7938. /* readonly */
  7939. Vector2 halfSize;
  7940. float left;
  7941. Vector2 max;
  7942. Vector2 min;
  7943. float right;
  7944. /* readonly */
  7945. Vector2 size;
  7946. float top;
  7947. };
  7948. class RefCounted
  7949. {
  7950. // Properties:
  7951. /* readonly */
  7952. int refs;
  7953. /* readonly */
  7954. int weakRefs;
  7955. };
  7956. class RenderPath
  7957. {
  7958. // Methods:
  7959. void AddCommand(const RenderPathCommand&);
  7960. void AddRenderTarget(const RenderTargetInfo&);
  7961. bool Append(XMLFile);
  7962. RenderPath Clone();
  7963. void InsertCommand(uint, const RenderPathCommand&);
  7964. bool Load(XMLFile);
  7965. void RemoveCommand(uint);
  7966. void RemoveCommands(const String&);
  7967. void RemoveRenderTarget(const String&);
  7968. void RemoveRenderTarget(uint);
  7969. void RemoveRenderTargts(const String&);
  7970. void SetEnabled(const String&, bool);
  7971. void ToggleEnabled(const String&);
  7972. // Properties:
  7973. Array<RenderPathCommand> commands;
  7974. /* readonly */
  7975. uint numCommands;
  7976. /* readonly */
  7977. uint numRenderTargets;
  7978. /* readonly */
  7979. int refs;
  7980. Array<RenderTargetInfo> renderTargets;
  7981. Array<Variant> shaderParameters;
  7982. /* readonly */
  7983. int weakRefs;
  7984. };
  7985. class RenderPathCommand
  7986. {
  7987. // Methods:
  7988. void RemoveShaderParameter(const String&);
  7989. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7990. // Properties:
  7991. BlendMode blendMode;
  7992. Color clearColor;
  7993. float clearDepth;
  7994. uint clearFlags;
  7995. uint clearStencil;
  7996. String depthStencilName;
  7997. bool enabled;
  7998. bool markToStencil;
  7999. String metadata;
  8000. uint numOutputs;
  8001. Array<CubeMapFace> outputFaces;
  8002. Array<String> outputNames;
  8003. String pass;
  8004. String pixelShaderDefines;
  8005. String pixelShaderName;
  8006. Array<Variant> shaderParameters;
  8007. RenderCommandSortMode sortMode;
  8008. String tag;
  8009. Array<String> textureNames;
  8010. RenderCommandType type;
  8011. bool useFogColor;
  8012. bool useLitBase;
  8013. bool vertexLights;
  8014. String vertexShaderDefines;
  8015. String vertexShaderName;
  8016. };
  8017. class RenderSurface
  8018. {
  8019. // Methods:
  8020. void QueueUpdate();
  8021. // Properties:
  8022. /* readonly */
  8023. int height;
  8024. RenderSurface linkedDepthStencil;
  8025. RenderSurface linkedRenderTarget;
  8026. uint numViewports;
  8027. /* readonly */
  8028. Texture parentTexture;
  8029. RenderSurfaceUpdateMode updateMode;
  8030. /* readonly */
  8031. TextureUsage usage;
  8032. Array<Viewport> viewports;
  8033. /* readonly */
  8034. int width;
  8035. };
  8036. class RenderTargetInfo
  8037. {
  8038. // Properties:
  8039. bool cubemap;
  8040. bool enabled;
  8041. bool filtered;
  8042. uint format;
  8043. String name;
  8044. bool persistent;
  8045. bool sRGB;
  8046. Vector2 size;
  8047. RenderTargetSizeMode sizeMode;
  8048. String tag;
  8049. };
  8050. class Renderer
  8051. {
  8052. // Methods:
  8053. void DrawDebugGeometry(bool) const;
  8054. bool HasSubscribedToEvent(Object, const String&);
  8055. bool HasSubscribedToEvent(const String&);
  8056. void ReloadShaders() const;
  8057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8058. void SetDefaultRenderPath(XMLFile);
  8059. void SetVSMShadowParameters(float, float);
  8060. // Properties:
  8061. /* readonly */
  8062. String category;
  8063. /* readonly */
  8064. Material defaultLightRamp;
  8065. /* readonly */
  8066. Material defaultLightSpot;
  8067. /* readonly */
  8068. Material defaultMaterial;
  8069. RenderPath defaultRenderPath;
  8070. /* readonly */
  8071. Zone defaultZone;
  8072. bool drawShadows;
  8073. bool dynamicInstancing;
  8074. bool hdrRendering;
  8075. int materialQuality;
  8076. int maxOccluderTriangles;
  8077. int maxShadowMaps;
  8078. int maxSortedInstances;
  8079. int minInstances;
  8080. float mobileShadowBiasAdd;
  8081. float mobileShadowBiasMul;
  8082. /* readonly */
  8083. uint numBatches;
  8084. /* readonly */
  8085. Array<uint> numGeometries;
  8086. /* readonly */
  8087. Array<uint> numLights;
  8088. /* readonly */
  8089. Array<uint> numOccluders;
  8090. /* readonly */
  8091. uint numPrimitives;
  8092. /* readonly */
  8093. Array<uint> numShadowMaps;
  8094. uint numViewports;
  8095. /* readonly */
  8096. uint numViews;
  8097. float occluderSizeThreshold;
  8098. int occlusionBufferSize;
  8099. /* readonly */
  8100. int refs;
  8101. bool reuseShadowMaps;
  8102. int shadowMapSize;
  8103. ShadowQuality shadowQuality;
  8104. float shadowSoftness;
  8105. bool specularLighting;
  8106. int textureAnisotropy;
  8107. TextureFilterMode textureFilterMode;
  8108. int textureQuality;
  8109. bool threadedOcclusion;
  8110. /* readonly */
  8111. StringHash type;
  8112. /* readonly */
  8113. String typeName;
  8114. Array<Viewport> viewports;
  8115. Vector2 vsmShadowParameters;
  8116. /* readonly */
  8117. int weakRefs;
  8118. };
  8119. class Resource
  8120. {
  8121. // Methods:
  8122. bool HasSubscribedToEvent(Object, const String&);
  8123. bool HasSubscribedToEvent(const String&);
  8124. bool Load(File);
  8125. bool Load(VectorBuffer&);
  8126. bool Save(File) const;
  8127. bool Save(VectorBuffer&) const;
  8128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8129. // Properties:
  8130. /* readonly */
  8131. String category;
  8132. /* readonly */
  8133. uint memoryUse;
  8134. String name;
  8135. /* readonly */
  8136. int refs;
  8137. /* readonly */
  8138. StringHash type;
  8139. /* readonly */
  8140. String typeName;
  8141. /* readonly */
  8142. uint useTimer;
  8143. /* readonly */
  8144. int weakRefs;
  8145. };
  8146. class ResourceCache
  8147. {
  8148. // Methods:
  8149. bool AddManualResource(Resource);
  8150. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8151. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8152. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8153. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8154. bool Exists(const String&) const;
  8155. Resource GetExistingResource(StringHash, const String&);
  8156. Resource GetExistingResource(const String&, const String&);
  8157. File GetFile(const String&);
  8158. String GetPreferredResourceDir(const String&) const;
  8159. Resource GetResource(StringHash, const String&, bool = true);
  8160. Resource GetResource(const String&, const String&, bool = true);
  8161. String GetResourceFileName(const String&) const;
  8162. bool HasSubscribedToEvent(Object, const String&);
  8163. bool HasSubscribedToEvent(const String&);
  8164. void ReleaseAllResources(bool = false);
  8165. void ReleaseResource(const String&, const String&, bool = false);
  8166. void ReleaseResources(StringHash, bool = false);
  8167. void ReleaseResources(const String&, bool = false);
  8168. void ReleaseResources(const String&, const String&, bool = false);
  8169. bool ReloadResource(Resource);
  8170. void ReloadResourceWithDependencies(const String&);
  8171. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8172. void RemovePackageFile(const String&, bool = true, bool = false);
  8173. void RemoveResourceDir(const String&);
  8174. String SanitateResourceDirName(const String&) const;
  8175. String SanitateResourceName(const String&) const;
  8176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8177. // Properties:
  8178. bool autoReloadResources;
  8179. /* readonly */
  8180. String category;
  8181. int finishBackgroundResourcesMs;
  8182. Array<uint64> memoryBudget;
  8183. /* readonly */
  8184. Array<uint64> memoryUse;
  8185. /* readonly */
  8186. uint numBackgroundLoadResources;
  8187. /* readonly */
  8188. Array<PackageFile> packageFiles;
  8189. /* readonly */
  8190. int refs;
  8191. /* readonly */
  8192. Array<String> resourceDirs;
  8193. bool returnFailedResources;
  8194. /* readonly */
  8195. bool seachPackagesFirst;
  8196. /* writeonly */
  8197. bool searchPackagesFirst;
  8198. /* readonly */
  8199. uint64 totalMemoryUse;
  8200. /* readonly */
  8201. StringHash type;
  8202. /* readonly */
  8203. String typeName;
  8204. /* readonly */
  8205. int weakRefs;
  8206. };
  8207. class ResourceRef
  8208. {
  8209. // Properties:
  8210. String name;
  8211. StringHash type;
  8212. };
  8213. class ResourceRefList
  8214. {
  8215. // Methods:
  8216. void Resize(uint);
  8217. // Properties:
  8218. /* readonly */
  8219. bool empty;
  8220. /* readonly */
  8221. uint length;
  8222. Array<String> names;
  8223. StringHash type;
  8224. };
  8225. class RigidBody
  8226. {
  8227. // Methods:
  8228. void Activate();
  8229. void ApplyAttributes();
  8230. void ApplyForce(const Vector3&);
  8231. void ApplyForce(const Vector3&, const Vector3&);
  8232. void ApplyImpulse(const Vector3&);
  8233. void ApplyImpulse(const Vector3&, const Vector3&);
  8234. void ApplyTorque(const Vector3&);
  8235. void ApplyTorqueImpulse(const Vector3&);
  8236. void DisableMassUpdate();
  8237. void DrawDebugGeometry(DebugRenderer, bool);
  8238. void EnableMassUpdate();
  8239. Variant GetAttribute(const String&) const;
  8240. ValueAnimation GetAttributeAnimation(const String&) const;
  8241. float GetAttributeAnimationSpeed(const String&) const;
  8242. float GetAttributeAnimationTime(const String&) const;
  8243. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8244. Variant GetAttributeDefault(const String&) const;
  8245. bool GetInterceptNetworkUpdate(const String&) const;
  8246. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8247. bool HasSubscribedToEvent(Object, const String&);
  8248. bool HasSubscribedToEvent(const String&);
  8249. bool Load(File, bool = false);
  8250. bool Load(VectorBuffer&, bool = false);
  8251. bool LoadJSON(const JSONValue&, bool = false);
  8252. bool LoadXML(const XMLElement&, bool = false);
  8253. void MarkNetworkUpdate() const;
  8254. void ReAddBodyToWorld();
  8255. void Remove();
  8256. void RemoveAttributeAnimation(const String&);
  8257. void RemoveInstanceDefault();
  8258. void RemoveObjectAnimation();
  8259. void ResetForces();
  8260. void ResetToDefault();
  8261. bool Save(File) const;
  8262. bool Save(VectorBuffer&) const;
  8263. bool SaveJSON(JSONValue&) const;
  8264. bool SaveXML(XMLElement&) const;
  8265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8266. void SetAnimationTime(float);
  8267. bool SetAttribute(const String&, const Variant&);
  8268. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8269. void SetAttributeAnimationSpeed(const String&, float);
  8270. void SetAttributeAnimationTime(const String&, float);
  8271. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8272. void SetCollisionLayerAndMask(uint, uint);
  8273. void SetInterceptNetworkUpdate(const String&, bool);
  8274. void SetTransform(const Vector3&, const Quaternion&);
  8275. // Properties:
  8276. /* readonly */
  8277. bool active;
  8278. float angularDamping;
  8279. Vector3 angularFactor;
  8280. float angularRestThreshold;
  8281. Vector3 angularVelocity;
  8282. bool animationEnabled;
  8283. Vector3 anisotropicFriction;
  8284. /* readonly */
  8285. Array<Variant> attributeDefaults;
  8286. /* readonly */
  8287. Array<AttributeInfo> attributeInfos;
  8288. Array<Variant> attributes;
  8289. /* readonly */
  8290. String category;
  8291. float ccdMotionThreshold;
  8292. float ccdRadius;
  8293. /* readonly */
  8294. Vector3 centerOfMass;
  8295. /* readonly */
  8296. Array<RigidBody> collidingBodies;
  8297. CollisionEventMode collisionEventMode;
  8298. uint collisionLayer;
  8299. uint collisionMask;
  8300. float contactProcessingThreshold;
  8301. bool enabled;
  8302. /* readonly */
  8303. bool enabledEffective;
  8304. float friction;
  8305. Vector3 gravityOverride;
  8306. /* readonly */
  8307. uint id;
  8308. bool kinematic;
  8309. float linearDamping;
  8310. Vector3 linearFactor;
  8311. float linearRestThreshold;
  8312. Vector3 linearVelocity;
  8313. float mass;
  8314. /* readonly */
  8315. Node node;
  8316. /* readonly */
  8317. uint numAttributes;
  8318. ObjectAnimation objectAnimation;
  8319. Vector3 position;
  8320. /* readonly */
  8321. int refs;
  8322. float restitution;
  8323. float rollingFriction;
  8324. Quaternion rotation;
  8325. bool temporary;
  8326. bool trigger;
  8327. /* readonly */
  8328. StringHash type;
  8329. /* readonly */
  8330. String typeName;
  8331. bool useGravity;
  8332. /* readonly */
  8333. int weakRefs;
  8334. };
  8335. class RigidBody2D
  8336. {
  8337. // Methods:
  8338. void ApplyAngularImpulse(float, bool);
  8339. void ApplyAttributes();
  8340. void ApplyForce(const Vector2&, const Vector2&, bool);
  8341. void ApplyForceToCenter(const Vector2&, bool);
  8342. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8343. void ApplyTorque(float, bool);
  8344. void DrawDebugGeometry(DebugRenderer, bool);
  8345. Variant GetAttribute(const String&) const;
  8346. ValueAnimation GetAttributeAnimation(const String&) const;
  8347. float GetAttributeAnimationSpeed(const String&) const;
  8348. float GetAttributeAnimationTime(const String&) const;
  8349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8350. Variant GetAttributeDefault(const String&) const;
  8351. bool GetInterceptNetworkUpdate(const String&) const;
  8352. bool HasSubscribedToEvent(Object, const String&);
  8353. bool HasSubscribedToEvent(const String&);
  8354. bool Load(File, bool = false);
  8355. bool Load(VectorBuffer&, bool = false);
  8356. bool LoadJSON(const JSONValue&, bool = false);
  8357. bool LoadXML(const XMLElement&, bool = false);
  8358. void MarkNetworkUpdate() const;
  8359. void Remove();
  8360. void RemoveAttributeAnimation(const String&);
  8361. void RemoveInstanceDefault();
  8362. void RemoveObjectAnimation();
  8363. void ResetToDefault();
  8364. bool Save(File) const;
  8365. bool Save(VectorBuffer&) const;
  8366. bool SaveJSON(JSONValue&) const;
  8367. bool SaveXML(XMLElement&) const;
  8368. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8369. void SetAnimationTime(float);
  8370. bool SetAttribute(const String&, const Variant&);
  8371. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8372. void SetAttributeAnimationSpeed(const String&, float);
  8373. void SetAttributeAnimationTime(const String&, float);
  8374. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8375. void SetInterceptNetworkUpdate(const String&, bool);
  8376. // Properties:
  8377. bool allowSleep;
  8378. float angularDamping;
  8379. bool animationEnabled;
  8380. /* readonly */
  8381. Array<Variant> attributeDefaults;
  8382. /* readonly */
  8383. Array<AttributeInfo> attributeInfos;
  8384. Array<Variant> attributes;
  8385. bool awake;
  8386. BodyType2D bodyType;
  8387. bool bullet;
  8388. /* readonly */
  8389. String category;
  8390. bool enabled;
  8391. /* readonly */
  8392. bool enabledEffective;
  8393. bool fixedRotation;
  8394. float gravityScale;
  8395. /* readonly */
  8396. uint id;
  8397. float inertia;
  8398. float linearDamping;
  8399. Vector2 linearVelocity;
  8400. float mass;
  8401. Vector2 massCenter;
  8402. /* readonly */
  8403. Node node;
  8404. /* readonly */
  8405. uint numAttributes;
  8406. ObjectAnimation objectAnimation;
  8407. /* readonly */
  8408. int refs;
  8409. bool temporary;
  8410. /* readonly */
  8411. StringHash type;
  8412. /* readonly */
  8413. String typeName;
  8414. bool useFixtureMass;
  8415. /* readonly */
  8416. int weakRefs;
  8417. };
  8418. class Scene
  8419. {
  8420. // Methods:
  8421. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8422. void AddRequiredPackageFile(PackageFile);
  8423. void AddTag(const String&);
  8424. void AddTags(const String&, int8 = ';');
  8425. void ApplyAttributes();
  8426. void Clear(bool = true, bool = true);
  8427. void ClearRequiredPackageFiles();
  8428. Component CloneComponent(Component, CreateMode, uint = 0);
  8429. Component CloneComponent(Component, uint = 0);
  8430. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8431. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8432. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8433. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8434. Variant GetAttribute(const String&) const;
  8435. ValueAnimation GetAttributeAnimation(const String&) const;
  8436. float GetAttributeAnimationSpeed(const String&) const;
  8437. float GetAttributeAnimationTime(const String&) const;
  8438. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8439. Variant GetAttributeDefault(const String&) const;
  8440. Node GetChild(const String&, bool = false) const;
  8441. Array<Node> GetChildren(bool = false) const;
  8442. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8443. Array<Node> GetChildrenWithScript(bool = false) const;
  8444. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8445. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8446. Component GetComponent(const String&, bool = false) const;
  8447. Component GetComponent(uint) const;
  8448. Array<Component> GetComponents() const;
  8449. Array<Component> GetComponents(const String&, bool = false) const;
  8450. bool GetInterceptNetworkUpdate(const String&) const;
  8451. Node GetNode(uint) const;
  8452. Array<Node> GetNodesWithTag(const String&) const;
  8453. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8454. Component GetParentComponent(const String&, bool = false) const;
  8455. ScriptObject GetScriptObject() const;
  8456. ScriptObject GetScriptObject(const String&) const;
  8457. bool HasComponent(const String&) const;
  8458. bool HasSubscribedToEvent(Object, const String&);
  8459. bool HasSubscribedToEvent(const String&);
  8460. bool HasTag(const String&);
  8461. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8462. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8463. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8464. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8465. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8466. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8467. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8468. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8469. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8470. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8471. bool Load(File, bool = false);
  8472. bool Load(VectorBuffer&, bool = false);
  8473. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8474. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8475. bool LoadJSON(File);
  8476. bool LoadJSON(VectorBuffer&);
  8477. bool LoadJSON(const JSONValue&, bool = false);
  8478. bool LoadXML(File);
  8479. bool LoadXML(VectorBuffer&);
  8480. bool LoadXML(const XMLElement&, bool = false);
  8481. Vector3 LocalToWorld(const Vector3&) const;
  8482. Vector3 LocalToWorld(const Vector4&) const;
  8483. Vector2 LocalToWorld2D(const Vector2&) const;
  8484. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8485. void MarkNetworkUpdate() const;
  8486. void Pitch(float, TransformSpace = TS_LOCAL);
  8487. void RegisterVar(const String&);
  8488. void Remove();
  8489. void RemoveAllChildren();
  8490. void RemoveAllComponents();
  8491. void RemoveAllTags();
  8492. void RemoveAttributeAnimation(const String&);
  8493. void RemoveChild(Node);
  8494. void RemoveChildren(bool, bool, bool);
  8495. void RemoveComponent(Component);
  8496. void RemoveComponent(const String&);
  8497. void RemoveComponents(bool, bool);
  8498. void RemoveComponents(const String&);
  8499. void RemoveInstanceDefault();
  8500. void RemoveObjectAnimation();
  8501. bool RemoveTag(const String&);
  8502. void ResetToDefault();
  8503. void Roll(float, TransformSpace = TS_LOCAL);
  8504. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8505. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8506. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8507. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8508. bool Save(File) const;
  8509. bool Save(VectorBuffer&) const;
  8510. bool SaveJSON(File, const String& = "\t");
  8511. bool SaveJSON(JSONValue&) const;
  8512. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8513. bool SaveXML(File, const String& = "\t");
  8514. bool SaveXML(VectorBuffer&, const String& = "\t");
  8515. bool SaveXML(XMLElement&) const;
  8516. void Scale(const Vector3&);
  8517. void Scale(float);
  8518. void Scale2D(const Vector2&);
  8519. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8520. void SetAnimationTime(float);
  8521. bool SetAttribute(const String&, const Variant&);
  8522. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8523. void SetAttributeAnimationSpeed(const String&, float);
  8524. void SetAttributeAnimationTime(const String&, float);
  8525. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8526. void SetInterceptNetworkUpdate(const String&, bool);
  8527. void SetPosition2D(float, float);
  8528. void SetScale(float);
  8529. void SetScale2D(float, float);
  8530. void SetTransform(const Vector3&, const Quaternion&);
  8531. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8532. void SetTransform(const Vector3&, const Quaternion&, float);
  8533. void SetTransform2D(const Vector2&, float);
  8534. void SetTransform2D(const Vector2&, float, const Vector2&);
  8535. void SetTransform2D(const Vector2&, float, float);
  8536. void SetWorldTransform(const Vector3&, const Quaternion&);
  8537. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8538. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8539. void SetWorldTransform2D(const Vector2&, float);
  8540. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8541. void SetWorldTransform2D(const Vector2&, float, float);
  8542. void StopAsyncLoading();
  8543. const String& GetVarName(StringHash) const;
  8544. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8545. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8546. void UnregisterAllVars(const String&);
  8547. void UnregisterVar(const String&);
  8548. void Update(float);
  8549. Vector3 WorldToLocal(const Vector3&) const;
  8550. Vector3 WorldToLocal(const Vector4&) const;
  8551. Vector2 WorldToLocal2D(const Vector2&) const;
  8552. void Yaw(float, TransformSpace = TS_LOCAL);
  8553. // Properties:
  8554. bool animationEnabled;
  8555. /* readonly */
  8556. LoadMode asyncLoadMode;
  8557. /* readonly */
  8558. bool asyncLoading;
  8559. int asyncLoadingMs;
  8560. /* readonly */
  8561. float asyncProgress;
  8562. /* readonly */
  8563. Array<Variant> attributeDefaults;
  8564. /* readonly */
  8565. Array<AttributeInfo> attributeInfos;
  8566. Array<Variant> attributes;
  8567. /* readonly */
  8568. String category;
  8569. /* readonly */
  8570. uint checksum;
  8571. /* readonly */
  8572. Array<Node> children;
  8573. /* readonly */
  8574. Array<Component> components;
  8575. /* readonly */
  8576. DebugRenderer debugRenderer;
  8577. Vector3 direction;
  8578. float elapsedTime;
  8579. /* readonly */
  8580. String fileName;
  8581. /* readonly */
  8582. uint id;
  8583. String name;
  8584. /* readonly */
  8585. uint numAllChildren;
  8586. /* readonly */
  8587. uint numAttributes;
  8588. /* readonly */
  8589. uint numChildren;
  8590. /* readonly */
  8591. uint numComponents;
  8592. ObjectAnimation objectAnimation;
  8593. /* readonly */
  8594. Octree octree;
  8595. Node parent;
  8596. /* readonly */
  8597. PhysicsWorld physicsWorld;
  8598. /* readonly */
  8599. PhysicsWorld2D physicsWorld2D;
  8600. Vector3 position;
  8601. Vector2 position2D;
  8602. /* readonly */
  8603. int refs;
  8604. /* readonly */
  8605. Array<PackageFile> requiredPackageFiles;
  8606. /* readonly */
  8607. Vector3 right;
  8608. Quaternion rotation;
  8609. float rotation2D;
  8610. Vector3 scale;
  8611. Vector2 scale2D;
  8612. /* readonly */
  8613. ScriptObject scriptObject;
  8614. float smoothingConstant;
  8615. float snapThreshold;
  8616. /* readonly */
  8617. Array<String> tags;
  8618. bool temporary;
  8619. float timeScale;
  8620. /* readonly */
  8621. Matrix3x4 transform;
  8622. /* readonly */
  8623. StringHash type;
  8624. /* readonly */
  8625. String typeName;
  8626. /* readonly */
  8627. Vector3 up;
  8628. bool updateEnabled;
  8629. /* readonly */
  8630. VariantMap vars;
  8631. /* readonly */
  8632. int weakRefs;
  8633. Vector3 worldDirection;
  8634. Vector3 worldPosition;
  8635. Vector2 worldPosition2D;
  8636. /* readonly */
  8637. Vector3 worldRight;
  8638. Quaternion worldRotation;
  8639. float worldRotation2D;
  8640. Vector3 worldScale;
  8641. Vector2 worldScale2D;
  8642. /* readonly */
  8643. Matrix3x4 worldTransform;
  8644. /* readonly */
  8645. Vector3 worldUp;
  8646. };
  8647. class Script
  8648. {
  8649. // Methods:
  8650. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8651. bool Execute(const String&);
  8652. bool HasSubscribedToEvent(Object, const String&);
  8653. bool HasSubscribedToEvent(const String&);
  8654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8655. // Properties:
  8656. /* readonly */
  8657. String category;
  8658. Scene defaultScene;
  8659. ScriptFile defaultScriptFile;
  8660. bool executeConsoleCommands;
  8661. /* readonly */
  8662. int refs;
  8663. /* readonly */
  8664. StringHash type;
  8665. /* readonly */
  8666. String typeName;
  8667. /* readonly */
  8668. int weakRefs;
  8669. };
  8670. class ScriptFile
  8671. {
  8672. // Methods:
  8673. void ClearDelayedExecute(const String& = String ( ));
  8674. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8675. bool Execute(const String&, const Array<Variant> = null);
  8676. bool HasSubscribedToEvent(Object, const String&);
  8677. bool HasSubscribedToEvent(const String&);
  8678. bool Load(File);
  8679. bool Load(VectorBuffer&);
  8680. bool Save(File) const;
  8681. bool Save(VectorBuffer&) const;
  8682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8683. // Properties:
  8684. /* readonly */
  8685. String category;
  8686. /* readonly */
  8687. bool compiled;
  8688. /* readonly */
  8689. uint memoryUse;
  8690. String name;
  8691. /* readonly */
  8692. int refs;
  8693. /* readonly */
  8694. StringHash type;
  8695. /* readonly */
  8696. String typeName;
  8697. /* readonly */
  8698. uint useTimer;
  8699. /* readonly */
  8700. int weakRefs;
  8701. };
  8702. class ScriptInstance
  8703. {
  8704. // Methods:
  8705. void ApplyAttributes();
  8706. void ClearDelayedExecute(const String& = String ( ));
  8707. bool CreateObject(ScriptFile, const String&);
  8708. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8709. void DrawDebugGeometry(DebugRenderer, bool);
  8710. bool Execute(const String&, const Array<Variant> = null);
  8711. Variant GetAttribute(const String&) const;
  8712. ValueAnimation GetAttributeAnimation(const String&) const;
  8713. float GetAttributeAnimationSpeed(const String&) const;
  8714. float GetAttributeAnimationTime(const String&) const;
  8715. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8716. Variant GetAttributeDefault(const String&) const;
  8717. bool GetInterceptNetworkUpdate(const String&) const;
  8718. bool HasMethod(const String&) const;
  8719. bool HasSubscribedToEvent(Object, const String&);
  8720. bool HasSubscribedToEvent(const String&);
  8721. bool IsA(const String&) const;
  8722. bool Load(File, bool = false);
  8723. bool Load(VectorBuffer&, bool = false);
  8724. bool LoadJSON(const JSONValue&, bool = false);
  8725. bool LoadXML(const XMLElement&, bool = false);
  8726. void MarkNetworkUpdate() const;
  8727. void Remove();
  8728. void RemoveAttributeAnimation(const String&);
  8729. void RemoveInstanceDefault();
  8730. void RemoveObjectAnimation();
  8731. void ResetToDefault();
  8732. bool Save(File) const;
  8733. bool Save(VectorBuffer&) const;
  8734. bool SaveJSON(JSONValue&) const;
  8735. bool SaveXML(XMLElement&) const;
  8736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8737. void SetAnimationTime(float);
  8738. bool SetAttribute(const String&, const Variant&);
  8739. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8740. void SetAttributeAnimationSpeed(const String&, float);
  8741. void SetAttributeAnimationTime(const String&, float);
  8742. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8743. void SetInterceptNetworkUpdate(const String&, bool);
  8744. // Properties:
  8745. bool animationEnabled;
  8746. /* readonly */
  8747. Array<Variant> attributeDefaults;
  8748. /* readonly */
  8749. Array<AttributeInfo> attributeInfos;
  8750. Array<Variant> attributes;
  8751. /* readonly */
  8752. String category;
  8753. String className;
  8754. bool enabled;
  8755. /* readonly */
  8756. bool enabledEffective;
  8757. /* readonly */
  8758. uint id;
  8759. /* readonly */
  8760. Node node;
  8761. /* readonly */
  8762. uint numAttributes;
  8763. ObjectAnimation objectAnimation;
  8764. /* readonly */
  8765. int refs;
  8766. ScriptFile scriptFile;
  8767. /* readonly */
  8768. ScriptObject scriptObject;
  8769. bool temporary;
  8770. /* readonly */
  8771. StringHash type;
  8772. /* readonly */
  8773. String typeName;
  8774. /* readonly */
  8775. int weakRefs;
  8776. };
  8777. class ScriptObject
  8778. {
  8779. };
  8780. class ScrollBar
  8781. {
  8782. // Methods:
  8783. void AddChild(UIElement);
  8784. void AddTag(const String&);
  8785. void AddTags(const String&, int8 = ';');
  8786. void ApplyAttributes();
  8787. void BringToFront();
  8788. void ChangeValue(float);
  8789. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8790. void DisableLayoutUpdate();
  8791. IntVector2 ElementToScreen(const IntVector2&);
  8792. void EnableLayoutUpdate();
  8793. uint FindChild(UIElement) const;
  8794. Variant GetAttribute(const String&) const;
  8795. ValueAnimation GetAttributeAnimation(const String&) const;
  8796. float GetAttributeAnimationSpeed(const String&) const;
  8797. float GetAttributeAnimationTime(const String&) const;
  8798. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8799. Variant GetAttributeDefault(const String&) const;
  8800. UIElement GetChild(const String&, bool = false) const;
  8801. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8802. Array<UIElement> GetChildren(bool = false) const;
  8803. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8804. UIElement GetElementEventSender() const;
  8805. bool GetInterceptNetworkUpdate(const String&) const;
  8806. uint GetNumChildren(bool) const;
  8807. bool HasSubscribedToEvent(Object, const String&);
  8808. bool HasSubscribedToEvent(const String&);
  8809. bool HasTag(const String&) const;
  8810. void InsertChild(uint, UIElement);
  8811. bool IsInside(IntVector2, bool);
  8812. bool IsInsideCombined(IntVector2, bool);
  8813. bool Load(File, bool = false);
  8814. bool Load(VectorBuffer&, bool = false);
  8815. bool LoadChildXML(XMLFile, XMLFile = null);
  8816. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8817. bool LoadJSON(const JSONValue&, bool = false);
  8818. bool LoadXML(File);
  8819. bool LoadXML(VectorBuffer&);
  8820. bool LoadXML(XMLFile, XMLFile);
  8821. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8822. bool LoadXML(const XMLElement&, bool = false);
  8823. void MarkNetworkUpdate() const;
  8824. void Remove();
  8825. void RemoveAllChildren();
  8826. void RemoveAllTags();
  8827. void RemoveAttributeAnimation(const String&);
  8828. void RemoveChild(UIElement, uint = 0);
  8829. void RemoveChild(uint);
  8830. void RemoveInstanceDefault();
  8831. void RemoveObjectAnimation();
  8832. bool RemoveTag(const String&);
  8833. void ResetDeepEnabled();
  8834. void ResetToDefault();
  8835. bool Save(File) const;
  8836. bool Save(VectorBuffer&) const;
  8837. bool SaveJSON(JSONValue&) const;
  8838. bool SaveXML(File, const String& = "\t");
  8839. bool SaveXML(VectorBuffer&, const String& = "\t");
  8840. bool SaveXML(XMLElement&) const;
  8841. IntVector2 ScreenToElement(const IntVector2&);
  8842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8843. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8844. void SetAnimationTime(float);
  8845. bool SetAttribute(const String&, const Variant&);
  8846. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8847. void SetAttributeAnimationSpeed(const String&, float);
  8848. void SetAttributeAnimationTime(const String&, float);
  8849. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8850. void SetDeepEnabled(bool);
  8851. void SetEnabledRecursive(bool);
  8852. void SetFixedHeight(int);
  8853. void SetFixedSize(int, int);
  8854. void SetFixedWidth(int);
  8855. void SetInterceptNetworkUpdate(const String&, bool);
  8856. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8857. void SetMaxSize(int, int);
  8858. void SetMinSize(int, int);
  8859. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8860. void SetPosition(int, int);
  8861. void SetSize(int, int);
  8862. bool SetStyle(const String&, XMLFile = null);
  8863. bool SetStyle(const XMLElement&);
  8864. bool SetStyleAuto(XMLFile = null);
  8865. void StepBack();
  8866. void StepForward();
  8867. void UpdateLayout();
  8868. const Variant& GetVar(const StringHash&);
  8869. // Properties:
  8870. bool animationEnabled;
  8871. /* readonly */
  8872. Array<Variant> attributeDefaults;
  8873. /* readonly */
  8874. Array<AttributeInfo> attributeInfos;
  8875. Array<Variant> attributes;
  8876. /* readonly */
  8877. Button backButton;
  8878. bool bringToBack;
  8879. bool bringToFront;
  8880. /* readonly */
  8881. String category;
  8882. /* readonly */
  8883. IntVector2 childOffset;
  8884. /* readonly */
  8885. Array<UIElement> children;
  8886. IntRect clipBorder;
  8887. bool clipChildren;
  8888. /* writeonly */
  8889. Color color;
  8890. /* readonly */
  8891. bool colorGradient;
  8892. Array<Color> colors;
  8893. /* readonly */
  8894. IntRect combinedScreenRect;
  8895. XMLFile defaultStyle;
  8896. /* readonly */
  8897. float derivedOpacity;
  8898. /* readonly */
  8899. uint dragButtonCombo;
  8900. /* readonly */
  8901. int dragButtonCount;
  8902. uint dragDropMode;
  8903. bool editable;
  8904. /* readonly */
  8905. float effectiveScrollStep;
  8906. bool elementEventSender;
  8907. bool enabled;
  8908. /* readonly */
  8909. bool enabledSelf;
  8910. /* readonly */
  8911. bool fixedHeight;
  8912. /* readonly */
  8913. bool fixedSize;
  8914. /* readonly */
  8915. bool fixedWidth;
  8916. bool focus;
  8917. FocusMode focusMode;
  8918. /* readonly */
  8919. Button forwardButton;
  8920. int height;
  8921. HorizontalAlignment horizontalAlignment;
  8922. /* readonly */
  8923. bool hovering;
  8924. int indent;
  8925. int indentSpacing;
  8926. /* readonly */
  8927. int indentWidth;
  8928. bool internal;
  8929. IntRect layoutBorder;
  8930. Vector2 layoutFlexScale;
  8931. LayoutMode layoutMode;
  8932. int layoutSpacing;
  8933. int maxHeight;
  8934. IntVector2 maxSize;
  8935. int maxWidth;
  8936. int minHeight;
  8937. IntVector2 minSize;
  8938. int minWidth;
  8939. String name;
  8940. /* readonly */
  8941. uint numAllChildren;
  8942. /* readonly */
  8943. uint numAttributes;
  8944. /* readonly */
  8945. uint numChildren;
  8946. ObjectAnimation objectAnimation;
  8947. float opacity;
  8948. Orientation orientation;
  8949. UIElement parent;
  8950. IntVector2 position;
  8951. int priority;
  8952. float range;
  8953. /* readonly */
  8954. int refs;
  8955. /* readonly */
  8956. UIElement root;
  8957. /* readonly */
  8958. IntVector2 screenPosition;
  8959. float scrollStep;
  8960. bool selected;
  8961. IntVector2 size;
  8962. /* readonly */
  8963. Slider slider;
  8964. bool sortChildren;
  8965. float stepFactor;
  8966. String style;
  8967. /* readonly */
  8968. Array<String> tags;
  8969. bool temporary;
  8970. TraversalMode traversalMode;
  8971. /* readonly */
  8972. StringHash type;
  8973. /* readonly */
  8974. String typeName;
  8975. bool useDerivedOpacity;
  8976. float value;
  8977. /* readonly */
  8978. VariantMap vars;
  8979. VerticalAlignment verticalAlignment;
  8980. bool visible;
  8981. /* readonly */
  8982. bool visibleEffective;
  8983. /* readonly */
  8984. int weakRefs;
  8985. int width;
  8986. };
  8987. class ScrollView
  8988. {
  8989. // Methods:
  8990. void AddChild(UIElement);
  8991. void AddTag(const String&);
  8992. void AddTags(const String&, int8 = ';');
  8993. void ApplyAttributes();
  8994. void BringToFront();
  8995. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8996. void DisableLayoutUpdate();
  8997. IntVector2 ElementToScreen(const IntVector2&);
  8998. void EnableLayoutUpdate();
  8999. uint FindChild(UIElement) const;
  9000. Variant GetAttribute(const String&) const;
  9001. ValueAnimation GetAttributeAnimation(const String&) const;
  9002. float GetAttributeAnimationSpeed(const String&) const;
  9003. float GetAttributeAnimationTime(const String&) const;
  9004. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9005. Variant GetAttributeDefault(const String&) const;
  9006. UIElement GetChild(const String&, bool = false) const;
  9007. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9008. Array<UIElement> GetChildren(bool = false) const;
  9009. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9010. UIElement GetElementEventSender() const;
  9011. bool GetInterceptNetworkUpdate(const String&) const;
  9012. uint GetNumChildren(bool) const;
  9013. bool HasSubscribedToEvent(Object, const String&);
  9014. bool HasSubscribedToEvent(const String&);
  9015. bool HasTag(const String&) const;
  9016. void InsertChild(uint, UIElement);
  9017. bool IsInside(IntVector2, bool);
  9018. bool IsInsideCombined(IntVector2, bool);
  9019. bool Load(File, bool = false);
  9020. bool Load(VectorBuffer&, bool = false);
  9021. bool LoadChildXML(XMLFile, XMLFile = null);
  9022. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9023. bool LoadJSON(const JSONValue&, bool = false);
  9024. bool LoadXML(File);
  9025. bool LoadXML(VectorBuffer&);
  9026. bool LoadXML(XMLFile, XMLFile);
  9027. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9028. bool LoadXML(const XMLElement&, bool = false);
  9029. void MarkNetworkUpdate() const;
  9030. void Remove();
  9031. void RemoveAllChildren();
  9032. void RemoveAllTags();
  9033. void RemoveAttributeAnimation(const String&);
  9034. void RemoveChild(UIElement, uint = 0);
  9035. void RemoveChild(uint);
  9036. void RemoveInstanceDefault();
  9037. void RemoveObjectAnimation();
  9038. bool RemoveTag(const String&);
  9039. void ResetDeepEnabled();
  9040. void ResetToDefault();
  9041. bool Save(File) const;
  9042. bool Save(VectorBuffer&) const;
  9043. bool SaveJSON(JSONValue&) const;
  9044. bool SaveXML(File, const String& = "\t");
  9045. bool SaveXML(VectorBuffer&, const String& = "\t");
  9046. bool SaveXML(XMLElement&) const;
  9047. IntVector2 ScreenToElement(const IntVector2&);
  9048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9049. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9050. void SetAnimationTime(float);
  9051. bool SetAttribute(const String&, const Variant&);
  9052. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9053. void SetAttributeAnimationSpeed(const String&, float);
  9054. void SetAttributeAnimationTime(const String&, float);
  9055. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9056. void SetDeepEnabled(bool);
  9057. void SetEnabledRecursive(bool);
  9058. void SetFixedHeight(int);
  9059. void SetFixedSize(int, int);
  9060. void SetFixedWidth(int);
  9061. void SetInterceptNetworkUpdate(const String&, bool);
  9062. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9063. void SetMaxSize(int, int);
  9064. void SetMinSize(int, int);
  9065. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9066. void SetPosition(int, int);
  9067. void SetScrollBarsVisible(bool, bool);
  9068. void SetSize(int, int);
  9069. bool SetStyle(const String&, XMLFile = null);
  9070. bool SetStyle(const XMLElement&);
  9071. bool SetStyleAuto(XMLFile = null);
  9072. void SetViewPosition(int, int);
  9073. void UpdateLayout();
  9074. const Variant& GetVar(const StringHash&);
  9075. // Properties:
  9076. bool animationEnabled;
  9077. /* readonly */
  9078. Array<Variant> attributeDefaults;
  9079. /* readonly */
  9080. Array<AttributeInfo> attributeInfos;
  9081. Array<Variant> attributes;
  9082. bool autoDisableChildren;
  9083. float autoDisableThreshold;
  9084. bool bringToBack;
  9085. bool bringToFront;
  9086. /* readonly */
  9087. String category;
  9088. /* readonly */
  9089. IntVector2 childOffset;
  9090. /* readonly */
  9091. Array<UIElement> children;
  9092. IntRect clipBorder;
  9093. bool clipChildren;
  9094. /* writeonly */
  9095. Color color;
  9096. /* readonly */
  9097. bool colorGradient;
  9098. Array<Color> colors;
  9099. /* readonly */
  9100. IntRect combinedScreenRect;
  9101. UIElement contentElement;
  9102. XMLFile defaultStyle;
  9103. /* readonly */
  9104. float derivedOpacity;
  9105. /* readonly */
  9106. uint dragButtonCombo;
  9107. /* readonly */
  9108. int dragButtonCount;
  9109. uint dragDropMode;
  9110. bool editable;
  9111. bool elementEventSender;
  9112. bool enabled;
  9113. /* readonly */
  9114. bool enabledSelf;
  9115. /* readonly */
  9116. bool fixedHeight;
  9117. /* readonly */
  9118. bool fixedSize;
  9119. /* readonly */
  9120. bool fixedWidth;
  9121. bool focus;
  9122. FocusMode focusMode;
  9123. int height;
  9124. HorizontalAlignment horizontalAlignment;
  9125. /* readonly */
  9126. ScrollBar horizontalScrollBar;
  9127. /* readonly */
  9128. bool hovering;
  9129. int indent;
  9130. int indentSpacing;
  9131. /* readonly */
  9132. int indentWidth;
  9133. bool internal;
  9134. IntRect layoutBorder;
  9135. Vector2 layoutFlexScale;
  9136. LayoutMode layoutMode;
  9137. int layoutSpacing;
  9138. int maxHeight;
  9139. IntVector2 maxSize;
  9140. int maxWidth;
  9141. int minHeight;
  9142. IntVector2 minSize;
  9143. int minWidth;
  9144. String name;
  9145. /* readonly */
  9146. uint numAllChildren;
  9147. /* readonly */
  9148. uint numAttributes;
  9149. /* readonly */
  9150. uint numChildren;
  9151. ObjectAnimation objectAnimation;
  9152. float opacity;
  9153. float pageStep;
  9154. UIElement parent;
  9155. IntVector2 position;
  9156. int priority;
  9157. /* readonly */
  9158. int refs;
  9159. /* readonly */
  9160. UIElement root;
  9161. /* readonly */
  9162. IntVector2 screenPosition;
  9163. bool scrollBarsAutoVisible;
  9164. float scrollDeceleration;
  9165. /* readonly */
  9166. BorderImage scrollPanel;
  9167. float scrollSnapEpsilon;
  9168. float scrollStep;
  9169. bool selected;
  9170. IntVector2 size;
  9171. bool sortChildren;
  9172. String style;
  9173. /* readonly */
  9174. Array<String> tags;
  9175. bool temporary;
  9176. TraversalMode traversalMode;
  9177. /* readonly */
  9178. StringHash type;
  9179. /* readonly */
  9180. String typeName;
  9181. bool useDerivedOpacity;
  9182. /* readonly */
  9183. VariantMap vars;
  9184. VerticalAlignment verticalAlignment;
  9185. /* readonly */
  9186. ScrollBar verticalScrollBar;
  9187. IntVector2 viewPosition;
  9188. bool visible;
  9189. /* readonly */
  9190. bool visibleEffective;
  9191. /* readonly */
  9192. int weakRefs;
  9193. int width;
  9194. };
  9195. class Serializable
  9196. {
  9197. // Methods:
  9198. void ApplyAttributes();
  9199. Variant GetAttribute(const String&) const;
  9200. Variant GetAttributeDefault(const String&) const;
  9201. bool GetInterceptNetworkUpdate(const String&) const;
  9202. bool HasSubscribedToEvent(Object, const String&);
  9203. bool HasSubscribedToEvent(const String&);
  9204. bool Load(File, bool = false);
  9205. bool Load(VectorBuffer&, bool = false);
  9206. bool LoadJSON(const JSONValue&, bool = false);
  9207. bool LoadXML(const XMLElement&, bool = false);
  9208. void MarkNetworkUpdate() const;
  9209. void RemoveInstanceDefault();
  9210. void ResetToDefault();
  9211. bool Save(File) const;
  9212. bool Save(VectorBuffer&) const;
  9213. bool SaveJSON(JSONValue&) const;
  9214. bool SaveXML(XMLElement&) const;
  9215. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9216. bool SetAttribute(const String&, const Variant&);
  9217. void SetInterceptNetworkUpdate(const String&, bool);
  9218. // Properties:
  9219. /* readonly */
  9220. Array<Variant> attributeDefaults;
  9221. /* readonly */
  9222. Array<AttributeInfo> attributeInfos;
  9223. Array<Variant> attributes;
  9224. /* readonly */
  9225. String category;
  9226. /* readonly */
  9227. uint numAttributes;
  9228. /* readonly */
  9229. int refs;
  9230. bool temporary;
  9231. /* readonly */
  9232. StringHash type;
  9233. /* readonly */
  9234. String typeName;
  9235. /* readonly */
  9236. int weakRefs;
  9237. };
  9238. class Serializer
  9239. {
  9240. // Methods:
  9241. uint Write(Array<uint8>);
  9242. bool WriteBool(bool);
  9243. bool WriteBoundingBox(const BoundingBox&);
  9244. bool WriteByte(int8);
  9245. bool WriteColor(const Color&);
  9246. bool WriteDouble(double);
  9247. bool WriteFileID(const String&);
  9248. bool WriteFloat(float);
  9249. bool WriteInt(int);
  9250. bool WriteIntRect(const IntRect&);
  9251. bool WriteIntVector2(const IntVector2&);
  9252. bool WriteLine(const String&);
  9253. bool WriteMatrix3(const Matrix3&);
  9254. bool WriteMatrix3x4(const Matrix3x4&);
  9255. bool WriteMatrix4(const Matrix4&);
  9256. bool WriteNetID(uint);
  9257. bool WritePackedQuaternion(const Quaternion&);
  9258. bool WritePackedVector3(const Vector3&, float);
  9259. bool WriteQuaternion(const Quaternion&);
  9260. bool WriteShort(int16);
  9261. bool WriteString(const String&);
  9262. bool WriteStringHash(const StringHash&);
  9263. bool WriteUByte(uint8);
  9264. bool WriteUInt(uint);
  9265. bool WriteUShort(uint16);
  9266. bool WriteVLE(uint);
  9267. bool WriteVariant(const Variant&);
  9268. bool WriteVariantMap(const VariantMap&);
  9269. bool WriteVector2(const Vector2&);
  9270. bool WriteVector3(const Vector3&);
  9271. bool WriteVector4(const Vector4&);
  9272. bool WriteVectorBuffer(const VectorBuffer&);
  9273. };
  9274. class Skeleton
  9275. {
  9276. // Methods:
  9277. Bone GetBone(const String&) const;
  9278. void Reset();
  9279. // Properties:
  9280. /* readonly */
  9281. Array<Bone> bones;
  9282. /* readonly */
  9283. uint numBones;
  9284. /* readonly */
  9285. Bone rootBone;
  9286. };
  9287. class Skybox
  9288. {
  9289. // Methods:
  9290. void ApplyAttributes();
  9291. void ApplyMaterialList(const String& = String ( ));
  9292. void DrawDebugGeometry(DebugRenderer, bool);
  9293. Variant GetAttribute(const String&) const;
  9294. ValueAnimation GetAttributeAnimation(const String&) const;
  9295. float GetAttributeAnimationSpeed(const String&) const;
  9296. float GetAttributeAnimationTime(const String&) const;
  9297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9298. Variant GetAttributeDefault(const String&) const;
  9299. bool GetInterceptNetworkUpdate(const String&) const;
  9300. bool HasSubscribedToEvent(Object, const String&);
  9301. bool HasSubscribedToEvent(const String&);
  9302. bool IsInView(Camera) const;
  9303. bool Load(File, bool = false);
  9304. bool Load(VectorBuffer&, bool = false);
  9305. bool LoadJSON(const JSONValue&, bool = false);
  9306. bool LoadXML(const XMLElement&, bool = false);
  9307. void MarkNetworkUpdate() const;
  9308. void Remove();
  9309. void RemoveAttributeAnimation(const String&);
  9310. void RemoveInstanceDefault();
  9311. void RemoveObjectAnimation();
  9312. void ResetToDefault();
  9313. bool Save(File) const;
  9314. bool Save(VectorBuffer&) const;
  9315. bool SaveJSON(JSONValue&) const;
  9316. bool SaveXML(XMLElement&) const;
  9317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9318. void SetAnimationTime(float);
  9319. bool SetAttribute(const String&, const Variant&);
  9320. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9321. void SetAttributeAnimationSpeed(const String&, float);
  9322. void SetAttributeAnimationTime(const String&, float);
  9323. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9324. void SetInterceptNetworkUpdate(const String&, bool);
  9325. // Properties:
  9326. bool animationEnabled;
  9327. /* readonly */
  9328. Array<Variant> attributeDefaults;
  9329. /* readonly */
  9330. Array<AttributeInfo> attributeInfos;
  9331. Array<Variant> attributes;
  9332. /* readonly */
  9333. BoundingBox boundingBox;
  9334. bool castShadows;
  9335. /* readonly */
  9336. String category;
  9337. float drawDistance;
  9338. bool enabled;
  9339. /* readonly */
  9340. bool enabledEffective;
  9341. /* readonly */
  9342. uint id;
  9343. /* readonly */
  9344. bool inView;
  9345. uint lightMask;
  9346. float lodBias;
  9347. /* writeonly */
  9348. Material material;
  9349. Array<Material> materials;
  9350. uint maxLights;
  9351. Model model;
  9352. /* readonly */
  9353. Node node;
  9354. /* readonly */
  9355. uint numAttributes;
  9356. /* readonly */
  9357. uint numGeometries;
  9358. ObjectAnimation objectAnimation;
  9359. bool occludee;
  9360. bool occluder;
  9361. /* readonly */
  9362. int refs;
  9363. float shadowDistance;
  9364. uint shadowMask;
  9365. bool temporary;
  9366. /* readonly */
  9367. StringHash type;
  9368. /* readonly */
  9369. String typeName;
  9370. uint viewMask;
  9371. /* readonly */
  9372. int weakRefs;
  9373. /* readonly */
  9374. BoundingBox worldBoundingBox;
  9375. /* readonly */
  9376. Zone zone;
  9377. uint zoneMask;
  9378. };
  9379. class Slider
  9380. {
  9381. // Methods:
  9382. void AddChild(UIElement);
  9383. void AddTag(const String&);
  9384. void AddTags(const String&, int8 = ';');
  9385. void ApplyAttributes();
  9386. void BringToFront();
  9387. void ChangeValue(float);
  9388. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9389. void DisableLayoutUpdate();
  9390. IntVector2 ElementToScreen(const IntVector2&);
  9391. void EnableLayoutUpdate();
  9392. uint FindChild(UIElement) const;
  9393. Variant GetAttribute(const String&) const;
  9394. ValueAnimation GetAttributeAnimation(const String&) const;
  9395. float GetAttributeAnimationSpeed(const String&) const;
  9396. float GetAttributeAnimationTime(const String&) const;
  9397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9398. Variant GetAttributeDefault(const String&) const;
  9399. UIElement GetChild(const String&, bool = false) const;
  9400. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9401. Array<UIElement> GetChildren(bool = false) const;
  9402. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9403. UIElement GetElementEventSender() const;
  9404. bool GetInterceptNetworkUpdate(const String&) const;
  9405. uint GetNumChildren(bool) const;
  9406. bool HasSubscribedToEvent(Object, const String&);
  9407. bool HasSubscribedToEvent(const String&);
  9408. bool HasTag(const String&) const;
  9409. void InsertChild(uint, UIElement);
  9410. bool IsInside(IntVector2, bool);
  9411. bool IsInsideCombined(IntVector2, bool);
  9412. bool Load(File, bool = false);
  9413. bool Load(VectorBuffer&, bool = false);
  9414. bool LoadChildXML(XMLFile, XMLFile = null);
  9415. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9416. bool LoadJSON(const JSONValue&, bool = false);
  9417. bool LoadXML(File);
  9418. bool LoadXML(VectorBuffer&);
  9419. bool LoadXML(XMLFile, XMLFile);
  9420. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9421. bool LoadXML(const XMLElement&, bool = false);
  9422. void MarkNetworkUpdate() const;
  9423. void Remove();
  9424. void RemoveAllChildren();
  9425. void RemoveAllTags();
  9426. void RemoveAttributeAnimation(const String&);
  9427. void RemoveChild(UIElement, uint = 0);
  9428. void RemoveChild(uint);
  9429. void RemoveInstanceDefault();
  9430. void RemoveObjectAnimation();
  9431. bool RemoveTag(const String&);
  9432. void ResetDeepEnabled();
  9433. void ResetToDefault();
  9434. bool Save(File) const;
  9435. bool Save(VectorBuffer&) const;
  9436. bool SaveJSON(JSONValue&) const;
  9437. bool SaveXML(File, const String& = "\t");
  9438. bool SaveXML(VectorBuffer&, const String& = "\t");
  9439. bool SaveXML(XMLElement&) const;
  9440. IntVector2 ScreenToElement(const IntVector2&);
  9441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9442. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9443. void SetAnimationTime(float);
  9444. bool SetAttribute(const String&, const Variant&);
  9445. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9446. void SetAttributeAnimationSpeed(const String&, float);
  9447. void SetAttributeAnimationTime(const String&, float);
  9448. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9449. void SetDeepEnabled(bool);
  9450. void SetEnabledRecursive(bool);
  9451. void SetFixedHeight(int);
  9452. void SetFixedSize(int, int);
  9453. void SetFixedWidth(int);
  9454. void SetFullImageRect();
  9455. void SetHoverOffset(int, int);
  9456. void SetInterceptNetworkUpdate(const String&, bool);
  9457. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9458. void SetMaxSize(int, int);
  9459. void SetMinSize(int, int);
  9460. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9461. void SetPosition(int, int);
  9462. void SetSize(int, int);
  9463. bool SetStyle(const String&, XMLFile = null);
  9464. bool SetStyle(const XMLElement&);
  9465. bool SetStyleAuto(XMLFile = null);
  9466. void UpdateLayout();
  9467. const Variant& GetVar(const StringHash&);
  9468. // Properties:
  9469. bool animationEnabled;
  9470. /* readonly */
  9471. Array<Variant> attributeDefaults;
  9472. /* readonly */
  9473. Array<AttributeInfo> attributeInfos;
  9474. Array<Variant> attributes;
  9475. BlendMode blendMode;
  9476. IntRect border;
  9477. bool bringToBack;
  9478. bool bringToFront;
  9479. /* readonly */
  9480. String category;
  9481. /* readonly */
  9482. IntVector2 childOffset;
  9483. /* readonly */
  9484. Array<UIElement> children;
  9485. IntRect clipBorder;
  9486. bool clipChildren;
  9487. /* writeonly */
  9488. Color color;
  9489. /* readonly */
  9490. bool colorGradient;
  9491. Array<Color> colors;
  9492. /* readonly */
  9493. IntRect combinedScreenRect;
  9494. XMLFile defaultStyle;
  9495. /* readonly */
  9496. float derivedOpacity;
  9497. /* readonly */
  9498. uint dragButtonCombo;
  9499. /* readonly */
  9500. int dragButtonCount;
  9501. uint dragDropMode;
  9502. bool editable;
  9503. bool elementEventSender;
  9504. bool enabled;
  9505. /* readonly */
  9506. bool enabledSelf;
  9507. /* readonly */
  9508. bool fixedHeight;
  9509. /* readonly */
  9510. bool fixedSize;
  9511. /* readonly */
  9512. bool fixedWidth;
  9513. bool focus;
  9514. FocusMode focusMode;
  9515. int height;
  9516. HorizontalAlignment horizontalAlignment;
  9517. IntVector2 hoverOffset;
  9518. /* readonly */
  9519. bool hovering;
  9520. IntRect imageBorder;
  9521. IntRect imageRect;
  9522. int indent;
  9523. int indentSpacing;
  9524. /* readonly */
  9525. int indentWidth;
  9526. bool internal;
  9527. /* readonly */
  9528. BorderImage knob;
  9529. IntRect layoutBorder;
  9530. Vector2 layoutFlexScale;
  9531. LayoutMode layoutMode;
  9532. int layoutSpacing;
  9533. int maxHeight;
  9534. IntVector2 maxSize;
  9535. int maxWidth;
  9536. int minHeight;
  9537. IntVector2 minSize;
  9538. int minWidth;
  9539. String name;
  9540. /* readonly */
  9541. uint numAllChildren;
  9542. /* readonly */
  9543. uint numAttributes;
  9544. /* readonly */
  9545. uint numChildren;
  9546. ObjectAnimation objectAnimation;
  9547. float opacity;
  9548. Orientation orientation;
  9549. UIElement parent;
  9550. IntVector2 position;
  9551. int priority;
  9552. float range;
  9553. /* readonly */
  9554. int refs;
  9555. float repeatRate;
  9556. /* readonly */
  9557. UIElement root;
  9558. /* readonly */
  9559. IntVector2 screenPosition;
  9560. bool selected;
  9561. IntVector2 size;
  9562. bool sortChildren;
  9563. String style;
  9564. /* readonly */
  9565. Array<String> tags;
  9566. bool temporary;
  9567. Texture texture;
  9568. bool tiled;
  9569. TraversalMode traversalMode;
  9570. /* readonly */
  9571. StringHash type;
  9572. /* readonly */
  9573. String typeName;
  9574. bool useDerivedOpacity;
  9575. float value;
  9576. /* readonly */
  9577. VariantMap vars;
  9578. VerticalAlignment verticalAlignment;
  9579. bool visible;
  9580. /* readonly */
  9581. bool visibleEffective;
  9582. /* readonly */
  9583. int weakRefs;
  9584. int width;
  9585. };
  9586. class SmoothedTransform
  9587. {
  9588. // Methods:
  9589. void ApplyAttributes();
  9590. void DrawDebugGeometry(DebugRenderer, bool);
  9591. Variant GetAttribute(const String&) const;
  9592. ValueAnimation GetAttributeAnimation(const String&) const;
  9593. float GetAttributeAnimationSpeed(const String&) const;
  9594. float GetAttributeAnimationTime(const String&) const;
  9595. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9596. Variant GetAttributeDefault(const String&) const;
  9597. bool GetInterceptNetworkUpdate(const String&) const;
  9598. bool HasSubscribedToEvent(Object, const String&);
  9599. bool HasSubscribedToEvent(const String&);
  9600. bool Load(File, bool = false);
  9601. bool Load(VectorBuffer&, bool = false);
  9602. bool LoadJSON(const JSONValue&, bool = false);
  9603. bool LoadXML(const XMLElement&, bool = false);
  9604. void MarkNetworkUpdate() const;
  9605. void Remove();
  9606. void RemoveAttributeAnimation(const String&);
  9607. void RemoveInstanceDefault();
  9608. void RemoveObjectAnimation();
  9609. void ResetToDefault();
  9610. bool Save(File) const;
  9611. bool Save(VectorBuffer&) const;
  9612. bool SaveJSON(JSONValue&) const;
  9613. bool SaveXML(XMLElement&) const;
  9614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9615. void SetAnimationTime(float);
  9616. bool SetAttribute(const String&, const Variant&);
  9617. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9618. void SetAttributeAnimationSpeed(const String&, float);
  9619. void SetAttributeAnimationTime(const String&, float);
  9620. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9621. void SetInterceptNetworkUpdate(const String&, bool);
  9622. void Update(float, float);
  9623. // Properties:
  9624. bool animationEnabled;
  9625. /* readonly */
  9626. Array<Variant> attributeDefaults;
  9627. /* readonly */
  9628. Array<AttributeInfo> attributeInfos;
  9629. Array<Variant> attributes;
  9630. /* readonly */
  9631. String category;
  9632. bool enabled;
  9633. /* readonly */
  9634. bool enabledEffective;
  9635. /* readonly */
  9636. uint id;
  9637. /* readonly */
  9638. bool inProgress;
  9639. /* readonly */
  9640. Node node;
  9641. /* readonly */
  9642. uint numAttributes;
  9643. ObjectAnimation objectAnimation;
  9644. /* readonly */
  9645. int refs;
  9646. Vector3 targetPosition;
  9647. Quaternion targetRotation;
  9648. Vector3 targetWorldPosition;
  9649. Quaternion targetWorldRotation;
  9650. bool temporary;
  9651. /* readonly */
  9652. StringHash type;
  9653. /* readonly */
  9654. String typeName;
  9655. /* readonly */
  9656. int weakRefs;
  9657. };
  9658. class Sound
  9659. {
  9660. // Methods:
  9661. bool HasSubscribedToEvent(Object, const String&);
  9662. bool HasSubscribedToEvent(const String&);
  9663. bool Load(File);
  9664. bool Load(VectorBuffer&);
  9665. bool Save(File) const;
  9666. bool Save(VectorBuffer&) const;
  9667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9668. // Properties:
  9669. /* readonly */
  9670. String category;
  9671. /* readonly */
  9672. bool compressed;
  9673. /* readonly */
  9674. float frequency;
  9675. /* readonly */
  9676. float length;
  9677. bool looped;
  9678. /* readonly */
  9679. uint memoryUse;
  9680. String name;
  9681. /* readonly */
  9682. int refs;
  9683. /* readonly */
  9684. uint sampleSize;
  9685. /* readonly */
  9686. bool sixteenBit;
  9687. /* readonly */
  9688. bool stereo;
  9689. /* readonly */
  9690. StringHash type;
  9691. /* readonly */
  9692. String typeName;
  9693. /* readonly */
  9694. uint useTimer;
  9695. /* readonly */
  9696. int weakRefs;
  9697. };
  9698. class SoundListener
  9699. {
  9700. // Methods:
  9701. void ApplyAttributes();
  9702. void DrawDebugGeometry(DebugRenderer, bool);
  9703. Variant GetAttribute(const String&) const;
  9704. ValueAnimation GetAttributeAnimation(const String&) const;
  9705. float GetAttributeAnimationSpeed(const String&) const;
  9706. float GetAttributeAnimationTime(const String&) const;
  9707. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9708. Variant GetAttributeDefault(const String&) const;
  9709. bool GetInterceptNetworkUpdate(const String&) const;
  9710. bool HasSubscribedToEvent(Object, const String&);
  9711. bool HasSubscribedToEvent(const String&);
  9712. bool Load(File, bool = false);
  9713. bool Load(VectorBuffer&, bool = false);
  9714. bool LoadJSON(const JSONValue&, bool = false);
  9715. bool LoadXML(const XMLElement&, bool = false);
  9716. void MarkNetworkUpdate() const;
  9717. void Remove();
  9718. void RemoveAttributeAnimation(const String&);
  9719. void RemoveInstanceDefault();
  9720. void RemoveObjectAnimation();
  9721. void ResetToDefault();
  9722. bool Save(File) const;
  9723. bool Save(VectorBuffer&) const;
  9724. bool SaveJSON(JSONValue&) const;
  9725. bool SaveXML(XMLElement&) const;
  9726. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9727. void SetAnimationTime(float);
  9728. bool SetAttribute(const String&, const Variant&);
  9729. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9730. void SetAttributeAnimationSpeed(const String&, float);
  9731. void SetAttributeAnimationTime(const String&, float);
  9732. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9733. void SetInterceptNetworkUpdate(const String&, bool);
  9734. // Properties:
  9735. bool animationEnabled;
  9736. /* readonly */
  9737. Array<Variant> attributeDefaults;
  9738. /* readonly */
  9739. Array<AttributeInfo> attributeInfos;
  9740. Array<Variant> attributes;
  9741. /* readonly */
  9742. String category;
  9743. bool enabled;
  9744. /* readonly */
  9745. bool enabledEffective;
  9746. /* readonly */
  9747. uint id;
  9748. /* readonly */
  9749. Node node;
  9750. /* readonly */
  9751. uint numAttributes;
  9752. ObjectAnimation objectAnimation;
  9753. /* readonly */
  9754. int refs;
  9755. bool temporary;
  9756. /* readonly */
  9757. StringHash type;
  9758. /* readonly */
  9759. String typeName;
  9760. /* readonly */
  9761. int weakRefs;
  9762. };
  9763. class SoundSource
  9764. {
  9765. // Methods:
  9766. void ApplyAttributes();
  9767. void DrawDebugGeometry(DebugRenderer, bool);
  9768. Variant GetAttribute(const String&) const;
  9769. ValueAnimation GetAttributeAnimation(const String&) const;
  9770. float GetAttributeAnimationSpeed(const String&) const;
  9771. float GetAttributeAnimationTime(const String&) const;
  9772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9773. Variant GetAttributeDefault(const String&) const;
  9774. bool GetInterceptNetworkUpdate(const String&) const;
  9775. bool HasSubscribedToEvent(Object, const String&);
  9776. bool HasSubscribedToEvent(const String&);
  9777. bool Load(File, bool = false);
  9778. bool Load(VectorBuffer&, bool = false);
  9779. bool LoadJSON(const JSONValue&, bool = false);
  9780. bool LoadXML(const XMLElement&, bool = false);
  9781. void MarkNetworkUpdate() const;
  9782. void Play(Sound);
  9783. void Play(Sound, float);
  9784. void Play(Sound, float, float);
  9785. void Play(Sound, float, float, float);
  9786. void Remove();
  9787. void RemoveAttributeAnimation(const String&);
  9788. void RemoveInstanceDefault();
  9789. void RemoveObjectAnimation();
  9790. void ResetToDefault();
  9791. bool Save(File) const;
  9792. bool Save(VectorBuffer&) const;
  9793. bool SaveJSON(JSONValue&) const;
  9794. bool SaveXML(XMLElement&) const;
  9795. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9796. void SetAnimationTime(float);
  9797. bool SetAttribute(const String&, const Variant&);
  9798. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9799. void SetAttributeAnimationSpeed(const String&, float);
  9800. void SetAttributeAnimationTime(const String&, float);
  9801. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9802. void SetInterceptNetworkUpdate(const String&, bool);
  9803. void Stop();
  9804. // Properties:
  9805. bool animationEnabled;
  9806. /* readonly */
  9807. float attenuation;
  9808. /* readonly */
  9809. Array<Variant> attributeDefaults;
  9810. /* readonly */
  9811. Array<AttributeInfo> attributeInfos;
  9812. Array<Variant> attributes;
  9813. bool autoRemove;
  9814. /* readonly */
  9815. String category;
  9816. bool enabled;
  9817. /* readonly */
  9818. bool enabledEffective;
  9819. float frequency;
  9820. float gain;
  9821. /* readonly */
  9822. uint id;
  9823. /* readonly */
  9824. Node node;
  9825. /* readonly */
  9826. uint numAttributes;
  9827. ObjectAnimation objectAnimation;
  9828. float panning;
  9829. /* readonly */
  9830. bool playing;
  9831. /* readonly */
  9832. int refs;
  9833. /* readonly */
  9834. Sound sound;
  9835. String soundType;
  9836. bool temporary;
  9837. /* readonly */
  9838. float timePosition;
  9839. /* readonly */
  9840. StringHash type;
  9841. /* readonly */
  9842. String typeName;
  9843. /* readonly */
  9844. int weakRefs;
  9845. };
  9846. class SoundSource3D
  9847. {
  9848. // Methods:
  9849. void ApplyAttributes();
  9850. void DrawDebugGeometry(DebugRenderer, bool);
  9851. Variant GetAttribute(const String&) const;
  9852. ValueAnimation GetAttributeAnimation(const String&) const;
  9853. float GetAttributeAnimationSpeed(const String&) const;
  9854. float GetAttributeAnimationTime(const String&) const;
  9855. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9856. Variant GetAttributeDefault(const String&) const;
  9857. bool GetInterceptNetworkUpdate(const String&) const;
  9858. bool HasSubscribedToEvent(Object, const String&);
  9859. bool HasSubscribedToEvent(const String&);
  9860. bool Load(File, bool = false);
  9861. bool Load(VectorBuffer&, bool = false);
  9862. bool LoadJSON(const JSONValue&, bool = false);
  9863. bool LoadXML(const XMLElement&, bool = false);
  9864. void MarkNetworkUpdate() const;
  9865. void Play(Sound);
  9866. void Play(Sound, float);
  9867. void Play(Sound, float, float);
  9868. void Play(Sound, float, float, float);
  9869. void Remove();
  9870. void RemoveAttributeAnimation(const String&);
  9871. void RemoveInstanceDefault();
  9872. void RemoveObjectAnimation();
  9873. void ResetToDefault();
  9874. bool Save(File) const;
  9875. bool Save(VectorBuffer&) const;
  9876. bool SaveJSON(JSONValue&) const;
  9877. bool SaveXML(XMLElement&) const;
  9878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9879. void SetAngleAttenuation(float, float);
  9880. void SetAnimationTime(float);
  9881. bool SetAttribute(const String&, const Variant&);
  9882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9883. void SetAttributeAnimationSpeed(const String&, float);
  9884. void SetAttributeAnimationTime(const String&, float);
  9885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9886. void SetDistanceAttenuation(float, float, float);
  9887. void SetInterceptNetworkUpdate(const String&, bool);
  9888. void Stop();
  9889. // Properties:
  9890. bool animationEnabled;
  9891. /* readonly */
  9892. float attenuation;
  9893. /* readonly */
  9894. Array<Variant> attributeDefaults;
  9895. /* readonly */
  9896. Array<AttributeInfo> attributeInfos;
  9897. Array<Variant> attributes;
  9898. bool autoRemove;
  9899. /* readonly */
  9900. String category;
  9901. bool enabled;
  9902. /* readonly */
  9903. bool enabledEffective;
  9904. float farDistance;
  9905. float frequency;
  9906. float gain;
  9907. /* readonly */
  9908. uint id;
  9909. float innerAngle;
  9910. float nearDistance;
  9911. /* readonly */
  9912. Node node;
  9913. /* readonly */
  9914. uint numAttributes;
  9915. ObjectAnimation objectAnimation;
  9916. float outerAngle;
  9917. float panning;
  9918. /* readonly */
  9919. bool playing;
  9920. /* readonly */
  9921. int refs;
  9922. float rolloffFactor;
  9923. /* readonly */
  9924. Sound sound;
  9925. String soundType;
  9926. bool temporary;
  9927. /* readonly */
  9928. float timePosition;
  9929. /* readonly */
  9930. StringHash type;
  9931. /* readonly */
  9932. String typeName;
  9933. /* readonly */
  9934. int weakRefs;
  9935. };
  9936. class Sphere
  9937. {
  9938. // Methods:
  9939. void Clear();
  9940. void Define(const BoundingBox&);
  9941. void Define(const Frustum&);
  9942. void Define(const Polyhedron&);
  9943. void Define(const Sphere&);
  9944. void Define(const Vector3&, float);
  9945. bool Defined() const;
  9946. float Distance(const Vector3&) const;
  9947. Intersection IsInside(const BoundingBox&) const;
  9948. Intersection IsInside(const Sphere&) const;
  9949. Intersection IsInside(const Vector3&) const;
  9950. Intersection IsInsideFast(const BoundingBox&) const;
  9951. Intersection IsInsideFast(const Sphere&) const;
  9952. void Merge(const BoundingBox&);
  9953. void Merge(const Frustum&);
  9954. void Merge(const Sphere&);
  9955. void Merge(const Vector3&);
  9956. // Properties:
  9957. Vector3 center;
  9958. float radius;
  9959. };
  9960. class Spline
  9961. {
  9962. // Methods:
  9963. void AddKnot(const Variant&);
  9964. void AddKnot(const Variant&, uint);
  9965. void Clear();
  9966. Variant GetPoint(float);
  9967. void RemoveKnot();
  9968. void RemoveKnot(uint);
  9969. // Properties:
  9970. InterpolationMode interpolationMode;
  9971. Array<Variant> knot;
  9972. Array<Variant> knots;
  9973. };
  9974. class SplinePath
  9975. {
  9976. // Methods:
  9977. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9978. void ApplyAttributes();
  9979. void ClearControlPoints();
  9980. void DrawDebugGeometry(DebugRenderer, bool);
  9981. Variant GetAttribute(const String&) const;
  9982. ValueAnimation GetAttributeAnimation(const String&) const;
  9983. float GetAttributeAnimationSpeed(const String&) const;
  9984. float GetAttributeAnimationTime(const String&) const;
  9985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9986. Variant GetAttributeDefault(const String&) const;
  9987. bool GetInterceptNetworkUpdate(const String&) const;
  9988. Vector3 GetPoint(float) const;
  9989. Vector3 GetPosition() const;
  9990. bool HasSubscribedToEvent(Object, const String&);
  9991. bool HasSubscribedToEvent(const String&);
  9992. bool Load(File, bool = false);
  9993. bool Load(VectorBuffer&, bool = false);
  9994. bool LoadJSON(const JSONValue&, bool = false);
  9995. bool LoadXML(const XMLElement&, bool = false);
  9996. void MarkNetworkUpdate() const;
  9997. void Move(float);
  9998. void Remove();
  9999. void RemoveAttributeAnimation(const String&);
  10000. void RemoveControlPoint(Node);
  10001. void RemoveInstanceDefault();
  10002. void RemoveObjectAnimation();
  10003. void Reset();
  10004. void ResetToDefault();
  10005. bool Save(File) const;
  10006. bool Save(VectorBuffer&) const;
  10007. bool SaveJSON(JSONValue&) const;
  10008. bool SaveXML(XMLElement&) const;
  10009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10010. void SetAnimationTime(float);
  10011. bool SetAttribute(const String&, const Variant&);
  10012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10013. void SetAttributeAnimationSpeed(const String&, float);
  10014. void SetAttributeAnimationTime(const String&, float);
  10015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10016. void SetInterceptNetworkUpdate(const String&, bool);
  10017. void SetPosition(float);
  10018. // Properties:
  10019. bool animationEnabled;
  10020. /* readonly */
  10021. Array<Variant> attributeDefaults;
  10022. /* readonly */
  10023. Array<AttributeInfo> attributeInfos;
  10024. Array<Variant> attributes;
  10025. /* readonly */
  10026. String category;
  10027. Node controlledNode;
  10028. bool enabled;
  10029. /* readonly */
  10030. bool enabledEffective;
  10031. /* readonly */
  10032. uint id;
  10033. InterpolationMode interpolationMode;
  10034. /* readonly */
  10035. bool isFinished;
  10036. /* readonly */
  10037. float length;
  10038. /* readonly */
  10039. Node node;
  10040. /* readonly */
  10041. uint numAttributes;
  10042. ObjectAnimation objectAnimation;
  10043. /* readonly */
  10044. int refs;
  10045. float speed;
  10046. bool temporary;
  10047. /* readonly */
  10048. StringHash type;
  10049. /* readonly */
  10050. String typeName;
  10051. /* readonly */
  10052. int weakRefs;
  10053. };
  10054. class Sprite
  10055. {
  10056. // Methods:
  10057. void AddChild(UIElement);
  10058. void AddTag(const String&);
  10059. void AddTags(const String&, int8 = ';');
  10060. void ApplyAttributes();
  10061. void BringToFront();
  10062. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10063. uint FindChild(UIElement) const;
  10064. Variant GetAttribute(const String&) const;
  10065. ValueAnimation GetAttributeAnimation(const String&) const;
  10066. float GetAttributeAnimationSpeed(const String&) const;
  10067. float GetAttributeAnimationTime(const String&) const;
  10068. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10069. Variant GetAttributeDefault(const String&) const;
  10070. UIElement GetChild(const String&, bool = false) const;
  10071. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10072. Array<UIElement> GetChildren(bool = false) const;
  10073. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10074. UIElement GetElementEventSender() const;
  10075. bool GetInterceptNetworkUpdate(const String&) const;
  10076. uint GetNumChildren(bool) const;
  10077. bool HasSubscribedToEvent(Object, const String&);
  10078. bool HasSubscribedToEvent(const String&);
  10079. bool HasTag(const String&) const;
  10080. void InsertChild(uint, UIElement);
  10081. bool Load(File, bool = false);
  10082. bool Load(VectorBuffer&, bool = false);
  10083. bool LoadChildXML(XMLFile, XMLFile = null);
  10084. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10085. bool LoadJSON(const JSONValue&, bool = false);
  10086. bool LoadXML(File);
  10087. bool LoadXML(VectorBuffer&);
  10088. bool LoadXML(XMLFile, XMLFile);
  10089. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10090. bool LoadXML(const XMLElement&, bool = false);
  10091. void MarkNetworkUpdate() const;
  10092. void Remove();
  10093. void RemoveAllChildren();
  10094. void RemoveAllTags();
  10095. void RemoveAttributeAnimation(const String&);
  10096. void RemoveChild(UIElement, uint = 0);
  10097. void RemoveChild(uint);
  10098. void RemoveInstanceDefault();
  10099. void RemoveObjectAnimation();
  10100. bool RemoveTag(const String&);
  10101. void ResetToDefault();
  10102. bool Save(File) const;
  10103. bool Save(VectorBuffer&) const;
  10104. bool SaveJSON(JSONValue&) const;
  10105. bool SaveXML(File, const String& = "\t");
  10106. bool SaveXML(VectorBuffer&, const String& = "\t");
  10107. bool SaveXML(XMLElement&) const;
  10108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10109. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10110. void SetAnimationTime(float);
  10111. bool SetAttribute(const String&, const Variant&);
  10112. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10113. void SetAttributeAnimationSpeed(const String&, float);
  10114. void SetAttributeAnimationTime(const String&, float);
  10115. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10116. void SetFixedHeight(int);
  10117. void SetFixedSize(int, int);
  10118. void SetFixedWidth(int);
  10119. void SetFullImageRect();
  10120. void SetHotSpot(int, int);
  10121. void SetInterceptNetworkUpdate(const String&, bool);
  10122. void SetMaxSize(int, int);
  10123. void SetMinSize(int, int);
  10124. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10125. void SetPosition(float, float);
  10126. void SetScale(float);
  10127. void SetScale(float, float);
  10128. void SetSize(int, int);
  10129. bool SetStyle(const String&, XMLFile = null);
  10130. bool SetStyle(const XMLElement&);
  10131. bool SetStyleAuto(XMLFile = null);
  10132. const Variant& GetVar(const StringHash&);
  10133. // Properties:
  10134. bool animationEnabled;
  10135. /* readonly */
  10136. Array<Variant> attributeDefaults;
  10137. /* readonly */
  10138. Array<AttributeInfo> attributeInfos;
  10139. Array<Variant> attributes;
  10140. BlendMode blendMode;
  10141. bool bringToBack;
  10142. bool bringToFront;
  10143. /* readonly */
  10144. String category;
  10145. /* readonly */
  10146. Array<UIElement> children;
  10147. /* writeonly */
  10148. Color color;
  10149. /* readonly */
  10150. bool colorGradient;
  10151. Array<Color> colors;
  10152. XMLFile defaultStyle;
  10153. /* readonly */
  10154. float derivedOpacity;
  10155. /* readonly */
  10156. uint dragButtonCombo;
  10157. /* readonly */
  10158. int dragButtonCount;
  10159. bool elementEventSender;
  10160. int height;
  10161. HorizontalAlignment horizontalAlignment;
  10162. IntVector2 hotSpot;
  10163. IntRect imageRect;
  10164. String name;
  10165. /* readonly */
  10166. uint numAllChildren;
  10167. /* readonly */
  10168. uint numAttributes;
  10169. /* readonly */
  10170. uint numChildren;
  10171. ObjectAnimation objectAnimation;
  10172. float opacity;
  10173. UIElement parent;
  10174. Vector2 position;
  10175. int priority;
  10176. /* readonly */
  10177. int refs;
  10178. /* readonly */
  10179. UIElement root;
  10180. float rotation;
  10181. Vector2 scale;
  10182. IntVector2 size;
  10183. bool sortChildren;
  10184. String style;
  10185. /* readonly */
  10186. Array<String> tags;
  10187. bool temporary;
  10188. Texture texture;
  10189. /* readonly */
  10190. StringHash type;
  10191. /* readonly */
  10192. String typeName;
  10193. bool useDerivedOpacity;
  10194. /* readonly */
  10195. VariantMap vars;
  10196. VerticalAlignment verticalAlignment;
  10197. bool visible;
  10198. /* readonly */
  10199. bool visibleEffective;
  10200. /* readonly */
  10201. int weakRefs;
  10202. int width;
  10203. };
  10204. class Sprite2D
  10205. {
  10206. // Methods:
  10207. bool HasSubscribedToEvent(Object, const String&);
  10208. bool HasSubscribedToEvent(const String&);
  10209. bool Load(File);
  10210. bool Load(VectorBuffer&);
  10211. bool Save(File) const;
  10212. bool Save(VectorBuffer&) const;
  10213. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10214. // Properties:
  10215. /* readonly */
  10216. String category;
  10217. Vector2 hotSpot;
  10218. /* readonly */
  10219. uint memoryUse;
  10220. String name;
  10221. IntVector2 offset;
  10222. IntRect rectangle;
  10223. /* readonly */
  10224. int refs;
  10225. Texture2D texture;
  10226. float textureEdgeOffset;
  10227. /* readonly */
  10228. StringHash type;
  10229. /* readonly */
  10230. String typeName;
  10231. /* readonly */
  10232. uint useTimer;
  10233. /* readonly */
  10234. int weakRefs;
  10235. };
  10236. class SpriteSheet2D
  10237. {
  10238. // Methods:
  10239. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10240. Sprite2D GetSprite(const String&);
  10241. bool HasSubscribedToEvent(Object, const String&);
  10242. bool HasSubscribedToEvent(const String&);
  10243. bool Load(File);
  10244. bool Load(VectorBuffer&);
  10245. bool Save(File) const;
  10246. bool Save(VectorBuffer&) const;
  10247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10248. // Properties:
  10249. /* readonly */
  10250. String category;
  10251. /* readonly */
  10252. uint memoryUse;
  10253. String name;
  10254. /* readonly */
  10255. int refs;
  10256. Texture2D texture;
  10257. /* readonly */
  10258. StringHash type;
  10259. /* readonly */
  10260. String typeName;
  10261. /* readonly */
  10262. uint useTimer;
  10263. /* readonly */
  10264. int weakRefs;
  10265. };
  10266. class StaticModel
  10267. {
  10268. // Methods:
  10269. void ApplyAttributes();
  10270. void ApplyMaterialList(const String& = String ( ));
  10271. void DrawDebugGeometry(DebugRenderer, bool);
  10272. Variant GetAttribute(const String&) const;
  10273. ValueAnimation GetAttributeAnimation(const String&) const;
  10274. float GetAttributeAnimationSpeed(const String&) const;
  10275. float GetAttributeAnimationTime(const String&) const;
  10276. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10277. Variant GetAttributeDefault(const String&) const;
  10278. bool GetInterceptNetworkUpdate(const String&) const;
  10279. bool HasSubscribedToEvent(Object, const String&);
  10280. bool HasSubscribedToEvent(const String&);
  10281. bool IsInView(Camera) const;
  10282. bool IsInside(const Vector3&) const;
  10283. bool IsInsideLocal(const Vector3&) const;
  10284. bool Load(File, bool = false);
  10285. bool Load(VectorBuffer&, bool = false);
  10286. bool LoadJSON(const JSONValue&, bool = false);
  10287. bool LoadXML(const XMLElement&, bool = false);
  10288. void MarkNetworkUpdate() const;
  10289. void Remove();
  10290. void RemoveAttributeAnimation(const String&);
  10291. void RemoveInstanceDefault();
  10292. void RemoveObjectAnimation();
  10293. void ResetToDefault();
  10294. bool Save(File) const;
  10295. bool Save(VectorBuffer&) const;
  10296. bool SaveJSON(JSONValue&) const;
  10297. bool SaveXML(XMLElement&) const;
  10298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10299. void SetAnimationTime(float);
  10300. bool SetAttribute(const String&, const Variant&);
  10301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10302. void SetAttributeAnimationSpeed(const String&, float);
  10303. void SetAttributeAnimationTime(const String&, float);
  10304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10305. void SetInterceptNetworkUpdate(const String&, bool);
  10306. // Properties:
  10307. bool animationEnabled;
  10308. /* readonly */
  10309. Array<Variant> attributeDefaults;
  10310. /* readonly */
  10311. Array<AttributeInfo> attributeInfos;
  10312. Array<Variant> attributes;
  10313. /* readonly */
  10314. BoundingBox boundingBox;
  10315. bool castShadows;
  10316. /* readonly */
  10317. String category;
  10318. float drawDistance;
  10319. bool enabled;
  10320. /* readonly */
  10321. bool enabledEffective;
  10322. /* readonly */
  10323. uint id;
  10324. /* readonly */
  10325. bool inView;
  10326. uint lightMask;
  10327. float lodBias;
  10328. /* writeonly */
  10329. Material material;
  10330. Array<Material> materials;
  10331. uint maxLights;
  10332. Model model;
  10333. /* readonly */
  10334. Node node;
  10335. /* readonly */
  10336. uint numAttributes;
  10337. /* readonly */
  10338. uint numGeometries;
  10339. ObjectAnimation objectAnimation;
  10340. bool occludee;
  10341. bool occluder;
  10342. uint occlusionLodLevel;
  10343. /* readonly */
  10344. int refs;
  10345. float shadowDistance;
  10346. uint shadowMask;
  10347. bool temporary;
  10348. /* readonly */
  10349. StringHash type;
  10350. /* readonly */
  10351. String typeName;
  10352. uint viewMask;
  10353. /* readonly */
  10354. int weakRefs;
  10355. /* readonly */
  10356. BoundingBox worldBoundingBox;
  10357. uint zoneMask;
  10358. };
  10359. class StaticModelGroup
  10360. {
  10361. // Methods:
  10362. void AddInstanceNode(Node);
  10363. void ApplyAttributes();
  10364. void ApplyMaterialList(const String& = String ( ));
  10365. void DrawDebugGeometry(DebugRenderer, bool);
  10366. Variant GetAttribute(const String&) const;
  10367. ValueAnimation GetAttributeAnimation(const String&) const;
  10368. float GetAttributeAnimationSpeed(const String&) const;
  10369. float GetAttributeAnimationTime(const String&) const;
  10370. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10371. Variant GetAttributeDefault(const String&) const;
  10372. bool GetInterceptNetworkUpdate(const String&) const;
  10373. bool HasSubscribedToEvent(Object, const String&);
  10374. bool HasSubscribedToEvent(const String&);
  10375. bool IsInView(Camera) const;
  10376. bool Load(File, bool = false);
  10377. bool Load(VectorBuffer&, bool = false);
  10378. bool LoadJSON(const JSONValue&, bool = false);
  10379. bool LoadXML(const XMLElement&, bool = false);
  10380. void MarkNetworkUpdate() const;
  10381. void Remove();
  10382. void RemoveAllInstanceNodes();
  10383. void RemoveAttributeAnimation(const String&);
  10384. void RemoveInstanceDefault();
  10385. void RemoveInstanceNode(Node);
  10386. void RemoveObjectAnimation();
  10387. void ResetToDefault();
  10388. bool Save(File) const;
  10389. bool Save(VectorBuffer&) const;
  10390. bool SaveJSON(JSONValue&) const;
  10391. bool SaveXML(XMLElement&) const;
  10392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10393. void SetAnimationTime(float);
  10394. bool SetAttribute(const String&, const Variant&);
  10395. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10396. void SetAttributeAnimationSpeed(const String&, float);
  10397. void SetAttributeAnimationTime(const String&, float);
  10398. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10399. void SetInterceptNetworkUpdate(const String&, bool);
  10400. // Properties:
  10401. bool animationEnabled;
  10402. /* readonly */
  10403. Array<Variant> attributeDefaults;
  10404. /* readonly */
  10405. Array<AttributeInfo> attributeInfos;
  10406. Array<Variant> attributes;
  10407. /* readonly */
  10408. BoundingBox boundingBox;
  10409. bool castShadows;
  10410. /* readonly */
  10411. String category;
  10412. float drawDistance;
  10413. bool enabled;
  10414. /* readonly */
  10415. bool enabledEffective;
  10416. /* readonly */
  10417. uint id;
  10418. /* readonly */
  10419. bool inView;
  10420. /* readonly */
  10421. Array<Node> instanceNodes;
  10422. uint lightMask;
  10423. float lodBias;
  10424. /* writeonly */
  10425. Material material;
  10426. Array<Material> materials;
  10427. uint maxLights;
  10428. Model model;
  10429. /* readonly */
  10430. Node node;
  10431. /* readonly */
  10432. uint numAttributes;
  10433. /* readonly */
  10434. uint numGeometries;
  10435. /* readonly */
  10436. uint numInstanceNodes;
  10437. ObjectAnimation objectAnimation;
  10438. bool occludee;
  10439. bool occluder;
  10440. uint occlusionLodLevel;
  10441. /* readonly */
  10442. int refs;
  10443. float shadowDistance;
  10444. uint shadowMask;
  10445. bool temporary;
  10446. /* readonly */
  10447. StringHash type;
  10448. /* readonly */
  10449. String typeName;
  10450. uint viewMask;
  10451. /* readonly */
  10452. int weakRefs;
  10453. /* readonly */
  10454. BoundingBox worldBoundingBox;
  10455. /* readonly */
  10456. Zone zone;
  10457. uint zoneMask;
  10458. };
  10459. class StaticSprite2D
  10460. {
  10461. // Methods:
  10462. void ApplyAttributes();
  10463. void DrawDebugGeometry(DebugRenderer, bool);
  10464. Variant GetAttribute(const String&) const;
  10465. ValueAnimation GetAttributeAnimation(const String&) const;
  10466. float GetAttributeAnimationSpeed(const String&) const;
  10467. float GetAttributeAnimationTime(const String&) const;
  10468. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10469. Variant GetAttributeDefault(const String&) const;
  10470. bool GetInterceptNetworkUpdate(const String&) const;
  10471. bool HasSubscribedToEvent(Object, const String&);
  10472. bool HasSubscribedToEvent(const String&);
  10473. bool IsInView(Camera) const;
  10474. bool Load(File, bool = false);
  10475. bool Load(VectorBuffer&, bool = false);
  10476. bool LoadJSON(const JSONValue&, bool = false);
  10477. bool LoadXML(const XMLElement&, bool = false);
  10478. void MarkNetworkUpdate() const;
  10479. void Remove();
  10480. void RemoveAttributeAnimation(const String&);
  10481. void RemoveInstanceDefault();
  10482. void RemoveObjectAnimation();
  10483. void ResetToDefault();
  10484. bool Save(File) const;
  10485. bool Save(VectorBuffer&) const;
  10486. bool SaveJSON(JSONValue&) const;
  10487. bool SaveXML(XMLElement&) const;
  10488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10489. void SetAnimationTime(float);
  10490. bool SetAttribute(const String&, const Variant&);
  10491. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10492. void SetAttributeAnimationSpeed(const String&, float);
  10493. void SetAttributeAnimationTime(const String&, float);
  10494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10495. void SetFlip(bool, bool);
  10496. void SetInterceptNetworkUpdate(const String&, bool);
  10497. // Properties:
  10498. float alpha;
  10499. bool animationEnabled;
  10500. /* readonly */
  10501. Array<Variant> attributeDefaults;
  10502. /* readonly */
  10503. Array<AttributeInfo> attributeInfos;
  10504. Array<Variant> attributes;
  10505. BlendMode blendMode;
  10506. /* readonly */
  10507. BoundingBox boundingBox;
  10508. bool castShadows;
  10509. /* readonly */
  10510. String category;
  10511. Color color;
  10512. Material customMaterial;
  10513. float drawDistance;
  10514. bool enabled;
  10515. /* readonly */
  10516. bool enabledEffective;
  10517. bool flipX;
  10518. bool flipY;
  10519. Vector2 hotSpot;
  10520. /* readonly */
  10521. uint id;
  10522. /* readonly */
  10523. bool inView;
  10524. int layer;
  10525. uint lightMask;
  10526. float lodBias;
  10527. uint maxLights;
  10528. /* readonly */
  10529. Node node;
  10530. /* readonly */
  10531. uint numAttributes;
  10532. ObjectAnimation objectAnimation;
  10533. bool occludee;
  10534. bool occluder;
  10535. int orderInLayer;
  10536. /* readonly */
  10537. int refs;
  10538. float shadowDistance;
  10539. uint shadowMask;
  10540. Sprite2D sprite;
  10541. bool temporary;
  10542. /* readonly */
  10543. StringHash type;
  10544. /* readonly */
  10545. String typeName;
  10546. bool useHotSpot;
  10547. uint viewMask;
  10548. /* readonly */
  10549. int weakRefs;
  10550. /* readonly */
  10551. BoundingBox worldBoundingBox;
  10552. uint zoneMask;
  10553. };
  10554. class String
  10555. {
  10556. // Methods:
  10557. void AppendUTF8(uint);
  10558. uint AtUTF8(uint) const;
  10559. uint ByteOffsetUTF8(uint) const;
  10560. void Clear();
  10561. int Compare(const String&, bool = true) const;
  10562. bool Contains(const String&, bool = true) const;
  10563. bool Contains(uint8, bool = true) const;
  10564. bool EndsWith(const String&, bool = true) const;
  10565. uint Find(const String&, uint = 0, bool = true) const;
  10566. uint Find(uint8, uint = 0, bool = true) const;
  10567. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10568. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10569. void Join(Array<String>&, const String&);
  10570. uint NextUTF8Char(uint&) const;
  10571. void Replace(const String&, const String&, bool = true);
  10572. void Replace(uint8, uint8, bool = true);
  10573. void ReplaceUTF8(uint, uint);
  10574. String Replaced(const String&, const String&, bool = true) const;
  10575. String Replaced(uint8, uint8, bool = true) const;
  10576. void Resize(uint);
  10577. void SetUTF8FromLatin1(const String&);
  10578. Array<String> Split(uint8, bool = false) const;
  10579. bool StartsWith(const String&, bool = true) const;
  10580. String Substring(uint) const;
  10581. String Substring(uint, uint) const;
  10582. String SubstringUTF8(uint) const;
  10583. String SubstringUTF8(uint, uint) const;
  10584. bool ToBool() const;
  10585. Color ToColor() const;
  10586. double ToDouble() const;
  10587. float ToFloat() const;
  10588. int ToInt() const;
  10589. IntRect ToIntRect() const;
  10590. IntVector2 ToIntVector2() const;
  10591. String ToLower() const;
  10592. Matrix3 ToMatrix3() const;
  10593. Matrix3x4 ToMatrix3x4() const;
  10594. Matrix4 ToMatrix4() const;
  10595. Quaternion ToQuaternion() const;
  10596. uint ToUInt() const;
  10597. String ToUpper() const;
  10598. Vector2 ToVector2() const;
  10599. Vector3 ToVector3() const;
  10600. Vector4 ToVector4(bool = false) const;
  10601. Variant ToVectorVariant() const;
  10602. String Trimmed() const;
  10603. // Properties:
  10604. /* readonly */
  10605. bool empty;
  10606. /* readonly */
  10607. uint length;
  10608. /* readonly */
  10609. uint utf8Length;
  10610. };
  10611. class StringHash
  10612. {
  10613. // Methods:
  10614. String ToString() const;
  10615. // Properties:
  10616. /* readonly */
  10617. uint value;
  10618. };
  10619. class Technique
  10620. {
  10621. // Methods:
  10622. Technique Clone(const String& = String ( )) const;
  10623. Pass CreatePass(const String&);
  10624. Pass GetPass(const String&);
  10625. Pass GetSupportedPass(const String&);
  10626. bool HasPass(const String&) const;
  10627. bool HasSubscribedToEvent(Object, const String&);
  10628. bool HasSubscribedToEvent(const String&);
  10629. bool Load(File);
  10630. bool Load(VectorBuffer&);
  10631. void RemovePass(const String&);
  10632. bool Save(File) const;
  10633. bool Save(VectorBuffer&) const;
  10634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10635. // Properties:
  10636. /* readonly */
  10637. String category;
  10638. bool desktop;
  10639. /* readonly */
  10640. uint memoryUse;
  10641. String name;
  10642. /* readonly */
  10643. uint numPasses;
  10644. /* readonly */
  10645. Array<String> passNames;
  10646. /* readonly */
  10647. Array<Pass> passes;
  10648. /* readonly */
  10649. int refs;
  10650. /* readonly */
  10651. bool supported;
  10652. /* readonly */
  10653. StringHash type;
  10654. /* readonly */
  10655. String typeName;
  10656. /* readonly */
  10657. uint useTimer;
  10658. /* readonly */
  10659. int weakRefs;
  10660. };
  10661. class TechniqueEntry
  10662. {
  10663. // Properties:
  10664. float lodDistance;
  10665. int qualityLevel;
  10666. Technique technique;
  10667. };
  10668. class Terrain
  10669. {
  10670. // Methods:
  10671. void ApplyAttributes();
  10672. void ApplyHeightMap();
  10673. void DrawDebugGeometry(DebugRenderer, bool);
  10674. Variant GetAttribute(const String&) const;
  10675. ValueAnimation GetAttributeAnimation(const String&) const;
  10676. float GetAttributeAnimationSpeed(const String&) const;
  10677. float GetAttributeAnimationTime(const String&) const;
  10678. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10679. Variant GetAttributeDefault(const String&) const;
  10680. float GetHeight(const Vector3&) const;
  10681. bool GetInterceptNetworkUpdate(const String&) const;
  10682. Vector3 GetNormal(const Vector3&) const;
  10683. TerrainPatch GetPatch(int, int) const;
  10684. bool HasSubscribedToEvent(Object, const String&);
  10685. bool HasSubscribedToEvent(const String&);
  10686. bool Load(File, bool = false);
  10687. bool Load(VectorBuffer&, bool = false);
  10688. bool LoadJSON(const JSONValue&, bool = false);
  10689. bool LoadXML(const XMLElement&, bool = false);
  10690. void MarkNetworkUpdate() const;
  10691. void Remove();
  10692. void RemoveAttributeAnimation(const String&);
  10693. void RemoveInstanceDefault();
  10694. void RemoveObjectAnimation();
  10695. void ResetToDefault();
  10696. bool Save(File) const;
  10697. bool Save(VectorBuffer&) const;
  10698. bool SaveJSON(JSONValue&) const;
  10699. bool SaveXML(XMLElement&) const;
  10700. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10701. void SetAnimationTime(float);
  10702. bool SetAttribute(const String&, const Variant&);
  10703. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10704. void SetAttributeAnimationSpeed(const String&, float);
  10705. void SetAttributeAnimationTime(const String&, float);
  10706. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10707. void SetInterceptNetworkUpdate(const String&, bool);
  10708. IntVector2 WorldToHeightMap(const Vector3&) const;
  10709. // Properties:
  10710. bool animationEnabled;
  10711. /* readonly */
  10712. Array<Variant> attributeDefaults;
  10713. /* readonly */
  10714. Array<AttributeInfo> attributeInfos;
  10715. Array<Variant> attributes;
  10716. bool castShadows;
  10717. /* readonly */
  10718. String category;
  10719. float drawDistance;
  10720. bool enabled;
  10721. /* readonly */
  10722. bool enabledEffective;
  10723. Image heightMap;
  10724. /* readonly */
  10725. uint id;
  10726. uint lightMask;
  10727. float lodBias;
  10728. Material material;
  10729. uint maxLights;
  10730. uint maxLodLevels;
  10731. /* readonly */
  10732. Node node;
  10733. /* readonly */
  10734. uint numAttributes;
  10735. /* readonly */
  10736. IntVector2 numPatches;
  10737. /* readonly */
  10738. IntVector2 numVertices;
  10739. ObjectAnimation objectAnimation;
  10740. bool occludee;
  10741. bool occluder;
  10742. uint occlusionLodLevel;
  10743. int patchSize;
  10744. /* readonly */
  10745. Array<TerrainPatch> patches;
  10746. /* readonly */
  10747. int refs;
  10748. float shadowDistance;
  10749. uint shadowMask;
  10750. bool smoothing;
  10751. Vector3 spacing;
  10752. bool temporary;
  10753. /* readonly */
  10754. StringHash type;
  10755. /* readonly */
  10756. String typeName;
  10757. uint viewMask;
  10758. /* readonly */
  10759. int weakRefs;
  10760. uint zoneMask;
  10761. };
  10762. class TerrainPatch
  10763. {
  10764. // Methods:
  10765. void ApplyAttributes();
  10766. void DrawDebugGeometry(DebugRenderer, bool);
  10767. Variant GetAttribute(const String&) const;
  10768. ValueAnimation GetAttributeAnimation(const String&) const;
  10769. float GetAttributeAnimationSpeed(const String&) const;
  10770. float GetAttributeAnimationTime(const String&) const;
  10771. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10772. Variant GetAttributeDefault(const String&) const;
  10773. bool GetInterceptNetworkUpdate(const String&) const;
  10774. bool HasSubscribedToEvent(Object, const String&);
  10775. bool HasSubscribedToEvent(const String&);
  10776. bool IsInView(Camera) const;
  10777. bool Load(File, bool = false);
  10778. bool Load(VectorBuffer&, bool = false);
  10779. bool LoadJSON(const JSONValue&, bool = false);
  10780. bool LoadXML(const XMLElement&, bool = false);
  10781. void MarkNetworkUpdate() const;
  10782. void Remove();
  10783. void RemoveAttributeAnimation(const String&);
  10784. void RemoveInstanceDefault();
  10785. void RemoveObjectAnimation();
  10786. void ResetToDefault();
  10787. bool Save(File) const;
  10788. bool Save(VectorBuffer&) const;
  10789. bool SaveJSON(JSONValue&) const;
  10790. bool SaveXML(XMLElement&) const;
  10791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10792. void SetAnimationTime(float);
  10793. bool SetAttribute(const String&, const Variant&);
  10794. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10795. void SetAttributeAnimationSpeed(const String&, float);
  10796. void SetAttributeAnimationTime(const String&, float);
  10797. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10798. void SetInterceptNetworkUpdate(const String&, bool);
  10799. // Properties:
  10800. bool animationEnabled;
  10801. /* readonly */
  10802. Array<Variant> attributeDefaults;
  10803. /* readonly */
  10804. Array<AttributeInfo> attributeInfos;
  10805. Array<Variant> attributes;
  10806. /* readonly */
  10807. BoundingBox boundingBox;
  10808. bool castShadows;
  10809. /* readonly */
  10810. String category;
  10811. float drawDistance;
  10812. bool enabled;
  10813. /* readonly */
  10814. bool enabledEffective;
  10815. /* readonly */
  10816. uint id;
  10817. /* readonly */
  10818. bool inView;
  10819. uint lightMask;
  10820. float lodBias;
  10821. uint maxLights;
  10822. /* readonly */
  10823. Node node;
  10824. /* readonly */
  10825. uint numAttributes;
  10826. ObjectAnimation objectAnimation;
  10827. bool occludee;
  10828. bool occluder;
  10829. /* readonly */
  10830. int refs;
  10831. float shadowDistance;
  10832. uint shadowMask;
  10833. bool temporary;
  10834. /* readonly */
  10835. StringHash type;
  10836. /* readonly */
  10837. String typeName;
  10838. uint viewMask;
  10839. /* readonly */
  10840. int weakRefs;
  10841. /* readonly */
  10842. BoundingBox worldBoundingBox;
  10843. uint zoneMask;
  10844. };
  10845. class Text
  10846. {
  10847. // Methods:
  10848. void AddChild(UIElement);
  10849. void AddTag(const String&);
  10850. void AddTags(const String&, int8 = ';');
  10851. void ApplyAttributes();
  10852. void BringToFront();
  10853. void ClearSelection();
  10854. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10855. void DisableLayoutUpdate();
  10856. IntVector2 ElementToScreen(const IntVector2&);
  10857. void EnableLayoutUpdate();
  10858. uint FindChild(UIElement) const;
  10859. Variant GetAttribute(const String&) const;
  10860. ValueAnimation GetAttributeAnimation(const String&) const;
  10861. float GetAttributeAnimationSpeed(const String&) const;
  10862. float GetAttributeAnimationTime(const String&) const;
  10863. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10864. Variant GetAttributeDefault(const String&) const;
  10865. UIElement GetChild(const String&, bool = false) const;
  10866. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10867. Array<UIElement> GetChildren(bool = false) const;
  10868. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10869. UIElement GetElementEventSender() const;
  10870. bool GetInterceptNetworkUpdate(const String&) const;
  10871. uint GetNumChildren(bool) const;
  10872. bool HasSubscribedToEvent(Object, const String&);
  10873. bool HasSubscribedToEvent(const String&);
  10874. bool HasTag(const String&) const;
  10875. void InsertChild(uint, UIElement);
  10876. bool IsInside(IntVector2, bool);
  10877. bool IsInsideCombined(IntVector2, bool);
  10878. bool Load(File, bool = false);
  10879. bool Load(VectorBuffer&, bool = false);
  10880. bool LoadChildXML(XMLFile, XMLFile = null);
  10881. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10882. bool LoadJSON(const JSONValue&, bool = false);
  10883. bool LoadXML(File);
  10884. bool LoadXML(VectorBuffer&);
  10885. bool LoadXML(XMLFile, XMLFile);
  10886. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10887. bool LoadXML(const XMLElement&, bool = false);
  10888. void MarkNetworkUpdate() const;
  10889. void Remove();
  10890. void RemoveAllChildren();
  10891. void RemoveAllTags();
  10892. void RemoveAttributeAnimation(const String&);
  10893. void RemoveChild(UIElement, uint = 0);
  10894. void RemoveChild(uint);
  10895. void RemoveInstanceDefault();
  10896. void RemoveObjectAnimation();
  10897. bool RemoveTag(const String&);
  10898. void ResetDeepEnabled();
  10899. void ResetToDefault();
  10900. bool Save(File) const;
  10901. bool Save(VectorBuffer&) const;
  10902. bool SaveJSON(JSONValue&) const;
  10903. bool SaveXML(File, const String& = "\t");
  10904. bool SaveXML(VectorBuffer&, const String& = "\t");
  10905. bool SaveXML(XMLElement&) const;
  10906. IntVector2 ScreenToElement(const IntVector2&);
  10907. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10908. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10909. void SetAnimationTime(float);
  10910. bool SetAttribute(const String&, const Variant&);
  10911. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10912. void SetAttributeAnimationSpeed(const String&, float);
  10913. void SetAttributeAnimationTime(const String&, float);
  10914. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10915. void SetDeepEnabled(bool);
  10916. void SetEnabledRecursive(bool);
  10917. void SetFixedHeight(int);
  10918. void SetFixedSize(int, int);
  10919. void SetFixedWidth(int);
  10920. bool SetFont(Font, int);
  10921. bool SetFont(const String&, int);
  10922. void SetInterceptNetworkUpdate(const String&, bool);
  10923. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10924. void SetMaxSize(int, int);
  10925. void SetMinSize(int, int);
  10926. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10927. void SetPosition(int, int);
  10928. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10929. void SetSize(int, int);
  10930. bool SetStyle(const String&, XMLFile = null);
  10931. bool SetStyle(const XMLElement&);
  10932. bool SetStyleAuto(XMLFile = null);
  10933. void UpdateLayout();
  10934. const Variant& GetVar(const StringHash&);
  10935. // Properties:
  10936. bool animationEnabled;
  10937. /* readonly */
  10938. Array<Variant> attributeDefaults;
  10939. /* readonly */
  10940. Array<AttributeInfo> attributeInfos;
  10941. Array<Variant> attributes;
  10942. bool autoLocalizable;
  10943. bool bringToBack;
  10944. bool bringToFront;
  10945. /* readonly */
  10946. String category;
  10947. /* readonly */
  10948. Array<IntVector2> charPositions;
  10949. /* readonly */
  10950. Array<IntVector2> charSizes;
  10951. /* readonly */
  10952. IntVector2 childOffset;
  10953. /* readonly */
  10954. Array<UIElement> children;
  10955. IntRect clipBorder;
  10956. bool clipChildren;
  10957. /* writeonly */
  10958. Color color;
  10959. /* readonly */
  10960. bool colorGradient;
  10961. Array<Color> colors;
  10962. /* readonly */
  10963. IntRect combinedScreenRect;
  10964. XMLFile defaultStyle;
  10965. /* readonly */
  10966. float derivedOpacity;
  10967. /* readonly */
  10968. uint dragButtonCombo;
  10969. /* readonly */
  10970. int dragButtonCount;
  10971. uint dragDropMode;
  10972. bool editable;
  10973. Color effectColor;
  10974. bool elementEventSender;
  10975. bool enabled;
  10976. /* readonly */
  10977. bool enabledSelf;
  10978. /* readonly */
  10979. bool fixedHeight;
  10980. /* readonly */
  10981. bool fixedSize;
  10982. /* readonly */
  10983. bool fixedWidth;
  10984. bool focus;
  10985. FocusMode focusMode;
  10986. /* readonly */
  10987. Font font;
  10988. /* readonly */
  10989. int fontSize;
  10990. int height;
  10991. HorizontalAlignment horizontalAlignment;
  10992. Color hoverColor;
  10993. /* readonly */
  10994. bool hovering;
  10995. int indent;
  10996. int indentSpacing;
  10997. /* readonly */
  10998. int indentWidth;
  10999. bool internal;
  11000. IntRect layoutBorder;
  11001. Vector2 layoutFlexScale;
  11002. LayoutMode layoutMode;
  11003. int layoutSpacing;
  11004. int maxHeight;
  11005. IntVector2 maxSize;
  11006. int maxWidth;
  11007. int minHeight;
  11008. IntVector2 minSize;
  11009. int minWidth;
  11010. String name;
  11011. /* readonly */
  11012. uint numAllChildren;
  11013. /* readonly */
  11014. uint numAttributes;
  11015. /* readonly */
  11016. uint numChars;
  11017. /* readonly */
  11018. uint numChildren;
  11019. /* readonly */
  11020. uint numRows;
  11021. ObjectAnimation objectAnimation;
  11022. float opacity;
  11023. UIElement parent;
  11024. IntVector2 position;
  11025. int priority;
  11026. /* readonly */
  11027. int refs;
  11028. /* readonly */
  11029. UIElement root;
  11030. /* readonly */
  11031. int rowHeight;
  11032. float rowSpacing;
  11033. /* readonly */
  11034. Array<int> rowWidths;
  11035. /* readonly */
  11036. IntVector2 screenPosition;
  11037. bool selected;
  11038. Color selectionColor;
  11039. /* readonly */
  11040. uint selectionLength;
  11041. /* readonly */
  11042. uint selectionStart;
  11043. IntVector2 size;
  11044. bool sortChildren;
  11045. String style;
  11046. /* readonly */
  11047. Array<String> tags;
  11048. bool temporary;
  11049. String text;
  11050. HorizontalAlignment textAlignment;
  11051. TextEffect textEffect;
  11052. TraversalMode traversalMode;
  11053. /* readonly */
  11054. StringHash type;
  11055. /* readonly */
  11056. String typeName;
  11057. bool useDerivedOpacity;
  11058. /* readonly */
  11059. VariantMap vars;
  11060. VerticalAlignment verticalAlignment;
  11061. bool visible;
  11062. /* readonly */
  11063. bool visibleEffective;
  11064. /* readonly */
  11065. int weakRefs;
  11066. int width;
  11067. bool wordwrap;
  11068. };
  11069. class Text3D
  11070. {
  11071. // Methods:
  11072. void ApplyAttributes();
  11073. void DrawDebugGeometry(DebugRenderer, bool);
  11074. Variant GetAttribute(const String&) const;
  11075. ValueAnimation GetAttributeAnimation(const String&) const;
  11076. float GetAttributeAnimationSpeed(const String&) const;
  11077. float GetAttributeAnimationTime(const String&) const;
  11078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11079. Variant GetAttributeDefault(const String&) const;
  11080. bool GetInterceptNetworkUpdate(const String&) const;
  11081. bool HasSubscribedToEvent(Object, const String&);
  11082. bool HasSubscribedToEvent(const String&);
  11083. bool IsInView(Camera) const;
  11084. bool Load(File, bool = false);
  11085. bool Load(VectorBuffer&, bool = false);
  11086. bool LoadJSON(const JSONValue&, bool = false);
  11087. bool LoadXML(const XMLElement&, bool = false);
  11088. void MarkNetworkUpdate() const;
  11089. void Remove();
  11090. void RemoveAttributeAnimation(const String&);
  11091. void RemoveInstanceDefault();
  11092. void RemoveObjectAnimation();
  11093. void ResetToDefault();
  11094. bool Save(File) const;
  11095. bool Save(VectorBuffer&) const;
  11096. bool SaveJSON(JSONValue&) const;
  11097. bool SaveXML(XMLElement&) const;
  11098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11099. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11100. void SetAnimationTime(float);
  11101. bool SetAttribute(const String&, const Variant&);
  11102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11103. void SetAttributeAnimationSpeed(const String&, float);
  11104. void SetAttributeAnimationTime(const String&, float);
  11105. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11106. bool SetFont(Font, int);
  11107. bool SetFont(const String&, int);
  11108. void SetInterceptNetworkUpdate(const String&, bool);
  11109. // Properties:
  11110. bool animationEnabled;
  11111. /* readonly */
  11112. Array<Variant> attributeDefaults;
  11113. /* readonly */
  11114. Array<AttributeInfo> attributeInfos;
  11115. Array<Variant> attributes;
  11116. /* readonly */
  11117. BoundingBox boundingBox;
  11118. bool castShadows;
  11119. /* readonly */
  11120. String category;
  11121. /* readonly */
  11122. Array<IntVector2> charPositions;
  11123. /* readonly */
  11124. Array<IntVector2> charSizes;
  11125. /* writeonly */
  11126. Color color;
  11127. Array<Color> colors;
  11128. float drawDistance;
  11129. Color effectColor;
  11130. float effectDepthBias;
  11131. bool enabled;
  11132. /* readonly */
  11133. bool enabledEffective;
  11134. FaceCameraMode faceCameraMode;
  11135. /* readonly */
  11136. Font font;
  11137. /* readonly */
  11138. int fontSize;
  11139. HorizontalAlignment horizontalAlignment;
  11140. /* readonly */
  11141. uint id;
  11142. /* readonly */
  11143. bool inView;
  11144. uint lightMask;
  11145. float lodBias;
  11146. Material material;
  11147. uint maxLights;
  11148. /* readonly */
  11149. Node node;
  11150. /* readonly */
  11151. uint numAttributes;
  11152. /* readonly */
  11153. uint numChars;
  11154. /* readonly */
  11155. uint numRows;
  11156. ObjectAnimation objectAnimation;
  11157. bool occludee;
  11158. bool occluder;
  11159. float opacity;
  11160. /* readonly */
  11161. int refs;
  11162. /* readonly */
  11163. int rowHeight;
  11164. float rowSpacing;
  11165. /* readonly */
  11166. Array<int> rowWidths;
  11167. float shadowDistance;
  11168. uint shadowMask;
  11169. bool temporary;
  11170. String text;
  11171. HorizontalAlignment textAlignment;
  11172. TextEffect textEffect;
  11173. /* readonly */
  11174. StringHash type;
  11175. /* readonly */
  11176. String typeName;
  11177. VerticalAlignment verticalAlignment;
  11178. uint viewMask;
  11179. /* readonly */
  11180. int weakRefs;
  11181. int width;
  11182. bool wordwrap;
  11183. /* readonly */
  11184. BoundingBox worldBoundingBox;
  11185. uint zoneMask;
  11186. };
  11187. class Texture
  11188. {
  11189. // Methods:
  11190. void ClearDataLost();
  11191. bool HasSubscribedToEvent(Object, const String&);
  11192. bool HasSubscribedToEvent(const String&);
  11193. bool Load(File);
  11194. bool Load(VectorBuffer&);
  11195. bool Save(File) const;
  11196. bool Save(VectorBuffer&) const;
  11197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11198. void SetNumLevels(uint);
  11199. // Properties:
  11200. Array<TextureAddressMode> addressMode;
  11201. Texture backupTexture;
  11202. Color borderColor;
  11203. /* readonly */
  11204. String category;
  11205. /* readonly */
  11206. uint components;
  11207. /* readonly */
  11208. bool compressed;
  11209. /* readonly */
  11210. bool dataLost;
  11211. TextureFilterMode filterMode;
  11212. /* readonly */
  11213. uint format;
  11214. /* readonly */
  11215. int height;
  11216. /* readonly */
  11217. Array<int> levelHeight;
  11218. /* readonly */
  11219. Array<int> levelWidth;
  11220. /* readonly */
  11221. uint levels;
  11222. /* readonly */
  11223. uint memoryUse;
  11224. Array<int> mipsToSkip;
  11225. String name;
  11226. /* readonly */
  11227. int refs;
  11228. bool sRGB;
  11229. /* readonly */
  11230. StringHash type;
  11231. /* readonly */
  11232. String typeName;
  11233. /* readonly */
  11234. TextureUsage usage;
  11235. /* readonly */
  11236. uint useTimer;
  11237. /* readonly */
  11238. int weakRefs;
  11239. /* readonly */
  11240. int width;
  11241. };
  11242. class Texture2D
  11243. {
  11244. // Methods:
  11245. void ClearDataLost();
  11246. Image GetImage() const;
  11247. bool HasSubscribedToEvent(Object, const String&);
  11248. bool HasSubscribedToEvent(const String&);
  11249. bool Load(File);
  11250. bool Load(VectorBuffer&);
  11251. bool Save(File) const;
  11252. bool Save(VectorBuffer&) const;
  11253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11254. bool SetData(Image, bool = false);
  11255. void SetNumLevels(uint);
  11256. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11257. // Properties:
  11258. Array<TextureAddressMode> addressMode;
  11259. Texture backupTexture;
  11260. Color borderColor;
  11261. /* readonly */
  11262. String category;
  11263. /* readonly */
  11264. uint components;
  11265. /* readonly */
  11266. bool compressed;
  11267. /* readonly */
  11268. bool dataLost;
  11269. TextureFilterMode filterMode;
  11270. /* readonly */
  11271. uint format;
  11272. /* readonly */
  11273. int height;
  11274. /* readonly */
  11275. Array<int> levelHeight;
  11276. /* readonly */
  11277. Array<int> levelWidth;
  11278. /* readonly */
  11279. uint levels;
  11280. /* readonly */
  11281. uint memoryUse;
  11282. Array<int> mipsToSkip;
  11283. String name;
  11284. /* readonly */
  11285. int refs;
  11286. /* readonly */
  11287. RenderSurface renderSurface;
  11288. bool sRGB;
  11289. /* readonly */
  11290. StringHash type;
  11291. /* readonly */
  11292. String typeName;
  11293. /* readonly */
  11294. TextureUsage usage;
  11295. /* readonly */
  11296. uint useTimer;
  11297. /* readonly */
  11298. int weakRefs;
  11299. /* readonly */
  11300. int width;
  11301. };
  11302. class Texture3D
  11303. {
  11304. // Methods:
  11305. void ClearDataLost();
  11306. bool HasSubscribedToEvent(Object, const String&);
  11307. bool HasSubscribedToEvent(const String&);
  11308. bool Load(File);
  11309. bool Load(VectorBuffer&);
  11310. bool Save(File) const;
  11311. bool Save(VectorBuffer&) const;
  11312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11313. bool SetData(Image, bool = false);
  11314. void SetNumLevels(uint);
  11315. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11316. // Properties:
  11317. Array<TextureAddressMode> addressMode;
  11318. Texture backupTexture;
  11319. Color borderColor;
  11320. /* readonly */
  11321. String category;
  11322. /* readonly */
  11323. uint components;
  11324. /* readonly */
  11325. bool compressed;
  11326. /* readonly */
  11327. bool dataLost;
  11328. TextureFilterMode filterMode;
  11329. /* readonly */
  11330. uint format;
  11331. /* readonly */
  11332. int height;
  11333. /* readonly */
  11334. Array<int> levelHeight;
  11335. /* readonly */
  11336. Array<int> levelWidth;
  11337. /* readonly */
  11338. uint levels;
  11339. /* readonly */
  11340. uint memoryUse;
  11341. Array<int> mipsToSkip;
  11342. String name;
  11343. /* readonly */
  11344. int refs;
  11345. bool sRGB;
  11346. /* readonly */
  11347. StringHash type;
  11348. /* readonly */
  11349. String typeName;
  11350. /* readonly */
  11351. TextureUsage usage;
  11352. /* readonly */
  11353. uint useTimer;
  11354. /* readonly */
  11355. int weakRefs;
  11356. /* readonly */
  11357. int width;
  11358. };
  11359. class TextureCube
  11360. {
  11361. // Methods:
  11362. void ClearDataLost();
  11363. Image GetImage(CubeMapFace) const;
  11364. bool HasSubscribedToEvent(Object, const String&);
  11365. bool HasSubscribedToEvent(const String&);
  11366. bool Load(File);
  11367. bool Load(VectorBuffer&);
  11368. bool Save(File) const;
  11369. bool Save(VectorBuffer&) const;
  11370. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11371. bool SetData(CubeMapFace, Image, bool = false);
  11372. void SetNumLevels(uint);
  11373. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11374. // Properties:
  11375. Array<TextureAddressMode> addressMode;
  11376. Texture backupTexture;
  11377. Color borderColor;
  11378. /* readonly */
  11379. String category;
  11380. /* readonly */
  11381. uint components;
  11382. /* readonly */
  11383. bool compressed;
  11384. /* readonly */
  11385. bool dataLost;
  11386. TextureFilterMode filterMode;
  11387. /* readonly */
  11388. uint format;
  11389. /* readonly */
  11390. int height;
  11391. /* readonly */
  11392. Array<int> levelHeight;
  11393. /* readonly */
  11394. Array<int> levelWidth;
  11395. /* readonly */
  11396. uint levels;
  11397. /* readonly */
  11398. uint memoryUse;
  11399. Array<int> mipsToSkip;
  11400. String name;
  11401. /* readonly */
  11402. int refs;
  11403. /* readonly */
  11404. Array<RenderSurface> renderSurfaces;
  11405. bool sRGB;
  11406. /* readonly */
  11407. StringHash type;
  11408. /* readonly */
  11409. String typeName;
  11410. /* readonly */
  11411. TextureUsage usage;
  11412. /* readonly */
  11413. uint useTimer;
  11414. /* readonly */
  11415. int weakRefs;
  11416. /* readonly */
  11417. int width;
  11418. };
  11419. class TextureFrame
  11420. {
  11421. // Properties:
  11422. float time;
  11423. Rect uv;
  11424. };
  11425. class Tile2D
  11426. {
  11427. // Methods:
  11428. bool HasProperty(const String&) const;
  11429. const String& GetProperty(const String&) const;
  11430. // Properties:
  11431. /* readonly */
  11432. int gid;
  11433. /* readonly */
  11434. int refs;
  11435. /* readonly */
  11436. Sprite2D sprite;
  11437. /* readonly */
  11438. int weakRefs;
  11439. };
  11440. class TileMap2D
  11441. {
  11442. // Methods:
  11443. void ApplyAttributes();
  11444. void DrawDebugGeometry(DebugRenderer, bool);
  11445. Variant GetAttribute(const String&) const;
  11446. ValueAnimation GetAttributeAnimation(const String&) const;
  11447. float GetAttributeAnimationSpeed(const String&) const;
  11448. float GetAttributeAnimationTime(const String&) const;
  11449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11450. Variant GetAttributeDefault(const String&) const;
  11451. bool GetInterceptNetworkUpdate(const String&) const;
  11452. TileMapLayer2D GetLayer(uint) const;
  11453. bool HasSubscribedToEvent(Object, const String&);
  11454. bool HasSubscribedToEvent(const String&);
  11455. bool Load(File, bool = false);
  11456. bool Load(VectorBuffer&, bool = false);
  11457. bool LoadJSON(const JSONValue&, bool = false);
  11458. bool LoadXML(const XMLElement&, bool = false);
  11459. void MarkNetworkUpdate() const;
  11460. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11461. void Remove();
  11462. void RemoveAttributeAnimation(const String&);
  11463. void RemoveInstanceDefault();
  11464. void RemoveObjectAnimation();
  11465. void ResetToDefault();
  11466. bool Save(File) const;
  11467. bool Save(VectorBuffer&) const;
  11468. bool SaveJSON(JSONValue&) const;
  11469. bool SaveXML(XMLElement&) const;
  11470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11471. void SetAnimationTime(float);
  11472. bool SetAttribute(const String&, const Variant&);
  11473. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11474. void SetAttributeAnimationSpeed(const String&, float);
  11475. void SetAttributeAnimationTime(const String&, float);
  11476. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11477. void SetInterceptNetworkUpdate(const String&, bool);
  11478. Vector2 TileIndexToPosition(int, int) const;
  11479. // Properties:
  11480. bool animationEnabled;
  11481. /* readonly */
  11482. Array<Variant> attributeDefaults;
  11483. /* readonly */
  11484. Array<AttributeInfo> attributeInfos;
  11485. Array<Variant> attributes;
  11486. /* readonly */
  11487. String category;
  11488. bool enabled;
  11489. /* readonly */
  11490. bool enabledEffective;
  11491. /* readonly */
  11492. uint id;
  11493. /* readonly */
  11494. TileMapInfo2D info;
  11495. /* readonly */
  11496. Node node;
  11497. /* readonly */
  11498. uint numAttributes;
  11499. /* readonly */
  11500. uint numLayers;
  11501. ObjectAnimation objectAnimation;
  11502. /* readonly */
  11503. int refs;
  11504. bool temporary;
  11505. TmxFile2D tmxFile;
  11506. /* readonly */
  11507. StringHash type;
  11508. /* readonly */
  11509. String typeName;
  11510. /* readonly */
  11511. int weakRefs;
  11512. };
  11513. class TileMapInfo2D
  11514. {
  11515. // Properties:
  11516. int height;
  11517. /* readonly */
  11518. float mapHeight;
  11519. /* readonly */
  11520. float mapWidth;
  11521. Orientation2D orientation;
  11522. float tileHeight;
  11523. float tileWidth;
  11524. int width;
  11525. };
  11526. class TileMapLayer2D
  11527. {
  11528. // Methods:
  11529. void ApplyAttributes();
  11530. void DrawDebugGeometry(DebugRenderer, bool);
  11531. Variant GetAttribute(const String&) const;
  11532. ValueAnimation GetAttributeAnimation(const String&) const;
  11533. float GetAttributeAnimationSpeed(const String&) const;
  11534. float GetAttributeAnimationTime(const String&) const;
  11535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11536. Variant GetAttributeDefault(const String&) const;
  11537. bool GetInterceptNetworkUpdate(const String&) const;
  11538. TileMapObject2D GetObject(uint) const;
  11539. Node GetObjectNode(uint) const;
  11540. Tile2D GetTile(int, int) const;
  11541. Node GetTileNode(int, int) const;
  11542. bool HasProperty(const String&) const;
  11543. bool HasSubscribedToEvent(Object, const String&);
  11544. bool HasSubscribedToEvent(const String&);
  11545. bool Load(File, bool = false);
  11546. bool Load(VectorBuffer&, bool = false);
  11547. bool LoadJSON(const JSONValue&, bool = false);
  11548. bool LoadXML(const XMLElement&, bool = false);
  11549. void MarkNetworkUpdate() const;
  11550. void Remove();
  11551. void RemoveAttributeAnimation(const String&);
  11552. void RemoveInstanceDefault();
  11553. void RemoveObjectAnimation();
  11554. void ResetToDefault();
  11555. bool Save(File) const;
  11556. bool Save(VectorBuffer&) const;
  11557. bool SaveJSON(JSONValue&) const;
  11558. bool SaveXML(XMLElement&) const;
  11559. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11560. void SetAnimationTime(float);
  11561. bool SetAttribute(const String&, const Variant&);
  11562. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11563. void SetAttributeAnimationSpeed(const String&, float);
  11564. void SetAttributeAnimationTime(const String&, float);
  11565. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11566. void SetInterceptNetworkUpdate(const String&, bool);
  11567. const String& GetProperty(const String&) const;
  11568. // Properties:
  11569. bool animationEnabled;
  11570. /* readonly */
  11571. Array<Variant> attributeDefaults;
  11572. /* readonly */
  11573. Array<AttributeInfo> attributeInfos;
  11574. Array<Variant> attributes;
  11575. /* readonly */
  11576. String category;
  11577. int drawOrder;
  11578. bool enabled;
  11579. /* readonly */
  11580. bool enabledEffective;
  11581. /* readonly */
  11582. int height;
  11583. /* readonly */
  11584. uint id;
  11585. /* readonly */
  11586. Node imageNode;
  11587. /* readonly */
  11588. TileMapLayerType2D layerType;
  11589. /* readonly */
  11590. Node node;
  11591. /* readonly */
  11592. uint numAttributes;
  11593. /* readonly */
  11594. uint numObjects;
  11595. ObjectAnimation objectAnimation;
  11596. /* readonly */
  11597. int refs;
  11598. bool temporary;
  11599. /* readonly */
  11600. StringHash type;
  11601. /* readonly */
  11602. String typeName;
  11603. bool visible;
  11604. /* readonly */
  11605. int weakRefs;
  11606. /* readonly */
  11607. int width;
  11608. };
  11609. class TileMapObject2D
  11610. {
  11611. // Methods:
  11612. bool HasProperty(const String&) const;
  11613. const String& GetProperty(const String&) const;
  11614. const Vector2& GetPoint(uint) const;
  11615. // Properties:
  11616. /* readonly */
  11617. String name;
  11618. /* readonly */
  11619. uint numPoints;
  11620. /* readonly */
  11621. TileObjectType2D objectType;
  11622. /* readonly */
  11623. Vector2 position;
  11624. /* readonly */
  11625. int refs;
  11626. /* readonly */
  11627. Vector2 size;
  11628. /* readonly */
  11629. int tileGid;
  11630. /* readonly */
  11631. Sprite2D tileSprite;
  11632. /* readonly */
  11633. String type;
  11634. /* readonly */
  11635. int weakRefs;
  11636. };
  11637. class Time
  11638. {
  11639. // Methods:
  11640. bool HasSubscribedToEvent(Object, const String&);
  11641. bool HasSubscribedToEvent(const String&);
  11642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11643. // Properties:
  11644. /* readonly */
  11645. String category;
  11646. /* readonly */
  11647. float elapsedTime;
  11648. /* readonly */
  11649. uint frameNumber;
  11650. /* readonly */
  11651. int refs;
  11652. /* readonly */
  11653. uint systemTime;
  11654. /* readonly */
  11655. uint timeSinceEpoch;
  11656. /* readonly */
  11657. String timeStamp;
  11658. /* readonly */
  11659. float timeStep;
  11660. /* readonly */
  11661. StringHash type;
  11662. /* readonly */
  11663. String typeName;
  11664. /* readonly */
  11665. int weakRefs;
  11666. };
  11667. class Timer
  11668. {
  11669. // Methods:
  11670. uint GetMSec(bool);
  11671. void Reset();
  11672. };
  11673. class TmxFile2D
  11674. {
  11675. // Methods:
  11676. bool HasSubscribedToEvent(Object, const String&);
  11677. bool HasSubscribedToEvent(const String&);
  11678. bool Load(File);
  11679. bool Load(VectorBuffer&);
  11680. bool Save(File) const;
  11681. bool Save(VectorBuffer&) const;
  11682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11683. // Properties:
  11684. /* readonly */
  11685. String category;
  11686. /* readonly */
  11687. uint memoryUse;
  11688. String name;
  11689. /* readonly */
  11690. int refs;
  11691. /* readonly */
  11692. StringHash type;
  11693. /* readonly */
  11694. String typeName;
  11695. /* readonly */
  11696. uint useTimer;
  11697. /* readonly */
  11698. int weakRefs;
  11699. };
  11700. class ToolTip
  11701. {
  11702. // Methods:
  11703. void AddChild(UIElement);
  11704. void AddTag(const String&);
  11705. void AddTags(const String&, int8 = ';');
  11706. void ApplyAttributes();
  11707. void BringToFront();
  11708. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11709. void DisableLayoutUpdate();
  11710. IntVector2 ElementToScreen(const IntVector2&);
  11711. void EnableLayoutUpdate();
  11712. uint FindChild(UIElement) const;
  11713. Variant GetAttribute(const String&) const;
  11714. ValueAnimation GetAttributeAnimation(const String&) const;
  11715. float GetAttributeAnimationSpeed(const String&) const;
  11716. float GetAttributeAnimationTime(const String&) const;
  11717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11718. Variant GetAttributeDefault(const String&) const;
  11719. UIElement GetChild(const String&, bool = false) const;
  11720. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11721. Array<UIElement> GetChildren(bool = false) const;
  11722. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11723. UIElement GetElementEventSender() const;
  11724. bool GetInterceptNetworkUpdate(const String&) const;
  11725. uint GetNumChildren(bool) const;
  11726. bool HasSubscribedToEvent(Object, const String&);
  11727. bool HasSubscribedToEvent(const String&);
  11728. bool HasTag(const String&) const;
  11729. void InsertChild(uint, UIElement);
  11730. bool IsInside(IntVector2, bool);
  11731. bool IsInsideCombined(IntVector2, bool);
  11732. bool Load(File, bool = false);
  11733. bool Load(VectorBuffer&, bool = false);
  11734. bool LoadChildXML(XMLFile, XMLFile = null);
  11735. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11736. bool LoadJSON(const JSONValue&, bool = false);
  11737. bool LoadXML(File);
  11738. bool LoadXML(VectorBuffer&);
  11739. bool LoadXML(XMLFile, XMLFile);
  11740. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11741. bool LoadXML(const XMLElement&, bool = false);
  11742. void MarkNetworkUpdate() const;
  11743. void Remove();
  11744. void RemoveAllChildren();
  11745. void RemoveAllTags();
  11746. void RemoveAttributeAnimation(const String&);
  11747. void RemoveChild(UIElement, uint = 0);
  11748. void RemoveChild(uint);
  11749. void RemoveInstanceDefault();
  11750. void RemoveObjectAnimation();
  11751. bool RemoveTag(const String&);
  11752. void ResetDeepEnabled();
  11753. void ResetToDefault();
  11754. bool Save(File) const;
  11755. bool Save(VectorBuffer&) const;
  11756. bool SaveJSON(JSONValue&) const;
  11757. bool SaveXML(File, const String& = "\t");
  11758. bool SaveXML(VectorBuffer&, const String& = "\t");
  11759. bool SaveXML(XMLElement&) const;
  11760. IntVector2 ScreenToElement(const IntVector2&);
  11761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11762. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11763. void SetAnimationTime(float);
  11764. bool SetAttribute(const String&, const Variant&);
  11765. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11766. void SetAttributeAnimationSpeed(const String&, float);
  11767. void SetAttributeAnimationTime(const String&, float);
  11768. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11769. void SetDeepEnabled(bool);
  11770. void SetEnabledRecursive(bool);
  11771. void SetFixedHeight(int);
  11772. void SetFixedSize(int, int);
  11773. void SetFixedWidth(int);
  11774. void SetInterceptNetworkUpdate(const String&, bool);
  11775. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11776. void SetMaxSize(int, int);
  11777. void SetMinSize(int, int);
  11778. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11779. void SetPosition(int, int);
  11780. void SetSize(int, int);
  11781. bool SetStyle(const String&, XMLFile = null);
  11782. bool SetStyle(const XMLElement&);
  11783. bool SetStyleAuto(XMLFile = null);
  11784. void UpdateLayout();
  11785. const Variant& GetVar(const StringHash&);
  11786. // Properties:
  11787. bool animationEnabled;
  11788. /* readonly */
  11789. Array<Variant> attributeDefaults;
  11790. /* readonly */
  11791. Array<AttributeInfo> attributeInfos;
  11792. Array<Variant> attributes;
  11793. bool bringToBack;
  11794. bool bringToFront;
  11795. /* readonly */
  11796. String category;
  11797. /* readonly */
  11798. IntVector2 childOffset;
  11799. /* readonly */
  11800. Array<UIElement> children;
  11801. IntRect clipBorder;
  11802. bool clipChildren;
  11803. /* writeonly */
  11804. Color color;
  11805. /* readonly */
  11806. bool colorGradient;
  11807. Array<Color> colors;
  11808. /* readonly */
  11809. IntRect combinedScreenRect;
  11810. XMLFile defaultStyle;
  11811. float delay;
  11812. /* readonly */
  11813. float derivedOpacity;
  11814. /* readonly */
  11815. uint dragButtonCombo;
  11816. /* readonly */
  11817. int dragButtonCount;
  11818. uint dragDropMode;
  11819. bool editable;
  11820. bool elementEventSender;
  11821. bool enabled;
  11822. /* readonly */
  11823. bool enabledSelf;
  11824. /* readonly */
  11825. bool fixedHeight;
  11826. /* readonly */
  11827. bool fixedSize;
  11828. /* readonly */
  11829. bool fixedWidth;
  11830. bool focus;
  11831. FocusMode focusMode;
  11832. int height;
  11833. HorizontalAlignment horizontalAlignment;
  11834. /* readonly */
  11835. bool hovering;
  11836. int indent;
  11837. int indentSpacing;
  11838. /* readonly */
  11839. int indentWidth;
  11840. bool internal;
  11841. IntRect layoutBorder;
  11842. Vector2 layoutFlexScale;
  11843. LayoutMode layoutMode;
  11844. int layoutSpacing;
  11845. int maxHeight;
  11846. IntVector2 maxSize;
  11847. int maxWidth;
  11848. int minHeight;
  11849. IntVector2 minSize;
  11850. int minWidth;
  11851. String name;
  11852. /* readonly */
  11853. uint numAllChildren;
  11854. /* readonly */
  11855. uint numAttributes;
  11856. /* readonly */
  11857. uint numChildren;
  11858. ObjectAnimation objectAnimation;
  11859. float opacity;
  11860. UIElement parent;
  11861. IntVector2 position;
  11862. int priority;
  11863. /* readonly */
  11864. int refs;
  11865. /* readonly */
  11866. UIElement root;
  11867. /* readonly */
  11868. IntVector2 screenPosition;
  11869. bool selected;
  11870. IntVector2 size;
  11871. bool sortChildren;
  11872. String style;
  11873. /* readonly */
  11874. Array<String> tags;
  11875. bool temporary;
  11876. TraversalMode traversalMode;
  11877. /* readonly */
  11878. StringHash type;
  11879. /* readonly */
  11880. String typeName;
  11881. bool useDerivedOpacity;
  11882. /* readonly */
  11883. VariantMap vars;
  11884. VerticalAlignment verticalAlignment;
  11885. bool visible;
  11886. /* readonly */
  11887. bool visibleEffective;
  11888. /* readonly */
  11889. int weakRefs;
  11890. int width;
  11891. };
  11892. class TouchState
  11893. {
  11894. // Properties:
  11895. IntVector2 delta;
  11896. IntVector2 lastPosition;
  11897. IntVector2 position;
  11898. float pressure;
  11899. int touchID;
  11900. /* readonly */
  11901. UIElement touchedElement;
  11902. };
  11903. class UI
  11904. {
  11905. // Methods:
  11906. void Clear();
  11907. void DebugDraw(UIElement);
  11908. UIElement GetElementAt(const IntVector2&, bool = true);
  11909. UIElement GetElementAt(int, int, bool = true);
  11910. bool HasModalElement() const;
  11911. bool HasSubscribedToEvent(Object, const String&);
  11912. bool HasSubscribedToEvent(const String&);
  11913. bool IsDragging() const;
  11914. UIElement LoadLayout(File);
  11915. UIElement LoadLayout(File, XMLFile);
  11916. UIElement LoadLayout(VectorBuffer&);
  11917. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11918. UIElement LoadLayout(XMLFile);
  11919. UIElement LoadLayout(XMLFile, XMLFile);
  11920. bool SaveLayout(File, UIElement);
  11921. bool SaveLayout(VectorBuffer&, UIElement);
  11922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11923. void SetFocusElement(UIElement, bool = false);
  11924. void SetHeight(float);
  11925. void SetWidth(float);
  11926. const Array<UIElement> GetDragElements();
  11927. // Properties:
  11928. /* readonly */
  11929. String category;
  11930. String clipBoardText;
  11931. Cursor cursor;
  11932. /* readonly */
  11933. IntVector2 cursorPosition;
  11934. float defaultToolTipDelay;
  11935. float doubleClickInterval;
  11936. int dragBeginDistance;
  11937. float dragBeginInterval;
  11938. UIElement focusElement;
  11939. bool forceAutoHint;
  11940. /* readonly */
  11941. UIElement frontElement;
  11942. int maxFontTextureSize;
  11943. /* readonly */
  11944. UIElement modalRoot;
  11945. bool nonFocusedMouseWheel;
  11946. /* readonly */
  11947. int refs;
  11948. /* readonly */
  11949. UIElement root;
  11950. float scale;
  11951. /* readonly */
  11952. StringHash type;
  11953. /* readonly */
  11954. String typeName;
  11955. bool useMutableGlyphs;
  11956. bool useScreenKeyboard;
  11957. bool useSystemClipboard;
  11958. /* readonly */
  11959. int weakRefs;
  11960. };
  11961. class UIElement
  11962. {
  11963. // Methods:
  11964. void AddChild(UIElement);
  11965. void AddTag(const String&);
  11966. void AddTags(const String&, int8 = ';');
  11967. void ApplyAttributes();
  11968. void BringToFront();
  11969. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11970. void DisableLayoutUpdate();
  11971. IntVector2 ElementToScreen(const IntVector2&);
  11972. void EnableLayoutUpdate();
  11973. uint FindChild(UIElement) const;
  11974. Variant GetAttribute(const String&) const;
  11975. ValueAnimation GetAttributeAnimation(const String&) const;
  11976. float GetAttributeAnimationSpeed(const String&) const;
  11977. float GetAttributeAnimationTime(const String&) const;
  11978. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11979. Variant GetAttributeDefault(const String&) const;
  11980. UIElement GetChild(const String&, bool = false) const;
  11981. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11982. Array<UIElement> GetChildren(bool = false) const;
  11983. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11984. UIElement GetElementEventSender() const;
  11985. bool GetInterceptNetworkUpdate(const String&) const;
  11986. uint GetNumChildren(bool) const;
  11987. bool HasSubscribedToEvent(Object, const String&);
  11988. bool HasSubscribedToEvent(const String&);
  11989. bool HasTag(const String&) const;
  11990. void InsertChild(uint, UIElement);
  11991. bool IsInside(IntVector2, bool);
  11992. bool IsInsideCombined(IntVector2, bool);
  11993. bool Load(File, bool = false);
  11994. bool Load(VectorBuffer&, bool = false);
  11995. bool LoadChildXML(XMLFile, XMLFile = null);
  11996. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11997. bool LoadJSON(const JSONValue&, bool = false);
  11998. bool LoadXML(File);
  11999. bool LoadXML(VectorBuffer&);
  12000. bool LoadXML(XMLFile, XMLFile);
  12001. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12002. bool LoadXML(const XMLElement&, bool = false);
  12003. void MarkNetworkUpdate() const;
  12004. void Remove();
  12005. void RemoveAllChildren();
  12006. void RemoveAllTags();
  12007. void RemoveAttributeAnimation(const String&);
  12008. void RemoveChild(UIElement, uint = 0);
  12009. void RemoveChild(uint);
  12010. void RemoveInstanceDefault();
  12011. void RemoveObjectAnimation();
  12012. bool RemoveTag(const String&);
  12013. void ResetDeepEnabled();
  12014. void ResetToDefault();
  12015. bool Save(File) const;
  12016. bool Save(VectorBuffer&) const;
  12017. bool SaveJSON(JSONValue&) const;
  12018. bool SaveXML(File, const String& = "\t");
  12019. bool SaveXML(VectorBuffer&, const String& = "\t");
  12020. bool SaveXML(XMLElement&) const;
  12021. IntVector2 ScreenToElement(const IntVector2&);
  12022. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12023. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12024. void SetAnimationTime(float);
  12025. bool SetAttribute(const String&, const Variant&);
  12026. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12027. void SetAttributeAnimationSpeed(const String&, float);
  12028. void SetAttributeAnimationTime(const String&, float);
  12029. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12030. void SetDeepEnabled(bool);
  12031. void SetEnabledRecursive(bool);
  12032. void SetFixedHeight(int);
  12033. void SetFixedSize(int, int);
  12034. void SetFixedWidth(int);
  12035. void SetInterceptNetworkUpdate(const String&, bool);
  12036. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12037. void SetMaxSize(int, int);
  12038. void SetMinSize(int, int);
  12039. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12040. void SetPosition(int, int);
  12041. void SetSize(int, int);
  12042. bool SetStyle(const String&, XMLFile = null);
  12043. bool SetStyle(const XMLElement&);
  12044. bool SetStyleAuto(XMLFile = null);
  12045. void UpdateLayout();
  12046. const Variant& GetVar(const StringHash&);
  12047. // Properties:
  12048. bool animationEnabled;
  12049. /* readonly */
  12050. Array<Variant> attributeDefaults;
  12051. /* readonly */
  12052. Array<AttributeInfo> attributeInfos;
  12053. Array<Variant> attributes;
  12054. bool bringToBack;
  12055. bool bringToFront;
  12056. /* readonly */
  12057. String category;
  12058. /* readonly */
  12059. IntVector2 childOffset;
  12060. /* readonly */
  12061. Array<UIElement> children;
  12062. IntRect clipBorder;
  12063. bool clipChildren;
  12064. /* writeonly */
  12065. Color color;
  12066. /* readonly */
  12067. bool colorGradient;
  12068. Array<Color> colors;
  12069. /* readonly */
  12070. IntRect combinedScreenRect;
  12071. XMLFile defaultStyle;
  12072. /* readonly */
  12073. float derivedOpacity;
  12074. /* readonly */
  12075. uint dragButtonCombo;
  12076. /* readonly */
  12077. int dragButtonCount;
  12078. uint dragDropMode;
  12079. bool editable;
  12080. bool elementEventSender;
  12081. bool enabled;
  12082. /* readonly */
  12083. bool enabledSelf;
  12084. /* readonly */
  12085. bool fixedHeight;
  12086. /* readonly */
  12087. bool fixedSize;
  12088. /* readonly */
  12089. bool fixedWidth;
  12090. bool focus;
  12091. FocusMode focusMode;
  12092. int height;
  12093. HorizontalAlignment horizontalAlignment;
  12094. /* readonly */
  12095. bool hovering;
  12096. int indent;
  12097. int indentSpacing;
  12098. /* readonly */
  12099. int indentWidth;
  12100. bool internal;
  12101. IntRect layoutBorder;
  12102. Vector2 layoutFlexScale;
  12103. LayoutMode layoutMode;
  12104. int layoutSpacing;
  12105. int maxHeight;
  12106. IntVector2 maxSize;
  12107. int maxWidth;
  12108. int minHeight;
  12109. IntVector2 minSize;
  12110. int minWidth;
  12111. String name;
  12112. /* readonly */
  12113. uint numAllChildren;
  12114. /* readonly */
  12115. uint numAttributes;
  12116. /* readonly */
  12117. uint numChildren;
  12118. ObjectAnimation objectAnimation;
  12119. float opacity;
  12120. UIElement parent;
  12121. IntVector2 position;
  12122. int priority;
  12123. /* readonly */
  12124. int refs;
  12125. /* readonly */
  12126. UIElement root;
  12127. /* readonly */
  12128. IntVector2 screenPosition;
  12129. bool selected;
  12130. IntVector2 size;
  12131. bool sortChildren;
  12132. String style;
  12133. /* readonly */
  12134. Array<String> tags;
  12135. bool temporary;
  12136. TraversalMode traversalMode;
  12137. /* readonly */
  12138. StringHash type;
  12139. /* readonly */
  12140. String typeName;
  12141. bool useDerivedOpacity;
  12142. /* readonly */
  12143. VariantMap vars;
  12144. VerticalAlignment verticalAlignment;
  12145. bool visible;
  12146. /* readonly */
  12147. bool visibleEffective;
  12148. /* readonly */
  12149. int weakRefs;
  12150. int width;
  12151. };
  12152. class ValueAnimation
  12153. {
  12154. // Methods:
  12155. bool HasSubscribedToEvent(Object, const String&);
  12156. bool HasSubscribedToEvent(const String&);
  12157. bool Load(File);
  12158. bool Load(VectorBuffer&);
  12159. bool Save(File) const;
  12160. bool Save(VectorBuffer&) const;
  12161. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12162. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12163. void SetKeyFrame(float, const Variant&);
  12164. // Properties:
  12165. /* readonly */
  12166. String category;
  12167. InterpMethod interpolationMethod;
  12168. /* readonly */
  12169. uint memoryUse;
  12170. String name;
  12171. /* readonly */
  12172. int refs;
  12173. float splineTension;
  12174. /* readonly */
  12175. StringHash type;
  12176. /* readonly */
  12177. String typeName;
  12178. /* readonly */
  12179. uint useTimer;
  12180. VariantType valueType;
  12181. /* readonly */
  12182. int weakRefs;
  12183. };
  12184. class Variant
  12185. {
  12186. // Methods:
  12187. void Clear();
  12188. const Color& GetColor() const;
  12189. void FromString(VariantType, const String&);
  12190. void FromString(const String&, const String&);
  12191. bool GetBool() const;
  12192. VectorBuffer GetBuffer() const;
  12193. double GetDouble() const;
  12194. float GetFloat() const;
  12195. int GetInt() const;
  12196. RefCounted GetPtr() const;
  12197. ScriptObject GetScriptObject() const;
  12198. StringHash GetStringHash() const;
  12199. Array<String> GetStringVector() const;
  12200. uint GetUInt() const;
  12201. Array<Variant> GetVariantVector() const;
  12202. const IntRect& GetIntRect() const;
  12203. const IntVector2& GetIntVector2() const;
  12204. const Matrix3& GetMatrix3() const;
  12205. const Matrix3x4& GetMatrix3x4() const;
  12206. const Matrix4& GetMatrix4() const;
  12207. const Quaternion& GetQuaternion() const;
  12208. const ResourceRef& GetResourceRef() const;
  12209. const ResourceRefList& GetResourceRefList() const;
  12210. const String& GetString() const;
  12211. String ToString() const;
  12212. const VariantMap& GetVariantMap() const;
  12213. const Vector2& GetVector2() const;
  12214. const Vector3& GetVector3() const;
  12215. const Vector4& GetVector4() const;
  12216. // Properties:
  12217. /* readonly */
  12218. bool empty;
  12219. /* readonly */
  12220. VariantType type;
  12221. /* readonly */
  12222. String typeName;
  12223. /* readonly */
  12224. bool zero;
  12225. };
  12226. class VariantMap
  12227. {
  12228. // Methods:
  12229. void Clear();
  12230. bool Contains(StringHash) const;
  12231. bool Contains(const String&) const;
  12232. bool Erase(StringHash);
  12233. bool Erase(const String&);
  12234. // Properties:
  12235. /* readonly */
  12236. Array<StringHash> keys;
  12237. /* readonly */
  12238. uint length;
  12239. /* readonly */
  12240. Array<Variant> values;
  12241. };
  12242. class Vector2
  12243. {
  12244. // Methods:
  12245. Vector2 Abs() const;
  12246. float AbsDotProduct(const Vector2&) const;
  12247. float Angle(const Vector2&) const;
  12248. float DotProduct(const Vector2&) const;
  12249. bool Equals(const Vector2&) const;
  12250. bool IsNaN() const;
  12251. Vector2 Lerp(const Vector2&, float) const;
  12252. void Normalize();
  12253. Vector2 Normalized() const;
  12254. String ToString() const;
  12255. // Properties:
  12256. /* readonly */
  12257. Array<float> data;
  12258. /* readonly */
  12259. float length;
  12260. /* readonly */
  12261. float lengthSquared;
  12262. float x;
  12263. float y;
  12264. };
  12265. class Vector3
  12266. {
  12267. // Methods:
  12268. Vector3 Abs() const;
  12269. float AbsDotProduct(const Vector3&) const;
  12270. float Angle(const Vector3&) const;
  12271. Vector3 CrossProduct(const Vector3&) const;
  12272. float DotProduct(const Vector3&) const;
  12273. bool Equals(const Vector3&) const;
  12274. bool IsNaN() const;
  12275. Vector3 Lerp(const Vector3&, float) const;
  12276. void Normalize();
  12277. Vector3 Normalized() const;
  12278. String ToString() const;
  12279. // Properties:
  12280. /* readonly */
  12281. Array<float> data;
  12282. /* readonly */
  12283. float length;
  12284. /* readonly */
  12285. float lengthSquared;
  12286. float x;
  12287. float y;
  12288. float z;
  12289. };
  12290. class Vector4
  12291. {
  12292. // Methods:
  12293. Vector4 Abs() const;
  12294. float AbsDotProduct(const Vector4&) const;
  12295. float DotProduct(const Vector4&) const;
  12296. bool Equals(const Vector4&) const;
  12297. bool IsNaN() const;
  12298. Vector4 Lerp(const Vector4&, float) const;
  12299. String ToString() const;
  12300. // Properties:
  12301. /* readonly */
  12302. Array<float> data;
  12303. float w;
  12304. float x;
  12305. float y;
  12306. float z;
  12307. };
  12308. class VectorBuffer
  12309. {
  12310. // Methods:
  12311. void Clear();
  12312. Array<uint8> Read(uint);
  12313. bool ReadBool();
  12314. BoundingBox ReadBoundingBox();
  12315. int8 ReadByte();
  12316. Color ReadColor();
  12317. double ReadDouble();
  12318. String ReadFileID();
  12319. float ReadFloat();
  12320. int ReadInt();
  12321. IntRect ReadIntRect();
  12322. IntVector2 ReadIntVector2();
  12323. String ReadLine();
  12324. Matrix3 ReadMatrix3();
  12325. Matrix3x4 ReadMatrix3x4();
  12326. Matrix4 ReadMatrix4();
  12327. uint ReadNetID();
  12328. Quaternion ReadPackedQuaternion();
  12329. Vector3 ReadPackedVector3(float);
  12330. Quaternion ReadQuaternion();
  12331. int16 ReadShort();
  12332. String ReadString();
  12333. StringHash ReadStringHash();
  12334. uint8 ReadUByte();
  12335. uint ReadUInt();
  12336. uint16 ReadUShort();
  12337. uint ReadVLE();
  12338. Variant ReadVariant();
  12339. VariantMap ReadVariantMap();
  12340. Vector2 ReadVector2();
  12341. Vector3 ReadVector3();
  12342. Vector4 ReadVector4();
  12343. VectorBuffer ReadVectorBuffer(uint);
  12344. void Resize(uint);
  12345. uint Seek(uint);
  12346. void SetData(Deserializer, uint);
  12347. uint Write(Array<uint8>);
  12348. bool WriteBool(bool);
  12349. bool WriteBoundingBox(const BoundingBox&);
  12350. bool WriteByte(int8);
  12351. bool WriteColor(const Color&);
  12352. bool WriteDouble(double);
  12353. bool WriteFileID(const String&);
  12354. bool WriteFloat(float);
  12355. bool WriteInt(int);
  12356. bool WriteIntRect(const IntRect&);
  12357. bool WriteIntVector2(const IntVector2&);
  12358. bool WriteLine(const String&);
  12359. bool WriteMatrix3(const Matrix3&);
  12360. bool WriteMatrix3x4(const Matrix3x4&);
  12361. bool WriteMatrix4(const Matrix4&);
  12362. bool WriteNetID(uint);
  12363. bool WritePackedQuaternion(const Quaternion&);
  12364. bool WritePackedVector3(const Vector3&, float);
  12365. bool WriteQuaternion(const Quaternion&);
  12366. bool WriteShort(int16);
  12367. bool WriteString(const String&);
  12368. bool WriteStringHash(const StringHash&);
  12369. bool WriteUByte(uint8);
  12370. bool WriteUInt(uint);
  12371. bool WriteUShort(uint16);
  12372. bool WriteVLE(uint);
  12373. bool WriteVariant(const Variant&);
  12374. bool WriteVariantMap(const VariantMap&);
  12375. bool WriteVector2(const Vector2&);
  12376. bool WriteVector3(const Vector3&);
  12377. bool WriteVector4(const Vector4&);
  12378. bool WriteVectorBuffer(const VectorBuffer&);
  12379. // Properties:
  12380. /* readonly */
  12381. uint checksum;
  12382. /* readonly */
  12383. bool eof;
  12384. /* readonly */
  12385. String name;
  12386. /* readonly */
  12387. uint position;
  12388. /* readonly */
  12389. uint size;
  12390. };
  12391. class VertexBuffer
  12392. {
  12393. // Methods:
  12394. VectorBuffer GetData();
  12395. bool HasSubscribedToEvent(Object, const String&);
  12396. bool HasSubscribedToEvent(const String&);
  12397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12398. bool SetData(VectorBuffer&);
  12399. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12400. void SetSize(uint, uint, bool = false);
  12401. // Properties:
  12402. /* readonly */
  12403. String category;
  12404. /* readonly */
  12405. bool dynamic;
  12406. /* readonly */
  12407. uint elementMask;
  12408. /* readonly */
  12409. int refs;
  12410. bool shadowed;
  12411. /* readonly */
  12412. StringHash type;
  12413. /* readonly */
  12414. String typeName;
  12415. /* readonly */
  12416. uint vertexCount;
  12417. /* readonly */
  12418. uint vertexSize;
  12419. /* readonly */
  12420. int weakRefs;
  12421. };
  12422. class View3D
  12423. {
  12424. // Methods:
  12425. void AddChild(UIElement);
  12426. void AddTag(const String&);
  12427. void AddTags(const String&, int8 = ';');
  12428. void ApplyAttributes();
  12429. void BringToFront();
  12430. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12431. void DisableLayoutUpdate();
  12432. IntVector2 ElementToScreen(const IntVector2&);
  12433. void EnableLayoutUpdate();
  12434. uint FindChild(UIElement) const;
  12435. Variant GetAttribute(const String&) const;
  12436. ValueAnimation GetAttributeAnimation(const String&) const;
  12437. float GetAttributeAnimationSpeed(const String&) const;
  12438. float GetAttributeAnimationTime(const String&) const;
  12439. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12440. Variant GetAttributeDefault(const String&) const;
  12441. UIElement GetChild(const String&, bool = false) const;
  12442. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12443. Array<UIElement> GetChildren(bool = false) const;
  12444. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12445. UIElement GetElementEventSender() const;
  12446. bool GetInterceptNetworkUpdate(const String&) const;
  12447. uint GetNumChildren(bool) const;
  12448. bool HasSubscribedToEvent(Object, const String&);
  12449. bool HasSubscribedToEvent(const String&);
  12450. bool HasTag(const String&) const;
  12451. void InsertChild(uint, UIElement);
  12452. bool IsInside(IntVector2, bool);
  12453. bool IsInsideCombined(IntVector2, bool);
  12454. bool Load(File, bool = false);
  12455. bool Load(VectorBuffer&, bool = false);
  12456. bool LoadChildXML(XMLFile, XMLFile = null);
  12457. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12458. bool LoadJSON(const JSONValue&, bool = false);
  12459. bool LoadXML(File);
  12460. bool LoadXML(VectorBuffer&);
  12461. bool LoadXML(XMLFile, XMLFile);
  12462. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12463. bool LoadXML(const XMLElement&, bool = false);
  12464. void MarkNetworkUpdate() const;
  12465. void QueueUpdate();
  12466. void Remove();
  12467. void RemoveAllChildren();
  12468. void RemoveAllTags();
  12469. void RemoveAttributeAnimation(const String&);
  12470. void RemoveChild(UIElement, uint = 0);
  12471. void RemoveChild(uint);
  12472. void RemoveInstanceDefault();
  12473. void RemoveObjectAnimation();
  12474. bool RemoveTag(const String&);
  12475. void ResetDeepEnabled();
  12476. void ResetToDefault();
  12477. bool Save(File) const;
  12478. bool Save(VectorBuffer&) const;
  12479. bool SaveJSON(JSONValue&) const;
  12480. bool SaveXML(File, const String& = "\t");
  12481. bool SaveXML(VectorBuffer&, const String& = "\t");
  12482. bool SaveXML(XMLElement&) const;
  12483. IntVector2 ScreenToElement(const IntVector2&);
  12484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12485. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12486. void SetAnimationTime(float);
  12487. bool SetAttribute(const String&, const Variant&);
  12488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12489. void SetAttributeAnimationSpeed(const String&, float);
  12490. void SetAttributeAnimationTime(const String&, float);
  12491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12492. void SetDeepEnabled(bool);
  12493. void SetEnabledRecursive(bool);
  12494. void SetFixedHeight(int);
  12495. void SetFixedSize(int, int);
  12496. void SetFixedWidth(int);
  12497. void SetFullImageRect();
  12498. void SetHoverOffset(int, int);
  12499. void SetInterceptNetworkUpdate(const String&, bool);
  12500. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12501. void SetMaxSize(int, int);
  12502. void SetMinSize(int, int);
  12503. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12504. void SetPosition(int, int);
  12505. void SetSize(int, int);
  12506. bool SetStyle(const String&, XMLFile = null);
  12507. bool SetStyle(const XMLElement&);
  12508. bool SetStyleAuto(XMLFile = null);
  12509. void SetView(Scene, Camera, bool = true);
  12510. void UpdateLayout();
  12511. const Variant& GetVar(const StringHash&);
  12512. // Properties:
  12513. bool animationEnabled;
  12514. /* readonly */
  12515. Array<Variant> attributeDefaults;
  12516. /* readonly */
  12517. Array<AttributeInfo> attributeInfos;
  12518. Array<Variant> attributes;
  12519. bool autoUpdate;
  12520. BlendMode blendMode;
  12521. IntRect border;
  12522. bool bringToBack;
  12523. bool bringToFront;
  12524. /* readonly */
  12525. Node cameraNode;
  12526. /* readonly */
  12527. String category;
  12528. /* readonly */
  12529. IntVector2 childOffset;
  12530. /* readonly */
  12531. Array<UIElement> children;
  12532. IntRect clipBorder;
  12533. bool clipChildren;
  12534. /* writeonly */
  12535. Color color;
  12536. /* readonly */
  12537. bool colorGradient;
  12538. Array<Color> colors;
  12539. /* readonly */
  12540. IntRect combinedScreenRect;
  12541. XMLFile defaultStyle;
  12542. /* readonly */
  12543. Texture2D depthTexture;
  12544. /* readonly */
  12545. float derivedOpacity;
  12546. /* readonly */
  12547. uint dragButtonCombo;
  12548. /* readonly */
  12549. int dragButtonCount;
  12550. uint dragDropMode;
  12551. bool editable;
  12552. bool elementEventSender;
  12553. bool enabled;
  12554. /* readonly */
  12555. bool enabledSelf;
  12556. /* readonly */
  12557. bool fixedHeight;
  12558. bool fixedHeightResizing;
  12559. /* readonly */
  12560. bool fixedSize;
  12561. /* readonly */
  12562. bool fixedWidth;
  12563. bool fixedWidthResizing;
  12564. bool focus;
  12565. FocusMode focusMode;
  12566. uint format;
  12567. int height;
  12568. HorizontalAlignment horizontalAlignment;
  12569. IntVector2 hoverOffset;
  12570. /* readonly */
  12571. bool hovering;
  12572. IntRect imageBorder;
  12573. IntRect imageRect;
  12574. int indent;
  12575. int indentSpacing;
  12576. /* readonly */
  12577. int indentWidth;
  12578. bool internal;
  12579. IntRect layoutBorder;
  12580. Vector2 layoutFlexScale;
  12581. LayoutMode layoutMode;
  12582. int layoutSpacing;
  12583. int maxHeight;
  12584. IntVector2 maxSize;
  12585. int maxWidth;
  12586. int minHeight;
  12587. IntVector2 minSize;
  12588. int minWidth;
  12589. bool modal;
  12590. bool modalAutoDismiss;
  12591. Color modalFrameColor;
  12592. IntVector2 modalFrameSize;
  12593. Color modalShadeColor;
  12594. bool movable;
  12595. String name;
  12596. /* readonly */
  12597. uint numAllChildren;
  12598. /* readonly */
  12599. uint numAttributes;
  12600. /* readonly */
  12601. uint numChildren;
  12602. ObjectAnimation objectAnimation;
  12603. float opacity;
  12604. UIElement parent;
  12605. IntVector2 position;
  12606. int priority;
  12607. /* readonly */
  12608. int refs;
  12609. /* readonly */
  12610. Texture2D renderTexture;
  12611. bool resizable;
  12612. IntRect resizeBorder;
  12613. /* readonly */
  12614. UIElement root;
  12615. /* readonly */
  12616. Scene scene;
  12617. /* readonly */
  12618. IntVector2 screenPosition;
  12619. bool selected;
  12620. IntVector2 size;
  12621. bool sortChildren;
  12622. String style;
  12623. /* readonly */
  12624. Array<String> tags;
  12625. bool temporary;
  12626. Texture texture;
  12627. bool tiled;
  12628. TraversalMode traversalMode;
  12629. /* readonly */
  12630. StringHash type;
  12631. /* readonly */
  12632. String typeName;
  12633. bool useDerivedOpacity;
  12634. /* readonly */
  12635. VariantMap vars;
  12636. VerticalAlignment verticalAlignment;
  12637. /* readonly */
  12638. Viewport viewport;
  12639. bool visible;
  12640. /* readonly */
  12641. bool visibleEffective;
  12642. /* readonly */
  12643. int weakRefs;
  12644. int width;
  12645. };
  12646. class Viewport
  12647. {
  12648. // Methods:
  12649. Ray GetScreenRay(int, int) const;
  12650. bool HasSubscribedToEvent(Object, const String&);
  12651. bool HasSubscribedToEvent(const String&);
  12652. Vector3 ScreenToWorldPoint(int, int, float) const;
  12653. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12654. void SetRenderPath(XMLFile);
  12655. Vector2 WorldToScreenPoint(const Vector3&) const;
  12656. // Properties:
  12657. Camera camera;
  12658. /* readonly */
  12659. String category;
  12660. Camera cullCamera;
  12661. bool drawDebug;
  12662. IntRect rect;
  12663. /* readonly */
  12664. int refs;
  12665. RenderPath renderPath;
  12666. Scene scene;
  12667. /* readonly */
  12668. StringHash type;
  12669. /* readonly */
  12670. String typeName;
  12671. /* readonly */
  12672. int weakRefs;
  12673. };
  12674. class WeakHandle
  12675. {
  12676. // Methods:
  12677. RefCounted Get() const;
  12678. // Properties:
  12679. /* readonly */
  12680. bool expired;
  12681. /* readonly */
  12682. int refs;
  12683. /* readonly */
  12684. int weakRefs;
  12685. };
  12686. class Window
  12687. {
  12688. // Methods:
  12689. void AddChild(UIElement);
  12690. void AddTag(const String&);
  12691. void AddTags(const String&, int8 = ';');
  12692. void ApplyAttributes();
  12693. void BringToFront();
  12694. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12695. void DisableLayoutUpdate();
  12696. IntVector2 ElementToScreen(const IntVector2&);
  12697. void EnableLayoutUpdate();
  12698. uint FindChild(UIElement) const;
  12699. Variant GetAttribute(const String&) const;
  12700. ValueAnimation GetAttributeAnimation(const String&) const;
  12701. float GetAttributeAnimationSpeed(const String&) const;
  12702. float GetAttributeAnimationTime(const String&) const;
  12703. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12704. Variant GetAttributeDefault(const String&) const;
  12705. UIElement GetChild(const String&, bool = false) const;
  12706. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12707. Array<UIElement> GetChildren(bool = false) const;
  12708. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12709. UIElement GetElementEventSender() const;
  12710. bool GetInterceptNetworkUpdate(const String&) const;
  12711. uint GetNumChildren(bool) const;
  12712. bool HasSubscribedToEvent(Object, const String&);
  12713. bool HasSubscribedToEvent(const String&);
  12714. bool HasTag(const String&) const;
  12715. void InsertChild(uint, UIElement);
  12716. bool IsInside(IntVector2, bool);
  12717. bool IsInsideCombined(IntVector2, bool);
  12718. bool Load(File, bool = false);
  12719. bool Load(VectorBuffer&, bool = false);
  12720. bool LoadChildXML(XMLFile, XMLFile = null);
  12721. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12722. bool LoadJSON(const JSONValue&, bool = false);
  12723. bool LoadXML(File);
  12724. bool LoadXML(VectorBuffer&);
  12725. bool LoadXML(XMLFile, XMLFile);
  12726. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12727. bool LoadXML(const XMLElement&, bool = false);
  12728. void MarkNetworkUpdate() const;
  12729. void Remove();
  12730. void RemoveAllChildren();
  12731. void RemoveAllTags();
  12732. void RemoveAttributeAnimation(const String&);
  12733. void RemoveChild(UIElement, uint = 0);
  12734. void RemoveChild(uint);
  12735. void RemoveInstanceDefault();
  12736. void RemoveObjectAnimation();
  12737. bool RemoveTag(const String&);
  12738. void ResetDeepEnabled();
  12739. void ResetToDefault();
  12740. bool Save(File) const;
  12741. bool Save(VectorBuffer&) const;
  12742. bool SaveJSON(JSONValue&) const;
  12743. bool SaveXML(File, const String& = "\t");
  12744. bool SaveXML(VectorBuffer&, const String& = "\t");
  12745. bool SaveXML(XMLElement&) const;
  12746. IntVector2 ScreenToElement(const IntVector2&);
  12747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12748. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12749. void SetAnimationTime(float);
  12750. bool SetAttribute(const String&, const Variant&);
  12751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12752. void SetAttributeAnimationSpeed(const String&, float);
  12753. void SetAttributeAnimationTime(const String&, float);
  12754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12755. void SetDeepEnabled(bool);
  12756. void SetEnabledRecursive(bool);
  12757. void SetFixedHeight(int);
  12758. void SetFixedSize(int, int);
  12759. void SetFixedWidth(int);
  12760. void SetFullImageRect();
  12761. void SetHoverOffset(int, int);
  12762. void SetInterceptNetworkUpdate(const String&, bool);
  12763. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12764. void SetMaxSize(int, int);
  12765. void SetMinSize(int, int);
  12766. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12767. void SetPosition(int, int);
  12768. void SetSize(int, int);
  12769. bool SetStyle(const String&, XMLFile = null);
  12770. bool SetStyle(const XMLElement&);
  12771. bool SetStyleAuto(XMLFile = null);
  12772. void UpdateLayout();
  12773. const Variant& GetVar(const StringHash&);
  12774. // Properties:
  12775. bool animationEnabled;
  12776. /* readonly */
  12777. Array<Variant> attributeDefaults;
  12778. /* readonly */
  12779. Array<AttributeInfo> attributeInfos;
  12780. Array<Variant> attributes;
  12781. BlendMode blendMode;
  12782. IntRect border;
  12783. bool bringToBack;
  12784. bool bringToFront;
  12785. /* readonly */
  12786. String category;
  12787. /* readonly */
  12788. IntVector2 childOffset;
  12789. /* readonly */
  12790. Array<UIElement> children;
  12791. IntRect clipBorder;
  12792. bool clipChildren;
  12793. /* writeonly */
  12794. Color color;
  12795. /* readonly */
  12796. bool colorGradient;
  12797. Array<Color> colors;
  12798. /* readonly */
  12799. IntRect combinedScreenRect;
  12800. XMLFile defaultStyle;
  12801. /* readonly */
  12802. float derivedOpacity;
  12803. /* readonly */
  12804. uint dragButtonCombo;
  12805. /* readonly */
  12806. int dragButtonCount;
  12807. uint dragDropMode;
  12808. bool editable;
  12809. bool elementEventSender;
  12810. bool enabled;
  12811. /* readonly */
  12812. bool enabledSelf;
  12813. /* readonly */
  12814. bool fixedHeight;
  12815. bool fixedHeightResizing;
  12816. /* readonly */
  12817. bool fixedSize;
  12818. /* readonly */
  12819. bool fixedWidth;
  12820. bool fixedWidthResizing;
  12821. bool focus;
  12822. FocusMode focusMode;
  12823. int height;
  12824. HorizontalAlignment horizontalAlignment;
  12825. IntVector2 hoverOffset;
  12826. /* readonly */
  12827. bool hovering;
  12828. IntRect imageBorder;
  12829. IntRect imageRect;
  12830. int indent;
  12831. int indentSpacing;
  12832. /* readonly */
  12833. int indentWidth;
  12834. bool internal;
  12835. IntRect layoutBorder;
  12836. Vector2 layoutFlexScale;
  12837. LayoutMode layoutMode;
  12838. int layoutSpacing;
  12839. int maxHeight;
  12840. IntVector2 maxSize;
  12841. int maxWidth;
  12842. int minHeight;
  12843. IntVector2 minSize;
  12844. int minWidth;
  12845. bool modal;
  12846. bool modalAutoDismiss;
  12847. Color modalFrameColor;
  12848. IntVector2 modalFrameSize;
  12849. Color modalShadeColor;
  12850. bool movable;
  12851. String name;
  12852. /* readonly */
  12853. uint numAllChildren;
  12854. /* readonly */
  12855. uint numAttributes;
  12856. /* readonly */
  12857. uint numChildren;
  12858. ObjectAnimation objectAnimation;
  12859. float opacity;
  12860. UIElement parent;
  12861. IntVector2 position;
  12862. int priority;
  12863. /* readonly */
  12864. int refs;
  12865. bool resizable;
  12866. IntRect resizeBorder;
  12867. /* readonly */
  12868. UIElement root;
  12869. /* readonly */
  12870. IntVector2 screenPosition;
  12871. bool selected;
  12872. IntVector2 size;
  12873. bool sortChildren;
  12874. String style;
  12875. /* readonly */
  12876. Array<String> tags;
  12877. bool temporary;
  12878. Texture texture;
  12879. bool tiled;
  12880. TraversalMode traversalMode;
  12881. /* readonly */
  12882. StringHash type;
  12883. /* readonly */
  12884. String typeName;
  12885. bool useDerivedOpacity;
  12886. /* readonly */
  12887. VariantMap vars;
  12888. VerticalAlignment verticalAlignment;
  12889. bool visible;
  12890. /* readonly */
  12891. bool visibleEffective;
  12892. /* readonly */
  12893. int weakRefs;
  12894. int width;
  12895. };
  12896. class XMLElement
  12897. {
  12898. // Methods:
  12899. XMLElement CreateChild(const String&);
  12900. String GetAttribute(const String& = String ( )) const;
  12901. String GetAttributeLower(const String&) const;
  12902. Array<String> GetAttributeNames() const;
  12903. String GetAttributeUpper(const String&) const;
  12904. bool GetBool(const String&) const;
  12905. BoundingBox GetBoundingBox() const;
  12906. XMLElement GetChild(const String& = String ( )) const;
  12907. Color GetColor(const String&) const;
  12908. double GetDouble(const String&) const;
  12909. float GetFloat(const String&) const;
  12910. int GetInt(const String&) const;
  12911. IntRect GetIntRect(const String&) const;
  12912. IntVector2 GetIntVector2(const String&) const;
  12913. Matrix3 GetMatrix3(const String&) const;
  12914. Matrix3x4 GetMatrix3x4(const String&) const;
  12915. Matrix4 GetMatrix4(const String&) const;
  12916. XMLElement GetNext(const String& = String ( )) const;
  12917. Quaternion GetQuaternion(const String&) const;
  12918. ResourceRef GetResourceRef() const;
  12919. ResourceRefList GetResourceRefList() const;
  12920. uint GetUInt(const String&) const;
  12921. String GetValue() const;
  12922. Variant GetVariant() const;
  12923. VariantMap GetVariantMap() const;
  12924. Array<Variant> GetVariantVector() const;
  12925. Vector2 GetVector2(const String&) const;
  12926. Vector3 GetVector3(const String&) const;
  12927. Vector4 GetVector4(const String&) const;
  12928. Variant GetVectorVariant(const String&) const;
  12929. bool HasAttribute(const String&) const;
  12930. bool HasChild(const String&) const;
  12931. bool RemoveAttribute(const String& = String ( ));
  12932. bool RemoveChild(const String&);
  12933. bool RemoveChild(const XMLElement&);
  12934. bool RemoveChildren(const String& = String ( ));
  12935. XPathResultSet Select(const String&);
  12936. XPathResultSet SelectPrepared(const XPathQuery&);
  12937. XMLElement SelectSingle(const String&);
  12938. XMLElement SelectSinglePrepared(const XPathQuery&);
  12939. bool SetAttribute(const String&);
  12940. bool SetAttribute(const String&, const String&);
  12941. bool SetBool(const String&, bool);
  12942. bool SetBoundingBox(const BoundingBox&);
  12943. bool SetColor(const String&, const Color&);
  12944. bool SetDouble(const String&, double);
  12945. bool SetFloat(const String&, float);
  12946. bool SetInt(const String&, int);
  12947. bool SetIntRect(const String&, const IntRect&);
  12948. bool SetIntVector2(const String&, const IntVector2&);
  12949. bool SetMatrix3(const String&, const Matrix3&);
  12950. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12951. bool SetMatrix4(const String&, const Matrix4&);
  12952. bool SetQuaternion(const String&, const Quaternion&);
  12953. bool SetResourceRef(const String&, const ResourceRef&);
  12954. bool SetResourceRefList(const String&, const ResourceRefList&);
  12955. bool SetUInt(const String&, uint);
  12956. bool SetValue(const String&);
  12957. bool SetVariant(const Variant&);
  12958. bool SetVariantMap(const VariantMap&);
  12959. bool SetVariantVector(Array<Variant>);
  12960. bool SetVector2(const String&, const Vector2&);
  12961. bool SetVector3(const String&, const Vector3&);
  12962. bool SetVector4(const String&, const Vector4&);
  12963. bool SetVectorVariant(const String&, const Variant&);
  12964. // Properties:
  12965. /* readonly */
  12966. XMLFile file;
  12967. /* readonly */
  12968. bool isNull;
  12969. /* readonly */
  12970. String name;
  12971. /* readonly */
  12972. XMLElement nextResult;
  12973. /* readonly */
  12974. bool notNull;
  12975. /* readonly */
  12976. uint numAttributes;
  12977. /* readonly */
  12978. XMLElement parent;
  12979. String value;
  12980. };
  12981. class XMLFile
  12982. {
  12983. // Methods:
  12984. XMLElement CreateRoot(const String&);
  12985. bool FromString(const String&);
  12986. XMLElement GetRoot(const String& = String ( ));
  12987. bool HasSubscribedToEvent(Object, const String&);
  12988. bool HasSubscribedToEvent(const String&);
  12989. bool Load(File);
  12990. bool Load(VectorBuffer&);
  12991. void Patch(XMLElement);
  12992. void Patch(XMLFile);
  12993. bool Save(File) const;
  12994. bool Save(File, const String&) const;
  12995. bool Save(VectorBuffer&) const;
  12996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12997. String ToString(const String& = String ( "\t" )) const;
  12998. // Properties:
  12999. /* readonly */
  13000. String category;
  13001. /* readonly */
  13002. uint memoryUse;
  13003. String name;
  13004. /* readonly */
  13005. int refs;
  13006. /* readonly */
  13007. XMLElement root;
  13008. /* readonly */
  13009. StringHash type;
  13010. /* readonly */
  13011. String typeName;
  13012. /* readonly */
  13013. uint useTimer;
  13014. /* readonly */
  13015. int weakRefs;
  13016. };
  13017. class XPathQuery
  13018. {
  13019. // Methods:
  13020. void Bind();
  13021. void Clear();
  13022. XPathResultSet Evaluate(XMLElement);
  13023. bool EvaluateToBool(XMLElement);
  13024. float EvaluateToFloat(XMLElement);
  13025. String EvaluateToString(XMLElement);
  13026. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13027. bool SetVariable(const String&, bool);
  13028. bool SetVariable(const String&, const String&);
  13029. bool SetVariable(const String&, const XPathResultSet&);
  13030. bool SetVariable(const String&, float);
  13031. // Properties:
  13032. String query;
  13033. };
  13034. class XPathResultSet
  13035. {
  13036. // Properties:
  13037. /* readonly */
  13038. bool empty;
  13039. /* readonly */
  13040. XMLElement firstResult;
  13041. /* readonly */
  13042. uint size;
  13043. };
  13044. class Zone
  13045. {
  13046. // Methods:
  13047. void ApplyAttributes();
  13048. void DrawDebugGeometry(DebugRenderer, bool);
  13049. Variant GetAttribute(const String&) const;
  13050. ValueAnimation GetAttributeAnimation(const String&) const;
  13051. float GetAttributeAnimationSpeed(const String&) const;
  13052. float GetAttributeAnimationTime(const String&) const;
  13053. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13054. Variant GetAttributeDefault(const String&) const;
  13055. bool GetInterceptNetworkUpdate(const String&) const;
  13056. bool HasSubscribedToEvent(Object, const String&);
  13057. bool HasSubscribedToEvent(const String&);
  13058. bool IsInView(Camera) const;
  13059. bool Load(File, bool = false);
  13060. bool Load(VectorBuffer&, bool = false);
  13061. bool LoadJSON(const JSONValue&, bool = false);
  13062. bool LoadXML(const XMLElement&, bool = false);
  13063. void MarkNetworkUpdate() const;
  13064. void Remove();
  13065. void RemoveAttributeAnimation(const String&);
  13066. void RemoveInstanceDefault();
  13067. void RemoveObjectAnimation();
  13068. void ResetToDefault();
  13069. bool Save(File) const;
  13070. bool Save(VectorBuffer&) const;
  13071. bool SaveJSON(JSONValue&) const;
  13072. bool SaveXML(XMLElement&) const;
  13073. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13074. void SetAnimationTime(float);
  13075. bool SetAttribute(const String&, const Variant&);
  13076. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13077. void SetAttributeAnimationSpeed(const String&, float);
  13078. void SetAttributeAnimationTime(const String&, float);
  13079. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13080. void SetInterceptNetworkUpdate(const String&, bool);
  13081. // Properties:
  13082. Color ambientColor;
  13083. /* readonly */
  13084. Color ambientEndColor;
  13085. bool ambientGradient;
  13086. /* readonly */
  13087. Color ambientStartColor;
  13088. bool animationEnabled;
  13089. /* readonly */
  13090. Array<Variant> attributeDefaults;
  13091. /* readonly */
  13092. Array<AttributeInfo> attributeInfos;
  13093. Array<Variant> attributes;
  13094. BoundingBox boundingBox;
  13095. bool castShadows;
  13096. /* readonly */
  13097. String category;
  13098. float drawDistance;
  13099. bool enabled;
  13100. /* readonly */
  13101. bool enabledEffective;
  13102. Color fogColor;
  13103. float fogEnd;
  13104. float fogHeight;
  13105. float fogHeightScale;
  13106. float fogStart;
  13107. bool heightFog;
  13108. /* readonly */
  13109. uint id;
  13110. /* readonly */
  13111. bool inView;
  13112. /* readonly */
  13113. Matrix3x4 inverseWorldTransform;
  13114. uint lightMask;
  13115. float lodBias;
  13116. uint maxLights;
  13117. /* readonly */
  13118. Node node;
  13119. /* readonly */
  13120. uint numAttributes;
  13121. ObjectAnimation objectAnimation;
  13122. bool occludee;
  13123. bool occluder;
  13124. bool override;
  13125. int priority;
  13126. /* readonly */
  13127. int refs;
  13128. float shadowDistance;
  13129. uint shadowMask;
  13130. bool temporary;
  13131. /* readonly */
  13132. StringHash type;
  13133. /* readonly */
  13134. String typeName;
  13135. uint viewMask;
  13136. /* readonly */
  13137. int weakRefs;
  13138. /* readonly */
  13139. BoundingBox worldBoundingBox;
  13140. uint zoneMask;
  13141. Texture zoneTexture;
  13142. };
  13143. // Enumerations
  13144. enum AnimationBlendMode
  13145. {
  13146. ABM_LERP,
  13147. ABM_ADDITIVE,
  13148. };
  13149. enum BlendMode
  13150. {
  13151. BLEND_REPLACE,
  13152. BLEND_ADD,
  13153. BLEND_MULTIPLY,
  13154. BLEND_ALPHA,
  13155. BLEND_ADDALPHA,
  13156. BLEND_PREMULALPHA,
  13157. BLEND_INVDESTALPHA,
  13158. BLEND_SUBTRACT,
  13159. BLEND_SUBTRACTALPHA,
  13160. };
  13161. enum BodyType2D
  13162. {
  13163. BT_STATIC,
  13164. BT_KINEMATIC,
  13165. BT_DYNAMIC,
  13166. };
  13167. enum CollisionEventMode
  13168. {
  13169. COLLISION_NEVER,
  13170. COLLISION_ACTIVE,
  13171. COLLISION_ALWAYS,
  13172. };
  13173. enum CompareMode
  13174. {
  13175. CMP_ALWAYS,
  13176. CMP_EQUAL,
  13177. CMP_NOTEQUAL,
  13178. CMP_LESS,
  13179. CMP_LESSEQUAL,
  13180. CMP_GREATER,
  13181. CMP_GREATEREQUAL,
  13182. };
  13183. enum CompressedFormat
  13184. {
  13185. CF_NONE,
  13186. CF_RGBA,
  13187. CF_DXT1,
  13188. CF_DXT3,
  13189. CF_DXT5,
  13190. CF_ETC1,
  13191. CF_PVRTC_RGB_2BPP,
  13192. CF_PVRTC_RGBA_2BPP,
  13193. CF_PVRTC_RGB_4BPP,
  13194. CF_PVRTC_RGBA_4BPP,
  13195. };
  13196. enum ConstraintType
  13197. {
  13198. CONSTRAINT_POINT,
  13199. CONSTRAINT_HINGE,
  13200. CONSTRAINT_SLIDER,
  13201. CONSTRAINT_CONETWIST,
  13202. };
  13203. enum Corner
  13204. {
  13205. C_TOPLEFT,
  13206. C_TOPRIGHT,
  13207. C_BOTTOMLEFT,
  13208. C_BOTTOMRIGHT,
  13209. };
  13210. enum CreateMode
  13211. {
  13212. REPLICATED,
  13213. LOCAL,
  13214. };
  13215. enum CrowdAgentRequestedTarget
  13216. {
  13217. CA_REQUESTEDTARGET_NONE,
  13218. CA_REQUESTEDTARGET_POSITION,
  13219. CA_REQUESTEDTARGET_VELOCITY,
  13220. };
  13221. enum CrowdAgentState
  13222. {
  13223. CA_STATE_INVALID,
  13224. CA_STATE_WALKING,
  13225. CA_STATE_OFFMESH,
  13226. };
  13227. enum CrowdAgentTargetState
  13228. {
  13229. CA_TARGET_NONE,
  13230. CA_TARGET_FAILED,
  13231. CA_TARGET_VALID,
  13232. CA_TARGET_REQUESTING,
  13233. CA_TARGET_WAITINGFORQUEUE,
  13234. CA_TARGET_WAITINGFORPATH,
  13235. CA_TARGET_VELOCITY,
  13236. };
  13237. enum CubeMapFace
  13238. {
  13239. FACE_POSITIVE_X,
  13240. FACE_NEGATIVE_X,
  13241. FACE_POSITIVE_Y,
  13242. FACE_NEGATIVE_Y,
  13243. FACE_POSITIVE_Z,
  13244. FACE_NEGATIVE_Z,
  13245. };
  13246. enum CullMode
  13247. {
  13248. CULL_NONE,
  13249. CULL_CCW,
  13250. CULL_CW,
  13251. };
  13252. enum CursorShape
  13253. {
  13254. CS_NORMAL,
  13255. CS_IBEAM,
  13256. CS_CROSS,
  13257. CS_RESIZEVERTICAL,
  13258. CS_RESIZEDIAGONAL_TOPRIGHT,
  13259. CS_RESIZEHORIZONTAL,
  13260. CS_RESIZEDIAGONAL_TOPLEFT,
  13261. CS_RESIZE_ALL,
  13262. CS_ACCEPTDROP,
  13263. CS_REJECTDROP,
  13264. CS_BUSY,
  13265. CS_BUSY_ARROW,
  13266. };
  13267. enum DBAPI
  13268. {
  13269. DBAPI_SQLITE,
  13270. DBAPI_ODBC,
  13271. };
  13272. enum DumpMode
  13273. {
  13274. DOXYGEN,
  13275. C_HEADER,
  13276. };
  13277. enum EmitterType
  13278. {
  13279. EMITTER_SPHERE,
  13280. EMITTER_BOX,
  13281. };
  13282. enum EmitterType2D
  13283. {
  13284. EMITTER_TYPE_GRAVITY,
  13285. EMITTER_TYPE_RADIAL,
  13286. };
  13287. enum FaceCameraMode
  13288. {
  13289. FC_NONE,
  13290. FC_ROTATE_XYZ,
  13291. FC_ROTATE_Y,
  13292. FC_LOOKAT_XYZ,
  13293. FC_LOOKAT_Y,
  13294. FC_DIRECTION,
  13295. };
  13296. enum FileMode
  13297. {
  13298. FILE_READ,
  13299. FILE_WRITE,
  13300. FILE_READWRITE,
  13301. };
  13302. enum FillMode
  13303. {
  13304. FILL_SOLID,
  13305. FILL_WIREFRAME,
  13306. FILL_POINT,
  13307. };
  13308. enum FocusMode
  13309. {
  13310. FM_NOTFOCUSABLE,
  13311. FM_RESETFOCUS,
  13312. FM_FOCUSABLE,
  13313. FM_FOCUSABLE_DEFOCUSABLE,
  13314. };
  13315. enum HighlightMode
  13316. {
  13317. HM_NEVER,
  13318. HM_FOCUS,
  13319. HM_ALWAYS,
  13320. };
  13321. enum HorizontalAlignment
  13322. {
  13323. HA_LEFT,
  13324. HA_CENTER,
  13325. HA_RIGHT,
  13326. };
  13327. enum HttpRequestState
  13328. {
  13329. HTTP_INITIALIZING,
  13330. HTTP_ERROR,
  13331. HTTP_OPEN,
  13332. HTTP_CLOSED,
  13333. };
  13334. enum InterpMethod
  13335. {
  13336. IM_LINEAR,
  13337. IM_SPLINE,
  13338. };
  13339. enum InterpolationMode
  13340. {
  13341. BEZIER_CURVE,
  13342. CATMULL_ROM_CURVE,
  13343. LINEAR_CURVE,
  13344. CATMULL_ROM_FULL_CURVE,
  13345. };
  13346. enum Intersection
  13347. {
  13348. OUTSIDE,
  13349. INTERSECTS,
  13350. INSIDE,
  13351. };
  13352. enum JSONValueType
  13353. {
  13354. JSON_NULL,
  13355. JSON_BOOL,
  13356. JSON_NUMBER,
  13357. JSON_STRING,
  13358. JSON_ARRAY,
  13359. JSON_OBJECT,
  13360. };
  13361. enum LayoutMode
  13362. {
  13363. LM_FREE,
  13364. LM_HORIZONTAL,
  13365. LM_VERTICAL,
  13366. };
  13367. enum LightType
  13368. {
  13369. LIGHT_DIRECTIONAL,
  13370. LIGHT_SPOT,
  13371. LIGHT_POINT,
  13372. };
  13373. enum LoadMode
  13374. {
  13375. LOAD_RESOURCES_ONLY,
  13376. LOAD_SCENE,
  13377. LOAD_SCENE_AND_RESOURCES,
  13378. };
  13379. enum LoopMode2D
  13380. {
  13381. LM_DEFAULT,
  13382. LM_FORCE_LOOPED,
  13383. LM_FORCE_CLAMPED,
  13384. };
  13385. enum MouseMode
  13386. {
  13387. MM_ABSOLUTE,
  13388. MM_RELATIVE,
  13389. MM_WRAP,
  13390. MM_FREE,
  13391. };
  13392. enum NavigationPushiness
  13393. {
  13394. NAVIGATIONPUSHINESS_LOW,
  13395. NAVIGATIONPUSHINESS_MEDIUM,
  13396. NAVIGATIONPUSHINESS_HIGH,
  13397. };
  13398. enum NavigationQuality
  13399. {
  13400. NAVIGATIONQUALITY_LOW,
  13401. NAVIGATIONQUALITY_MEDIUM,
  13402. NAVIGATIONQUALITY_HIGH,
  13403. };
  13404. enum NavmeshPartitionType
  13405. {
  13406. NAVMESH_PARTITION_WATERSHED,
  13407. NAVMESH_PARTITION_MONOTONE,
  13408. };
  13409. enum Orientation
  13410. {
  13411. O_HORIZONTAL,
  13412. O_VERTICAL,
  13413. };
  13414. enum Orientation2D
  13415. {
  13416. O_ORTHOGONAL,
  13417. O_ISOMETRIC,
  13418. O_STAGGERED,
  13419. };
  13420. enum PassLightingMode
  13421. {
  13422. LIGHTING_UNLIT,
  13423. LIGHTING_PERVERTEX,
  13424. LIGHTING_PERPIXEL,
  13425. };
  13426. enum PrimitiveType
  13427. {
  13428. TRIANGLE_LIST,
  13429. LINE_LIST,
  13430. POINT_LIST,
  13431. TRIANGLE_STRIP,
  13432. LINE_STRIP,
  13433. TRIANGLE_FAN,
  13434. };
  13435. enum RayQueryLevel
  13436. {
  13437. RAY_AABB,
  13438. RAY_OBB,
  13439. RAY_TRIANGLE,
  13440. RAY_TRIANGLE_UV,
  13441. };
  13442. enum RenderCommandSortMode
  13443. {
  13444. SORT_FRONTTOBACK,
  13445. SORT_BACKTOFRONT,
  13446. };
  13447. enum RenderCommandType
  13448. {
  13449. CMD_NONE,
  13450. CMD_CLEAR,
  13451. CMD_SCENEPASS,
  13452. CMD_QUAD,
  13453. CMD_FORWARDLIGHTS,
  13454. CMD_LIGHTVOLUMES,
  13455. CMD_RENDERUI,
  13456. };
  13457. enum RenderSurfaceUpdateMode
  13458. {
  13459. SURFACE_MANUALUPDATE,
  13460. SURFACE_UPDATEVISIBLE,
  13461. SURFACE_UPDATEALWAYS,
  13462. };
  13463. enum RenderTargetSizeMode
  13464. {
  13465. SIZE_ABSOLUTE,
  13466. SIZE_VIEWPORTDIVISOR,
  13467. SIZE_VIEWPORTMULTIPLIER,
  13468. };
  13469. enum ShadowQuality
  13470. {
  13471. SHADOWQUALITY_SIMPLE_16BIT,
  13472. SHADOWQUALITY_SIMPLE_24BIT,
  13473. SHADOWQUALITY_PCF_16BIT,
  13474. SHADOWQUALITY_PCF_24BIT,
  13475. SHADOWQUALITY_VSM,
  13476. SHADOWQUALITY_BLUR_VSM,
  13477. };
  13478. enum ShapeType
  13479. {
  13480. SHAPE_BOX,
  13481. SHAPE_SPHERE,
  13482. SHAPE_STATICPLANE,
  13483. SHAPE_CYLINDER,
  13484. SHAPE_CAPSULE,
  13485. SHAPE_CONE,
  13486. SHAPE_TRIANGLEMESH,
  13487. SHAPE_CONVEXHULL,
  13488. SHAPE_TERRAIN,
  13489. };
  13490. enum TextEffect
  13491. {
  13492. TE_NONE,
  13493. TE_SHADOW,
  13494. TE_STROKE,
  13495. };
  13496. enum TextureAddressMode
  13497. {
  13498. ADDRESS_WRAP,
  13499. ADDRESS_MIRROR,
  13500. ADDRESS_CLAMP,
  13501. ADDRESS_BORDER,
  13502. };
  13503. enum TextureCoordinate
  13504. {
  13505. COORD_U,
  13506. COORD_V,
  13507. COORD_W,
  13508. };
  13509. enum TextureFilterMode
  13510. {
  13511. FILTER_NEAREST,
  13512. FILTER_BILINEAR,
  13513. FILTER_TRILINEAR,
  13514. FILTER_ANISOTROPIC,
  13515. FILTER_DEFAULT,
  13516. };
  13517. enum TextureUnit
  13518. {
  13519. TU_DIFFUSE,
  13520. TU_ALBEDOBUFFER,
  13521. TU_NORMAL,
  13522. TU_NORMALBUFFER,
  13523. TU_SPECULAR,
  13524. TU_EMISSIVE,
  13525. TU_ENVIRONMENT,
  13526. TU_LIGHTRAMP,
  13527. TU_LIGHTSHAPE,
  13528. TU_SHADOWMAP,
  13529. TU_CUSTOM1,
  13530. TU_CUSTOM2,
  13531. TU_VOLUMEMAP,
  13532. TU_FACESELECT,
  13533. TU_INDIRECTION,
  13534. TU_DEPTHBUFFER,
  13535. TU_LIGHTBUFFER,
  13536. TU_ZONE,
  13537. MAX_MATERIAL_TEXTURE_UNITS,
  13538. MAX_TEXTURE_UNITS,
  13539. };
  13540. enum TextureUsage
  13541. {
  13542. TEXTURE_STATIC,
  13543. TEXTURE_DYNAMIC,
  13544. TEXTURE_RENDERTARGET,
  13545. TEXTURE_DEPTHSTENCIL,
  13546. };
  13547. enum TileMapLayerType2D
  13548. {
  13549. LT_TILE_LAYER,
  13550. LT_OBJECT_GROUP,
  13551. LT_IMAGE_LAYER,
  13552. LT_INVALID,
  13553. };
  13554. enum TileObjectType2D
  13555. {
  13556. OT_RECTANGLE,
  13557. OT_ELLIPSE,
  13558. OT_POLYGON,
  13559. OT_POLYLINE,
  13560. OT_TILE,
  13561. OT_INVALID,
  13562. };
  13563. enum TransformSpace
  13564. {
  13565. TS_LOCAL,
  13566. TS_PARENT,
  13567. TS_WORLD,
  13568. };
  13569. enum TraversalMode
  13570. {
  13571. TM_BREADTH_FIRST,
  13572. TM_DEPTH_FIRST,
  13573. };
  13574. enum VariantType
  13575. {
  13576. VAR_NONE,
  13577. VAR_INT,
  13578. VAR_BOOL,
  13579. VAR_FLOAT,
  13580. VAR_VECTOR2,
  13581. VAR_VECTOR3,
  13582. VAR_VECTOR4,
  13583. VAR_QUATERNION,
  13584. VAR_COLOR,
  13585. VAR_STRING,
  13586. VAR_BUFFER,
  13587. VAR_VOIDPTR,
  13588. VAR_RESOURCEREF,
  13589. VAR_RESOURCEREFLIST,
  13590. VAR_VARIANTVECTOR,
  13591. VAR_VARIANTMAP,
  13592. VAR_INTRECT,
  13593. VAR_INTVECTOR2,
  13594. VAR_PTR,
  13595. VAR_MATRIX3,
  13596. VAR_MATRIX3X4,
  13597. VAR_MATRIX4,
  13598. VAR_DOUBLE,
  13599. VAR_STRINGVECTOR,
  13600. };
  13601. enum VerticalAlignment
  13602. {
  13603. VA_TOP,
  13604. VA_CENTER,
  13605. VA_BOTTOM,
  13606. };
  13607. enum WrapMode
  13608. {
  13609. WM_LOOP,
  13610. WM_ONCE,
  13611. WM_CLAMP,
  13612. };
  13613. // Global functions
  13614. float Abs(float);
  13615. float Acos(float);
  13616. String AddTrailingSlash(const String&);
  13617. float Asin(float);
  13618. float Atan(float);
  13619. float Atan2(float, float);
  13620. float Ceil(float);
  13621. float Clamp(float, float, float);
  13622. int Clamp(int, int, int);
  13623. void ClearDelayedExecute(const String& = String ( ));
  13624. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13625. float Cos(float);
  13626. uint CountSetBits(uint);
  13627. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13628. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13629. bool Equals(float, float);
  13630. void ErrorDialog(const String&, const String&);
  13631. float Floor(float);
  13632. uint GetAlphaFormat();
  13633. Array<String> GetArguments();
  13634. String GetConsoleInput();
  13635. uint GetDepthStencilFormat();
  13636. Object GetEventSender();
  13637. String GetExtension(const String&, bool = true);
  13638. String GetFileName(const String&);
  13639. String GetFileNameAndExtension(const String&, bool = false);
  13640. String GetFileSizeString(uint64);
  13641. uint GetFloat16Format();
  13642. uint GetFloat32Format();
  13643. uint GetFormat(const String&);
  13644. Variant GetGlobalVar(const String&);
  13645. String GetInternalPath(const String&);
  13646. uint GetLinearDepthFormat();
  13647. uint GetLuminanceAlphaFormat();
  13648. uint GetLuminanceFormat();
  13649. uint GetMaxBones();
  13650. String GetMiniDumpDir();
  13651. uint GetNumLogicalCPUs();
  13652. uint GetNumPhysicalCPUs();
  13653. Array<String> GetObjectCategories();
  13654. Array<String> GetObjectsByCategory(const String&);
  13655. String GetParentPath(const String&);
  13656. String GetPath(const String&);
  13657. String GetPlatform();
  13658. uint GetRG16Format();
  13659. uint GetRGBA16Format();
  13660. uint GetRGBAFloat16Format();
  13661. uint GetRGBAFloat32Format();
  13662. uint GetRGBAFormat();
  13663. uint GetRGBFormat();
  13664. uint GetRGFloat16Format();
  13665. uint GetRGFloat32Format();
  13666. uint GetRandomSeed();
  13667. uint GetReadableDepthFormat();
  13668. String GetTextureUnitName(TextureUnit);
  13669. bool HasSubscribedToEvent(Object, const String&);
  13670. bool HasSubscribedToEvent(const String&);
  13671. bool IsAbsolutePath(const String&);
  13672. bool IsAlpha(uint);
  13673. bool IsDigit(uint);
  13674. bool IsNaN(float);
  13675. bool IsPowerOfTwo(uint);
  13676. String Join(Array<String>&, const String&);
  13677. float Lerp(float, float, float);
  13678. void MarkNetworkUpdate();
  13679. float Max(float, float);
  13680. int Max(int, int);
  13681. float Min(float, float);
  13682. int Min(int, int);
  13683. float Mod(float, float);
  13684. uint NextPowerOfTwo(uint);
  13685. void OpenConsoleWindow();
  13686. float Pow(float, float);
  13687. void Print(bool, bool = false);
  13688. void Print(const String&, bool = false);
  13689. void Print(const Variant&, bool = false);
  13690. void Print(float, bool = false);
  13691. void Print(int, bool = false);
  13692. void Print(uint, bool = false);
  13693. void PrintCallStack(bool = false);
  13694. float Random();
  13695. float Random(float);
  13696. float Random(float, float);
  13697. int RandomInt();
  13698. int RandomInt(int);
  13699. int RandomInt(int, int);
  13700. float RandomNormal(float, float);
  13701. void Remove();
  13702. String RemoveTrailingSlash(const String&);
  13703. String ReplaceExtension(const String&, const String&);
  13704. uint SDBMHash(uint, uint8);
  13705. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13706. void SetGlobalVar(const String&, Variant&);
  13707. void SetMiniDumpDir(const String&);
  13708. void SetRandomSeed(uint);
  13709. float Sign(float);
  13710. float Sin(float);
  13711. float SmoothStep(float, float, float);
  13712. float Sqrt(float);
  13713. const String& GetTypeName(StringHash);
  13714. void SubscribeToEvent(Object, const String&, const String&);
  13715. void SubscribeToEvent(const String&, const String&);
  13716. float Tan(float);
  13717. uint ToLower(uint);
  13718. String ToStringHex(int);
  13719. uint ToUpper(uint);
  13720. void UnsubscribeFromAllEvents();
  13721. void UnsubscribeFromAllEventsExcept(Array<String>);
  13722. void UnsubscribeFromEvent(Object, const String&);
  13723. void UnsubscribeFromEvent(const String&);
  13724. void UnsubscribeFromEvents(Object);
  13725. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13726. // Global properties
  13727. DBAPI DBAPI;
  13728. Audio audio;
  13729. ResourceCache cache;
  13730. Console console;
  13731. Database database;
  13732. DebugHud debugHud;
  13733. DebugRenderer debugRenderer;
  13734. Engine engine;
  13735. FileSystem fileSystem;
  13736. VariantMap globalVars;
  13737. Graphics graphics;
  13738. Input input;
  13739. Localization localization;
  13740. Log log;
  13741. Network network;
  13742. Node node;
  13743. Octree octree;
  13744. PhysicsWorld physicsWorld;
  13745. PhysicsWorld2D physicsWorld2D;
  13746. Renderer renderer;
  13747. ResourceCache resourceCache;
  13748. Scene scene;
  13749. Script script;
  13750. ScriptFile scriptFile;
  13751. ScriptInstance self;
  13752. Time time;
  13753. UI ui;
  13754. // Global constants
  13755. uint AM_COMPONENTID;
  13756. uint AM_DEFAULT;
  13757. uint AM_FILE;
  13758. uint AM_LATESTDATA;
  13759. uint AM_NET;
  13760. uint AM_NODEID;
  13761. uint AM_NODEIDVECTOR;
  13762. uint AM_NOEDIT;
  13763. Color BLACK;
  13764. Color BLUE;
  13765. uint8 CHANNEL_POSITION;
  13766. uint8 CHANNEL_ROTATION;
  13767. uint8 CHANNEL_SCALE;
  13768. uint CLEAR_COLOR;
  13769. uint CLEAR_DEPTH;
  13770. uint CLEAR_STENCIL;
  13771. int CONTROLLER_AXIS_LEFTX;
  13772. int CONTROLLER_AXIS_LEFTY;
  13773. int CONTROLLER_AXIS_RIGHTX;
  13774. int CONTROLLER_AXIS_RIGHTY;
  13775. int CONTROLLER_AXIS_TRIGGERLEFT;
  13776. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13777. int CONTROLLER_BUTTON_A;
  13778. int CONTROLLER_BUTTON_B;
  13779. int CONTROLLER_BUTTON_BACK;
  13780. int CONTROLLER_BUTTON_DPAD_DOWN;
  13781. int CONTROLLER_BUTTON_DPAD_LEFT;
  13782. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13783. int CONTROLLER_BUTTON_DPAD_UP;
  13784. int CONTROLLER_BUTTON_GUIDE;
  13785. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13786. int CONTROLLER_BUTTON_LEFTSTICK;
  13787. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13788. int CONTROLLER_BUTTON_RIGHTSTICK;
  13789. int CONTROLLER_BUTTON_START;
  13790. int CONTROLLER_BUTTON_X;
  13791. int CONTROLLER_BUTTON_Y;
  13792. Color CYAN;
  13793. uint DD_DISABLED;
  13794. uint DD_SOURCE;
  13795. uint DD_SOURCE_AND_TARGET;
  13796. uint DD_TARGET;
  13797. uint DEBUGHUD_SHOW_ALL;
  13798. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13799. uint DEBUGHUD_SHOW_MEMORY;
  13800. uint DEBUGHUD_SHOW_MODE;
  13801. uint DEBUGHUD_SHOW_NONE;
  13802. uint DEBUGHUD_SHOW_PROFILER;
  13803. uint DEBUGHUD_SHOW_STATS;
  13804. uint DEFAULT_LIGHTMASK;
  13805. uint DEFAULT_VIEWMASK;
  13806. uint DRAWABLE_ANY;
  13807. uint DRAWABLE_GEOMETRY;
  13808. uint DRAWABLE_GEOMETRY2D;
  13809. uint DRAWABLE_LIGHT;
  13810. uint DRAWABLE_ZONE;
  13811. uint FIRST_LOCAL_ID;
  13812. uint FIRST_REPLICATED_ID;
  13813. Color GRAY;
  13814. Color GREEN;
  13815. int HAT_CENTER;
  13816. int HAT_DOWN;
  13817. int HAT_LEFT;
  13818. int HAT_RIGHT;
  13819. int HAT_UP;
  13820. int KEY_0;
  13821. int KEY_1;
  13822. int KEY_2;
  13823. int KEY_3;
  13824. int KEY_4;
  13825. int KEY_5;
  13826. int KEY_6;
  13827. int KEY_7;
  13828. int KEY_8;
  13829. int KEY_9;
  13830. int KEY_A;
  13831. int KEY_ALT;
  13832. int KEY_APPLICATION;
  13833. int KEY_B;
  13834. int KEY_BACKSPACE;
  13835. int KEY_C;
  13836. int KEY_CAPSLOCK;
  13837. int KEY_CTRL;
  13838. int KEY_D;
  13839. int KEY_DELETE;
  13840. int KEY_DOWN;
  13841. int KEY_E;
  13842. int KEY_END;
  13843. int KEY_ESC;
  13844. int KEY_F;
  13845. int KEY_F1;
  13846. int KEY_F10;
  13847. int KEY_F11;
  13848. int KEY_F12;
  13849. int KEY_F13;
  13850. int KEY_F14;
  13851. int KEY_F15;
  13852. int KEY_F16;
  13853. int KEY_F17;
  13854. int KEY_F18;
  13855. int KEY_F19;
  13856. int KEY_F2;
  13857. int KEY_F20;
  13858. int KEY_F21;
  13859. int KEY_F22;
  13860. int KEY_F23;
  13861. int KEY_F24;
  13862. int KEY_F3;
  13863. int KEY_F4;
  13864. int KEY_F5;
  13865. int KEY_F6;
  13866. int KEY_F7;
  13867. int KEY_F8;
  13868. int KEY_F9;
  13869. int KEY_G;
  13870. int KEY_GUI;
  13871. int KEY_H;
  13872. int KEY_HOME;
  13873. int KEY_I;
  13874. int KEY_INSERT;
  13875. int KEY_J;
  13876. int KEY_K;
  13877. int KEY_KP_0;
  13878. int KEY_KP_1;
  13879. int KEY_KP_2;
  13880. int KEY_KP_3;
  13881. int KEY_KP_4;
  13882. int KEY_KP_5;
  13883. int KEY_KP_6;
  13884. int KEY_KP_7;
  13885. int KEY_KP_8;
  13886. int KEY_KP_9;
  13887. int KEY_KP_DIVIDE;
  13888. int KEY_KP_ENTER;
  13889. int KEY_KP_MINUS;
  13890. int KEY_KP_MULTIPLY;
  13891. int KEY_KP_PERIOD;
  13892. int KEY_KP_PLUS;
  13893. int KEY_L;
  13894. int KEY_LALT;
  13895. int KEY_LCTRL;
  13896. int KEY_LEFT;
  13897. int KEY_LGUI;
  13898. int KEY_LSHIFT;
  13899. int KEY_M;
  13900. int KEY_N;
  13901. int KEY_NUMLOCKCLEAR;
  13902. int KEY_O;
  13903. int KEY_P;
  13904. int KEY_PAGEDOWN;
  13905. int KEY_PAGEUP;
  13906. int KEY_PAUSE;
  13907. int KEY_PRINTSCREEN;
  13908. int KEY_Q;
  13909. int KEY_R;
  13910. int KEY_RALT;
  13911. int KEY_RCTRL;
  13912. int KEY_RETURN;
  13913. int KEY_RETURN2;
  13914. int KEY_RGUI;
  13915. int KEY_RIGHT;
  13916. int KEY_RSHIFT;
  13917. int KEY_S;
  13918. int KEY_SCROLLLOCK;
  13919. int KEY_SELECT;
  13920. int KEY_SHIFT;
  13921. int KEY_SPACE;
  13922. int KEY_T;
  13923. int KEY_TAB;
  13924. int KEY_U;
  13925. int KEY_UP;
  13926. int KEY_V;
  13927. int KEY_W;
  13928. int KEY_X;
  13929. int KEY_Y;
  13930. int KEY_Z;
  13931. uint LAST_LOCAL_ID;
  13932. uint LAST_REPLICATED_ID;
  13933. int LOG_DEBUG;
  13934. int LOG_ERROR;
  13935. int LOG_INFO;
  13936. int LOG_NONE;
  13937. int LOG_WARNING;
  13938. Color MAGENTA;
  13939. uint MASK_BLENDINDICES;
  13940. uint MASK_BLENDWEIGHTS;
  13941. uint MASK_COLOR;
  13942. uint MASK_CUBETEXCOORD1;
  13943. uint MASK_CUBETEXCOORD2;
  13944. uint MASK_DEFAULT;
  13945. uint MASK_INSTANCEMATRIX1;
  13946. uint MASK_INSTANCEMATRIX2;
  13947. uint MASK_INSTANCEMATRIX3;
  13948. uint MASK_NONE;
  13949. uint MASK_NORMAL;
  13950. uint MASK_OBJECTINDEX;
  13951. uint MASK_POSITION;
  13952. uint MASK_TANGENT;
  13953. uint MASK_TEXCOORD1;
  13954. uint MASK_TEXCOORD2;
  13955. int MOUSEB_LEFT;
  13956. int MOUSEB_MIDDLE;
  13957. int MOUSEB_RIGHT;
  13958. float M_DEGTORAD;
  13959. float M_DEGTORAD_2;
  13960. float M_EPSILON;
  13961. float M_HALF_PI;
  13962. float M_INFINITY;
  13963. float M_LARGE_EPSILON;
  13964. float M_LARGE_VALUE;
  13965. int M_MAX_INT;
  13966. uint M_MAX_UNSIGNED;
  13967. int M_MIN_INT;
  13968. uint M_MIN_UNSIGNED;
  13969. float M_PI;
  13970. float M_RADTODEG;
  13971. float PIXEL_SIZE;
  13972. int QUALITY_HIGH;
  13973. int QUALITY_LOW;
  13974. int QUALITY_MAX;
  13975. int QUALITY_MEDIUM;
  13976. int QUAL_ALT;
  13977. int QUAL_ANY;
  13978. int QUAL_CTRL;
  13979. int QUAL_SHIFT;
  13980. Color RED;
  13981. int SCANCODE_0;
  13982. int SCANCODE_1;
  13983. int SCANCODE_2;
  13984. int SCANCODE_3;
  13985. int SCANCODE_4;
  13986. int SCANCODE_5;
  13987. int SCANCODE_6;
  13988. int SCANCODE_7;
  13989. int SCANCODE_8;
  13990. int SCANCODE_9;
  13991. int SCANCODE_A;
  13992. int SCANCODE_AC_BACK;
  13993. int SCANCODE_AC_BOOKMARKS;
  13994. int SCANCODE_AC_FORWARD;
  13995. int SCANCODE_AC_HOME;
  13996. int SCANCODE_AC_REFRESH;
  13997. int SCANCODE_AC_SEARCH;
  13998. int SCANCODE_AC_STOP;
  13999. int SCANCODE_AGAIN;
  14000. int SCANCODE_ALT;
  14001. int SCANCODE_ALTERASE;
  14002. int SCANCODE_APOSTROPHE;
  14003. int SCANCODE_APP1;
  14004. int SCANCODE_APP2;
  14005. int SCANCODE_APPLICATION;
  14006. int SCANCODE_AUDIOMUTE;
  14007. int SCANCODE_AUDIONEXT;
  14008. int SCANCODE_AUDIOPLAY;
  14009. int SCANCODE_AUDIOPREV;
  14010. int SCANCODE_AUDIOSTOP;
  14011. int SCANCODE_B;
  14012. int SCANCODE_BACKSLASH;
  14013. int SCANCODE_BACKSPACE;
  14014. int SCANCODE_BRIGHTNESSDOWN;
  14015. int SCANCODE_BRIGHTNESSUP;
  14016. int SCANCODE_C;
  14017. int SCANCODE_CALCULATOR;
  14018. int SCANCODE_CANCEL;
  14019. int SCANCODE_CAPSLOCK;
  14020. int SCANCODE_CLEAR;
  14021. int SCANCODE_CLEARAGAIN;
  14022. int SCANCODE_COMMA;
  14023. int SCANCODE_COMPUTER;
  14024. int SCANCODE_COPY;
  14025. int SCANCODE_CRSEL;
  14026. int SCANCODE_CTRL;
  14027. int SCANCODE_CURRENCYSUBUNIT;
  14028. int SCANCODE_CURRENCYUNIT;
  14029. int SCANCODE_CUT;
  14030. int SCANCODE_D;
  14031. int SCANCODE_DECIMALSEPARATOR;
  14032. int SCANCODE_DELETE;
  14033. int SCANCODE_DISPLAYSWITCH;
  14034. int SCANCODE_DOWN;
  14035. int SCANCODE_E;
  14036. int SCANCODE_EJECT;
  14037. int SCANCODE_END;
  14038. int SCANCODE_EQUALS;
  14039. int SCANCODE_ESCAPE;
  14040. int SCANCODE_EXECUTE;
  14041. int SCANCODE_EXSEL;
  14042. int SCANCODE_F;
  14043. int SCANCODE_F1;
  14044. int SCANCODE_F10;
  14045. int SCANCODE_F11;
  14046. int SCANCODE_F12;
  14047. int SCANCODE_F13;
  14048. int SCANCODE_F14;
  14049. int SCANCODE_F15;
  14050. int SCANCODE_F16;
  14051. int SCANCODE_F17;
  14052. int SCANCODE_F18;
  14053. int SCANCODE_F19;
  14054. int SCANCODE_F2;
  14055. int SCANCODE_F20;
  14056. int SCANCODE_F21;
  14057. int SCANCODE_F22;
  14058. int SCANCODE_F23;
  14059. int SCANCODE_F24;
  14060. int SCANCODE_F3;
  14061. int SCANCODE_F4;
  14062. int SCANCODE_F5;
  14063. int SCANCODE_F6;
  14064. int SCANCODE_F7;
  14065. int SCANCODE_F8;
  14066. int SCANCODE_F9;
  14067. int SCANCODE_FIND;
  14068. int SCANCODE_G;
  14069. int SCANCODE_GRAVE;
  14070. int SCANCODE_GUI;
  14071. int SCANCODE_H;
  14072. int SCANCODE_HELP;
  14073. int SCANCODE_HOME;
  14074. int SCANCODE_I;
  14075. int SCANCODE_INSERT;
  14076. int SCANCODE_INTERNATIONAL1;
  14077. int SCANCODE_INTERNATIONAL2;
  14078. int SCANCODE_INTERNATIONAL3;
  14079. int SCANCODE_INTERNATIONAL4;
  14080. int SCANCODE_INTERNATIONAL5;
  14081. int SCANCODE_INTERNATIONAL6;
  14082. int SCANCODE_INTERNATIONAL7;
  14083. int SCANCODE_INTERNATIONAL8;
  14084. int SCANCODE_INTERNATIONAL9;
  14085. int SCANCODE_J;
  14086. int SCANCODE_K;
  14087. int SCANCODE_KBDILLUMDOWN;
  14088. int SCANCODE_KBDILLUMTOGGLE;
  14089. int SCANCODE_KBDILLUMUP;
  14090. int SCANCODE_KP_0;
  14091. int SCANCODE_KP_00;
  14092. int SCANCODE_KP_000;
  14093. int SCANCODE_KP_1;
  14094. int SCANCODE_KP_2;
  14095. int SCANCODE_KP_3;
  14096. int SCANCODE_KP_4;
  14097. int SCANCODE_KP_5;
  14098. int SCANCODE_KP_6;
  14099. int SCANCODE_KP_7;
  14100. int SCANCODE_KP_8;
  14101. int SCANCODE_KP_9;
  14102. int SCANCODE_KP_A;
  14103. int SCANCODE_KP_AMPERSAND;
  14104. int SCANCODE_KP_AT;
  14105. int SCANCODE_KP_B;
  14106. int SCANCODE_KP_BACKSPACE;
  14107. int SCANCODE_KP_BINARY;
  14108. int SCANCODE_KP_C;
  14109. int SCANCODE_KP_CLEAR;
  14110. int SCANCODE_KP_CLEARENTRY;
  14111. int SCANCODE_KP_COLON;
  14112. int SCANCODE_KP_COMMA;
  14113. int SCANCODE_KP_D;
  14114. int SCANCODE_KP_DBLAMPERSAND;
  14115. int SCANCODE_KP_DBLVERTICALBAR;
  14116. int SCANCODE_KP_DECIMAL;
  14117. int SCANCODE_KP_DIVIDE;
  14118. int SCANCODE_KP_E;
  14119. int SCANCODE_KP_ENTER;
  14120. int SCANCODE_KP_EQUALS;
  14121. int SCANCODE_KP_EQUALSAS400;
  14122. int SCANCODE_KP_EXCLAM;
  14123. int SCANCODE_KP_F;
  14124. int SCANCODE_KP_GREATER;
  14125. int SCANCODE_KP_HASH;
  14126. int SCANCODE_KP_HEXADECIMAL;
  14127. int SCANCODE_KP_LEFTBRACE;
  14128. int SCANCODE_KP_LEFTPAREN;
  14129. int SCANCODE_KP_LESS;
  14130. int SCANCODE_KP_MEMADD;
  14131. int SCANCODE_KP_MEMCLEAR;
  14132. int SCANCODE_KP_MEMDIVIDE;
  14133. int SCANCODE_KP_MEMMULTIPLY;
  14134. int SCANCODE_KP_MEMRECALL;
  14135. int SCANCODE_KP_MEMSTORE;
  14136. int SCANCODE_KP_MEMSUBTRACT;
  14137. int SCANCODE_KP_MINUS;
  14138. int SCANCODE_KP_MULTIPLY;
  14139. int SCANCODE_KP_OCTAL;
  14140. int SCANCODE_KP_PERCENT;
  14141. int SCANCODE_KP_PERIOD;
  14142. int SCANCODE_KP_PLUS;
  14143. int SCANCODE_KP_PLUSMINUS;
  14144. int SCANCODE_KP_POWER;
  14145. int SCANCODE_KP_RIGHTBRACE;
  14146. int SCANCODE_KP_RIGHTPAREN;
  14147. int SCANCODE_KP_SPACE;
  14148. int SCANCODE_KP_TAB;
  14149. int SCANCODE_KP_VERTICALBAR;
  14150. int SCANCODE_KP_XOR;
  14151. int SCANCODE_L;
  14152. int SCANCODE_LALT;
  14153. int SCANCODE_LANG1;
  14154. int SCANCODE_LANG2;
  14155. int SCANCODE_LANG3;
  14156. int SCANCODE_LANG4;
  14157. int SCANCODE_LANG5;
  14158. int SCANCODE_LANG6;
  14159. int SCANCODE_LANG7;
  14160. int SCANCODE_LANG8;
  14161. int SCANCODE_LANG9;
  14162. int SCANCODE_LCTRL;
  14163. int SCANCODE_LEFT;
  14164. int SCANCODE_LEFTBRACKET;
  14165. int SCANCODE_LGUI;
  14166. int SCANCODE_LSHIFT;
  14167. int SCANCODE_M;
  14168. int SCANCODE_MAIL;
  14169. int SCANCODE_MEDIASELECT;
  14170. int SCANCODE_MENU;
  14171. int SCANCODE_MINUS;
  14172. int SCANCODE_MODE;
  14173. int SCANCODE_MUTE;
  14174. int SCANCODE_N;
  14175. int SCANCODE_NONUSBACKSLASH;
  14176. int SCANCODE_NONUSHASH;
  14177. int SCANCODE_NUMLOCKCLEAR;
  14178. int SCANCODE_O;
  14179. int SCANCODE_OPER;
  14180. int SCANCODE_OUT;
  14181. int SCANCODE_P;
  14182. int SCANCODE_PAGEDOWN;
  14183. int SCANCODE_PAGEUP;
  14184. int SCANCODE_PASTE;
  14185. int SCANCODE_PAUSE;
  14186. int SCANCODE_PERIOD;
  14187. int SCANCODE_POWER;
  14188. int SCANCODE_PRINTSCREEN;
  14189. int SCANCODE_PRIOR;
  14190. int SCANCODE_Q;
  14191. int SCANCODE_R;
  14192. int SCANCODE_RALT;
  14193. int SCANCODE_RCTRL;
  14194. int SCANCODE_RETURN;
  14195. int SCANCODE_RETURN2;
  14196. int SCANCODE_RGUI;
  14197. int SCANCODE_RIGHT;
  14198. int SCANCODE_RIGHTBRACKET;
  14199. int SCANCODE_RSHIFT;
  14200. int SCANCODE_S;
  14201. int SCANCODE_SCROLLLOCK;
  14202. int SCANCODE_SELECT;
  14203. int SCANCODE_SEMICOLON;
  14204. int SCANCODE_SEPARATOR;
  14205. int SCANCODE_SHIFT;
  14206. int SCANCODE_SLASH;
  14207. int SCANCODE_SLEEP;
  14208. int SCANCODE_SPACE;
  14209. int SCANCODE_STOP;
  14210. int SCANCODE_SYSREQ;
  14211. int SCANCODE_T;
  14212. int SCANCODE_TAB;
  14213. int SCANCODE_THOUSANDSSEPARATOR;
  14214. int SCANCODE_U;
  14215. int SCANCODE_UNDO;
  14216. int SCANCODE_UNKNOWN;
  14217. int SCANCODE_UP;
  14218. int SCANCODE_V;
  14219. int SCANCODE_VOLUMEDOWN;
  14220. int SCANCODE_VOLUMEUP;
  14221. int SCANCODE_W;
  14222. int SCANCODE_WWW;
  14223. int SCANCODE_X;
  14224. int SCANCODE_Y;
  14225. int SCANCODE_Z;
  14226. uint SCAN_DIRS;
  14227. uint SCAN_FILES;
  14228. uint SCAN_HIDDEN;
  14229. String SOUND_AMBIENT;
  14230. String SOUND_EFFECT;
  14231. String SOUND_MASTER;
  14232. String SOUND_MUSIC;
  14233. String SOUND_VOICE;
  14234. Color TRANSPARENT;
  14235. uint VO_DISABLE_OCCLUSION;
  14236. uint VO_DISABLE_SHADOWS;
  14237. uint VO_LOW_MATERIAL_QUALITY;
  14238. uint VO_NONE;
  14239. Color WHITE;
  14240. Color YELLOW;