AngelScriptAPI.h 366 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706
  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. float GetFadeTarget(const String&) const;
  343. float GetFadeTime(const String&) const;
  344. bool GetInterceptNetworkUpdate(const String&) const;
  345. uint8 GetLayer(const String&) const;
  346. float GetLength(const String&) const;
  347. bool GetLooped(const String&) const;
  348. bool GetRemoveOnCompletion(const String&);
  349. float GetSpeed(const String&) const;
  350. float GetTime(const String&) const;
  351. float GetWeight(const String&) const;
  352. bool HasSubscribedToEvent(Object, const String&);
  353. bool HasSubscribedToEvent(const String&);
  354. bool IsAtEnd(const String&) const;
  355. bool IsFadingIn(const String&) const;
  356. bool IsFadingOut(const String&) const;
  357. bool IsPlaying(const String&) const;
  358. bool Load(File, bool = false);
  359. bool Load(VectorBuffer&, bool = false);
  360. bool LoadJSON(const JSONValue&, bool = false);
  361. bool LoadXML(const XMLElement&, bool = false);
  362. void MarkNetworkUpdate() const;
  363. bool Play(const String&, uint8, bool, float = 0.0f);
  364. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  365. void Remove();
  366. void RemoveAttributeAnimation(const String&);
  367. void RemoveInstanceDefault();
  368. void RemoveObjectAnimation();
  369. void ResetToDefault();
  370. bool Save(File) const;
  371. bool Save(VectorBuffer&) const;
  372. bool SaveJSON(JSONValue&) const;
  373. bool SaveXML(XMLElement&) const;
  374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  375. void SetAnimationTime(float);
  376. bool SetAttribute(const String&, const Variant&);
  377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  378. void SetAttributeAnimationSpeed(const String&, float);
  379. void SetAttributeAnimationTime(const String&, float);
  380. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  381. bool SetAutoFade(const String&, float);
  382. void SetInterceptNetworkUpdate(const String&, bool);
  383. bool SetLayer(const String&, uint8);
  384. bool SetLooped(const String&, bool);
  385. bool SetRemoveOnCompletion(const String&, bool);
  386. bool SetSpeed(const String&, float);
  387. bool SetStartBone(const String&, const String&);
  388. bool SetTime(const String&, float);
  389. bool SetWeight(const String&, float);
  390. void Stop(const String&, float = 0.0f);
  391. void StopAll(float = 0.0f);
  392. void StopLayer(uint8, float = 0.0f);
  393. const String& GetStartBone(const String&) const;
  394. // Properties:
  395. bool animationEnabled;
  396. /* readonly */
  397. Array<Variant> attributeDefaults;
  398. /* readonly */
  399. Array<AttributeInfo> attributeInfos;
  400. Array<Variant> attributes;
  401. /* readonly */
  402. String category;
  403. bool enabled;
  404. /* readonly */
  405. bool enabledEffective;
  406. /* readonly */
  407. uint id;
  408. /* readonly */
  409. Node node;
  410. /* readonly */
  411. uint numAttributes;
  412. ObjectAnimation objectAnimation;
  413. /* readonly */
  414. int refs;
  415. bool temporary;
  416. /* readonly */
  417. StringHash type;
  418. /* readonly */
  419. String typeName;
  420. /* readonly */
  421. int weakRefs;
  422. };
  423. class AnimationKeyFrame
  424. {
  425. // Properties:
  426. Vector3 position;
  427. Quaternion rotation;
  428. Vector3 scale;
  429. float time;
  430. };
  431. class AnimationSet2D
  432. {
  433. // Methods:
  434. String GetAnimation(uint) const;
  435. bool HasSubscribedToEvent(Object, const String&);
  436. bool HasSubscribedToEvent(const String&);
  437. bool Load(File);
  438. bool Load(VectorBuffer&);
  439. bool Save(File) const;
  440. bool Save(VectorBuffer&) const;
  441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  442. // Properties:
  443. /* readonly */
  444. String category;
  445. /* readonly */
  446. uint memoryUse;
  447. String name;
  448. /* readonly */
  449. uint numAnimations;
  450. /* readonly */
  451. int refs;
  452. /* readonly */
  453. StringHash type;
  454. /* readonly */
  455. String typeName;
  456. /* readonly */
  457. uint useTimer;
  458. /* readonly */
  459. int weakRefs;
  460. };
  461. class AnimationState
  462. {
  463. // Methods:
  464. void AddTime(float);
  465. void AddWeight(float);
  466. void Apply();
  467. float GetBoneWeight(StringHash) const;
  468. float GetBoneWeight(uint) const;
  469. uint GetTrackIndex(StringHash) const;
  470. uint GetTrackIndex(const String&) const;
  471. void SetBoneWeight(StringHash, float, bool = false);
  472. void SetBoneWeight(const String&, float, bool = false);
  473. void SetBoneWeight(uint, float, bool = false);
  474. // Properties:
  475. /* readonly */
  476. Animation animation;
  477. Array<float> boneWeights;
  478. /* readonly */
  479. bool enabled;
  480. uint8 layer;
  481. /* readonly */
  482. float length;
  483. bool looped;
  484. /* readonly */
  485. AnimatedModel model;
  486. /* readonly */
  487. Node node;
  488. /* readonly */
  489. int refs;
  490. Bone startBone;
  491. float time;
  492. /* readonly */
  493. int weakRefs;
  494. float weight;
  495. };
  496. class AnimationTrack
  497. {
  498. // Methods:
  499. void AddKeyFrame(const AnimationKeyFrame&);
  500. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  501. void RemoveAllKeyFrames();
  502. void RemoveKeyFrame(uint);
  503. // Properties:
  504. uint8 channelMask;
  505. Array<AnimationKeyFrame> keyFrames;
  506. String name;
  507. StringHash nameHash;
  508. /* readonly */
  509. uint numKeyFrames;
  510. };
  511. class AnimationTriggerPoint
  512. {
  513. // Properties:
  514. Variant data;
  515. float time;
  516. };
  517. template <class T> class Array
  518. {
  519. // Methods:
  520. void Clear();
  521. void Erase(uint);
  522. int Find(const T&) const;
  523. int Find(uint, const T&) const;
  524. int FindByRef(const T&) const;
  525. int FindByRef(uint, const T&) const;
  526. void Insert(uint, const T&);
  527. void Pop();
  528. void Push(const T&);
  529. void Reserve(uint);
  530. void Resize(uint);
  531. void Reverse();
  532. void Sort();
  533. void Sort(uint, uint);
  534. void SortReverse();
  535. void SortReverse(uint, uint);
  536. // Properties:
  537. /* readonly */
  538. bool empty;
  539. uint length;
  540. };
  541. class AttributeInfo
  542. {
  543. // Properties:
  544. Variant defaultValue;
  545. /* readonly */
  546. Array<String> enumNames;
  547. uint mode;
  548. String name;
  549. VariantType type;
  550. };
  551. class Audio
  552. {
  553. // Methods:
  554. bool HasMasterGain(const String&) const;
  555. bool HasSubscribedToEvent(Object, const String&);
  556. bool HasSubscribedToEvent(const String&);
  557. bool Play();
  558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  559. void SetMode(int, int, bool, bool = true);
  560. void Stop();
  561. // Properties:
  562. /* readonly */
  563. String category;
  564. /* readonly */
  565. bool initialized;
  566. /* readonly */
  567. bool interpolation;
  568. SoundListener listener;
  569. Array<float> masterGain;
  570. /* readonly */
  571. int mixRate;
  572. /* readonly */
  573. bool playing;
  574. /* readonly */
  575. int refs;
  576. /* readonly */
  577. uint sampleSize;
  578. /* readonly */
  579. bool stereo;
  580. /* readonly */
  581. StringHash type;
  582. /* readonly */
  583. String typeName;
  584. /* readonly */
  585. int weakRefs;
  586. };
  587. class BiasParameters
  588. {
  589. // Properties:
  590. float constantBias;
  591. float slopeScaledBias;
  592. };
  593. class Billboard
  594. {
  595. // Properties:
  596. Color color;
  597. Vector3 direction;
  598. bool enabled;
  599. Vector3 position;
  600. float rotation;
  601. Vector2 size;
  602. Rect uv;
  603. };
  604. class BillboardSet
  605. {
  606. // Methods:
  607. void ApplyAttributes();
  608. void Commit();
  609. void DrawDebugGeometry(DebugRenderer, bool);
  610. Variant GetAttribute(const String&) const;
  611. ValueAnimation GetAttributeAnimation(const String&) const;
  612. float GetAttributeAnimationSpeed(const String&) const;
  613. float GetAttributeAnimationTime(const String&) const;
  614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  615. Variant GetAttributeDefault(const String&) const;
  616. bool GetInterceptNetworkUpdate(const String&) const;
  617. bool HasSubscribedToEvent(Object, const String&);
  618. bool HasSubscribedToEvent(const String&);
  619. bool IsInView(Camera) const;
  620. bool Load(File, bool = false);
  621. bool Load(VectorBuffer&, bool = false);
  622. bool LoadJSON(const JSONValue&, bool = false);
  623. bool LoadXML(const XMLElement&, bool = false);
  624. void MarkNetworkUpdate() const;
  625. void Remove();
  626. void RemoveAttributeAnimation(const String&);
  627. void RemoveInstanceDefault();
  628. void RemoveObjectAnimation();
  629. void ResetToDefault();
  630. bool Save(File) const;
  631. bool Save(VectorBuffer&) const;
  632. bool SaveJSON(JSONValue&) const;
  633. bool SaveXML(XMLElement&) const;
  634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  635. void SetAnimationTime(float);
  636. bool SetAttribute(const String&, const Variant&);
  637. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  638. void SetAttributeAnimationSpeed(const String&, float);
  639. void SetAttributeAnimationTime(const String&, float);
  640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  641. void SetInterceptNetworkUpdate(const String&, bool);
  642. // Properties:
  643. bool animationEnabled;
  644. float animationLodBias;
  645. /* readonly */
  646. Array<Variant> attributeDefaults;
  647. /* readonly */
  648. Array<AttributeInfo> attributeInfos;
  649. Array<Variant> attributes;
  650. /* readonly */
  651. Array<Billboard> billboards;
  652. /* readonly */
  653. BoundingBox boundingBox;
  654. bool castShadows;
  655. /* readonly */
  656. String category;
  657. float drawDistance;
  658. bool enabled;
  659. /* readonly */
  660. bool enabledEffective;
  661. FaceCameraMode faceCameraMode;
  662. /* readonly */
  663. uint id;
  664. /* readonly */
  665. bool inView;
  666. uint lightMask;
  667. float lodBias;
  668. Material material;
  669. uint maxLights;
  670. /* readonly */
  671. Node node;
  672. /* readonly */
  673. uint numAttributes;
  674. uint numBillboards;
  675. ObjectAnimation objectAnimation;
  676. bool occludee;
  677. bool occluder;
  678. /* readonly */
  679. int refs;
  680. bool relative;
  681. bool scaled;
  682. float shadowDistance;
  683. uint shadowMask;
  684. bool sorted;
  685. bool temporary;
  686. /* readonly */
  687. StringHash type;
  688. /* readonly */
  689. String typeName;
  690. uint viewMask;
  691. /* readonly */
  692. int weakRefs;
  693. /* readonly */
  694. BoundingBox worldBoundingBox;
  695. /* readonly */
  696. Zone zone;
  697. uint zoneMask;
  698. };
  699. class Bone
  700. {
  701. // Properties:
  702. bool animated;
  703. BoundingBox boundingBox;
  704. Vector3 initialPosition;
  705. Quaternion initialRotation;
  706. Vector3 initialScale;
  707. String name;
  708. Node node;
  709. float radius;
  710. };
  711. class BorderImage
  712. {
  713. // Methods:
  714. void AddChild(UIElement);
  715. void AddTag(const String&);
  716. void AddTags(const String&, int8 = ';');
  717. void ApplyAttributes();
  718. void BringToFront();
  719. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  720. void DisableLayoutUpdate();
  721. IntVector2 ElementToScreen(const IntVector2&);
  722. void EnableLayoutUpdate();
  723. uint FindChild(UIElement) const;
  724. Variant GetAttribute(const String&) const;
  725. ValueAnimation GetAttributeAnimation(const String&) const;
  726. float GetAttributeAnimationSpeed(const String&) const;
  727. float GetAttributeAnimationTime(const String&) const;
  728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  729. Variant GetAttributeDefault(const String&) const;
  730. UIElement GetChild(const String&, bool = false) const;
  731. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  732. Array<UIElement> GetChildren(bool = false) const;
  733. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  734. UIElement GetElementEventSender() const;
  735. bool GetInterceptNetworkUpdate(const String&) const;
  736. uint GetNumChildren(bool) const;
  737. bool HasSubscribedToEvent(Object, const String&);
  738. bool HasSubscribedToEvent(const String&);
  739. bool HasTag(const String&) const;
  740. void InsertChild(uint, UIElement);
  741. bool IsInside(IntVector2, bool);
  742. bool IsInsideCombined(IntVector2, bool);
  743. bool Load(File, bool = false);
  744. bool Load(VectorBuffer&, bool = false);
  745. bool LoadChildXML(XMLFile, XMLFile = null);
  746. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  747. bool LoadJSON(const JSONValue&, bool = false);
  748. bool LoadXML(File);
  749. bool LoadXML(VectorBuffer&);
  750. bool LoadXML(XMLFile, XMLFile);
  751. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  752. bool LoadXML(const XMLElement&, bool = false);
  753. void MarkNetworkUpdate() const;
  754. void Remove();
  755. void RemoveAllChildren();
  756. void RemoveAllTags();
  757. void RemoveAttributeAnimation(const String&);
  758. void RemoveChild(UIElement, uint = 0);
  759. void RemoveChild(uint);
  760. void RemoveInstanceDefault();
  761. void RemoveObjectAnimation();
  762. bool RemoveTag(const String&);
  763. void ResetDeepEnabled();
  764. void ResetToDefault();
  765. bool Save(File) const;
  766. bool Save(VectorBuffer&) const;
  767. bool SaveJSON(JSONValue&) const;
  768. bool SaveXML(File, const String& = "\t");
  769. bool SaveXML(VectorBuffer&, const String& = "\t");
  770. bool SaveXML(XMLElement&) const;
  771. IntVector2 ScreenToElement(const IntVector2&);
  772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  773. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  774. void SetAnimationTime(float);
  775. bool SetAttribute(const String&, const Variant&);
  776. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  777. void SetAttributeAnimationSpeed(const String&, float);
  778. void SetAttributeAnimationTime(const String&, float);
  779. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  780. void SetDeepEnabled(bool);
  781. void SetEnabledRecursive(bool);
  782. void SetFixedHeight(int);
  783. void SetFixedSize(int, int);
  784. void SetFixedWidth(int);
  785. void SetFullImageRect();
  786. void SetHoverOffset(int, int);
  787. void SetInterceptNetworkUpdate(const String&, bool);
  788. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  789. void SetMaxSize(int, int);
  790. void SetMinSize(int, int);
  791. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  792. void SetPosition(int, int);
  793. void SetSize(int, int);
  794. bool SetStyle(const String&, XMLFile = null);
  795. bool SetStyle(const XMLElement&);
  796. bool SetStyleAuto(XMLFile = null);
  797. void UpdateLayout();
  798. const Variant& GetVar(const StringHash&);
  799. // Properties:
  800. bool animationEnabled;
  801. /* readonly */
  802. Array<Variant> attributeDefaults;
  803. /* readonly */
  804. Array<AttributeInfo> attributeInfos;
  805. Array<Variant> attributes;
  806. BlendMode blendMode;
  807. IntRect border;
  808. bool bringToBack;
  809. bool bringToFront;
  810. /* readonly */
  811. String category;
  812. /* readonly */
  813. IntVector2 childOffset;
  814. /* readonly */
  815. Array<UIElement> children;
  816. IntRect clipBorder;
  817. bool clipChildren;
  818. /* writeonly */
  819. Color color;
  820. /* readonly */
  821. bool colorGradient;
  822. Array<Color> colors;
  823. /* readonly */
  824. IntRect combinedScreenRect;
  825. XMLFile defaultStyle;
  826. /* readonly */
  827. float derivedOpacity;
  828. /* readonly */
  829. uint dragButtonCombo;
  830. /* readonly */
  831. int dragButtonCount;
  832. uint dragDropMode;
  833. bool editable;
  834. bool elementEventSender;
  835. bool enabled;
  836. /* readonly */
  837. bool enabledSelf;
  838. /* readonly */
  839. bool fixedHeight;
  840. /* readonly */
  841. bool fixedSize;
  842. /* readonly */
  843. bool fixedWidth;
  844. bool focus;
  845. FocusMode focusMode;
  846. int height;
  847. HorizontalAlignment horizontalAlignment;
  848. IntVector2 hoverOffset;
  849. /* readonly */
  850. bool hovering;
  851. IntRect imageBorder;
  852. IntRect imageRect;
  853. int indent;
  854. int indentSpacing;
  855. /* readonly */
  856. int indentWidth;
  857. bool internal;
  858. IntRect layoutBorder;
  859. Vector2 layoutFlexScale;
  860. LayoutMode layoutMode;
  861. int layoutSpacing;
  862. int maxHeight;
  863. IntVector2 maxSize;
  864. int maxWidth;
  865. int minHeight;
  866. IntVector2 minSize;
  867. int minWidth;
  868. String name;
  869. /* readonly */
  870. uint numAllChildren;
  871. /* readonly */
  872. uint numAttributes;
  873. /* readonly */
  874. uint numChildren;
  875. ObjectAnimation objectAnimation;
  876. float opacity;
  877. UIElement parent;
  878. IntVector2 position;
  879. int priority;
  880. /* readonly */
  881. int refs;
  882. /* readonly */
  883. UIElement root;
  884. /* readonly */
  885. IntVector2 screenPosition;
  886. bool selected;
  887. IntVector2 size;
  888. bool sortChildren;
  889. String style;
  890. /* readonly */
  891. Array<String> tags;
  892. bool temporary;
  893. Texture texture;
  894. bool tiled;
  895. TraversalMode traversalMode;
  896. /* readonly */
  897. StringHash type;
  898. /* readonly */
  899. String typeName;
  900. bool useDerivedOpacity;
  901. /* readonly */
  902. VariantMap vars;
  903. VerticalAlignment verticalAlignment;
  904. bool visible;
  905. /* readonly */
  906. bool visibleEffective;
  907. /* readonly */
  908. int weakRefs;
  909. int width;
  910. };
  911. class BoundingBox
  912. {
  913. // Methods:
  914. void Clear();
  915. void Clip(const BoundingBox&);
  916. void Define(const BoundingBox&);
  917. void Define(const Frustum&);
  918. void Define(const Polyhedron&);
  919. void Define(const Sphere&);
  920. void Define(const Vector3&);
  921. void Define(const Vector3&, const Vector3&);
  922. void Define(float, float);
  923. bool Defined() const;
  924. Intersection IsInside(const BoundingBox&) const;
  925. Intersection IsInside(const Sphere&) const;
  926. Intersection IsInside(const Vector3&) const;
  927. Intersection IsInsideFast(const BoundingBox&) const;
  928. Intersection IsInsideFast(const Sphere&) const;
  929. void Merge(const BoundingBox&);
  930. void Merge(const Frustum&);
  931. void Merge(const Polyhedron&);
  932. void Merge(const Sphere&);
  933. void Merge(const Vector3&);
  934. Rect Projected(const Matrix4&) const;
  935. String ToString() const;
  936. void Transform(const Matrix3&);
  937. void Transform(const Matrix3x4&);
  938. BoundingBox Transformed(const Matrix3&) const;
  939. BoundingBox Transformed(const Matrix3x4&) const;
  940. // Properties:
  941. /* readonly */
  942. Vector3 center;
  943. /* readonly */
  944. Vector3 halfSize;
  945. Vector3 max;
  946. Vector3 min;
  947. /* readonly */
  948. Vector3 size;
  949. };
  950. class Button
  951. {
  952. // Methods:
  953. void AddChild(UIElement);
  954. void AddTag(const String&);
  955. void AddTags(const String&, int8 = ';');
  956. void ApplyAttributes();
  957. void BringToFront();
  958. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  959. void DisableLayoutUpdate();
  960. IntVector2 ElementToScreen(const IntVector2&);
  961. void EnableLayoutUpdate();
  962. uint FindChild(UIElement) const;
  963. Variant GetAttribute(const String&) const;
  964. ValueAnimation GetAttributeAnimation(const String&) const;
  965. float GetAttributeAnimationSpeed(const String&) const;
  966. float GetAttributeAnimationTime(const String&) const;
  967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  968. Variant GetAttributeDefault(const String&) const;
  969. UIElement GetChild(const String&, bool = false) const;
  970. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  971. Array<UIElement> GetChildren(bool = false) const;
  972. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  973. UIElement GetElementEventSender() const;
  974. bool GetInterceptNetworkUpdate(const String&) const;
  975. uint GetNumChildren(bool) const;
  976. bool HasSubscribedToEvent(Object, const String&);
  977. bool HasSubscribedToEvent(const String&);
  978. bool HasTag(const String&) const;
  979. void InsertChild(uint, UIElement);
  980. bool IsInside(IntVector2, bool);
  981. bool IsInsideCombined(IntVector2, bool);
  982. bool Load(File, bool = false);
  983. bool Load(VectorBuffer&, bool = false);
  984. bool LoadChildXML(XMLFile, XMLFile = null);
  985. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  986. bool LoadJSON(const JSONValue&, bool = false);
  987. bool LoadXML(File);
  988. bool LoadXML(VectorBuffer&);
  989. bool LoadXML(XMLFile, XMLFile);
  990. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  991. bool LoadXML(const XMLElement&, bool = false);
  992. void MarkNetworkUpdate() const;
  993. void Remove();
  994. void RemoveAllChildren();
  995. void RemoveAllTags();
  996. void RemoveAttributeAnimation(const String&);
  997. void RemoveChild(UIElement, uint = 0);
  998. void RemoveChild(uint);
  999. void RemoveInstanceDefault();
  1000. void RemoveObjectAnimation();
  1001. bool RemoveTag(const String&);
  1002. void ResetDeepEnabled();
  1003. void ResetToDefault();
  1004. bool Save(File) const;
  1005. bool Save(VectorBuffer&) const;
  1006. bool SaveJSON(JSONValue&) const;
  1007. bool SaveXML(File, const String& = "\t");
  1008. bool SaveXML(VectorBuffer&, const String& = "\t");
  1009. bool SaveXML(XMLElement&) const;
  1010. IntVector2 ScreenToElement(const IntVector2&);
  1011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1012. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1013. void SetAnimationTime(float);
  1014. bool SetAttribute(const String&, const Variant&);
  1015. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1016. void SetAttributeAnimationSpeed(const String&, float);
  1017. void SetAttributeAnimationTime(const String&, float);
  1018. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1019. void SetDeepEnabled(bool);
  1020. void SetEnabledRecursive(bool);
  1021. void SetFixedHeight(int);
  1022. void SetFixedSize(int, int);
  1023. void SetFixedWidth(int);
  1024. void SetFullImageRect();
  1025. void SetHoverOffset(int, int);
  1026. void SetInterceptNetworkUpdate(const String&, bool);
  1027. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1028. void SetMaxSize(int, int);
  1029. void SetMinSize(int, int);
  1030. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1031. void SetPosition(int, int);
  1032. void SetPressedChildOffset(int, int);
  1033. void SetPressedOffset(int, int);
  1034. void SetRepeat(float, float);
  1035. void SetSize(int, int);
  1036. bool SetStyle(const String&, XMLFile = null);
  1037. bool SetStyle(const XMLElement&);
  1038. bool SetStyleAuto(XMLFile = null);
  1039. void UpdateLayout();
  1040. const Variant& GetVar(const StringHash&);
  1041. // Properties:
  1042. bool animationEnabled;
  1043. /* readonly */
  1044. Array<Variant> attributeDefaults;
  1045. /* readonly */
  1046. Array<AttributeInfo> attributeInfos;
  1047. Array<Variant> attributes;
  1048. BlendMode blendMode;
  1049. IntRect border;
  1050. bool bringToBack;
  1051. bool bringToFront;
  1052. /* readonly */
  1053. String category;
  1054. /* readonly */
  1055. IntVector2 childOffset;
  1056. /* readonly */
  1057. Array<UIElement> children;
  1058. IntRect clipBorder;
  1059. bool clipChildren;
  1060. /* writeonly */
  1061. Color color;
  1062. /* readonly */
  1063. bool colorGradient;
  1064. Array<Color> colors;
  1065. /* readonly */
  1066. IntRect combinedScreenRect;
  1067. XMLFile defaultStyle;
  1068. /* readonly */
  1069. float derivedOpacity;
  1070. /* readonly */
  1071. uint dragButtonCombo;
  1072. /* readonly */
  1073. int dragButtonCount;
  1074. uint dragDropMode;
  1075. bool editable;
  1076. bool elementEventSender;
  1077. bool enabled;
  1078. /* readonly */
  1079. bool enabledSelf;
  1080. /* readonly */
  1081. bool fixedHeight;
  1082. /* readonly */
  1083. bool fixedSize;
  1084. /* readonly */
  1085. bool fixedWidth;
  1086. bool focus;
  1087. FocusMode focusMode;
  1088. int height;
  1089. HorizontalAlignment horizontalAlignment;
  1090. IntVector2 hoverOffset;
  1091. /* readonly */
  1092. bool hovering;
  1093. IntRect imageBorder;
  1094. IntRect imageRect;
  1095. int indent;
  1096. int indentSpacing;
  1097. /* readonly */
  1098. int indentWidth;
  1099. bool internal;
  1100. IntRect layoutBorder;
  1101. Vector2 layoutFlexScale;
  1102. LayoutMode layoutMode;
  1103. int layoutSpacing;
  1104. int maxHeight;
  1105. IntVector2 maxSize;
  1106. int maxWidth;
  1107. int minHeight;
  1108. IntVector2 minSize;
  1109. int minWidth;
  1110. String name;
  1111. /* readonly */
  1112. uint numAllChildren;
  1113. /* readonly */
  1114. uint numAttributes;
  1115. /* readonly */
  1116. uint numChildren;
  1117. ObjectAnimation objectAnimation;
  1118. float opacity;
  1119. UIElement parent;
  1120. IntVector2 position;
  1121. /* readonly */
  1122. bool pressed;
  1123. IntVector2 pressedChildOffset;
  1124. IntVector2 pressedOffset;
  1125. int priority;
  1126. /* readonly */
  1127. int refs;
  1128. float repeatDelay;
  1129. float repeatRate;
  1130. /* readonly */
  1131. UIElement root;
  1132. /* readonly */
  1133. IntVector2 screenPosition;
  1134. bool selected;
  1135. IntVector2 size;
  1136. bool sortChildren;
  1137. String style;
  1138. /* readonly */
  1139. Array<String> tags;
  1140. bool temporary;
  1141. Texture texture;
  1142. bool tiled;
  1143. TraversalMode traversalMode;
  1144. /* readonly */
  1145. StringHash type;
  1146. /* readonly */
  1147. String typeName;
  1148. bool useDerivedOpacity;
  1149. /* readonly */
  1150. VariantMap vars;
  1151. VerticalAlignment verticalAlignment;
  1152. bool visible;
  1153. /* readonly */
  1154. bool visibleEffective;
  1155. /* readonly */
  1156. int weakRefs;
  1157. int width;
  1158. };
  1159. class Camera
  1160. {
  1161. // Methods:
  1162. void ApplyAttributes();
  1163. void DrawDebugGeometry(DebugRenderer, bool);
  1164. Variant GetAttribute(const String&) const;
  1165. ValueAnimation GetAttributeAnimation(const String&) const;
  1166. float GetAttributeAnimationSpeed(const String&) const;
  1167. float GetAttributeAnimationTime(const String&) const;
  1168. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1169. Variant GetAttributeDefault(const String&) const;
  1170. float GetDistance(const Vector3&) const;
  1171. float GetDistanceSquared(const Vector3&) const;
  1172. bool GetInterceptNetworkUpdate(const String&) const;
  1173. Ray GetScreenRay(float, float) const;
  1174. Frustum GetSplitFrustum(float, float) const;
  1175. bool HasSubscribedToEvent(Object, const String&);
  1176. bool HasSubscribedToEvent(const String&);
  1177. bool Load(File, bool = false);
  1178. bool Load(VectorBuffer&, bool = false);
  1179. bool LoadJSON(const JSONValue&, bool = false);
  1180. bool LoadXML(const XMLElement&, bool = false);
  1181. void MarkNetworkUpdate() const;
  1182. void Remove();
  1183. void RemoveAttributeAnimation(const String&);
  1184. void RemoveInstanceDefault();
  1185. void RemoveObjectAnimation();
  1186. void ResetToDefault();
  1187. bool Save(File) const;
  1188. bool Save(VectorBuffer&) const;
  1189. bool SaveJSON(JSONValue&) const;
  1190. bool SaveXML(XMLElement&) const;
  1191. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1192. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1193. void SetAnimationTime(float);
  1194. bool SetAttribute(const String&, const Variant&);
  1195. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1196. void SetAttributeAnimationSpeed(const String&, float);
  1197. void SetAttributeAnimationTime(const String&, float);
  1198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1199. void SetInterceptNetworkUpdate(const String&, bool);
  1200. void SetOrthoSize(const Vector2&);
  1201. Vector2 WorldToScreenPoint(const Vector3&) const;
  1202. // Properties:
  1203. bool animationEnabled;
  1204. float aspectRatio;
  1205. /* readonly */
  1206. Array<Variant> attributeDefaults;
  1207. /* readonly */
  1208. Array<AttributeInfo> attributeInfos;
  1209. Array<Variant> attributes;
  1210. bool autoAspectRatio;
  1211. /* readonly */
  1212. String category;
  1213. Plane clipPlane;
  1214. /* readonly */
  1215. Matrix3x4 effectiveWorldTransform;
  1216. bool enabled;
  1217. /* readonly */
  1218. bool enabledEffective;
  1219. float farClip;
  1220. FillMode fillMode;
  1221. float fov;
  1222. /* readonly */
  1223. Frustum frustum;
  1224. /* readonly */
  1225. float halfViewSize;
  1226. /* readonly */
  1227. uint id;
  1228. float lodBias;
  1229. float nearClip;
  1230. /* readonly */
  1231. Node node;
  1232. /* readonly */
  1233. uint numAttributes;
  1234. ObjectAnimation objectAnimation;
  1235. float orthoSize;
  1236. bool orthographic;
  1237. /* readonly */
  1238. Matrix4 projection;
  1239. Vector2 projectionOffset;
  1240. Plane reflectionPlane;
  1241. /* readonly */
  1242. int refs;
  1243. bool temporary;
  1244. /* readonly */
  1245. StringHash type;
  1246. /* readonly */
  1247. String typeName;
  1248. bool useClipping;
  1249. bool useReflection;
  1250. /* readonly */
  1251. Matrix3x4 view;
  1252. uint viewMask;
  1253. uint viewOverrideFlags;
  1254. /* readonly */
  1255. Frustum viewSpaceFrustum;
  1256. /* readonly */
  1257. int weakRefs;
  1258. float zoom;
  1259. };
  1260. class CascadeParameters
  1261. {
  1262. // Properties:
  1263. float biasAutoAdjust;
  1264. float fadeStart;
  1265. float split1;
  1266. float split2;
  1267. float split3;
  1268. float split4;
  1269. };
  1270. class CheckBox
  1271. {
  1272. // Methods:
  1273. void AddChild(UIElement);
  1274. void AddTag(const String&);
  1275. void AddTags(const String&, int8 = ';');
  1276. void ApplyAttributes();
  1277. void BringToFront();
  1278. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1279. void DisableLayoutUpdate();
  1280. IntVector2 ElementToScreen(const IntVector2&);
  1281. void EnableLayoutUpdate();
  1282. uint FindChild(UIElement) const;
  1283. Variant GetAttribute(const String&) const;
  1284. ValueAnimation GetAttributeAnimation(const String&) const;
  1285. float GetAttributeAnimationSpeed(const String&) const;
  1286. float GetAttributeAnimationTime(const String&) const;
  1287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1288. Variant GetAttributeDefault(const String&) const;
  1289. UIElement GetChild(const String&, bool = false) const;
  1290. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1291. Array<UIElement> GetChildren(bool = false) const;
  1292. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1293. UIElement GetElementEventSender() const;
  1294. bool GetInterceptNetworkUpdate(const String&) const;
  1295. uint GetNumChildren(bool) const;
  1296. bool HasSubscribedToEvent(Object, const String&);
  1297. bool HasSubscribedToEvent(const String&);
  1298. bool HasTag(const String&) const;
  1299. void InsertChild(uint, UIElement);
  1300. bool IsInside(IntVector2, bool);
  1301. bool IsInsideCombined(IntVector2, bool);
  1302. bool Load(File, bool = false);
  1303. bool Load(VectorBuffer&, bool = false);
  1304. bool LoadChildXML(XMLFile, XMLFile = null);
  1305. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1306. bool LoadJSON(const JSONValue&, bool = false);
  1307. bool LoadXML(File);
  1308. bool LoadXML(VectorBuffer&);
  1309. bool LoadXML(XMLFile, XMLFile);
  1310. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1311. bool LoadXML(const XMLElement&, bool = false);
  1312. void MarkNetworkUpdate() const;
  1313. void Remove();
  1314. void RemoveAllChildren();
  1315. void RemoveAllTags();
  1316. void RemoveAttributeAnimation(const String&);
  1317. void RemoveChild(UIElement, uint = 0);
  1318. void RemoveChild(uint);
  1319. void RemoveInstanceDefault();
  1320. void RemoveObjectAnimation();
  1321. bool RemoveTag(const String&);
  1322. void ResetDeepEnabled();
  1323. void ResetToDefault();
  1324. bool Save(File) const;
  1325. bool Save(VectorBuffer&) const;
  1326. bool SaveJSON(JSONValue&) const;
  1327. bool SaveXML(File, const String& = "\t");
  1328. bool SaveXML(VectorBuffer&, const String& = "\t");
  1329. bool SaveXML(XMLElement&) const;
  1330. IntVector2 ScreenToElement(const IntVector2&);
  1331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1332. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1333. void SetAnimationTime(float);
  1334. bool SetAttribute(const String&, const Variant&);
  1335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1336. void SetAttributeAnimationSpeed(const String&, float);
  1337. void SetAttributeAnimationTime(const String&, float);
  1338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1339. void SetCheckedOffset(int, int);
  1340. void SetDeepEnabled(bool);
  1341. void SetEnabledRecursive(bool);
  1342. void SetFixedHeight(int);
  1343. void SetFixedSize(int, int);
  1344. void SetFixedWidth(int);
  1345. void SetFullImageRect();
  1346. void SetHoverOffset(int, int);
  1347. void SetInterceptNetworkUpdate(const String&, bool);
  1348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1349. void SetMaxSize(int, int);
  1350. void SetMinSize(int, int);
  1351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1352. void SetPosition(int, int);
  1353. void SetSize(int, int);
  1354. bool SetStyle(const String&, XMLFile = null);
  1355. bool SetStyle(const XMLElement&);
  1356. bool SetStyleAuto(XMLFile = null);
  1357. void UpdateLayout();
  1358. const Variant& GetVar(const StringHash&);
  1359. // Properties:
  1360. bool animationEnabled;
  1361. /* readonly */
  1362. Array<Variant> attributeDefaults;
  1363. /* readonly */
  1364. Array<AttributeInfo> attributeInfos;
  1365. Array<Variant> attributes;
  1366. BlendMode blendMode;
  1367. IntRect border;
  1368. bool bringToBack;
  1369. bool bringToFront;
  1370. /* readonly */
  1371. String category;
  1372. bool checked;
  1373. IntVector2 checkedOffset;
  1374. /* readonly */
  1375. IntVector2 childOffset;
  1376. /* readonly */
  1377. Array<UIElement> children;
  1378. IntRect clipBorder;
  1379. bool clipChildren;
  1380. /* writeonly */
  1381. Color color;
  1382. /* readonly */
  1383. bool colorGradient;
  1384. Array<Color> colors;
  1385. /* readonly */
  1386. IntRect combinedScreenRect;
  1387. XMLFile defaultStyle;
  1388. /* readonly */
  1389. float derivedOpacity;
  1390. /* readonly */
  1391. uint dragButtonCombo;
  1392. /* readonly */
  1393. int dragButtonCount;
  1394. uint dragDropMode;
  1395. bool editable;
  1396. bool elementEventSender;
  1397. bool enabled;
  1398. /* readonly */
  1399. bool enabledSelf;
  1400. /* readonly */
  1401. bool fixedHeight;
  1402. /* readonly */
  1403. bool fixedSize;
  1404. /* readonly */
  1405. bool fixedWidth;
  1406. bool focus;
  1407. FocusMode focusMode;
  1408. int height;
  1409. HorizontalAlignment horizontalAlignment;
  1410. IntVector2 hoverOffset;
  1411. /* readonly */
  1412. bool hovering;
  1413. IntRect imageBorder;
  1414. IntRect imageRect;
  1415. int indent;
  1416. int indentSpacing;
  1417. /* readonly */
  1418. int indentWidth;
  1419. bool internal;
  1420. IntRect layoutBorder;
  1421. Vector2 layoutFlexScale;
  1422. LayoutMode layoutMode;
  1423. int layoutSpacing;
  1424. int maxHeight;
  1425. IntVector2 maxSize;
  1426. int maxWidth;
  1427. int minHeight;
  1428. IntVector2 minSize;
  1429. int minWidth;
  1430. String name;
  1431. /* readonly */
  1432. uint numAllChildren;
  1433. /* readonly */
  1434. uint numAttributes;
  1435. /* readonly */
  1436. uint numChildren;
  1437. ObjectAnimation objectAnimation;
  1438. float opacity;
  1439. UIElement parent;
  1440. IntVector2 position;
  1441. int priority;
  1442. /* readonly */
  1443. int refs;
  1444. /* readonly */
  1445. UIElement root;
  1446. /* readonly */
  1447. IntVector2 screenPosition;
  1448. bool selected;
  1449. IntVector2 size;
  1450. bool sortChildren;
  1451. String style;
  1452. /* readonly */
  1453. Array<String> tags;
  1454. bool temporary;
  1455. Texture texture;
  1456. bool tiled;
  1457. TraversalMode traversalMode;
  1458. /* readonly */
  1459. StringHash type;
  1460. /* readonly */
  1461. String typeName;
  1462. bool useDerivedOpacity;
  1463. /* readonly */
  1464. VariantMap vars;
  1465. VerticalAlignment verticalAlignment;
  1466. bool visible;
  1467. /* readonly */
  1468. bool visibleEffective;
  1469. /* readonly */
  1470. int weakRefs;
  1471. int width;
  1472. };
  1473. class CollisionBox2D
  1474. {
  1475. // Methods:
  1476. void ApplyAttributes();
  1477. void DrawDebugGeometry(DebugRenderer, bool);
  1478. Variant GetAttribute(const String&) const;
  1479. ValueAnimation GetAttributeAnimation(const String&) const;
  1480. float GetAttributeAnimationSpeed(const String&) const;
  1481. float GetAttributeAnimationTime(const String&) const;
  1482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1483. Variant GetAttributeDefault(const String&) const;
  1484. bool GetInterceptNetworkUpdate(const String&) const;
  1485. bool HasSubscribedToEvent(Object, const String&);
  1486. bool HasSubscribedToEvent(const String&);
  1487. bool Load(File, bool = false);
  1488. bool Load(VectorBuffer&, bool = false);
  1489. bool LoadJSON(const JSONValue&, bool = false);
  1490. bool LoadXML(const XMLElement&, bool = false);
  1491. void MarkNetworkUpdate() const;
  1492. void Remove();
  1493. void RemoveAttributeAnimation(const String&);
  1494. void RemoveInstanceDefault();
  1495. void RemoveObjectAnimation();
  1496. void ResetToDefault();
  1497. bool Save(File) const;
  1498. bool Save(VectorBuffer&) const;
  1499. bool SaveJSON(JSONValue&) const;
  1500. bool SaveXML(XMLElement&) const;
  1501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1502. void SetAnimationTime(float);
  1503. bool SetAttribute(const String&, const Variant&);
  1504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1505. void SetAttributeAnimationSpeed(const String&, float);
  1506. void SetAttributeAnimationTime(const String&, float);
  1507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1508. void SetCenter(float, float);
  1509. void SetInterceptNetworkUpdate(const String&, bool);
  1510. void SetSize(float, float);
  1511. // Properties:
  1512. float angle;
  1513. bool animationEnabled;
  1514. /* readonly */
  1515. Array<Variant> attributeDefaults;
  1516. /* readonly */
  1517. Array<AttributeInfo> attributeInfos;
  1518. Array<Variant> attributes;
  1519. /* readonly */
  1520. String category;
  1521. int categoryBits;
  1522. Vector2 center;
  1523. float density;
  1524. bool enabled;
  1525. /* readonly */
  1526. bool enabledEffective;
  1527. float friction;
  1528. int groupIndex;
  1529. /* readonly */
  1530. uint id;
  1531. /* readonly */
  1532. float inertia;
  1533. int maskBits;
  1534. /* readonly */
  1535. float mass;
  1536. /* readonly */
  1537. Vector2 massCenter;
  1538. /* readonly */
  1539. Node node;
  1540. /* readonly */
  1541. uint numAttributes;
  1542. ObjectAnimation objectAnimation;
  1543. /* readonly */
  1544. int refs;
  1545. float restitution;
  1546. Vector2 size;
  1547. bool temporary;
  1548. bool trigger;
  1549. /* readonly */
  1550. StringHash type;
  1551. /* readonly */
  1552. String typeName;
  1553. /* readonly */
  1554. int weakRefs;
  1555. };
  1556. class CollisionChain2D
  1557. {
  1558. // Methods:
  1559. void ApplyAttributes();
  1560. void DrawDebugGeometry(DebugRenderer, bool);
  1561. Variant GetAttribute(const String&) const;
  1562. ValueAnimation GetAttributeAnimation(const String&) const;
  1563. float GetAttributeAnimationSpeed(const String&) const;
  1564. float GetAttributeAnimationTime(const String&) const;
  1565. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1566. Variant GetAttributeDefault(const String&) const;
  1567. bool GetInterceptNetworkUpdate(const String&) const;
  1568. Array<Vector2> GetVertices() const;
  1569. bool HasSubscribedToEvent(Object, const String&);
  1570. bool HasSubscribedToEvent(const String&);
  1571. bool Load(File, bool = false);
  1572. bool Load(VectorBuffer&, bool = false);
  1573. bool LoadJSON(const JSONValue&, bool = false);
  1574. bool LoadXML(const XMLElement&, bool = false);
  1575. void MarkNetworkUpdate() const;
  1576. void Remove();
  1577. void RemoveAttributeAnimation(const String&);
  1578. void RemoveInstanceDefault();
  1579. void RemoveObjectAnimation();
  1580. void ResetToDefault();
  1581. bool Save(File) const;
  1582. bool Save(VectorBuffer&) const;
  1583. bool SaveJSON(JSONValue&) const;
  1584. bool SaveXML(XMLElement&) const;
  1585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1586. void SetAnimationTime(float);
  1587. bool SetAttribute(const String&, const Variant&);
  1588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1589. void SetAttributeAnimationSpeed(const String&, float);
  1590. void SetAttributeAnimationTime(const String&, float);
  1591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1592. void SetInterceptNetworkUpdate(const String&, bool);
  1593. void SetVertex(uint, const Vector2&);
  1594. void SetVertices(Array<Vector2>);
  1595. const Vector2& GetVertex(uint) const;
  1596. // Properties:
  1597. bool animationEnabled;
  1598. /* readonly */
  1599. Array<Variant> attributeDefaults;
  1600. /* readonly */
  1601. Array<AttributeInfo> attributeInfos;
  1602. Array<Variant> attributes;
  1603. /* readonly */
  1604. String category;
  1605. int categoryBits;
  1606. float density;
  1607. bool enabled;
  1608. /* readonly */
  1609. bool enabledEffective;
  1610. float friction;
  1611. int groupIndex;
  1612. /* readonly */
  1613. uint id;
  1614. /* readonly */
  1615. float inertia;
  1616. bool loop;
  1617. int maskBits;
  1618. /* readonly */
  1619. float mass;
  1620. /* readonly */
  1621. Vector2 massCenter;
  1622. /* readonly */
  1623. Node node;
  1624. /* readonly */
  1625. uint numAttributes;
  1626. ObjectAnimation objectAnimation;
  1627. /* readonly */
  1628. int refs;
  1629. float restitution;
  1630. bool temporary;
  1631. bool trigger;
  1632. /* readonly */
  1633. StringHash type;
  1634. /* readonly */
  1635. String typeName;
  1636. uint vertexCount;
  1637. /* readonly */
  1638. int weakRefs;
  1639. };
  1640. class CollisionCircle2D
  1641. {
  1642. // Methods:
  1643. void ApplyAttributes();
  1644. void DrawDebugGeometry(DebugRenderer, bool);
  1645. Variant GetAttribute(const String&) const;
  1646. ValueAnimation GetAttributeAnimation(const String&) const;
  1647. float GetAttributeAnimationSpeed(const String&) const;
  1648. float GetAttributeAnimationTime(const String&) const;
  1649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1650. Variant GetAttributeDefault(const String&) const;
  1651. bool GetInterceptNetworkUpdate(const String&) const;
  1652. bool HasSubscribedToEvent(Object, const String&);
  1653. bool HasSubscribedToEvent(const String&);
  1654. bool Load(File, bool = false);
  1655. bool Load(VectorBuffer&, bool = false);
  1656. bool LoadJSON(const JSONValue&, bool = false);
  1657. bool LoadXML(const XMLElement&, bool = false);
  1658. void MarkNetworkUpdate() const;
  1659. void Remove();
  1660. void RemoveAttributeAnimation(const String&);
  1661. void RemoveInstanceDefault();
  1662. void RemoveObjectAnimation();
  1663. void ResetToDefault();
  1664. bool Save(File) const;
  1665. bool Save(VectorBuffer&) const;
  1666. bool SaveJSON(JSONValue&) const;
  1667. bool SaveXML(XMLElement&) const;
  1668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1669. void SetAnimationTime(float);
  1670. bool SetAttribute(const String&, const Variant&);
  1671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1672. void SetAttributeAnimationSpeed(const String&, float);
  1673. void SetAttributeAnimationTime(const String&, float);
  1674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1675. void SetCenter(float, float);
  1676. void SetInterceptNetworkUpdate(const String&, bool);
  1677. // Properties:
  1678. bool animationEnabled;
  1679. /* readonly */
  1680. Array<Variant> attributeDefaults;
  1681. /* readonly */
  1682. Array<AttributeInfo> attributeInfos;
  1683. Array<Variant> attributes;
  1684. /* readonly */
  1685. String category;
  1686. int categoryBits;
  1687. Vector2 center;
  1688. float density;
  1689. bool enabled;
  1690. /* readonly */
  1691. bool enabledEffective;
  1692. float friction;
  1693. int groupIndex;
  1694. /* readonly */
  1695. uint id;
  1696. /* readonly */
  1697. float inertia;
  1698. int maskBits;
  1699. /* readonly */
  1700. float mass;
  1701. /* readonly */
  1702. Vector2 massCenter;
  1703. /* readonly */
  1704. Node node;
  1705. /* readonly */
  1706. uint numAttributes;
  1707. ObjectAnimation objectAnimation;
  1708. float radius;
  1709. /* readonly */
  1710. int refs;
  1711. float restitution;
  1712. bool temporary;
  1713. bool trigger;
  1714. /* readonly */
  1715. StringHash type;
  1716. /* readonly */
  1717. String typeName;
  1718. /* readonly */
  1719. int weakRefs;
  1720. };
  1721. class CollisionEdge2D
  1722. {
  1723. // Methods:
  1724. void ApplyAttributes();
  1725. void DrawDebugGeometry(DebugRenderer, bool);
  1726. Variant GetAttribute(const String&) const;
  1727. ValueAnimation GetAttributeAnimation(const String&) const;
  1728. float GetAttributeAnimationSpeed(const String&) const;
  1729. float GetAttributeAnimationTime(const String&) const;
  1730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1731. Variant GetAttributeDefault(const String&) const;
  1732. bool GetInterceptNetworkUpdate(const String&) const;
  1733. bool HasSubscribedToEvent(Object, const String&);
  1734. bool HasSubscribedToEvent(const String&);
  1735. bool Load(File, bool = false);
  1736. bool Load(VectorBuffer&, bool = false);
  1737. bool LoadJSON(const JSONValue&, bool = false);
  1738. bool LoadXML(const XMLElement&, bool = false);
  1739. void MarkNetworkUpdate() const;
  1740. void Remove();
  1741. void RemoveAttributeAnimation(const String&);
  1742. void RemoveInstanceDefault();
  1743. void RemoveObjectAnimation();
  1744. void ResetToDefault();
  1745. bool Save(File) const;
  1746. bool Save(VectorBuffer&) const;
  1747. bool SaveJSON(JSONValue&) const;
  1748. bool SaveXML(XMLElement&) const;
  1749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1750. void SetAnimationTime(float);
  1751. bool SetAttribute(const String&, const Variant&);
  1752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1753. void SetAttributeAnimationSpeed(const String&, float);
  1754. void SetAttributeAnimationTime(const String&, float);
  1755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1756. void SetInterceptNetworkUpdate(const String&, bool);
  1757. void SetVertices(const Vector2&, const Vector2&);
  1758. // Properties:
  1759. bool animationEnabled;
  1760. /* readonly */
  1761. Array<Variant> attributeDefaults;
  1762. /* readonly */
  1763. Array<AttributeInfo> attributeInfos;
  1764. Array<Variant> attributes;
  1765. /* readonly */
  1766. String category;
  1767. int categoryBits;
  1768. float density;
  1769. bool enabled;
  1770. /* readonly */
  1771. bool enabledEffective;
  1772. float friction;
  1773. int groupIndex;
  1774. /* readonly */
  1775. uint id;
  1776. /* readonly */
  1777. float inertia;
  1778. int maskBits;
  1779. /* readonly */
  1780. float mass;
  1781. /* readonly */
  1782. Vector2 massCenter;
  1783. /* readonly */
  1784. Node node;
  1785. /* readonly */
  1786. uint numAttributes;
  1787. ObjectAnimation objectAnimation;
  1788. /* readonly */
  1789. int refs;
  1790. float restitution;
  1791. bool temporary;
  1792. bool trigger;
  1793. /* readonly */
  1794. StringHash type;
  1795. /* readonly */
  1796. String typeName;
  1797. Vector2 vertex1;
  1798. Vector2 vertex2;
  1799. /* readonly */
  1800. int weakRefs;
  1801. };
  1802. class CollisionPolygon2D
  1803. {
  1804. // Methods:
  1805. void ApplyAttributes();
  1806. void DrawDebugGeometry(DebugRenderer, bool);
  1807. Variant GetAttribute(const String&) const;
  1808. ValueAnimation GetAttributeAnimation(const String&) const;
  1809. float GetAttributeAnimationSpeed(const String&) const;
  1810. float GetAttributeAnimationTime(const String&) const;
  1811. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1812. Variant GetAttributeDefault(const String&) const;
  1813. bool GetInterceptNetworkUpdate(const String&) const;
  1814. Array<Vector2> GetVertices() const;
  1815. bool HasSubscribedToEvent(Object, const String&);
  1816. bool HasSubscribedToEvent(const String&);
  1817. bool Load(File, bool = false);
  1818. bool Load(VectorBuffer&, bool = false);
  1819. bool LoadJSON(const JSONValue&, bool = false);
  1820. bool LoadXML(const XMLElement&, bool = false);
  1821. void MarkNetworkUpdate() const;
  1822. void Remove();
  1823. void RemoveAttributeAnimation(const String&);
  1824. void RemoveInstanceDefault();
  1825. void RemoveObjectAnimation();
  1826. void ResetToDefault();
  1827. bool Save(File) const;
  1828. bool Save(VectorBuffer&) const;
  1829. bool SaveJSON(JSONValue&) const;
  1830. bool SaveXML(XMLElement&) const;
  1831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1832. void SetAnimationTime(float);
  1833. bool SetAttribute(const String&, const Variant&);
  1834. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1835. void SetAttributeAnimationSpeed(const String&, float);
  1836. void SetAttributeAnimationTime(const String&, float);
  1837. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1838. void SetInterceptNetworkUpdate(const String&, bool);
  1839. void SetVertex(uint, const Vector2&);
  1840. void SetVertices(Array<Vector2>);
  1841. const Vector2& GetVertex(uint) const;
  1842. // Properties:
  1843. bool animationEnabled;
  1844. /* readonly */
  1845. Array<Variant> attributeDefaults;
  1846. /* readonly */
  1847. Array<AttributeInfo> attributeInfos;
  1848. Array<Variant> attributes;
  1849. /* readonly */
  1850. String category;
  1851. int categoryBits;
  1852. float density;
  1853. bool enabled;
  1854. /* readonly */
  1855. bool enabledEffective;
  1856. float friction;
  1857. int groupIndex;
  1858. /* readonly */
  1859. uint id;
  1860. /* readonly */
  1861. float inertia;
  1862. int maskBits;
  1863. /* readonly */
  1864. float mass;
  1865. /* readonly */
  1866. Vector2 massCenter;
  1867. /* readonly */
  1868. Node node;
  1869. /* readonly */
  1870. uint numAttributes;
  1871. ObjectAnimation objectAnimation;
  1872. /* readonly */
  1873. int refs;
  1874. float restitution;
  1875. bool temporary;
  1876. bool trigger;
  1877. /* readonly */
  1878. StringHash type;
  1879. /* readonly */
  1880. String typeName;
  1881. uint vertexCount;
  1882. /* readonly */
  1883. int weakRefs;
  1884. };
  1885. class CollisionShape
  1886. {
  1887. // Methods:
  1888. void ApplyAttributes();
  1889. void DrawDebugGeometry(DebugRenderer, bool);
  1890. Variant GetAttribute(const String&) const;
  1891. ValueAnimation GetAttributeAnimation(const String&) const;
  1892. float GetAttributeAnimationSpeed(const String&) const;
  1893. float GetAttributeAnimationTime(const String&) const;
  1894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1895. Variant GetAttributeDefault(const String&) const;
  1896. bool GetInterceptNetworkUpdate(const String&) const;
  1897. bool HasSubscribedToEvent(Object, const String&);
  1898. bool HasSubscribedToEvent(const String&);
  1899. bool Load(File, bool = false);
  1900. bool Load(VectorBuffer&, bool = false);
  1901. bool LoadJSON(const JSONValue&, bool = false);
  1902. bool LoadXML(const XMLElement&, bool = false);
  1903. void MarkNetworkUpdate() const;
  1904. void Remove();
  1905. void RemoveAttributeAnimation(const String&);
  1906. void RemoveInstanceDefault();
  1907. void RemoveObjectAnimation();
  1908. void ResetToDefault();
  1909. bool Save(File) const;
  1910. bool Save(VectorBuffer&) const;
  1911. bool SaveJSON(JSONValue&) const;
  1912. bool SaveXML(XMLElement&) const;
  1913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1914. void SetAnimationTime(float);
  1915. bool SetAttribute(const String&, const Variant&);
  1916. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1917. void SetAttributeAnimationSpeed(const String&, float);
  1918. void SetAttributeAnimationTime(const String&, float);
  1919. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1920. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1921. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1922. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1923. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1924. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1925. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1926. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1927. void SetInterceptNetworkUpdate(const String&, bool);
  1928. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetTerrain(uint = 0);
  1931. void SetTransform(const Vector3&, const Quaternion&);
  1932. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. // Properties:
  1934. bool animationEnabled;
  1935. /* readonly */
  1936. Array<Variant> attributeDefaults;
  1937. /* readonly */
  1938. Array<AttributeInfo> attributeInfos;
  1939. Array<Variant> attributes;
  1940. /* readonly */
  1941. String category;
  1942. bool enabled;
  1943. /* readonly */
  1944. bool enabledEffective;
  1945. /* readonly */
  1946. uint id;
  1947. uint lodLevel;
  1948. float margin;
  1949. Model model;
  1950. /* readonly */
  1951. Node node;
  1952. /* readonly */
  1953. uint numAttributes;
  1954. ObjectAnimation objectAnimation;
  1955. Vector3 position;
  1956. /* readonly */
  1957. int refs;
  1958. Quaternion rotation;
  1959. ShapeType shapeType;
  1960. Vector3 size;
  1961. bool temporary;
  1962. /* readonly */
  1963. StringHash type;
  1964. /* readonly */
  1965. String typeName;
  1966. /* readonly */
  1967. int weakRefs;
  1968. /* readonly */
  1969. BoundingBox worldBoundingBox;
  1970. };
  1971. class CollisionShape2D
  1972. {
  1973. // Methods:
  1974. void ApplyAttributes();
  1975. void DrawDebugGeometry(DebugRenderer, bool);
  1976. Variant GetAttribute(const String&) const;
  1977. ValueAnimation GetAttributeAnimation(const String&) const;
  1978. float GetAttributeAnimationSpeed(const String&) const;
  1979. float GetAttributeAnimationTime(const String&) const;
  1980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1981. Variant GetAttributeDefault(const String&) const;
  1982. bool GetInterceptNetworkUpdate(const String&) const;
  1983. bool HasSubscribedToEvent(Object, const String&);
  1984. bool HasSubscribedToEvent(const String&);
  1985. bool Load(File, bool = false);
  1986. bool Load(VectorBuffer&, bool = false);
  1987. bool LoadJSON(const JSONValue&, bool = false);
  1988. bool LoadXML(const XMLElement&, bool = false);
  1989. void MarkNetworkUpdate() const;
  1990. void Remove();
  1991. void RemoveAttributeAnimation(const String&);
  1992. void RemoveInstanceDefault();
  1993. void RemoveObjectAnimation();
  1994. void ResetToDefault();
  1995. bool Save(File) const;
  1996. bool Save(VectorBuffer&) const;
  1997. bool SaveJSON(JSONValue&) const;
  1998. bool SaveXML(XMLElement&) const;
  1999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2000. void SetAnimationTime(float);
  2001. bool SetAttribute(const String&, const Variant&);
  2002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2003. void SetAttributeAnimationSpeed(const String&, float);
  2004. void SetAttributeAnimationTime(const String&, float);
  2005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2006. void SetInterceptNetworkUpdate(const String&, bool);
  2007. // Properties:
  2008. bool animationEnabled;
  2009. /* readonly */
  2010. Array<Variant> attributeDefaults;
  2011. /* readonly */
  2012. Array<AttributeInfo> attributeInfos;
  2013. Array<Variant> attributes;
  2014. /* readonly */
  2015. String category;
  2016. int categoryBits;
  2017. float density;
  2018. bool enabled;
  2019. /* readonly */
  2020. bool enabledEffective;
  2021. float friction;
  2022. int groupIndex;
  2023. /* readonly */
  2024. uint id;
  2025. /* readonly */
  2026. float inertia;
  2027. int maskBits;
  2028. /* readonly */
  2029. float mass;
  2030. /* readonly */
  2031. Vector2 massCenter;
  2032. /* readonly */
  2033. Node node;
  2034. /* readonly */
  2035. uint numAttributes;
  2036. ObjectAnimation objectAnimation;
  2037. /* readonly */
  2038. int refs;
  2039. float restitution;
  2040. bool temporary;
  2041. bool trigger;
  2042. /* readonly */
  2043. StringHash type;
  2044. /* readonly */
  2045. String typeName;
  2046. /* readonly */
  2047. int weakRefs;
  2048. };
  2049. class Color
  2050. {
  2051. // Methods:
  2052. Color Abs() const;
  2053. float Average() const;
  2054. float Chroma() const;
  2055. void Clip(bool);
  2056. bool Equals() const;
  2057. void FromHSL(float, float, float, float);
  2058. void FromHSV(float, float, float, float);
  2059. float Hue() const;
  2060. void Invert(bool);
  2061. Color Lerp(const Color&, float) const;
  2062. float Lightness() const;
  2063. float Luma() const;
  2064. float MaxRGB() const;
  2065. float MinRGB() const;
  2066. float Range() const;
  2067. float SaturationHSL() const;
  2068. float SaturationHSV() const;
  2069. float SumRGB() const;
  2070. Vector3 ToHSL() const;
  2071. Vector3 ToHSV() const;
  2072. String ToString() const;
  2073. uint ToUInt() const;
  2074. float Value() const;
  2075. // Properties:
  2076. float a;
  2077. float b;
  2078. /* readonly */
  2079. Array<float> data;
  2080. float g;
  2081. float r;
  2082. /* readonly */
  2083. Vector3 rgb;
  2084. /* readonly */
  2085. Vector4 rgba;
  2086. };
  2087. class ColorFrame
  2088. {
  2089. // Properties:
  2090. Color color;
  2091. float time;
  2092. };
  2093. class Component
  2094. {
  2095. // Methods:
  2096. void ApplyAttributes();
  2097. void DrawDebugGeometry(DebugRenderer, bool);
  2098. Variant GetAttribute(const String&) const;
  2099. ValueAnimation GetAttributeAnimation(const String&) const;
  2100. float GetAttributeAnimationSpeed(const String&) const;
  2101. float GetAttributeAnimationTime(const String&) const;
  2102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2103. Variant GetAttributeDefault(const String&) const;
  2104. bool GetInterceptNetworkUpdate(const String&) const;
  2105. bool HasSubscribedToEvent(Object, const String&);
  2106. bool HasSubscribedToEvent(const String&);
  2107. bool Load(File, bool = false);
  2108. bool Load(VectorBuffer&, bool = false);
  2109. bool LoadJSON(const JSONValue&, bool = false);
  2110. bool LoadXML(const XMLElement&, bool = false);
  2111. void MarkNetworkUpdate() const;
  2112. void Remove();
  2113. void RemoveAttributeAnimation(const String&);
  2114. void RemoveInstanceDefault();
  2115. void RemoveObjectAnimation();
  2116. void ResetToDefault();
  2117. bool Save(File) const;
  2118. bool Save(VectorBuffer&) const;
  2119. bool SaveJSON(JSONValue&) const;
  2120. bool SaveXML(XMLElement&) const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void SetAnimationTime(float);
  2123. bool SetAttribute(const String&, const Variant&);
  2124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2125. void SetAttributeAnimationSpeed(const String&, float);
  2126. void SetAttributeAnimationTime(const String&, float);
  2127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2128. void SetInterceptNetworkUpdate(const String&, bool);
  2129. // Properties:
  2130. bool animationEnabled;
  2131. /* readonly */
  2132. Array<Variant> attributeDefaults;
  2133. /* readonly */
  2134. Array<AttributeInfo> attributeInfos;
  2135. Array<Variant> attributes;
  2136. /* readonly */
  2137. String category;
  2138. bool enabled;
  2139. /* readonly */
  2140. bool enabledEffective;
  2141. /* readonly */
  2142. uint id;
  2143. /* readonly */
  2144. Node node;
  2145. /* readonly */
  2146. uint numAttributes;
  2147. ObjectAnimation objectAnimation;
  2148. /* readonly */
  2149. int refs;
  2150. bool temporary;
  2151. /* readonly */
  2152. StringHash type;
  2153. /* readonly */
  2154. String typeName;
  2155. /* readonly */
  2156. int weakRefs;
  2157. };
  2158. class Connection
  2159. {
  2160. // Methods:
  2161. void Disconnect(int = 0);
  2162. bool HasSubscribedToEvent(Object, const String&);
  2163. bool HasSubscribedToEvent(const String&);
  2164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2165. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2166. void SendPackageToClient(PackageFile);
  2167. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2168. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2169. String ToString() const;
  2170. // Properties:
  2171. /* readonly */
  2172. String address;
  2173. /* readonly */
  2174. float bytesInPerSec;
  2175. /* readonly */
  2176. float bytesOutPerSec;
  2177. /* readonly */
  2178. String category;
  2179. /* readonly */
  2180. bool client;
  2181. /* readonly */
  2182. bool connectPending;
  2183. /* readonly */
  2184. bool connected;
  2185. Controls controls;
  2186. /* readonly */
  2187. String downloadName;
  2188. /* readonly */
  2189. float downloadProgress;
  2190. VariantMap identity;
  2191. /* readonly */
  2192. float lastHeardTime;
  2193. bool logStatistics;
  2194. /* readonly */
  2195. uint numDownloads;
  2196. /* readonly */
  2197. float packetsInPerSec;
  2198. /* readonly */
  2199. float packetsOutPerSec;
  2200. /* readonly */
  2201. uint16 port;
  2202. Vector3 position;
  2203. /* readonly */
  2204. int refs;
  2205. Quaternion rotation;
  2206. /* readonly */
  2207. float roundTripTime;
  2208. Scene scene;
  2209. /* readonly */
  2210. bool sceneLoaded;
  2211. uint8 timeStamp;
  2212. /* readonly */
  2213. StringHash type;
  2214. /* readonly */
  2215. String typeName;
  2216. /* readonly */
  2217. int weakRefs;
  2218. };
  2219. class Console
  2220. {
  2221. // Methods:
  2222. void CopySelectedRows() const;
  2223. bool HasSubscribedToEvent(Object, const String&);
  2224. bool HasSubscribedToEvent(const String&);
  2225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2226. void Toggle();
  2227. void UpdateElements();
  2228. // Properties:
  2229. bool autoVisibleOnError;
  2230. /* readonly */
  2231. BorderImage background;
  2232. /* readonly */
  2233. String category;
  2234. /* readonly */
  2235. Button closeButton;
  2236. String commandInterpreter;
  2237. XMLFile defaultStyle;
  2238. bool focusOnShow;
  2239. /* readonly */
  2240. uint historyPosition;
  2241. /* readonly */
  2242. Array<String> historyRow;
  2243. /* readonly */
  2244. LineEdit lineEdit;
  2245. uint numBufferedRows;
  2246. uint numHistoryRows;
  2247. uint numRows;
  2248. /* readonly */
  2249. int refs;
  2250. /* readonly */
  2251. StringHash type;
  2252. /* readonly */
  2253. String typeName;
  2254. bool visible;
  2255. /* readonly */
  2256. int weakRefs;
  2257. };
  2258. class Constraint
  2259. {
  2260. // Methods:
  2261. void ApplyAttributes();
  2262. void DrawDebugGeometry(DebugRenderer, bool);
  2263. Variant GetAttribute(const String&) const;
  2264. ValueAnimation GetAttributeAnimation(const String&) const;
  2265. float GetAttributeAnimationSpeed(const String&) const;
  2266. float GetAttributeAnimationTime(const String&) const;
  2267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2268. Variant GetAttributeDefault(const String&) const;
  2269. bool GetInterceptNetworkUpdate(const String&) const;
  2270. bool HasSubscribedToEvent(Object, const String&);
  2271. bool HasSubscribedToEvent(const String&);
  2272. bool Load(File, bool = false);
  2273. bool Load(VectorBuffer&, bool = false);
  2274. bool LoadJSON(const JSONValue&, bool = false);
  2275. bool LoadXML(const XMLElement&, bool = false);
  2276. void MarkNetworkUpdate() const;
  2277. void Remove();
  2278. void RemoveAttributeAnimation(const String&);
  2279. void RemoveInstanceDefault();
  2280. void RemoveObjectAnimation();
  2281. void ResetToDefault();
  2282. bool Save(File) const;
  2283. bool Save(VectorBuffer&) const;
  2284. bool SaveJSON(JSONValue&) const;
  2285. bool SaveXML(XMLElement&) const;
  2286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2287. void SetAnimationTime(float);
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationTime(const String&, float);
  2292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2293. void SetInterceptNetworkUpdate(const String&, bool);
  2294. // Properties:
  2295. bool animationEnabled;
  2296. /* readonly */
  2297. Array<Variant> attributeDefaults;
  2298. /* readonly */
  2299. Array<AttributeInfo> attributeInfos;
  2300. Array<Variant> attributes;
  2301. /* writeonly */
  2302. Vector3 axis;
  2303. /* readonly */
  2304. String category;
  2305. float cfm;
  2306. ConstraintType constraintType;
  2307. bool disableCollision;
  2308. bool enabled;
  2309. /* readonly */
  2310. bool enabledEffective;
  2311. float erp;
  2312. Vector2 highLimit;
  2313. /* readonly */
  2314. uint id;
  2315. Vector2 lowLimit;
  2316. /* readonly */
  2317. Node node;
  2318. /* readonly */
  2319. uint numAttributes;
  2320. ObjectAnimation objectAnimation;
  2321. /* writeonly */
  2322. Vector3 otherAxis;
  2323. RigidBody otherBody;
  2324. Vector3 otherPosition;
  2325. Quaternion otherRotation;
  2326. /* readonly */
  2327. RigidBody ownBody;
  2328. Vector3 position;
  2329. /* readonly */
  2330. int refs;
  2331. Quaternion rotation;
  2332. bool temporary;
  2333. /* readonly */
  2334. StringHash type;
  2335. /* readonly */
  2336. String typeName;
  2337. /* readonly */
  2338. int weakRefs;
  2339. Vector3 worldPosition;
  2340. };
  2341. class Constraint2D
  2342. {
  2343. // Methods:
  2344. void ApplyAttributes();
  2345. void DrawDebugGeometry(DebugRenderer, bool);
  2346. Variant GetAttribute(const String&) const;
  2347. ValueAnimation GetAttributeAnimation(const String&) const;
  2348. float GetAttributeAnimationSpeed(const String&) const;
  2349. float GetAttributeAnimationTime(const String&) const;
  2350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2351. Variant GetAttributeDefault(const String&) const;
  2352. bool GetInterceptNetworkUpdate(const String&) const;
  2353. bool HasSubscribedToEvent(Object, const String&);
  2354. bool HasSubscribedToEvent(const String&);
  2355. bool Load(File, bool = false);
  2356. bool Load(VectorBuffer&, bool = false);
  2357. bool LoadJSON(const JSONValue&, bool = false);
  2358. bool LoadXML(const XMLElement&, bool = false);
  2359. void MarkNetworkUpdate() const;
  2360. void Remove();
  2361. void RemoveAttributeAnimation(const String&);
  2362. void RemoveInstanceDefault();
  2363. void RemoveObjectAnimation();
  2364. void ResetToDefault();
  2365. bool Save(File) const;
  2366. bool Save(VectorBuffer&) const;
  2367. bool SaveJSON(JSONValue&) const;
  2368. bool SaveXML(XMLElement&) const;
  2369. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2370. void SetAnimationTime(float);
  2371. bool SetAttribute(const String&, const Variant&);
  2372. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2373. void SetAttributeAnimationSpeed(const String&, float);
  2374. void SetAttributeAnimationTime(const String&, float);
  2375. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2376. void SetInterceptNetworkUpdate(const String&, bool);
  2377. // Properties:
  2378. bool animationEnabled;
  2379. /* readonly */
  2380. Array<Variant> attributeDefaults;
  2381. /* readonly */
  2382. Array<AttributeInfo> attributeInfos;
  2383. Array<Variant> attributes;
  2384. /* readonly */
  2385. String category;
  2386. bool collideConnected;
  2387. bool enabled;
  2388. /* readonly */
  2389. bool enabledEffective;
  2390. /* readonly */
  2391. uint id;
  2392. /* readonly */
  2393. Node node;
  2394. /* readonly */
  2395. uint numAttributes;
  2396. ObjectAnimation objectAnimation;
  2397. RigidBody2D otherBody;
  2398. /* readonly */
  2399. RigidBody2D ownerBody;
  2400. /* readonly */
  2401. int refs;
  2402. bool temporary;
  2403. /* readonly */
  2404. StringHash type;
  2405. /* readonly */
  2406. String typeName;
  2407. /* readonly */
  2408. int weakRefs;
  2409. };
  2410. class ConstraintDistance2D
  2411. {
  2412. // Methods:
  2413. void ApplyAttributes();
  2414. void DrawDebugGeometry(DebugRenderer, bool);
  2415. Variant GetAttribute(const String&) const;
  2416. ValueAnimation GetAttributeAnimation(const String&) const;
  2417. float GetAttributeAnimationSpeed(const String&) const;
  2418. float GetAttributeAnimationTime(const String&) const;
  2419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2420. Variant GetAttributeDefault(const String&) const;
  2421. bool GetInterceptNetworkUpdate(const String&) const;
  2422. bool HasSubscribedToEvent(Object, const String&);
  2423. bool HasSubscribedToEvent(const String&);
  2424. bool Load(File, bool = false);
  2425. bool Load(VectorBuffer&, bool = false);
  2426. bool LoadJSON(const JSONValue&, bool = false);
  2427. bool LoadXML(const XMLElement&, bool = false);
  2428. void MarkNetworkUpdate() const;
  2429. void Remove();
  2430. void RemoveAttributeAnimation(const String&);
  2431. void RemoveInstanceDefault();
  2432. void RemoveObjectAnimation();
  2433. void ResetToDefault();
  2434. bool Save(File) const;
  2435. bool Save(VectorBuffer&) const;
  2436. bool SaveJSON(JSONValue&) const;
  2437. bool SaveXML(XMLElement&) const;
  2438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2439. void SetAnimationTime(float);
  2440. bool SetAttribute(const String&, const Variant&);
  2441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2442. void SetAttributeAnimationSpeed(const String&, float);
  2443. void SetAttributeAnimationTime(const String&, float);
  2444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2445. void SetInterceptNetworkUpdate(const String&, bool);
  2446. // Properties:
  2447. bool animationEnabled;
  2448. /* readonly */
  2449. Array<Variant> attributeDefaults;
  2450. /* readonly */
  2451. Array<AttributeInfo> attributeInfos;
  2452. Array<Variant> attributes;
  2453. /* readonly */
  2454. String category;
  2455. bool collideConnected;
  2456. float dampingRatio;
  2457. bool enabled;
  2458. /* readonly */
  2459. bool enabledEffective;
  2460. float frequencyHz;
  2461. /* readonly */
  2462. uint id;
  2463. /* readonly */
  2464. Node node;
  2465. /* readonly */
  2466. uint numAttributes;
  2467. ObjectAnimation objectAnimation;
  2468. RigidBody2D otherBody;
  2469. Vector2 otherBodyAnchor;
  2470. /* readonly */
  2471. RigidBody2D ownerBody;
  2472. Vector2 ownerBodyAnchor;
  2473. /* readonly */
  2474. int refs;
  2475. bool temporary;
  2476. /* readonly */
  2477. StringHash type;
  2478. /* readonly */
  2479. String typeName;
  2480. /* readonly */
  2481. int weakRefs;
  2482. };
  2483. class ConstraintFriction2D
  2484. {
  2485. // Methods:
  2486. void ApplyAttributes();
  2487. void DrawDebugGeometry(DebugRenderer, bool);
  2488. Variant GetAttribute(const String&) const;
  2489. ValueAnimation GetAttributeAnimation(const String&) const;
  2490. float GetAttributeAnimationSpeed(const String&) const;
  2491. float GetAttributeAnimationTime(const String&) const;
  2492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2493. Variant GetAttributeDefault(const String&) const;
  2494. bool GetInterceptNetworkUpdate(const String&) const;
  2495. bool HasSubscribedToEvent(Object, const String&);
  2496. bool HasSubscribedToEvent(const String&);
  2497. bool Load(File, bool = false);
  2498. bool Load(VectorBuffer&, bool = false);
  2499. bool LoadJSON(const JSONValue&, bool = false);
  2500. bool LoadXML(const XMLElement&, bool = false);
  2501. void MarkNetworkUpdate() const;
  2502. void Remove();
  2503. void RemoveAttributeAnimation(const String&);
  2504. void RemoveInstanceDefault();
  2505. void RemoveObjectAnimation();
  2506. void ResetToDefault();
  2507. bool Save(File) const;
  2508. bool Save(VectorBuffer&) const;
  2509. bool SaveJSON(JSONValue&) const;
  2510. bool SaveXML(XMLElement&) const;
  2511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2512. void SetAnimationTime(float);
  2513. bool SetAttribute(const String&, const Variant&);
  2514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2515. void SetAttributeAnimationSpeed(const String&, float);
  2516. void SetAttributeAnimationTime(const String&, float);
  2517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2518. void SetInterceptNetworkUpdate(const String&, bool);
  2519. // Properties:
  2520. Vector2 anchor;
  2521. bool animationEnabled;
  2522. /* readonly */
  2523. Array<Variant> attributeDefaults;
  2524. /* readonly */
  2525. Array<AttributeInfo> attributeInfos;
  2526. Array<Variant> attributes;
  2527. /* readonly */
  2528. String category;
  2529. bool collideConnected;
  2530. bool enabled;
  2531. /* readonly */
  2532. bool enabledEffective;
  2533. /* readonly */
  2534. uint id;
  2535. float maxForce;
  2536. float maxTorque;
  2537. /* readonly */
  2538. Node node;
  2539. /* readonly */
  2540. uint numAttributes;
  2541. ObjectAnimation objectAnimation;
  2542. RigidBody2D otherBody;
  2543. /* readonly */
  2544. RigidBody2D ownerBody;
  2545. /* readonly */
  2546. int refs;
  2547. bool temporary;
  2548. /* readonly */
  2549. StringHash type;
  2550. /* readonly */
  2551. String typeName;
  2552. /* readonly */
  2553. int weakRefs;
  2554. };
  2555. class ConstraintGear2D
  2556. {
  2557. // Methods:
  2558. void ApplyAttributes();
  2559. void DrawDebugGeometry(DebugRenderer, bool);
  2560. Variant GetAttribute(const String&) const;
  2561. ValueAnimation GetAttributeAnimation(const String&) const;
  2562. float GetAttributeAnimationSpeed(const String&) const;
  2563. float GetAttributeAnimationTime(const String&) const;
  2564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2565. Variant GetAttributeDefault(const String&) const;
  2566. bool GetInterceptNetworkUpdate(const String&) const;
  2567. bool HasSubscribedToEvent(Object, const String&);
  2568. bool HasSubscribedToEvent(const String&);
  2569. bool Load(File, bool = false);
  2570. bool Load(VectorBuffer&, bool = false);
  2571. bool LoadJSON(const JSONValue&, bool = false);
  2572. bool LoadXML(const XMLElement&, bool = false);
  2573. void MarkNetworkUpdate() const;
  2574. void Remove();
  2575. void RemoveAttributeAnimation(const String&);
  2576. void RemoveInstanceDefault();
  2577. void RemoveObjectAnimation();
  2578. void ResetToDefault();
  2579. bool Save(File) const;
  2580. bool Save(VectorBuffer&) const;
  2581. bool SaveJSON(JSONValue&) const;
  2582. bool SaveXML(XMLElement&) const;
  2583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2584. void SetAnimationTime(float);
  2585. bool SetAttribute(const String&, const Variant&);
  2586. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2587. void SetAttributeAnimationSpeed(const String&, float);
  2588. void SetAttributeAnimationTime(const String&, float);
  2589. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2590. void SetInterceptNetworkUpdate(const String&, bool);
  2591. // Properties:
  2592. bool animationEnabled;
  2593. /* readonly */
  2594. Array<Variant> attributeDefaults;
  2595. /* readonly */
  2596. Array<AttributeInfo> attributeInfos;
  2597. Array<Variant> attributes;
  2598. /* readonly */
  2599. String category;
  2600. bool collideConnected;
  2601. bool enabled;
  2602. /* readonly */
  2603. bool enabledEffective;
  2604. /* readonly */
  2605. uint id;
  2606. /* readonly */
  2607. Node node;
  2608. /* readonly */
  2609. uint numAttributes;
  2610. ObjectAnimation objectAnimation;
  2611. RigidBody2D otherBody;
  2612. Constraint2D otherConstraint;
  2613. /* readonly */
  2614. RigidBody2D ownerBody;
  2615. Constraint2D ownerConstraint;
  2616. float ratio;
  2617. /* readonly */
  2618. int refs;
  2619. bool temporary;
  2620. /* readonly */
  2621. StringHash type;
  2622. /* readonly */
  2623. String typeName;
  2624. /* readonly */
  2625. int weakRefs;
  2626. };
  2627. class ConstraintMotor2D
  2628. {
  2629. // Methods:
  2630. void ApplyAttributes();
  2631. void DrawDebugGeometry(DebugRenderer, bool);
  2632. Variant GetAttribute(const String&) const;
  2633. ValueAnimation GetAttributeAnimation(const String&) const;
  2634. float GetAttributeAnimationSpeed(const String&) const;
  2635. float GetAttributeAnimationTime(const String&) const;
  2636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2637. Variant GetAttributeDefault(const String&) const;
  2638. bool GetInterceptNetworkUpdate(const String&) const;
  2639. bool HasSubscribedToEvent(Object, const String&);
  2640. bool HasSubscribedToEvent(const String&);
  2641. bool Load(File, bool = false);
  2642. bool Load(VectorBuffer&, bool = false);
  2643. bool LoadJSON(const JSONValue&, bool = false);
  2644. bool LoadXML(const XMLElement&, bool = false);
  2645. void MarkNetworkUpdate() const;
  2646. void Remove();
  2647. void RemoveAttributeAnimation(const String&);
  2648. void RemoveInstanceDefault();
  2649. void RemoveObjectAnimation();
  2650. void ResetToDefault();
  2651. bool Save(File) const;
  2652. bool Save(VectorBuffer&) const;
  2653. bool SaveJSON(JSONValue&) const;
  2654. bool SaveXML(XMLElement&) const;
  2655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2656. void SetAnimationTime(float);
  2657. bool SetAttribute(const String&, const Variant&);
  2658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2659. void SetAttributeAnimationSpeed(const String&, float);
  2660. void SetAttributeAnimationTime(const String&, float);
  2661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2662. void SetInterceptNetworkUpdate(const String&, bool);
  2663. // Properties:
  2664. float angularOffset;
  2665. bool animationEnabled;
  2666. /* readonly */
  2667. Array<Variant> attributeDefaults;
  2668. /* readonly */
  2669. Array<AttributeInfo> attributeInfos;
  2670. Array<Variant> attributes;
  2671. /* readonly */
  2672. String category;
  2673. bool collideConnected;
  2674. float correctionFactor;
  2675. bool enabled;
  2676. /* readonly */
  2677. bool enabledEffective;
  2678. /* readonly */
  2679. uint id;
  2680. Vector2 linearOffset;
  2681. float maxForce;
  2682. float maxTorque;
  2683. /* readonly */
  2684. Node node;
  2685. /* readonly */
  2686. uint numAttributes;
  2687. ObjectAnimation objectAnimation;
  2688. RigidBody2D otherBody;
  2689. /* readonly */
  2690. RigidBody2D ownerBody;
  2691. /* readonly */
  2692. int refs;
  2693. bool temporary;
  2694. /* readonly */
  2695. StringHash type;
  2696. /* readonly */
  2697. String typeName;
  2698. /* readonly */
  2699. int weakRefs;
  2700. };
  2701. class ConstraintMouse2D
  2702. {
  2703. // Methods:
  2704. void ApplyAttributes();
  2705. void DrawDebugGeometry(DebugRenderer, bool);
  2706. Variant GetAttribute(const String&) const;
  2707. ValueAnimation GetAttributeAnimation(const String&) const;
  2708. float GetAttributeAnimationSpeed(const String&) const;
  2709. float GetAttributeAnimationTime(const String&) const;
  2710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2711. Variant GetAttributeDefault(const String&) const;
  2712. bool GetInterceptNetworkUpdate(const String&) const;
  2713. bool HasSubscribedToEvent(Object, const String&);
  2714. bool HasSubscribedToEvent(const String&);
  2715. bool Load(File, bool = false);
  2716. bool Load(VectorBuffer&, bool = false);
  2717. bool LoadJSON(const JSONValue&, bool = false);
  2718. bool LoadXML(const XMLElement&, bool = false);
  2719. void MarkNetworkUpdate() const;
  2720. void Remove();
  2721. void RemoveAttributeAnimation(const String&);
  2722. void RemoveInstanceDefault();
  2723. void RemoveObjectAnimation();
  2724. void ResetToDefault();
  2725. bool Save(File) const;
  2726. bool Save(VectorBuffer&) const;
  2727. bool SaveJSON(JSONValue&) const;
  2728. bool SaveXML(XMLElement&) const;
  2729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2730. void SetAnimationTime(float);
  2731. bool SetAttribute(const String&, const Variant&);
  2732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2733. void SetAttributeAnimationSpeed(const String&, float);
  2734. void SetAttributeAnimationTime(const String&, float);
  2735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2736. void SetInterceptNetworkUpdate(const String&, bool);
  2737. // Properties:
  2738. bool animationEnabled;
  2739. /* readonly */
  2740. Array<Variant> attributeDefaults;
  2741. /* readonly */
  2742. Array<AttributeInfo> attributeInfos;
  2743. Array<Variant> attributes;
  2744. /* readonly */
  2745. String category;
  2746. bool collideConnected;
  2747. float dampingRatio;
  2748. bool enabled;
  2749. /* readonly */
  2750. bool enabledEffective;
  2751. float frequencyHz;
  2752. /* readonly */
  2753. uint id;
  2754. float maxForce;
  2755. /* readonly */
  2756. Node node;
  2757. /* readonly */
  2758. uint numAttributes;
  2759. ObjectAnimation objectAnimation;
  2760. RigidBody2D otherBody;
  2761. /* readonly */
  2762. RigidBody2D ownerBody;
  2763. /* readonly */
  2764. int refs;
  2765. Vector2 target;
  2766. bool temporary;
  2767. /* readonly */
  2768. StringHash type;
  2769. /* readonly */
  2770. String typeName;
  2771. /* readonly */
  2772. int weakRefs;
  2773. };
  2774. class ConstraintPrismatic2D
  2775. {
  2776. // Methods:
  2777. void ApplyAttributes();
  2778. void DrawDebugGeometry(DebugRenderer, bool);
  2779. Variant GetAttribute(const String&) const;
  2780. ValueAnimation GetAttributeAnimation(const String&) const;
  2781. float GetAttributeAnimationSpeed(const String&) const;
  2782. float GetAttributeAnimationTime(const String&) const;
  2783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2784. Variant GetAttributeDefault(const String&) const;
  2785. bool GetInterceptNetworkUpdate(const String&) const;
  2786. bool HasSubscribedToEvent(Object, const String&);
  2787. bool HasSubscribedToEvent(const String&);
  2788. bool Load(File, bool = false);
  2789. bool Load(VectorBuffer&, bool = false);
  2790. bool LoadJSON(const JSONValue&, bool = false);
  2791. bool LoadXML(const XMLElement&, bool = false);
  2792. void MarkNetworkUpdate() const;
  2793. void Remove();
  2794. void RemoveAttributeAnimation(const String&);
  2795. void RemoveInstanceDefault();
  2796. void RemoveObjectAnimation();
  2797. void ResetToDefault();
  2798. bool Save(File) const;
  2799. bool Save(VectorBuffer&) const;
  2800. bool SaveJSON(JSONValue&) const;
  2801. bool SaveXML(XMLElement&) const;
  2802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2803. void SetAnimationTime(float);
  2804. bool SetAttribute(const String&, const Variant&);
  2805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2806. void SetAttributeAnimationSpeed(const String&, float);
  2807. void SetAttributeAnimationTime(const String&, float);
  2808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2809. void SetInterceptNetworkUpdate(const String&, bool);
  2810. // Properties:
  2811. Vector2 anchor;
  2812. bool animationEnabled;
  2813. /* readonly */
  2814. Array<Variant> attributeDefaults;
  2815. /* readonly */
  2816. Array<AttributeInfo> attributeInfos;
  2817. Array<Variant> attributes;
  2818. Vector2 axis;
  2819. /* readonly */
  2820. String category;
  2821. bool collideConnected;
  2822. bool enableLimit;
  2823. bool enableMotor;
  2824. bool enabled;
  2825. /* readonly */
  2826. bool enabledEffective;
  2827. /* readonly */
  2828. uint id;
  2829. float lowerTranslation;
  2830. float maxMotorForce;
  2831. float motorSpeed;
  2832. /* readonly */
  2833. Node node;
  2834. /* readonly */
  2835. uint numAttributes;
  2836. ObjectAnimation objectAnimation;
  2837. RigidBody2D otherBody;
  2838. /* readonly */
  2839. RigidBody2D ownerBody;
  2840. /* readonly */
  2841. int refs;
  2842. bool temporary;
  2843. /* readonly */
  2844. StringHash type;
  2845. /* readonly */
  2846. String typeName;
  2847. float upperTranslation;
  2848. /* readonly */
  2849. int weakRefs;
  2850. };
  2851. class ConstraintPulley2D
  2852. {
  2853. // Methods:
  2854. void ApplyAttributes();
  2855. void DrawDebugGeometry(DebugRenderer, bool);
  2856. Variant GetAttribute(const String&) const;
  2857. ValueAnimation GetAttributeAnimation(const String&) const;
  2858. float GetAttributeAnimationSpeed(const String&) const;
  2859. float GetAttributeAnimationTime(const String&) const;
  2860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2861. Variant GetAttributeDefault(const String&) const;
  2862. bool GetInterceptNetworkUpdate(const String&) const;
  2863. bool HasSubscribedToEvent(Object, const String&);
  2864. bool HasSubscribedToEvent(const String&);
  2865. bool Load(File, bool = false);
  2866. bool Load(VectorBuffer&, bool = false);
  2867. bool LoadJSON(const JSONValue&, bool = false);
  2868. bool LoadXML(const XMLElement&, bool = false);
  2869. void MarkNetworkUpdate() const;
  2870. void Remove();
  2871. void RemoveAttributeAnimation(const String&);
  2872. void RemoveInstanceDefault();
  2873. void RemoveObjectAnimation();
  2874. void ResetToDefault();
  2875. bool Save(File) const;
  2876. bool Save(VectorBuffer&) const;
  2877. bool SaveJSON(JSONValue&) const;
  2878. bool SaveXML(XMLElement&) const;
  2879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2880. void SetAnimationTime(float);
  2881. bool SetAttribute(const String&, const Variant&);
  2882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2883. void SetAttributeAnimationSpeed(const String&, float);
  2884. void SetAttributeAnimationTime(const String&, float);
  2885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2886. void SetInterceptNetworkUpdate(const String&, bool);
  2887. // Properties:
  2888. bool animationEnabled;
  2889. /* readonly */
  2890. Array<Variant> attributeDefaults;
  2891. /* readonly */
  2892. Array<AttributeInfo> attributeInfos;
  2893. Array<Variant> attributes;
  2894. /* readonly */
  2895. String category;
  2896. bool collideConnected;
  2897. bool enabled;
  2898. /* readonly */
  2899. bool enabledEffective;
  2900. /* readonly */
  2901. uint id;
  2902. /* readonly */
  2903. Node node;
  2904. /* readonly */
  2905. uint numAttributes;
  2906. ObjectAnimation objectAnimation;
  2907. RigidBody2D otherBody;
  2908. Vector2 otherBodyAnchor;
  2909. Vector2 otherBodyGroundAnchor;
  2910. /* readonly */
  2911. RigidBody2D ownerBody;
  2912. Vector2 ownerBodyAnchor;
  2913. Vector2 ownerBodyGroundAnchor;
  2914. float ratio;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintRevolute2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool HasSubscribedToEvent(Object, const String&);
  2938. bool HasSubscribedToEvent(const String&);
  2939. bool Load(File, bool = false);
  2940. bool Load(VectorBuffer&, bool = false);
  2941. bool LoadJSON(const JSONValue&, bool = false);
  2942. bool LoadXML(const XMLElement&, bool = false);
  2943. void MarkNetworkUpdate() const;
  2944. void Remove();
  2945. void RemoveAttributeAnimation(const String&);
  2946. void RemoveInstanceDefault();
  2947. void RemoveObjectAnimation();
  2948. void ResetToDefault();
  2949. bool Save(File) const;
  2950. bool Save(VectorBuffer&) const;
  2951. bool SaveJSON(JSONValue&) const;
  2952. bool SaveXML(XMLElement&) const;
  2953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2954. void SetAnimationTime(float);
  2955. bool SetAttribute(const String&, const Variant&);
  2956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2957. void SetAttributeAnimationSpeed(const String&, float);
  2958. void SetAttributeAnimationTime(const String&, float);
  2959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2960. void SetInterceptNetworkUpdate(const String&, bool);
  2961. // Properties:
  2962. Vector2 anchor;
  2963. bool animationEnabled;
  2964. /* readonly */
  2965. Array<Variant> attributeDefaults;
  2966. /* readonly */
  2967. Array<AttributeInfo> attributeInfos;
  2968. Array<Variant> attributes;
  2969. /* readonly */
  2970. String category;
  2971. bool collideConnected;
  2972. bool enableLimit;
  2973. bool enableMotor;
  2974. bool enabled;
  2975. /* readonly */
  2976. bool enabledEffective;
  2977. /* readonly */
  2978. uint id;
  2979. float lowerAngle;
  2980. float maxMotorTorque;
  2981. float motorSpeed;
  2982. /* readonly */
  2983. Node node;
  2984. /* readonly */
  2985. uint numAttributes;
  2986. ObjectAnimation objectAnimation;
  2987. RigidBody2D otherBody;
  2988. /* readonly */
  2989. RigidBody2D ownerBody;
  2990. /* readonly */
  2991. int refs;
  2992. bool temporary;
  2993. /* readonly */
  2994. StringHash type;
  2995. /* readonly */
  2996. String typeName;
  2997. float upperAngle;
  2998. /* readonly */
  2999. int weakRefs;
  3000. };
  3001. class ConstraintRope2D
  3002. {
  3003. // Methods:
  3004. void ApplyAttributes();
  3005. void DrawDebugGeometry(DebugRenderer, bool);
  3006. Variant GetAttribute(const String&) const;
  3007. ValueAnimation GetAttributeAnimation(const String&) const;
  3008. float GetAttributeAnimationSpeed(const String&) const;
  3009. float GetAttributeAnimationTime(const String&) const;
  3010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3011. Variant GetAttributeDefault(const String&) const;
  3012. bool GetInterceptNetworkUpdate(const String&) const;
  3013. bool HasSubscribedToEvent(Object, const String&);
  3014. bool HasSubscribedToEvent(const String&);
  3015. bool Load(File, bool = false);
  3016. bool Load(VectorBuffer&, bool = false);
  3017. bool LoadJSON(const JSONValue&, bool = false);
  3018. bool LoadXML(const XMLElement&, bool = false);
  3019. void MarkNetworkUpdate() const;
  3020. void Remove();
  3021. void RemoveAttributeAnimation(const String&);
  3022. void RemoveInstanceDefault();
  3023. void RemoveObjectAnimation();
  3024. void ResetToDefault();
  3025. bool Save(File) const;
  3026. bool Save(VectorBuffer&) const;
  3027. bool SaveJSON(JSONValue&) const;
  3028. bool SaveXML(XMLElement&) const;
  3029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3030. void SetAnimationTime(float);
  3031. bool SetAttribute(const String&, const Variant&);
  3032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3033. void SetAttributeAnimationSpeed(const String&, float);
  3034. void SetAttributeAnimationTime(const String&, float);
  3035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3036. void SetInterceptNetworkUpdate(const String&, bool);
  3037. // Properties:
  3038. bool animationEnabled;
  3039. /* readonly */
  3040. Array<Variant> attributeDefaults;
  3041. /* readonly */
  3042. Array<AttributeInfo> attributeInfos;
  3043. Array<Variant> attributes;
  3044. /* readonly */
  3045. String category;
  3046. bool collideConnected;
  3047. bool enabled;
  3048. /* readonly */
  3049. bool enabledEffective;
  3050. /* readonly */
  3051. uint id;
  3052. float maxLength;
  3053. /* readonly */
  3054. Node node;
  3055. /* readonly */
  3056. uint numAttributes;
  3057. ObjectAnimation objectAnimation;
  3058. RigidBody2D otherBody;
  3059. Vector2 otherBodyAnchor;
  3060. /* readonly */
  3061. RigidBody2D ownerBody;
  3062. Vector2 ownerBodyAnchor;
  3063. /* readonly */
  3064. int refs;
  3065. bool temporary;
  3066. /* readonly */
  3067. StringHash type;
  3068. /* readonly */
  3069. String typeName;
  3070. /* readonly */
  3071. int weakRefs;
  3072. };
  3073. class ConstraintWeld2D
  3074. {
  3075. // Methods:
  3076. void ApplyAttributes();
  3077. void DrawDebugGeometry(DebugRenderer, bool);
  3078. Variant GetAttribute(const String&) const;
  3079. ValueAnimation GetAttributeAnimation(const String&) const;
  3080. float GetAttributeAnimationSpeed(const String&) const;
  3081. float GetAttributeAnimationTime(const String&) const;
  3082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3083. Variant GetAttributeDefault(const String&) const;
  3084. bool GetInterceptNetworkUpdate(const String&) const;
  3085. bool HasSubscribedToEvent(Object, const String&);
  3086. bool HasSubscribedToEvent(const String&);
  3087. bool Load(File, bool = false);
  3088. bool Load(VectorBuffer&, bool = false);
  3089. bool LoadJSON(const JSONValue&, bool = false);
  3090. bool LoadXML(const XMLElement&, bool = false);
  3091. void MarkNetworkUpdate() const;
  3092. void Remove();
  3093. void RemoveAttributeAnimation(const String&);
  3094. void RemoveInstanceDefault();
  3095. void RemoveObjectAnimation();
  3096. void ResetToDefault();
  3097. bool Save(File) const;
  3098. bool Save(VectorBuffer&) const;
  3099. bool SaveJSON(JSONValue&) const;
  3100. bool SaveXML(XMLElement&) const;
  3101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3102. void SetAnimationTime(float);
  3103. bool SetAttribute(const String&, const Variant&);
  3104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3105. void SetAttributeAnimationSpeed(const String&, float);
  3106. void SetAttributeAnimationTime(const String&, float);
  3107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3108. void SetInterceptNetworkUpdate(const String&, bool);
  3109. // Properties:
  3110. Vector2 anchor;
  3111. bool animationEnabled;
  3112. /* readonly */
  3113. Array<Variant> attributeDefaults;
  3114. /* readonly */
  3115. Array<AttributeInfo> attributeInfos;
  3116. Array<Variant> attributes;
  3117. /* readonly */
  3118. String category;
  3119. bool collideConnected;
  3120. float dampingRatio;
  3121. bool enabled;
  3122. /* readonly */
  3123. bool enabledEffective;
  3124. float frequencyHz;
  3125. /* readonly */
  3126. uint id;
  3127. /* readonly */
  3128. Node node;
  3129. /* readonly */
  3130. uint numAttributes;
  3131. ObjectAnimation objectAnimation;
  3132. RigidBody2D otherBody;
  3133. /* readonly */
  3134. RigidBody2D ownerBody;
  3135. /* readonly */
  3136. int refs;
  3137. bool temporary;
  3138. /* readonly */
  3139. StringHash type;
  3140. /* readonly */
  3141. String typeName;
  3142. /* readonly */
  3143. int weakRefs;
  3144. };
  3145. class ConstraintWheel2D
  3146. {
  3147. // Methods:
  3148. void ApplyAttributes();
  3149. void DrawDebugGeometry(DebugRenderer, bool);
  3150. Variant GetAttribute(const String&) const;
  3151. ValueAnimation GetAttributeAnimation(const String&) const;
  3152. float GetAttributeAnimationSpeed(const String&) const;
  3153. float GetAttributeAnimationTime(const String&) const;
  3154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3155. Variant GetAttributeDefault(const String&) const;
  3156. bool GetInterceptNetworkUpdate(const String&) const;
  3157. bool HasSubscribedToEvent(Object, const String&);
  3158. bool HasSubscribedToEvent(const String&);
  3159. bool Load(File, bool = false);
  3160. bool Load(VectorBuffer&, bool = false);
  3161. bool LoadJSON(const JSONValue&, bool = false);
  3162. bool LoadXML(const XMLElement&, bool = false);
  3163. void MarkNetworkUpdate() const;
  3164. void Remove();
  3165. void RemoveAttributeAnimation(const String&);
  3166. void RemoveInstanceDefault();
  3167. void RemoveObjectAnimation();
  3168. void ResetToDefault();
  3169. bool Save(File) const;
  3170. bool Save(VectorBuffer&) const;
  3171. bool SaveJSON(JSONValue&) const;
  3172. bool SaveXML(XMLElement&) const;
  3173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3174. void SetAnimationTime(float);
  3175. bool SetAttribute(const String&, const Variant&);
  3176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3177. void SetAttributeAnimationSpeed(const String&, float);
  3178. void SetAttributeAnimationTime(const String&, float);
  3179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3180. void SetInterceptNetworkUpdate(const String&, bool);
  3181. // Properties:
  3182. Vector2 anchor;
  3183. bool animationEnabled;
  3184. /* readonly */
  3185. Array<Variant> attributeDefaults;
  3186. /* readonly */
  3187. Array<AttributeInfo> attributeInfos;
  3188. Array<Variant> attributes;
  3189. Vector2 axis;
  3190. /* readonly */
  3191. String category;
  3192. bool collideConnected;
  3193. float dampingRatio;
  3194. bool enableMotor;
  3195. bool enabled;
  3196. /* readonly */
  3197. bool enabledEffective;
  3198. float frequencyHz;
  3199. /* readonly */
  3200. uint id;
  3201. float maxMotorTorque;
  3202. float motorSpeed;
  3203. /* readonly */
  3204. Node node;
  3205. /* readonly */
  3206. uint numAttributes;
  3207. ObjectAnimation objectAnimation;
  3208. RigidBody2D otherBody;
  3209. /* readonly */
  3210. RigidBody2D ownerBody;
  3211. /* readonly */
  3212. int refs;
  3213. bool temporary;
  3214. /* readonly */
  3215. StringHash type;
  3216. /* readonly */
  3217. String typeName;
  3218. /* readonly */
  3219. int weakRefs;
  3220. };
  3221. class Controls
  3222. {
  3223. // Methods:
  3224. bool IsDown(uint) const;
  3225. bool IsPressed(uint, const Controls&) const;
  3226. void Reset();
  3227. void Set(uint, bool);
  3228. // Properties:
  3229. uint buttons;
  3230. VariantMap extraData;
  3231. float pitch;
  3232. float yaw;
  3233. };
  3234. class CrowdAgent
  3235. {
  3236. // Methods:
  3237. void ApplyAttributes();
  3238. void DrawDebugGeometry(DebugRenderer, bool);
  3239. void DrawDebugGeometry(bool);
  3240. Variant GetAttribute(const String&) const;
  3241. ValueAnimation GetAttributeAnimation(const String&) const;
  3242. float GetAttributeAnimationSpeed(const String&) const;
  3243. float GetAttributeAnimationTime(const String&) const;
  3244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3245. Variant GetAttributeDefault(const String&) const;
  3246. bool GetInterceptNetworkUpdate(const String&) const;
  3247. bool HasSubscribedToEvent(Object, const String&);
  3248. bool HasSubscribedToEvent(const String&);
  3249. bool Load(File, bool = false);
  3250. bool Load(VectorBuffer&, bool = false);
  3251. bool LoadJSON(const JSONValue&, bool = false);
  3252. bool LoadXML(const XMLElement&, bool = false);
  3253. void MarkNetworkUpdate() const;
  3254. void Remove();
  3255. void RemoveAttributeAnimation(const String&);
  3256. void RemoveInstanceDefault();
  3257. void RemoveObjectAnimation();
  3258. void ResetTarget();
  3259. void ResetToDefault();
  3260. bool Save(File) const;
  3261. bool Save(VectorBuffer&) const;
  3262. bool SaveJSON(JSONValue&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. void SetAnimationTime(float);
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationTime(const String&, float);
  3270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3271. void SetInterceptNetworkUpdate(const String&, bool);
  3272. // Properties:
  3273. /* readonly */
  3274. Vector3 actualVelocity;
  3275. /* readonly */
  3276. CrowdAgentState agentState;
  3277. bool animationEnabled;
  3278. /* readonly */
  3279. bool arrived;
  3280. /* readonly */
  3281. Array<Variant> attributeDefaults;
  3282. /* readonly */
  3283. Array<AttributeInfo> attributeInfos;
  3284. Array<Variant> attributes;
  3285. /* readonly */
  3286. String category;
  3287. /* readonly */
  3288. Vector3 desiredVelocity;
  3289. bool enabled;
  3290. /* readonly */
  3291. bool enabledEffective;
  3292. float height;
  3293. /* readonly */
  3294. uint id;
  3295. /* readonly */
  3296. bool inCrowd;
  3297. float maxAccel;
  3298. float maxSpeed;
  3299. NavigationPushiness navigationPushiness;
  3300. NavigationQuality navigationQuality;
  3301. /* readonly */
  3302. Node node;
  3303. /* readonly */
  3304. uint numAttributes;
  3305. ObjectAnimation objectAnimation;
  3306. uint obstacleAvoidanceType;
  3307. /* readonly */
  3308. Vector3 position;
  3309. uint queryFilterType;
  3310. float radius;
  3311. /* readonly */
  3312. int refs;
  3313. /* readonly */
  3314. bool requestedTarget;
  3315. /* readonly */
  3316. CrowdAgentRequestedTarget requestedTargetType;
  3317. Vector3 targetPosition;
  3318. /* readonly */
  3319. CrowdAgentTargetState targetState;
  3320. Vector3 targetVelocity;
  3321. bool temporary;
  3322. /* readonly */
  3323. StringHash type;
  3324. /* readonly */
  3325. String typeName;
  3326. bool updateNodePosition;
  3327. /* readonly */
  3328. int weakRefs;
  3329. };
  3330. class CrowdManager
  3331. {
  3332. // Methods:
  3333. void ApplyAttributes();
  3334. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3335. void DrawDebugGeometry(DebugRenderer, bool);
  3336. void DrawDebugGeometry(bool);
  3337. Vector3 FindNearestPoint(const Vector3&, int);
  3338. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3339. float GetAreaCost(uint, uint);
  3340. Variant GetAttribute(const String&) const;
  3341. ValueAnimation GetAttributeAnimation(const String&) const;
  3342. float GetAttributeAnimationSpeed(const String&) const;
  3343. float GetAttributeAnimationTime(const String&) const;
  3344. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3345. Variant GetAttributeDefault(const String&) const;
  3346. float GetDistanceToWall(const Vector3&, float, int);
  3347. uint16 GetExcludeFlags(uint);
  3348. uint16 GetIncludeFlags(uint);
  3349. bool GetInterceptNetworkUpdate(const String&) const;
  3350. Vector3 GetRandomPoint(int);
  3351. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3352. bool HasSubscribedToEvent(Object, const String&);
  3353. bool HasSubscribedToEvent(const String&);
  3354. bool Load(File, bool = false);
  3355. bool Load(VectorBuffer&, bool = false);
  3356. bool LoadJSON(const JSONValue&, bool = false);
  3357. bool LoadXML(const XMLElement&, bool = false);
  3358. void MarkNetworkUpdate() const;
  3359. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3360. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3361. void Remove();
  3362. void RemoveAttributeAnimation(const String&);
  3363. void RemoveInstanceDefault();
  3364. void RemoveObjectAnimation();
  3365. void ResetCrowdTarget(Node = null);
  3366. void ResetToDefault();
  3367. bool Save(File) const;
  3368. bool Save(VectorBuffer&) const;
  3369. bool SaveJSON(JSONValue&) const;
  3370. bool SaveXML(XMLElement&) const;
  3371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3372. void SetAnimationTime(float);
  3373. void SetAreaCost(uint, uint, float);
  3374. bool SetAttribute(const String&, const Variant&);
  3375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3376. void SetAttributeAnimationSpeed(const String&, float);
  3377. void SetAttributeAnimationTime(const String&, float);
  3378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3379. void SetCrowdTarget(const Vector3&, Node = null);
  3380. void SetCrowdVelocity(const Vector3&, Node = null);
  3381. void SetExcludeFlags(uint, uint16);
  3382. void SetIncludeFlags(uint, uint16);
  3383. void SetInterceptNetworkUpdate(const String&, bool);
  3384. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3385. // Properties:
  3386. bool animationEnabled;
  3387. /* readonly */
  3388. Array<Variant> attributeDefaults;
  3389. /* readonly */
  3390. Array<AttributeInfo> attributeInfos;
  3391. Array<Variant> attributes;
  3392. /* readonly */
  3393. String category;
  3394. bool enabled;
  3395. /* readonly */
  3396. bool enabledEffective;
  3397. /* readonly */
  3398. uint id;
  3399. float maxAgentRadius;
  3400. int maxAgents;
  3401. NavigationMesh navMesh;
  3402. /* readonly */
  3403. Node node;
  3404. /* readonly */
  3405. Array<uint> numAreas;
  3406. /* readonly */
  3407. uint numAttributes;
  3408. /* readonly */
  3409. uint numObstacleAvoidanceTypes;
  3410. /* readonly */
  3411. uint numQueryFilterTypes;
  3412. ObjectAnimation objectAnimation;
  3413. /* readonly */
  3414. int refs;
  3415. bool temporary;
  3416. /* readonly */
  3417. StringHash type;
  3418. /* readonly */
  3419. String typeName;
  3420. /* readonly */
  3421. int weakRefs;
  3422. };
  3423. class CrowdObstacleAvoidanceParams
  3424. {
  3425. // Properties:
  3426. uint8 adaptiveDepth;
  3427. uint8 adaptiveDivs;
  3428. uint8 adaptiveRings;
  3429. uint8 gridSize;
  3430. float horizTime;
  3431. float velBias;
  3432. float weightCurVel;
  3433. float weightDesVel;
  3434. float weightSide;
  3435. float weightToi;
  3436. };
  3437. class Cursor
  3438. {
  3439. // Methods:
  3440. void AddChild(UIElement);
  3441. void AddTag(const String&);
  3442. void AddTags(const String&, int8 = ';');
  3443. void ApplyAttributes();
  3444. void BringToFront();
  3445. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3446. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3447. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3448. void DisableLayoutUpdate();
  3449. IntVector2 ElementToScreen(const IntVector2&);
  3450. void EnableLayoutUpdate();
  3451. uint FindChild(UIElement) const;
  3452. Variant GetAttribute(const String&) const;
  3453. ValueAnimation GetAttributeAnimation(const String&) const;
  3454. float GetAttributeAnimationSpeed(const String&) const;
  3455. float GetAttributeAnimationTime(const String&) const;
  3456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3457. Variant GetAttributeDefault(const String&) const;
  3458. UIElement GetChild(const String&, bool = false) const;
  3459. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3460. Array<UIElement> GetChildren(bool = false) const;
  3461. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3462. UIElement GetElementEventSender() const;
  3463. bool GetInterceptNetworkUpdate(const String&) const;
  3464. uint GetNumChildren(bool) const;
  3465. bool HasSubscribedToEvent(Object, const String&);
  3466. bool HasSubscribedToEvent(const String&);
  3467. bool HasTag(const String&) const;
  3468. void InsertChild(uint, UIElement);
  3469. bool IsInside(IntVector2, bool);
  3470. bool IsInsideCombined(IntVector2, bool);
  3471. bool Load(File, bool = false);
  3472. bool Load(VectorBuffer&, bool = false);
  3473. bool LoadChildXML(XMLFile, XMLFile = null);
  3474. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3475. bool LoadJSON(const JSONValue&, bool = false);
  3476. bool LoadXML(File);
  3477. bool LoadXML(VectorBuffer&);
  3478. bool LoadXML(XMLFile, XMLFile);
  3479. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3480. bool LoadXML(const XMLElement&, bool = false);
  3481. void MarkNetworkUpdate() const;
  3482. void Remove();
  3483. void RemoveAllChildren();
  3484. void RemoveAllTags();
  3485. void RemoveAttributeAnimation(const String&);
  3486. void RemoveChild(UIElement, uint = 0);
  3487. void RemoveChild(uint);
  3488. void RemoveInstanceDefault();
  3489. void RemoveObjectAnimation();
  3490. bool RemoveTag(const String&);
  3491. void ResetDeepEnabled();
  3492. void ResetToDefault();
  3493. bool Save(File) const;
  3494. bool Save(VectorBuffer&) const;
  3495. bool SaveJSON(JSONValue&) const;
  3496. bool SaveXML(File, const String& = "\t");
  3497. bool SaveXML(VectorBuffer&, const String& = "\t");
  3498. bool SaveXML(XMLElement&) const;
  3499. IntVector2 ScreenToElement(const IntVector2&);
  3500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3501. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3502. void SetAnimationTime(float);
  3503. bool SetAttribute(const String&, const Variant&);
  3504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3505. void SetAttributeAnimationSpeed(const String&, float);
  3506. void SetAttributeAnimationTime(const String&, float);
  3507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3508. void SetDeepEnabled(bool);
  3509. void SetEnabledRecursive(bool);
  3510. void SetFixedHeight(int);
  3511. void SetFixedSize(int, int);
  3512. void SetFixedWidth(int);
  3513. void SetFullImageRect();
  3514. void SetHoverOffset(int, int);
  3515. void SetInterceptNetworkUpdate(const String&, bool);
  3516. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3517. void SetMaxSize(int, int);
  3518. void SetMinSize(int, int);
  3519. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3520. void SetPosition(int, int);
  3521. void SetShape(CursorShape);
  3522. void SetShape(const String&);
  3523. void SetSize(int, int);
  3524. bool SetStyle(const String&, XMLFile = null);
  3525. bool SetStyle(const XMLElement&);
  3526. bool SetStyleAuto(XMLFile = null);
  3527. void UpdateLayout();
  3528. const Variant& GetVar(const StringHash&);
  3529. // Properties:
  3530. bool animationEnabled;
  3531. /* readonly */
  3532. Array<Variant> attributeDefaults;
  3533. /* readonly */
  3534. Array<AttributeInfo> attributeInfos;
  3535. Array<Variant> attributes;
  3536. BlendMode blendMode;
  3537. IntRect border;
  3538. bool bringToBack;
  3539. bool bringToFront;
  3540. /* readonly */
  3541. String category;
  3542. /* readonly */
  3543. IntVector2 childOffset;
  3544. /* readonly */
  3545. Array<UIElement> children;
  3546. IntRect clipBorder;
  3547. bool clipChildren;
  3548. /* writeonly */
  3549. Color color;
  3550. /* readonly */
  3551. bool colorGradient;
  3552. Array<Color> colors;
  3553. /* readonly */
  3554. IntRect combinedScreenRect;
  3555. XMLFile defaultStyle;
  3556. /* readonly */
  3557. float derivedOpacity;
  3558. /* readonly */
  3559. uint dragButtonCombo;
  3560. /* readonly */
  3561. int dragButtonCount;
  3562. uint dragDropMode;
  3563. bool editable;
  3564. bool elementEventSender;
  3565. bool enabled;
  3566. /* readonly */
  3567. bool enabledSelf;
  3568. /* readonly */
  3569. bool fixedHeight;
  3570. /* readonly */
  3571. bool fixedSize;
  3572. /* readonly */
  3573. bool fixedWidth;
  3574. bool focus;
  3575. FocusMode focusMode;
  3576. int height;
  3577. HorizontalAlignment horizontalAlignment;
  3578. IntVector2 hoverOffset;
  3579. /* readonly */
  3580. bool hovering;
  3581. IntRect imageBorder;
  3582. IntRect imageRect;
  3583. int indent;
  3584. int indentSpacing;
  3585. /* readonly */
  3586. int indentWidth;
  3587. bool internal;
  3588. IntRect layoutBorder;
  3589. Vector2 layoutFlexScale;
  3590. LayoutMode layoutMode;
  3591. int layoutSpacing;
  3592. int maxHeight;
  3593. IntVector2 maxSize;
  3594. int maxWidth;
  3595. int minHeight;
  3596. IntVector2 minSize;
  3597. int minWidth;
  3598. String name;
  3599. /* readonly */
  3600. uint numAllChildren;
  3601. /* readonly */
  3602. uint numAttributes;
  3603. /* readonly */
  3604. uint numChildren;
  3605. ObjectAnimation objectAnimation;
  3606. float opacity;
  3607. UIElement parent;
  3608. IntVector2 position;
  3609. int priority;
  3610. /* readonly */
  3611. int refs;
  3612. /* readonly */
  3613. UIElement root;
  3614. /* readonly */
  3615. IntVector2 screenPosition;
  3616. bool selected;
  3617. String shape;
  3618. IntVector2 size;
  3619. bool sortChildren;
  3620. String style;
  3621. /* readonly */
  3622. Array<String> tags;
  3623. bool temporary;
  3624. Texture texture;
  3625. bool tiled;
  3626. TraversalMode traversalMode;
  3627. /* readonly */
  3628. StringHash type;
  3629. /* readonly */
  3630. String typeName;
  3631. bool useDerivedOpacity;
  3632. bool useSystemShapes;
  3633. /* readonly */
  3634. VariantMap vars;
  3635. VerticalAlignment verticalAlignment;
  3636. bool visible;
  3637. /* readonly */
  3638. bool visibleEffective;
  3639. /* readonly */
  3640. int weakRefs;
  3641. int width;
  3642. };
  3643. class CustomGeometry
  3644. {
  3645. // Methods:
  3646. void ApplyAttributes();
  3647. void BeginGeometry(uint, PrimitiveType);
  3648. void Clear();
  3649. void Commit();
  3650. void DefineColor(const Color&);
  3651. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3652. void DefineNormal(const Vector3&);
  3653. void DefineTangent(const Vector4&);
  3654. void DefineTexCoord(const Vector2&);
  3655. void DefineVertex(const Vector3&);
  3656. void DrawDebugGeometry(DebugRenderer, bool);
  3657. Variant GetAttribute(const String&) const;
  3658. ValueAnimation GetAttributeAnimation(const String&) const;
  3659. float GetAttributeAnimationSpeed(const String&) const;
  3660. float GetAttributeAnimationTime(const String&) const;
  3661. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3662. Variant GetAttributeDefault(const String&) const;
  3663. bool GetInterceptNetworkUpdate(const String&) const;
  3664. CustomGeometryVertex GetVertex(uint, uint);
  3665. bool HasSubscribedToEvent(Object, const String&);
  3666. bool HasSubscribedToEvent(const String&);
  3667. bool IsInView(Camera) const;
  3668. bool Load(File, bool = false);
  3669. bool Load(VectorBuffer&, bool = false);
  3670. bool LoadJSON(const JSONValue&, bool = false);
  3671. bool LoadXML(const XMLElement&, bool = false);
  3672. void MarkNetworkUpdate() const;
  3673. void Remove();
  3674. void RemoveAttributeAnimation(const String&);
  3675. void RemoveInstanceDefault();
  3676. void RemoveObjectAnimation();
  3677. void ResetToDefault();
  3678. bool Save(File) const;
  3679. bool Save(VectorBuffer&) const;
  3680. bool SaveJSON(JSONValue&) const;
  3681. bool SaveXML(XMLElement&) const;
  3682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3683. void SetAnimationTime(float);
  3684. bool SetAttribute(const String&, const Variant&);
  3685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3686. void SetAttributeAnimationSpeed(const String&, float);
  3687. void SetAttributeAnimationTime(const String&, float);
  3688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3689. void SetInterceptNetworkUpdate(const String&, bool);
  3690. // Properties:
  3691. bool animationEnabled;
  3692. /* readonly */
  3693. Array<Variant> attributeDefaults;
  3694. /* readonly */
  3695. Array<AttributeInfo> attributeInfos;
  3696. Array<Variant> attributes;
  3697. /* readonly */
  3698. BoundingBox boundingBox;
  3699. bool castShadows;
  3700. /* readonly */
  3701. String category;
  3702. float drawDistance;
  3703. bool dynamic;
  3704. bool enabled;
  3705. /* readonly */
  3706. bool enabledEffective;
  3707. /* readonly */
  3708. uint id;
  3709. /* readonly */
  3710. bool inView;
  3711. uint lightMask;
  3712. float lodBias;
  3713. /* writeonly */
  3714. Material material;
  3715. Array<Material> materials;
  3716. uint maxLights;
  3717. /* readonly */
  3718. Node node;
  3719. /* readonly */
  3720. uint numAttributes;
  3721. uint numGeometries;
  3722. /* readonly */
  3723. Array<uint> numVertices;
  3724. ObjectAnimation objectAnimation;
  3725. bool occludee;
  3726. bool occluder;
  3727. /* readonly */
  3728. int refs;
  3729. float shadowDistance;
  3730. uint shadowMask;
  3731. bool temporary;
  3732. /* readonly */
  3733. StringHash type;
  3734. /* readonly */
  3735. String typeName;
  3736. uint viewMask;
  3737. /* readonly */
  3738. int weakRefs;
  3739. /* readonly */
  3740. BoundingBox worldBoundingBox;
  3741. /* readonly */
  3742. Zone zone;
  3743. uint zoneMask;
  3744. };
  3745. class CustomGeometryVertex
  3746. {
  3747. // Properties:
  3748. uint color;
  3749. Vector3 normal;
  3750. Vector3 position;
  3751. Vector4 tangent;
  3752. Vector2 texCoord;
  3753. };
  3754. class Database
  3755. {
  3756. // Methods:
  3757. DbConnection Connect(const String&);
  3758. void Disconnect(DbConnection);
  3759. bool HasSubscribedToEvent(Object, const String&);
  3760. bool HasSubscribedToEvent(const String&);
  3761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3762. // Properties:
  3763. /* readonly */
  3764. String category;
  3765. uint poolSize;
  3766. /* readonly */
  3767. bool pooling;
  3768. /* readonly */
  3769. int refs;
  3770. /* readonly */
  3771. StringHash type;
  3772. /* readonly */
  3773. String typeName;
  3774. /* readonly */
  3775. int weakRefs;
  3776. };
  3777. class DbConnection
  3778. {
  3779. // Methods:
  3780. DbResult Execute(const String&, bool = false);
  3781. bool HasSubscribedToEvent(Object, const String&);
  3782. bool HasSubscribedToEvent(const String&);
  3783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3784. // Properties:
  3785. /* readonly */
  3786. String category;
  3787. /* readonly */
  3788. bool connected;
  3789. /* readonly */
  3790. String connectionString;
  3791. /* readonly */
  3792. int refs;
  3793. /* readonly */
  3794. StringHash type;
  3795. /* readonly */
  3796. String typeName;
  3797. /* readonly */
  3798. int weakRefs;
  3799. };
  3800. class DbResult
  3801. {
  3802. // Properties:
  3803. /* readonly */
  3804. Array<String> columns;
  3805. /* readonly */
  3806. int64 numAffectedRows;
  3807. /* readonly */
  3808. uint numColumns;
  3809. /* readonly */
  3810. uint numRows;
  3811. /* readonly */
  3812. Array<Array<Variant>> row;
  3813. };
  3814. class DebugHud
  3815. {
  3816. // Methods:
  3817. void ClearAppStats();
  3818. bool HasSubscribedToEvent(Object, const String&);
  3819. bool HasSubscribedToEvent(const String&);
  3820. void ResetAppStats(const String&);
  3821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3822. void SetAppStats(const String&, const String&);
  3823. void SetAppStats(const String&, const Variant&);
  3824. void Toggle(uint);
  3825. void ToggleAll();
  3826. void Update();
  3827. // Properties:
  3828. /* readonly */
  3829. String category;
  3830. XMLFile defaultStyle;
  3831. /* readonly */
  3832. Text memoryText;
  3833. uint mode;
  3834. /* readonly */
  3835. Text modeText;
  3836. float profilerInterval;
  3837. uint profilerMaxDepth;
  3838. /* readonly */
  3839. Text profilerText;
  3840. /* readonly */
  3841. int refs;
  3842. /* readonly */
  3843. Text statsText;
  3844. /* readonly */
  3845. StringHash type;
  3846. /* readonly */
  3847. String typeName;
  3848. bool useRendererStats;
  3849. /* readonly */
  3850. int weakRefs;
  3851. };
  3852. class DebugRenderer
  3853. {
  3854. // Methods:
  3855. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3856. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3857. void AddCross(const Vector3&, float, const Color&, bool = true);
  3858. void AddFrustum(const Frustum&, const Color&, bool = true);
  3859. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3860. void AddNode(Node, float = 1.0, bool = true);
  3861. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3862. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3863. void AddSkeleton(Skeleton, const Color&, bool = true);
  3864. void AddSphere(const Sphere&, const Color&, bool = true);
  3865. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3866. void ApplyAttributes();
  3867. void DrawDebugGeometry(DebugRenderer, bool);
  3868. Variant GetAttribute(const String&) const;
  3869. ValueAnimation GetAttributeAnimation(const String&) const;
  3870. float GetAttributeAnimationSpeed(const String&) const;
  3871. float GetAttributeAnimationTime(const String&) const;
  3872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3873. Variant GetAttributeDefault(const String&) const;
  3874. bool GetInterceptNetworkUpdate(const String&) const;
  3875. bool HasSubscribedToEvent(Object, const String&);
  3876. bool HasSubscribedToEvent(const String&);
  3877. bool Load(File, bool = false);
  3878. bool Load(VectorBuffer&, bool = false);
  3879. bool LoadJSON(const JSONValue&, bool = false);
  3880. bool LoadXML(const XMLElement&, bool = false);
  3881. void MarkNetworkUpdate() const;
  3882. void Remove();
  3883. void RemoveAttributeAnimation(const String&);
  3884. void RemoveInstanceDefault();
  3885. void RemoveObjectAnimation();
  3886. void ResetToDefault();
  3887. bool Save(File) const;
  3888. bool Save(VectorBuffer&) const;
  3889. bool SaveJSON(JSONValue&) const;
  3890. bool SaveXML(XMLElement&) const;
  3891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3892. void SetAnimationTime(float);
  3893. bool SetAttribute(const String&, const Variant&);
  3894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3895. void SetAttributeAnimationSpeed(const String&, float);
  3896. void SetAttributeAnimationTime(const String&, float);
  3897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3898. void SetInterceptNetworkUpdate(const String&, bool);
  3899. // Properties:
  3900. bool animationEnabled;
  3901. /* readonly */
  3902. Array<Variant> attributeDefaults;
  3903. /* readonly */
  3904. Array<AttributeInfo> attributeInfos;
  3905. Array<Variant> attributes;
  3906. /* readonly */
  3907. String category;
  3908. bool enabled;
  3909. /* readonly */
  3910. bool enabledEffective;
  3911. /* readonly */
  3912. uint id;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. ObjectAnimation objectAnimation;
  3918. /* readonly */
  3919. int refs;
  3920. bool temporary;
  3921. /* readonly */
  3922. StringHash type;
  3923. /* readonly */
  3924. String typeName;
  3925. /* readonly */
  3926. int weakRefs;
  3927. };
  3928. class DecalSet
  3929. {
  3930. // Methods:
  3931. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3932. void ApplyAttributes();
  3933. void DrawDebugGeometry(DebugRenderer, bool);
  3934. Variant GetAttribute(const String&) const;
  3935. ValueAnimation GetAttributeAnimation(const String&) const;
  3936. float GetAttributeAnimationSpeed(const String&) const;
  3937. float GetAttributeAnimationTime(const String&) const;
  3938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3939. Variant GetAttributeDefault(const String&) const;
  3940. bool GetInterceptNetworkUpdate(const String&) const;
  3941. bool HasSubscribedToEvent(Object, const String&);
  3942. bool HasSubscribedToEvent(const String&);
  3943. bool IsInView(Camera) const;
  3944. bool Load(File, bool = false);
  3945. bool Load(VectorBuffer&, bool = false);
  3946. bool LoadJSON(const JSONValue&, bool = false);
  3947. bool LoadXML(const XMLElement&, bool = false);
  3948. void MarkNetworkUpdate() const;
  3949. void Remove();
  3950. void RemoveAllDecals();
  3951. void RemoveAttributeAnimation(const String&);
  3952. void RemoveDecals(uint);
  3953. void RemoveInstanceDefault();
  3954. void RemoveObjectAnimation();
  3955. void ResetToDefault();
  3956. bool Save(File) const;
  3957. bool Save(VectorBuffer&) const;
  3958. bool SaveJSON(JSONValue&) const;
  3959. bool SaveXML(XMLElement&) const;
  3960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3961. void SetAnimationTime(float);
  3962. bool SetAttribute(const String&, const Variant&);
  3963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3964. void SetAttributeAnimationSpeed(const String&, float);
  3965. void SetAttributeAnimationTime(const String&, float);
  3966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3967. void SetInterceptNetworkUpdate(const String&, bool);
  3968. // Properties:
  3969. bool animationEnabled;
  3970. /* readonly */
  3971. Array<Variant> attributeDefaults;
  3972. /* readonly */
  3973. Array<AttributeInfo> attributeInfos;
  3974. Array<Variant> attributes;
  3975. /* readonly */
  3976. BoundingBox boundingBox;
  3977. bool castShadows;
  3978. /* readonly */
  3979. String category;
  3980. float drawDistance;
  3981. bool enabled;
  3982. /* readonly */
  3983. bool enabledEffective;
  3984. /* readonly */
  3985. uint id;
  3986. /* readonly */
  3987. bool inView;
  3988. uint lightMask;
  3989. float lodBias;
  3990. Material material;
  3991. uint maxIndices;
  3992. uint maxLights;
  3993. uint maxVertices;
  3994. /* readonly */
  3995. Node node;
  3996. /* readonly */
  3997. uint numAttributes;
  3998. /* readonly */
  3999. uint numDecals;
  4000. /* readonly */
  4001. uint numIndices;
  4002. /* readonly */
  4003. uint numVertices;
  4004. ObjectAnimation objectAnimation;
  4005. bool occludee;
  4006. bool occluder;
  4007. /* readonly */
  4008. int refs;
  4009. float shadowDistance;
  4010. uint shadowMask;
  4011. bool temporary;
  4012. /* readonly */
  4013. StringHash type;
  4014. /* readonly */
  4015. String typeName;
  4016. uint viewMask;
  4017. /* readonly */
  4018. int weakRefs;
  4019. /* readonly */
  4020. BoundingBox worldBoundingBox;
  4021. /* readonly */
  4022. Zone zone;
  4023. uint zoneMask;
  4024. };
  4025. class Deserializer
  4026. {
  4027. // Methods:
  4028. Array<uint8> Read(uint);
  4029. bool ReadBool();
  4030. BoundingBox ReadBoundingBox();
  4031. int8 ReadByte();
  4032. Color ReadColor();
  4033. double ReadDouble();
  4034. String ReadFileID();
  4035. float ReadFloat();
  4036. int ReadInt();
  4037. IntRect ReadIntRect();
  4038. IntVector2 ReadIntVector2();
  4039. String ReadLine();
  4040. Matrix3 ReadMatrix3();
  4041. Matrix3x4 ReadMatrix3x4();
  4042. Matrix4 ReadMatrix4();
  4043. uint ReadNetID();
  4044. Quaternion ReadPackedQuaternion();
  4045. Vector3 ReadPackedVector3(float);
  4046. Quaternion ReadQuaternion();
  4047. int16 ReadShort();
  4048. String ReadString();
  4049. StringHash ReadStringHash();
  4050. uint8 ReadUByte();
  4051. uint ReadUInt();
  4052. uint16 ReadUShort();
  4053. uint ReadVLE();
  4054. Variant ReadVariant();
  4055. VariantMap ReadVariantMap();
  4056. Vector2 ReadVector2();
  4057. Vector3 ReadVector3();
  4058. Vector4 ReadVector4();
  4059. VectorBuffer ReadVectorBuffer(uint);
  4060. uint Seek(uint);
  4061. // Properties:
  4062. /* readonly */
  4063. uint checksum;
  4064. /* readonly */
  4065. bool eof;
  4066. /* readonly */
  4067. String name;
  4068. /* readonly */
  4069. uint position;
  4070. /* readonly */
  4071. uint size;
  4072. };
  4073. class Dictionary
  4074. {
  4075. // Methods:
  4076. void Clear();
  4077. void Erase(const String&);
  4078. bool Exists(const String&) const;
  4079. bool Get(const String&, void*) const;
  4080. bool Get(const String&, double&) const;
  4081. bool Get(const String&, int64&) const;
  4082. void Set(const String&, const void*);
  4083. void Set(const String&, const double&);
  4084. void Set(const String&, const int64&);
  4085. // Properties:
  4086. /* readonly */
  4087. bool empty;
  4088. /* readonly */
  4089. Array<String> keys;
  4090. /* readonly */
  4091. uint length;
  4092. };
  4093. class DictionaryValue
  4094. {
  4095. };
  4096. class Drawable
  4097. {
  4098. // Methods:
  4099. void ApplyAttributes();
  4100. void DrawDebugGeometry(DebugRenderer, bool);
  4101. Variant GetAttribute(const String&) const;
  4102. ValueAnimation GetAttributeAnimation(const String&) const;
  4103. float GetAttributeAnimationSpeed(const String&) const;
  4104. float GetAttributeAnimationTime(const String&) const;
  4105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4106. Variant GetAttributeDefault(const String&) const;
  4107. bool GetInterceptNetworkUpdate(const String&) const;
  4108. bool HasSubscribedToEvent(Object, const String&);
  4109. bool HasSubscribedToEvent(const String&);
  4110. bool IsInView(Camera) const;
  4111. bool Load(File, bool = false);
  4112. bool Load(VectorBuffer&, bool = false);
  4113. bool LoadJSON(const JSONValue&, bool = false);
  4114. bool LoadXML(const XMLElement&, bool = false);
  4115. void MarkNetworkUpdate() const;
  4116. void Remove();
  4117. void RemoveAttributeAnimation(const String&);
  4118. void RemoveInstanceDefault();
  4119. void RemoveObjectAnimation();
  4120. void ResetToDefault();
  4121. bool Save(File) const;
  4122. bool Save(VectorBuffer&) const;
  4123. bool SaveJSON(JSONValue&) const;
  4124. bool SaveXML(XMLElement&) const;
  4125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4126. void SetAnimationTime(float);
  4127. bool SetAttribute(const String&, const Variant&);
  4128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4129. void SetAttributeAnimationSpeed(const String&, float);
  4130. void SetAttributeAnimationTime(const String&, float);
  4131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4132. void SetInterceptNetworkUpdate(const String&, bool);
  4133. // Properties:
  4134. bool animationEnabled;
  4135. /* readonly */
  4136. Array<Variant> attributeDefaults;
  4137. /* readonly */
  4138. Array<AttributeInfo> attributeInfos;
  4139. Array<Variant> attributes;
  4140. /* readonly */
  4141. BoundingBox boundingBox;
  4142. bool castShadows;
  4143. /* readonly */
  4144. String category;
  4145. float drawDistance;
  4146. bool enabled;
  4147. /* readonly */
  4148. bool enabledEffective;
  4149. /* readonly */
  4150. uint id;
  4151. /* readonly */
  4152. bool inView;
  4153. uint lightMask;
  4154. float lodBias;
  4155. uint maxLights;
  4156. /* readonly */
  4157. Node node;
  4158. /* readonly */
  4159. uint numAttributes;
  4160. ObjectAnimation objectAnimation;
  4161. bool occludee;
  4162. bool occluder;
  4163. /* readonly */
  4164. int refs;
  4165. float shadowDistance;
  4166. uint shadowMask;
  4167. bool temporary;
  4168. /* readonly */
  4169. StringHash type;
  4170. /* readonly */
  4171. String typeName;
  4172. uint viewMask;
  4173. /* readonly */
  4174. int weakRefs;
  4175. /* readonly */
  4176. BoundingBox worldBoundingBox;
  4177. uint zoneMask;
  4178. };
  4179. class Drawable2D
  4180. {
  4181. // Methods:
  4182. void ApplyAttributes();
  4183. void DrawDebugGeometry(DebugRenderer, bool);
  4184. Variant GetAttribute(const String&) const;
  4185. ValueAnimation GetAttributeAnimation(const String&) const;
  4186. float GetAttributeAnimationSpeed(const String&) const;
  4187. float GetAttributeAnimationTime(const String&) const;
  4188. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4189. Variant GetAttributeDefault(const String&) const;
  4190. bool GetInterceptNetworkUpdate(const String&) const;
  4191. bool HasSubscribedToEvent(Object, const String&);
  4192. bool HasSubscribedToEvent(const String&);
  4193. bool IsInView(Camera) const;
  4194. bool Load(File, bool = false);
  4195. bool Load(VectorBuffer&, bool = false);
  4196. bool LoadJSON(const JSONValue&, bool = false);
  4197. bool LoadXML(const XMLElement&, bool = false);
  4198. void MarkNetworkUpdate() const;
  4199. void Remove();
  4200. void RemoveAttributeAnimation(const String&);
  4201. void RemoveInstanceDefault();
  4202. void RemoveObjectAnimation();
  4203. void ResetToDefault();
  4204. bool Save(File) const;
  4205. bool Save(VectorBuffer&) const;
  4206. bool SaveJSON(JSONValue&) const;
  4207. bool SaveXML(XMLElement&) const;
  4208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4209. void SetAnimationTime(float);
  4210. bool SetAttribute(const String&, const Variant&);
  4211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4212. void SetAttributeAnimationSpeed(const String&, float);
  4213. void SetAttributeAnimationTime(const String&, float);
  4214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4215. void SetInterceptNetworkUpdate(const String&, bool);
  4216. // Properties:
  4217. bool animationEnabled;
  4218. /* readonly */
  4219. Array<Variant> attributeDefaults;
  4220. /* readonly */
  4221. Array<AttributeInfo> attributeInfos;
  4222. Array<Variant> attributes;
  4223. /* readonly */
  4224. BoundingBox boundingBox;
  4225. bool castShadows;
  4226. /* readonly */
  4227. String category;
  4228. float drawDistance;
  4229. bool enabled;
  4230. /* readonly */
  4231. bool enabledEffective;
  4232. /* readonly */
  4233. uint id;
  4234. /* readonly */
  4235. bool inView;
  4236. int layer;
  4237. uint lightMask;
  4238. float lodBias;
  4239. uint maxLights;
  4240. /* readonly */
  4241. Node node;
  4242. /* readonly */
  4243. uint numAttributes;
  4244. ObjectAnimation objectAnimation;
  4245. bool occludee;
  4246. bool occluder;
  4247. int orderInLayer;
  4248. /* readonly */
  4249. int refs;
  4250. float shadowDistance;
  4251. uint shadowMask;
  4252. bool temporary;
  4253. /* readonly */
  4254. StringHash type;
  4255. /* readonly */
  4256. String typeName;
  4257. uint viewMask;
  4258. /* readonly */
  4259. int weakRefs;
  4260. /* readonly */
  4261. BoundingBox worldBoundingBox;
  4262. uint zoneMask;
  4263. };
  4264. class DropDownList
  4265. {
  4266. // Methods:
  4267. void AddChild(UIElement);
  4268. void AddItem(UIElement);
  4269. void AddTag(const String&);
  4270. void AddTags(const String&, int8 = ';');
  4271. void ApplyAttributes();
  4272. void BringToFront();
  4273. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4274. void DisableLayoutUpdate();
  4275. IntVector2 ElementToScreen(const IntVector2&);
  4276. void EnableLayoutUpdate();
  4277. uint FindChild(UIElement) const;
  4278. Variant GetAttribute(const String&) const;
  4279. ValueAnimation GetAttributeAnimation(const String&) const;
  4280. float GetAttributeAnimationSpeed(const String&) const;
  4281. float GetAttributeAnimationTime(const String&) const;
  4282. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4283. Variant GetAttributeDefault(const String&) const;
  4284. UIElement GetChild(const String&, bool = false) const;
  4285. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4286. Array<UIElement> GetChildren(bool = false) const;
  4287. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4288. UIElement GetElementEventSender() const;
  4289. bool GetInterceptNetworkUpdate(const String&) const;
  4290. Array<UIElement> GetItems() const;
  4291. uint GetNumChildren(bool) const;
  4292. bool HasSubscribedToEvent(Object, const String&);
  4293. bool HasSubscribedToEvent(const String&);
  4294. bool HasTag(const String&) const;
  4295. void InsertChild(uint, UIElement);
  4296. void InsertItem(uint, UIElement);
  4297. bool IsInside(IntVector2, bool);
  4298. bool IsInsideCombined(IntVector2, bool);
  4299. bool Load(File, bool = false);
  4300. bool Load(VectorBuffer&, bool = false);
  4301. bool LoadChildXML(XMLFile, XMLFile = null);
  4302. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4303. bool LoadJSON(const JSONValue&, bool = false);
  4304. bool LoadXML(File);
  4305. bool LoadXML(VectorBuffer&);
  4306. bool LoadXML(XMLFile, XMLFile);
  4307. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. void Remove();
  4311. void RemoveAllChildren();
  4312. void RemoveAllItems();
  4313. void RemoveAllTags();
  4314. void RemoveAttributeAnimation(const String&);
  4315. void RemoveChild(UIElement, uint = 0);
  4316. void RemoveChild(uint);
  4317. void RemoveInstanceDefault();
  4318. void RemoveItem(UIElement);
  4319. void RemoveItem(uint);
  4320. void RemoveObjectAnimation();
  4321. bool RemoveTag(const String&);
  4322. void ResetDeepEnabled();
  4323. void ResetToDefault();
  4324. bool Save(File) const;
  4325. bool Save(VectorBuffer&) const;
  4326. bool SaveJSON(JSONValue&) const;
  4327. bool SaveXML(File, const String& = "\t");
  4328. bool SaveXML(VectorBuffer&, const String& = "\t");
  4329. bool SaveXML(XMLElement&) const;
  4330. IntVector2 ScreenToElement(const IntVector2&);
  4331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4332. void SetAccelerator(int, int);
  4333. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4334. void SetAnimationTime(float);
  4335. bool SetAttribute(const String&, const Variant&);
  4336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4337. void SetAttributeAnimationSpeed(const String&, float);
  4338. void SetAttributeAnimationTime(const String&, float);
  4339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4340. void SetDeepEnabled(bool);
  4341. void SetEnabledRecursive(bool);
  4342. void SetFixedHeight(int);
  4343. void SetFixedSize(int, int);
  4344. void SetFixedWidth(int);
  4345. void SetFullImageRect();
  4346. void SetHoverOffset(int, int);
  4347. void SetInterceptNetworkUpdate(const String&, bool);
  4348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4349. void SetMaxSize(int, int);
  4350. void SetMinSize(int, int);
  4351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4352. void SetPosition(int, int);
  4353. void SetPressedChildOffset(int, int);
  4354. void SetPressedOffset(int, int);
  4355. void SetRepeat(float, float);
  4356. void SetSize(int, int);
  4357. bool SetStyle(const String&, XMLFile = null);
  4358. bool SetStyle(const XMLElement&);
  4359. bool SetStyleAuto(XMLFile = null);
  4360. void UpdateLayout();
  4361. const Variant& GetVar(const StringHash&);
  4362. UIElement getPopup() const;
  4363. // Properties:
  4364. /* readonly */
  4365. int acceleratorKey;
  4366. /* readonly */
  4367. int acceleratorQualifiers;
  4368. bool animationEnabled;
  4369. /* readonly */
  4370. Array<Variant> attributeDefaults;
  4371. /* readonly */
  4372. Array<AttributeInfo> attributeInfos;
  4373. Array<Variant> attributes;
  4374. BlendMode blendMode;
  4375. IntRect border;
  4376. bool bringToBack;
  4377. bool bringToFront;
  4378. /* readonly */
  4379. String category;
  4380. /* readonly */
  4381. IntVector2 childOffset;
  4382. /* readonly */
  4383. Array<UIElement> children;
  4384. IntRect clipBorder;
  4385. bool clipChildren;
  4386. /* writeonly */
  4387. Color color;
  4388. /* readonly */
  4389. bool colorGradient;
  4390. Array<Color> colors;
  4391. /* readonly */
  4392. IntRect combinedScreenRect;
  4393. XMLFile defaultStyle;
  4394. /* readonly */
  4395. float derivedOpacity;
  4396. /* readonly */
  4397. uint dragButtonCombo;
  4398. /* readonly */
  4399. int dragButtonCount;
  4400. uint dragDropMode;
  4401. bool editable;
  4402. bool elementEventSender;
  4403. bool enabled;
  4404. /* readonly */
  4405. bool enabledSelf;
  4406. /* readonly */
  4407. bool fixedHeight;
  4408. /* readonly */
  4409. bool fixedSize;
  4410. /* readonly */
  4411. bool fixedWidth;
  4412. bool focus;
  4413. FocusMode focusMode;
  4414. int height;
  4415. HorizontalAlignment horizontalAlignment;
  4416. IntVector2 hoverOffset;
  4417. /* readonly */
  4418. bool hovering;
  4419. IntRect imageBorder;
  4420. IntRect imageRect;
  4421. int indent;
  4422. int indentSpacing;
  4423. /* readonly */
  4424. int indentWidth;
  4425. bool internal;
  4426. /* readonly */
  4427. Array<UIElement> items;
  4428. IntRect layoutBorder;
  4429. Vector2 layoutFlexScale;
  4430. LayoutMode layoutMode;
  4431. int layoutSpacing;
  4432. /* readonly */
  4433. ListView listView;
  4434. int maxHeight;
  4435. IntVector2 maxSize;
  4436. int maxWidth;
  4437. int minHeight;
  4438. IntVector2 minSize;
  4439. int minWidth;
  4440. String name;
  4441. /* readonly */
  4442. uint numAllChildren;
  4443. /* readonly */
  4444. uint numAttributes;
  4445. /* readonly */
  4446. uint numChildren;
  4447. /* readonly */
  4448. uint numItems;
  4449. ObjectAnimation objectAnimation;
  4450. float opacity;
  4451. UIElement parent;
  4452. /* readonly */
  4453. UIElement placeholder;
  4454. String placeholderText;
  4455. IntVector2 position;
  4456. /* readonly */
  4457. bool pressed;
  4458. IntVector2 pressedChildOffset;
  4459. IntVector2 pressedOffset;
  4460. int priority;
  4461. /* readonly */
  4462. int refs;
  4463. float repeatDelay;
  4464. float repeatRate;
  4465. bool resizePopup;
  4466. /* readonly */
  4467. UIElement root;
  4468. /* readonly */
  4469. IntVector2 screenPosition;
  4470. bool selected;
  4471. /* readonly */
  4472. UIElement selectedItem;
  4473. uint selection;
  4474. bool showPopup;
  4475. IntVector2 size;
  4476. bool sortChildren;
  4477. String style;
  4478. /* readonly */
  4479. Array<String> tags;
  4480. bool temporary;
  4481. Texture texture;
  4482. bool tiled;
  4483. TraversalMode traversalMode;
  4484. /* readonly */
  4485. StringHash type;
  4486. /* readonly */
  4487. String typeName;
  4488. bool useDerivedOpacity;
  4489. /* readonly */
  4490. VariantMap vars;
  4491. VerticalAlignment verticalAlignment;
  4492. bool visible;
  4493. /* readonly */
  4494. bool visibleEffective;
  4495. /* readonly */
  4496. int weakRefs;
  4497. int width;
  4498. };
  4499. class DynamicNavigationMesh
  4500. {
  4501. // Methods:
  4502. void ApplyAttributes();
  4503. bool Build();
  4504. bool Build(const BoundingBox&);
  4505. void DrawDebugGeometry(DebugRenderer, bool);
  4506. void DrawDebugGeometry(bool);
  4507. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4508. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4509. float GetAreaCost(uint) const;
  4510. Variant GetAttribute(const String&) const;
  4511. ValueAnimation GetAttributeAnimation(const String&) const;
  4512. float GetAttributeAnimationSpeed(const String&) const;
  4513. float GetAttributeAnimationTime(const String&) const;
  4514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4515. Variant GetAttributeDefault(const String&) const;
  4516. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. bool GetInterceptNetworkUpdate(const String&) const;
  4518. Vector3 GetRandomPoint();
  4519. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. bool HasSubscribedToEvent(Object, const String&);
  4521. bool HasSubscribedToEvent(const String&);
  4522. bool Load(File, bool = false);
  4523. bool Load(VectorBuffer&, bool = false);
  4524. bool LoadJSON(const JSONValue&, bool = false);
  4525. bool LoadXML(const XMLElement&, bool = false);
  4526. void MarkNetworkUpdate() const;
  4527. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4528. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. void Remove();
  4530. void RemoveAttributeAnimation(const String&);
  4531. void RemoveInstanceDefault();
  4532. void RemoveObjectAnimation();
  4533. void ResetToDefault();
  4534. bool Save(File) const;
  4535. bool Save(VectorBuffer&) const;
  4536. bool SaveJSON(JSONValue&) const;
  4537. bool SaveXML(XMLElement&) const;
  4538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4539. void SetAnimationTime(float);
  4540. void SetAreaCost(uint, float);
  4541. bool SetAttribute(const String&, const Variant&);
  4542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4543. void SetAttributeAnimationSpeed(const String&, float);
  4544. void SetAttributeAnimationTime(const String&, float);
  4545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4546. void SetInterceptNetworkUpdate(const String&, bool);
  4547. // Properties:
  4548. float agentHeight;
  4549. float agentMaxClimb;
  4550. float agentMaxSlope;
  4551. float agentRadius;
  4552. bool animationEnabled;
  4553. /* readonly */
  4554. Array<Variant> attributeDefaults;
  4555. /* readonly */
  4556. Array<AttributeInfo> attributeInfos;
  4557. Array<Variant> attributes;
  4558. /* readonly */
  4559. BoundingBox boundingBox;
  4560. /* readonly */
  4561. String category;
  4562. float cellHeight;
  4563. float cellSize;
  4564. float detailSampleDistance;
  4565. float detailSampleMaxError;
  4566. bool drawNavAreas;
  4567. bool drawObstacles;
  4568. bool drawOffMeshConnections;
  4569. float edgeMaxError;
  4570. float edgeMaxLength;
  4571. bool enabled;
  4572. /* readonly */
  4573. bool enabledEffective;
  4574. /* readonly */
  4575. uint id;
  4576. /* readonly */
  4577. bool initialized;
  4578. bool maxLayers;
  4579. uint maxObstacles;
  4580. /* readonly */
  4581. Node node;
  4582. /* readonly */
  4583. uint numAttributes;
  4584. /* readonly */
  4585. IntVector2 numTiles;
  4586. ObjectAnimation objectAnimation;
  4587. Vector3 padding;
  4588. NavmeshPartitionType partitionType;
  4589. /* readonly */
  4590. int refs;
  4591. float regionMergeSize;
  4592. float regionMinSize;
  4593. bool temporary;
  4594. int tileSize;
  4595. /* readonly */
  4596. StringHash type;
  4597. /* readonly */
  4598. String typeName;
  4599. /* readonly */
  4600. int weakRefs;
  4601. /* readonly */
  4602. BoundingBox worldBoundingBox;
  4603. };
  4604. class Engine
  4605. {
  4606. // Methods:
  4607. Console CreateConsole();
  4608. DebugHud CreateDebugHud();
  4609. void DumpMemory();
  4610. void DumpProfiler();
  4611. void DumpResources(bool = false);
  4612. void Exit();
  4613. bool HasSubscribedToEvent(Object, const String&);
  4614. bool HasSubscribedToEvent(const String&);
  4615. void RunFrame();
  4616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4617. // Properties:
  4618. bool autoExit;
  4619. /* readonly */
  4620. String category;
  4621. /* readonly */
  4622. bool exiting;
  4623. /* readonly */
  4624. bool headless;
  4625. /* readonly */
  4626. bool initialized;
  4627. int maxFps;
  4628. int maxInactiveFps;
  4629. int minFps;
  4630. bool pauseMinimized;
  4631. /* readonly */
  4632. int refs;
  4633. int timeStepSmoothing;
  4634. /* readonly */
  4635. StringHash type;
  4636. /* readonly */
  4637. String typeName;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class File
  4642. {
  4643. // Methods:
  4644. void Close();
  4645. bool HasSubscribedToEvent(Object, const String&);
  4646. bool HasSubscribedToEvent(const String&);
  4647. bool Open(const String&, FileMode = FILE_READ);
  4648. Array<uint8> Read(uint);
  4649. bool ReadBool();
  4650. BoundingBox ReadBoundingBox();
  4651. int8 ReadByte();
  4652. Color ReadColor();
  4653. double ReadDouble();
  4654. String ReadFileID();
  4655. float ReadFloat();
  4656. int ReadInt();
  4657. IntRect ReadIntRect();
  4658. IntVector2 ReadIntVector2();
  4659. String ReadLine();
  4660. Matrix3 ReadMatrix3();
  4661. Matrix3x4 ReadMatrix3x4();
  4662. Matrix4 ReadMatrix4();
  4663. uint ReadNetID();
  4664. Quaternion ReadPackedQuaternion();
  4665. Vector3 ReadPackedVector3(float);
  4666. Quaternion ReadQuaternion();
  4667. int16 ReadShort();
  4668. String ReadString();
  4669. StringHash ReadStringHash();
  4670. uint8 ReadUByte();
  4671. uint ReadUInt();
  4672. uint16 ReadUShort();
  4673. uint ReadVLE();
  4674. Variant ReadVariant();
  4675. VariantMap ReadVariantMap();
  4676. Vector2 ReadVector2();
  4677. Vector3 ReadVector3();
  4678. Vector4 ReadVector4();
  4679. VectorBuffer ReadVectorBuffer(uint);
  4680. uint Seek(uint);
  4681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4682. uint Write(Array<uint8>);
  4683. bool WriteBool(bool);
  4684. bool WriteBoundingBox(const BoundingBox&);
  4685. bool WriteByte(int8);
  4686. bool WriteColor(const Color&);
  4687. bool WriteDouble(double);
  4688. bool WriteFileID(const String&);
  4689. bool WriteFloat(float);
  4690. bool WriteInt(int);
  4691. bool WriteIntRect(const IntRect&);
  4692. bool WriteIntVector2(const IntVector2&);
  4693. bool WriteLine(const String&);
  4694. bool WriteMatrix3(const Matrix3&);
  4695. bool WriteMatrix3x4(const Matrix3x4&);
  4696. bool WriteMatrix4(const Matrix4&);
  4697. bool WriteNetID(uint);
  4698. bool WritePackedQuaternion(const Quaternion&);
  4699. bool WritePackedVector3(const Vector3&, float);
  4700. bool WriteQuaternion(const Quaternion&);
  4701. bool WriteShort(int16);
  4702. bool WriteString(const String&);
  4703. bool WriteStringHash(const StringHash&);
  4704. bool WriteUByte(uint8);
  4705. bool WriteUInt(uint);
  4706. bool WriteUShort(uint16);
  4707. bool WriteVLE(uint);
  4708. bool WriteVariant(const Variant&);
  4709. bool WriteVariantMap(const VariantMap&);
  4710. bool WriteVector2(const Vector2&);
  4711. bool WriteVector3(const Vector3&);
  4712. bool WriteVector4(const Vector4&);
  4713. bool WriteVectorBuffer(const VectorBuffer&);
  4714. // Properties:
  4715. /* readonly */
  4716. String category;
  4717. /* readonly */
  4718. uint checksum;
  4719. /* readonly */
  4720. bool eof;
  4721. /* readonly */
  4722. FileMode mode;
  4723. /* readonly */
  4724. String name;
  4725. /* readonly */
  4726. bool open;
  4727. /* readonly */
  4728. bool packaged;
  4729. /* readonly */
  4730. uint position;
  4731. /* readonly */
  4732. int refs;
  4733. /* readonly */
  4734. uint size;
  4735. /* readonly */
  4736. StringHash type;
  4737. /* readonly */
  4738. String typeName;
  4739. /* readonly */
  4740. int weakRefs;
  4741. };
  4742. class FileSelector
  4743. {
  4744. // Methods:
  4745. bool HasSubscribedToEvent(Object, const String&);
  4746. bool HasSubscribedToEvent(const String&);
  4747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4748. void SetButtonTexts(const String&, const String&);
  4749. void SetFilters(Array<String>, uint);
  4750. void UpdateElements();
  4751. // Properties:
  4752. /* readonly */
  4753. Button cancelButton;
  4754. /* readonly */
  4755. String category;
  4756. XMLFile defaultStyle;
  4757. bool directoryMode;
  4758. /* readonly */
  4759. ListView fileList;
  4760. String fileName;
  4761. /* readonly */
  4762. LineEdit fileNameEdit;
  4763. /* readonly */
  4764. String filter;
  4765. /* readonly */
  4766. uint filterIndex;
  4767. /* readonly */
  4768. DropDownList filterList;
  4769. /* readonly */
  4770. Button okButton;
  4771. String path;
  4772. /* readonly */
  4773. LineEdit pathEdit;
  4774. /* readonly */
  4775. int refs;
  4776. String title;
  4777. /* readonly */
  4778. Text titleText;
  4779. /* readonly */
  4780. StringHash type;
  4781. /* readonly */
  4782. String typeName;
  4783. /* readonly */
  4784. int weakRefs;
  4785. /* readonly */
  4786. Window window;
  4787. };
  4788. class FileSystem
  4789. {
  4790. // Methods:
  4791. bool Copy(const String&, const String&);
  4792. bool CreateDir(const String&);
  4793. bool Delete(const String&);
  4794. bool DirExists(const String&) const;
  4795. bool FileExists(const String&) const;
  4796. String GetAppPreferencesDir(const String&, const String&) const;
  4797. uint GetLastModifiedTime(const String&) const;
  4798. bool HasSubscribedToEvent(Object, const String&);
  4799. bool HasSubscribedToEvent(const String&);
  4800. bool Rename(const String&, const String&);
  4801. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4803. bool SetLastModifiedTime(const String&, uint);
  4804. int SystemCommand(const String&, bool = false);
  4805. uint SystemCommandAsync(const String&);
  4806. bool SystemOpen(const String&, const String&);
  4807. int SystemRun(const String&, Array<String>);
  4808. uint SystemRunAsync(const String&, Array<String>);
  4809. // Properties:
  4810. /* readonly */
  4811. String category;
  4812. String currentDir;
  4813. bool executeConsoleCommands;
  4814. /* readonly */
  4815. String programDir;
  4816. /* readonly */
  4817. int refs;
  4818. /* readonly */
  4819. StringHash type;
  4820. /* readonly */
  4821. String typeName;
  4822. /* readonly */
  4823. String userDocumentsDir;
  4824. /* readonly */
  4825. int weakRefs;
  4826. };
  4827. class FocusParameters
  4828. {
  4829. // Properties:
  4830. bool autoSize;
  4831. bool focus;
  4832. float minView;
  4833. bool nonUniform;
  4834. float quantize;
  4835. };
  4836. class Font
  4837. {
  4838. // Methods:
  4839. IntVector2 GetTotalGlyphOffset(int) const;
  4840. bool HasSubscribedToEvent(Object, const String&);
  4841. bool HasSubscribedToEvent(const String&);
  4842. bool Load(File);
  4843. bool Load(VectorBuffer&);
  4844. bool Save(File) const;
  4845. bool Save(VectorBuffer&) const;
  4846. bool SaveXML(File, int, bool = false, const String& = "\t");
  4847. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4848. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4849. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4850. // Properties:
  4851. IntVector2 absoluteGlyphOffset;
  4852. /* readonly */
  4853. String category;
  4854. /* readonly */
  4855. uint memoryUse;
  4856. String name;
  4857. /* readonly */
  4858. int refs;
  4859. Vector2 scaledGlyphOffset;
  4860. /* readonly */
  4861. StringHash type;
  4862. /* readonly */
  4863. String typeName;
  4864. /* readonly */
  4865. uint useTimer;
  4866. /* readonly */
  4867. int weakRefs;
  4868. };
  4869. class Frustum
  4870. {
  4871. // Methods:
  4872. void Define(const BoundingBox&, const Matrix3x4&);
  4873. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4874. void Define(float, float, float, float, float, const Matrix3x4&);
  4875. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4876. float Distance(const Vector3&) const;
  4877. Intersection IsInside(const BoundingBox&);
  4878. Intersection IsInside(const Sphere&);
  4879. Intersection IsInside(const Vector3&);
  4880. Intersection IsInsideFast(const BoundingBox&) const;
  4881. Intersection IsInsideFast(const Sphere&) const;
  4882. void Transform(const Matrix3&);
  4883. void Transform(const Matrix3x4&);
  4884. Frustum Transformed(const Matrix3&) const;
  4885. Frustum Transformed(const Matrix3x4&) const;
  4886. // Properties:
  4887. /* readonly */
  4888. Array<Vector3> vertices;
  4889. };
  4890. class Geometry
  4891. {
  4892. // Methods:
  4893. bool HasSubscribedToEvent(Object, const String&);
  4894. bool HasSubscribedToEvent(const String&);
  4895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4896. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4897. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4898. void SetIndexBuffer(IndexBuffer);
  4899. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4900. // Properties:
  4901. /* readonly */
  4902. String category;
  4903. /* readonly */
  4904. bool empty;
  4905. IndexBuffer indexBuffer;
  4906. /* readonly */
  4907. uint indexCount;
  4908. /* readonly */
  4909. uint indexStart;
  4910. float lodDistance;
  4911. uint numVertexBuffers;
  4912. /* readonly */
  4913. PrimitiveType primitiveType;
  4914. /* readonly */
  4915. int refs;
  4916. /* readonly */
  4917. StringHash type;
  4918. /* readonly */
  4919. String typeName;
  4920. /* readonly */
  4921. Array<VertexBuffer> vertexBuffers;
  4922. /* readonly */
  4923. uint vertexCount;
  4924. /* readonly */
  4925. Array<uint> vertexElementMasks;
  4926. /* readonly */
  4927. uint vertexStart;
  4928. /* readonly */
  4929. int weakRefs;
  4930. };
  4931. class Graphics
  4932. {
  4933. // Methods:
  4934. void BeginDumpShaders(const String&);
  4935. void Close();
  4936. void EndDumpShaders();
  4937. bool HasSubscribedToEvent(Object, const String&);
  4938. bool HasSubscribedToEvent(const String&);
  4939. void Maximize();
  4940. void Minimize();
  4941. void PrecacheShaders(File);
  4942. void PrecacheShaders(VectorBuffer&);
  4943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4944. bool SetMode(int, int);
  4945. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4946. void SetWindowPosition(int, int);
  4947. bool TakeScreenShot(Image);
  4948. bool ToggleFullscreen();
  4949. // Properties:
  4950. /* readonly */
  4951. String apiName;
  4952. /* readonly */
  4953. bool borderless;
  4954. /* readonly */
  4955. String category;
  4956. /* readonly */
  4957. bool deferredSupport;
  4958. /* readonly */
  4959. IntVector2 desktopResolution;
  4960. /* readonly */
  4961. bool deviceLost;
  4962. bool flushGPU;
  4963. /* readonly */
  4964. bool fullscreen;
  4965. /* readonly */
  4966. bool hardwareShadowSupport;
  4967. /* readonly */
  4968. int height;
  4969. /* readonly */
  4970. bool initialized;
  4971. /* readonly */
  4972. bool instancingSupport;
  4973. /* readonly */
  4974. bool lightPrepassSupport;
  4975. /* readonly */
  4976. int multiSample;
  4977. /* readonly */
  4978. Array<int> multiSampleLevels;
  4979. /* readonly */
  4980. uint numBatches;
  4981. /* readonly */
  4982. uint numPrimitives;
  4983. String orientations;
  4984. /* readonly */
  4985. bool readableDepthSupport;
  4986. /* readonly */
  4987. int refs;
  4988. /* readonly */
  4989. bool resizable;
  4990. /* readonly */
  4991. Array<IntVector2> resolutions;
  4992. bool sRGB;
  4993. /* readonly */
  4994. bool sRGBSupport;
  4995. /* readonly */
  4996. bool sRGBWriteSupport;
  4997. /* readonly */
  4998. bool tripleBuffer;
  4999. /* readonly */
  5000. StringHash type;
  5001. /* readonly */
  5002. String typeName;
  5003. /* readonly */
  5004. bool vsync;
  5005. /* readonly */
  5006. int weakRefs;
  5007. /* readonly */
  5008. int width;
  5009. /* writeonly */
  5010. Image windowIcon;
  5011. IntVector2 windowPosition;
  5012. String windowTitle;
  5013. };
  5014. class HttpRequest
  5015. {
  5016. // Methods:
  5017. Array<uint8> Read(uint);
  5018. bool ReadBool();
  5019. BoundingBox ReadBoundingBox();
  5020. int8 ReadByte();
  5021. Color ReadColor();
  5022. double ReadDouble();
  5023. String ReadFileID();
  5024. float ReadFloat();
  5025. int ReadInt();
  5026. IntRect ReadIntRect();
  5027. IntVector2 ReadIntVector2();
  5028. String ReadLine();
  5029. Matrix3 ReadMatrix3();
  5030. Matrix3x4 ReadMatrix3x4();
  5031. Matrix4 ReadMatrix4();
  5032. uint ReadNetID();
  5033. Quaternion ReadPackedQuaternion();
  5034. Vector3 ReadPackedVector3(float);
  5035. Quaternion ReadQuaternion();
  5036. int16 ReadShort();
  5037. String ReadString();
  5038. StringHash ReadStringHash();
  5039. uint8 ReadUByte();
  5040. uint ReadUInt();
  5041. uint16 ReadUShort();
  5042. uint ReadVLE();
  5043. Variant ReadVariant();
  5044. VariantMap ReadVariantMap();
  5045. Vector2 ReadVector2();
  5046. Vector3 ReadVector3();
  5047. Vector4 ReadVector4();
  5048. VectorBuffer ReadVectorBuffer(uint);
  5049. uint Seek(uint);
  5050. // Properties:
  5051. /* readonly */
  5052. uint availableSize;
  5053. /* readonly */
  5054. uint checksum;
  5055. /* readonly */
  5056. bool eof;
  5057. /* readonly */
  5058. String error;
  5059. /* readonly */
  5060. String name;
  5061. /* readonly */
  5062. bool open;
  5063. /* readonly */
  5064. uint position;
  5065. /* readonly */
  5066. int refs;
  5067. /* readonly */
  5068. uint size;
  5069. /* readonly */
  5070. HttpRequestState state;
  5071. /* readonly */
  5072. String url;
  5073. /* readonly */
  5074. String verb;
  5075. /* readonly */
  5076. int weakRefs;
  5077. };
  5078. class Image
  5079. {
  5080. // Methods:
  5081. void Clear(const Color&);
  5082. void ClearInt(uint);
  5083. bool FlipHorizontal();
  5084. bool FlipVertical();
  5085. Color GetPixel(int, int) const;
  5086. Color GetPixel(int, int, int) const;
  5087. Color GetPixelBilinear(float, float) const;
  5088. uint GetPixelInt(int, int) const;
  5089. uint GetPixelInt(int, int, int) const;
  5090. Color GetPixelTrilinear(float, float, float) const;
  5091. Image GetSubimage(const IntRect&) const;
  5092. bool HasSubscribedToEvent(Object, const String&);
  5093. bool HasSubscribedToEvent(const String&);
  5094. bool Load(File);
  5095. bool Load(VectorBuffer&);
  5096. bool LoadColorLUT(File);
  5097. bool LoadColorLUT(VectorBuffer&);
  5098. bool Resize(int, int);
  5099. bool Save(File) const;
  5100. bool Save(VectorBuffer&) const;
  5101. bool SaveBMP(const String&) const;
  5102. bool SaveJPG(const String&, int) const;
  5103. bool SavePNG(const String&) const;
  5104. bool SaveTGA(const String&) const;
  5105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5106. void SetPixel(int, int, const Color&);
  5107. void SetPixel(int, int, int, const Color&);
  5108. void SetPixelInt(int, int, int, uint);
  5109. void SetPixelInt(int, int, uint);
  5110. bool SetSize(int, int, int, uint);
  5111. bool SetSize(int, int, uint);
  5112. // Properties:
  5113. /* readonly */
  5114. bool array;
  5115. /* readonly */
  5116. String category;
  5117. /* readonly */
  5118. uint components;
  5119. /* readonly */
  5120. bool compressed;
  5121. /* readonly */
  5122. CompressedFormat compressedFormat;
  5123. /* readonly */
  5124. bool cubemap;
  5125. /* readonly */
  5126. int depth;
  5127. /* readonly */
  5128. int height;
  5129. /* readonly */
  5130. uint memoryUse;
  5131. String name;
  5132. /* readonly */
  5133. uint numCompressedLevels;
  5134. /* readonly */
  5135. int refs;
  5136. /* readonly */
  5137. bool sRGB;
  5138. /* readonly */
  5139. StringHash type;
  5140. /* readonly */
  5141. String typeName;
  5142. /* readonly */
  5143. uint useTimer;
  5144. /* readonly */
  5145. int weakRefs;
  5146. /* readonly */
  5147. int width;
  5148. };
  5149. class IndexBuffer
  5150. {
  5151. // Methods:
  5152. VectorBuffer GetData();
  5153. bool HasSubscribedToEvent(Object, const String&);
  5154. bool HasSubscribedToEvent(const String&);
  5155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5156. bool SetData(VectorBuffer&);
  5157. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5158. void SetSize(uint, bool, bool = false);
  5159. // Properties:
  5160. /* readonly */
  5161. String category;
  5162. /* readonly */
  5163. bool dynamic;
  5164. /* readonly */
  5165. uint indexCount;
  5166. /* readonly */
  5167. uint indexSize;
  5168. /* readonly */
  5169. int refs;
  5170. bool shadowed;
  5171. /* readonly */
  5172. StringHash type;
  5173. /* readonly */
  5174. String typeName;
  5175. /* readonly */
  5176. int weakRefs;
  5177. };
  5178. class Input
  5179. {
  5180. // Methods:
  5181. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5182. int GetKeyFromName(const String&) const;
  5183. int GetKeyFromScancode(int) const;
  5184. String GetKeyName(int) const;
  5185. int GetScancodeFromKey(int) const;
  5186. int GetScancodeFromName(const String&) const;
  5187. String GetScancodeName(int) const;
  5188. bool HasSubscribedToEvent(Object, const String&);
  5189. bool HasSubscribedToEvent(const String&);
  5190. uint LoadGestures(File);
  5191. uint LoadGestures(VectorBuffer&);
  5192. bool RecordGesture();
  5193. void RemoveAllGestures();
  5194. bool RemoveGesture(uint);
  5195. bool RemoveScreenJoystick(int);
  5196. void ResetMouseVisible();
  5197. bool SaveGesture(File, uint);
  5198. bool SaveGesture(VectorBuffer&, uint);
  5199. bool SaveGestures(File);
  5200. bool SaveGestures(VectorBuffer&);
  5201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5202. void SetMouseVisible(bool, bool = false);
  5203. // Properties:
  5204. /* readonly */
  5205. String category;
  5206. /* readonly */
  5207. bool focus;
  5208. /* readonly */
  5209. Array<JoystickState> joysticks;
  5210. /* readonly */
  5211. Array<JoystickState> joysticksByIndex;
  5212. /* readonly */
  5213. Array<bool> keyDown;
  5214. /* readonly */
  5215. Array<bool> keyPress;
  5216. /* readonly */
  5217. bool minimized;
  5218. /* readonly */
  5219. Array<bool> mouseButtonDown;
  5220. /* readonly */
  5221. Array<bool> mouseButtonPress;
  5222. bool mouseGrabbed;
  5223. MouseMode mouseMode;
  5224. /* readonly */
  5225. IntVector2 mouseMove;
  5226. /* readonly */
  5227. int mouseMoveWheel;
  5228. /* readonly */
  5229. int mouseMoveX;
  5230. /* readonly */
  5231. int mouseMoveY;
  5232. /* readonly */
  5233. IntVector2 mousePosition;
  5234. bool mouseVisible;
  5235. /* readonly */
  5236. uint numJoysticks;
  5237. /* readonly */
  5238. uint numTouches;
  5239. /* readonly */
  5240. Array<bool> qualifierDown;
  5241. /* readonly */
  5242. Array<bool> qualifierPress;
  5243. /* readonly */
  5244. int qualifiers;
  5245. /* readonly */
  5246. int refs;
  5247. /* readonly */
  5248. Array<bool> scancodeDown;
  5249. /* readonly */
  5250. Array<bool> scancodePress;
  5251. Array<bool> screenJoystickVisible;
  5252. /* readonly */
  5253. bool screenKeyboardSupport;
  5254. bool screenKeyboardVisible;
  5255. bool toggleFullscreen;
  5256. bool touchEmulation;
  5257. /* readonly */
  5258. Array<TouchState> touches;
  5259. /* readonly */
  5260. StringHash type;
  5261. /* readonly */
  5262. String typeName;
  5263. /* readonly */
  5264. int weakRefs;
  5265. };
  5266. class IntRect
  5267. {
  5268. // Methods:
  5269. Intersection IsInside(const IntVector2&) const;
  5270. // Properties:
  5271. int bottom;
  5272. /* readonly */
  5273. Array<int> data;
  5274. /* readonly */
  5275. int height;
  5276. int left;
  5277. int right;
  5278. /* readonly */
  5279. IntVector2 size;
  5280. int top;
  5281. /* readonly */
  5282. int width;
  5283. };
  5284. class IntVector2
  5285. {
  5286. // Methods:
  5287. String ToString() const;
  5288. // Properties:
  5289. /* readonly */
  5290. Array<int> data;
  5291. int x;
  5292. int y;
  5293. };
  5294. class JSONFile
  5295. {
  5296. // Methods:
  5297. JSONValue& GetRoot();
  5298. bool HasSubscribedToEvent(Object, const String&);
  5299. bool HasSubscribedToEvent(const String&);
  5300. bool Load(File);
  5301. bool Load(VectorBuffer&);
  5302. bool Save(File) const;
  5303. bool Save(File, const String&) const;
  5304. bool Save(VectorBuffer&) const;
  5305. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5306. // Properties:
  5307. /* readonly */
  5308. String category;
  5309. /* readonly */
  5310. uint memoryUse;
  5311. String name;
  5312. /* readonly */
  5313. int refs;
  5314. /* readonly */
  5315. JSONValue root;
  5316. /* readonly */
  5317. StringHash type;
  5318. /* readonly */
  5319. String typeName;
  5320. /* readonly */
  5321. uint useTimer;
  5322. /* readonly */
  5323. int weakRefs;
  5324. };
  5325. class JSONValue
  5326. {
  5327. // Methods:
  5328. void Clear();
  5329. bool Contains(const String&) const;
  5330. void Erase(const String&);
  5331. void Erase(uint, uint = 1);
  5332. bool GetBool() const;
  5333. double GetDouble() const;
  5334. float GetFloat() const;
  5335. int GetInt() const;
  5336. uint GetUInt() const;
  5337. void Insert(uint, const JSONValue&);
  5338. const JSONValue& Get(const String&) const;
  5339. void Pop();
  5340. void Push(const JSONValue&);
  5341. void Resize(uint);
  5342. void Set(const String&, const JSONValue&);
  5343. const String& GetString() const;
  5344. // Properties:
  5345. /* readonly */
  5346. bool isArray;
  5347. /* readonly */
  5348. bool isBool;
  5349. /* readonly */
  5350. bool isNull;
  5351. /* readonly */
  5352. bool isNumber;
  5353. /* readonly */
  5354. bool isObject;
  5355. /* readonly */
  5356. bool isString;
  5357. /* readonly */
  5358. uint size;
  5359. /* readonly */
  5360. JSONValueType valueType;
  5361. };
  5362. class JoystickState
  5363. {
  5364. // Properties:
  5365. /* readonly */
  5366. Array<float> axisPosition;
  5367. /* readonly */
  5368. Array<bool> buttonDown;
  5369. /* readonly */
  5370. Array<bool> buttonPress;
  5371. /* readonly */
  5372. bool controller;
  5373. /* readonly */
  5374. Array<int> hatPosition;
  5375. int joystickID;
  5376. String name;
  5377. /* readonly */
  5378. uint numAxes;
  5379. /* readonly */
  5380. uint numButtons;
  5381. /* readonly */
  5382. uint numHats;
  5383. };
  5384. class Light
  5385. {
  5386. // Methods:
  5387. void ApplyAttributes();
  5388. void DrawDebugGeometry(DebugRenderer, bool);
  5389. Variant GetAttribute(const String&) const;
  5390. ValueAnimation GetAttributeAnimation(const String&) const;
  5391. float GetAttributeAnimationSpeed(const String&) const;
  5392. float GetAttributeAnimationTime(const String&) const;
  5393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5394. Variant GetAttributeDefault(const String&) const;
  5395. bool GetInterceptNetworkUpdate(const String&) const;
  5396. bool HasSubscribedToEvent(Object, const String&);
  5397. bool HasSubscribedToEvent(const String&);
  5398. bool IsInView(Camera) const;
  5399. bool Load(File, bool = false);
  5400. bool Load(VectorBuffer&, bool = false);
  5401. bool LoadJSON(const JSONValue&, bool = false);
  5402. bool LoadXML(const XMLElement&, bool = false);
  5403. void MarkNetworkUpdate() const;
  5404. void Remove();
  5405. void RemoveAttributeAnimation(const String&);
  5406. void RemoveInstanceDefault();
  5407. void RemoveObjectAnimation();
  5408. void ResetToDefault();
  5409. bool Save(File) const;
  5410. bool Save(VectorBuffer&) const;
  5411. bool SaveJSON(JSONValue&) const;
  5412. bool SaveXML(XMLElement&) const;
  5413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5414. void SetAnimationTime(float);
  5415. bool SetAttribute(const String&, const Variant&);
  5416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5417. void SetAttributeAnimationSpeed(const String&, float);
  5418. void SetAttributeAnimationTime(const String&, float);
  5419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5420. void SetInterceptNetworkUpdate(const String&, bool);
  5421. // Properties:
  5422. bool animationEnabled;
  5423. float aspectRatio;
  5424. /* readonly */
  5425. Array<Variant> attributeDefaults;
  5426. /* readonly */
  5427. Array<AttributeInfo> attributeInfos;
  5428. Array<Variant> attributes;
  5429. /* readonly */
  5430. BoundingBox boundingBox;
  5431. float brightness;
  5432. bool castShadows;
  5433. /* readonly */
  5434. String category;
  5435. Color color;
  5436. float drawDistance;
  5437. /* readonly */
  5438. Color effectiveColor;
  5439. /* readonly */
  5440. float effectiveSpecularIntensity;
  5441. bool enabled;
  5442. /* readonly */
  5443. bool enabledEffective;
  5444. float fadeDistance;
  5445. float fov;
  5446. /* readonly */
  5447. Frustum frustum;
  5448. /* readonly */
  5449. uint id;
  5450. /* readonly */
  5451. bool inView;
  5452. uint lightMask;
  5453. LightType lightType;
  5454. float lodBias;
  5455. uint maxLights;
  5456. /* readonly */
  5457. bool negative;
  5458. /* readonly */
  5459. Node node;
  5460. /* readonly */
  5461. uint numAttributes;
  5462. /* readonly */
  5463. int numShadowSplits;
  5464. ObjectAnimation objectAnimation;
  5465. bool occludee;
  5466. bool occluder;
  5467. bool perVertex;
  5468. Texture rampTexture;
  5469. float range;
  5470. /* readonly */
  5471. int refs;
  5472. BiasParameters shadowBias;
  5473. CascadeParameters shadowCascade;
  5474. float shadowDistance;
  5475. float shadowFadeDistance;
  5476. FocusParameters shadowFocus;
  5477. float shadowIntensity;
  5478. uint shadowMask;
  5479. float shadowNearFarRatio;
  5480. float shadowResolution;
  5481. Texture shapeTexture;
  5482. float specularIntensity;
  5483. bool temporary;
  5484. /* readonly */
  5485. StringHash type;
  5486. /* readonly */
  5487. String typeName;
  5488. uint viewMask;
  5489. /* readonly */
  5490. int weakRefs;
  5491. /* readonly */
  5492. BoundingBox worldBoundingBox;
  5493. uint zoneMask;
  5494. };
  5495. class LineEdit
  5496. {
  5497. // Methods:
  5498. void AddChild(UIElement);
  5499. void AddTag(const String&);
  5500. void AddTags(const String&, int8 = ';');
  5501. void ApplyAttributes();
  5502. void BringToFront();
  5503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5504. void DisableLayoutUpdate();
  5505. IntVector2 ElementToScreen(const IntVector2&);
  5506. void EnableLayoutUpdate();
  5507. uint FindChild(UIElement) const;
  5508. Variant GetAttribute(const String&) const;
  5509. ValueAnimation GetAttributeAnimation(const String&) const;
  5510. float GetAttributeAnimationSpeed(const String&) const;
  5511. float GetAttributeAnimationTime(const String&) const;
  5512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5513. Variant GetAttributeDefault(const String&) const;
  5514. UIElement GetChild(const String&, bool = false) const;
  5515. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5516. Array<UIElement> GetChildren(bool = false) const;
  5517. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5518. UIElement GetElementEventSender() const;
  5519. bool GetInterceptNetworkUpdate(const String&) const;
  5520. uint GetNumChildren(bool) const;
  5521. bool HasSubscribedToEvent(Object, const String&);
  5522. bool HasSubscribedToEvent(const String&);
  5523. bool HasTag(const String&) const;
  5524. void InsertChild(uint, UIElement);
  5525. bool IsInside(IntVector2, bool);
  5526. bool IsInsideCombined(IntVector2, bool);
  5527. bool Load(File, bool = false);
  5528. bool Load(VectorBuffer&, bool = false);
  5529. bool LoadChildXML(XMLFile, XMLFile = null);
  5530. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5531. bool LoadJSON(const JSONValue&, bool = false);
  5532. bool LoadXML(File);
  5533. bool LoadXML(VectorBuffer&);
  5534. bool LoadXML(XMLFile, XMLFile);
  5535. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5536. bool LoadXML(const XMLElement&, bool = false);
  5537. void MarkNetworkUpdate() const;
  5538. void Remove();
  5539. void RemoveAllChildren();
  5540. void RemoveAllTags();
  5541. void RemoveAttributeAnimation(const String&);
  5542. void RemoveChild(UIElement, uint = 0);
  5543. void RemoveChild(uint);
  5544. void RemoveInstanceDefault();
  5545. void RemoveObjectAnimation();
  5546. bool RemoveTag(const String&);
  5547. void ResetDeepEnabled();
  5548. void ResetToDefault();
  5549. bool Save(File) const;
  5550. bool Save(VectorBuffer&) const;
  5551. bool SaveJSON(JSONValue&) const;
  5552. bool SaveXML(File, const String& = "\t");
  5553. bool SaveXML(VectorBuffer&, const String& = "\t");
  5554. bool SaveXML(XMLElement&) const;
  5555. IntVector2 ScreenToElement(const IntVector2&);
  5556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5557. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5558. void SetAnimationTime(float);
  5559. bool SetAttribute(const String&, const Variant&);
  5560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5561. void SetAttributeAnimationSpeed(const String&, float);
  5562. void SetAttributeAnimationTime(const String&, float);
  5563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5564. void SetDeepEnabled(bool);
  5565. void SetEnabledRecursive(bool);
  5566. void SetFixedHeight(int);
  5567. void SetFixedSize(int, int);
  5568. void SetFixedWidth(int);
  5569. void SetFullImageRect();
  5570. void SetHoverOffset(int, int);
  5571. void SetInterceptNetworkUpdate(const String&, bool);
  5572. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5573. void SetMaxSize(int, int);
  5574. void SetMinSize(int, int);
  5575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5576. void SetPosition(int, int);
  5577. void SetSize(int, int);
  5578. bool SetStyle(const String&, XMLFile = null);
  5579. bool SetStyle(const XMLElement&);
  5580. bool SetStyleAuto(XMLFile = null);
  5581. void UpdateLayout();
  5582. const Variant& GetVar(const StringHash&);
  5583. // Properties:
  5584. bool animationEnabled;
  5585. /* readonly */
  5586. Array<Variant> attributeDefaults;
  5587. /* readonly */
  5588. Array<AttributeInfo> attributeInfos;
  5589. Array<Variant> attributes;
  5590. BlendMode blendMode;
  5591. IntRect border;
  5592. bool bringToBack;
  5593. bool bringToFront;
  5594. /* readonly */
  5595. String category;
  5596. /* readonly */
  5597. IntVector2 childOffset;
  5598. /* readonly */
  5599. Array<UIElement> children;
  5600. IntRect clipBorder;
  5601. bool clipChildren;
  5602. /* writeonly */
  5603. Color color;
  5604. /* readonly */
  5605. bool colorGradient;
  5606. Array<Color> colors;
  5607. /* readonly */
  5608. IntRect combinedScreenRect;
  5609. /* readonly */
  5610. BorderImage cursor;
  5611. float cursorBlinkRate;
  5612. bool cursorMovable;
  5613. uint cursorPosition;
  5614. XMLFile defaultStyle;
  5615. /* readonly */
  5616. float derivedOpacity;
  5617. /* readonly */
  5618. uint dragButtonCombo;
  5619. /* readonly */
  5620. int dragButtonCount;
  5621. uint dragDropMode;
  5622. uint echoCharacter;
  5623. bool editable;
  5624. bool elementEventSender;
  5625. bool enabled;
  5626. /* readonly */
  5627. bool enabledSelf;
  5628. /* readonly */
  5629. bool fixedHeight;
  5630. /* readonly */
  5631. bool fixedSize;
  5632. /* readonly */
  5633. bool fixedWidth;
  5634. bool focus;
  5635. FocusMode focusMode;
  5636. int height;
  5637. HorizontalAlignment horizontalAlignment;
  5638. IntVector2 hoverOffset;
  5639. /* readonly */
  5640. bool hovering;
  5641. IntRect imageBorder;
  5642. IntRect imageRect;
  5643. int indent;
  5644. int indentSpacing;
  5645. /* readonly */
  5646. int indentWidth;
  5647. bool internal;
  5648. IntRect layoutBorder;
  5649. Vector2 layoutFlexScale;
  5650. LayoutMode layoutMode;
  5651. int layoutSpacing;
  5652. int maxHeight;
  5653. uint maxLength;
  5654. IntVector2 maxSize;
  5655. int maxWidth;
  5656. int minHeight;
  5657. IntVector2 minSize;
  5658. int minWidth;
  5659. String name;
  5660. /* readonly */
  5661. uint numAllChildren;
  5662. /* readonly */
  5663. uint numAttributes;
  5664. /* readonly */
  5665. uint numChildren;
  5666. ObjectAnimation objectAnimation;
  5667. float opacity;
  5668. UIElement parent;
  5669. IntVector2 position;
  5670. int priority;
  5671. /* readonly */
  5672. int refs;
  5673. /* readonly */
  5674. UIElement root;
  5675. /* readonly */
  5676. IntVector2 screenPosition;
  5677. bool selected;
  5678. IntVector2 size;
  5679. bool sortChildren;
  5680. String style;
  5681. /* readonly */
  5682. Array<String> tags;
  5683. bool temporary;
  5684. String text;
  5685. bool textCopyable;
  5686. /* readonly */
  5687. Text textElement;
  5688. bool textSelectable;
  5689. Texture texture;
  5690. bool tiled;
  5691. TraversalMode traversalMode;
  5692. /* readonly */
  5693. StringHash type;
  5694. /* readonly */
  5695. String typeName;
  5696. bool useDerivedOpacity;
  5697. /* readonly */
  5698. VariantMap vars;
  5699. VerticalAlignment verticalAlignment;
  5700. bool visible;
  5701. /* readonly */
  5702. bool visibleEffective;
  5703. /* readonly */
  5704. int weakRefs;
  5705. int width;
  5706. };
  5707. class ListView
  5708. {
  5709. // Methods:
  5710. void AddChild(UIElement);
  5711. void AddItem(UIElement);
  5712. void AddSelection(uint);
  5713. void AddTag(const String&);
  5714. void AddTags(const String&, int8 = ';');
  5715. void ApplyAttributes();
  5716. void BringToFront();
  5717. void ChangeSelection(int, bool);
  5718. void ClearSelection();
  5719. void CopySelectedItemsToClipboard();
  5720. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5721. void DisableLayoutUpdate();
  5722. IntVector2 ElementToScreen(const IntVector2&);
  5723. void EnableLayoutUpdate();
  5724. void Expand(uint, bool, bool = false);
  5725. uint FindChild(UIElement) const;
  5726. uint FindItem(UIElement);
  5727. Variant GetAttribute(const String&) const;
  5728. ValueAnimation GetAttributeAnimation(const String&) const;
  5729. float GetAttributeAnimationSpeed(const String&) const;
  5730. float GetAttributeAnimationTime(const String&) const;
  5731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5732. Variant GetAttributeDefault(const String&) const;
  5733. UIElement GetChild(const String&, bool = false) const;
  5734. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5735. Array<UIElement> GetChildren(bool = false) const;
  5736. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5737. UIElement GetElementEventSender() const;
  5738. bool GetInterceptNetworkUpdate(const String&) const;
  5739. Array<UIElement> GetItems() const;
  5740. uint GetNumChildren(bool) const;
  5741. bool HasSubscribedToEvent(Object, const String&);
  5742. bool HasSubscribedToEvent(const String&);
  5743. bool HasTag(const String&) const;
  5744. void InsertChild(uint, UIElement);
  5745. void InsertItem(uint, UIElement, UIElement = null);
  5746. bool IsExpanded(uint) const;
  5747. bool IsInside(IntVector2, bool);
  5748. bool IsInsideCombined(IntVector2, bool);
  5749. bool IsSelected(uint) const;
  5750. bool Load(File, bool = false);
  5751. bool Load(VectorBuffer&, bool = false);
  5752. bool LoadChildXML(XMLFile, XMLFile = null);
  5753. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5754. bool LoadJSON(const JSONValue&, bool = false);
  5755. bool LoadXML(File);
  5756. bool LoadXML(VectorBuffer&);
  5757. bool LoadXML(XMLFile, XMLFile);
  5758. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5759. bool LoadXML(const XMLElement&, bool = false);
  5760. void MarkNetworkUpdate() const;
  5761. void Remove();
  5762. void RemoveAllChildren();
  5763. void RemoveAllItems();
  5764. void RemoveAllTags();
  5765. void RemoveAttributeAnimation(const String&);
  5766. void RemoveChild(UIElement, uint = 0);
  5767. void RemoveChild(uint);
  5768. void RemoveInstanceDefault();
  5769. void RemoveItem(UIElement, uint = 0);
  5770. void RemoveItem(uint);
  5771. void RemoveObjectAnimation();
  5772. void RemoveSelection(uint);
  5773. bool RemoveTag(const String&);
  5774. void ResetDeepEnabled();
  5775. void ResetToDefault();
  5776. bool Save(File) const;
  5777. bool Save(VectorBuffer&) const;
  5778. bool SaveJSON(JSONValue&) const;
  5779. bool SaveXML(File, const String& = "\t");
  5780. bool SaveXML(VectorBuffer&, const String& = "\t");
  5781. bool SaveXML(XMLElement&) const;
  5782. IntVector2 ScreenToElement(const IntVector2&);
  5783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5785. void SetAnimationTime(float);
  5786. bool SetAttribute(const String&, const Variant&);
  5787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5788. void SetAttributeAnimationSpeed(const String&, float);
  5789. void SetAttributeAnimationTime(const String&, float);
  5790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5791. void SetDeepEnabled(bool);
  5792. void SetEnabledRecursive(bool);
  5793. void SetFixedHeight(int);
  5794. void SetFixedSize(int, int);
  5795. void SetFixedWidth(int);
  5796. void SetInterceptNetworkUpdate(const String&, bool);
  5797. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5798. void SetMaxSize(int, int);
  5799. void SetMinSize(int, int);
  5800. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5801. void SetPosition(int, int);
  5802. void SetScrollBarsVisible(bool, bool);
  5803. void SetSelections(Array<uint>);
  5804. void SetSize(int, int);
  5805. bool SetStyle(const String&, XMLFile = null);
  5806. bool SetStyle(const XMLElement&);
  5807. bool SetStyleAuto(XMLFile = null);
  5808. void SetViewPosition(int, int);
  5809. void ToggleExpand(uint, bool = false);
  5810. void ToggleSelection(uint);
  5811. void UpdateLayout();
  5812. const Variant& GetVar(const StringHash&);
  5813. // Properties:
  5814. bool animationEnabled;
  5815. /* readonly */
  5816. Array<Variant> attributeDefaults;
  5817. /* readonly */
  5818. Array<AttributeInfo> attributeInfos;
  5819. Array<Variant> attributes;
  5820. bool autoDisableChildren;
  5821. float autoDisableThreshold;
  5822. int baseIndent;
  5823. bool bringToBack;
  5824. bool bringToFront;
  5825. /* readonly */
  5826. String category;
  5827. /* readonly */
  5828. IntVector2 childOffset;
  5829. /* readonly */
  5830. Array<UIElement> children;
  5831. bool clearSelectionOnDefocus;
  5832. IntRect clipBorder;
  5833. bool clipChildren;
  5834. /* writeonly */
  5835. Color color;
  5836. /* readonly */
  5837. bool colorGradient;
  5838. Array<Color> colors;
  5839. /* readonly */
  5840. IntRect combinedScreenRect;
  5841. /* readonly */
  5842. UIElement contentElement;
  5843. XMLFile defaultStyle;
  5844. /* readonly */
  5845. float derivedOpacity;
  5846. /* readonly */
  5847. uint dragButtonCombo;
  5848. /* readonly */
  5849. int dragButtonCount;
  5850. uint dragDropMode;
  5851. bool editable;
  5852. bool elementEventSender;
  5853. bool enabled;
  5854. /* readonly */
  5855. bool enabledSelf;
  5856. /* readonly */
  5857. bool fixedHeight;
  5858. /* readonly */
  5859. bool fixedSize;
  5860. /* readonly */
  5861. bool fixedWidth;
  5862. bool focus;
  5863. FocusMode focusMode;
  5864. int height;
  5865. bool hierarchyMode;
  5866. HighlightMode highlightMode;
  5867. HorizontalAlignment horizontalAlignment;
  5868. /* readonly */
  5869. ScrollBar horizontalScrollBar;
  5870. /* readonly */
  5871. bool hovering;
  5872. int indent;
  5873. int indentSpacing;
  5874. /* readonly */
  5875. int indentWidth;
  5876. bool internal;
  5877. /* readonly */
  5878. Array<UIElement> items;
  5879. IntRect layoutBorder;
  5880. Vector2 layoutFlexScale;
  5881. LayoutMode layoutMode;
  5882. int layoutSpacing;
  5883. int maxHeight;
  5884. IntVector2 maxSize;
  5885. int maxWidth;
  5886. int minHeight;
  5887. IntVector2 minSize;
  5888. int minWidth;
  5889. bool multiselect;
  5890. String name;
  5891. /* readonly */
  5892. uint numAllChildren;
  5893. /* readonly */
  5894. uint numAttributes;
  5895. /* readonly */
  5896. uint numChildren;
  5897. /* readonly */
  5898. uint numItems;
  5899. ObjectAnimation objectAnimation;
  5900. float opacity;
  5901. float pageStep;
  5902. UIElement parent;
  5903. IntVector2 position;
  5904. int priority;
  5905. /* readonly */
  5906. int refs;
  5907. /* readonly */
  5908. UIElement root;
  5909. /* readonly */
  5910. IntVector2 screenPosition;
  5911. bool scrollBarsAutoVisible;
  5912. float scrollDeceleration;
  5913. /* readonly */
  5914. BorderImage scrollPanel;
  5915. float scrollSnapEpsilon;
  5916. float scrollStep;
  5917. bool selectOnClickEnd;
  5918. bool selected;
  5919. /* readonly */
  5920. UIElement selectedItem;
  5921. /* readonly */
  5922. Array<UIElement> selectedItems;
  5923. uint selection;
  5924. /* readonly */
  5925. Array<uint> selections;
  5926. IntVector2 size;
  5927. bool sortChildren;
  5928. String style;
  5929. /* readonly */
  5930. Array<String> tags;
  5931. bool temporary;
  5932. TraversalMode traversalMode;
  5933. /* readonly */
  5934. StringHash type;
  5935. /* readonly */
  5936. String typeName;
  5937. bool useDerivedOpacity;
  5938. /* readonly */
  5939. VariantMap vars;
  5940. VerticalAlignment verticalAlignment;
  5941. /* readonly */
  5942. ScrollBar verticalScrollBar;
  5943. IntVector2 viewPosition;
  5944. bool visible;
  5945. /* readonly */
  5946. bool visibleEffective;
  5947. /* readonly */
  5948. int weakRefs;
  5949. int width;
  5950. };
  5951. class Localization
  5952. {
  5953. // Methods:
  5954. String Get(const String&);
  5955. String GetLanguage(int);
  5956. int GetLanguageIndex(const String&);
  5957. bool HasSubscribedToEvent(Object, const String&);
  5958. bool HasSubscribedToEvent(const String&);
  5959. void LoadJSON(const JSONValue&);
  5960. void LoadJSONFile(const String&);
  5961. void Reset();
  5962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5963. void SetLanguage(const String&);
  5964. void SetLanguage(int);
  5965. // Properties:
  5966. /* readonly */
  5967. String category;
  5968. /* readonly */
  5969. String language;
  5970. /* readonly */
  5971. int languageIndex;
  5972. /* readonly */
  5973. int numLanguages;
  5974. /* readonly */
  5975. int refs;
  5976. /* readonly */
  5977. StringHash type;
  5978. /* readonly */
  5979. String typeName;
  5980. /* readonly */
  5981. int weakRefs;
  5982. };
  5983. class Log
  5984. {
  5985. // Methods:
  5986. void Close();
  5987. void Debug(const String&);
  5988. void Error(const String&);
  5989. bool HasSubscribedToEvent(Object, const String&);
  5990. bool HasSubscribedToEvent(const String&);
  5991. void Info(const String&);
  5992. void Open(const String&);
  5993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5994. void Warning(const String&);
  5995. void Write(const String&, bool = false);
  5996. // Properties:
  5997. /* readonly */
  5998. String category;
  5999. /* readonly */
  6000. String lastMessage;
  6001. int level;
  6002. bool quiet;
  6003. /* readonly */
  6004. int refs;
  6005. bool timeStamp;
  6006. /* readonly */
  6007. StringHash type;
  6008. /* readonly */
  6009. String typeName;
  6010. /* readonly */
  6011. int weakRefs;
  6012. };
  6013. class Material
  6014. {
  6015. // Methods:
  6016. Material Clone(const String& = String ( )) const;
  6017. Pass GetPass(uint, const String&);
  6018. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6019. float GetShaderParameterAnimationSpeed(const String&) const;
  6020. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6021. bool HasSubscribedToEvent(Object, const String&);
  6022. bool HasSubscribedToEvent(const String&);
  6023. bool Load(File);
  6024. bool Load(VectorBuffer&);
  6025. bool Load(const JSONValue&);
  6026. bool Load(const XMLElement&);
  6027. void RemoveShaderParameter(const String&);
  6028. bool Save(File) const;
  6029. bool Save(JSONValue&) const;
  6030. bool Save(VectorBuffer&) const;
  6031. bool Save(XMLElement&) const;
  6032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6033. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6034. void SetShaderParameterAnimationSpeed(const String&, float);
  6035. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6036. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6037. void SetUVTransform(const Vector2&, float, const Vector2&);
  6038. void SetUVTransform(const Vector2&, float, float);
  6039. void SortTechniques();
  6040. // Properties:
  6041. /* readonly */
  6042. String category;
  6043. CullMode cullMode;
  6044. BiasParameters depthBias;
  6045. FillMode fillMode;
  6046. /* readonly */
  6047. uint memoryUse;
  6048. String name;
  6049. uint numTechniques;
  6050. /* readonly */
  6051. bool occlusion;
  6052. /* readonly */
  6053. int refs;
  6054. uint8 renderOrder;
  6055. Scene scene;
  6056. /* readonly */
  6057. Array<String> shaderParameterNames;
  6058. Array<Variant> shaderParameters;
  6059. CullMode shadowCullMode;
  6060. /* readonly */
  6061. Array<TechniqueEntry> techniqueEntries;
  6062. /* readonly */
  6063. Array<Technique> techniques;
  6064. Array<Texture> textures;
  6065. /* readonly */
  6066. StringHash type;
  6067. /* readonly */
  6068. String typeName;
  6069. /* readonly */
  6070. uint useTimer;
  6071. /* readonly */
  6072. int weakRefs;
  6073. };
  6074. class Matrix2
  6075. {
  6076. // Methods:
  6077. bool Equals(const Matrix2&) const;
  6078. Matrix2 Inverse() const;
  6079. Vector2 Scale() const;
  6080. Matrix2 Scaled(const Vector2&) const;
  6081. void SetScale(const Vector2&);
  6082. void SetScale(float);
  6083. String ToString() const;
  6084. Matrix2 Transpose() const;
  6085. // Properties:
  6086. float m00;
  6087. float m01;
  6088. float m10;
  6089. float m11;
  6090. };
  6091. class Matrix3
  6092. {
  6093. // Methods:
  6094. bool Equals(const Matrix3&) const;
  6095. Matrix3 Inverse() const;
  6096. Vector3 Scale() const;
  6097. Matrix3 Scaled(const Vector3&) const;
  6098. void SetScale(const Vector3&);
  6099. void SetScale(float);
  6100. String ToString() const;
  6101. Matrix3 Transpose() const;
  6102. // Properties:
  6103. float m00;
  6104. float m01;
  6105. float m02;
  6106. float m10;
  6107. float m11;
  6108. float m12;
  6109. float m20;
  6110. float m21;
  6111. float m22;
  6112. };
  6113. class Matrix3x4
  6114. {
  6115. // Methods:
  6116. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6117. bool Equals(const Matrix3x4&) const;
  6118. Matrix3x4 Inverse() const;
  6119. Quaternion Rotation() const;
  6120. Matrix3 RotationMatrix() const;
  6121. Vector3 Scale() const;
  6122. void SetRotation(const Matrix3&);
  6123. void SetScale(const Vector3&);
  6124. void SetScale(float);
  6125. void SetTranslation(const Vector3&);
  6126. Matrix3 ToMatrix3() const;
  6127. Matrix4 ToMatrix4() const;
  6128. String ToString() const;
  6129. Vector3 Translation() const;
  6130. // Properties:
  6131. float m00;
  6132. float m01;
  6133. float m02;
  6134. float m03;
  6135. float m10;
  6136. float m11;
  6137. float m12;
  6138. float m13;
  6139. float m20;
  6140. float m21;
  6141. float m22;
  6142. float m23;
  6143. };
  6144. class Matrix4
  6145. {
  6146. // Methods:
  6147. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6148. bool Equals(const Matrix4&) const;
  6149. Matrix4 Inverse() const;
  6150. Quaternion Rotation() const;
  6151. Matrix3 RotationMatrix() const;
  6152. Vector3 Scale() const;
  6153. void SetRotation(const Matrix3&);
  6154. void SetScale(const Vector3&);
  6155. void SetScale(float);
  6156. void SetTranslation(const Vector3&);
  6157. Matrix3 ToMatrix3() const;
  6158. String ToString() const;
  6159. Vector3 Translation() const;
  6160. Matrix4 Transpose() const;
  6161. // Properties:
  6162. float m00;
  6163. float m01;
  6164. float m02;
  6165. float m03;
  6166. float m10;
  6167. float m11;
  6168. float m12;
  6169. float m13;
  6170. float m20;
  6171. float m21;
  6172. float m22;
  6173. float m23;
  6174. float m30;
  6175. float m31;
  6176. float m32;
  6177. float m33;
  6178. };
  6179. class Menu
  6180. {
  6181. // Methods:
  6182. void AddChild(UIElement);
  6183. void AddTag(const String&);
  6184. void AddTags(const String&, int8 = ';');
  6185. void ApplyAttributes();
  6186. void BringToFront();
  6187. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6188. void DisableLayoutUpdate();
  6189. IntVector2 ElementToScreen(const IntVector2&);
  6190. void EnableLayoutUpdate();
  6191. uint FindChild(UIElement) const;
  6192. Variant GetAttribute(const String&) const;
  6193. ValueAnimation GetAttributeAnimation(const String&) const;
  6194. float GetAttributeAnimationSpeed(const String&) const;
  6195. float GetAttributeAnimationTime(const String&) const;
  6196. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6197. Variant GetAttributeDefault(const String&) const;
  6198. UIElement GetChild(const String&, bool = false) const;
  6199. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6200. Array<UIElement> GetChildren(bool = false) const;
  6201. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6202. UIElement GetElementEventSender() const;
  6203. bool GetInterceptNetworkUpdate(const String&) const;
  6204. uint GetNumChildren(bool) const;
  6205. bool HasSubscribedToEvent(Object, const String&);
  6206. bool HasSubscribedToEvent(const String&);
  6207. bool HasTag(const String&) const;
  6208. void InsertChild(uint, UIElement);
  6209. bool IsInside(IntVector2, bool);
  6210. bool IsInsideCombined(IntVector2, bool);
  6211. bool Load(File, bool = false);
  6212. bool Load(VectorBuffer&, bool = false);
  6213. bool LoadChildXML(XMLFile, XMLFile = null);
  6214. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6215. bool LoadJSON(const JSONValue&, bool = false);
  6216. bool LoadXML(File);
  6217. bool LoadXML(VectorBuffer&);
  6218. bool LoadXML(XMLFile, XMLFile);
  6219. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6220. bool LoadXML(const XMLElement&, bool = false);
  6221. void MarkNetworkUpdate() const;
  6222. void Remove();
  6223. void RemoveAllChildren();
  6224. void RemoveAllTags();
  6225. void RemoveAttributeAnimation(const String&);
  6226. void RemoveChild(UIElement, uint = 0);
  6227. void RemoveChild(uint);
  6228. void RemoveInstanceDefault();
  6229. void RemoveObjectAnimation();
  6230. bool RemoveTag(const String&);
  6231. void ResetDeepEnabled();
  6232. void ResetToDefault();
  6233. bool Save(File) const;
  6234. bool Save(VectorBuffer&) const;
  6235. bool SaveJSON(JSONValue&) const;
  6236. bool SaveXML(File, const String& = "\t");
  6237. bool SaveXML(VectorBuffer&, const String& = "\t");
  6238. bool SaveXML(XMLElement&) const;
  6239. IntVector2 ScreenToElement(const IntVector2&);
  6240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6241. void SetAccelerator(int, int);
  6242. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6243. void SetAnimationTime(float);
  6244. bool SetAttribute(const String&, const Variant&);
  6245. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6246. void SetAttributeAnimationSpeed(const String&, float);
  6247. void SetAttributeAnimationTime(const String&, float);
  6248. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6249. void SetDeepEnabled(bool);
  6250. void SetEnabledRecursive(bool);
  6251. void SetFixedHeight(int);
  6252. void SetFixedSize(int, int);
  6253. void SetFixedWidth(int);
  6254. void SetFullImageRect();
  6255. void SetHoverOffset(int, int);
  6256. void SetInterceptNetworkUpdate(const String&, bool);
  6257. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6258. void SetMaxSize(int, int);
  6259. void SetMinSize(int, int);
  6260. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6261. void SetPopupOffset(int, int);
  6262. void SetPosition(int, int);
  6263. void SetPressedChildOffset(int, int);
  6264. void SetPressedOffset(int, int);
  6265. void SetRepeat(float, float);
  6266. void SetSize(int, int);
  6267. bool SetStyle(const String&, XMLFile = null);
  6268. bool SetStyle(const XMLElement&);
  6269. bool SetStyleAuto(XMLFile = null);
  6270. void UpdateLayout();
  6271. const Variant& GetVar(const StringHash&);
  6272. // Properties:
  6273. /* readonly */
  6274. int acceleratorKey;
  6275. /* readonly */
  6276. int acceleratorQualifiers;
  6277. bool animationEnabled;
  6278. /* readonly */
  6279. Array<Variant> attributeDefaults;
  6280. /* readonly */
  6281. Array<AttributeInfo> attributeInfos;
  6282. Array<Variant> attributes;
  6283. BlendMode blendMode;
  6284. IntRect border;
  6285. bool bringToBack;
  6286. bool bringToFront;
  6287. /* readonly */
  6288. String category;
  6289. /* readonly */
  6290. IntVector2 childOffset;
  6291. /* readonly */
  6292. Array<UIElement> children;
  6293. IntRect clipBorder;
  6294. bool clipChildren;
  6295. /* writeonly */
  6296. Color color;
  6297. /* readonly */
  6298. bool colorGradient;
  6299. Array<Color> colors;
  6300. /* readonly */
  6301. IntRect combinedScreenRect;
  6302. XMLFile defaultStyle;
  6303. /* readonly */
  6304. float derivedOpacity;
  6305. /* readonly */
  6306. uint dragButtonCombo;
  6307. /* readonly */
  6308. int dragButtonCount;
  6309. uint dragDropMode;
  6310. bool editable;
  6311. bool elementEventSender;
  6312. bool enabled;
  6313. /* readonly */
  6314. bool enabledSelf;
  6315. /* readonly */
  6316. bool fixedHeight;
  6317. /* readonly */
  6318. bool fixedSize;
  6319. /* readonly */
  6320. bool fixedWidth;
  6321. bool focus;
  6322. FocusMode focusMode;
  6323. int height;
  6324. HorizontalAlignment horizontalAlignment;
  6325. IntVector2 hoverOffset;
  6326. /* readonly */
  6327. bool hovering;
  6328. IntRect imageBorder;
  6329. IntRect imageRect;
  6330. int indent;
  6331. int indentSpacing;
  6332. /* readonly */
  6333. int indentWidth;
  6334. bool internal;
  6335. IntRect layoutBorder;
  6336. Vector2 layoutFlexScale;
  6337. LayoutMode layoutMode;
  6338. int layoutSpacing;
  6339. int maxHeight;
  6340. IntVector2 maxSize;
  6341. int maxWidth;
  6342. int minHeight;
  6343. IntVector2 minSize;
  6344. int minWidth;
  6345. String name;
  6346. /* readonly */
  6347. uint numAllChildren;
  6348. /* readonly */
  6349. uint numAttributes;
  6350. /* readonly */
  6351. uint numChildren;
  6352. ObjectAnimation objectAnimation;
  6353. float opacity;
  6354. UIElement parent;
  6355. UIElement popup;
  6356. IntVector2 popupOffset;
  6357. IntVector2 position;
  6358. /* readonly */
  6359. bool pressed;
  6360. IntVector2 pressedChildOffset;
  6361. IntVector2 pressedOffset;
  6362. int priority;
  6363. /* readonly */
  6364. int refs;
  6365. float repeatDelay;
  6366. float repeatRate;
  6367. /* readonly */
  6368. UIElement root;
  6369. /* readonly */
  6370. IntVector2 screenPosition;
  6371. bool selected;
  6372. bool showPopup;
  6373. IntVector2 size;
  6374. bool sortChildren;
  6375. String style;
  6376. /* readonly */
  6377. Array<String> tags;
  6378. bool temporary;
  6379. Texture texture;
  6380. bool tiled;
  6381. TraversalMode traversalMode;
  6382. /* readonly */
  6383. StringHash type;
  6384. /* readonly */
  6385. String typeName;
  6386. bool useDerivedOpacity;
  6387. /* readonly */
  6388. VariantMap vars;
  6389. VerticalAlignment verticalAlignment;
  6390. bool visible;
  6391. /* readonly */
  6392. bool visibleEffective;
  6393. /* readonly */
  6394. int weakRefs;
  6395. int width;
  6396. };
  6397. class MessageBox
  6398. {
  6399. // Methods:
  6400. bool HasSubscribedToEvent(Object, const String&);
  6401. bool HasSubscribedToEvent(const String&);
  6402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6403. // Properties:
  6404. /* readonly */
  6405. String category;
  6406. String message;
  6407. /* readonly */
  6408. int refs;
  6409. String title;
  6410. /* readonly */
  6411. StringHash type;
  6412. /* readonly */
  6413. String typeName;
  6414. /* readonly */
  6415. int weakRefs;
  6416. /* readonly */
  6417. UIElement window;
  6418. };
  6419. class Model
  6420. {
  6421. // Methods:
  6422. Model Clone(const String& = String ( )) const;
  6423. Geometry GetGeometry(uint, uint) const;
  6424. bool HasSubscribedToEvent(Object, const String&);
  6425. bool HasSubscribedToEvent(const String&);
  6426. bool Load(File);
  6427. bool Load(VectorBuffer&);
  6428. bool Save(File) const;
  6429. bool Save(VectorBuffer&) const;
  6430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6431. bool SetGeometry(uint, uint, Geometry);
  6432. // Properties:
  6433. BoundingBox boundingBox;
  6434. /* readonly */
  6435. String category;
  6436. Array<Vector3> geometryCenters;
  6437. /* readonly */
  6438. uint memoryUse;
  6439. String name;
  6440. uint numGeometries;
  6441. Array<uint> numGeometryLodLevels;
  6442. /* readonly */
  6443. uint numMorphs;
  6444. /* readonly */
  6445. int refs;
  6446. /* readonly */
  6447. Skeleton skeleton;
  6448. /* readonly */
  6449. StringHash type;
  6450. /* readonly */
  6451. String typeName;
  6452. /* readonly */
  6453. uint useTimer;
  6454. /* readonly */
  6455. int weakRefs;
  6456. };
  6457. class NavArea
  6458. {
  6459. // Methods:
  6460. void ApplyAttributes();
  6461. void DrawDebugGeometry(DebugRenderer, bool);
  6462. Variant GetAttribute(const String&) const;
  6463. ValueAnimation GetAttributeAnimation(const String&) const;
  6464. float GetAttributeAnimationSpeed(const String&) const;
  6465. float GetAttributeAnimationTime(const String&) const;
  6466. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6467. Variant GetAttributeDefault(const String&) const;
  6468. bool GetInterceptNetworkUpdate(const String&) const;
  6469. bool HasSubscribedToEvent(Object, const String&);
  6470. bool HasSubscribedToEvent(const String&);
  6471. bool Load(File, bool = false);
  6472. bool Load(VectorBuffer&, bool = false);
  6473. bool LoadJSON(const JSONValue&, bool = false);
  6474. bool LoadXML(const XMLElement&, bool = false);
  6475. void MarkNetworkUpdate() const;
  6476. void Remove();
  6477. void RemoveAttributeAnimation(const String&);
  6478. void RemoveInstanceDefault();
  6479. void RemoveObjectAnimation();
  6480. void ResetToDefault();
  6481. bool Save(File) const;
  6482. bool Save(VectorBuffer&) const;
  6483. bool SaveJSON(JSONValue&) const;
  6484. bool SaveXML(XMLElement&) const;
  6485. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6486. void SetAnimationTime(float);
  6487. bool SetAttribute(const String&, const Variant&);
  6488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6489. void SetAttributeAnimationSpeed(const String&, float);
  6490. void SetAttributeAnimationTime(const String&, float);
  6491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6492. void SetInterceptNetworkUpdate(const String&, bool);
  6493. // Properties:
  6494. bool animationEnabled;
  6495. uint areaID;
  6496. /* readonly */
  6497. Array<Variant> attributeDefaults;
  6498. /* readonly */
  6499. Array<AttributeInfo> attributeInfos;
  6500. Array<Variant> attributes;
  6501. BoundingBox boundingBox;
  6502. /* readonly */
  6503. String category;
  6504. bool enabled;
  6505. /* readonly */
  6506. bool enabledEffective;
  6507. /* readonly */
  6508. uint id;
  6509. /* readonly */
  6510. Node node;
  6511. /* readonly */
  6512. uint numAttributes;
  6513. ObjectAnimation objectAnimation;
  6514. /* readonly */
  6515. int refs;
  6516. bool temporary;
  6517. /* readonly */
  6518. StringHash type;
  6519. /* readonly */
  6520. String typeName;
  6521. /* readonly */
  6522. int weakRefs;
  6523. /* readonly */
  6524. BoundingBox worldBoundingBox;
  6525. };
  6526. class Navigable
  6527. {
  6528. // Methods:
  6529. void ApplyAttributes();
  6530. void DrawDebugGeometry(DebugRenderer, bool);
  6531. Variant GetAttribute(const String&) const;
  6532. ValueAnimation GetAttributeAnimation(const String&) const;
  6533. float GetAttributeAnimationSpeed(const String&) const;
  6534. float GetAttributeAnimationTime(const String&) const;
  6535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6536. Variant GetAttributeDefault(const String&) const;
  6537. bool GetInterceptNetworkUpdate(const String&) const;
  6538. bool HasSubscribedToEvent(Object, const String&);
  6539. bool HasSubscribedToEvent(const String&);
  6540. bool Load(File, bool = false);
  6541. bool Load(VectorBuffer&, bool = false);
  6542. bool LoadJSON(const JSONValue&, bool = false);
  6543. bool LoadXML(const XMLElement&, bool = false);
  6544. void MarkNetworkUpdate() const;
  6545. void Remove();
  6546. void RemoveAttributeAnimation(const String&);
  6547. void RemoveInstanceDefault();
  6548. void RemoveObjectAnimation();
  6549. void ResetToDefault();
  6550. bool Save(File) const;
  6551. bool Save(VectorBuffer&) const;
  6552. bool SaveJSON(JSONValue&) const;
  6553. bool SaveXML(XMLElement&) const;
  6554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6555. void SetAnimationTime(float);
  6556. bool SetAttribute(const String&, const Variant&);
  6557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6558. void SetAttributeAnimationSpeed(const String&, float);
  6559. void SetAttributeAnimationTime(const String&, float);
  6560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6561. void SetInterceptNetworkUpdate(const String&, bool);
  6562. // Properties:
  6563. bool animationEnabled;
  6564. /* readonly */
  6565. Array<Variant> attributeDefaults;
  6566. /* readonly */
  6567. Array<AttributeInfo> attributeInfos;
  6568. Array<Variant> attributes;
  6569. /* readonly */
  6570. String category;
  6571. bool enabled;
  6572. /* readonly */
  6573. bool enabledEffective;
  6574. /* readonly */
  6575. uint id;
  6576. /* readonly */
  6577. Node node;
  6578. /* readonly */
  6579. uint numAttributes;
  6580. ObjectAnimation objectAnimation;
  6581. bool recursive;
  6582. /* readonly */
  6583. int refs;
  6584. bool temporary;
  6585. /* readonly */
  6586. StringHash type;
  6587. /* readonly */
  6588. String typeName;
  6589. /* readonly */
  6590. int weakRefs;
  6591. };
  6592. class NavigationMesh
  6593. {
  6594. // Methods:
  6595. void ApplyAttributes();
  6596. bool Build();
  6597. bool Build(const BoundingBox&);
  6598. void DrawDebugGeometry(DebugRenderer, bool);
  6599. void DrawDebugGeometry(bool);
  6600. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6601. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6602. float GetAreaCost(uint) const;
  6603. Variant GetAttribute(const String&) const;
  6604. ValueAnimation GetAttributeAnimation(const String&) const;
  6605. float GetAttributeAnimationSpeed(const String&) const;
  6606. float GetAttributeAnimationTime(const String&) const;
  6607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6608. Variant GetAttributeDefault(const String&) const;
  6609. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6610. bool GetInterceptNetworkUpdate(const String&) const;
  6611. Vector3 GetRandomPoint();
  6612. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6613. bool HasSubscribedToEvent(Object, const String&);
  6614. bool HasSubscribedToEvent(const String&);
  6615. bool Load(File, bool = false);
  6616. bool Load(VectorBuffer&, bool = false);
  6617. bool LoadJSON(const JSONValue&, bool = false);
  6618. bool LoadXML(const XMLElement&, bool = false);
  6619. void MarkNetworkUpdate() const;
  6620. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6621. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6622. void Remove();
  6623. void RemoveAttributeAnimation(const String&);
  6624. void RemoveInstanceDefault();
  6625. void RemoveObjectAnimation();
  6626. void ResetToDefault();
  6627. bool Save(File) const;
  6628. bool Save(VectorBuffer&) const;
  6629. bool SaveJSON(JSONValue&) const;
  6630. bool SaveXML(XMLElement&) const;
  6631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6632. void SetAnimationTime(float);
  6633. void SetAreaCost(uint, float);
  6634. bool SetAttribute(const String&, const Variant&);
  6635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6636. void SetAttributeAnimationSpeed(const String&, float);
  6637. void SetAttributeAnimationTime(const String&, float);
  6638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6639. void SetInterceptNetworkUpdate(const String&, bool);
  6640. // Properties:
  6641. float agentHeight;
  6642. float agentMaxClimb;
  6643. float agentMaxSlope;
  6644. float agentRadius;
  6645. bool animationEnabled;
  6646. /* readonly */
  6647. Array<Variant> attributeDefaults;
  6648. /* readonly */
  6649. Array<AttributeInfo> attributeInfos;
  6650. Array<Variant> attributes;
  6651. /* readonly */
  6652. BoundingBox boundingBox;
  6653. /* readonly */
  6654. String category;
  6655. float cellHeight;
  6656. float cellSize;
  6657. float detailSampleDistance;
  6658. float detailSampleMaxError;
  6659. bool drawNavAreas;
  6660. bool drawOffMeshConnections;
  6661. float edgeMaxError;
  6662. float edgeMaxLength;
  6663. bool enabled;
  6664. /* readonly */
  6665. bool enabledEffective;
  6666. /* readonly */
  6667. uint id;
  6668. /* readonly */
  6669. bool initialized;
  6670. /* readonly */
  6671. Node node;
  6672. /* readonly */
  6673. uint numAttributes;
  6674. /* readonly */
  6675. IntVector2 numTiles;
  6676. ObjectAnimation objectAnimation;
  6677. Vector3 padding;
  6678. NavmeshPartitionType partitionType;
  6679. /* readonly */
  6680. int refs;
  6681. float regionMergeSize;
  6682. float regionMinSize;
  6683. bool temporary;
  6684. int tileSize;
  6685. /* readonly */
  6686. StringHash type;
  6687. /* readonly */
  6688. String typeName;
  6689. /* readonly */
  6690. int weakRefs;
  6691. /* readonly */
  6692. BoundingBox worldBoundingBox;
  6693. };
  6694. class Network
  6695. {
  6696. // Methods:
  6697. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6698. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6699. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6700. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6701. bool CheckRemoteEvent(const String&) const;
  6702. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6703. void Disconnect(int = 0);
  6704. bool HasSubscribedToEvent(Object, const String&);
  6705. bool HasSubscribedToEvent(const String&);
  6706. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6707. void RegisterRemoteEvent(const String&) const;
  6708. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6709. void SendPackageToClients(Scene, PackageFile);
  6710. bool StartServer(uint16);
  6711. void StopServer();
  6712. void UnregisterAllRemoteEvents();
  6713. void UnregisterRemoteEvent(const String&) const;
  6714. // Properties:
  6715. /* readonly */
  6716. String category;
  6717. /* readonly */
  6718. Array<Connection> clientConnections;
  6719. String packageCacheDir;
  6720. /* readonly */
  6721. int refs;
  6722. /* readonly */
  6723. Connection serverConnection;
  6724. /* readonly */
  6725. bool serverRunning;
  6726. int simulatedLatency;
  6727. float simulatedPacketLoss;
  6728. /* readonly */
  6729. StringHash type;
  6730. /* readonly */
  6731. String typeName;
  6732. int updateFps;
  6733. /* readonly */
  6734. int weakRefs;
  6735. };
  6736. class NetworkPriority
  6737. {
  6738. // Methods:
  6739. void ApplyAttributes();
  6740. void DrawDebugGeometry(DebugRenderer, bool);
  6741. Variant GetAttribute(const String&) const;
  6742. ValueAnimation GetAttributeAnimation(const String&) const;
  6743. float GetAttributeAnimationSpeed(const String&) const;
  6744. float GetAttributeAnimationTime(const String&) const;
  6745. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6746. Variant GetAttributeDefault(const String&) const;
  6747. bool GetInterceptNetworkUpdate(const String&) const;
  6748. bool HasSubscribedToEvent(Object, const String&);
  6749. bool HasSubscribedToEvent(const String&);
  6750. bool Load(File, bool = false);
  6751. bool Load(VectorBuffer&, bool = false);
  6752. bool LoadJSON(const JSONValue&, bool = false);
  6753. bool LoadXML(const XMLElement&, bool = false);
  6754. void MarkNetworkUpdate() const;
  6755. void Remove();
  6756. void RemoveAttributeAnimation(const String&);
  6757. void RemoveInstanceDefault();
  6758. void RemoveObjectAnimation();
  6759. void ResetToDefault();
  6760. bool Save(File) const;
  6761. bool Save(VectorBuffer&) const;
  6762. bool SaveJSON(JSONValue&) const;
  6763. bool SaveXML(XMLElement&) const;
  6764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6765. void SetAnimationTime(float);
  6766. bool SetAttribute(const String&, const Variant&);
  6767. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6768. void SetAttributeAnimationSpeed(const String&, float);
  6769. void SetAttributeAnimationTime(const String&, float);
  6770. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6771. void SetInterceptNetworkUpdate(const String&, bool);
  6772. // Properties:
  6773. bool alwaysUpdateOwner;
  6774. bool animationEnabled;
  6775. /* readonly */
  6776. Array<Variant> attributeDefaults;
  6777. /* readonly */
  6778. Array<AttributeInfo> attributeInfos;
  6779. Array<Variant> attributes;
  6780. float basePriority;
  6781. /* readonly */
  6782. String category;
  6783. float distanceFactor;
  6784. bool enabled;
  6785. /* readonly */
  6786. bool enabledEffective;
  6787. /* readonly */
  6788. uint id;
  6789. float minPriority;
  6790. /* readonly */
  6791. Node node;
  6792. /* readonly */
  6793. uint numAttributes;
  6794. ObjectAnimation objectAnimation;
  6795. /* readonly */
  6796. int refs;
  6797. bool temporary;
  6798. /* readonly */
  6799. StringHash type;
  6800. /* readonly */
  6801. String typeName;
  6802. /* readonly */
  6803. int weakRefs;
  6804. };
  6805. class Node
  6806. {
  6807. // Methods:
  6808. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6809. void AddTag(const String&);
  6810. void AddTags(const String&, int8 = ';');
  6811. void ApplyAttributes();
  6812. Node Clone(CreateMode = REPLICATED);
  6813. Component CloneComponent(Component, CreateMode, uint = 0);
  6814. Component CloneComponent(Component, uint = 0);
  6815. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6816. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6817. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6818. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6819. Variant GetAttribute(const String&) const;
  6820. ValueAnimation GetAttributeAnimation(const String&) const;
  6821. float GetAttributeAnimationSpeed(const String&) const;
  6822. float GetAttributeAnimationTime(const String&) const;
  6823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6824. Variant GetAttributeDefault(const String&) const;
  6825. Node GetChild(const String&, bool = false) const;
  6826. Array<Node> GetChildren(bool = false) const;
  6827. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6828. Array<Node> GetChildrenWithScript(bool = false) const;
  6829. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6830. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6831. Component GetComponent(const String&, bool = false) const;
  6832. Array<Component> GetComponents() const;
  6833. Array<Component> GetComponents(const String&, bool = false) const;
  6834. bool GetInterceptNetworkUpdate(const String&) const;
  6835. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6836. Component GetParentComponent(const String&, bool = false) const;
  6837. ScriptObject GetScriptObject() const;
  6838. ScriptObject GetScriptObject(const String&) const;
  6839. bool HasComponent(const String&) const;
  6840. bool HasSubscribedToEvent(Object, const String&);
  6841. bool HasSubscribedToEvent(const String&);
  6842. bool HasTag(const String&);
  6843. bool Load(File, bool = false);
  6844. bool Load(VectorBuffer&, bool = false);
  6845. bool LoadJSON(const JSONValue&, bool = false);
  6846. bool LoadXML(const XMLElement&, bool = false);
  6847. Vector3 LocalToWorld(const Vector3&) const;
  6848. Vector3 LocalToWorld(const Vector4&) const;
  6849. Vector2 LocalToWorld2D(const Vector2&) const;
  6850. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6851. void MarkDirty();
  6852. void MarkNetworkUpdate() const;
  6853. void Pitch(float, TransformSpace = TS_LOCAL);
  6854. void Remove();
  6855. void RemoveAllChildren();
  6856. void RemoveAllComponents();
  6857. void RemoveAllTags();
  6858. void RemoveAttributeAnimation(const String&);
  6859. void RemoveChild(Node);
  6860. void RemoveChildren(bool, bool, bool);
  6861. void RemoveComponent(Component);
  6862. void RemoveComponent(const String&);
  6863. void RemoveComponents(bool, bool);
  6864. void RemoveComponents(const String&);
  6865. void RemoveInstanceDefault();
  6866. void RemoveObjectAnimation();
  6867. bool RemoveTag(const String&);
  6868. void ResetDeepEnabled();
  6869. void ResetToDefault();
  6870. void Roll(float, TransformSpace = TS_LOCAL);
  6871. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6872. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6873. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6874. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6875. bool Save(File) const;
  6876. bool Save(VectorBuffer&) const;
  6877. bool SaveJSON(File);
  6878. bool SaveJSON(JSONValue&) const;
  6879. bool SaveJSON(VectorBuffer&);
  6880. bool SaveXML(File, const String& = "\t");
  6881. bool SaveXML(VectorBuffer&, const String& = "\t");
  6882. bool SaveXML(XMLElement&) const;
  6883. void Scale(const Vector3&);
  6884. void Scale(float);
  6885. void Scale2D(const Vector2&);
  6886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6887. void SetAnimationTime(float);
  6888. bool SetAttribute(const String&, const Variant&);
  6889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6890. void SetAttributeAnimationSpeed(const String&, float);
  6891. void SetAttributeAnimationTime(const String&, float);
  6892. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6893. void SetDeepEnabled(bool);
  6894. void SetEnabledRecursive(bool);
  6895. void SetInterceptNetworkUpdate(const String&, bool);
  6896. void SetPosition2D(float, float);
  6897. void SetScale(float);
  6898. void SetScale2D(float, float);
  6899. void SetTransform(const Vector3&, const Quaternion&);
  6900. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6901. void SetTransform(const Vector3&, const Quaternion&, float);
  6902. void SetTransform2D(const Vector2&, float);
  6903. void SetTransform2D(const Vector2&, float, const Vector2&);
  6904. void SetTransform2D(const Vector2&, float, float);
  6905. void SetWorldTransform(const Vector3&, const Quaternion&);
  6906. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6907. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6908. void SetWorldTransform2D(const Vector2&, float);
  6909. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6910. void SetWorldTransform2D(const Vector2&, float, float);
  6911. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6912. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6913. Vector3 WorldToLocal(const Vector3&) const;
  6914. Vector3 WorldToLocal(const Vector4&) const;
  6915. Vector2 WorldToLocal2D(const Vector2&) const;
  6916. void Yaw(float, TransformSpace = TS_LOCAL);
  6917. // Properties:
  6918. bool animationEnabled;
  6919. /* readonly */
  6920. Array<Variant> attributeDefaults;
  6921. /* readonly */
  6922. Array<AttributeInfo> attributeInfos;
  6923. Array<Variant> attributes;
  6924. /* readonly */
  6925. String category;
  6926. /* readonly */
  6927. Array<Node> children;
  6928. /* readonly */
  6929. Array<Component> components;
  6930. Vector3 direction;
  6931. bool enabled;
  6932. /* readonly */
  6933. bool enabledSelf;
  6934. /* readonly */
  6935. uint id;
  6936. String name;
  6937. /* readonly */
  6938. uint numAllChildren;
  6939. /* readonly */
  6940. uint numAttributes;
  6941. /* readonly */
  6942. uint numChildren;
  6943. /* readonly */
  6944. uint numComponents;
  6945. ObjectAnimation objectAnimation;
  6946. Connection owner;
  6947. Node parent;
  6948. Vector3 position;
  6949. Vector2 position2D;
  6950. /* readonly */
  6951. int refs;
  6952. /* readonly */
  6953. Vector3 right;
  6954. Quaternion rotation;
  6955. float rotation2D;
  6956. Vector3 scale;
  6957. Vector2 scale2D;
  6958. /* readonly */
  6959. Scene scene;
  6960. /* readonly */
  6961. ScriptObject scriptObject;
  6962. /* readonly */
  6963. Array<String> tags;
  6964. bool temporary;
  6965. /* readonly */
  6966. Matrix3x4 transform;
  6967. /* readonly */
  6968. StringHash type;
  6969. /* readonly */
  6970. String typeName;
  6971. /* readonly */
  6972. Vector3 up;
  6973. /* readonly */
  6974. VariantMap vars;
  6975. /* readonly */
  6976. int weakRefs;
  6977. Vector3 worldDirection;
  6978. Vector3 worldPosition;
  6979. Vector2 worldPosition2D;
  6980. /* readonly */
  6981. Vector3 worldRight;
  6982. Quaternion worldRotation;
  6983. float worldRotation2D;
  6984. Vector3 worldScale;
  6985. Vector2 worldScale2D;
  6986. /* readonly */
  6987. Matrix3x4 worldTransform;
  6988. /* readonly */
  6989. Vector3 worldUp;
  6990. };
  6991. class Object
  6992. {
  6993. // Methods:
  6994. bool HasSubscribedToEvent(Object, const String&);
  6995. bool HasSubscribedToEvent(const String&);
  6996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6997. // Properties:
  6998. /* readonly */
  6999. String category;
  7000. /* readonly */
  7001. int refs;
  7002. /* readonly */
  7003. StringHash type;
  7004. /* readonly */
  7005. String typeName;
  7006. /* readonly */
  7007. int weakRefs;
  7008. };
  7009. class ObjectAnimation
  7010. {
  7011. // Methods:
  7012. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7013. ValueAnimation GetAttributeAnimation(const String&) const;
  7014. float GetAttributeAnimationSpeed(const String&) const;
  7015. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7016. bool HasSubscribedToEvent(Object, const String&);
  7017. bool HasSubscribedToEvent(const String&);
  7018. bool Load(File);
  7019. bool Load(VectorBuffer&);
  7020. void RemoveAttributeAnimation(ValueAnimation);
  7021. void RemoveAttributeAnimation(const String&);
  7022. bool Save(File) const;
  7023. bool Save(VectorBuffer&) const;
  7024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7025. // Properties:
  7026. /* readonly */
  7027. Array<Variant> attributeAnimations;
  7028. /* readonly */
  7029. String category;
  7030. /* readonly */
  7031. uint memoryUse;
  7032. String name;
  7033. /* readonly */
  7034. int refs;
  7035. /* readonly */
  7036. Array<Variant> speeds;
  7037. /* readonly */
  7038. StringHash type;
  7039. /* readonly */
  7040. String typeName;
  7041. /* readonly */
  7042. uint useTimer;
  7043. /* readonly */
  7044. int weakRefs;
  7045. /* readonly */
  7046. Array<Variant> wrapModes;
  7047. };
  7048. class Obstacle
  7049. {
  7050. // Methods:
  7051. void ApplyAttributes();
  7052. void DrawDebugGeometry(DebugRenderer, bool);
  7053. void DrawDebugGeometry(bool);
  7054. Variant GetAttribute(const String&) const;
  7055. ValueAnimation GetAttributeAnimation(const String&) const;
  7056. float GetAttributeAnimationSpeed(const String&) const;
  7057. float GetAttributeAnimationTime(const String&) const;
  7058. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7059. Variant GetAttributeDefault(const String&) const;
  7060. bool GetInterceptNetworkUpdate(const String&) const;
  7061. bool HasSubscribedToEvent(Object, const String&);
  7062. bool HasSubscribedToEvent(const String&);
  7063. bool Load(File, bool = false);
  7064. bool Load(VectorBuffer&, bool = false);
  7065. bool LoadJSON(const JSONValue&, bool = false);
  7066. bool LoadXML(const XMLElement&, bool = false);
  7067. void MarkNetworkUpdate() const;
  7068. void Remove();
  7069. void RemoveAttributeAnimation(const String&);
  7070. void RemoveInstanceDefault();
  7071. void RemoveObjectAnimation();
  7072. void ResetToDefault();
  7073. bool Save(File) const;
  7074. bool Save(VectorBuffer&) const;
  7075. bool SaveJSON(JSONValue&) const;
  7076. bool SaveXML(XMLElement&) const;
  7077. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7078. void SetAnimationTime(float);
  7079. bool SetAttribute(const String&, const Variant&);
  7080. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7081. void SetAttributeAnimationSpeed(const String&, float);
  7082. void SetAttributeAnimationTime(const String&, float);
  7083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7084. void SetInterceptNetworkUpdate(const String&, bool);
  7085. // Properties:
  7086. bool animationEnabled;
  7087. /* readonly */
  7088. Array<Variant> attributeDefaults;
  7089. /* readonly */
  7090. Array<AttributeInfo> attributeInfos;
  7091. Array<Variant> attributes;
  7092. /* readonly */
  7093. String category;
  7094. bool enabled;
  7095. /* readonly */
  7096. bool enabledEffective;
  7097. float height;
  7098. /* readonly */
  7099. uint id;
  7100. /* readonly */
  7101. Node node;
  7102. /* readonly */
  7103. uint numAttributes;
  7104. ObjectAnimation objectAnimation;
  7105. /* readonly */
  7106. uint obstacleId;
  7107. float radius;
  7108. /* readonly */
  7109. int refs;
  7110. bool temporary;
  7111. /* readonly */
  7112. StringHash type;
  7113. /* readonly */
  7114. String typeName;
  7115. /* readonly */
  7116. int weakRefs;
  7117. };
  7118. class Octree
  7119. {
  7120. // Methods:
  7121. void AddManualDrawable(Drawable);
  7122. void ApplyAttributes();
  7123. void DrawDebugGeometry(DebugRenderer, bool);
  7124. void DrawDebugGeometry(bool) const;
  7125. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7126. Variant GetAttribute(const String&) const;
  7127. ValueAnimation GetAttributeAnimation(const String&) const;
  7128. float GetAttributeAnimationSpeed(const String&) const;
  7129. float GetAttributeAnimationTime(const String&) const;
  7130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7131. Variant GetAttributeDefault(const String&) const;
  7132. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7133. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7134. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7135. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7136. bool GetInterceptNetworkUpdate(const String&) const;
  7137. bool HasSubscribedToEvent(Object, const String&);
  7138. bool HasSubscribedToEvent(const String&);
  7139. bool Load(File, bool = false);
  7140. bool Load(VectorBuffer&, bool = false);
  7141. bool LoadJSON(const JSONValue&, bool = false);
  7142. bool LoadXML(const XMLElement&, bool = false);
  7143. void MarkNetworkUpdate() const;
  7144. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7145. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7146. void Remove();
  7147. void RemoveAttributeAnimation(const String&);
  7148. void RemoveInstanceDefault();
  7149. void RemoveManualDrawable(Drawable);
  7150. void RemoveObjectAnimation();
  7151. void ResetToDefault();
  7152. bool Save(File) const;
  7153. bool Save(VectorBuffer&) const;
  7154. bool SaveJSON(JSONValue&) const;
  7155. bool SaveXML(XMLElement&) const;
  7156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7157. void SetAnimationTime(float);
  7158. bool SetAttribute(const String&, const Variant&);
  7159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7160. void SetAttributeAnimationSpeed(const String&, float);
  7161. void SetAttributeAnimationTime(const String&, float);
  7162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7163. void SetInterceptNetworkUpdate(const String&, bool);
  7164. void SetSize(const BoundingBox&, uint);
  7165. // Properties:
  7166. bool animationEnabled;
  7167. /* readonly */
  7168. Array<Variant> attributeDefaults;
  7169. /* readonly */
  7170. Array<AttributeInfo> attributeInfos;
  7171. Array<Variant> attributes;
  7172. /* readonly */
  7173. String category;
  7174. bool enabled;
  7175. /* readonly */
  7176. bool enabledEffective;
  7177. /* readonly */
  7178. uint id;
  7179. /* readonly */
  7180. Node node;
  7181. /* readonly */
  7182. uint numAttributes;
  7183. /* readonly */
  7184. uint numLevels;
  7185. ObjectAnimation objectAnimation;
  7186. /* readonly */
  7187. int refs;
  7188. bool temporary;
  7189. /* readonly */
  7190. StringHash type;
  7191. /* readonly */
  7192. String typeName;
  7193. /* readonly */
  7194. int weakRefs;
  7195. /* readonly */
  7196. BoundingBox worldBoundingBox;
  7197. };
  7198. class OffMeshConnection
  7199. {
  7200. // Methods:
  7201. void ApplyAttributes();
  7202. void DrawDebugGeometry(DebugRenderer, bool);
  7203. Variant GetAttribute(const String&) const;
  7204. ValueAnimation GetAttributeAnimation(const String&) const;
  7205. float GetAttributeAnimationSpeed(const String&) const;
  7206. float GetAttributeAnimationTime(const String&) const;
  7207. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7208. Variant GetAttributeDefault(const String&) const;
  7209. bool GetInterceptNetworkUpdate(const String&) const;
  7210. bool HasSubscribedToEvent(Object, const String&);
  7211. bool HasSubscribedToEvent(const String&);
  7212. bool Load(File, bool = false);
  7213. bool Load(VectorBuffer&, bool = false);
  7214. bool LoadJSON(const JSONValue&, bool = false);
  7215. bool LoadXML(const XMLElement&, bool = false);
  7216. void MarkNetworkUpdate() const;
  7217. void Remove();
  7218. void RemoveAttributeAnimation(const String&);
  7219. void RemoveInstanceDefault();
  7220. void RemoveObjectAnimation();
  7221. void ResetToDefault();
  7222. bool Save(File) const;
  7223. bool Save(VectorBuffer&) const;
  7224. bool SaveJSON(JSONValue&) const;
  7225. bool SaveXML(XMLElement&) const;
  7226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7227. void SetAnimationTime(float);
  7228. bool SetAttribute(const String&, const Variant&);
  7229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7230. void SetAttributeAnimationSpeed(const String&, float);
  7231. void SetAttributeAnimationTime(const String&, float);
  7232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7233. void SetInterceptNetworkUpdate(const String&, bool);
  7234. // Properties:
  7235. bool animationEnabled;
  7236. uint areaID;
  7237. /* readonly */
  7238. Array<Variant> attributeDefaults;
  7239. /* readonly */
  7240. Array<AttributeInfo> attributeInfos;
  7241. Array<Variant> attributes;
  7242. bool bidirectional;
  7243. /* readonly */
  7244. String category;
  7245. bool enabled;
  7246. /* readonly */
  7247. bool enabledEffective;
  7248. Node endPoint;
  7249. /* readonly */
  7250. uint id;
  7251. uint mask;
  7252. /* readonly */
  7253. Node node;
  7254. /* readonly */
  7255. uint numAttributes;
  7256. ObjectAnimation objectAnimation;
  7257. float radius;
  7258. /* readonly */
  7259. int refs;
  7260. bool temporary;
  7261. /* readonly */
  7262. StringHash type;
  7263. /* readonly */
  7264. String typeName;
  7265. /* readonly */
  7266. int weakRefs;
  7267. };
  7268. class PackageFile
  7269. {
  7270. // Methods:
  7271. bool Exists(const String&) const;
  7272. Array<String> GetEntryNames() const;
  7273. bool HasSubscribedToEvent(Object, const String&);
  7274. bool HasSubscribedToEvent(const String&);
  7275. bool Open(const String&, uint = 0) const;
  7276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7277. bool compressed() const;
  7278. // Properties:
  7279. /* readonly */
  7280. String category;
  7281. /* readonly */
  7282. uint checksum;
  7283. /* readonly */
  7284. String name;
  7285. /* readonly */
  7286. uint numFiles;
  7287. /* readonly */
  7288. int refs;
  7289. /* readonly */
  7290. uint totalSize;
  7291. /* readonly */
  7292. StringHash type;
  7293. /* readonly */
  7294. String typeName;
  7295. /* readonly */
  7296. int weakRefs;
  7297. };
  7298. class ParticleEffect
  7299. {
  7300. // Methods:
  7301. void AddColorFrame(ColorFrame);
  7302. void AddColorTime(Color&, float);
  7303. void AddTextureFrame(TextureFrame);
  7304. void AddTextureTime(Rect&, float);
  7305. ColorFrame GetColorFrame(uint) const;
  7306. TextureFrame GetTextureFrame(uint) const;
  7307. bool HasSubscribedToEvent(Object, const String&);
  7308. bool HasSubscribedToEvent(const String&);
  7309. bool Load(File);
  7310. bool Load(VectorBuffer&);
  7311. bool Load(const XMLElement&);
  7312. void RemoveColorFrame(uint);
  7313. void RemoveTextureFrame(uint);
  7314. bool Save(File) const;
  7315. bool Save(VectorBuffer&) const;
  7316. bool Save(XMLElement&) const;
  7317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7318. void SetColorFrame(uint, ColorFrame);
  7319. void SetTextureFrame(uint, TextureFrame);
  7320. void SortColorFrames();
  7321. void SortTextureFrames();
  7322. // Properties:
  7323. float activeTime;
  7324. float animationLodBias;
  7325. /* readonly */
  7326. String category;
  7327. Vector3 constantForce;
  7328. float dampingForce;
  7329. Vector3 emitterSize;
  7330. EmitterType emitterType;
  7331. FaceCameraMode faceCameraMode;
  7332. float inactiveTime;
  7333. Material material;
  7334. Vector3 maxDirection;
  7335. float maxEmissionRate;
  7336. Vector2 maxParticleSize;
  7337. float maxRotation;
  7338. float maxRotationSpeed;
  7339. float maxTimeToLive;
  7340. float maxVelocity;
  7341. /* readonly */
  7342. uint memoryUse;
  7343. Vector3 minDirection;
  7344. float minEmissionRate;
  7345. Vector2 minParticleSize;
  7346. float minRotation;
  7347. float minRotationSpeed;
  7348. float minTimeToLive;
  7349. float minVelocity;
  7350. String name;
  7351. uint numColorFrames;
  7352. uint numParticles;
  7353. uint numTextureFrames;
  7354. /* readonly */
  7355. int refs;
  7356. bool relative;
  7357. bool scaled;
  7358. float sizeAdd;
  7359. float sizeMul;
  7360. bool sorted;
  7361. /* readonly */
  7362. StringHash type;
  7363. /* readonly */
  7364. String typeName;
  7365. bool updateInvisible;
  7366. /* readonly */
  7367. uint useTimer;
  7368. /* readonly */
  7369. int weakRefs;
  7370. };
  7371. class ParticleEffect2D
  7372. {
  7373. // Methods:
  7374. bool HasSubscribedToEvent(Object, const String&);
  7375. bool HasSubscribedToEvent(const String&);
  7376. bool Load(File);
  7377. bool Load(VectorBuffer&);
  7378. bool Save(File) const;
  7379. bool Save(VectorBuffer&) const;
  7380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7381. // Properties:
  7382. /* readonly */
  7383. String category;
  7384. /* readonly */
  7385. uint memoryUse;
  7386. String name;
  7387. /* readonly */
  7388. int refs;
  7389. /* readonly */
  7390. StringHash type;
  7391. /* readonly */
  7392. String typeName;
  7393. /* readonly */
  7394. uint useTimer;
  7395. /* readonly */
  7396. int weakRefs;
  7397. };
  7398. class ParticleEmitter
  7399. {
  7400. // Methods:
  7401. void ApplyAttributes();
  7402. void ApplyEffect();
  7403. void Commit();
  7404. void DrawDebugGeometry(DebugRenderer, bool);
  7405. Variant GetAttribute(const String&) const;
  7406. ValueAnimation GetAttributeAnimation(const String&) const;
  7407. float GetAttributeAnimationSpeed(const String&) const;
  7408. float GetAttributeAnimationTime(const String&) const;
  7409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7410. Variant GetAttributeDefault(const String&) const;
  7411. bool GetInterceptNetworkUpdate(const String&) const;
  7412. bool HasSubscribedToEvent(Object, const String&);
  7413. bool HasSubscribedToEvent(const String&);
  7414. bool IsInView(Camera) const;
  7415. bool Load(File, bool = false);
  7416. bool Load(VectorBuffer&, bool = false);
  7417. bool LoadJSON(const JSONValue&, bool = false);
  7418. bool LoadXML(const XMLElement&, bool = false);
  7419. void MarkNetworkUpdate() const;
  7420. void Remove();
  7421. void RemoveAllParticles();
  7422. void RemoveAttributeAnimation(const String&);
  7423. void RemoveInstanceDefault();
  7424. void RemoveObjectAnimation();
  7425. void Reset();
  7426. void ResetEmissionTimer();
  7427. void ResetToDefault();
  7428. bool Save(File) const;
  7429. bool Save(VectorBuffer&) const;
  7430. bool SaveJSON(JSONValue&) const;
  7431. bool SaveXML(XMLElement&) const;
  7432. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7433. void SetAnimationTime(float);
  7434. bool SetAttribute(const String&, const Variant&);
  7435. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7436. void SetAttributeAnimationSpeed(const String&, float);
  7437. void SetAttributeAnimationTime(const String&, float);
  7438. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7439. void SetInterceptNetworkUpdate(const String&, bool);
  7440. // Properties:
  7441. bool animationEnabled;
  7442. float animationLodBias;
  7443. /* readonly */
  7444. Array<Variant> attributeDefaults;
  7445. /* readonly */
  7446. Array<AttributeInfo> attributeInfos;
  7447. Array<Variant> attributes;
  7448. /* readonly */
  7449. Array<Billboard> billboards;
  7450. /* readonly */
  7451. BoundingBox boundingBox;
  7452. bool castShadows;
  7453. /* readonly */
  7454. String category;
  7455. float drawDistance;
  7456. ParticleEffect effect;
  7457. bool emitting;
  7458. bool enabled;
  7459. /* readonly */
  7460. bool enabledEffective;
  7461. FaceCameraMode faceCameraMode;
  7462. /* readonly */
  7463. uint id;
  7464. /* readonly */
  7465. bool inView;
  7466. uint lightMask;
  7467. float lodBias;
  7468. Material material;
  7469. uint maxLights;
  7470. /* readonly */
  7471. Node node;
  7472. /* readonly */
  7473. uint numAttributes;
  7474. uint numBillboards;
  7475. uint numParticles;
  7476. ObjectAnimation objectAnimation;
  7477. bool occludee;
  7478. bool occluder;
  7479. /* readonly */
  7480. int refs;
  7481. bool relative;
  7482. bool scaled;
  7483. bool serializeParticles;
  7484. float shadowDistance;
  7485. uint shadowMask;
  7486. bool sorted;
  7487. bool temporary;
  7488. /* readonly */
  7489. StringHash type;
  7490. /* readonly */
  7491. String typeName;
  7492. uint viewMask;
  7493. /* readonly */
  7494. int weakRefs;
  7495. /* readonly */
  7496. BoundingBox worldBoundingBox;
  7497. /* readonly */
  7498. Zone zone;
  7499. uint zoneMask;
  7500. };
  7501. class ParticleEmitter2D
  7502. {
  7503. // Methods:
  7504. void ApplyAttributes();
  7505. void DrawDebugGeometry(DebugRenderer, bool);
  7506. Variant GetAttribute(const String&) const;
  7507. ValueAnimation GetAttributeAnimation(const String&) const;
  7508. float GetAttributeAnimationSpeed(const String&) const;
  7509. float GetAttributeAnimationTime(const String&) const;
  7510. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7511. Variant GetAttributeDefault(const String&) const;
  7512. bool GetInterceptNetworkUpdate(const String&) const;
  7513. bool HasSubscribedToEvent(Object, const String&);
  7514. bool HasSubscribedToEvent(const String&);
  7515. bool IsInView(Camera) const;
  7516. bool Load(File, bool = false);
  7517. bool Load(VectorBuffer&, bool = false);
  7518. bool LoadJSON(const JSONValue&, bool = false);
  7519. bool LoadXML(const XMLElement&, bool = false);
  7520. void MarkNetworkUpdate() const;
  7521. void Remove();
  7522. void RemoveAttributeAnimation(const String&);
  7523. void RemoveInstanceDefault();
  7524. void RemoveObjectAnimation();
  7525. void ResetToDefault();
  7526. bool Save(File) const;
  7527. bool Save(VectorBuffer&) const;
  7528. bool SaveJSON(JSONValue&) const;
  7529. bool SaveXML(XMLElement&) const;
  7530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7531. void SetAnimationTime(float);
  7532. bool SetAttribute(const String&, const Variant&);
  7533. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7534. void SetAttributeAnimationSpeed(const String&, float);
  7535. void SetAttributeAnimationTime(const String&, float);
  7536. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7537. void SetInterceptNetworkUpdate(const String&, bool);
  7538. // Properties:
  7539. bool animationEnabled;
  7540. /* readonly */
  7541. Array<Variant> attributeDefaults;
  7542. /* readonly */
  7543. Array<AttributeInfo> attributeInfos;
  7544. Array<Variant> attributes;
  7545. BlendMode blendMode;
  7546. /* readonly */
  7547. BoundingBox boundingBox;
  7548. bool castShadows;
  7549. /* readonly */
  7550. String category;
  7551. float drawDistance;
  7552. ParticleEffect2D effect;
  7553. bool enabled;
  7554. /* readonly */
  7555. bool enabledEffective;
  7556. /* readonly */
  7557. uint id;
  7558. /* readonly */
  7559. bool inView;
  7560. int layer;
  7561. uint lightMask;
  7562. float lodBias;
  7563. uint maxLights;
  7564. /* readonly */
  7565. Node node;
  7566. /* readonly */
  7567. uint numAttributes;
  7568. ObjectAnimation objectAnimation;
  7569. bool occludee;
  7570. bool occluder;
  7571. int orderInLayer;
  7572. /* readonly */
  7573. int refs;
  7574. float shadowDistance;
  7575. uint shadowMask;
  7576. Sprite2D sprite;
  7577. bool temporary;
  7578. /* readonly */
  7579. StringHash type;
  7580. /* readonly */
  7581. String typeName;
  7582. uint viewMask;
  7583. /* readonly */
  7584. int weakRefs;
  7585. /* readonly */
  7586. BoundingBox worldBoundingBox;
  7587. uint zoneMask;
  7588. };
  7589. class Pass
  7590. {
  7591. // Properties:
  7592. bool alphaMask;
  7593. BlendMode blendMode;
  7594. CompareMode depthTestMode;
  7595. bool depthWrite;
  7596. bool desktop;
  7597. PassLightingMode lightingMode;
  7598. String pixelShader;
  7599. String pixelShaderDefines;
  7600. /* readonly */
  7601. int refs;
  7602. String vertexShader;
  7603. String vertexShaderDefines;
  7604. /* readonly */
  7605. int weakRefs;
  7606. };
  7607. class PhysicsRaycastResult
  7608. {
  7609. // Properties:
  7610. /* readonly */
  7611. RigidBody body;
  7612. float distance;
  7613. float hitFraction;
  7614. Vector3 normal;
  7615. Vector3 position;
  7616. };
  7617. class PhysicsRaycastResult2D
  7618. {
  7619. // Properties:
  7620. /* readonly */
  7621. RigidBody2D body;
  7622. float distance;
  7623. Vector2 normal;
  7624. Vector2 position;
  7625. };
  7626. class PhysicsWorld
  7627. {
  7628. // Methods:
  7629. void ApplyAttributes();
  7630. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7631. void DrawDebugGeometry(DebugRenderer, bool);
  7632. void DrawDebugGeometry(bool);
  7633. Variant GetAttribute(const String&) const;
  7634. ValueAnimation GetAttributeAnimation(const String&) const;
  7635. float GetAttributeAnimationSpeed(const String&) const;
  7636. float GetAttributeAnimationTime(const String&) const;
  7637. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7638. Variant GetAttributeDefault(const String&) const;
  7639. Array<RigidBody> GetCollidingBodies(RigidBody);
  7640. bool GetInterceptNetworkUpdate(const String&) const;
  7641. Array<RigidBody> GetRigidBodies(RigidBody);
  7642. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7643. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7644. bool HasSubscribedToEvent(Object, const String&);
  7645. bool HasSubscribedToEvent(const String&);
  7646. bool Load(File, bool = false);
  7647. bool Load(VectorBuffer&, bool = false);
  7648. bool LoadJSON(const JSONValue&, bool = false);
  7649. bool LoadXML(const XMLElement&, bool = false);
  7650. void MarkNetworkUpdate() const;
  7651. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7652. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7653. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7654. void Remove();
  7655. void RemoveAttributeAnimation(const String&);
  7656. void RemoveCachedGeometry(Model);
  7657. void RemoveInstanceDefault();
  7658. void RemoveObjectAnimation();
  7659. void ResetToDefault();
  7660. bool Save(File) const;
  7661. bool Save(VectorBuffer&) const;
  7662. bool SaveJSON(JSONValue&) const;
  7663. bool SaveXML(XMLElement&) const;
  7664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7665. void SetAnimationTime(float);
  7666. bool SetAttribute(const String&, const Variant&);
  7667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7668. void SetAttributeAnimationSpeed(const String&, float);
  7669. void SetAttributeAnimationTime(const String&, float);
  7670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7671. void SetInterceptNetworkUpdate(const String&, bool);
  7672. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7673. void Update(float);
  7674. void UpdateCollisions();
  7675. // Properties:
  7676. bool animationEnabled;
  7677. /* readonly */
  7678. Array<Variant> attributeDefaults;
  7679. /* readonly */
  7680. Array<AttributeInfo> attributeInfos;
  7681. Array<Variant> attributes;
  7682. /* readonly */
  7683. String category;
  7684. bool enabled;
  7685. /* readonly */
  7686. bool enabledEffective;
  7687. int fps;
  7688. Vector3 gravity;
  7689. /* readonly */
  7690. uint id;
  7691. bool internalEdge;
  7692. bool interpolation;
  7693. int maxSubSteps;
  7694. /* readonly */
  7695. Node node;
  7696. /* readonly */
  7697. uint numAttributes;
  7698. int numIterations;
  7699. ObjectAnimation objectAnimation;
  7700. /* readonly */
  7701. int refs;
  7702. bool splitImpulse;
  7703. bool temporary;
  7704. /* readonly */
  7705. StringHash type;
  7706. /* readonly */
  7707. String typeName;
  7708. bool updateEnabled;
  7709. /* readonly */
  7710. int weakRefs;
  7711. };
  7712. class PhysicsWorld2D
  7713. {
  7714. // Methods:
  7715. void ApplyAttributes();
  7716. void DrawDebugGeometry() const;
  7717. void DrawDebugGeometry(DebugRenderer, bool);
  7718. Variant GetAttribute(const String&) const;
  7719. ValueAnimation GetAttributeAnimation(const String&) const;
  7720. float GetAttributeAnimationSpeed(const String&) const;
  7721. float GetAttributeAnimationTime(const String&) const;
  7722. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7723. Variant GetAttributeDefault(const String&) const;
  7724. bool GetInterceptNetworkUpdate(const String&) const;
  7725. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7726. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7727. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7728. bool HasSubscribedToEvent(Object, const String&);
  7729. bool HasSubscribedToEvent(const String&);
  7730. bool Load(File, bool = false);
  7731. bool Load(VectorBuffer&, bool = false);
  7732. bool LoadJSON(const JSONValue&, bool = false);
  7733. bool LoadXML(const XMLElement&, bool = false);
  7734. void MarkNetworkUpdate() const;
  7735. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7736. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7737. void Remove();
  7738. void RemoveAttributeAnimation(const String&);
  7739. void RemoveInstanceDefault();
  7740. void RemoveObjectAnimation();
  7741. void ResetToDefault();
  7742. bool Save(File) const;
  7743. bool Save(VectorBuffer&) const;
  7744. bool SaveJSON(JSONValue&) const;
  7745. bool SaveXML(XMLElement&) const;
  7746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7747. void SetAnimationTime(float);
  7748. bool SetAttribute(const String&, const Variant&);
  7749. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7750. void SetAttributeAnimationSpeed(const String&, float);
  7751. void SetAttributeAnimationTime(const String&, float);
  7752. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7753. void SetInterceptNetworkUpdate(const String&, bool);
  7754. // Properties:
  7755. bool allowSleeping;
  7756. bool animationEnabled;
  7757. /* readonly */
  7758. Array<Variant> attributeDefaults;
  7759. /* readonly */
  7760. Array<AttributeInfo> attributeInfos;
  7761. Array<Variant> attributes;
  7762. bool autoClearForces;
  7763. /* readonly */
  7764. String category;
  7765. bool continuousPhysics;
  7766. bool drawAabb;
  7767. bool drawCenterOfMass;
  7768. bool drawJoint;
  7769. bool drawPair;
  7770. bool drawShape;
  7771. bool enabled;
  7772. /* readonly */
  7773. bool enabledEffective;
  7774. Vector2 gravity;
  7775. /* readonly */
  7776. uint id;
  7777. /* readonly */
  7778. Node node;
  7779. /* readonly */
  7780. uint numAttributes;
  7781. ObjectAnimation objectAnimation;
  7782. uint positionIterations;
  7783. /* readonly */
  7784. int refs;
  7785. bool subStepping;
  7786. bool temporary;
  7787. /* readonly */
  7788. StringHash type;
  7789. /* readonly */
  7790. String typeName;
  7791. bool updateEnabled;
  7792. uint velocityIterations;
  7793. bool warmStarting;
  7794. /* readonly */
  7795. int weakRefs;
  7796. };
  7797. class Plane
  7798. {
  7799. // Methods:
  7800. void Define(const Vector3&, const Vector3&);
  7801. void Define(const Vector3&, const Vector3&, const Vector3&);
  7802. void Define(const Vector4&);
  7803. float Distance(const Vector3&) const;
  7804. Vector3 Project(const Vector3&) const;
  7805. Vector3 Reflect(const Vector3&) const;
  7806. Vector4 ToVector4() const;
  7807. void Transform(const Matrix3&);
  7808. void Transform(const Matrix3x4&);
  7809. void Transform(const Matrix4&);
  7810. Plane Transformed(const Matrix3&) const;
  7811. Plane Transformed(const Matrix3x4&) const;
  7812. Plane Transformed(const Matrix4&) const;
  7813. // Properties:
  7814. Vector3 absNormal;
  7815. float d;
  7816. Vector3 normal;
  7817. /* readonly */
  7818. Matrix3x4 reflectionMatrix;
  7819. };
  7820. class Polyhedron
  7821. {
  7822. // Methods:
  7823. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7824. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7825. void AddFace(const Array<Vector3>);
  7826. void Clear();
  7827. void Clip(const BoundingBox&);
  7828. void Clip(const Frustum&);
  7829. void Define(const BoundingBox&);
  7830. void Define(const Frustum&);
  7831. void Transform(const Matrix3&);
  7832. void Transform(const Matrix3x4&);
  7833. Polyhedron Transformed(const Matrix3&) const;
  7834. Polyhedron Transformed(const Matrix3x4&) const;
  7835. // Properties:
  7836. /* readonly */
  7837. Array<Array<Vector3>> face;
  7838. /* readonly */
  7839. uint numFaces;
  7840. };
  7841. class PropertySet2D
  7842. {
  7843. // Methods:
  7844. bool HasProperty(const String&) const;
  7845. const String& GetProperty(const String&) const;
  7846. // Properties:
  7847. /* readonly */
  7848. int refs;
  7849. /* readonly */
  7850. int weakRefs;
  7851. };
  7852. class Quaternion
  7853. {
  7854. // Methods:
  7855. Quaternion Conjugate() const;
  7856. float DotProduct(const Quaternion&) const;
  7857. bool Equals(const Quaternion&) const;
  7858. void FromAngleAxis(float, const Vector3&);
  7859. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7860. void FromEulerAngles(float, float, float);
  7861. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7862. void FromRotationMatrix(const Matrix3&);
  7863. void FromRotationTo(const Vector3&, const Vector3&);
  7864. Quaternion Inverse() const;
  7865. bool IsNaN() const;
  7866. float LengthSquared() const;
  7867. Quaternion Nlerp(Quaternion, float, bool) const;
  7868. void Normalize();
  7869. Quaternion Normalized() const;
  7870. Quaternion Slerp(Quaternion, float) const;
  7871. String ToString() const;
  7872. // Properties:
  7873. /* readonly */
  7874. Vector3 eulerAngles;
  7875. /* readonly */
  7876. float pitch;
  7877. /* readonly */
  7878. float roll;
  7879. /* readonly */
  7880. Matrix3 rotationMatrix;
  7881. float w;
  7882. float x;
  7883. float y;
  7884. /* readonly */
  7885. float yaw;
  7886. float z;
  7887. };
  7888. class Ray
  7889. {
  7890. // Methods:
  7891. Vector3 ClosestPoint(const Ray&) const;
  7892. void Define(const Vector3&, const Vector3&);
  7893. float Distance(const Vector3&) const;
  7894. float HitDistance(const BoundingBox&) const;
  7895. float HitDistance(const Frustum&, bool = true) const;
  7896. float HitDistance(const Plane&) const;
  7897. float HitDistance(const Sphere&) const;
  7898. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7899. Vector3 Project(const Vector3&) const;
  7900. Ray Transformed(const Matrix3x4&) const;
  7901. // Properties:
  7902. Vector3 direction;
  7903. Vector3 origin;
  7904. };
  7905. class RayQueryResult
  7906. {
  7907. // Properties:
  7908. float distance;
  7909. /* readonly */
  7910. Drawable drawable;
  7911. /* readonly */
  7912. Node node;
  7913. Vector3 normal;
  7914. Vector3 position;
  7915. uint subObject;
  7916. Vector2 textureUV;
  7917. };
  7918. class Rect
  7919. {
  7920. // Methods:
  7921. void Clear();
  7922. void Clip(const Rect&);
  7923. void Define(const Vector2&);
  7924. void Define(const Vector2&, const Vector2&);
  7925. bool Defined() const;
  7926. bool Equals(const Rect&) const;
  7927. Intersection IsInside(const Vector2&) const;
  7928. void Merge(const Rect&);
  7929. void Merge(const Vector2&);
  7930. Vector4 ToVector4() const;
  7931. // Properties:
  7932. float bottom;
  7933. /* readonly */
  7934. Vector2 center;
  7935. /* readonly */
  7936. Vector2 halfSize;
  7937. float left;
  7938. Vector2 max;
  7939. Vector2 min;
  7940. float right;
  7941. /* readonly */
  7942. Vector2 size;
  7943. float top;
  7944. };
  7945. class RefCounted
  7946. {
  7947. // Properties:
  7948. /* readonly */
  7949. int refs;
  7950. /* readonly */
  7951. int weakRefs;
  7952. };
  7953. class RenderPath
  7954. {
  7955. // Methods:
  7956. void AddCommand(const RenderPathCommand&);
  7957. void AddRenderTarget(const RenderTargetInfo&);
  7958. bool Append(XMLFile);
  7959. RenderPath Clone();
  7960. void InsertCommand(uint, const RenderPathCommand&);
  7961. bool Load(XMLFile);
  7962. void RemoveCommand(uint);
  7963. void RemoveCommands(const String&);
  7964. void RemoveRenderTarget(const String&);
  7965. void RemoveRenderTarget(uint);
  7966. void RemoveRenderTargts(const String&);
  7967. void SetEnabled(const String&, bool);
  7968. void ToggleEnabled(const String&);
  7969. // Properties:
  7970. Array<RenderPathCommand> commands;
  7971. /* readonly */
  7972. uint numCommands;
  7973. /* readonly */
  7974. uint numRenderTargets;
  7975. /* readonly */
  7976. int refs;
  7977. Array<RenderTargetInfo> renderTargets;
  7978. Array<Variant> shaderParameters;
  7979. /* readonly */
  7980. int weakRefs;
  7981. };
  7982. class RenderPathCommand
  7983. {
  7984. // Methods:
  7985. void RemoveShaderParameter(const String&);
  7986. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7987. // Properties:
  7988. BlendMode blendMode;
  7989. Color clearColor;
  7990. float clearDepth;
  7991. uint clearFlags;
  7992. uint clearStencil;
  7993. String depthStencilName;
  7994. bool enabled;
  7995. bool markToStencil;
  7996. String metadata;
  7997. uint numOutputs;
  7998. Array<CubeMapFace> outputFaces;
  7999. Array<String> outputNames;
  8000. String pass;
  8001. String pixelShaderDefines;
  8002. String pixelShaderName;
  8003. Array<Variant> shaderParameters;
  8004. RenderCommandSortMode sortMode;
  8005. String tag;
  8006. Array<String> textureNames;
  8007. RenderCommandType type;
  8008. bool useFogColor;
  8009. bool useLitBase;
  8010. bool vertexLights;
  8011. String vertexShaderDefines;
  8012. String vertexShaderName;
  8013. };
  8014. class RenderSurface
  8015. {
  8016. // Methods:
  8017. void QueueUpdate();
  8018. // Properties:
  8019. /* readonly */
  8020. int height;
  8021. RenderSurface linkedDepthStencil;
  8022. RenderSurface linkedRenderTarget;
  8023. uint numViewports;
  8024. /* readonly */
  8025. Texture parentTexture;
  8026. RenderSurfaceUpdateMode updateMode;
  8027. /* readonly */
  8028. TextureUsage usage;
  8029. Array<Viewport> viewports;
  8030. /* readonly */
  8031. int width;
  8032. };
  8033. class RenderTargetInfo
  8034. {
  8035. // Properties:
  8036. bool cubemap;
  8037. bool enabled;
  8038. bool filtered;
  8039. uint format;
  8040. String name;
  8041. bool persistent;
  8042. bool sRGB;
  8043. Vector2 size;
  8044. RenderTargetSizeMode sizeMode;
  8045. String tag;
  8046. };
  8047. class Renderer
  8048. {
  8049. // Methods:
  8050. void DrawDebugGeometry(bool) const;
  8051. bool HasSubscribedToEvent(Object, const String&);
  8052. bool HasSubscribedToEvent(const String&);
  8053. void ReloadShaders() const;
  8054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8055. void SetDefaultRenderPath(XMLFile);
  8056. void SetVSMShadowParameters(float, float);
  8057. // Properties:
  8058. /* readonly */
  8059. String category;
  8060. /* readonly */
  8061. Material defaultLightRamp;
  8062. /* readonly */
  8063. Material defaultLightSpot;
  8064. /* readonly */
  8065. Material defaultMaterial;
  8066. RenderPath defaultRenderPath;
  8067. /* readonly */
  8068. Zone defaultZone;
  8069. bool drawShadows;
  8070. bool dynamicInstancing;
  8071. bool hdrRendering;
  8072. int materialQuality;
  8073. int maxOccluderTriangles;
  8074. int maxShadowMaps;
  8075. int maxSortedInstances;
  8076. int minInstances;
  8077. float mobileShadowBiasAdd;
  8078. float mobileShadowBiasMul;
  8079. /* readonly */
  8080. uint numBatches;
  8081. /* readonly */
  8082. Array<uint> numGeometries;
  8083. /* readonly */
  8084. Array<uint> numLights;
  8085. /* readonly */
  8086. Array<uint> numOccluders;
  8087. /* readonly */
  8088. uint numPrimitives;
  8089. /* readonly */
  8090. Array<uint> numShadowMaps;
  8091. uint numViewports;
  8092. /* readonly */
  8093. uint numViews;
  8094. float occluderSizeThreshold;
  8095. int occlusionBufferSize;
  8096. /* readonly */
  8097. int refs;
  8098. bool reuseShadowMaps;
  8099. int shadowMapSize;
  8100. ShadowQuality shadowQuality;
  8101. float shadowSoftness;
  8102. bool specularLighting;
  8103. int textureAnisotropy;
  8104. TextureFilterMode textureFilterMode;
  8105. int textureQuality;
  8106. bool threadedOcclusion;
  8107. /* readonly */
  8108. StringHash type;
  8109. /* readonly */
  8110. String typeName;
  8111. Array<Viewport> viewports;
  8112. Vector2 vsmShadowParameters;
  8113. /* readonly */
  8114. int weakRefs;
  8115. };
  8116. class Resource
  8117. {
  8118. // Methods:
  8119. bool HasSubscribedToEvent(Object, const String&);
  8120. bool HasSubscribedToEvent(const String&);
  8121. bool Load(File);
  8122. bool Load(VectorBuffer&);
  8123. bool Save(File) const;
  8124. bool Save(VectorBuffer&) const;
  8125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8126. // Properties:
  8127. /* readonly */
  8128. String category;
  8129. /* readonly */
  8130. uint memoryUse;
  8131. String name;
  8132. /* readonly */
  8133. int refs;
  8134. /* readonly */
  8135. StringHash type;
  8136. /* readonly */
  8137. String typeName;
  8138. /* readonly */
  8139. uint useTimer;
  8140. /* readonly */
  8141. int weakRefs;
  8142. };
  8143. class ResourceCache
  8144. {
  8145. // Methods:
  8146. bool AddManualResource(Resource);
  8147. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8148. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8149. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8150. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8151. bool Exists(const String&) const;
  8152. Resource GetExistingResource(StringHash, const String&);
  8153. Resource GetExistingResource(const String&, const String&);
  8154. File GetFile(const String&);
  8155. String GetPreferredResourceDir(const String&) const;
  8156. Resource GetResource(StringHash, const String&, bool = true);
  8157. Resource GetResource(const String&, const String&, bool = true);
  8158. String GetResourceFileName(const String&) const;
  8159. bool HasSubscribedToEvent(Object, const String&);
  8160. bool HasSubscribedToEvent(const String&);
  8161. void ReleaseAllResources(bool = false);
  8162. void ReleaseResource(const String&, const String&, bool = false);
  8163. void ReleaseResources(StringHash, bool = false);
  8164. void ReleaseResources(const String&, bool = false);
  8165. void ReleaseResources(const String&, const String&, bool = false);
  8166. bool ReloadResource(Resource);
  8167. void ReloadResourceWithDependencies(const String&);
  8168. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8169. void RemovePackageFile(const String&, bool = true, bool = false);
  8170. void RemoveResourceDir(const String&);
  8171. String SanitateResourceDirName(const String&) const;
  8172. String SanitateResourceName(const String&) const;
  8173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8174. // Properties:
  8175. bool autoReloadResources;
  8176. /* readonly */
  8177. String category;
  8178. int finishBackgroundResourcesMs;
  8179. Array<uint64> memoryBudget;
  8180. /* readonly */
  8181. Array<uint64> memoryUse;
  8182. /* readonly */
  8183. uint numBackgroundLoadResources;
  8184. /* readonly */
  8185. Array<PackageFile> packageFiles;
  8186. /* readonly */
  8187. int refs;
  8188. /* readonly */
  8189. Array<String> resourceDirs;
  8190. bool returnFailedResources;
  8191. /* readonly */
  8192. bool seachPackagesFirst;
  8193. /* writeonly */
  8194. bool searchPackagesFirst;
  8195. /* readonly */
  8196. uint64 totalMemoryUse;
  8197. /* readonly */
  8198. StringHash type;
  8199. /* readonly */
  8200. String typeName;
  8201. /* readonly */
  8202. int weakRefs;
  8203. };
  8204. class ResourceRef
  8205. {
  8206. // Properties:
  8207. String name;
  8208. StringHash type;
  8209. };
  8210. class ResourceRefList
  8211. {
  8212. // Methods:
  8213. void Resize(uint);
  8214. // Properties:
  8215. /* readonly */
  8216. bool empty;
  8217. /* readonly */
  8218. uint length;
  8219. Array<String> names;
  8220. StringHash type;
  8221. };
  8222. class RigidBody
  8223. {
  8224. // Methods:
  8225. void Activate();
  8226. void ApplyAttributes();
  8227. void ApplyForce(const Vector3&);
  8228. void ApplyForce(const Vector3&, const Vector3&);
  8229. void ApplyImpulse(const Vector3&);
  8230. void ApplyImpulse(const Vector3&, const Vector3&);
  8231. void ApplyTorque(const Vector3&);
  8232. void ApplyTorqueImpulse(const Vector3&);
  8233. void DisableMassUpdate();
  8234. void DrawDebugGeometry(DebugRenderer, bool);
  8235. void EnableMassUpdate();
  8236. Variant GetAttribute(const String&) const;
  8237. ValueAnimation GetAttributeAnimation(const String&) const;
  8238. float GetAttributeAnimationSpeed(const String&) const;
  8239. float GetAttributeAnimationTime(const String&) const;
  8240. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8241. Variant GetAttributeDefault(const String&) const;
  8242. bool GetInterceptNetworkUpdate(const String&) const;
  8243. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8244. bool HasSubscribedToEvent(Object, const String&);
  8245. bool HasSubscribedToEvent(const String&);
  8246. bool Load(File, bool = false);
  8247. bool Load(VectorBuffer&, bool = false);
  8248. bool LoadJSON(const JSONValue&, bool = false);
  8249. bool LoadXML(const XMLElement&, bool = false);
  8250. void MarkNetworkUpdate() const;
  8251. void ReAddBodyToWorld();
  8252. void Remove();
  8253. void RemoveAttributeAnimation(const String&);
  8254. void RemoveInstanceDefault();
  8255. void RemoveObjectAnimation();
  8256. void ResetForces();
  8257. void ResetToDefault();
  8258. bool Save(File) const;
  8259. bool Save(VectorBuffer&) const;
  8260. bool SaveJSON(JSONValue&) const;
  8261. bool SaveXML(XMLElement&) const;
  8262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8263. void SetAnimationTime(float);
  8264. bool SetAttribute(const String&, const Variant&);
  8265. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8266. void SetAttributeAnimationSpeed(const String&, float);
  8267. void SetAttributeAnimationTime(const String&, float);
  8268. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8269. void SetCollisionLayerAndMask(uint, uint);
  8270. void SetInterceptNetworkUpdate(const String&, bool);
  8271. void SetTransform(const Vector3&, const Quaternion&);
  8272. // Properties:
  8273. /* readonly */
  8274. bool active;
  8275. float angularDamping;
  8276. Vector3 angularFactor;
  8277. float angularRestThreshold;
  8278. Vector3 angularVelocity;
  8279. bool animationEnabled;
  8280. Vector3 anisotropicFriction;
  8281. /* readonly */
  8282. Array<Variant> attributeDefaults;
  8283. /* readonly */
  8284. Array<AttributeInfo> attributeInfos;
  8285. Array<Variant> attributes;
  8286. /* readonly */
  8287. String category;
  8288. float ccdMotionThreshold;
  8289. float ccdRadius;
  8290. /* readonly */
  8291. Vector3 centerOfMass;
  8292. /* readonly */
  8293. Array<RigidBody> collidingBodies;
  8294. CollisionEventMode collisionEventMode;
  8295. uint collisionLayer;
  8296. uint collisionMask;
  8297. float contactProcessingThreshold;
  8298. bool enabled;
  8299. /* readonly */
  8300. bool enabledEffective;
  8301. float friction;
  8302. Vector3 gravityOverride;
  8303. /* readonly */
  8304. uint id;
  8305. bool kinematic;
  8306. float linearDamping;
  8307. Vector3 linearFactor;
  8308. float linearRestThreshold;
  8309. Vector3 linearVelocity;
  8310. float mass;
  8311. /* readonly */
  8312. Node node;
  8313. /* readonly */
  8314. uint numAttributes;
  8315. ObjectAnimation objectAnimation;
  8316. Vector3 position;
  8317. /* readonly */
  8318. int refs;
  8319. float restitution;
  8320. float rollingFriction;
  8321. Quaternion rotation;
  8322. bool temporary;
  8323. bool trigger;
  8324. /* readonly */
  8325. StringHash type;
  8326. /* readonly */
  8327. String typeName;
  8328. bool useGravity;
  8329. /* readonly */
  8330. int weakRefs;
  8331. };
  8332. class RigidBody2D
  8333. {
  8334. // Methods:
  8335. void ApplyAngularImpulse(float, bool);
  8336. void ApplyAttributes();
  8337. void ApplyForce(const Vector2&, const Vector2&, bool);
  8338. void ApplyForceToCenter(const Vector2&, bool);
  8339. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8340. void ApplyTorque(float, bool);
  8341. void DrawDebugGeometry(DebugRenderer, bool);
  8342. Variant GetAttribute(const String&) const;
  8343. ValueAnimation GetAttributeAnimation(const String&) const;
  8344. float GetAttributeAnimationSpeed(const String&) const;
  8345. float GetAttributeAnimationTime(const String&) const;
  8346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8347. Variant GetAttributeDefault(const String&) const;
  8348. bool GetInterceptNetworkUpdate(const String&) const;
  8349. bool HasSubscribedToEvent(Object, const String&);
  8350. bool HasSubscribedToEvent(const String&);
  8351. bool Load(File, bool = false);
  8352. bool Load(VectorBuffer&, bool = false);
  8353. bool LoadJSON(const JSONValue&, bool = false);
  8354. bool LoadXML(const XMLElement&, bool = false);
  8355. void MarkNetworkUpdate() const;
  8356. void Remove();
  8357. void RemoveAttributeAnimation(const String&);
  8358. void RemoveInstanceDefault();
  8359. void RemoveObjectAnimation();
  8360. void ResetToDefault();
  8361. bool Save(File) const;
  8362. bool Save(VectorBuffer&) const;
  8363. bool SaveJSON(JSONValue&) const;
  8364. bool SaveXML(XMLElement&) const;
  8365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8366. void SetAnimationTime(float);
  8367. bool SetAttribute(const String&, const Variant&);
  8368. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8369. void SetAttributeAnimationSpeed(const String&, float);
  8370. void SetAttributeAnimationTime(const String&, float);
  8371. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8372. void SetInterceptNetworkUpdate(const String&, bool);
  8373. // Properties:
  8374. bool allowSleep;
  8375. float angularDamping;
  8376. bool animationEnabled;
  8377. /* readonly */
  8378. Array<Variant> attributeDefaults;
  8379. /* readonly */
  8380. Array<AttributeInfo> attributeInfos;
  8381. Array<Variant> attributes;
  8382. bool awake;
  8383. BodyType2D bodyType;
  8384. bool bullet;
  8385. /* readonly */
  8386. String category;
  8387. bool enabled;
  8388. /* readonly */
  8389. bool enabledEffective;
  8390. bool fixedRotation;
  8391. float gravityScale;
  8392. /* readonly */
  8393. uint id;
  8394. float inertia;
  8395. float linearDamping;
  8396. Vector2 linearVelocity;
  8397. float mass;
  8398. Vector2 massCenter;
  8399. /* readonly */
  8400. Node node;
  8401. /* readonly */
  8402. uint numAttributes;
  8403. ObjectAnimation objectAnimation;
  8404. /* readonly */
  8405. int refs;
  8406. bool temporary;
  8407. /* readonly */
  8408. StringHash type;
  8409. /* readonly */
  8410. String typeName;
  8411. bool useFixtureMass;
  8412. /* readonly */
  8413. int weakRefs;
  8414. };
  8415. class Scene
  8416. {
  8417. // Methods:
  8418. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8419. void AddRequiredPackageFile(PackageFile);
  8420. void AddTag(const String&);
  8421. void AddTags(const String&, int8 = ';');
  8422. void ApplyAttributes();
  8423. void Clear(bool = true, bool = true);
  8424. void ClearRequiredPackageFiles();
  8425. Component CloneComponent(Component, CreateMode, uint = 0);
  8426. Component CloneComponent(Component, uint = 0);
  8427. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8428. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8429. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8430. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8431. Variant GetAttribute(const String&) const;
  8432. ValueAnimation GetAttributeAnimation(const String&) const;
  8433. float GetAttributeAnimationSpeed(const String&) const;
  8434. float GetAttributeAnimationTime(const String&) const;
  8435. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8436. Variant GetAttributeDefault(const String&) const;
  8437. Node GetChild(const String&, bool = false) const;
  8438. Array<Node> GetChildren(bool = false) const;
  8439. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8440. Array<Node> GetChildrenWithScript(bool = false) const;
  8441. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8442. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8443. Component GetComponent(const String&, bool = false) const;
  8444. Component GetComponent(uint) const;
  8445. Array<Component> GetComponents() const;
  8446. Array<Component> GetComponents(const String&, bool = false) const;
  8447. bool GetInterceptNetworkUpdate(const String&) const;
  8448. Node GetNode(uint) const;
  8449. Array<Node> GetNodesWithTag(const String&) const;
  8450. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8451. Component GetParentComponent(const String&, bool = false) const;
  8452. ScriptObject GetScriptObject() const;
  8453. ScriptObject GetScriptObject(const String&) const;
  8454. bool HasComponent(const String&) const;
  8455. bool HasSubscribedToEvent(Object, const String&);
  8456. bool HasSubscribedToEvent(const String&);
  8457. bool HasTag(const String&);
  8458. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8459. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8460. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8461. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8462. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8463. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8464. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8465. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8466. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8467. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8468. bool Load(File, bool = false);
  8469. bool Load(VectorBuffer&, bool = false);
  8470. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8471. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8472. bool LoadJSON(File);
  8473. bool LoadJSON(VectorBuffer&);
  8474. bool LoadJSON(const JSONValue&, bool = false);
  8475. bool LoadXML(File);
  8476. bool LoadXML(VectorBuffer&);
  8477. bool LoadXML(const XMLElement&, bool = false);
  8478. Vector3 LocalToWorld(const Vector3&) const;
  8479. Vector3 LocalToWorld(const Vector4&) const;
  8480. Vector2 LocalToWorld2D(const Vector2&) const;
  8481. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8482. void MarkNetworkUpdate() const;
  8483. void Pitch(float, TransformSpace = TS_LOCAL);
  8484. void RegisterVar(const String&);
  8485. void Remove();
  8486. void RemoveAllChildren();
  8487. void RemoveAllComponents();
  8488. void RemoveAllTags();
  8489. void RemoveAttributeAnimation(const String&);
  8490. void RemoveChild(Node);
  8491. void RemoveChildren(bool, bool, bool);
  8492. void RemoveComponent(Component);
  8493. void RemoveComponent(const String&);
  8494. void RemoveComponents(bool, bool);
  8495. void RemoveComponents(const String&);
  8496. void RemoveInstanceDefault();
  8497. void RemoveObjectAnimation();
  8498. bool RemoveTag(const String&);
  8499. void ResetToDefault();
  8500. void Roll(float, TransformSpace = TS_LOCAL);
  8501. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8502. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8503. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8504. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8505. bool Save(File) const;
  8506. bool Save(VectorBuffer&) const;
  8507. bool SaveJSON(File, const String& = "\t");
  8508. bool SaveJSON(JSONValue&) const;
  8509. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8510. bool SaveXML(File, const String& = "\t");
  8511. bool SaveXML(VectorBuffer&, const String& = "\t");
  8512. bool SaveXML(XMLElement&) const;
  8513. void Scale(const Vector3&);
  8514. void Scale(float);
  8515. void Scale2D(const Vector2&);
  8516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8517. void SetAnimationTime(float);
  8518. bool SetAttribute(const String&, const Variant&);
  8519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8520. void SetAttributeAnimationSpeed(const String&, float);
  8521. void SetAttributeAnimationTime(const String&, float);
  8522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8523. void SetInterceptNetworkUpdate(const String&, bool);
  8524. void SetPosition2D(float, float);
  8525. void SetScale(float);
  8526. void SetScale2D(float, float);
  8527. void SetTransform(const Vector3&, const Quaternion&);
  8528. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8529. void SetTransform(const Vector3&, const Quaternion&, float);
  8530. void SetTransform2D(const Vector2&, float);
  8531. void SetTransform2D(const Vector2&, float, const Vector2&);
  8532. void SetTransform2D(const Vector2&, float, float);
  8533. void SetWorldTransform(const Vector3&, const Quaternion&);
  8534. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8535. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8536. void SetWorldTransform2D(const Vector2&, float);
  8537. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8538. void SetWorldTransform2D(const Vector2&, float, float);
  8539. void StopAsyncLoading();
  8540. const String& GetVarName(StringHash) const;
  8541. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8542. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8543. void UnregisterAllVars(const String&);
  8544. void UnregisterVar(const String&);
  8545. void Update(float);
  8546. Vector3 WorldToLocal(const Vector3&) const;
  8547. Vector3 WorldToLocal(const Vector4&) const;
  8548. Vector2 WorldToLocal2D(const Vector2&) const;
  8549. void Yaw(float, TransformSpace = TS_LOCAL);
  8550. // Properties:
  8551. bool animationEnabled;
  8552. /* readonly */
  8553. LoadMode asyncLoadMode;
  8554. /* readonly */
  8555. bool asyncLoading;
  8556. int asyncLoadingMs;
  8557. /* readonly */
  8558. float asyncProgress;
  8559. /* readonly */
  8560. Array<Variant> attributeDefaults;
  8561. /* readonly */
  8562. Array<AttributeInfo> attributeInfos;
  8563. Array<Variant> attributes;
  8564. /* readonly */
  8565. String category;
  8566. /* readonly */
  8567. uint checksum;
  8568. /* readonly */
  8569. Array<Node> children;
  8570. /* readonly */
  8571. Array<Component> components;
  8572. /* readonly */
  8573. DebugRenderer debugRenderer;
  8574. Vector3 direction;
  8575. float elapsedTime;
  8576. /* readonly */
  8577. String fileName;
  8578. /* readonly */
  8579. uint id;
  8580. String name;
  8581. /* readonly */
  8582. uint numAllChildren;
  8583. /* readonly */
  8584. uint numAttributes;
  8585. /* readonly */
  8586. uint numChildren;
  8587. /* readonly */
  8588. uint numComponents;
  8589. ObjectAnimation objectAnimation;
  8590. /* readonly */
  8591. Octree octree;
  8592. Node parent;
  8593. /* readonly */
  8594. PhysicsWorld physicsWorld;
  8595. /* readonly */
  8596. PhysicsWorld2D physicsWorld2D;
  8597. Vector3 position;
  8598. Vector2 position2D;
  8599. /* readonly */
  8600. int refs;
  8601. /* readonly */
  8602. Array<PackageFile> requiredPackageFiles;
  8603. /* readonly */
  8604. Vector3 right;
  8605. Quaternion rotation;
  8606. float rotation2D;
  8607. Vector3 scale;
  8608. Vector2 scale2D;
  8609. /* readonly */
  8610. ScriptObject scriptObject;
  8611. float smoothingConstant;
  8612. float snapThreshold;
  8613. /* readonly */
  8614. Array<String> tags;
  8615. bool temporary;
  8616. float timeScale;
  8617. /* readonly */
  8618. Matrix3x4 transform;
  8619. /* readonly */
  8620. StringHash type;
  8621. /* readonly */
  8622. String typeName;
  8623. /* readonly */
  8624. Vector3 up;
  8625. bool updateEnabled;
  8626. /* readonly */
  8627. VariantMap vars;
  8628. /* readonly */
  8629. int weakRefs;
  8630. Vector3 worldDirection;
  8631. Vector3 worldPosition;
  8632. Vector2 worldPosition2D;
  8633. /* readonly */
  8634. Vector3 worldRight;
  8635. Quaternion worldRotation;
  8636. float worldRotation2D;
  8637. Vector3 worldScale;
  8638. Vector2 worldScale2D;
  8639. /* readonly */
  8640. Matrix3x4 worldTransform;
  8641. /* readonly */
  8642. Vector3 worldUp;
  8643. };
  8644. class Script
  8645. {
  8646. // Methods:
  8647. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8648. bool Execute(const String&);
  8649. bool HasSubscribedToEvent(Object, const String&);
  8650. bool HasSubscribedToEvent(const String&);
  8651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8652. // Properties:
  8653. /* readonly */
  8654. String category;
  8655. Scene defaultScene;
  8656. ScriptFile defaultScriptFile;
  8657. bool executeConsoleCommands;
  8658. /* readonly */
  8659. int refs;
  8660. /* readonly */
  8661. StringHash type;
  8662. /* readonly */
  8663. String typeName;
  8664. /* readonly */
  8665. int weakRefs;
  8666. };
  8667. class ScriptFile
  8668. {
  8669. // Methods:
  8670. void ClearDelayedExecute(const String& = String ( ));
  8671. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8672. bool Execute(const String&, const Array<Variant> = null);
  8673. bool HasSubscribedToEvent(Object, const String&);
  8674. bool HasSubscribedToEvent(const String&);
  8675. bool Load(File);
  8676. bool Load(VectorBuffer&);
  8677. bool Save(File) const;
  8678. bool Save(VectorBuffer&) const;
  8679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8680. // Properties:
  8681. /* readonly */
  8682. String category;
  8683. /* readonly */
  8684. bool compiled;
  8685. /* readonly */
  8686. uint memoryUse;
  8687. String name;
  8688. /* readonly */
  8689. int refs;
  8690. /* readonly */
  8691. StringHash type;
  8692. /* readonly */
  8693. String typeName;
  8694. /* readonly */
  8695. uint useTimer;
  8696. /* readonly */
  8697. int weakRefs;
  8698. };
  8699. class ScriptInstance
  8700. {
  8701. // Methods:
  8702. void ApplyAttributes();
  8703. void ClearDelayedExecute(const String& = String ( ));
  8704. bool CreateObject(ScriptFile, const String&);
  8705. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8706. void DrawDebugGeometry(DebugRenderer, bool);
  8707. bool Execute(const String&, const Array<Variant> = null);
  8708. Variant GetAttribute(const String&) const;
  8709. ValueAnimation GetAttributeAnimation(const String&) const;
  8710. float GetAttributeAnimationSpeed(const String&) const;
  8711. float GetAttributeAnimationTime(const String&) const;
  8712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8713. Variant GetAttributeDefault(const String&) const;
  8714. bool GetInterceptNetworkUpdate(const String&) const;
  8715. bool HasMethod(const String&) const;
  8716. bool HasSubscribedToEvent(Object, const String&);
  8717. bool HasSubscribedToEvent(const String&);
  8718. bool IsA(const String&) const;
  8719. bool Load(File, bool = false);
  8720. bool Load(VectorBuffer&, bool = false);
  8721. bool LoadJSON(const JSONValue&, bool = false);
  8722. bool LoadXML(const XMLElement&, bool = false);
  8723. void MarkNetworkUpdate() const;
  8724. void Remove();
  8725. void RemoveAttributeAnimation(const String&);
  8726. void RemoveInstanceDefault();
  8727. void RemoveObjectAnimation();
  8728. void ResetToDefault();
  8729. bool Save(File) const;
  8730. bool Save(VectorBuffer&) const;
  8731. bool SaveJSON(JSONValue&) const;
  8732. bool SaveXML(XMLElement&) const;
  8733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8734. void SetAnimationTime(float);
  8735. bool SetAttribute(const String&, const Variant&);
  8736. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8737. void SetAttributeAnimationSpeed(const String&, float);
  8738. void SetAttributeAnimationTime(const String&, float);
  8739. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8740. void SetInterceptNetworkUpdate(const String&, bool);
  8741. // Properties:
  8742. bool animationEnabled;
  8743. /* readonly */
  8744. Array<Variant> attributeDefaults;
  8745. /* readonly */
  8746. Array<AttributeInfo> attributeInfos;
  8747. Array<Variant> attributes;
  8748. /* readonly */
  8749. String category;
  8750. String className;
  8751. bool enabled;
  8752. /* readonly */
  8753. bool enabledEffective;
  8754. /* readonly */
  8755. uint id;
  8756. /* readonly */
  8757. Node node;
  8758. /* readonly */
  8759. uint numAttributes;
  8760. ObjectAnimation objectAnimation;
  8761. /* readonly */
  8762. int refs;
  8763. ScriptFile scriptFile;
  8764. /* readonly */
  8765. ScriptObject scriptObject;
  8766. bool temporary;
  8767. /* readonly */
  8768. StringHash type;
  8769. /* readonly */
  8770. String typeName;
  8771. /* readonly */
  8772. int weakRefs;
  8773. };
  8774. class ScriptObject
  8775. {
  8776. };
  8777. class ScrollBar
  8778. {
  8779. // Methods:
  8780. void AddChild(UIElement);
  8781. void AddTag(const String&);
  8782. void AddTags(const String&, int8 = ';');
  8783. void ApplyAttributes();
  8784. void BringToFront();
  8785. void ChangeValue(float);
  8786. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8787. void DisableLayoutUpdate();
  8788. IntVector2 ElementToScreen(const IntVector2&);
  8789. void EnableLayoutUpdate();
  8790. uint FindChild(UIElement) const;
  8791. Variant GetAttribute(const String&) const;
  8792. ValueAnimation GetAttributeAnimation(const String&) const;
  8793. float GetAttributeAnimationSpeed(const String&) const;
  8794. float GetAttributeAnimationTime(const String&) const;
  8795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8796. Variant GetAttributeDefault(const String&) const;
  8797. UIElement GetChild(const String&, bool = false) const;
  8798. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8799. Array<UIElement> GetChildren(bool = false) const;
  8800. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8801. UIElement GetElementEventSender() const;
  8802. bool GetInterceptNetworkUpdate(const String&) const;
  8803. uint GetNumChildren(bool) const;
  8804. bool HasSubscribedToEvent(Object, const String&);
  8805. bool HasSubscribedToEvent(const String&);
  8806. bool HasTag(const String&) const;
  8807. void InsertChild(uint, UIElement);
  8808. bool IsInside(IntVector2, bool);
  8809. bool IsInsideCombined(IntVector2, bool);
  8810. bool Load(File, bool = false);
  8811. bool Load(VectorBuffer&, bool = false);
  8812. bool LoadChildXML(XMLFile, XMLFile = null);
  8813. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8814. bool LoadJSON(const JSONValue&, bool = false);
  8815. bool LoadXML(File);
  8816. bool LoadXML(VectorBuffer&);
  8817. bool LoadXML(XMLFile, XMLFile);
  8818. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8819. bool LoadXML(const XMLElement&, bool = false);
  8820. void MarkNetworkUpdate() const;
  8821. void Remove();
  8822. void RemoveAllChildren();
  8823. void RemoveAllTags();
  8824. void RemoveAttributeAnimation(const String&);
  8825. void RemoveChild(UIElement, uint = 0);
  8826. void RemoveChild(uint);
  8827. void RemoveInstanceDefault();
  8828. void RemoveObjectAnimation();
  8829. bool RemoveTag(const String&);
  8830. void ResetDeepEnabled();
  8831. void ResetToDefault();
  8832. bool Save(File) const;
  8833. bool Save(VectorBuffer&) const;
  8834. bool SaveJSON(JSONValue&) const;
  8835. bool SaveXML(File, const String& = "\t");
  8836. bool SaveXML(VectorBuffer&, const String& = "\t");
  8837. bool SaveXML(XMLElement&) const;
  8838. IntVector2 ScreenToElement(const IntVector2&);
  8839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8840. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8841. void SetAnimationTime(float);
  8842. bool SetAttribute(const String&, const Variant&);
  8843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8844. void SetAttributeAnimationSpeed(const String&, float);
  8845. void SetAttributeAnimationTime(const String&, float);
  8846. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8847. void SetDeepEnabled(bool);
  8848. void SetEnabledRecursive(bool);
  8849. void SetFixedHeight(int);
  8850. void SetFixedSize(int, int);
  8851. void SetFixedWidth(int);
  8852. void SetInterceptNetworkUpdate(const String&, bool);
  8853. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8854. void SetMaxSize(int, int);
  8855. void SetMinSize(int, int);
  8856. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8857. void SetPosition(int, int);
  8858. void SetSize(int, int);
  8859. bool SetStyle(const String&, XMLFile = null);
  8860. bool SetStyle(const XMLElement&);
  8861. bool SetStyleAuto(XMLFile = null);
  8862. void StepBack();
  8863. void StepForward();
  8864. void UpdateLayout();
  8865. const Variant& GetVar(const StringHash&);
  8866. // Properties:
  8867. bool animationEnabled;
  8868. /* readonly */
  8869. Array<Variant> attributeDefaults;
  8870. /* readonly */
  8871. Array<AttributeInfo> attributeInfos;
  8872. Array<Variant> attributes;
  8873. /* readonly */
  8874. Button backButton;
  8875. bool bringToBack;
  8876. bool bringToFront;
  8877. /* readonly */
  8878. String category;
  8879. /* readonly */
  8880. IntVector2 childOffset;
  8881. /* readonly */
  8882. Array<UIElement> children;
  8883. IntRect clipBorder;
  8884. bool clipChildren;
  8885. /* writeonly */
  8886. Color color;
  8887. /* readonly */
  8888. bool colorGradient;
  8889. Array<Color> colors;
  8890. /* readonly */
  8891. IntRect combinedScreenRect;
  8892. XMLFile defaultStyle;
  8893. /* readonly */
  8894. float derivedOpacity;
  8895. /* readonly */
  8896. uint dragButtonCombo;
  8897. /* readonly */
  8898. int dragButtonCount;
  8899. uint dragDropMode;
  8900. bool editable;
  8901. /* readonly */
  8902. float effectiveScrollStep;
  8903. bool elementEventSender;
  8904. bool enabled;
  8905. /* readonly */
  8906. bool enabledSelf;
  8907. /* readonly */
  8908. bool fixedHeight;
  8909. /* readonly */
  8910. bool fixedSize;
  8911. /* readonly */
  8912. bool fixedWidth;
  8913. bool focus;
  8914. FocusMode focusMode;
  8915. /* readonly */
  8916. Button forwardButton;
  8917. int height;
  8918. HorizontalAlignment horizontalAlignment;
  8919. /* readonly */
  8920. bool hovering;
  8921. int indent;
  8922. int indentSpacing;
  8923. /* readonly */
  8924. int indentWidth;
  8925. bool internal;
  8926. IntRect layoutBorder;
  8927. Vector2 layoutFlexScale;
  8928. LayoutMode layoutMode;
  8929. int layoutSpacing;
  8930. int maxHeight;
  8931. IntVector2 maxSize;
  8932. int maxWidth;
  8933. int minHeight;
  8934. IntVector2 minSize;
  8935. int minWidth;
  8936. String name;
  8937. /* readonly */
  8938. uint numAllChildren;
  8939. /* readonly */
  8940. uint numAttributes;
  8941. /* readonly */
  8942. uint numChildren;
  8943. ObjectAnimation objectAnimation;
  8944. float opacity;
  8945. Orientation orientation;
  8946. UIElement parent;
  8947. IntVector2 position;
  8948. int priority;
  8949. float range;
  8950. /* readonly */
  8951. int refs;
  8952. /* readonly */
  8953. UIElement root;
  8954. /* readonly */
  8955. IntVector2 screenPosition;
  8956. float scrollStep;
  8957. bool selected;
  8958. IntVector2 size;
  8959. /* readonly */
  8960. Slider slider;
  8961. bool sortChildren;
  8962. float stepFactor;
  8963. String style;
  8964. /* readonly */
  8965. Array<String> tags;
  8966. bool temporary;
  8967. TraversalMode traversalMode;
  8968. /* readonly */
  8969. StringHash type;
  8970. /* readonly */
  8971. String typeName;
  8972. bool useDerivedOpacity;
  8973. float value;
  8974. /* readonly */
  8975. VariantMap vars;
  8976. VerticalAlignment verticalAlignment;
  8977. bool visible;
  8978. /* readonly */
  8979. bool visibleEffective;
  8980. /* readonly */
  8981. int weakRefs;
  8982. int width;
  8983. };
  8984. class ScrollView
  8985. {
  8986. // Methods:
  8987. void AddChild(UIElement);
  8988. void AddTag(const String&);
  8989. void AddTags(const String&, int8 = ';');
  8990. void ApplyAttributes();
  8991. void BringToFront();
  8992. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8993. void DisableLayoutUpdate();
  8994. IntVector2 ElementToScreen(const IntVector2&);
  8995. void EnableLayoutUpdate();
  8996. uint FindChild(UIElement) const;
  8997. Variant GetAttribute(const String&) const;
  8998. ValueAnimation GetAttributeAnimation(const String&) const;
  8999. float GetAttributeAnimationSpeed(const String&) const;
  9000. float GetAttributeAnimationTime(const String&) const;
  9001. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9002. Variant GetAttributeDefault(const String&) const;
  9003. UIElement GetChild(const String&, bool = false) const;
  9004. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9005. Array<UIElement> GetChildren(bool = false) const;
  9006. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9007. UIElement GetElementEventSender() const;
  9008. bool GetInterceptNetworkUpdate(const String&) const;
  9009. uint GetNumChildren(bool) const;
  9010. bool HasSubscribedToEvent(Object, const String&);
  9011. bool HasSubscribedToEvent(const String&);
  9012. bool HasTag(const String&) const;
  9013. void InsertChild(uint, UIElement);
  9014. bool IsInside(IntVector2, bool);
  9015. bool IsInsideCombined(IntVector2, bool);
  9016. bool Load(File, bool = false);
  9017. bool Load(VectorBuffer&, bool = false);
  9018. bool LoadChildXML(XMLFile, XMLFile = null);
  9019. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9020. bool LoadJSON(const JSONValue&, bool = false);
  9021. bool LoadXML(File);
  9022. bool LoadXML(VectorBuffer&);
  9023. bool LoadXML(XMLFile, XMLFile);
  9024. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9025. bool LoadXML(const XMLElement&, bool = false);
  9026. void MarkNetworkUpdate() const;
  9027. void Remove();
  9028. void RemoveAllChildren();
  9029. void RemoveAllTags();
  9030. void RemoveAttributeAnimation(const String&);
  9031. void RemoveChild(UIElement, uint = 0);
  9032. void RemoveChild(uint);
  9033. void RemoveInstanceDefault();
  9034. void RemoveObjectAnimation();
  9035. bool RemoveTag(const String&);
  9036. void ResetDeepEnabled();
  9037. void ResetToDefault();
  9038. bool Save(File) const;
  9039. bool Save(VectorBuffer&) const;
  9040. bool SaveJSON(JSONValue&) const;
  9041. bool SaveXML(File, const String& = "\t");
  9042. bool SaveXML(VectorBuffer&, const String& = "\t");
  9043. bool SaveXML(XMLElement&) const;
  9044. IntVector2 ScreenToElement(const IntVector2&);
  9045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9046. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9047. void SetAnimationTime(float);
  9048. bool SetAttribute(const String&, const Variant&);
  9049. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9050. void SetAttributeAnimationSpeed(const String&, float);
  9051. void SetAttributeAnimationTime(const String&, float);
  9052. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9053. void SetDeepEnabled(bool);
  9054. void SetEnabledRecursive(bool);
  9055. void SetFixedHeight(int);
  9056. void SetFixedSize(int, int);
  9057. void SetFixedWidth(int);
  9058. void SetInterceptNetworkUpdate(const String&, bool);
  9059. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9060. void SetMaxSize(int, int);
  9061. void SetMinSize(int, int);
  9062. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9063. void SetPosition(int, int);
  9064. void SetScrollBarsVisible(bool, bool);
  9065. void SetSize(int, int);
  9066. bool SetStyle(const String&, XMLFile = null);
  9067. bool SetStyle(const XMLElement&);
  9068. bool SetStyleAuto(XMLFile = null);
  9069. void SetViewPosition(int, int);
  9070. void UpdateLayout();
  9071. const Variant& GetVar(const StringHash&);
  9072. // Properties:
  9073. bool animationEnabled;
  9074. /* readonly */
  9075. Array<Variant> attributeDefaults;
  9076. /* readonly */
  9077. Array<AttributeInfo> attributeInfos;
  9078. Array<Variant> attributes;
  9079. bool autoDisableChildren;
  9080. float autoDisableThreshold;
  9081. bool bringToBack;
  9082. bool bringToFront;
  9083. /* readonly */
  9084. String category;
  9085. /* readonly */
  9086. IntVector2 childOffset;
  9087. /* readonly */
  9088. Array<UIElement> children;
  9089. IntRect clipBorder;
  9090. bool clipChildren;
  9091. /* writeonly */
  9092. Color color;
  9093. /* readonly */
  9094. bool colorGradient;
  9095. Array<Color> colors;
  9096. /* readonly */
  9097. IntRect combinedScreenRect;
  9098. UIElement contentElement;
  9099. XMLFile defaultStyle;
  9100. /* readonly */
  9101. float derivedOpacity;
  9102. /* readonly */
  9103. uint dragButtonCombo;
  9104. /* readonly */
  9105. int dragButtonCount;
  9106. uint dragDropMode;
  9107. bool editable;
  9108. bool elementEventSender;
  9109. bool enabled;
  9110. /* readonly */
  9111. bool enabledSelf;
  9112. /* readonly */
  9113. bool fixedHeight;
  9114. /* readonly */
  9115. bool fixedSize;
  9116. /* readonly */
  9117. bool fixedWidth;
  9118. bool focus;
  9119. FocusMode focusMode;
  9120. int height;
  9121. HorizontalAlignment horizontalAlignment;
  9122. /* readonly */
  9123. ScrollBar horizontalScrollBar;
  9124. /* readonly */
  9125. bool hovering;
  9126. int indent;
  9127. int indentSpacing;
  9128. /* readonly */
  9129. int indentWidth;
  9130. bool internal;
  9131. IntRect layoutBorder;
  9132. Vector2 layoutFlexScale;
  9133. LayoutMode layoutMode;
  9134. int layoutSpacing;
  9135. int maxHeight;
  9136. IntVector2 maxSize;
  9137. int maxWidth;
  9138. int minHeight;
  9139. IntVector2 minSize;
  9140. int minWidth;
  9141. String name;
  9142. /* readonly */
  9143. uint numAllChildren;
  9144. /* readonly */
  9145. uint numAttributes;
  9146. /* readonly */
  9147. uint numChildren;
  9148. ObjectAnimation objectAnimation;
  9149. float opacity;
  9150. float pageStep;
  9151. UIElement parent;
  9152. IntVector2 position;
  9153. int priority;
  9154. /* readonly */
  9155. int refs;
  9156. /* readonly */
  9157. UIElement root;
  9158. /* readonly */
  9159. IntVector2 screenPosition;
  9160. bool scrollBarsAutoVisible;
  9161. float scrollDeceleration;
  9162. /* readonly */
  9163. BorderImage scrollPanel;
  9164. float scrollSnapEpsilon;
  9165. float scrollStep;
  9166. bool selected;
  9167. IntVector2 size;
  9168. bool sortChildren;
  9169. String style;
  9170. /* readonly */
  9171. Array<String> tags;
  9172. bool temporary;
  9173. TraversalMode traversalMode;
  9174. /* readonly */
  9175. StringHash type;
  9176. /* readonly */
  9177. String typeName;
  9178. bool useDerivedOpacity;
  9179. /* readonly */
  9180. VariantMap vars;
  9181. VerticalAlignment verticalAlignment;
  9182. /* readonly */
  9183. ScrollBar verticalScrollBar;
  9184. IntVector2 viewPosition;
  9185. bool visible;
  9186. /* readonly */
  9187. bool visibleEffective;
  9188. /* readonly */
  9189. int weakRefs;
  9190. int width;
  9191. };
  9192. class Serializable
  9193. {
  9194. // Methods:
  9195. void ApplyAttributes();
  9196. Variant GetAttribute(const String&) const;
  9197. Variant GetAttributeDefault(const String&) const;
  9198. bool GetInterceptNetworkUpdate(const String&) const;
  9199. bool HasSubscribedToEvent(Object, const String&);
  9200. bool HasSubscribedToEvent(const String&);
  9201. bool Load(File, bool = false);
  9202. bool Load(VectorBuffer&, bool = false);
  9203. bool LoadJSON(const JSONValue&, bool = false);
  9204. bool LoadXML(const XMLElement&, bool = false);
  9205. void MarkNetworkUpdate() const;
  9206. void RemoveInstanceDefault();
  9207. void ResetToDefault();
  9208. bool Save(File) const;
  9209. bool Save(VectorBuffer&) const;
  9210. bool SaveJSON(JSONValue&) const;
  9211. bool SaveXML(XMLElement&) const;
  9212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9213. bool SetAttribute(const String&, const Variant&);
  9214. void SetInterceptNetworkUpdate(const String&, bool);
  9215. // Properties:
  9216. /* readonly */
  9217. Array<Variant> attributeDefaults;
  9218. /* readonly */
  9219. Array<AttributeInfo> attributeInfos;
  9220. Array<Variant> attributes;
  9221. /* readonly */
  9222. String category;
  9223. /* readonly */
  9224. uint numAttributes;
  9225. /* readonly */
  9226. int refs;
  9227. bool temporary;
  9228. /* readonly */
  9229. StringHash type;
  9230. /* readonly */
  9231. String typeName;
  9232. /* readonly */
  9233. int weakRefs;
  9234. };
  9235. class Serializer
  9236. {
  9237. // Methods:
  9238. uint Write(Array<uint8>);
  9239. bool WriteBool(bool);
  9240. bool WriteBoundingBox(const BoundingBox&);
  9241. bool WriteByte(int8);
  9242. bool WriteColor(const Color&);
  9243. bool WriteDouble(double);
  9244. bool WriteFileID(const String&);
  9245. bool WriteFloat(float);
  9246. bool WriteInt(int);
  9247. bool WriteIntRect(const IntRect&);
  9248. bool WriteIntVector2(const IntVector2&);
  9249. bool WriteLine(const String&);
  9250. bool WriteMatrix3(const Matrix3&);
  9251. bool WriteMatrix3x4(const Matrix3x4&);
  9252. bool WriteMatrix4(const Matrix4&);
  9253. bool WriteNetID(uint);
  9254. bool WritePackedQuaternion(const Quaternion&);
  9255. bool WritePackedVector3(const Vector3&, float);
  9256. bool WriteQuaternion(const Quaternion&);
  9257. bool WriteShort(int16);
  9258. bool WriteString(const String&);
  9259. bool WriteStringHash(const StringHash&);
  9260. bool WriteUByte(uint8);
  9261. bool WriteUInt(uint);
  9262. bool WriteUShort(uint16);
  9263. bool WriteVLE(uint);
  9264. bool WriteVariant(const Variant&);
  9265. bool WriteVariantMap(const VariantMap&);
  9266. bool WriteVector2(const Vector2&);
  9267. bool WriteVector3(const Vector3&);
  9268. bool WriteVector4(const Vector4&);
  9269. bool WriteVectorBuffer(const VectorBuffer&);
  9270. };
  9271. class Skeleton
  9272. {
  9273. // Methods:
  9274. Bone GetBone(const String&) const;
  9275. void Reset();
  9276. // Properties:
  9277. /* readonly */
  9278. Array<Bone> bones;
  9279. /* readonly */
  9280. uint numBones;
  9281. /* readonly */
  9282. Bone rootBone;
  9283. };
  9284. class Skybox
  9285. {
  9286. // Methods:
  9287. void ApplyAttributes();
  9288. void ApplyMaterialList(const String& = String ( ));
  9289. void DrawDebugGeometry(DebugRenderer, bool);
  9290. Variant GetAttribute(const String&) const;
  9291. ValueAnimation GetAttributeAnimation(const String&) const;
  9292. float GetAttributeAnimationSpeed(const String&) const;
  9293. float GetAttributeAnimationTime(const String&) const;
  9294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9295. Variant GetAttributeDefault(const String&) const;
  9296. bool GetInterceptNetworkUpdate(const String&) const;
  9297. bool HasSubscribedToEvent(Object, const String&);
  9298. bool HasSubscribedToEvent(const String&);
  9299. bool IsInView(Camera) const;
  9300. bool Load(File, bool = false);
  9301. bool Load(VectorBuffer&, bool = false);
  9302. bool LoadJSON(const JSONValue&, bool = false);
  9303. bool LoadXML(const XMLElement&, bool = false);
  9304. void MarkNetworkUpdate() const;
  9305. void Remove();
  9306. void RemoveAttributeAnimation(const String&);
  9307. void RemoveInstanceDefault();
  9308. void RemoveObjectAnimation();
  9309. void ResetToDefault();
  9310. bool Save(File) const;
  9311. bool Save(VectorBuffer&) const;
  9312. bool SaveJSON(JSONValue&) const;
  9313. bool SaveXML(XMLElement&) const;
  9314. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9315. void SetAnimationTime(float);
  9316. bool SetAttribute(const String&, const Variant&);
  9317. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9318. void SetAttributeAnimationSpeed(const String&, float);
  9319. void SetAttributeAnimationTime(const String&, float);
  9320. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9321. void SetInterceptNetworkUpdate(const String&, bool);
  9322. // Properties:
  9323. bool animationEnabled;
  9324. /* readonly */
  9325. Array<Variant> attributeDefaults;
  9326. /* readonly */
  9327. Array<AttributeInfo> attributeInfos;
  9328. Array<Variant> attributes;
  9329. /* readonly */
  9330. BoundingBox boundingBox;
  9331. bool castShadows;
  9332. /* readonly */
  9333. String category;
  9334. float drawDistance;
  9335. bool enabled;
  9336. /* readonly */
  9337. bool enabledEffective;
  9338. /* readonly */
  9339. uint id;
  9340. /* readonly */
  9341. bool inView;
  9342. uint lightMask;
  9343. float lodBias;
  9344. /* writeonly */
  9345. Material material;
  9346. Array<Material> materials;
  9347. uint maxLights;
  9348. Model model;
  9349. /* readonly */
  9350. Node node;
  9351. /* readonly */
  9352. uint numAttributes;
  9353. /* readonly */
  9354. uint numGeometries;
  9355. ObjectAnimation objectAnimation;
  9356. bool occludee;
  9357. bool occluder;
  9358. /* readonly */
  9359. int refs;
  9360. float shadowDistance;
  9361. uint shadowMask;
  9362. bool temporary;
  9363. /* readonly */
  9364. StringHash type;
  9365. /* readonly */
  9366. String typeName;
  9367. uint viewMask;
  9368. /* readonly */
  9369. int weakRefs;
  9370. /* readonly */
  9371. BoundingBox worldBoundingBox;
  9372. /* readonly */
  9373. Zone zone;
  9374. uint zoneMask;
  9375. };
  9376. class Slider
  9377. {
  9378. // Methods:
  9379. void AddChild(UIElement);
  9380. void AddTag(const String&);
  9381. void AddTags(const String&, int8 = ';');
  9382. void ApplyAttributes();
  9383. void BringToFront();
  9384. void ChangeValue(float);
  9385. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9386. void DisableLayoutUpdate();
  9387. IntVector2 ElementToScreen(const IntVector2&);
  9388. void EnableLayoutUpdate();
  9389. uint FindChild(UIElement) const;
  9390. Variant GetAttribute(const String&) const;
  9391. ValueAnimation GetAttributeAnimation(const String&) const;
  9392. float GetAttributeAnimationSpeed(const String&) const;
  9393. float GetAttributeAnimationTime(const String&) const;
  9394. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9395. Variant GetAttributeDefault(const String&) const;
  9396. UIElement GetChild(const String&, bool = false) const;
  9397. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9398. Array<UIElement> GetChildren(bool = false) const;
  9399. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9400. UIElement GetElementEventSender() const;
  9401. bool GetInterceptNetworkUpdate(const String&) const;
  9402. uint GetNumChildren(bool) const;
  9403. bool HasSubscribedToEvent(Object, const String&);
  9404. bool HasSubscribedToEvent(const String&);
  9405. bool HasTag(const String&) const;
  9406. void InsertChild(uint, UIElement);
  9407. bool IsInside(IntVector2, bool);
  9408. bool IsInsideCombined(IntVector2, bool);
  9409. bool Load(File, bool = false);
  9410. bool Load(VectorBuffer&, bool = false);
  9411. bool LoadChildXML(XMLFile, XMLFile = null);
  9412. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9413. bool LoadJSON(const JSONValue&, bool = false);
  9414. bool LoadXML(File);
  9415. bool LoadXML(VectorBuffer&);
  9416. bool LoadXML(XMLFile, XMLFile);
  9417. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9418. bool LoadXML(const XMLElement&, bool = false);
  9419. void MarkNetworkUpdate() const;
  9420. void Remove();
  9421. void RemoveAllChildren();
  9422. void RemoveAllTags();
  9423. void RemoveAttributeAnimation(const String&);
  9424. void RemoveChild(UIElement, uint = 0);
  9425. void RemoveChild(uint);
  9426. void RemoveInstanceDefault();
  9427. void RemoveObjectAnimation();
  9428. bool RemoveTag(const String&);
  9429. void ResetDeepEnabled();
  9430. void ResetToDefault();
  9431. bool Save(File) const;
  9432. bool Save(VectorBuffer&) const;
  9433. bool SaveJSON(JSONValue&) const;
  9434. bool SaveXML(File, const String& = "\t");
  9435. bool SaveXML(VectorBuffer&, const String& = "\t");
  9436. bool SaveXML(XMLElement&) const;
  9437. IntVector2 ScreenToElement(const IntVector2&);
  9438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9439. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9440. void SetAnimationTime(float);
  9441. bool SetAttribute(const String&, const Variant&);
  9442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9443. void SetAttributeAnimationSpeed(const String&, float);
  9444. void SetAttributeAnimationTime(const String&, float);
  9445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9446. void SetDeepEnabled(bool);
  9447. void SetEnabledRecursive(bool);
  9448. void SetFixedHeight(int);
  9449. void SetFixedSize(int, int);
  9450. void SetFixedWidth(int);
  9451. void SetFullImageRect();
  9452. void SetHoverOffset(int, int);
  9453. void SetInterceptNetworkUpdate(const String&, bool);
  9454. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9455. void SetMaxSize(int, int);
  9456. void SetMinSize(int, int);
  9457. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9458. void SetPosition(int, int);
  9459. void SetSize(int, int);
  9460. bool SetStyle(const String&, XMLFile = null);
  9461. bool SetStyle(const XMLElement&);
  9462. bool SetStyleAuto(XMLFile = null);
  9463. void UpdateLayout();
  9464. const Variant& GetVar(const StringHash&);
  9465. // Properties:
  9466. bool animationEnabled;
  9467. /* readonly */
  9468. Array<Variant> attributeDefaults;
  9469. /* readonly */
  9470. Array<AttributeInfo> attributeInfos;
  9471. Array<Variant> attributes;
  9472. BlendMode blendMode;
  9473. IntRect border;
  9474. bool bringToBack;
  9475. bool bringToFront;
  9476. /* readonly */
  9477. String category;
  9478. /* readonly */
  9479. IntVector2 childOffset;
  9480. /* readonly */
  9481. Array<UIElement> children;
  9482. IntRect clipBorder;
  9483. bool clipChildren;
  9484. /* writeonly */
  9485. Color color;
  9486. /* readonly */
  9487. bool colorGradient;
  9488. Array<Color> colors;
  9489. /* readonly */
  9490. IntRect combinedScreenRect;
  9491. XMLFile defaultStyle;
  9492. /* readonly */
  9493. float derivedOpacity;
  9494. /* readonly */
  9495. uint dragButtonCombo;
  9496. /* readonly */
  9497. int dragButtonCount;
  9498. uint dragDropMode;
  9499. bool editable;
  9500. bool elementEventSender;
  9501. bool enabled;
  9502. /* readonly */
  9503. bool enabledSelf;
  9504. /* readonly */
  9505. bool fixedHeight;
  9506. /* readonly */
  9507. bool fixedSize;
  9508. /* readonly */
  9509. bool fixedWidth;
  9510. bool focus;
  9511. FocusMode focusMode;
  9512. int height;
  9513. HorizontalAlignment horizontalAlignment;
  9514. IntVector2 hoverOffset;
  9515. /* readonly */
  9516. bool hovering;
  9517. IntRect imageBorder;
  9518. IntRect imageRect;
  9519. int indent;
  9520. int indentSpacing;
  9521. /* readonly */
  9522. int indentWidth;
  9523. bool internal;
  9524. /* readonly */
  9525. BorderImage knob;
  9526. IntRect layoutBorder;
  9527. Vector2 layoutFlexScale;
  9528. LayoutMode layoutMode;
  9529. int layoutSpacing;
  9530. int maxHeight;
  9531. IntVector2 maxSize;
  9532. int maxWidth;
  9533. int minHeight;
  9534. IntVector2 minSize;
  9535. int minWidth;
  9536. String name;
  9537. /* readonly */
  9538. uint numAllChildren;
  9539. /* readonly */
  9540. uint numAttributes;
  9541. /* readonly */
  9542. uint numChildren;
  9543. ObjectAnimation objectAnimation;
  9544. float opacity;
  9545. Orientation orientation;
  9546. UIElement parent;
  9547. IntVector2 position;
  9548. int priority;
  9549. float range;
  9550. /* readonly */
  9551. int refs;
  9552. float repeatRate;
  9553. /* readonly */
  9554. UIElement root;
  9555. /* readonly */
  9556. IntVector2 screenPosition;
  9557. bool selected;
  9558. IntVector2 size;
  9559. bool sortChildren;
  9560. String style;
  9561. /* readonly */
  9562. Array<String> tags;
  9563. bool temporary;
  9564. Texture texture;
  9565. bool tiled;
  9566. TraversalMode traversalMode;
  9567. /* readonly */
  9568. StringHash type;
  9569. /* readonly */
  9570. String typeName;
  9571. bool useDerivedOpacity;
  9572. float value;
  9573. /* readonly */
  9574. VariantMap vars;
  9575. VerticalAlignment verticalAlignment;
  9576. bool visible;
  9577. /* readonly */
  9578. bool visibleEffective;
  9579. /* readonly */
  9580. int weakRefs;
  9581. int width;
  9582. };
  9583. class SmoothedTransform
  9584. {
  9585. // Methods:
  9586. void ApplyAttributes();
  9587. void DrawDebugGeometry(DebugRenderer, bool);
  9588. Variant GetAttribute(const String&) const;
  9589. ValueAnimation GetAttributeAnimation(const String&) const;
  9590. float GetAttributeAnimationSpeed(const String&) const;
  9591. float GetAttributeAnimationTime(const String&) const;
  9592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9593. Variant GetAttributeDefault(const String&) const;
  9594. bool GetInterceptNetworkUpdate(const String&) const;
  9595. bool HasSubscribedToEvent(Object, const String&);
  9596. bool HasSubscribedToEvent(const String&);
  9597. bool Load(File, bool = false);
  9598. bool Load(VectorBuffer&, bool = false);
  9599. bool LoadJSON(const JSONValue&, bool = false);
  9600. bool LoadXML(const XMLElement&, bool = false);
  9601. void MarkNetworkUpdate() const;
  9602. void Remove();
  9603. void RemoveAttributeAnimation(const String&);
  9604. void RemoveInstanceDefault();
  9605. void RemoveObjectAnimation();
  9606. void ResetToDefault();
  9607. bool Save(File) const;
  9608. bool Save(VectorBuffer&) const;
  9609. bool SaveJSON(JSONValue&) const;
  9610. bool SaveXML(XMLElement&) const;
  9611. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9612. void SetAnimationTime(float);
  9613. bool SetAttribute(const String&, const Variant&);
  9614. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9615. void SetAttributeAnimationSpeed(const String&, float);
  9616. void SetAttributeAnimationTime(const String&, float);
  9617. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9618. void SetInterceptNetworkUpdate(const String&, bool);
  9619. void Update(float, float);
  9620. // Properties:
  9621. bool animationEnabled;
  9622. /* readonly */
  9623. Array<Variant> attributeDefaults;
  9624. /* readonly */
  9625. Array<AttributeInfo> attributeInfos;
  9626. Array<Variant> attributes;
  9627. /* readonly */
  9628. String category;
  9629. bool enabled;
  9630. /* readonly */
  9631. bool enabledEffective;
  9632. /* readonly */
  9633. uint id;
  9634. /* readonly */
  9635. bool inProgress;
  9636. /* readonly */
  9637. Node node;
  9638. /* readonly */
  9639. uint numAttributes;
  9640. ObjectAnimation objectAnimation;
  9641. /* readonly */
  9642. int refs;
  9643. Vector3 targetPosition;
  9644. Quaternion targetRotation;
  9645. Vector3 targetWorldPosition;
  9646. Quaternion targetWorldRotation;
  9647. bool temporary;
  9648. /* readonly */
  9649. StringHash type;
  9650. /* readonly */
  9651. String typeName;
  9652. /* readonly */
  9653. int weakRefs;
  9654. };
  9655. class Sound
  9656. {
  9657. // Methods:
  9658. bool HasSubscribedToEvent(Object, const String&);
  9659. bool HasSubscribedToEvent(const String&);
  9660. bool Load(File);
  9661. bool Load(VectorBuffer&);
  9662. bool Save(File) const;
  9663. bool Save(VectorBuffer&) const;
  9664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9665. // Properties:
  9666. /* readonly */
  9667. String category;
  9668. /* readonly */
  9669. bool compressed;
  9670. /* readonly */
  9671. float frequency;
  9672. /* readonly */
  9673. float length;
  9674. bool looped;
  9675. /* readonly */
  9676. uint memoryUse;
  9677. String name;
  9678. /* readonly */
  9679. int refs;
  9680. /* readonly */
  9681. uint sampleSize;
  9682. /* readonly */
  9683. bool sixteenBit;
  9684. /* readonly */
  9685. bool stereo;
  9686. /* readonly */
  9687. StringHash type;
  9688. /* readonly */
  9689. String typeName;
  9690. /* readonly */
  9691. uint useTimer;
  9692. /* readonly */
  9693. int weakRefs;
  9694. };
  9695. class SoundListener
  9696. {
  9697. // Methods:
  9698. void ApplyAttributes();
  9699. void DrawDebugGeometry(DebugRenderer, bool);
  9700. Variant GetAttribute(const String&) const;
  9701. ValueAnimation GetAttributeAnimation(const String&) const;
  9702. float GetAttributeAnimationSpeed(const String&) const;
  9703. float GetAttributeAnimationTime(const String&) const;
  9704. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9705. Variant GetAttributeDefault(const String&) const;
  9706. bool GetInterceptNetworkUpdate(const String&) const;
  9707. bool HasSubscribedToEvent(Object, const String&);
  9708. bool HasSubscribedToEvent(const String&);
  9709. bool Load(File, bool = false);
  9710. bool Load(VectorBuffer&, bool = false);
  9711. bool LoadJSON(const JSONValue&, bool = false);
  9712. bool LoadXML(const XMLElement&, bool = false);
  9713. void MarkNetworkUpdate() const;
  9714. void Remove();
  9715. void RemoveAttributeAnimation(const String&);
  9716. void RemoveInstanceDefault();
  9717. void RemoveObjectAnimation();
  9718. void ResetToDefault();
  9719. bool Save(File) const;
  9720. bool Save(VectorBuffer&) const;
  9721. bool SaveJSON(JSONValue&) const;
  9722. bool SaveXML(XMLElement&) const;
  9723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9724. void SetAnimationTime(float);
  9725. bool SetAttribute(const String&, const Variant&);
  9726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9727. void SetAttributeAnimationSpeed(const String&, float);
  9728. void SetAttributeAnimationTime(const String&, float);
  9729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9730. void SetInterceptNetworkUpdate(const String&, bool);
  9731. // Properties:
  9732. bool animationEnabled;
  9733. /* readonly */
  9734. Array<Variant> attributeDefaults;
  9735. /* readonly */
  9736. Array<AttributeInfo> attributeInfos;
  9737. Array<Variant> attributes;
  9738. /* readonly */
  9739. String category;
  9740. bool enabled;
  9741. /* readonly */
  9742. bool enabledEffective;
  9743. /* readonly */
  9744. uint id;
  9745. /* readonly */
  9746. Node node;
  9747. /* readonly */
  9748. uint numAttributes;
  9749. ObjectAnimation objectAnimation;
  9750. /* readonly */
  9751. int refs;
  9752. bool temporary;
  9753. /* readonly */
  9754. StringHash type;
  9755. /* readonly */
  9756. String typeName;
  9757. /* readonly */
  9758. int weakRefs;
  9759. };
  9760. class SoundSource
  9761. {
  9762. // Methods:
  9763. void ApplyAttributes();
  9764. void DrawDebugGeometry(DebugRenderer, bool);
  9765. Variant GetAttribute(const String&) const;
  9766. ValueAnimation GetAttributeAnimation(const String&) const;
  9767. float GetAttributeAnimationSpeed(const String&) const;
  9768. float GetAttributeAnimationTime(const String&) const;
  9769. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9770. Variant GetAttributeDefault(const String&) const;
  9771. bool GetInterceptNetworkUpdate(const String&) const;
  9772. bool HasSubscribedToEvent(Object, const String&);
  9773. bool HasSubscribedToEvent(const String&);
  9774. bool Load(File, bool = false);
  9775. bool Load(VectorBuffer&, bool = false);
  9776. bool LoadJSON(const JSONValue&, bool = false);
  9777. bool LoadXML(const XMLElement&, bool = false);
  9778. void MarkNetworkUpdate() const;
  9779. void Play(Sound);
  9780. void Play(Sound, float);
  9781. void Play(Sound, float, float);
  9782. void Play(Sound, float, float, float);
  9783. void Remove();
  9784. void RemoveAttributeAnimation(const String&);
  9785. void RemoveInstanceDefault();
  9786. void RemoveObjectAnimation();
  9787. void ResetToDefault();
  9788. bool Save(File) const;
  9789. bool Save(VectorBuffer&) const;
  9790. bool SaveJSON(JSONValue&) const;
  9791. bool SaveXML(XMLElement&) const;
  9792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9793. void SetAnimationTime(float);
  9794. bool SetAttribute(const String&, const Variant&);
  9795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9796. void SetAttributeAnimationSpeed(const String&, float);
  9797. void SetAttributeAnimationTime(const String&, float);
  9798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9799. void SetInterceptNetworkUpdate(const String&, bool);
  9800. void Stop();
  9801. // Properties:
  9802. bool animationEnabled;
  9803. /* readonly */
  9804. float attenuation;
  9805. /* readonly */
  9806. Array<Variant> attributeDefaults;
  9807. /* readonly */
  9808. Array<AttributeInfo> attributeInfos;
  9809. Array<Variant> attributes;
  9810. bool autoRemove;
  9811. /* readonly */
  9812. String category;
  9813. bool enabled;
  9814. /* readonly */
  9815. bool enabledEffective;
  9816. float frequency;
  9817. float gain;
  9818. /* readonly */
  9819. uint id;
  9820. /* readonly */
  9821. Node node;
  9822. /* readonly */
  9823. uint numAttributes;
  9824. ObjectAnimation objectAnimation;
  9825. float panning;
  9826. /* readonly */
  9827. bool playing;
  9828. /* readonly */
  9829. int refs;
  9830. /* readonly */
  9831. Sound sound;
  9832. String soundType;
  9833. bool temporary;
  9834. /* readonly */
  9835. float timePosition;
  9836. /* readonly */
  9837. StringHash type;
  9838. /* readonly */
  9839. String typeName;
  9840. /* readonly */
  9841. int weakRefs;
  9842. };
  9843. class SoundSource3D
  9844. {
  9845. // Methods:
  9846. void ApplyAttributes();
  9847. void DrawDebugGeometry(DebugRenderer, bool);
  9848. Variant GetAttribute(const String&) const;
  9849. ValueAnimation GetAttributeAnimation(const String&) const;
  9850. float GetAttributeAnimationSpeed(const String&) const;
  9851. float GetAttributeAnimationTime(const String&) const;
  9852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9853. Variant GetAttributeDefault(const String&) const;
  9854. bool GetInterceptNetworkUpdate(const String&) const;
  9855. bool HasSubscribedToEvent(Object, const String&);
  9856. bool HasSubscribedToEvent(const String&);
  9857. bool Load(File, bool = false);
  9858. bool Load(VectorBuffer&, bool = false);
  9859. bool LoadJSON(const JSONValue&, bool = false);
  9860. bool LoadXML(const XMLElement&, bool = false);
  9861. void MarkNetworkUpdate() const;
  9862. void Play(Sound);
  9863. void Play(Sound, float);
  9864. void Play(Sound, float, float);
  9865. void Play(Sound, float, float, float);
  9866. void Remove();
  9867. void RemoveAttributeAnimation(const String&);
  9868. void RemoveInstanceDefault();
  9869. void RemoveObjectAnimation();
  9870. void ResetToDefault();
  9871. bool Save(File) const;
  9872. bool Save(VectorBuffer&) const;
  9873. bool SaveJSON(JSONValue&) const;
  9874. bool SaveXML(XMLElement&) const;
  9875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9876. void SetAngleAttenuation(float, float);
  9877. void SetAnimationTime(float);
  9878. bool SetAttribute(const String&, const Variant&);
  9879. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9880. void SetAttributeAnimationSpeed(const String&, float);
  9881. void SetAttributeAnimationTime(const String&, float);
  9882. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9883. void SetDistanceAttenuation(float, float, float);
  9884. void SetInterceptNetworkUpdate(const String&, bool);
  9885. void Stop();
  9886. // Properties:
  9887. bool animationEnabled;
  9888. /* readonly */
  9889. float attenuation;
  9890. /* readonly */
  9891. Array<Variant> attributeDefaults;
  9892. /* readonly */
  9893. Array<AttributeInfo> attributeInfos;
  9894. Array<Variant> attributes;
  9895. bool autoRemove;
  9896. /* readonly */
  9897. String category;
  9898. bool enabled;
  9899. /* readonly */
  9900. bool enabledEffective;
  9901. float farDistance;
  9902. float frequency;
  9903. float gain;
  9904. /* readonly */
  9905. uint id;
  9906. float innerAngle;
  9907. float nearDistance;
  9908. /* readonly */
  9909. Node node;
  9910. /* readonly */
  9911. uint numAttributes;
  9912. ObjectAnimation objectAnimation;
  9913. float outerAngle;
  9914. float panning;
  9915. /* readonly */
  9916. bool playing;
  9917. /* readonly */
  9918. int refs;
  9919. float rolloffFactor;
  9920. /* readonly */
  9921. Sound sound;
  9922. String soundType;
  9923. bool temporary;
  9924. /* readonly */
  9925. float timePosition;
  9926. /* readonly */
  9927. StringHash type;
  9928. /* readonly */
  9929. String typeName;
  9930. /* readonly */
  9931. int weakRefs;
  9932. };
  9933. class Sphere
  9934. {
  9935. // Methods:
  9936. void Clear();
  9937. void Define(const BoundingBox&);
  9938. void Define(const Frustum&);
  9939. void Define(const Polyhedron&);
  9940. void Define(const Sphere&);
  9941. void Define(const Vector3&, float);
  9942. bool Defined() const;
  9943. float Distance(const Vector3&) const;
  9944. Intersection IsInside(const BoundingBox&) const;
  9945. Intersection IsInside(const Sphere&) const;
  9946. Intersection IsInside(const Vector3&) const;
  9947. Intersection IsInsideFast(const BoundingBox&) const;
  9948. Intersection IsInsideFast(const Sphere&) const;
  9949. void Merge(const BoundingBox&);
  9950. void Merge(const Frustum&);
  9951. void Merge(const Sphere&);
  9952. void Merge(const Vector3&);
  9953. // Properties:
  9954. Vector3 center;
  9955. float radius;
  9956. };
  9957. class Spline
  9958. {
  9959. // Methods:
  9960. void AddKnot(const Variant&);
  9961. void AddKnot(const Variant&, uint);
  9962. void Clear();
  9963. Variant GetPoint(float);
  9964. void RemoveKnot();
  9965. void RemoveKnot(uint);
  9966. // Properties:
  9967. InterpolationMode interpolationMode;
  9968. Array<Variant> knot;
  9969. Array<Variant> knots;
  9970. };
  9971. class SplinePath
  9972. {
  9973. // Methods:
  9974. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9975. void ApplyAttributes();
  9976. void ClearControlPoints();
  9977. void DrawDebugGeometry(DebugRenderer, bool);
  9978. Variant GetAttribute(const String&) const;
  9979. ValueAnimation GetAttributeAnimation(const String&) const;
  9980. float GetAttributeAnimationSpeed(const String&) const;
  9981. float GetAttributeAnimationTime(const String&) const;
  9982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9983. Variant GetAttributeDefault(const String&) const;
  9984. bool GetInterceptNetworkUpdate(const String&) const;
  9985. Vector3 GetPoint(float) const;
  9986. Vector3 GetPosition() const;
  9987. bool HasSubscribedToEvent(Object, const String&);
  9988. bool HasSubscribedToEvent(const String&);
  9989. bool Load(File, bool = false);
  9990. bool Load(VectorBuffer&, bool = false);
  9991. bool LoadJSON(const JSONValue&, bool = false);
  9992. bool LoadXML(const XMLElement&, bool = false);
  9993. void MarkNetworkUpdate() const;
  9994. void Move(float);
  9995. void Remove();
  9996. void RemoveAttributeAnimation(const String&);
  9997. void RemoveControlPoint(Node);
  9998. void RemoveInstanceDefault();
  9999. void RemoveObjectAnimation();
  10000. void Reset();
  10001. void ResetToDefault();
  10002. bool Save(File) const;
  10003. bool Save(VectorBuffer&) const;
  10004. bool SaveJSON(JSONValue&) const;
  10005. bool SaveXML(XMLElement&) const;
  10006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10007. void SetAnimationTime(float);
  10008. bool SetAttribute(const String&, const Variant&);
  10009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10010. void SetAttributeAnimationSpeed(const String&, float);
  10011. void SetAttributeAnimationTime(const String&, float);
  10012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10013. void SetInterceptNetworkUpdate(const String&, bool);
  10014. void SetPosition(float);
  10015. // Properties:
  10016. bool animationEnabled;
  10017. /* readonly */
  10018. Array<Variant> attributeDefaults;
  10019. /* readonly */
  10020. Array<AttributeInfo> attributeInfos;
  10021. Array<Variant> attributes;
  10022. /* readonly */
  10023. String category;
  10024. Node controlledNode;
  10025. bool enabled;
  10026. /* readonly */
  10027. bool enabledEffective;
  10028. /* readonly */
  10029. uint id;
  10030. InterpolationMode interpolationMode;
  10031. /* readonly */
  10032. bool isFinished;
  10033. /* readonly */
  10034. float length;
  10035. /* readonly */
  10036. Node node;
  10037. /* readonly */
  10038. uint numAttributes;
  10039. ObjectAnimation objectAnimation;
  10040. /* readonly */
  10041. int refs;
  10042. float speed;
  10043. bool temporary;
  10044. /* readonly */
  10045. StringHash type;
  10046. /* readonly */
  10047. String typeName;
  10048. /* readonly */
  10049. int weakRefs;
  10050. };
  10051. class Sprite
  10052. {
  10053. // Methods:
  10054. void AddChild(UIElement);
  10055. void AddTag(const String&);
  10056. void AddTags(const String&, int8 = ';');
  10057. void ApplyAttributes();
  10058. void BringToFront();
  10059. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10060. uint FindChild(UIElement) const;
  10061. Variant GetAttribute(const String&) const;
  10062. ValueAnimation GetAttributeAnimation(const String&) const;
  10063. float GetAttributeAnimationSpeed(const String&) const;
  10064. float GetAttributeAnimationTime(const String&) const;
  10065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10066. Variant GetAttributeDefault(const String&) const;
  10067. UIElement GetChild(const String&, bool = false) const;
  10068. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10069. Array<UIElement> GetChildren(bool = false) const;
  10070. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10071. UIElement GetElementEventSender() const;
  10072. bool GetInterceptNetworkUpdate(const String&) const;
  10073. uint GetNumChildren(bool) const;
  10074. bool HasSubscribedToEvent(Object, const String&);
  10075. bool HasSubscribedToEvent(const String&);
  10076. bool HasTag(const String&) const;
  10077. void InsertChild(uint, UIElement);
  10078. bool Load(File, bool = false);
  10079. bool Load(VectorBuffer&, bool = false);
  10080. bool LoadChildXML(XMLFile, XMLFile = null);
  10081. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10082. bool LoadJSON(const JSONValue&, bool = false);
  10083. bool LoadXML(File);
  10084. bool LoadXML(VectorBuffer&);
  10085. bool LoadXML(XMLFile, XMLFile);
  10086. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10087. bool LoadXML(const XMLElement&, bool = false);
  10088. void MarkNetworkUpdate() const;
  10089. void Remove();
  10090. void RemoveAllChildren();
  10091. void RemoveAllTags();
  10092. void RemoveAttributeAnimation(const String&);
  10093. void RemoveChild(UIElement, uint = 0);
  10094. void RemoveChild(uint);
  10095. void RemoveInstanceDefault();
  10096. void RemoveObjectAnimation();
  10097. bool RemoveTag(const String&);
  10098. void ResetToDefault();
  10099. bool Save(File) const;
  10100. bool Save(VectorBuffer&) const;
  10101. bool SaveJSON(JSONValue&) const;
  10102. bool SaveXML(File, const String& = "\t");
  10103. bool SaveXML(VectorBuffer&, const String& = "\t");
  10104. bool SaveXML(XMLElement&) const;
  10105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10106. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10107. void SetAnimationTime(float);
  10108. bool SetAttribute(const String&, const Variant&);
  10109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10110. void SetAttributeAnimationSpeed(const String&, float);
  10111. void SetAttributeAnimationTime(const String&, float);
  10112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10113. void SetFixedHeight(int);
  10114. void SetFixedSize(int, int);
  10115. void SetFixedWidth(int);
  10116. void SetFullImageRect();
  10117. void SetHotSpot(int, int);
  10118. void SetInterceptNetworkUpdate(const String&, bool);
  10119. void SetMaxSize(int, int);
  10120. void SetMinSize(int, int);
  10121. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10122. void SetPosition(float, float);
  10123. void SetScale(float);
  10124. void SetScale(float, float);
  10125. void SetSize(int, int);
  10126. bool SetStyle(const String&, XMLFile = null);
  10127. bool SetStyle(const XMLElement&);
  10128. bool SetStyleAuto(XMLFile = null);
  10129. const Variant& GetVar(const StringHash&);
  10130. // Properties:
  10131. bool animationEnabled;
  10132. /* readonly */
  10133. Array<Variant> attributeDefaults;
  10134. /* readonly */
  10135. Array<AttributeInfo> attributeInfos;
  10136. Array<Variant> attributes;
  10137. BlendMode blendMode;
  10138. bool bringToBack;
  10139. bool bringToFront;
  10140. /* readonly */
  10141. String category;
  10142. /* readonly */
  10143. Array<UIElement> children;
  10144. /* writeonly */
  10145. Color color;
  10146. /* readonly */
  10147. bool colorGradient;
  10148. Array<Color> colors;
  10149. XMLFile defaultStyle;
  10150. /* readonly */
  10151. float derivedOpacity;
  10152. /* readonly */
  10153. uint dragButtonCombo;
  10154. /* readonly */
  10155. int dragButtonCount;
  10156. bool elementEventSender;
  10157. int height;
  10158. HorizontalAlignment horizontalAlignment;
  10159. IntVector2 hotSpot;
  10160. IntRect imageRect;
  10161. String name;
  10162. /* readonly */
  10163. uint numAllChildren;
  10164. /* readonly */
  10165. uint numAttributes;
  10166. /* readonly */
  10167. uint numChildren;
  10168. ObjectAnimation objectAnimation;
  10169. float opacity;
  10170. UIElement parent;
  10171. Vector2 position;
  10172. int priority;
  10173. /* readonly */
  10174. int refs;
  10175. /* readonly */
  10176. UIElement root;
  10177. float rotation;
  10178. Vector2 scale;
  10179. IntVector2 size;
  10180. bool sortChildren;
  10181. String style;
  10182. /* readonly */
  10183. Array<String> tags;
  10184. bool temporary;
  10185. Texture texture;
  10186. /* readonly */
  10187. StringHash type;
  10188. /* readonly */
  10189. String typeName;
  10190. bool useDerivedOpacity;
  10191. /* readonly */
  10192. VariantMap vars;
  10193. VerticalAlignment verticalAlignment;
  10194. bool visible;
  10195. /* readonly */
  10196. bool visibleEffective;
  10197. /* readonly */
  10198. int weakRefs;
  10199. int width;
  10200. };
  10201. class Sprite2D
  10202. {
  10203. // Methods:
  10204. bool HasSubscribedToEvent(Object, const String&);
  10205. bool HasSubscribedToEvent(const String&);
  10206. bool Load(File);
  10207. bool Load(VectorBuffer&);
  10208. bool Save(File) const;
  10209. bool Save(VectorBuffer&) const;
  10210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10211. // Properties:
  10212. /* readonly */
  10213. String category;
  10214. Vector2 hotSpot;
  10215. /* readonly */
  10216. uint memoryUse;
  10217. String name;
  10218. IntVector2 offset;
  10219. IntRect rectangle;
  10220. /* readonly */
  10221. int refs;
  10222. Texture2D texture;
  10223. /* readonly */
  10224. StringHash type;
  10225. /* readonly */
  10226. String typeName;
  10227. /* readonly */
  10228. uint useTimer;
  10229. /* readonly */
  10230. int weakRefs;
  10231. };
  10232. class SpriteSheet2D
  10233. {
  10234. // Methods:
  10235. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10236. Sprite2D GetSprite(const String&);
  10237. bool HasSubscribedToEvent(Object, const String&);
  10238. bool HasSubscribedToEvent(const String&);
  10239. bool Load(File);
  10240. bool Load(VectorBuffer&);
  10241. bool Save(File) const;
  10242. bool Save(VectorBuffer&) const;
  10243. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10244. // Properties:
  10245. /* readonly */
  10246. String category;
  10247. /* readonly */
  10248. uint memoryUse;
  10249. String name;
  10250. /* readonly */
  10251. int refs;
  10252. Texture2D texture;
  10253. /* readonly */
  10254. StringHash type;
  10255. /* readonly */
  10256. String typeName;
  10257. /* readonly */
  10258. uint useTimer;
  10259. /* readonly */
  10260. int weakRefs;
  10261. };
  10262. class StaticModel
  10263. {
  10264. // Methods:
  10265. void ApplyAttributes();
  10266. void ApplyMaterialList(const String& = String ( ));
  10267. void DrawDebugGeometry(DebugRenderer, bool);
  10268. Variant GetAttribute(const String&) const;
  10269. ValueAnimation GetAttributeAnimation(const String&) const;
  10270. float GetAttributeAnimationSpeed(const String&) const;
  10271. float GetAttributeAnimationTime(const String&) const;
  10272. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10273. Variant GetAttributeDefault(const String&) const;
  10274. bool GetInterceptNetworkUpdate(const String&) const;
  10275. bool HasSubscribedToEvent(Object, const String&);
  10276. bool HasSubscribedToEvent(const String&);
  10277. bool IsInView(Camera) const;
  10278. bool IsInside(const Vector3&) const;
  10279. bool IsInsideLocal(const Vector3&) const;
  10280. bool Load(File, bool = false);
  10281. bool Load(VectorBuffer&, bool = false);
  10282. bool LoadJSON(const JSONValue&, bool = false);
  10283. bool LoadXML(const XMLElement&, bool = false);
  10284. void MarkNetworkUpdate() const;
  10285. void Remove();
  10286. void RemoveAttributeAnimation(const String&);
  10287. void RemoveInstanceDefault();
  10288. void RemoveObjectAnimation();
  10289. void ResetToDefault();
  10290. bool Save(File) const;
  10291. bool Save(VectorBuffer&) const;
  10292. bool SaveJSON(JSONValue&) const;
  10293. bool SaveXML(XMLElement&) const;
  10294. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10295. void SetAnimationTime(float);
  10296. bool SetAttribute(const String&, const Variant&);
  10297. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10298. void SetAttributeAnimationSpeed(const String&, float);
  10299. void SetAttributeAnimationTime(const String&, float);
  10300. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10301. void SetInterceptNetworkUpdate(const String&, bool);
  10302. // Properties:
  10303. bool animationEnabled;
  10304. /* readonly */
  10305. Array<Variant> attributeDefaults;
  10306. /* readonly */
  10307. Array<AttributeInfo> attributeInfos;
  10308. Array<Variant> attributes;
  10309. /* readonly */
  10310. BoundingBox boundingBox;
  10311. bool castShadows;
  10312. /* readonly */
  10313. String category;
  10314. float drawDistance;
  10315. bool enabled;
  10316. /* readonly */
  10317. bool enabledEffective;
  10318. /* readonly */
  10319. uint id;
  10320. /* readonly */
  10321. bool inView;
  10322. uint lightMask;
  10323. float lodBias;
  10324. /* writeonly */
  10325. Material material;
  10326. Array<Material> materials;
  10327. uint maxLights;
  10328. Model model;
  10329. /* readonly */
  10330. Node node;
  10331. /* readonly */
  10332. uint numAttributes;
  10333. /* readonly */
  10334. uint numGeometries;
  10335. ObjectAnimation objectAnimation;
  10336. bool occludee;
  10337. bool occluder;
  10338. uint occlusionLodLevel;
  10339. /* readonly */
  10340. int refs;
  10341. float shadowDistance;
  10342. uint shadowMask;
  10343. bool temporary;
  10344. /* readonly */
  10345. StringHash type;
  10346. /* readonly */
  10347. String typeName;
  10348. uint viewMask;
  10349. /* readonly */
  10350. int weakRefs;
  10351. /* readonly */
  10352. BoundingBox worldBoundingBox;
  10353. uint zoneMask;
  10354. };
  10355. class StaticModelGroup
  10356. {
  10357. // Methods:
  10358. void AddInstanceNode(Node);
  10359. void ApplyAttributes();
  10360. void ApplyMaterialList(const String& = String ( ));
  10361. void DrawDebugGeometry(DebugRenderer, bool);
  10362. Variant GetAttribute(const String&) const;
  10363. ValueAnimation GetAttributeAnimation(const String&) const;
  10364. float GetAttributeAnimationSpeed(const String&) const;
  10365. float GetAttributeAnimationTime(const String&) const;
  10366. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10367. Variant GetAttributeDefault(const String&) const;
  10368. bool GetInterceptNetworkUpdate(const String&) const;
  10369. bool HasSubscribedToEvent(Object, const String&);
  10370. bool HasSubscribedToEvent(const String&);
  10371. bool IsInView(Camera) const;
  10372. bool Load(File, bool = false);
  10373. bool Load(VectorBuffer&, bool = false);
  10374. bool LoadJSON(const JSONValue&, bool = false);
  10375. bool LoadXML(const XMLElement&, bool = false);
  10376. void MarkNetworkUpdate() const;
  10377. void Remove();
  10378. void RemoveAllInstanceNodes();
  10379. void RemoveAttributeAnimation(const String&);
  10380. void RemoveInstanceDefault();
  10381. void RemoveInstanceNode(Node);
  10382. void RemoveObjectAnimation();
  10383. void ResetToDefault();
  10384. bool Save(File) const;
  10385. bool Save(VectorBuffer&) const;
  10386. bool SaveJSON(JSONValue&) const;
  10387. bool SaveXML(XMLElement&) const;
  10388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10389. void SetAnimationTime(float);
  10390. bool SetAttribute(const String&, const Variant&);
  10391. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10392. void SetAttributeAnimationSpeed(const String&, float);
  10393. void SetAttributeAnimationTime(const String&, float);
  10394. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10395. void SetInterceptNetworkUpdate(const String&, bool);
  10396. // Properties:
  10397. bool animationEnabled;
  10398. /* readonly */
  10399. Array<Variant> attributeDefaults;
  10400. /* readonly */
  10401. Array<AttributeInfo> attributeInfos;
  10402. Array<Variant> attributes;
  10403. /* readonly */
  10404. BoundingBox boundingBox;
  10405. bool castShadows;
  10406. /* readonly */
  10407. String category;
  10408. float drawDistance;
  10409. bool enabled;
  10410. /* readonly */
  10411. bool enabledEffective;
  10412. /* readonly */
  10413. uint id;
  10414. /* readonly */
  10415. bool inView;
  10416. /* readonly */
  10417. Array<Node> instanceNodes;
  10418. uint lightMask;
  10419. float lodBias;
  10420. /* writeonly */
  10421. Material material;
  10422. Array<Material> materials;
  10423. uint maxLights;
  10424. Model model;
  10425. /* readonly */
  10426. Node node;
  10427. /* readonly */
  10428. uint numAttributes;
  10429. /* readonly */
  10430. uint numGeometries;
  10431. /* readonly */
  10432. uint numInstanceNodes;
  10433. ObjectAnimation objectAnimation;
  10434. bool occludee;
  10435. bool occluder;
  10436. uint occlusionLodLevel;
  10437. /* readonly */
  10438. int refs;
  10439. float shadowDistance;
  10440. uint shadowMask;
  10441. bool temporary;
  10442. /* readonly */
  10443. StringHash type;
  10444. /* readonly */
  10445. String typeName;
  10446. uint viewMask;
  10447. /* readonly */
  10448. int weakRefs;
  10449. /* readonly */
  10450. BoundingBox worldBoundingBox;
  10451. /* readonly */
  10452. Zone zone;
  10453. uint zoneMask;
  10454. };
  10455. class StaticSprite2D
  10456. {
  10457. // Methods:
  10458. void ApplyAttributes();
  10459. void DrawDebugGeometry(DebugRenderer, bool);
  10460. Variant GetAttribute(const String&) const;
  10461. ValueAnimation GetAttributeAnimation(const String&) const;
  10462. float GetAttributeAnimationSpeed(const String&) const;
  10463. float GetAttributeAnimationTime(const String&) const;
  10464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10465. Variant GetAttributeDefault(const String&) const;
  10466. bool GetInterceptNetworkUpdate(const String&) const;
  10467. bool HasSubscribedToEvent(Object, const String&);
  10468. bool HasSubscribedToEvent(const String&);
  10469. bool IsInView(Camera) const;
  10470. bool Load(File, bool = false);
  10471. bool Load(VectorBuffer&, bool = false);
  10472. bool LoadJSON(const JSONValue&, bool = false);
  10473. bool LoadXML(const XMLElement&, bool = false);
  10474. void MarkNetworkUpdate() const;
  10475. void Remove();
  10476. void RemoveAttributeAnimation(const String&);
  10477. void RemoveInstanceDefault();
  10478. void RemoveObjectAnimation();
  10479. void ResetToDefault();
  10480. bool Save(File) const;
  10481. bool Save(VectorBuffer&) const;
  10482. bool SaveJSON(JSONValue&) const;
  10483. bool SaveXML(XMLElement&) const;
  10484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10485. void SetAnimationTime(float);
  10486. bool SetAttribute(const String&, const Variant&);
  10487. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10488. void SetAttributeAnimationSpeed(const String&, float);
  10489. void SetAttributeAnimationTime(const String&, float);
  10490. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10491. void SetFlip(bool, bool);
  10492. void SetInterceptNetworkUpdate(const String&, bool);
  10493. // Properties:
  10494. float alpha;
  10495. bool animationEnabled;
  10496. /* readonly */
  10497. Array<Variant> attributeDefaults;
  10498. /* readonly */
  10499. Array<AttributeInfo> attributeInfos;
  10500. Array<Variant> attributes;
  10501. BlendMode blendMode;
  10502. /* readonly */
  10503. BoundingBox boundingBox;
  10504. bool castShadows;
  10505. /* readonly */
  10506. String category;
  10507. Color color;
  10508. Material customMaterial;
  10509. float drawDistance;
  10510. bool enabled;
  10511. /* readonly */
  10512. bool enabledEffective;
  10513. bool flipX;
  10514. bool flipY;
  10515. Vector2 hotSpot;
  10516. /* readonly */
  10517. uint id;
  10518. /* readonly */
  10519. bool inView;
  10520. int layer;
  10521. uint lightMask;
  10522. float lodBias;
  10523. uint maxLights;
  10524. /* readonly */
  10525. Node node;
  10526. /* readonly */
  10527. uint numAttributes;
  10528. ObjectAnimation objectAnimation;
  10529. bool occludee;
  10530. bool occluder;
  10531. int orderInLayer;
  10532. /* readonly */
  10533. int refs;
  10534. float shadowDistance;
  10535. uint shadowMask;
  10536. Sprite2D sprite;
  10537. bool temporary;
  10538. /* readonly */
  10539. StringHash type;
  10540. /* readonly */
  10541. String typeName;
  10542. bool useHotSpot;
  10543. uint viewMask;
  10544. /* readonly */
  10545. int weakRefs;
  10546. /* readonly */
  10547. BoundingBox worldBoundingBox;
  10548. uint zoneMask;
  10549. };
  10550. class String
  10551. {
  10552. // Methods:
  10553. void AppendUTF8(uint);
  10554. uint AtUTF8(uint) const;
  10555. uint ByteOffsetUTF8(uint) const;
  10556. void Clear();
  10557. int Compare(const String&, bool = true) const;
  10558. bool Contains(const String&, bool = true) const;
  10559. bool Contains(uint8, bool = true) const;
  10560. bool EndsWith(const String&, bool = true) const;
  10561. uint Find(const String&, uint = 0, bool = true) const;
  10562. uint Find(uint8, uint = 0, bool = true) const;
  10563. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10564. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10565. void Join(Array<String>&, const String&);
  10566. uint NextUTF8Char(uint&) const;
  10567. void Replace(const String&, const String&, bool = true);
  10568. void Replace(uint8, uint8, bool = true);
  10569. void ReplaceUTF8(uint, uint);
  10570. String Replaced(const String&, const String&, bool = true) const;
  10571. String Replaced(uint8, uint8, bool = true) const;
  10572. void Resize(uint);
  10573. void SetUTF8FromLatin1(const String&);
  10574. Array<String> Split(uint8, bool = false) const;
  10575. bool StartsWith(const String&, bool = true) const;
  10576. String Substring(uint) const;
  10577. String Substring(uint, uint) const;
  10578. String SubstringUTF8(uint) const;
  10579. String SubstringUTF8(uint, uint) const;
  10580. bool ToBool() const;
  10581. Color ToColor() const;
  10582. double ToDouble() const;
  10583. float ToFloat() const;
  10584. int ToInt() const;
  10585. IntRect ToIntRect() const;
  10586. IntVector2 ToIntVector2() const;
  10587. String ToLower() const;
  10588. Matrix3 ToMatrix3() const;
  10589. Matrix3x4 ToMatrix3x4() const;
  10590. Matrix4 ToMatrix4() const;
  10591. Quaternion ToQuaternion() const;
  10592. uint ToUInt() const;
  10593. String ToUpper() const;
  10594. Vector2 ToVector2() const;
  10595. Vector3 ToVector3() const;
  10596. Vector4 ToVector4(bool = false) const;
  10597. Variant ToVectorVariant() const;
  10598. String Trimmed() const;
  10599. // Properties:
  10600. /* readonly */
  10601. bool empty;
  10602. /* readonly */
  10603. uint length;
  10604. /* readonly */
  10605. uint utf8Length;
  10606. };
  10607. class StringHash
  10608. {
  10609. // Methods:
  10610. String ToString() const;
  10611. // Properties:
  10612. /* readonly */
  10613. uint value;
  10614. };
  10615. class Technique
  10616. {
  10617. // Methods:
  10618. Technique Clone(const String& = String ( )) const;
  10619. Pass CreatePass(const String&);
  10620. Pass GetPass(const String&);
  10621. Pass GetSupportedPass(const String&);
  10622. bool HasPass(const String&) const;
  10623. bool HasSubscribedToEvent(Object, const String&);
  10624. bool HasSubscribedToEvent(const String&);
  10625. bool Load(File);
  10626. bool Load(VectorBuffer&);
  10627. void RemovePass(const String&);
  10628. bool Save(File) const;
  10629. bool Save(VectorBuffer&) const;
  10630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10631. // Properties:
  10632. /* readonly */
  10633. String category;
  10634. bool desktop;
  10635. /* readonly */
  10636. uint memoryUse;
  10637. String name;
  10638. /* readonly */
  10639. uint numPasses;
  10640. /* readonly */
  10641. Array<String> passNames;
  10642. /* readonly */
  10643. Array<Pass> passes;
  10644. /* readonly */
  10645. int refs;
  10646. /* readonly */
  10647. bool supported;
  10648. /* readonly */
  10649. StringHash type;
  10650. /* readonly */
  10651. String typeName;
  10652. /* readonly */
  10653. uint useTimer;
  10654. /* readonly */
  10655. int weakRefs;
  10656. };
  10657. class TechniqueEntry
  10658. {
  10659. // Properties:
  10660. float lodDistance;
  10661. int qualityLevel;
  10662. Technique technique;
  10663. };
  10664. class Terrain
  10665. {
  10666. // Methods:
  10667. void ApplyAttributes();
  10668. void ApplyHeightMap();
  10669. void DrawDebugGeometry(DebugRenderer, bool);
  10670. Variant GetAttribute(const String&) const;
  10671. ValueAnimation GetAttributeAnimation(const String&) const;
  10672. float GetAttributeAnimationSpeed(const String&) const;
  10673. float GetAttributeAnimationTime(const String&) const;
  10674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10675. Variant GetAttributeDefault(const String&) const;
  10676. float GetHeight(const Vector3&) const;
  10677. bool GetInterceptNetworkUpdate(const String&) const;
  10678. Vector3 GetNormal(const Vector3&) const;
  10679. TerrainPatch GetPatch(int, int) const;
  10680. bool HasSubscribedToEvent(Object, const String&);
  10681. bool HasSubscribedToEvent(const String&);
  10682. bool Load(File, bool = false);
  10683. bool Load(VectorBuffer&, bool = false);
  10684. bool LoadJSON(const JSONValue&, bool = false);
  10685. bool LoadXML(const XMLElement&, bool = false);
  10686. void MarkNetworkUpdate() const;
  10687. void Remove();
  10688. void RemoveAttributeAnimation(const String&);
  10689. void RemoveInstanceDefault();
  10690. void RemoveObjectAnimation();
  10691. void ResetToDefault();
  10692. bool Save(File) const;
  10693. bool Save(VectorBuffer&) const;
  10694. bool SaveJSON(JSONValue&) const;
  10695. bool SaveXML(XMLElement&) const;
  10696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10697. void SetAnimationTime(float);
  10698. bool SetAttribute(const String&, const Variant&);
  10699. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10700. void SetAttributeAnimationSpeed(const String&, float);
  10701. void SetAttributeAnimationTime(const String&, float);
  10702. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10703. void SetInterceptNetworkUpdate(const String&, bool);
  10704. IntVector2 WorldToHeightMap(const Vector3&) const;
  10705. // Properties:
  10706. bool animationEnabled;
  10707. /* readonly */
  10708. Array<Variant> attributeDefaults;
  10709. /* readonly */
  10710. Array<AttributeInfo> attributeInfos;
  10711. Array<Variant> attributes;
  10712. bool castShadows;
  10713. /* readonly */
  10714. String category;
  10715. float drawDistance;
  10716. bool enabled;
  10717. /* readonly */
  10718. bool enabledEffective;
  10719. Image heightMap;
  10720. /* readonly */
  10721. uint id;
  10722. uint lightMask;
  10723. float lodBias;
  10724. Material material;
  10725. uint maxLights;
  10726. uint maxLodLevels;
  10727. /* readonly */
  10728. Node node;
  10729. /* readonly */
  10730. uint numAttributes;
  10731. /* readonly */
  10732. IntVector2 numPatches;
  10733. /* readonly */
  10734. IntVector2 numVertices;
  10735. ObjectAnimation objectAnimation;
  10736. bool occludee;
  10737. bool occluder;
  10738. uint occlusionLodLevel;
  10739. int patchSize;
  10740. /* readonly */
  10741. Array<TerrainPatch> patches;
  10742. /* readonly */
  10743. int refs;
  10744. float shadowDistance;
  10745. uint shadowMask;
  10746. bool smoothing;
  10747. Vector3 spacing;
  10748. bool temporary;
  10749. /* readonly */
  10750. StringHash type;
  10751. /* readonly */
  10752. String typeName;
  10753. uint viewMask;
  10754. /* readonly */
  10755. int weakRefs;
  10756. uint zoneMask;
  10757. };
  10758. class TerrainPatch
  10759. {
  10760. // Methods:
  10761. void ApplyAttributes();
  10762. void DrawDebugGeometry(DebugRenderer, bool);
  10763. Variant GetAttribute(const String&) const;
  10764. ValueAnimation GetAttributeAnimation(const String&) const;
  10765. float GetAttributeAnimationSpeed(const String&) const;
  10766. float GetAttributeAnimationTime(const String&) const;
  10767. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10768. Variant GetAttributeDefault(const String&) const;
  10769. bool GetInterceptNetworkUpdate(const String&) const;
  10770. bool HasSubscribedToEvent(Object, const String&);
  10771. bool HasSubscribedToEvent(const String&);
  10772. bool IsInView(Camera) const;
  10773. bool Load(File, bool = false);
  10774. bool Load(VectorBuffer&, bool = false);
  10775. bool LoadJSON(const JSONValue&, bool = false);
  10776. bool LoadXML(const XMLElement&, bool = false);
  10777. void MarkNetworkUpdate() const;
  10778. void Remove();
  10779. void RemoveAttributeAnimation(const String&);
  10780. void RemoveInstanceDefault();
  10781. void RemoveObjectAnimation();
  10782. void ResetToDefault();
  10783. bool Save(File) const;
  10784. bool Save(VectorBuffer&) const;
  10785. bool SaveJSON(JSONValue&) const;
  10786. bool SaveXML(XMLElement&) const;
  10787. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10788. void SetAnimationTime(float);
  10789. bool SetAttribute(const String&, const Variant&);
  10790. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10791. void SetAttributeAnimationSpeed(const String&, float);
  10792. void SetAttributeAnimationTime(const String&, float);
  10793. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10794. void SetInterceptNetworkUpdate(const String&, bool);
  10795. // Properties:
  10796. bool animationEnabled;
  10797. /* readonly */
  10798. Array<Variant> attributeDefaults;
  10799. /* readonly */
  10800. Array<AttributeInfo> attributeInfos;
  10801. Array<Variant> attributes;
  10802. /* readonly */
  10803. BoundingBox boundingBox;
  10804. bool castShadows;
  10805. /* readonly */
  10806. String category;
  10807. float drawDistance;
  10808. bool enabled;
  10809. /* readonly */
  10810. bool enabledEffective;
  10811. /* readonly */
  10812. uint id;
  10813. /* readonly */
  10814. bool inView;
  10815. uint lightMask;
  10816. float lodBias;
  10817. uint maxLights;
  10818. /* readonly */
  10819. Node node;
  10820. /* readonly */
  10821. uint numAttributes;
  10822. ObjectAnimation objectAnimation;
  10823. bool occludee;
  10824. bool occluder;
  10825. /* readonly */
  10826. int refs;
  10827. float shadowDistance;
  10828. uint shadowMask;
  10829. bool temporary;
  10830. /* readonly */
  10831. StringHash type;
  10832. /* readonly */
  10833. String typeName;
  10834. uint viewMask;
  10835. /* readonly */
  10836. int weakRefs;
  10837. /* readonly */
  10838. BoundingBox worldBoundingBox;
  10839. uint zoneMask;
  10840. };
  10841. class Text
  10842. {
  10843. // Methods:
  10844. void AddChild(UIElement);
  10845. void AddTag(const String&);
  10846. void AddTags(const String&, int8 = ';');
  10847. void ApplyAttributes();
  10848. void BringToFront();
  10849. void ClearSelection();
  10850. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10851. void DisableLayoutUpdate();
  10852. IntVector2 ElementToScreen(const IntVector2&);
  10853. void EnableLayoutUpdate();
  10854. uint FindChild(UIElement) const;
  10855. Variant GetAttribute(const String&) const;
  10856. ValueAnimation GetAttributeAnimation(const String&) const;
  10857. float GetAttributeAnimationSpeed(const String&) const;
  10858. float GetAttributeAnimationTime(const String&) const;
  10859. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10860. Variant GetAttributeDefault(const String&) const;
  10861. UIElement GetChild(const String&, bool = false) const;
  10862. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10863. Array<UIElement> GetChildren(bool = false) const;
  10864. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10865. UIElement GetElementEventSender() const;
  10866. bool GetInterceptNetworkUpdate(const String&) const;
  10867. uint GetNumChildren(bool) const;
  10868. bool HasSubscribedToEvent(Object, const String&);
  10869. bool HasSubscribedToEvent(const String&);
  10870. bool HasTag(const String&) const;
  10871. void InsertChild(uint, UIElement);
  10872. bool IsInside(IntVector2, bool);
  10873. bool IsInsideCombined(IntVector2, bool);
  10874. bool Load(File, bool = false);
  10875. bool Load(VectorBuffer&, bool = false);
  10876. bool LoadChildXML(XMLFile, XMLFile = null);
  10877. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10878. bool LoadJSON(const JSONValue&, bool = false);
  10879. bool LoadXML(File);
  10880. bool LoadXML(VectorBuffer&);
  10881. bool LoadXML(XMLFile, XMLFile);
  10882. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10883. bool LoadXML(const XMLElement&, bool = false);
  10884. void MarkNetworkUpdate() const;
  10885. void Remove();
  10886. void RemoveAllChildren();
  10887. void RemoveAllTags();
  10888. void RemoveAttributeAnimation(const String&);
  10889. void RemoveChild(UIElement, uint = 0);
  10890. void RemoveChild(uint);
  10891. void RemoveInstanceDefault();
  10892. void RemoveObjectAnimation();
  10893. bool RemoveTag(const String&);
  10894. void ResetDeepEnabled();
  10895. void ResetToDefault();
  10896. bool Save(File) const;
  10897. bool Save(VectorBuffer&) const;
  10898. bool SaveJSON(JSONValue&) const;
  10899. bool SaveXML(File, const String& = "\t");
  10900. bool SaveXML(VectorBuffer&, const String& = "\t");
  10901. bool SaveXML(XMLElement&) const;
  10902. IntVector2 ScreenToElement(const IntVector2&);
  10903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10904. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10905. void SetAnimationTime(float);
  10906. bool SetAttribute(const String&, const Variant&);
  10907. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10908. void SetAttributeAnimationSpeed(const String&, float);
  10909. void SetAttributeAnimationTime(const String&, float);
  10910. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10911. void SetDeepEnabled(bool);
  10912. void SetEnabledRecursive(bool);
  10913. void SetFixedHeight(int);
  10914. void SetFixedSize(int, int);
  10915. void SetFixedWidth(int);
  10916. bool SetFont(Font, int);
  10917. bool SetFont(const String&, int);
  10918. void SetInterceptNetworkUpdate(const String&, bool);
  10919. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10920. void SetMaxSize(int, int);
  10921. void SetMinSize(int, int);
  10922. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10923. void SetPosition(int, int);
  10924. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10925. void SetSize(int, int);
  10926. bool SetStyle(const String&, XMLFile = null);
  10927. bool SetStyle(const XMLElement&);
  10928. bool SetStyleAuto(XMLFile = null);
  10929. void UpdateLayout();
  10930. const Variant& GetVar(const StringHash&);
  10931. // Properties:
  10932. bool animationEnabled;
  10933. /* readonly */
  10934. Array<Variant> attributeDefaults;
  10935. /* readonly */
  10936. Array<AttributeInfo> attributeInfos;
  10937. Array<Variant> attributes;
  10938. bool autoLocalizable;
  10939. bool bringToBack;
  10940. bool bringToFront;
  10941. /* readonly */
  10942. String category;
  10943. /* readonly */
  10944. Array<IntVector2> charPositions;
  10945. /* readonly */
  10946. Array<IntVector2> charSizes;
  10947. /* readonly */
  10948. IntVector2 childOffset;
  10949. /* readonly */
  10950. Array<UIElement> children;
  10951. IntRect clipBorder;
  10952. bool clipChildren;
  10953. /* writeonly */
  10954. Color color;
  10955. /* readonly */
  10956. bool colorGradient;
  10957. Array<Color> colors;
  10958. /* readonly */
  10959. IntRect combinedScreenRect;
  10960. XMLFile defaultStyle;
  10961. /* readonly */
  10962. float derivedOpacity;
  10963. /* readonly */
  10964. uint dragButtonCombo;
  10965. /* readonly */
  10966. int dragButtonCount;
  10967. uint dragDropMode;
  10968. bool editable;
  10969. Color effectColor;
  10970. bool elementEventSender;
  10971. bool enabled;
  10972. /* readonly */
  10973. bool enabledSelf;
  10974. /* readonly */
  10975. bool fixedHeight;
  10976. /* readonly */
  10977. bool fixedSize;
  10978. /* readonly */
  10979. bool fixedWidth;
  10980. bool focus;
  10981. FocusMode focusMode;
  10982. /* readonly */
  10983. Font font;
  10984. /* readonly */
  10985. int fontSize;
  10986. int height;
  10987. HorizontalAlignment horizontalAlignment;
  10988. Color hoverColor;
  10989. /* readonly */
  10990. bool hovering;
  10991. int indent;
  10992. int indentSpacing;
  10993. /* readonly */
  10994. int indentWidth;
  10995. bool internal;
  10996. IntRect layoutBorder;
  10997. Vector2 layoutFlexScale;
  10998. LayoutMode layoutMode;
  10999. int layoutSpacing;
  11000. int maxHeight;
  11001. IntVector2 maxSize;
  11002. int maxWidth;
  11003. int minHeight;
  11004. IntVector2 minSize;
  11005. int minWidth;
  11006. String name;
  11007. /* readonly */
  11008. uint numAllChildren;
  11009. /* readonly */
  11010. uint numAttributes;
  11011. /* readonly */
  11012. uint numChars;
  11013. /* readonly */
  11014. uint numChildren;
  11015. /* readonly */
  11016. uint numRows;
  11017. ObjectAnimation objectAnimation;
  11018. float opacity;
  11019. UIElement parent;
  11020. IntVector2 position;
  11021. int priority;
  11022. /* readonly */
  11023. int refs;
  11024. /* readonly */
  11025. UIElement root;
  11026. /* readonly */
  11027. int rowHeight;
  11028. float rowSpacing;
  11029. /* readonly */
  11030. Array<int> rowWidths;
  11031. /* readonly */
  11032. IntVector2 screenPosition;
  11033. bool selected;
  11034. Color selectionColor;
  11035. /* readonly */
  11036. uint selectionLength;
  11037. /* readonly */
  11038. uint selectionStart;
  11039. IntVector2 size;
  11040. bool sortChildren;
  11041. String style;
  11042. /* readonly */
  11043. Array<String> tags;
  11044. bool temporary;
  11045. String text;
  11046. HorizontalAlignment textAlignment;
  11047. TextEffect textEffect;
  11048. TraversalMode traversalMode;
  11049. /* readonly */
  11050. StringHash type;
  11051. /* readonly */
  11052. String typeName;
  11053. bool useDerivedOpacity;
  11054. /* readonly */
  11055. VariantMap vars;
  11056. VerticalAlignment verticalAlignment;
  11057. bool visible;
  11058. /* readonly */
  11059. bool visibleEffective;
  11060. /* readonly */
  11061. int weakRefs;
  11062. int width;
  11063. bool wordwrap;
  11064. };
  11065. class Text3D
  11066. {
  11067. // Methods:
  11068. void ApplyAttributes();
  11069. void DrawDebugGeometry(DebugRenderer, bool);
  11070. Variant GetAttribute(const String&) const;
  11071. ValueAnimation GetAttributeAnimation(const String&) const;
  11072. float GetAttributeAnimationSpeed(const String&) const;
  11073. float GetAttributeAnimationTime(const String&) const;
  11074. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11075. Variant GetAttributeDefault(const String&) const;
  11076. bool GetInterceptNetworkUpdate(const String&) const;
  11077. bool HasSubscribedToEvent(Object, const String&);
  11078. bool HasSubscribedToEvent(const String&);
  11079. bool IsInView(Camera) const;
  11080. bool Load(File, bool = false);
  11081. bool Load(VectorBuffer&, bool = false);
  11082. bool LoadJSON(const JSONValue&, bool = false);
  11083. bool LoadXML(const XMLElement&, bool = false);
  11084. void MarkNetworkUpdate() const;
  11085. void Remove();
  11086. void RemoveAttributeAnimation(const String&);
  11087. void RemoveInstanceDefault();
  11088. void RemoveObjectAnimation();
  11089. void ResetToDefault();
  11090. bool Save(File) const;
  11091. bool Save(VectorBuffer&) const;
  11092. bool SaveJSON(JSONValue&) const;
  11093. bool SaveXML(XMLElement&) const;
  11094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11095. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11096. void SetAnimationTime(float);
  11097. bool SetAttribute(const String&, const Variant&);
  11098. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11099. void SetAttributeAnimationSpeed(const String&, float);
  11100. void SetAttributeAnimationTime(const String&, float);
  11101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11102. bool SetFont(Font, int);
  11103. bool SetFont(const String&, int);
  11104. void SetInterceptNetworkUpdate(const String&, bool);
  11105. // Properties:
  11106. bool animationEnabled;
  11107. /* readonly */
  11108. Array<Variant> attributeDefaults;
  11109. /* readonly */
  11110. Array<AttributeInfo> attributeInfos;
  11111. Array<Variant> attributes;
  11112. /* readonly */
  11113. BoundingBox boundingBox;
  11114. bool castShadows;
  11115. /* readonly */
  11116. String category;
  11117. /* readonly */
  11118. Array<IntVector2> charPositions;
  11119. /* readonly */
  11120. Array<IntVector2> charSizes;
  11121. /* writeonly */
  11122. Color color;
  11123. Array<Color> colors;
  11124. float drawDistance;
  11125. Color effectColor;
  11126. float effectDepthBias;
  11127. bool enabled;
  11128. /* readonly */
  11129. bool enabledEffective;
  11130. FaceCameraMode faceCameraMode;
  11131. /* readonly */
  11132. Font font;
  11133. /* readonly */
  11134. int fontSize;
  11135. HorizontalAlignment horizontalAlignment;
  11136. /* readonly */
  11137. uint id;
  11138. /* readonly */
  11139. bool inView;
  11140. uint lightMask;
  11141. float lodBias;
  11142. Material material;
  11143. uint maxLights;
  11144. /* readonly */
  11145. Node node;
  11146. /* readonly */
  11147. uint numAttributes;
  11148. /* readonly */
  11149. uint numChars;
  11150. /* readonly */
  11151. uint numRows;
  11152. ObjectAnimation objectAnimation;
  11153. bool occludee;
  11154. bool occluder;
  11155. float opacity;
  11156. /* readonly */
  11157. int refs;
  11158. /* readonly */
  11159. int rowHeight;
  11160. float rowSpacing;
  11161. /* readonly */
  11162. Array<int> rowWidths;
  11163. float shadowDistance;
  11164. uint shadowMask;
  11165. bool temporary;
  11166. String text;
  11167. HorizontalAlignment textAlignment;
  11168. TextEffect textEffect;
  11169. /* readonly */
  11170. StringHash type;
  11171. /* readonly */
  11172. String typeName;
  11173. VerticalAlignment verticalAlignment;
  11174. uint viewMask;
  11175. /* readonly */
  11176. int weakRefs;
  11177. int width;
  11178. bool wordwrap;
  11179. /* readonly */
  11180. BoundingBox worldBoundingBox;
  11181. uint zoneMask;
  11182. };
  11183. class Texture
  11184. {
  11185. // Methods:
  11186. void ClearDataLost();
  11187. bool HasSubscribedToEvent(Object, const String&);
  11188. bool HasSubscribedToEvent(const String&);
  11189. bool Load(File);
  11190. bool Load(VectorBuffer&);
  11191. bool Save(File) const;
  11192. bool Save(VectorBuffer&) const;
  11193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11194. void SetNumLevels(uint);
  11195. // Properties:
  11196. Array<TextureAddressMode> addressMode;
  11197. Texture backupTexture;
  11198. Color borderColor;
  11199. /* readonly */
  11200. String category;
  11201. /* readonly */
  11202. uint components;
  11203. /* readonly */
  11204. bool compressed;
  11205. /* readonly */
  11206. bool dataLost;
  11207. TextureFilterMode filterMode;
  11208. /* readonly */
  11209. uint format;
  11210. /* readonly */
  11211. int height;
  11212. /* readonly */
  11213. Array<int> levelHeight;
  11214. /* readonly */
  11215. Array<int> levelWidth;
  11216. /* readonly */
  11217. uint levels;
  11218. /* readonly */
  11219. uint memoryUse;
  11220. Array<int> mipsToSkip;
  11221. String name;
  11222. /* readonly */
  11223. int refs;
  11224. bool sRGB;
  11225. /* readonly */
  11226. StringHash type;
  11227. /* readonly */
  11228. String typeName;
  11229. /* readonly */
  11230. TextureUsage usage;
  11231. /* readonly */
  11232. uint useTimer;
  11233. /* readonly */
  11234. int weakRefs;
  11235. /* readonly */
  11236. int width;
  11237. };
  11238. class Texture2D
  11239. {
  11240. // Methods:
  11241. void ClearDataLost();
  11242. Image GetImage() const;
  11243. bool HasSubscribedToEvent(Object, const String&);
  11244. bool HasSubscribedToEvent(const String&);
  11245. bool Load(File);
  11246. bool Load(VectorBuffer&);
  11247. bool Save(File) const;
  11248. bool Save(VectorBuffer&) const;
  11249. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11250. bool SetData(Image, bool = false);
  11251. void SetNumLevels(uint);
  11252. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11253. // Properties:
  11254. Array<TextureAddressMode> addressMode;
  11255. Texture backupTexture;
  11256. Color borderColor;
  11257. /* readonly */
  11258. String category;
  11259. /* readonly */
  11260. uint components;
  11261. /* readonly */
  11262. bool compressed;
  11263. /* readonly */
  11264. bool dataLost;
  11265. TextureFilterMode filterMode;
  11266. /* readonly */
  11267. uint format;
  11268. /* readonly */
  11269. int height;
  11270. /* readonly */
  11271. Array<int> levelHeight;
  11272. /* readonly */
  11273. Array<int> levelWidth;
  11274. /* readonly */
  11275. uint levels;
  11276. /* readonly */
  11277. uint memoryUse;
  11278. Array<int> mipsToSkip;
  11279. String name;
  11280. /* readonly */
  11281. int refs;
  11282. /* readonly */
  11283. RenderSurface renderSurface;
  11284. bool sRGB;
  11285. /* readonly */
  11286. StringHash type;
  11287. /* readonly */
  11288. String typeName;
  11289. /* readonly */
  11290. TextureUsage usage;
  11291. /* readonly */
  11292. uint useTimer;
  11293. /* readonly */
  11294. int weakRefs;
  11295. /* readonly */
  11296. int width;
  11297. };
  11298. class Texture3D
  11299. {
  11300. // Methods:
  11301. void ClearDataLost();
  11302. bool HasSubscribedToEvent(Object, const String&);
  11303. bool HasSubscribedToEvent(const String&);
  11304. bool Load(File);
  11305. bool Load(VectorBuffer&);
  11306. bool Save(File) const;
  11307. bool Save(VectorBuffer&) const;
  11308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11309. bool SetData(Image, bool = false);
  11310. void SetNumLevels(uint);
  11311. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11312. // Properties:
  11313. Array<TextureAddressMode> addressMode;
  11314. Texture backupTexture;
  11315. Color borderColor;
  11316. /* readonly */
  11317. String category;
  11318. /* readonly */
  11319. uint components;
  11320. /* readonly */
  11321. bool compressed;
  11322. /* readonly */
  11323. bool dataLost;
  11324. TextureFilterMode filterMode;
  11325. /* readonly */
  11326. uint format;
  11327. /* readonly */
  11328. int height;
  11329. /* readonly */
  11330. Array<int> levelHeight;
  11331. /* readonly */
  11332. Array<int> levelWidth;
  11333. /* readonly */
  11334. uint levels;
  11335. /* readonly */
  11336. uint memoryUse;
  11337. Array<int> mipsToSkip;
  11338. String name;
  11339. /* readonly */
  11340. int refs;
  11341. bool sRGB;
  11342. /* readonly */
  11343. StringHash type;
  11344. /* readonly */
  11345. String typeName;
  11346. /* readonly */
  11347. TextureUsage usage;
  11348. /* readonly */
  11349. uint useTimer;
  11350. /* readonly */
  11351. int weakRefs;
  11352. /* readonly */
  11353. int width;
  11354. };
  11355. class TextureCube
  11356. {
  11357. // Methods:
  11358. void ClearDataLost();
  11359. Image GetImage(CubeMapFace) const;
  11360. bool HasSubscribedToEvent(Object, const String&);
  11361. bool HasSubscribedToEvent(const String&);
  11362. bool Load(File);
  11363. bool Load(VectorBuffer&);
  11364. bool Save(File) const;
  11365. bool Save(VectorBuffer&) const;
  11366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11367. bool SetData(CubeMapFace, Image, bool = false);
  11368. void SetNumLevels(uint);
  11369. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11370. // Properties:
  11371. Array<TextureAddressMode> addressMode;
  11372. Texture backupTexture;
  11373. Color borderColor;
  11374. /* readonly */
  11375. String category;
  11376. /* readonly */
  11377. uint components;
  11378. /* readonly */
  11379. bool compressed;
  11380. /* readonly */
  11381. bool dataLost;
  11382. TextureFilterMode filterMode;
  11383. /* readonly */
  11384. uint format;
  11385. /* readonly */
  11386. int height;
  11387. /* readonly */
  11388. Array<int> levelHeight;
  11389. /* readonly */
  11390. Array<int> levelWidth;
  11391. /* readonly */
  11392. uint levels;
  11393. /* readonly */
  11394. uint memoryUse;
  11395. Array<int> mipsToSkip;
  11396. String name;
  11397. /* readonly */
  11398. int refs;
  11399. /* readonly */
  11400. Array<RenderSurface> renderSurfaces;
  11401. bool sRGB;
  11402. /* readonly */
  11403. StringHash type;
  11404. /* readonly */
  11405. String typeName;
  11406. /* readonly */
  11407. TextureUsage usage;
  11408. /* readonly */
  11409. uint useTimer;
  11410. /* readonly */
  11411. int weakRefs;
  11412. /* readonly */
  11413. int width;
  11414. };
  11415. class TextureFrame
  11416. {
  11417. // Properties:
  11418. float time;
  11419. Rect uv;
  11420. };
  11421. class Tile2D
  11422. {
  11423. // Methods:
  11424. bool HasProperty(const String&) const;
  11425. const String& GetProperty(const String&) const;
  11426. // Properties:
  11427. /* readonly */
  11428. int gid;
  11429. /* readonly */
  11430. int refs;
  11431. /* readonly */
  11432. Sprite2D sprite;
  11433. /* readonly */
  11434. int weakRefs;
  11435. };
  11436. class TileMap2D
  11437. {
  11438. // Methods:
  11439. void ApplyAttributes();
  11440. void DrawDebugGeometry(DebugRenderer, bool);
  11441. Variant GetAttribute(const String&) const;
  11442. ValueAnimation GetAttributeAnimation(const String&) const;
  11443. float GetAttributeAnimationSpeed(const String&) const;
  11444. float GetAttributeAnimationTime(const String&) const;
  11445. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11446. Variant GetAttributeDefault(const String&) const;
  11447. bool GetInterceptNetworkUpdate(const String&) const;
  11448. TileMapLayer2D GetLayer(uint) const;
  11449. bool HasSubscribedToEvent(Object, const String&);
  11450. bool HasSubscribedToEvent(const String&);
  11451. bool Load(File, bool = false);
  11452. bool Load(VectorBuffer&, bool = false);
  11453. bool LoadJSON(const JSONValue&, bool = false);
  11454. bool LoadXML(const XMLElement&, bool = false);
  11455. void MarkNetworkUpdate() const;
  11456. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11457. void Remove();
  11458. void RemoveAttributeAnimation(const String&);
  11459. void RemoveInstanceDefault();
  11460. void RemoveObjectAnimation();
  11461. void ResetToDefault();
  11462. bool Save(File) const;
  11463. bool Save(VectorBuffer&) const;
  11464. bool SaveJSON(JSONValue&) const;
  11465. bool SaveXML(XMLElement&) const;
  11466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11467. void SetAnimationTime(float);
  11468. bool SetAttribute(const String&, const Variant&);
  11469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11470. void SetAttributeAnimationSpeed(const String&, float);
  11471. void SetAttributeAnimationTime(const String&, float);
  11472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11473. void SetInterceptNetworkUpdate(const String&, bool);
  11474. Vector2 TileIndexToPosition(int, int) const;
  11475. // Properties:
  11476. bool animationEnabled;
  11477. /* readonly */
  11478. Array<Variant> attributeDefaults;
  11479. /* readonly */
  11480. Array<AttributeInfo> attributeInfos;
  11481. Array<Variant> attributes;
  11482. /* readonly */
  11483. String category;
  11484. bool enabled;
  11485. /* readonly */
  11486. bool enabledEffective;
  11487. /* readonly */
  11488. uint id;
  11489. /* readonly */
  11490. TileMapInfo2D info;
  11491. /* readonly */
  11492. Node node;
  11493. /* readonly */
  11494. uint numAttributes;
  11495. /* readonly */
  11496. uint numLayers;
  11497. ObjectAnimation objectAnimation;
  11498. /* readonly */
  11499. int refs;
  11500. bool temporary;
  11501. TmxFile2D tmxFile;
  11502. /* readonly */
  11503. StringHash type;
  11504. /* readonly */
  11505. String typeName;
  11506. /* readonly */
  11507. int weakRefs;
  11508. };
  11509. class TileMapInfo2D
  11510. {
  11511. // Properties:
  11512. int height;
  11513. /* readonly */
  11514. float mapHeight;
  11515. /* readonly */
  11516. float mapWidth;
  11517. Orientation2D orientation;
  11518. float tileHeight;
  11519. float tileWidth;
  11520. int width;
  11521. };
  11522. class TileMapLayer2D
  11523. {
  11524. // Methods:
  11525. void ApplyAttributes();
  11526. void DrawDebugGeometry(DebugRenderer, bool);
  11527. Variant GetAttribute(const String&) const;
  11528. ValueAnimation GetAttributeAnimation(const String&) const;
  11529. float GetAttributeAnimationSpeed(const String&) const;
  11530. float GetAttributeAnimationTime(const String&) const;
  11531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11532. Variant GetAttributeDefault(const String&) const;
  11533. bool GetInterceptNetworkUpdate(const String&) const;
  11534. TileMapObject2D GetObject(uint) const;
  11535. Node GetObjectNode(uint) const;
  11536. Tile2D GetTile(int, int) const;
  11537. Node GetTileNode(int, int) const;
  11538. bool HasProperty(const String&) const;
  11539. bool HasSubscribedToEvent(Object, const String&);
  11540. bool HasSubscribedToEvent(const String&);
  11541. bool Load(File, bool = false);
  11542. bool Load(VectorBuffer&, bool = false);
  11543. bool LoadJSON(const JSONValue&, bool = false);
  11544. bool LoadXML(const XMLElement&, bool = false);
  11545. void MarkNetworkUpdate() const;
  11546. void Remove();
  11547. void RemoveAttributeAnimation(const String&);
  11548. void RemoveInstanceDefault();
  11549. void RemoveObjectAnimation();
  11550. void ResetToDefault();
  11551. bool Save(File) const;
  11552. bool Save(VectorBuffer&) const;
  11553. bool SaveJSON(JSONValue&) const;
  11554. bool SaveXML(XMLElement&) const;
  11555. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11556. void SetAnimationTime(float);
  11557. bool SetAttribute(const String&, const Variant&);
  11558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11559. void SetAttributeAnimationSpeed(const String&, float);
  11560. void SetAttributeAnimationTime(const String&, float);
  11561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11562. void SetInterceptNetworkUpdate(const String&, bool);
  11563. const String& GetProperty(const String&) const;
  11564. // Properties:
  11565. bool animationEnabled;
  11566. /* readonly */
  11567. Array<Variant> attributeDefaults;
  11568. /* readonly */
  11569. Array<AttributeInfo> attributeInfos;
  11570. Array<Variant> attributes;
  11571. /* readonly */
  11572. String category;
  11573. int drawOrder;
  11574. bool enabled;
  11575. /* readonly */
  11576. bool enabledEffective;
  11577. /* readonly */
  11578. int height;
  11579. /* readonly */
  11580. uint id;
  11581. /* readonly */
  11582. Node imageNode;
  11583. /* readonly */
  11584. TileMapLayerType2D layerType;
  11585. /* readonly */
  11586. Node node;
  11587. /* readonly */
  11588. uint numAttributes;
  11589. /* readonly */
  11590. uint numObjects;
  11591. ObjectAnimation objectAnimation;
  11592. /* readonly */
  11593. int refs;
  11594. bool temporary;
  11595. /* readonly */
  11596. StringHash type;
  11597. /* readonly */
  11598. String typeName;
  11599. bool visible;
  11600. /* readonly */
  11601. int weakRefs;
  11602. /* readonly */
  11603. int width;
  11604. };
  11605. class TileMapObject2D
  11606. {
  11607. // Methods:
  11608. bool HasProperty(const String&) const;
  11609. const String& GetProperty(const String&) const;
  11610. const Vector2& GetPoint(uint) const;
  11611. // Properties:
  11612. /* readonly */
  11613. String name;
  11614. /* readonly */
  11615. uint numPoints;
  11616. /* readonly */
  11617. TileObjectType2D objectType;
  11618. /* readonly */
  11619. Vector2 position;
  11620. /* readonly */
  11621. int refs;
  11622. /* readonly */
  11623. Vector2 size;
  11624. /* readonly */
  11625. int tileGid;
  11626. /* readonly */
  11627. Sprite2D tileSprite;
  11628. /* readonly */
  11629. String type;
  11630. /* readonly */
  11631. int weakRefs;
  11632. };
  11633. class Time
  11634. {
  11635. // Methods:
  11636. bool HasSubscribedToEvent(Object, const String&);
  11637. bool HasSubscribedToEvent(const String&);
  11638. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11639. // Properties:
  11640. /* readonly */
  11641. String category;
  11642. /* readonly */
  11643. float elapsedTime;
  11644. /* readonly */
  11645. uint frameNumber;
  11646. /* readonly */
  11647. int refs;
  11648. /* readonly */
  11649. uint systemTime;
  11650. /* readonly */
  11651. uint timeSinceEpoch;
  11652. /* readonly */
  11653. String timeStamp;
  11654. /* readonly */
  11655. float timeStep;
  11656. /* readonly */
  11657. StringHash type;
  11658. /* readonly */
  11659. String typeName;
  11660. /* readonly */
  11661. int weakRefs;
  11662. };
  11663. class Timer
  11664. {
  11665. // Methods:
  11666. uint GetMSec(bool);
  11667. void Reset();
  11668. };
  11669. class TmxFile2D
  11670. {
  11671. // Methods:
  11672. bool HasSubscribedToEvent(Object, const String&);
  11673. bool HasSubscribedToEvent(const String&);
  11674. bool Load(File);
  11675. bool Load(VectorBuffer&);
  11676. bool Save(File) const;
  11677. bool Save(VectorBuffer&) const;
  11678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11679. // Properties:
  11680. /* readonly */
  11681. String category;
  11682. /* readonly */
  11683. uint memoryUse;
  11684. String name;
  11685. /* readonly */
  11686. int refs;
  11687. /* readonly */
  11688. StringHash type;
  11689. /* readonly */
  11690. String typeName;
  11691. /* readonly */
  11692. uint useTimer;
  11693. /* readonly */
  11694. int weakRefs;
  11695. };
  11696. class ToolTip
  11697. {
  11698. // Methods:
  11699. void AddChild(UIElement);
  11700. void AddTag(const String&);
  11701. void AddTags(const String&, int8 = ';');
  11702. void ApplyAttributes();
  11703. void BringToFront();
  11704. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11705. void DisableLayoutUpdate();
  11706. IntVector2 ElementToScreen(const IntVector2&);
  11707. void EnableLayoutUpdate();
  11708. uint FindChild(UIElement) const;
  11709. Variant GetAttribute(const String&) const;
  11710. ValueAnimation GetAttributeAnimation(const String&) const;
  11711. float GetAttributeAnimationSpeed(const String&) const;
  11712. float GetAttributeAnimationTime(const String&) const;
  11713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11714. Variant GetAttributeDefault(const String&) const;
  11715. UIElement GetChild(const String&, bool = false) const;
  11716. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11717. Array<UIElement> GetChildren(bool = false) const;
  11718. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11719. UIElement GetElementEventSender() const;
  11720. bool GetInterceptNetworkUpdate(const String&) const;
  11721. uint GetNumChildren(bool) const;
  11722. bool HasSubscribedToEvent(Object, const String&);
  11723. bool HasSubscribedToEvent(const String&);
  11724. bool HasTag(const String&) const;
  11725. void InsertChild(uint, UIElement);
  11726. bool IsInside(IntVector2, bool);
  11727. bool IsInsideCombined(IntVector2, bool);
  11728. bool Load(File, bool = false);
  11729. bool Load(VectorBuffer&, bool = false);
  11730. bool LoadChildXML(XMLFile, XMLFile = null);
  11731. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11732. bool LoadJSON(const JSONValue&, bool = false);
  11733. bool LoadXML(File);
  11734. bool LoadXML(VectorBuffer&);
  11735. bool LoadXML(XMLFile, XMLFile);
  11736. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11737. bool LoadXML(const XMLElement&, bool = false);
  11738. void MarkNetworkUpdate() const;
  11739. void Remove();
  11740. void RemoveAllChildren();
  11741. void RemoveAllTags();
  11742. void RemoveAttributeAnimation(const String&);
  11743. void RemoveChild(UIElement, uint = 0);
  11744. void RemoveChild(uint);
  11745. void RemoveInstanceDefault();
  11746. void RemoveObjectAnimation();
  11747. bool RemoveTag(const String&);
  11748. void ResetDeepEnabled();
  11749. void ResetToDefault();
  11750. bool Save(File) const;
  11751. bool Save(VectorBuffer&) const;
  11752. bool SaveJSON(JSONValue&) const;
  11753. bool SaveXML(File, const String& = "\t");
  11754. bool SaveXML(VectorBuffer&, const String& = "\t");
  11755. bool SaveXML(XMLElement&) const;
  11756. IntVector2 ScreenToElement(const IntVector2&);
  11757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11758. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11759. void SetAnimationTime(float);
  11760. bool SetAttribute(const String&, const Variant&);
  11761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11762. void SetAttributeAnimationSpeed(const String&, float);
  11763. void SetAttributeAnimationTime(const String&, float);
  11764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11765. void SetDeepEnabled(bool);
  11766. void SetEnabledRecursive(bool);
  11767. void SetFixedHeight(int);
  11768. void SetFixedSize(int, int);
  11769. void SetFixedWidth(int);
  11770. void SetInterceptNetworkUpdate(const String&, bool);
  11771. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11772. void SetMaxSize(int, int);
  11773. void SetMinSize(int, int);
  11774. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11775. void SetPosition(int, int);
  11776. void SetSize(int, int);
  11777. bool SetStyle(const String&, XMLFile = null);
  11778. bool SetStyle(const XMLElement&);
  11779. bool SetStyleAuto(XMLFile = null);
  11780. void UpdateLayout();
  11781. const Variant& GetVar(const StringHash&);
  11782. // Properties:
  11783. bool animationEnabled;
  11784. /* readonly */
  11785. Array<Variant> attributeDefaults;
  11786. /* readonly */
  11787. Array<AttributeInfo> attributeInfos;
  11788. Array<Variant> attributes;
  11789. bool bringToBack;
  11790. bool bringToFront;
  11791. /* readonly */
  11792. String category;
  11793. /* readonly */
  11794. IntVector2 childOffset;
  11795. /* readonly */
  11796. Array<UIElement> children;
  11797. IntRect clipBorder;
  11798. bool clipChildren;
  11799. /* writeonly */
  11800. Color color;
  11801. /* readonly */
  11802. bool colorGradient;
  11803. Array<Color> colors;
  11804. /* readonly */
  11805. IntRect combinedScreenRect;
  11806. XMLFile defaultStyle;
  11807. float delay;
  11808. /* readonly */
  11809. float derivedOpacity;
  11810. /* readonly */
  11811. uint dragButtonCombo;
  11812. /* readonly */
  11813. int dragButtonCount;
  11814. uint dragDropMode;
  11815. bool editable;
  11816. bool elementEventSender;
  11817. bool enabled;
  11818. /* readonly */
  11819. bool enabledSelf;
  11820. /* readonly */
  11821. bool fixedHeight;
  11822. /* readonly */
  11823. bool fixedSize;
  11824. /* readonly */
  11825. bool fixedWidth;
  11826. bool focus;
  11827. FocusMode focusMode;
  11828. int height;
  11829. HorizontalAlignment horizontalAlignment;
  11830. /* readonly */
  11831. bool hovering;
  11832. int indent;
  11833. int indentSpacing;
  11834. /* readonly */
  11835. int indentWidth;
  11836. bool internal;
  11837. IntRect layoutBorder;
  11838. Vector2 layoutFlexScale;
  11839. LayoutMode layoutMode;
  11840. int layoutSpacing;
  11841. int maxHeight;
  11842. IntVector2 maxSize;
  11843. int maxWidth;
  11844. int minHeight;
  11845. IntVector2 minSize;
  11846. int minWidth;
  11847. String name;
  11848. /* readonly */
  11849. uint numAllChildren;
  11850. /* readonly */
  11851. uint numAttributes;
  11852. /* readonly */
  11853. uint numChildren;
  11854. ObjectAnimation objectAnimation;
  11855. float opacity;
  11856. UIElement parent;
  11857. IntVector2 position;
  11858. int priority;
  11859. /* readonly */
  11860. int refs;
  11861. /* readonly */
  11862. UIElement root;
  11863. /* readonly */
  11864. IntVector2 screenPosition;
  11865. bool selected;
  11866. IntVector2 size;
  11867. bool sortChildren;
  11868. String style;
  11869. /* readonly */
  11870. Array<String> tags;
  11871. bool temporary;
  11872. TraversalMode traversalMode;
  11873. /* readonly */
  11874. StringHash type;
  11875. /* readonly */
  11876. String typeName;
  11877. bool useDerivedOpacity;
  11878. /* readonly */
  11879. VariantMap vars;
  11880. VerticalAlignment verticalAlignment;
  11881. bool visible;
  11882. /* readonly */
  11883. bool visibleEffective;
  11884. /* readonly */
  11885. int weakRefs;
  11886. int width;
  11887. };
  11888. class TouchState
  11889. {
  11890. // Properties:
  11891. IntVector2 delta;
  11892. IntVector2 lastPosition;
  11893. IntVector2 position;
  11894. float pressure;
  11895. int touchID;
  11896. /* readonly */
  11897. UIElement touchedElement;
  11898. };
  11899. class UI
  11900. {
  11901. // Methods:
  11902. void Clear();
  11903. void DebugDraw(UIElement);
  11904. UIElement GetElementAt(const IntVector2&, bool = true);
  11905. UIElement GetElementAt(int, int, bool = true);
  11906. bool HasModalElement() const;
  11907. bool HasSubscribedToEvent(Object, const String&);
  11908. bool HasSubscribedToEvent(const String&);
  11909. bool IsDragging() const;
  11910. UIElement LoadLayout(File);
  11911. UIElement LoadLayout(File, XMLFile);
  11912. UIElement LoadLayout(VectorBuffer&);
  11913. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11914. UIElement LoadLayout(XMLFile);
  11915. UIElement LoadLayout(XMLFile, XMLFile);
  11916. bool SaveLayout(File, UIElement);
  11917. bool SaveLayout(VectorBuffer&, UIElement);
  11918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11919. void SetFocusElement(UIElement, bool = false);
  11920. void SetHeight(float);
  11921. void SetWidth(float);
  11922. const Array<UIElement> GetDragElements();
  11923. // Properties:
  11924. /* readonly */
  11925. String category;
  11926. String clipBoardText;
  11927. Cursor cursor;
  11928. /* readonly */
  11929. IntVector2 cursorPosition;
  11930. float defaultToolTipDelay;
  11931. float doubleClickInterval;
  11932. int dragBeginDistance;
  11933. float dragBeginInterval;
  11934. UIElement focusElement;
  11935. bool forceAutoHint;
  11936. /* readonly */
  11937. UIElement frontElement;
  11938. int maxFontTextureSize;
  11939. /* readonly */
  11940. UIElement modalRoot;
  11941. bool nonFocusedMouseWheel;
  11942. /* readonly */
  11943. int refs;
  11944. /* readonly */
  11945. UIElement root;
  11946. float scale;
  11947. /* readonly */
  11948. StringHash type;
  11949. /* readonly */
  11950. String typeName;
  11951. bool useMutableGlyphs;
  11952. bool useScreenKeyboard;
  11953. bool useSystemClipboard;
  11954. /* readonly */
  11955. int weakRefs;
  11956. };
  11957. class UIElement
  11958. {
  11959. // Methods:
  11960. void AddChild(UIElement);
  11961. void AddTag(const String&);
  11962. void AddTags(const String&, int8 = ';');
  11963. void ApplyAttributes();
  11964. void BringToFront();
  11965. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11966. void DisableLayoutUpdate();
  11967. IntVector2 ElementToScreen(const IntVector2&);
  11968. void EnableLayoutUpdate();
  11969. uint FindChild(UIElement) const;
  11970. Variant GetAttribute(const String&) const;
  11971. ValueAnimation GetAttributeAnimation(const String&) const;
  11972. float GetAttributeAnimationSpeed(const String&) const;
  11973. float GetAttributeAnimationTime(const String&) const;
  11974. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11975. Variant GetAttributeDefault(const String&) const;
  11976. UIElement GetChild(const String&, bool = false) const;
  11977. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11978. Array<UIElement> GetChildren(bool = false) const;
  11979. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11980. UIElement GetElementEventSender() const;
  11981. bool GetInterceptNetworkUpdate(const String&) const;
  11982. uint GetNumChildren(bool) const;
  11983. bool HasSubscribedToEvent(Object, const String&);
  11984. bool HasSubscribedToEvent(const String&);
  11985. bool HasTag(const String&) const;
  11986. void InsertChild(uint, UIElement);
  11987. bool IsInside(IntVector2, bool);
  11988. bool IsInsideCombined(IntVector2, bool);
  11989. bool Load(File, bool = false);
  11990. bool Load(VectorBuffer&, bool = false);
  11991. bool LoadChildXML(XMLFile, XMLFile = null);
  11992. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11993. bool LoadJSON(const JSONValue&, bool = false);
  11994. bool LoadXML(File);
  11995. bool LoadXML(VectorBuffer&);
  11996. bool LoadXML(XMLFile, XMLFile);
  11997. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11998. bool LoadXML(const XMLElement&, bool = false);
  11999. void MarkNetworkUpdate() const;
  12000. void Remove();
  12001. void RemoveAllChildren();
  12002. void RemoveAllTags();
  12003. void RemoveAttributeAnimation(const String&);
  12004. void RemoveChild(UIElement, uint = 0);
  12005. void RemoveChild(uint);
  12006. void RemoveInstanceDefault();
  12007. void RemoveObjectAnimation();
  12008. bool RemoveTag(const String&);
  12009. void ResetDeepEnabled();
  12010. void ResetToDefault();
  12011. bool Save(File) const;
  12012. bool Save(VectorBuffer&) const;
  12013. bool SaveJSON(JSONValue&) const;
  12014. bool SaveXML(File, const String& = "\t");
  12015. bool SaveXML(VectorBuffer&, const String& = "\t");
  12016. bool SaveXML(XMLElement&) const;
  12017. IntVector2 ScreenToElement(const IntVector2&);
  12018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12019. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12020. void SetAnimationTime(float);
  12021. bool SetAttribute(const String&, const Variant&);
  12022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12023. void SetAttributeAnimationSpeed(const String&, float);
  12024. void SetAttributeAnimationTime(const String&, float);
  12025. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12026. void SetDeepEnabled(bool);
  12027. void SetEnabledRecursive(bool);
  12028. void SetFixedHeight(int);
  12029. void SetFixedSize(int, int);
  12030. void SetFixedWidth(int);
  12031. void SetInterceptNetworkUpdate(const String&, bool);
  12032. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12033. void SetMaxSize(int, int);
  12034. void SetMinSize(int, int);
  12035. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12036. void SetPosition(int, int);
  12037. void SetSize(int, int);
  12038. bool SetStyle(const String&, XMLFile = null);
  12039. bool SetStyle(const XMLElement&);
  12040. bool SetStyleAuto(XMLFile = null);
  12041. void UpdateLayout();
  12042. const Variant& GetVar(const StringHash&);
  12043. // Properties:
  12044. bool animationEnabled;
  12045. /* readonly */
  12046. Array<Variant> attributeDefaults;
  12047. /* readonly */
  12048. Array<AttributeInfo> attributeInfos;
  12049. Array<Variant> attributes;
  12050. bool bringToBack;
  12051. bool bringToFront;
  12052. /* readonly */
  12053. String category;
  12054. /* readonly */
  12055. IntVector2 childOffset;
  12056. /* readonly */
  12057. Array<UIElement> children;
  12058. IntRect clipBorder;
  12059. bool clipChildren;
  12060. /* writeonly */
  12061. Color color;
  12062. /* readonly */
  12063. bool colorGradient;
  12064. Array<Color> colors;
  12065. /* readonly */
  12066. IntRect combinedScreenRect;
  12067. XMLFile defaultStyle;
  12068. /* readonly */
  12069. float derivedOpacity;
  12070. /* readonly */
  12071. uint dragButtonCombo;
  12072. /* readonly */
  12073. int dragButtonCount;
  12074. uint dragDropMode;
  12075. bool editable;
  12076. bool elementEventSender;
  12077. bool enabled;
  12078. /* readonly */
  12079. bool enabledSelf;
  12080. /* readonly */
  12081. bool fixedHeight;
  12082. /* readonly */
  12083. bool fixedSize;
  12084. /* readonly */
  12085. bool fixedWidth;
  12086. bool focus;
  12087. FocusMode focusMode;
  12088. int height;
  12089. HorizontalAlignment horizontalAlignment;
  12090. /* readonly */
  12091. bool hovering;
  12092. int indent;
  12093. int indentSpacing;
  12094. /* readonly */
  12095. int indentWidth;
  12096. bool internal;
  12097. IntRect layoutBorder;
  12098. Vector2 layoutFlexScale;
  12099. LayoutMode layoutMode;
  12100. int layoutSpacing;
  12101. int maxHeight;
  12102. IntVector2 maxSize;
  12103. int maxWidth;
  12104. int minHeight;
  12105. IntVector2 minSize;
  12106. int minWidth;
  12107. String name;
  12108. /* readonly */
  12109. uint numAllChildren;
  12110. /* readonly */
  12111. uint numAttributes;
  12112. /* readonly */
  12113. uint numChildren;
  12114. ObjectAnimation objectAnimation;
  12115. float opacity;
  12116. UIElement parent;
  12117. IntVector2 position;
  12118. int priority;
  12119. /* readonly */
  12120. int refs;
  12121. /* readonly */
  12122. UIElement root;
  12123. /* readonly */
  12124. IntVector2 screenPosition;
  12125. bool selected;
  12126. IntVector2 size;
  12127. bool sortChildren;
  12128. String style;
  12129. /* readonly */
  12130. Array<String> tags;
  12131. bool temporary;
  12132. TraversalMode traversalMode;
  12133. /* readonly */
  12134. StringHash type;
  12135. /* readonly */
  12136. String typeName;
  12137. bool useDerivedOpacity;
  12138. /* readonly */
  12139. VariantMap vars;
  12140. VerticalAlignment verticalAlignment;
  12141. bool visible;
  12142. /* readonly */
  12143. bool visibleEffective;
  12144. /* readonly */
  12145. int weakRefs;
  12146. int width;
  12147. };
  12148. class ValueAnimation
  12149. {
  12150. // Methods:
  12151. bool HasSubscribedToEvent(Object, const String&);
  12152. bool HasSubscribedToEvent(const String&);
  12153. bool Load(File);
  12154. bool Load(VectorBuffer&);
  12155. bool Save(File) const;
  12156. bool Save(VectorBuffer&) const;
  12157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12158. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12159. void SetKeyFrame(float, const Variant&);
  12160. // Properties:
  12161. /* readonly */
  12162. String category;
  12163. InterpMethod interpolationMethod;
  12164. /* readonly */
  12165. uint memoryUse;
  12166. String name;
  12167. /* readonly */
  12168. int refs;
  12169. float splineTension;
  12170. /* readonly */
  12171. StringHash type;
  12172. /* readonly */
  12173. String typeName;
  12174. /* readonly */
  12175. uint useTimer;
  12176. VariantType valueType;
  12177. /* readonly */
  12178. int weakRefs;
  12179. };
  12180. class Variant
  12181. {
  12182. // Methods:
  12183. void Clear();
  12184. const Color& GetColor() const;
  12185. void FromString(VariantType, const String&);
  12186. void FromString(const String&, const String&);
  12187. bool GetBool() const;
  12188. VectorBuffer GetBuffer() const;
  12189. double GetDouble() const;
  12190. float GetFloat() const;
  12191. int GetInt() const;
  12192. RefCounted GetPtr() const;
  12193. ScriptObject GetScriptObject() const;
  12194. StringHash GetStringHash() const;
  12195. Array<String> GetStringVector() const;
  12196. uint GetUInt() const;
  12197. Array<Variant> GetVariantVector() const;
  12198. const IntRect& GetIntRect() const;
  12199. const IntVector2& GetIntVector2() const;
  12200. const Matrix3& GetMatrix3() const;
  12201. const Matrix3x4& GetMatrix3x4() const;
  12202. const Matrix4& GetMatrix4() const;
  12203. const Quaternion& GetQuaternion() const;
  12204. const ResourceRef& GetResourceRef() const;
  12205. const ResourceRefList& GetResourceRefList() const;
  12206. const String& GetString() const;
  12207. String ToString() const;
  12208. const VariantMap& GetVariantMap() const;
  12209. const Vector2& GetVector2() const;
  12210. const Vector3& GetVector3() const;
  12211. const Vector4& GetVector4() const;
  12212. // Properties:
  12213. /* readonly */
  12214. bool empty;
  12215. /* readonly */
  12216. VariantType type;
  12217. /* readonly */
  12218. String typeName;
  12219. /* readonly */
  12220. bool zero;
  12221. };
  12222. class VariantMap
  12223. {
  12224. // Methods:
  12225. void Clear();
  12226. bool Contains(StringHash) const;
  12227. bool Contains(const String&) const;
  12228. bool Erase(StringHash);
  12229. bool Erase(const String&);
  12230. // Properties:
  12231. /* readonly */
  12232. Array<StringHash> keys;
  12233. /* readonly */
  12234. uint length;
  12235. /* readonly */
  12236. Array<Variant> values;
  12237. };
  12238. class Vector2
  12239. {
  12240. // Methods:
  12241. Vector2 Abs() const;
  12242. float AbsDotProduct(const Vector2&) const;
  12243. float Angle(const Vector2&) const;
  12244. float DotProduct(const Vector2&) const;
  12245. bool Equals(const Vector2&) const;
  12246. bool IsNaN() const;
  12247. Vector2 Lerp(const Vector2&, float) const;
  12248. void Normalize();
  12249. Vector2 Normalized() const;
  12250. String ToString() const;
  12251. // Properties:
  12252. /* readonly */
  12253. Array<float> data;
  12254. /* readonly */
  12255. float length;
  12256. /* readonly */
  12257. float lengthSquared;
  12258. float x;
  12259. float y;
  12260. };
  12261. class Vector3
  12262. {
  12263. // Methods:
  12264. Vector3 Abs() const;
  12265. float AbsDotProduct(const Vector3&) const;
  12266. float Angle(const Vector3&) const;
  12267. Vector3 CrossProduct(const Vector3&) const;
  12268. float DotProduct(const Vector3&) const;
  12269. bool Equals(const Vector3&) const;
  12270. bool IsNaN() const;
  12271. Vector3 Lerp(const Vector3&, float) const;
  12272. void Normalize();
  12273. Vector3 Normalized() const;
  12274. String ToString() const;
  12275. // Properties:
  12276. /* readonly */
  12277. Array<float> data;
  12278. /* readonly */
  12279. float length;
  12280. /* readonly */
  12281. float lengthSquared;
  12282. float x;
  12283. float y;
  12284. float z;
  12285. };
  12286. class Vector4
  12287. {
  12288. // Methods:
  12289. Vector4 Abs() const;
  12290. float AbsDotProduct(const Vector4&) const;
  12291. float DotProduct(const Vector4&) const;
  12292. bool Equals(const Vector4&) const;
  12293. bool IsNaN() const;
  12294. Vector4 Lerp(const Vector4&, float) const;
  12295. String ToString() const;
  12296. // Properties:
  12297. /* readonly */
  12298. Array<float> data;
  12299. float w;
  12300. float x;
  12301. float y;
  12302. float z;
  12303. };
  12304. class VectorBuffer
  12305. {
  12306. // Methods:
  12307. void Clear();
  12308. Array<uint8> Read(uint);
  12309. bool ReadBool();
  12310. BoundingBox ReadBoundingBox();
  12311. int8 ReadByte();
  12312. Color ReadColor();
  12313. double ReadDouble();
  12314. String ReadFileID();
  12315. float ReadFloat();
  12316. int ReadInt();
  12317. IntRect ReadIntRect();
  12318. IntVector2 ReadIntVector2();
  12319. String ReadLine();
  12320. Matrix3 ReadMatrix3();
  12321. Matrix3x4 ReadMatrix3x4();
  12322. Matrix4 ReadMatrix4();
  12323. uint ReadNetID();
  12324. Quaternion ReadPackedQuaternion();
  12325. Vector3 ReadPackedVector3(float);
  12326. Quaternion ReadQuaternion();
  12327. int16 ReadShort();
  12328. String ReadString();
  12329. StringHash ReadStringHash();
  12330. uint8 ReadUByte();
  12331. uint ReadUInt();
  12332. uint16 ReadUShort();
  12333. uint ReadVLE();
  12334. Variant ReadVariant();
  12335. VariantMap ReadVariantMap();
  12336. Vector2 ReadVector2();
  12337. Vector3 ReadVector3();
  12338. Vector4 ReadVector4();
  12339. VectorBuffer ReadVectorBuffer(uint);
  12340. void Resize(uint);
  12341. uint Seek(uint);
  12342. void SetData(Deserializer, uint);
  12343. uint Write(Array<uint8>);
  12344. bool WriteBool(bool);
  12345. bool WriteBoundingBox(const BoundingBox&);
  12346. bool WriteByte(int8);
  12347. bool WriteColor(const Color&);
  12348. bool WriteDouble(double);
  12349. bool WriteFileID(const String&);
  12350. bool WriteFloat(float);
  12351. bool WriteInt(int);
  12352. bool WriteIntRect(const IntRect&);
  12353. bool WriteIntVector2(const IntVector2&);
  12354. bool WriteLine(const String&);
  12355. bool WriteMatrix3(const Matrix3&);
  12356. bool WriteMatrix3x4(const Matrix3x4&);
  12357. bool WriteMatrix4(const Matrix4&);
  12358. bool WriteNetID(uint);
  12359. bool WritePackedQuaternion(const Quaternion&);
  12360. bool WritePackedVector3(const Vector3&, float);
  12361. bool WriteQuaternion(const Quaternion&);
  12362. bool WriteShort(int16);
  12363. bool WriteString(const String&);
  12364. bool WriteStringHash(const StringHash&);
  12365. bool WriteUByte(uint8);
  12366. bool WriteUInt(uint);
  12367. bool WriteUShort(uint16);
  12368. bool WriteVLE(uint);
  12369. bool WriteVariant(const Variant&);
  12370. bool WriteVariantMap(const VariantMap&);
  12371. bool WriteVector2(const Vector2&);
  12372. bool WriteVector3(const Vector3&);
  12373. bool WriteVector4(const Vector4&);
  12374. bool WriteVectorBuffer(const VectorBuffer&);
  12375. // Properties:
  12376. /* readonly */
  12377. uint checksum;
  12378. /* readonly */
  12379. bool eof;
  12380. /* readonly */
  12381. String name;
  12382. /* readonly */
  12383. uint position;
  12384. /* readonly */
  12385. uint size;
  12386. };
  12387. class VertexBuffer
  12388. {
  12389. // Methods:
  12390. VectorBuffer GetData();
  12391. bool HasSubscribedToEvent(Object, const String&);
  12392. bool HasSubscribedToEvent(const String&);
  12393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12394. bool SetData(VectorBuffer&);
  12395. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12396. void SetSize(uint, uint, bool = false);
  12397. // Properties:
  12398. /* readonly */
  12399. String category;
  12400. /* readonly */
  12401. bool dynamic;
  12402. /* readonly */
  12403. uint elementMask;
  12404. /* readonly */
  12405. int refs;
  12406. bool shadowed;
  12407. /* readonly */
  12408. StringHash type;
  12409. /* readonly */
  12410. String typeName;
  12411. /* readonly */
  12412. uint vertexCount;
  12413. /* readonly */
  12414. uint vertexSize;
  12415. /* readonly */
  12416. int weakRefs;
  12417. };
  12418. class View3D
  12419. {
  12420. // Methods:
  12421. void AddChild(UIElement);
  12422. void AddTag(const String&);
  12423. void AddTags(const String&, int8 = ';');
  12424. void ApplyAttributes();
  12425. void BringToFront();
  12426. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12427. void DisableLayoutUpdate();
  12428. IntVector2 ElementToScreen(const IntVector2&);
  12429. void EnableLayoutUpdate();
  12430. uint FindChild(UIElement) const;
  12431. Variant GetAttribute(const String&) const;
  12432. ValueAnimation GetAttributeAnimation(const String&) const;
  12433. float GetAttributeAnimationSpeed(const String&) const;
  12434. float GetAttributeAnimationTime(const String&) const;
  12435. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12436. Variant GetAttributeDefault(const String&) const;
  12437. UIElement GetChild(const String&, bool = false) const;
  12438. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12439. Array<UIElement> GetChildren(bool = false) const;
  12440. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12441. UIElement GetElementEventSender() const;
  12442. bool GetInterceptNetworkUpdate(const String&) const;
  12443. uint GetNumChildren(bool) const;
  12444. bool HasSubscribedToEvent(Object, const String&);
  12445. bool HasSubscribedToEvent(const String&);
  12446. bool HasTag(const String&) const;
  12447. void InsertChild(uint, UIElement);
  12448. bool IsInside(IntVector2, bool);
  12449. bool IsInsideCombined(IntVector2, bool);
  12450. bool Load(File, bool = false);
  12451. bool Load(VectorBuffer&, bool = false);
  12452. bool LoadChildXML(XMLFile, XMLFile = null);
  12453. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12454. bool LoadJSON(const JSONValue&, bool = false);
  12455. bool LoadXML(File);
  12456. bool LoadXML(VectorBuffer&);
  12457. bool LoadXML(XMLFile, XMLFile);
  12458. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12459. bool LoadXML(const XMLElement&, bool = false);
  12460. void MarkNetworkUpdate() const;
  12461. void QueueUpdate();
  12462. void Remove();
  12463. void RemoveAllChildren();
  12464. void RemoveAllTags();
  12465. void RemoveAttributeAnimation(const String&);
  12466. void RemoveChild(UIElement, uint = 0);
  12467. void RemoveChild(uint);
  12468. void RemoveInstanceDefault();
  12469. void RemoveObjectAnimation();
  12470. bool RemoveTag(const String&);
  12471. void ResetDeepEnabled();
  12472. void ResetToDefault();
  12473. bool Save(File) const;
  12474. bool Save(VectorBuffer&) const;
  12475. bool SaveJSON(JSONValue&) const;
  12476. bool SaveXML(File, const String& = "\t");
  12477. bool SaveXML(VectorBuffer&, const String& = "\t");
  12478. bool SaveXML(XMLElement&) const;
  12479. IntVector2 ScreenToElement(const IntVector2&);
  12480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12481. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12482. void SetAnimationTime(float);
  12483. bool SetAttribute(const String&, const Variant&);
  12484. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12485. void SetAttributeAnimationSpeed(const String&, float);
  12486. void SetAttributeAnimationTime(const String&, float);
  12487. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12488. void SetDeepEnabled(bool);
  12489. void SetEnabledRecursive(bool);
  12490. void SetFixedHeight(int);
  12491. void SetFixedSize(int, int);
  12492. void SetFixedWidth(int);
  12493. void SetFullImageRect();
  12494. void SetHoverOffset(int, int);
  12495. void SetInterceptNetworkUpdate(const String&, bool);
  12496. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12497. void SetMaxSize(int, int);
  12498. void SetMinSize(int, int);
  12499. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12500. void SetPosition(int, int);
  12501. void SetSize(int, int);
  12502. bool SetStyle(const String&, XMLFile = null);
  12503. bool SetStyle(const XMLElement&);
  12504. bool SetStyleAuto(XMLFile = null);
  12505. void SetView(Scene, Camera, bool = true);
  12506. void UpdateLayout();
  12507. const Variant& GetVar(const StringHash&);
  12508. // Properties:
  12509. bool animationEnabled;
  12510. /* readonly */
  12511. Array<Variant> attributeDefaults;
  12512. /* readonly */
  12513. Array<AttributeInfo> attributeInfos;
  12514. Array<Variant> attributes;
  12515. bool autoUpdate;
  12516. BlendMode blendMode;
  12517. IntRect border;
  12518. bool bringToBack;
  12519. bool bringToFront;
  12520. /* readonly */
  12521. Node cameraNode;
  12522. /* readonly */
  12523. String category;
  12524. /* readonly */
  12525. IntVector2 childOffset;
  12526. /* readonly */
  12527. Array<UIElement> children;
  12528. IntRect clipBorder;
  12529. bool clipChildren;
  12530. /* writeonly */
  12531. Color color;
  12532. /* readonly */
  12533. bool colorGradient;
  12534. Array<Color> colors;
  12535. /* readonly */
  12536. IntRect combinedScreenRect;
  12537. XMLFile defaultStyle;
  12538. /* readonly */
  12539. Texture2D depthTexture;
  12540. /* readonly */
  12541. float derivedOpacity;
  12542. /* readonly */
  12543. uint dragButtonCombo;
  12544. /* readonly */
  12545. int dragButtonCount;
  12546. uint dragDropMode;
  12547. bool editable;
  12548. bool elementEventSender;
  12549. bool enabled;
  12550. /* readonly */
  12551. bool enabledSelf;
  12552. /* readonly */
  12553. bool fixedHeight;
  12554. bool fixedHeightResizing;
  12555. /* readonly */
  12556. bool fixedSize;
  12557. /* readonly */
  12558. bool fixedWidth;
  12559. bool fixedWidthResizing;
  12560. bool focus;
  12561. FocusMode focusMode;
  12562. uint format;
  12563. int height;
  12564. HorizontalAlignment horizontalAlignment;
  12565. IntVector2 hoverOffset;
  12566. /* readonly */
  12567. bool hovering;
  12568. IntRect imageBorder;
  12569. IntRect imageRect;
  12570. int indent;
  12571. int indentSpacing;
  12572. /* readonly */
  12573. int indentWidth;
  12574. bool internal;
  12575. IntRect layoutBorder;
  12576. Vector2 layoutFlexScale;
  12577. LayoutMode layoutMode;
  12578. int layoutSpacing;
  12579. int maxHeight;
  12580. IntVector2 maxSize;
  12581. int maxWidth;
  12582. int minHeight;
  12583. IntVector2 minSize;
  12584. int minWidth;
  12585. bool modal;
  12586. bool modalAutoDismiss;
  12587. Color modalFrameColor;
  12588. IntVector2 modalFrameSize;
  12589. Color modalShadeColor;
  12590. bool movable;
  12591. String name;
  12592. /* readonly */
  12593. uint numAllChildren;
  12594. /* readonly */
  12595. uint numAttributes;
  12596. /* readonly */
  12597. uint numChildren;
  12598. ObjectAnimation objectAnimation;
  12599. float opacity;
  12600. UIElement parent;
  12601. IntVector2 position;
  12602. int priority;
  12603. /* readonly */
  12604. int refs;
  12605. /* readonly */
  12606. Texture2D renderTexture;
  12607. bool resizable;
  12608. IntRect resizeBorder;
  12609. /* readonly */
  12610. UIElement root;
  12611. /* readonly */
  12612. Scene scene;
  12613. /* readonly */
  12614. IntVector2 screenPosition;
  12615. bool selected;
  12616. IntVector2 size;
  12617. bool sortChildren;
  12618. String style;
  12619. /* readonly */
  12620. Array<String> tags;
  12621. bool temporary;
  12622. Texture texture;
  12623. bool tiled;
  12624. TraversalMode traversalMode;
  12625. /* readonly */
  12626. StringHash type;
  12627. /* readonly */
  12628. String typeName;
  12629. bool useDerivedOpacity;
  12630. /* readonly */
  12631. VariantMap vars;
  12632. VerticalAlignment verticalAlignment;
  12633. /* readonly */
  12634. Viewport viewport;
  12635. bool visible;
  12636. /* readonly */
  12637. bool visibleEffective;
  12638. /* readonly */
  12639. int weakRefs;
  12640. int width;
  12641. };
  12642. class Viewport
  12643. {
  12644. // Methods:
  12645. Ray GetScreenRay(int, int) const;
  12646. bool HasSubscribedToEvent(Object, const String&);
  12647. bool HasSubscribedToEvent(const String&);
  12648. Vector3 ScreenToWorldPoint(int, int, float) const;
  12649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12650. void SetRenderPath(XMLFile);
  12651. Vector2 WorldToScreenPoint(const Vector3&) const;
  12652. // Properties:
  12653. Camera camera;
  12654. /* readonly */
  12655. String category;
  12656. Camera cullCamera;
  12657. bool drawDebug;
  12658. IntRect rect;
  12659. /* readonly */
  12660. int refs;
  12661. RenderPath renderPath;
  12662. Scene scene;
  12663. /* readonly */
  12664. StringHash type;
  12665. /* readonly */
  12666. String typeName;
  12667. /* readonly */
  12668. int weakRefs;
  12669. };
  12670. class WeakHandle
  12671. {
  12672. // Methods:
  12673. RefCounted Get() const;
  12674. // Properties:
  12675. /* readonly */
  12676. bool expired;
  12677. /* readonly */
  12678. int refs;
  12679. /* readonly */
  12680. int weakRefs;
  12681. };
  12682. class Window
  12683. {
  12684. // Methods:
  12685. void AddChild(UIElement);
  12686. void AddTag(const String&);
  12687. void AddTags(const String&, int8 = ';');
  12688. void ApplyAttributes();
  12689. void BringToFront();
  12690. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12691. void DisableLayoutUpdate();
  12692. IntVector2 ElementToScreen(const IntVector2&);
  12693. void EnableLayoutUpdate();
  12694. uint FindChild(UIElement) const;
  12695. Variant GetAttribute(const String&) const;
  12696. ValueAnimation GetAttributeAnimation(const String&) const;
  12697. float GetAttributeAnimationSpeed(const String&) const;
  12698. float GetAttributeAnimationTime(const String&) const;
  12699. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12700. Variant GetAttributeDefault(const String&) const;
  12701. UIElement GetChild(const String&, bool = false) const;
  12702. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12703. Array<UIElement> GetChildren(bool = false) const;
  12704. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12705. UIElement GetElementEventSender() const;
  12706. bool GetInterceptNetworkUpdate(const String&) const;
  12707. uint GetNumChildren(bool) const;
  12708. bool HasSubscribedToEvent(Object, const String&);
  12709. bool HasSubscribedToEvent(const String&);
  12710. bool HasTag(const String&) const;
  12711. void InsertChild(uint, UIElement);
  12712. bool IsInside(IntVector2, bool);
  12713. bool IsInsideCombined(IntVector2, bool);
  12714. bool Load(File, bool = false);
  12715. bool Load(VectorBuffer&, bool = false);
  12716. bool LoadChildXML(XMLFile, XMLFile = null);
  12717. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12718. bool LoadJSON(const JSONValue&, bool = false);
  12719. bool LoadXML(File);
  12720. bool LoadXML(VectorBuffer&);
  12721. bool LoadXML(XMLFile, XMLFile);
  12722. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12723. bool LoadXML(const XMLElement&, bool = false);
  12724. void MarkNetworkUpdate() const;
  12725. void Remove();
  12726. void RemoveAllChildren();
  12727. void RemoveAllTags();
  12728. void RemoveAttributeAnimation(const String&);
  12729. void RemoveChild(UIElement, uint = 0);
  12730. void RemoveChild(uint);
  12731. void RemoveInstanceDefault();
  12732. void RemoveObjectAnimation();
  12733. bool RemoveTag(const String&);
  12734. void ResetDeepEnabled();
  12735. void ResetToDefault();
  12736. bool Save(File) const;
  12737. bool Save(VectorBuffer&) const;
  12738. bool SaveJSON(JSONValue&) const;
  12739. bool SaveXML(File, const String& = "\t");
  12740. bool SaveXML(VectorBuffer&, const String& = "\t");
  12741. bool SaveXML(XMLElement&) const;
  12742. IntVector2 ScreenToElement(const IntVector2&);
  12743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12744. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12745. void SetAnimationTime(float);
  12746. bool SetAttribute(const String&, const Variant&);
  12747. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12748. void SetAttributeAnimationSpeed(const String&, float);
  12749. void SetAttributeAnimationTime(const String&, float);
  12750. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12751. void SetDeepEnabled(bool);
  12752. void SetEnabledRecursive(bool);
  12753. void SetFixedHeight(int);
  12754. void SetFixedSize(int, int);
  12755. void SetFixedWidth(int);
  12756. void SetFullImageRect();
  12757. void SetHoverOffset(int, int);
  12758. void SetInterceptNetworkUpdate(const String&, bool);
  12759. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12760. void SetMaxSize(int, int);
  12761. void SetMinSize(int, int);
  12762. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12763. void SetPosition(int, int);
  12764. void SetSize(int, int);
  12765. bool SetStyle(const String&, XMLFile = null);
  12766. bool SetStyle(const XMLElement&);
  12767. bool SetStyleAuto(XMLFile = null);
  12768. void UpdateLayout();
  12769. const Variant& GetVar(const StringHash&);
  12770. // Properties:
  12771. bool animationEnabled;
  12772. /* readonly */
  12773. Array<Variant> attributeDefaults;
  12774. /* readonly */
  12775. Array<AttributeInfo> attributeInfos;
  12776. Array<Variant> attributes;
  12777. BlendMode blendMode;
  12778. IntRect border;
  12779. bool bringToBack;
  12780. bool bringToFront;
  12781. /* readonly */
  12782. String category;
  12783. /* readonly */
  12784. IntVector2 childOffset;
  12785. /* readonly */
  12786. Array<UIElement> children;
  12787. IntRect clipBorder;
  12788. bool clipChildren;
  12789. /* writeonly */
  12790. Color color;
  12791. /* readonly */
  12792. bool colorGradient;
  12793. Array<Color> colors;
  12794. /* readonly */
  12795. IntRect combinedScreenRect;
  12796. XMLFile defaultStyle;
  12797. /* readonly */
  12798. float derivedOpacity;
  12799. /* readonly */
  12800. uint dragButtonCombo;
  12801. /* readonly */
  12802. int dragButtonCount;
  12803. uint dragDropMode;
  12804. bool editable;
  12805. bool elementEventSender;
  12806. bool enabled;
  12807. /* readonly */
  12808. bool enabledSelf;
  12809. /* readonly */
  12810. bool fixedHeight;
  12811. bool fixedHeightResizing;
  12812. /* readonly */
  12813. bool fixedSize;
  12814. /* readonly */
  12815. bool fixedWidth;
  12816. bool fixedWidthResizing;
  12817. bool focus;
  12818. FocusMode focusMode;
  12819. int height;
  12820. HorizontalAlignment horizontalAlignment;
  12821. IntVector2 hoverOffset;
  12822. /* readonly */
  12823. bool hovering;
  12824. IntRect imageBorder;
  12825. IntRect imageRect;
  12826. int indent;
  12827. int indentSpacing;
  12828. /* readonly */
  12829. int indentWidth;
  12830. bool internal;
  12831. IntRect layoutBorder;
  12832. Vector2 layoutFlexScale;
  12833. LayoutMode layoutMode;
  12834. int layoutSpacing;
  12835. int maxHeight;
  12836. IntVector2 maxSize;
  12837. int maxWidth;
  12838. int minHeight;
  12839. IntVector2 minSize;
  12840. int minWidth;
  12841. bool modal;
  12842. bool modalAutoDismiss;
  12843. Color modalFrameColor;
  12844. IntVector2 modalFrameSize;
  12845. Color modalShadeColor;
  12846. bool movable;
  12847. String name;
  12848. /* readonly */
  12849. uint numAllChildren;
  12850. /* readonly */
  12851. uint numAttributes;
  12852. /* readonly */
  12853. uint numChildren;
  12854. ObjectAnimation objectAnimation;
  12855. float opacity;
  12856. UIElement parent;
  12857. IntVector2 position;
  12858. int priority;
  12859. /* readonly */
  12860. int refs;
  12861. bool resizable;
  12862. IntRect resizeBorder;
  12863. /* readonly */
  12864. UIElement root;
  12865. /* readonly */
  12866. IntVector2 screenPosition;
  12867. bool selected;
  12868. IntVector2 size;
  12869. bool sortChildren;
  12870. String style;
  12871. /* readonly */
  12872. Array<String> tags;
  12873. bool temporary;
  12874. Texture texture;
  12875. bool tiled;
  12876. TraversalMode traversalMode;
  12877. /* readonly */
  12878. StringHash type;
  12879. /* readonly */
  12880. String typeName;
  12881. bool useDerivedOpacity;
  12882. /* readonly */
  12883. VariantMap vars;
  12884. VerticalAlignment verticalAlignment;
  12885. bool visible;
  12886. /* readonly */
  12887. bool visibleEffective;
  12888. /* readonly */
  12889. int weakRefs;
  12890. int width;
  12891. };
  12892. class XMLElement
  12893. {
  12894. // Methods:
  12895. XMLElement CreateChild(const String&);
  12896. String GetAttribute(const String& = String ( )) const;
  12897. String GetAttributeLower(const String&) const;
  12898. Array<String> GetAttributeNames() const;
  12899. String GetAttributeUpper(const String&) const;
  12900. bool GetBool(const String&) const;
  12901. BoundingBox GetBoundingBox() const;
  12902. XMLElement GetChild(const String& = String ( )) const;
  12903. Color GetColor(const String&) const;
  12904. double GetDouble(const String&) const;
  12905. float GetFloat(const String&) const;
  12906. int GetInt(const String&) const;
  12907. IntRect GetIntRect(const String&) const;
  12908. IntVector2 GetIntVector2(const String&) const;
  12909. Matrix3 GetMatrix3(const String&) const;
  12910. Matrix3x4 GetMatrix3x4(const String&) const;
  12911. Matrix4 GetMatrix4(const String&) const;
  12912. XMLElement GetNext(const String& = String ( )) const;
  12913. Quaternion GetQuaternion(const String&) const;
  12914. ResourceRef GetResourceRef() const;
  12915. ResourceRefList GetResourceRefList() const;
  12916. uint GetUInt(const String&) const;
  12917. String GetValue() const;
  12918. Variant GetVariant() const;
  12919. VariantMap GetVariantMap() const;
  12920. Array<Variant> GetVariantVector() const;
  12921. Vector2 GetVector2(const String&) const;
  12922. Vector3 GetVector3(const String&) const;
  12923. Vector4 GetVector4(const String&) const;
  12924. Variant GetVectorVariant(const String&) const;
  12925. bool HasAttribute(const String&) const;
  12926. bool HasChild(const String&) const;
  12927. bool RemoveAttribute(const String& = String ( ));
  12928. bool RemoveChild(const String&);
  12929. bool RemoveChild(const XMLElement&);
  12930. bool RemoveChildren(const String& = String ( ));
  12931. XPathResultSet Select(const String&);
  12932. XPathResultSet SelectPrepared(const XPathQuery&);
  12933. XMLElement SelectSingle(const String&);
  12934. XMLElement SelectSinglePrepared(const XPathQuery&);
  12935. bool SetAttribute(const String&);
  12936. bool SetAttribute(const String&, const String&);
  12937. bool SetBool(const String&, bool);
  12938. bool SetBoundingBox(const BoundingBox&);
  12939. bool SetColor(const String&, const Color&);
  12940. bool SetDouble(const String&, double);
  12941. bool SetFloat(const String&, float);
  12942. bool SetInt(const String&, int);
  12943. bool SetIntRect(const String&, const IntRect&);
  12944. bool SetIntVector2(const String&, const IntVector2&);
  12945. bool SetMatrix3(const String&, const Matrix3&);
  12946. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12947. bool SetMatrix4(const String&, const Matrix4&);
  12948. bool SetQuaternion(const String&, const Quaternion&);
  12949. bool SetResourceRef(const String&, const ResourceRef&);
  12950. bool SetResourceRefList(const String&, const ResourceRefList&);
  12951. bool SetUInt(const String&, uint);
  12952. bool SetValue(const String&);
  12953. bool SetVariant(const Variant&);
  12954. bool SetVariantMap(const VariantMap&);
  12955. bool SetVariantVector(Array<Variant>);
  12956. bool SetVector2(const String&, const Vector2&);
  12957. bool SetVector3(const String&, const Vector3&);
  12958. bool SetVector4(const String&, const Vector4&);
  12959. bool SetVectorVariant(const String&, const Variant&);
  12960. // Properties:
  12961. /* readonly */
  12962. XMLFile file;
  12963. /* readonly */
  12964. bool isNull;
  12965. /* readonly */
  12966. String name;
  12967. /* readonly */
  12968. XMLElement nextResult;
  12969. /* readonly */
  12970. bool notNull;
  12971. /* readonly */
  12972. uint numAttributes;
  12973. /* readonly */
  12974. XMLElement parent;
  12975. String value;
  12976. };
  12977. class XMLFile
  12978. {
  12979. // Methods:
  12980. XMLElement CreateRoot(const String&);
  12981. bool FromString(const String&);
  12982. XMLElement GetRoot(const String& = String ( ));
  12983. bool HasSubscribedToEvent(Object, const String&);
  12984. bool HasSubscribedToEvent(const String&);
  12985. bool Load(File);
  12986. bool Load(VectorBuffer&);
  12987. void Patch(XMLElement);
  12988. void Patch(XMLFile);
  12989. bool Save(File) const;
  12990. bool Save(File, const String&) const;
  12991. bool Save(VectorBuffer&) const;
  12992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12993. String ToString(const String& = String ( "\t" )) const;
  12994. // Properties:
  12995. /* readonly */
  12996. String category;
  12997. /* readonly */
  12998. uint memoryUse;
  12999. String name;
  13000. /* readonly */
  13001. int refs;
  13002. /* readonly */
  13003. XMLElement root;
  13004. /* readonly */
  13005. StringHash type;
  13006. /* readonly */
  13007. String typeName;
  13008. /* readonly */
  13009. uint useTimer;
  13010. /* readonly */
  13011. int weakRefs;
  13012. };
  13013. class XPathQuery
  13014. {
  13015. // Methods:
  13016. void Bind();
  13017. void Clear();
  13018. XPathResultSet Evaluate(XMLElement);
  13019. bool EvaluateToBool(XMLElement);
  13020. float EvaluateToFloat(XMLElement);
  13021. String EvaluateToString(XMLElement);
  13022. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13023. bool SetVariable(const String&, bool);
  13024. bool SetVariable(const String&, const String&);
  13025. bool SetVariable(const String&, const XPathResultSet&);
  13026. bool SetVariable(const String&, float);
  13027. // Properties:
  13028. String query;
  13029. };
  13030. class XPathResultSet
  13031. {
  13032. // Properties:
  13033. /* readonly */
  13034. bool empty;
  13035. /* readonly */
  13036. XMLElement firstResult;
  13037. /* readonly */
  13038. uint size;
  13039. };
  13040. class Zone
  13041. {
  13042. // Methods:
  13043. void ApplyAttributes();
  13044. void DrawDebugGeometry(DebugRenderer, bool);
  13045. Variant GetAttribute(const String&) const;
  13046. ValueAnimation GetAttributeAnimation(const String&) const;
  13047. float GetAttributeAnimationSpeed(const String&) const;
  13048. float GetAttributeAnimationTime(const String&) const;
  13049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13050. Variant GetAttributeDefault(const String&) const;
  13051. bool GetInterceptNetworkUpdate(const String&) const;
  13052. bool HasSubscribedToEvent(Object, const String&);
  13053. bool HasSubscribedToEvent(const String&);
  13054. bool IsInView(Camera) const;
  13055. bool Load(File, bool = false);
  13056. bool Load(VectorBuffer&, bool = false);
  13057. bool LoadJSON(const JSONValue&, bool = false);
  13058. bool LoadXML(const XMLElement&, bool = false);
  13059. void MarkNetworkUpdate() const;
  13060. void Remove();
  13061. void RemoveAttributeAnimation(const String&);
  13062. void RemoveInstanceDefault();
  13063. void RemoveObjectAnimation();
  13064. void ResetToDefault();
  13065. bool Save(File) const;
  13066. bool Save(VectorBuffer&) const;
  13067. bool SaveJSON(JSONValue&) const;
  13068. bool SaveXML(XMLElement&) const;
  13069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13070. void SetAnimationTime(float);
  13071. bool SetAttribute(const String&, const Variant&);
  13072. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13073. void SetAttributeAnimationSpeed(const String&, float);
  13074. void SetAttributeAnimationTime(const String&, float);
  13075. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13076. void SetInterceptNetworkUpdate(const String&, bool);
  13077. // Properties:
  13078. Color ambientColor;
  13079. /* readonly */
  13080. Color ambientEndColor;
  13081. bool ambientGradient;
  13082. /* readonly */
  13083. Color ambientStartColor;
  13084. bool animationEnabled;
  13085. /* readonly */
  13086. Array<Variant> attributeDefaults;
  13087. /* readonly */
  13088. Array<AttributeInfo> attributeInfos;
  13089. Array<Variant> attributes;
  13090. BoundingBox boundingBox;
  13091. bool castShadows;
  13092. /* readonly */
  13093. String category;
  13094. float drawDistance;
  13095. bool enabled;
  13096. /* readonly */
  13097. bool enabledEffective;
  13098. Color fogColor;
  13099. float fogEnd;
  13100. float fogHeight;
  13101. float fogHeightScale;
  13102. float fogStart;
  13103. bool heightFog;
  13104. /* readonly */
  13105. uint id;
  13106. /* readonly */
  13107. bool inView;
  13108. /* readonly */
  13109. Matrix3x4 inverseWorldTransform;
  13110. uint lightMask;
  13111. float lodBias;
  13112. uint maxLights;
  13113. /* readonly */
  13114. Node node;
  13115. /* readonly */
  13116. uint numAttributes;
  13117. ObjectAnimation objectAnimation;
  13118. bool occludee;
  13119. bool occluder;
  13120. bool override;
  13121. int priority;
  13122. /* readonly */
  13123. int refs;
  13124. float shadowDistance;
  13125. uint shadowMask;
  13126. bool temporary;
  13127. /* readonly */
  13128. StringHash type;
  13129. /* readonly */
  13130. String typeName;
  13131. uint viewMask;
  13132. /* readonly */
  13133. int weakRefs;
  13134. /* readonly */
  13135. BoundingBox worldBoundingBox;
  13136. uint zoneMask;
  13137. Texture zoneTexture;
  13138. };
  13139. // Enumerations
  13140. enum BlendMode
  13141. {
  13142. BLEND_REPLACE,
  13143. BLEND_ADD,
  13144. BLEND_MULTIPLY,
  13145. BLEND_ALPHA,
  13146. BLEND_ADDALPHA,
  13147. BLEND_PREMULALPHA,
  13148. BLEND_INVDESTALPHA,
  13149. BLEND_SUBTRACT,
  13150. BLEND_SUBTRACTALPHA,
  13151. };
  13152. enum BodyType2D
  13153. {
  13154. BT_STATIC,
  13155. BT_KINEMATIC,
  13156. BT_DYNAMIC,
  13157. };
  13158. enum CollisionEventMode
  13159. {
  13160. COLLISION_NEVER,
  13161. COLLISION_ACTIVE,
  13162. COLLISION_ALWAYS,
  13163. };
  13164. enum CompareMode
  13165. {
  13166. CMP_ALWAYS,
  13167. CMP_EQUAL,
  13168. CMP_NOTEQUAL,
  13169. CMP_LESS,
  13170. CMP_LESSEQUAL,
  13171. CMP_GREATER,
  13172. CMP_GREATEREQUAL,
  13173. };
  13174. enum CompressedFormat
  13175. {
  13176. CF_NONE,
  13177. CF_RGBA,
  13178. CF_DXT1,
  13179. CF_DXT3,
  13180. CF_DXT5,
  13181. CF_ETC1,
  13182. CF_PVRTC_RGB_2BPP,
  13183. CF_PVRTC_RGBA_2BPP,
  13184. CF_PVRTC_RGB_4BPP,
  13185. CF_PVRTC_RGBA_4BPP,
  13186. };
  13187. enum ConstraintType
  13188. {
  13189. CONSTRAINT_POINT,
  13190. CONSTRAINT_HINGE,
  13191. CONSTRAINT_SLIDER,
  13192. CONSTRAINT_CONETWIST,
  13193. };
  13194. enum Corner
  13195. {
  13196. C_TOPLEFT,
  13197. C_TOPRIGHT,
  13198. C_BOTTOMLEFT,
  13199. C_BOTTOMRIGHT,
  13200. };
  13201. enum CreateMode
  13202. {
  13203. REPLICATED,
  13204. LOCAL,
  13205. };
  13206. enum CrowdAgentRequestedTarget
  13207. {
  13208. CA_REQUESTEDTARGET_NONE,
  13209. CA_REQUESTEDTARGET_POSITION,
  13210. CA_REQUESTEDTARGET_VELOCITY,
  13211. };
  13212. enum CrowdAgentState
  13213. {
  13214. CA_STATE_INVALID,
  13215. CA_STATE_WALKING,
  13216. CA_STATE_OFFMESH,
  13217. };
  13218. enum CrowdAgentTargetState
  13219. {
  13220. CA_TARGET_NONE,
  13221. CA_TARGET_FAILED,
  13222. CA_TARGET_VALID,
  13223. CA_TARGET_REQUESTING,
  13224. CA_TARGET_WAITINGFORQUEUE,
  13225. CA_TARGET_WAITINGFORPATH,
  13226. CA_TARGET_VELOCITY,
  13227. };
  13228. enum CubeMapFace
  13229. {
  13230. FACE_POSITIVE_X,
  13231. FACE_NEGATIVE_X,
  13232. FACE_POSITIVE_Y,
  13233. FACE_NEGATIVE_Y,
  13234. FACE_POSITIVE_Z,
  13235. FACE_NEGATIVE_Z,
  13236. };
  13237. enum CullMode
  13238. {
  13239. CULL_NONE,
  13240. CULL_CCW,
  13241. CULL_CW,
  13242. };
  13243. enum CursorShape
  13244. {
  13245. CS_NORMAL,
  13246. CS_IBEAM,
  13247. CS_CROSS,
  13248. CS_RESIZEVERTICAL,
  13249. CS_RESIZEDIAGONAL_TOPRIGHT,
  13250. CS_RESIZEHORIZONTAL,
  13251. CS_RESIZEDIAGONAL_TOPLEFT,
  13252. CS_RESIZE_ALL,
  13253. CS_ACCEPTDROP,
  13254. CS_REJECTDROP,
  13255. CS_BUSY,
  13256. CS_BUSY_ARROW,
  13257. };
  13258. enum DBAPI
  13259. {
  13260. DBAPI_SQLITE,
  13261. DBAPI_ODBC,
  13262. };
  13263. enum DumpMode
  13264. {
  13265. DOXYGEN,
  13266. C_HEADER,
  13267. };
  13268. enum EmitterType
  13269. {
  13270. EMITTER_SPHERE,
  13271. EMITTER_BOX,
  13272. };
  13273. enum EmitterType2D
  13274. {
  13275. EMITTER_TYPE_GRAVITY,
  13276. EMITTER_TYPE_RADIAL,
  13277. };
  13278. enum FaceCameraMode
  13279. {
  13280. FC_NONE,
  13281. FC_ROTATE_XYZ,
  13282. FC_ROTATE_Y,
  13283. FC_LOOKAT_XYZ,
  13284. FC_LOOKAT_Y,
  13285. FC_DIRECTION,
  13286. };
  13287. enum FileMode
  13288. {
  13289. FILE_READ,
  13290. FILE_WRITE,
  13291. FILE_READWRITE,
  13292. };
  13293. enum FillMode
  13294. {
  13295. FILL_SOLID,
  13296. FILL_WIREFRAME,
  13297. FILL_POINT,
  13298. };
  13299. enum FocusMode
  13300. {
  13301. FM_NOTFOCUSABLE,
  13302. FM_RESETFOCUS,
  13303. FM_FOCUSABLE,
  13304. FM_FOCUSABLE_DEFOCUSABLE,
  13305. };
  13306. enum HighlightMode
  13307. {
  13308. HM_NEVER,
  13309. HM_FOCUS,
  13310. HM_ALWAYS,
  13311. };
  13312. enum HorizontalAlignment
  13313. {
  13314. HA_LEFT,
  13315. HA_CENTER,
  13316. HA_RIGHT,
  13317. };
  13318. enum HttpRequestState
  13319. {
  13320. HTTP_INITIALIZING,
  13321. HTTP_ERROR,
  13322. HTTP_OPEN,
  13323. HTTP_CLOSED,
  13324. };
  13325. enum InterpMethod
  13326. {
  13327. IM_LINEAR,
  13328. IM_SPLINE,
  13329. };
  13330. enum InterpolationMode
  13331. {
  13332. BEZIER_CURVE,
  13333. CATMULL_ROM_CURVE,
  13334. LINEAR_CURVE,
  13335. CATMULL_ROM_FULL_CURVE,
  13336. };
  13337. enum Intersection
  13338. {
  13339. OUTSIDE,
  13340. INTERSECTS,
  13341. INSIDE,
  13342. };
  13343. enum JSONValueType
  13344. {
  13345. JSON_NULL,
  13346. JSON_BOOL,
  13347. JSON_NUMBER,
  13348. JSON_STRING,
  13349. JSON_ARRAY,
  13350. JSON_OBJECT,
  13351. };
  13352. enum LayoutMode
  13353. {
  13354. LM_FREE,
  13355. LM_HORIZONTAL,
  13356. LM_VERTICAL,
  13357. };
  13358. enum LightType
  13359. {
  13360. LIGHT_DIRECTIONAL,
  13361. LIGHT_SPOT,
  13362. LIGHT_POINT,
  13363. };
  13364. enum LoadMode
  13365. {
  13366. LOAD_RESOURCES_ONLY,
  13367. LOAD_SCENE,
  13368. LOAD_SCENE_AND_RESOURCES,
  13369. };
  13370. enum LoopMode2D
  13371. {
  13372. LM_DEFAULT,
  13373. LM_FORCE_LOOPED,
  13374. LM_FORCE_CLAMPED,
  13375. };
  13376. enum MouseMode
  13377. {
  13378. MM_ABSOLUTE,
  13379. MM_RELATIVE,
  13380. MM_WRAP,
  13381. MM_FREE,
  13382. };
  13383. enum NavigationPushiness
  13384. {
  13385. NAVIGATIONPUSHINESS_LOW,
  13386. NAVIGATIONPUSHINESS_MEDIUM,
  13387. NAVIGATIONPUSHINESS_HIGH,
  13388. };
  13389. enum NavigationQuality
  13390. {
  13391. NAVIGATIONQUALITY_LOW,
  13392. NAVIGATIONQUALITY_MEDIUM,
  13393. NAVIGATIONQUALITY_HIGH,
  13394. };
  13395. enum NavmeshPartitionType
  13396. {
  13397. NAVMESH_PARTITION_WATERSHED,
  13398. NAVMESH_PARTITION_MONOTONE,
  13399. };
  13400. enum Orientation
  13401. {
  13402. O_HORIZONTAL,
  13403. O_VERTICAL,
  13404. };
  13405. enum Orientation2D
  13406. {
  13407. O_ORTHOGONAL,
  13408. O_ISOMETRIC,
  13409. O_STAGGERED,
  13410. };
  13411. enum PassLightingMode
  13412. {
  13413. LIGHTING_UNLIT,
  13414. LIGHTING_PERVERTEX,
  13415. LIGHTING_PERPIXEL,
  13416. };
  13417. enum PrimitiveType
  13418. {
  13419. TRIANGLE_LIST,
  13420. LINE_LIST,
  13421. POINT_LIST,
  13422. TRIANGLE_STRIP,
  13423. LINE_STRIP,
  13424. TRIANGLE_FAN,
  13425. };
  13426. enum RayQueryLevel
  13427. {
  13428. RAY_AABB,
  13429. RAY_OBB,
  13430. RAY_TRIANGLE,
  13431. RAY_TRIANGLE_UV,
  13432. };
  13433. enum RenderCommandSortMode
  13434. {
  13435. SORT_FRONTTOBACK,
  13436. SORT_BACKTOFRONT,
  13437. };
  13438. enum RenderCommandType
  13439. {
  13440. CMD_NONE,
  13441. CMD_CLEAR,
  13442. CMD_SCENEPASS,
  13443. CMD_QUAD,
  13444. CMD_FORWARDLIGHTS,
  13445. CMD_LIGHTVOLUMES,
  13446. CMD_RENDERUI,
  13447. };
  13448. enum RenderSurfaceUpdateMode
  13449. {
  13450. SURFACE_MANUALUPDATE,
  13451. SURFACE_UPDATEVISIBLE,
  13452. SURFACE_UPDATEALWAYS,
  13453. };
  13454. enum RenderTargetSizeMode
  13455. {
  13456. SIZE_ABSOLUTE,
  13457. SIZE_VIEWPORTDIVISOR,
  13458. SIZE_VIEWPORTMULTIPLIER,
  13459. };
  13460. enum ShadowQuality
  13461. {
  13462. SHADOWQUALITY_SIMPLE_16BIT,
  13463. SHADOWQUALITY_SIMPLE_24BIT,
  13464. SHADOWQUALITY_PCF_16BIT,
  13465. SHADOWQUALITY_PCF_24BIT,
  13466. SHADOWQUALITY_VSM,
  13467. SHADOWQUALITY_BLUR_VSM,
  13468. };
  13469. enum ShapeType
  13470. {
  13471. SHAPE_BOX,
  13472. SHAPE_SPHERE,
  13473. SHAPE_STATICPLANE,
  13474. SHAPE_CYLINDER,
  13475. SHAPE_CAPSULE,
  13476. SHAPE_CONE,
  13477. SHAPE_TRIANGLEMESH,
  13478. SHAPE_CONVEXHULL,
  13479. SHAPE_TERRAIN,
  13480. };
  13481. enum TextEffect
  13482. {
  13483. TE_NONE,
  13484. TE_SHADOW,
  13485. TE_STROKE,
  13486. };
  13487. enum TextureAddressMode
  13488. {
  13489. ADDRESS_WRAP,
  13490. ADDRESS_MIRROR,
  13491. ADDRESS_CLAMP,
  13492. ADDRESS_BORDER,
  13493. };
  13494. enum TextureCoordinate
  13495. {
  13496. COORD_U,
  13497. COORD_V,
  13498. COORD_W,
  13499. };
  13500. enum TextureFilterMode
  13501. {
  13502. FILTER_NEAREST,
  13503. FILTER_BILINEAR,
  13504. FILTER_TRILINEAR,
  13505. FILTER_ANISOTROPIC,
  13506. FILTER_DEFAULT,
  13507. };
  13508. enum TextureUnit
  13509. {
  13510. TU_DIFFUSE,
  13511. TU_ALBEDOBUFFER,
  13512. TU_NORMAL,
  13513. TU_NORMALBUFFER,
  13514. TU_SPECULAR,
  13515. TU_EMISSIVE,
  13516. TU_ENVIRONMENT,
  13517. TU_LIGHTRAMP,
  13518. TU_LIGHTSHAPE,
  13519. TU_SHADOWMAP,
  13520. TU_CUSTOM1,
  13521. TU_CUSTOM2,
  13522. TU_VOLUMEMAP,
  13523. TU_FACESELECT,
  13524. TU_INDIRECTION,
  13525. TU_DEPTHBUFFER,
  13526. TU_LIGHTBUFFER,
  13527. TU_ZONE,
  13528. MAX_MATERIAL_TEXTURE_UNITS,
  13529. MAX_TEXTURE_UNITS,
  13530. };
  13531. enum TextureUsage
  13532. {
  13533. TEXTURE_STATIC,
  13534. TEXTURE_DYNAMIC,
  13535. TEXTURE_RENDERTARGET,
  13536. TEXTURE_DEPTHSTENCIL,
  13537. };
  13538. enum TileMapLayerType2D
  13539. {
  13540. LT_TILE_LAYER,
  13541. LT_OBJECT_GROUP,
  13542. LT_IMAGE_LAYER,
  13543. LT_INVALID,
  13544. };
  13545. enum TileObjectType2D
  13546. {
  13547. OT_RECTANGLE,
  13548. OT_ELLIPSE,
  13549. OT_POLYGON,
  13550. OT_POLYLINE,
  13551. OT_TILE,
  13552. OT_INVALID,
  13553. };
  13554. enum TransformSpace
  13555. {
  13556. TS_LOCAL,
  13557. TS_PARENT,
  13558. TS_WORLD,
  13559. };
  13560. enum TraversalMode
  13561. {
  13562. TM_BREADTH_FIRST,
  13563. TM_DEPTH_FIRST,
  13564. };
  13565. enum VariantType
  13566. {
  13567. VAR_NONE,
  13568. VAR_INT,
  13569. VAR_BOOL,
  13570. VAR_FLOAT,
  13571. VAR_VECTOR2,
  13572. VAR_VECTOR3,
  13573. VAR_VECTOR4,
  13574. VAR_QUATERNION,
  13575. VAR_COLOR,
  13576. VAR_STRING,
  13577. VAR_BUFFER,
  13578. VAR_VOIDPTR,
  13579. VAR_RESOURCEREF,
  13580. VAR_RESOURCEREFLIST,
  13581. VAR_VARIANTVECTOR,
  13582. VAR_VARIANTMAP,
  13583. VAR_INTRECT,
  13584. VAR_INTVECTOR2,
  13585. VAR_PTR,
  13586. VAR_MATRIX3,
  13587. VAR_MATRIX3X4,
  13588. VAR_MATRIX4,
  13589. VAR_DOUBLE,
  13590. VAR_STRINGVECTOR,
  13591. };
  13592. enum VerticalAlignment
  13593. {
  13594. VA_TOP,
  13595. VA_CENTER,
  13596. VA_BOTTOM,
  13597. };
  13598. enum WrapMode
  13599. {
  13600. WM_LOOP,
  13601. WM_ONCE,
  13602. WM_CLAMP,
  13603. };
  13604. // Global functions
  13605. float Abs(float);
  13606. float Acos(float);
  13607. String AddTrailingSlash(const String&);
  13608. float Asin(float);
  13609. float Atan(float);
  13610. float Atan2(float, float);
  13611. float Ceil(float);
  13612. float Clamp(float, float, float);
  13613. int Clamp(int, int, int);
  13614. void ClearDelayedExecute(const String& = String ( ));
  13615. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13616. float Cos(float);
  13617. uint CountSetBits(uint);
  13618. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13619. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13620. bool Equals(float, float);
  13621. void ErrorDialog(const String&, const String&);
  13622. float Floor(float);
  13623. uint GetAlphaFormat();
  13624. Array<String> GetArguments();
  13625. String GetConsoleInput();
  13626. uint GetDepthStencilFormat();
  13627. Object GetEventSender();
  13628. String GetExtension(const String&, bool = true);
  13629. String GetFileName(const String&);
  13630. String GetFileNameAndExtension(const String&, bool = false);
  13631. String GetFileSizeString(uint64);
  13632. uint GetFloat16Format();
  13633. uint GetFloat32Format();
  13634. uint GetFormat(const String&);
  13635. String GetInternalPath(const String&);
  13636. uint GetLinearDepthFormat();
  13637. uint GetLuminanceAlphaFormat();
  13638. uint GetLuminanceFormat();
  13639. uint GetMaxBones();
  13640. String GetMiniDumpDir();
  13641. uint GetNumLogicalCPUs();
  13642. uint GetNumPhysicalCPUs();
  13643. Array<String> GetObjectCategories();
  13644. Array<String> GetObjectsByCategory(const String&);
  13645. String GetParentPath(const String&);
  13646. String GetPath(const String&);
  13647. String GetPlatform();
  13648. uint GetRG16Format();
  13649. uint GetRGBA16Format();
  13650. uint GetRGBAFloat16Format();
  13651. uint GetRGBAFloat32Format();
  13652. uint GetRGBAFormat();
  13653. uint GetRGBFormat();
  13654. uint GetRGFloat16Format();
  13655. uint GetRGFloat32Format();
  13656. uint GetRandomSeed();
  13657. uint GetReadableDepthFormat();
  13658. String GetTextureUnitName(TextureUnit);
  13659. bool HasSubscribedToEvent(Object, const String&);
  13660. bool HasSubscribedToEvent(const String&);
  13661. bool IsAbsolutePath(const String&);
  13662. bool IsAlpha(uint);
  13663. bool IsDigit(uint);
  13664. bool IsNaN(float);
  13665. bool IsPowerOfTwo(uint);
  13666. String Join(Array<String>&, const String&);
  13667. float Lerp(float, float, float);
  13668. void MarkNetworkUpdate();
  13669. float Max(float, float);
  13670. int Max(int, int);
  13671. float Min(float, float);
  13672. int Min(int, int);
  13673. float Mod(float, float);
  13674. uint NextPowerOfTwo(uint);
  13675. void OpenConsoleWindow();
  13676. float Pow(float, float);
  13677. void Print(bool, bool = false);
  13678. void Print(const String&, bool = false);
  13679. void Print(const Variant&, bool = false);
  13680. void Print(float, bool = false);
  13681. void Print(int, bool = false);
  13682. void Print(uint, bool = false);
  13683. void PrintCallStack(bool = false);
  13684. float Random();
  13685. float Random(float);
  13686. float Random(float, float);
  13687. int RandomInt();
  13688. int RandomInt(int);
  13689. int RandomInt(int, int);
  13690. float RandomNormal(float, float);
  13691. void Remove();
  13692. String RemoveTrailingSlash(const String&);
  13693. String ReplaceExtension(const String&, const String&);
  13694. uint SDBMHash(uint, uint8);
  13695. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13696. void SetMiniDumpDir(const String&);
  13697. void SetRandomSeed(uint);
  13698. float Sign(float);
  13699. float Sin(float);
  13700. float SmoothStep(float, float, float);
  13701. float Sqrt(float);
  13702. const String& GetTypeName(StringHash);
  13703. void SubscribeToEvent(Object, const String&, const String&);
  13704. void SubscribeToEvent(const String&, const String&);
  13705. float Tan(float);
  13706. uint ToLower(uint);
  13707. String ToStringHex(int);
  13708. uint ToUpper(uint);
  13709. void UnsubscribeFromAllEvents();
  13710. void UnsubscribeFromAllEventsExcept(Array<String>);
  13711. void UnsubscribeFromEvent(Object, const String&);
  13712. void UnsubscribeFromEvent(const String&);
  13713. void UnsubscribeFromEvents(Object);
  13714. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13715. // Global properties
  13716. DBAPI DBAPI;
  13717. Audio audio;
  13718. ResourceCache cache;
  13719. Console console;
  13720. Database database;
  13721. DebugHud debugHud;
  13722. DebugRenderer debugRenderer;
  13723. Engine engine;
  13724. FileSystem fileSystem;
  13725. Graphics graphics;
  13726. Input input;
  13727. Localization localization;
  13728. Log log;
  13729. Network network;
  13730. Node node;
  13731. Octree octree;
  13732. PhysicsWorld physicsWorld;
  13733. PhysicsWorld2D physicsWorld2D;
  13734. Renderer renderer;
  13735. ResourceCache resourceCache;
  13736. Scene scene;
  13737. Script script;
  13738. ScriptFile scriptFile;
  13739. ScriptInstance self;
  13740. Time time;
  13741. UI ui;
  13742. // Global constants
  13743. uint AM_COMPONENTID;
  13744. uint AM_DEFAULT;
  13745. uint AM_FILE;
  13746. uint AM_LATESTDATA;
  13747. uint AM_NET;
  13748. uint AM_NODEID;
  13749. uint AM_NODEIDVECTOR;
  13750. uint AM_NOEDIT;
  13751. Color BLACK;
  13752. Color BLUE;
  13753. uint8 CHANNEL_POSITION;
  13754. uint8 CHANNEL_ROTATION;
  13755. uint8 CHANNEL_SCALE;
  13756. uint CLEAR_COLOR;
  13757. uint CLEAR_DEPTH;
  13758. uint CLEAR_STENCIL;
  13759. int CONTROLLER_AXIS_LEFTX;
  13760. int CONTROLLER_AXIS_LEFTY;
  13761. int CONTROLLER_AXIS_RIGHTX;
  13762. int CONTROLLER_AXIS_RIGHTY;
  13763. int CONTROLLER_AXIS_TRIGGERLEFT;
  13764. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13765. int CONTROLLER_BUTTON_A;
  13766. int CONTROLLER_BUTTON_B;
  13767. int CONTROLLER_BUTTON_BACK;
  13768. int CONTROLLER_BUTTON_DPAD_DOWN;
  13769. int CONTROLLER_BUTTON_DPAD_LEFT;
  13770. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13771. int CONTROLLER_BUTTON_DPAD_UP;
  13772. int CONTROLLER_BUTTON_GUIDE;
  13773. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13774. int CONTROLLER_BUTTON_LEFTSTICK;
  13775. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13776. int CONTROLLER_BUTTON_RIGHTSTICK;
  13777. int CONTROLLER_BUTTON_START;
  13778. int CONTROLLER_BUTTON_X;
  13779. int CONTROLLER_BUTTON_Y;
  13780. Color CYAN;
  13781. uint DD_DISABLED;
  13782. uint DD_SOURCE;
  13783. uint DD_SOURCE_AND_TARGET;
  13784. uint DD_TARGET;
  13785. uint DEBUGHUD_SHOW_ALL;
  13786. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13787. uint DEBUGHUD_SHOW_MEMORY;
  13788. uint DEBUGHUD_SHOW_MODE;
  13789. uint DEBUGHUD_SHOW_NONE;
  13790. uint DEBUGHUD_SHOW_PROFILER;
  13791. uint DEBUGHUD_SHOW_STATS;
  13792. uint DEFAULT_LIGHTMASK;
  13793. uint DEFAULT_VIEWMASK;
  13794. uint DRAWABLE_ANY;
  13795. uint DRAWABLE_GEOMETRY;
  13796. uint DRAWABLE_GEOMETRY2D;
  13797. uint DRAWABLE_LIGHT;
  13798. uint DRAWABLE_ZONE;
  13799. uint FIRST_LOCAL_ID;
  13800. uint FIRST_REPLICATED_ID;
  13801. Color GRAY;
  13802. Color GREEN;
  13803. int HAT_CENTER;
  13804. int HAT_DOWN;
  13805. int HAT_LEFT;
  13806. int HAT_RIGHT;
  13807. int HAT_UP;
  13808. int KEY_0;
  13809. int KEY_1;
  13810. int KEY_2;
  13811. int KEY_3;
  13812. int KEY_4;
  13813. int KEY_5;
  13814. int KEY_6;
  13815. int KEY_7;
  13816. int KEY_8;
  13817. int KEY_9;
  13818. int KEY_A;
  13819. int KEY_ALT;
  13820. int KEY_APPLICATION;
  13821. int KEY_B;
  13822. int KEY_BACKSPACE;
  13823. int KEY_C;
  13824. int KEY_CAPSLOCK;
  13825. int KEY_CTRL;
  13826. int KEY_D;
  13827. int KEY_DELETE;
  13828. int KEY_DOWN;
  13829. int KEY_E;
  13830. int KEY_END;
  13831. int KEY_ESC;
  13832. int KEY_F;
  13833. int KEY_F1;
  13834. int KEY_F10;
  13835. int KEY_F11;
  13836. int KEY_F12;
  13837. int KEY_F13;
  13838. int KEY_F14;
  13839. int KEY_F15;
  13840. int KEY_F16;
  13841. int KEY_F17;
  13842. int KEY_F18;
  13843. int KEY_F19;
  13844. int KEY_F2;
  13845. int KEY_F20;
  13846. int KEY_F21;
  13847. int KEY_F22;
  13848. int KEY_F23;
  13849. int KEY_F24;
  13850. int KEY_F3;
  13851. int KEY_F4;
  13852. int KEY_F5;
  13853. int KEY_F6;
  13854. int KEY_F7;
  13855. int KEY_F8;
  13856. int KEY_F9;
  13857. int KEY_G;
  13858. int KEY_GUI;
  13859. int KEY_H;
  13860. int KEY_HOME;
  13861. int KEY_I;
  13862. int KEY_INSERT;
  13863. int KEY_J;
  13864. int KEY_K;
  13865. int KEY_KP_0;
  13866. int KEY_KP_1;
  13867. int KEY_KP_2;
  13868. int KEY_KP_3;
  13869. int KEY_KP_4;
  13870. int KEY_KP_5;
  13871. int KEY_KP_6;
  13872. int KEY_KP_7;
  13873. int KEY_KP_8;
  13874. int KEY_KP_9;
  13875. int KEY_KP_DIVIDE;
  13876. int KEY_KP_ENTER;
  13877. int KEY_KP_MINUS;
  13878. int KEY_KP_MULTIPLY;
  13879. int KEY_KP_PERIOD;
  13880. int KEY_KP_PLUS;
  13881. int KEY_L;
  13882. int KEY_LALT;
  13883. int KEY_LCTRL;
  13884. int KEY_LEFT;
  13885. int KEY_LGUI;
  13886. int KEY_LSHIFT;
  13887. int KEY_M;
  13888. int KEY_N;
  13889. int KEY_NUMLOCKCLEAR;
  13890. int KEY_O;
  13891. int KEY_P;
  13892. int KEY_PAGEDOWN;
  13893. int KEY_PAGEUP;
  13894. int KEY_PAUSE;
  13895. int KEY_PRINTSCREEN;
  13896. int KEY_Q;
  13897. int KEY_R;
  13898. int KEY_RALT;
  13899. int KEY_RCTRL;
  13900. int KEY_RETURN;
  13901. int KEY_RETURN2;
  13902. int KEY_RGUI;
  13903. int KEY_RIGHT;
  13904. int KEY_RSHIFT;
  13905. int KEY_S;
  13906. int KEY_SCROLLLOCK;
  13907. int KEY_SELECT;
  13908. int KEY_SHIFT;
  13909. int KEY_SPACE;
  13910. int KEY_T;
  13911. int KEY_TAB;
  13912. int KEY_U;
  13913. int KEY_UP;
  13914. int KEY_V;
  13915. int KEY_W;
  13916. int KEY_X;
  13917. int KEY_Y;
  13918. int KEY_Z;
  13919. uint LAST_LOCAL_ID;
  13920. uint LAST_REPLICATED_ID;
  13921. int LOG_DEBUG;
  13922. int LOG_ERROR;
  13923. int LOG_INFO;
  13924. int LOG_NONE;
  13925. int LOG_WARNING;
  13926. Color MAGENTA;
  13927. uint MASK_BLENDINDICES;
  13928. uint MASK_BLENDWEIGHTS;
  13929. uint MASK_COLOR;
  13930. uint MASK_CUBETEXCOORD1;
  13931. uint MASK_CUBETEXCOORD2;
  13932. uint MASK_DEFAULT;
  13933. uint MASK_INSTANCEMATRIX1;
  13934. uint MASK_INSTANCEMATRIX2;
  13935. uint MASK_INSTANCEMATRIX3;
  13936. uint MASK_NONE;
  13937. uint MASK_NORMAL;
  13938. uint MASK_OBJECTINDEX;
  13939. uint MASK_POSITION;
  13940. uint MASK_TANGENT;
  13941. uint MASK_TEXCOORD1;
  13942. uint MASK_TEXCOORD2;
  13943. int MOUSEB_LEFT;
  13944. int MOUSEB_MIDDLE;
  13945. int MOUSEB_RIGHT;
  13946. float M_DEGTORAD;
  13947. float M_DEGTORAD_2;
  13948. float M_EPSILON;
  13949. float M_HALF_PI;
  13950. float M_INFINITY;
  13951. float M_LARGE_EPSILON;
  13952. float M_LARGE_VALUE;
  13953. int M_MAX_INT;
  13954. uint M_MAX_UNSIGNED;
  13955. int M_MIN_INT;
  13956. uint M_MIN_UNSIGNED;
  13957. float M_PI;
  13958. float M_RADTODEG;
  13959. float PIXEL_SIZE;
  13960. int QUALITY_HIGH;
  13961. int QUALITY_LOW;
  13962. int QUALITY_MAX;
  13963. int QUALITY_MEDIUM;
  13964. int QUAL_ALT;
  13965. int QUAL_ANY;
  13966. int QUAL_CTRL;
  13967. int QUAL_SHIFT;
  13968. Color RED;
  13969. int SCANCODE_0;
  13970. int SCANCODE_1;
  13971. int SCANCODE_2;
  13972. int SCANCODE_3;
  13973. int SCANCODE_4;
  13974. int SCANCODE_5;
  13975. int SCANCODE_6;
  13976. int SCANCODE_7;
  13977. int SCANCODE_8;
  13978. int SCANCODE_9;
  13979. int SCANCODE_A;
  13980. int SCANCODE_AC_BACK;
  13981. int SCANCODE_AC_BOOKMARKS;
  13982. int SCANCODE_AC_FORWARD;
  13983. int SCANCODE_AC_HOME;
  13984. int SCANCODE_AC_REFRESH;
  13985. int SCANCODE_AC_SEARCH;
  13986. int SCANCODE_AC_STOP;
  13987. int SCANCODE_AGAIN;
  13988. int SCANCODE_ALT;
  13989. int SCANCODE_ALTERASE;
  13990. int SCANCODE_APOSTROPHE;
  13991. int SCANCODE_APP1;
  13992. int SCANCODE_APP2;
  13993. int SCANCODE_APPLICATION;
  13994. int SCANCODE_AUDIOMUTE;
  13995. int SCANCODE_AUDIONEXT;
  13996. int SCANCODE_AUDIOPLAY;
  13997. int SCANCODE_AUDIOPREV;
  13998. int SCANCODE_AUDIOSTOP;
  13999. int SCANCODE_B;
  14000. int SCANCODE_BACKSLASH;
  14001. int SCANCODE_BACKSPACE;
  14002. int SCANCODE_BRIGHTNESSDOWN;
  14003. int SCANCODE_BRIGHTNESSUP;
  14004. int SCANCODE_C;
  14005. int SCANCODE_CALCULATOR;
  14006. int SCANCODE_CANCEL;
  14007. int SCANCODE_CAPSLOCK;
  14008. int SCANCODE_CLEAR;
  14009. int SCANCODE_CLEARAGAIN;
  14010. int SCANCODE_COMMA;
  14011. int SCANCODE_COMPUTER;
  14012. int SCANCODE_COPY;
  14013. int SCANCODE_CRSEL;
  14014. int SCANCODE_CTRL;
  14015. int SCANCODE_CURRENCYSUBUNIT;
  14016. int SCANCODE_CURRENCYUNIT;
  14017. int SCANCODE_CUT;
  14018. int SCANCODE_D;
  14019. int SCANCODE_DECIMALSEPARATOR;
  14020. int SCANCODE_DELETE;
  14021. int SCANCODE_DISPLAYSWITCH;
  14022. int SCANCODE_DOWN;
  14023. int SCANCODE_E;
  14024. int SCANCODE_EJECT;
  14025. int SCANCODE_END;
  14026. int SCANCODE_EQUALS;
  14027. int SCANCODE_ESCAPE;
  14028. int SCANCODE_EXECUTE;
  14029. int SCANCODE_EXSEL;
  14030. int SCANCODE_F;
  14031. int SCANCODE_F1;
  14032. int SCANCODE_F10;
  14033. int SCANCODE_F11;
  14034. int SCANCODE_F12;
  14035. int SCANCODE_F13;
  14036. int SCANCODE_F14;
  14037. int SCANCODE_F15;
  14038. int SCANCODE_F16;
  14039. int SCANCODE_F17;
  14040. int SCANCODE_F18;
  14041. int SCANCODE_F19;
  14042. int SCANCODE_F2;
  14043. int SCANCODE_F20;
  14044. int SCANCODE_F21;
  14045. int SCANCODE_F22;
  14046. int SCANCODE_F23;
  14047. int SCANCODE_F24;
  14048. int SCANCODE_F3;
  14049. int SCANCODE_F4;
  14050. int SCANCODE_F5;
  14051. int SCANCODE_F6;
  14052. int SCANCODE_F7;
  14053. int SCANCODE_F8;
  14054. int SCANCODE_F9;
  14055. int SCANCODE_FIND;
  14056. int SCANCODE_G;
  14057. int SCANCODE_GRAVE;
  14058. int SCANCODE_GUI;
  14059. int SCANCODE_H;
  14060. int SCANCODE_HELP;
  14061. int SCANCODE_HOME;
  14062. int SCANCODE_I;
  14063. int SCANCODE_INSERT;
  14064. int SCANCODE_INTERNATIONAL1;
  14065. int SCANCODE_INTERNATIONAL2;
  14066. int SCANCODE_INTERNATIONAL3;
  14067. int SCANCODE_INTERNATIONAL4;
  14068. int SCANCODE_INTERNATIONAL5;
  14069. int SCANCODE_INTERNATIONAL6;
  14070. int SCANCODE_INTERNATIONAL7;
  14071. int SCANCODE_INTERNATIONAL8;
  14072. int SCANCODE_INTERNATIONAL9;
  14073. int SCANCODE_J;
  14074. int SCANCODE_K;
  14075. int SCANCODE_KBDILLUMDOWN;
  14076. int SCANCODE_KBDILLUMTOGGLE;
  14077. int SCANCODE_KBDILLUMUP;
  14078. int SCANCODE_KP_0;
  14079. int SCANCODE_KP_00;
  14080. int SCANCODE_KP_000;
  14081. int SCANCODE_KP_1;
  14082. int SCANCODE_KP_2;
  14083. int SCANCODE_KP_3;
  14084. int SCANCODE_KP_4;
  14085. int SCANCODE_KP_5;
  14086. int SCANCODE_KP_6;
  14087. int SCANCODE_KP_7;
  14088. int SCANCODE_KP_8;
  14089. int SCANCODE_KP_9;
  14090. int SCANCODE_KP_A;
  14091. int SCANCODE_KP_AMPERSAND;
  14092. int SCANCODE_KP_AT;
  14093. int SCANCODE_KP_B;
  14094. int SCANCODE_KP_BACKSPACE;
  14095. int SCANCODE_KP_BINARY;
  14096. int SCANCODE_KP_C;
  14097. int SCANCODE_KP_CLEAR;
  14098. int SCANCODE_KP_CLEARENTRY;
  14099. int SCANCODE_KP_COLON;
  14100. int SCANCODE_KP_COMMA;
  14101. int SCANCODE_KP_D;
  14102. int SCANCODE_KP_DBLAMPERSAND;
  14103. int SCANCODE_KP_DBLVERTICALBAR;
  14104. int SCANCODE_KP_DECIMAL;
  14105. int SCANCODE_KP_DIVIDE;
  14106. int SCANCODE_KP_E;
  14107. int SCANCODE_KP_ENTER;
  14108. int SCANCODE_KP_EQUALS;
  14109. int SCANCODE_KP_EQUALSAS400;
  14110. int SCANCODE_KP_EXCLAM;
  14111. int SCANCODE_KP_F;
  14112. int SCANCODE_KP_GREATER;
  14113. int SCANCODE_KP_HASH;
  14114. int SCANCODE_KP_HEXADECIMAL;
  14115. int SCANCODE_KP_LEFTBRACE;
  14116. int SCANCODE_KP_LEFTPAREN;
  14117. int SCANCODE_KP_LESS;
  14118. int SCANCODE_KP_MEMADD;
  14119. int SCANCODE_KP_MEMCLEAR;
  14120. int SCANCODE_KP_MEMDIVIDE;
  14121. int SCANCODE_KP_MEMMULTIPLY;
  14122. int SCANCODE_KP_MEMRECALL;
  14123. int SCANCODE_KP_MEMSTORE;
  14124. int SCANCODE_KP_MEMSUBTRACT;
  14125. int SCANCODE_KP_MINUS;
  14126. int SCANCODE_KP_MULTIPLY;
  14127. int SCANCODE_KP_OCTAL;
  14128. int SCANCODE_KP_PERCENT;
  14129. int SCANCODE_KP_PERIOD;
  14130. int SCANCODE_KP_PLUS;
  14131. int SCANCODE_KP_PLUSMINUS;
  14132. int SCANCODE_KP_POWER;
  14133. int SCANCODE_KP_RIGHTBRACE;
  14134. int SCANCODE_KP_RIGHTPAREN;
  14135. int SCANCODE_KP_SPACE;
  14136. int SCANCODE_KP_TAB;
  14137. int SCANCODE_KP_VERTICALBAR;
  14138. int SCANCODE_KP_XOR;
  14139. int SCANCODE_L;
  14140. int SCANCODE_LALT;
  14141. int SCANCODE_LANG1;
  14142. int SCANCODE_LANG2;
  14143. int SCANCODE_LANG3;
  14144. int SCANCODE_LANG4;
  14145. int SCANCODE_LANG5;
  14146. int SCANCODE_LANG6;
  14147. int SCANCODE_LANG7;
  14148. int SCANCODE_LANG8;
  14149. int SCANCODE_LANG9;
  14150. int SCANCODE_LCTRL;
  14151. int SCANCODE_LEFT;
  14152. int SCANCODE_LEFTBRACKET;
  14153. int SCANCODE_LGUI;
  14154. int SCANCODE_LSHIFT;
  14155. int SCANCODE_M;
  14156. int SCANCODE_MAIL;
  14157. int SCANCODE_MEDIASELECT;
  14158. int SCANCODE_MENU;
  14159. int SCANCODE_MINUS;
  14160. int SCANCODE_MODE;
  14161. int SCANCODE_MUTE;
  14162. int SCANCODE_N;
  14163. int SCANCODE_NONUSBACKSLASH;
  14164. int SCANCODE_NONUSHASH;
  14165. int SCANCODE_NUMLOCKCLEAR;
  14166. int SCANCODE_O;
  14167. int SCANCODE_OPER;
  14168. int SCANCODE_OUT;
  14169. int SCANCODE_P;
  14170. int SCANCODE_PAGEDOWN;
  14171. int SCANCODE_PAGEUP;
  14172. int SCANCODE_PASTE;
  14173. int SCANCODE_PAUSE;
  14174. int SCANCODE_PERIOD;
  14175. int SCANCODE_POWER;
  14176. int SCANCODE_PRINTSCREEN;
  14177. int SCANCODE_PRIOR;
  14178. int SCANCODE_Q;
  14179. int SCANCODE_R;
  14180. int SCANCODE_RALT;
  14181. int SCANCODE_RCTRL;
  14182. int SCANCODE_RETURN;
  14183. int SCANCODE_RETURN2;
  14184. int SCANCODE_RGUI;
  14185. int SCANCODE_RIGHT;
  14186. int SCANCODE_RIGHTBRACKET;
  14187. int SCANCODE_RSHIFT;
  14188. int SCANCODE_S;
  14189. int SCANCODE_SCROLLLOCK;
  14190. int SCANCODE_SELECT;
  14191. int SCANCODE_SEMICOLON;
  14192. int SCANCODE_SEPARATOR;
  14193. int SCANCODE_SHIFT;
  14194. int SCANCODE_SLASH;
  14195. int SCANCODE_SLEEP;
  14196. int SCANCODE_SPACE;
  14197. int SCANCODE_STOP;
  14198. int SCANCODE_SYSREQ;
  14199. int SCANCODE_T;
  14200. int SCANCODE_TAB;
  14201. int SCANCODE_THOUSANDSSEPARATOR;
  14202. int SCANCODE_U;
  14203. int SCANCODE_UNDO;
  14204. int SCANCODE_UNKNOWN;
  14205. int SCANCODE_UP;
  14206. int SCANCODE_V;
  14207. int SCANCODE_VOLUMEDOWN;
  14208. int SCANCODE_VOLUMEUP;
  14209. int SCANCODE_W;
  14210. int SCANCODE_WWW;
  14211. int SCANCODE_X;
  14212. int SCANCODE_Y;
  14213. int SCANCODE_Z;
  14214. uint SCAN_DIRS;
  14215. uint SCAN_FILES;
  14216. uint SCAN_HIDDEN;
  14217. String SOUND_AMBIENT;
  14218. String SOUND_EFFECT;
  14219. String SOUND_MASTER;
  14220. String SOUND_MUSIC;
  14221. String SOUND_VOICE;
  14222. Color TRANSPARENT;
  14223. uint VO_DISABLE_OCCLUSION;
  14224. uint VO_DISABLE_SHADOWS;
  14225. uint VO_LOW_MATERIAL_QUALITY;
  14226. uint VO_NONE;
  14227. Color WHITE;
  14228. Color YELLOW;
  14229. VariantMap globalVars;