AngelScriptAPI.h 386 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567
  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. Rect drawRect;
  242. bool enabled;
  243. /* readonly */
  244. bool enabledEffective;
  245. String entity;
  246. bool flipX;
  247. bool flipY;
  248. Vector2 hotSpot;
  249. /* readonly */
  250. uint id;
  251. /* readonly */
  252. bool inView;
  253. int layer;
  254. uint lightMask;
  255. float lodBias;
  256. LoopMode2D loopMode;
  257. uint maxLights;
  258. /* readonly */
  259. Node node;
  260. /* readonly */
  261. uint numAttributes;
  262. ObjectAnimation objectAnimation;
  263. bool occludee;
  264. bool occluder;
  265. int orderInLayer;
  266. /* readonly */
  267. int refs;
  268. float shadowDistance;
  269. uint shadowMask;
  270. float speed;
  271. Sprite2D sprite;
  272. bool temporary;
  273. Rect textureRect;
  274. /* readonly */
  275. StringHash type;
  276. /* readonly */
  277. String typeName;
  278. bool useDrawRect;
  279. bool useHotSpot;
  280. bool useTextureRect;
  281. uint viewMask;
  282. /* readonly */
  283. int weakRefs;
  284. /* readonly */
  285. BoundingBox worldBoundingBox;
  286. uint zoneMask;
  287. };
  288. class Animation
  289. {
  290. // Methods:
  291. void AddTrigger(const AnimationTriggerPoint&);
  292. void AddTrigger(float, bool, const Variant&);
  293. Animation Clone(const String& = String ( )) const;
  294. AnimationTrack CreateTrack(const String&);
  295. bool HasSubscribedToEvent(Object, const String&);
  296. bool HasSubscribedToEvent(const String&);
  297. bool Load(File);
  298. bool Load(VectorBuffer&);
  299. bool Load(const String&);
  300. bool RemoveAllTracks();
  301. void RemoveAllTriggers();
  302. bool RemoveTrack(const String&);
  303. void RemoveTrigger(uint);
  304. bool Save(File) const;
  305. bool Save(VectorBuffer&) const;
  306. bool Save(const String&) const;
  307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  308. // Properties:
  309. String animationName;
  310. /* readonly */
  311. String category;
  312. float length;
  313. /* readonly */
  314. uint memoryUse;
  315. String name;
  316. /* readonly */
  317. uint numTracks;
  318. uint numTriggers;
  319. /* readonly */
  320. int refs;
  321. /* readonly */
  322. Array<AnimationTrack> tracks;
  323. Array<AnimationTriggerPoint> triggers;
  324. /* readonly */
  325. StringHash type;
  326. /* readonly */
  327. String typeName;
  328. /* readonly */
  329. uint useTimer;
  330. /* readonly */
  331. int weakRefs;
  332. };
  333. class AnimationControl
  334. {
  335. // Properties:
  336. float autoFadeTime;
  337. float fadeTime;
  338. StringHash hash;
  339. String name;
  340. bool removeOnCompletion;
  341. float speed;
  342. float targetWeight;
  343. };
  344. class AnimationController
  345. {
  346. // Methods:
  347. void ApplyAttributes();
  348. void DrawDebugGeometry(DebugRenderer, bool);
  349. bool Fade(const String&, float, float);
  350. bool FadeOthers(const String&, float, float);
  351. AnimationState GetAnimationState(StringHash) const;
  352. AnimationState GetAnimationState(const String&) const;
  353. Variant GetAttribute(const String&) const;
  354. ValueAnimation GetAttributeAnimation(const String&) const;
  355. float GetAttributeAnimationSpeed(const String&) const;
  356. float GetAttributeAnimationTime(const String&) const;
  357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  358. Variant GetAttributeDefault(const String&) const;
  359. float GetAutoFade(const String&) const;
  360. AnimationBlendMode GetBlendMode(const String&) const;
  361. float GetFadeTarget(const String&) const;
  362. float GetFadeTime(const String&) const;
  363. bool GetInterceptNetworkUpdate(const String&) const;
  364. uint8 GetLayer(const String&) const;
  365. float GetLength(const String&) const;
  366. bool GetLooped(const String&) const;
  367. bool GetRemoveOnCompletion(const String&);
  368. float GetSpeed(const String&) const;
  369. float GetTime(const String&) const;
  370. float GetWeight(const String&) const;
  371. bool HasSubscribedToEvent(Object, const String&);
  372. bool HasSubscribedToEvent(const String&);
  373. bool IsAtEnd(const String&) const;
  374. bool IsFadingIn(const String&) const;
  375. bool IsFadingOut(const String&) const;
  376. bool IsPlaying(const String&) const;
  377. bool IsPlaying(uint8) const;
  378. bool Load(File, bool = false);
  379. bool Load(VectorBuffer&, bool = false);
  380. bool LoadJSON(const JSONValue&, bool = false);
  381. bool LoadXML(const XMLElement&, bool = false);
  382. void MarkNetworkUpdate() const;
  383. bool Play(const String&, uint8, bool, float = 0.0f);
  384. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  385. void Remove();
  386. void RemoveAttributeAnimation(const String&);
  387. void RemoveInstanceDefault();
  388. void RemoveObjectAnimation();
  389. void ResetToDefault();
  390. bool Save(File) const;
  391. bool Save(VectorBuffer&) const;
  392. bool SaveJSON(JSONValue&) const;
  393. bool SaveXML(XMLElement&) const;
  394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  395. void SetAnimationTime(float);
  396. bool SetAttribute(const String&, const Variant&);
  397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  398. void SetAttributeAnimationSpeed(const String&, float);
  399. void SetAttributeAnimationTime(const String&, float);
  400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  401. bool SetAutoFade(const String&, float);
  402. bool SetBlendMode(const String&, AnimationBlendMode);
  403. void SetInterceptNetworkUpdate(const String&, bool);
  404. bool SetLayer(const String&, uint8);
  405. bool SetLooped(const String&, bool);
  406. bool SetRemoveOnCompletion(const String&, bool);
  407. bool SetSpeed(const String&, float);
  408. bool SetStartBone(const String&, const String&);
  409. bool SetTime(const String&, float);
  410. bool SetWeight(const String&, float);
  411. void Stop(const String&, float = 0.0f);
  412. void StopAll(float = 0.0f);
  413. void StopLayer(uint8, float = 0.0f);
  414. const String& GetStartBone(const String&) const;
  415. // Properties:
  416. bool animationEnabled;
  417. /* readonly */
  418. Array<AnimationControl> animations;
  419. /* readonly */
  420. Array<Variant> attributeDefaults;
  421. /* readonly */
  422. Array<AttributeInfo> attributeInfos;
  423. Array<Variant> attributes;
  424. /* readonly */
  425. String category;
  426. bool enabled;
  427. /* readonly */
  428. bool enabledEffective;
  429. /* readonly */
  430. uint id;
  431. /* readonly */
  432. Node node;
  433. /* readonly */
  434. uint numAnimations;
  435. /* readonly */
  436. uint numAttributes;
  437. ObjectAnimation objectAnimation;
  438. /* readonly */
  439. int refs;
  440. bool temporary;
  441. /* readonly */
  442. StringHash type;
  443. /* readonly */
  444. String typeName;
  445. /* readonly */
  446. int weakRefs;
  447. };
  448. class AnimationKeyFrame
  449. {
  450. // Properties:
  451. Vector3 position;
  452. Quaternion rotation;
  453. Vector3 scale;
  454. float time;
  455. };
  456. class AnimationSet2D
  457. {
  458. // Methods:
  459. String GetAnimation(uint) const;
  460. bool HasSubscribedToEvent(Object, const String&);
  461. bool HasSubscribedToEvent(const String&);
  462. bool Load(File);
  463. bool Load(VectorBuffer&);
  464. bool Load(const String&);
  465. bool Save(File) const;
  466. bool Save(VectorBuffer&) const;
  467. bool Save(const String&) const;
  468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  469. // Properties:
  470. /* readonly */
  471. String category;
  472. /* readonly */
  473. uint memoryUse;
  474. String name;
  475. /* readonly */
  476. uint numAnimations;
  477. /* readonly */
  478. int refs;
  479. /* readonly */
  480. StringHash type;
  481. /* readonly */
  482. String typeName;
  483. /* readonly */
  484. uint useTimer;
  485. /* readonly */
  486. int weakRefs;
  487. };
  488. class AnimationState
  489. {
  490. // Methods:
  491. void AddTime(float);
  492. void AddWeight(float);
  493. void Apply();
  494. float GetBoneWeight(StringHash) const;
  495. float GetBoneWeight(uint) const;
  496. uint GetTrackIndex(StringHash) const;
  497. uint GetTrackIndex(const String&) const;
  498. void SetBoneWeight(StringHash, float, bool = false);
  499. void SetBoneWeight(const String&, float, bool = false);
  500. void SetBoneWeight(uint, float, bool = false);
  501. // Properties:
  502. /* readonly */
  503. Animation animation;
  504. AnimationBlendMode blendMode;
  505. Array<float> boneWeights;
  506. /* readonly */
  507. bool enabled;
  508. uint8 layer;
  509. /* readonly */
  510. float length;
  511. bool looped;
  512. /* readonly */
  513. AnimatedModel model;
  514. /* readonly */
  515. Node node;
  516. /* readonly */
  517. int refs;
  518. Bone startBone;
  519. float time;
  520. /* readonly */
  521. int weakRefs;
  522. float weight;
  523. };
  524. class AnimationTrack
  525. {
  526. // Methods:
  527. void AddKeyFrame(const AnimationKeyFrame&);
  528. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  529. void RemoveAllKeyFrames();
  530. void RemoveKeyFrame(uint);
  531. // Properties:
  532. uint8 channelMask;
  533. Array<AnimationKeyFrame> keyFrames;
  534. String name;
  535. StringHash nameHash;
  536. /* readonly */
  537. uint numKeyFrames;
  538. };
  539. class AnimationTriggerPoint
  540. {
  541. // Properties:
  542. Variant data;
  543. float time;
  544. };
  545. template <class T> class Array
  546. {
  547. // Methods:
  548. void Clear();
  549. void Erase(uint);
  550. int Find(const T&) const;
  551. int Find(uint, const T&) const;
  552. int FindByRef(const T&) const;
  553. int FindByRef(uint, const T&) const;
  554. void Insert(uint, const T&);
  555. void Pop();
  556. void Push(const T&);
  557. void Reserve(uint);
  558. void Resize(uint);
  559. void Reverse();
  560. void Sort();
  561. void Sort(uint, uint);
  562. void SortReverse();
  563. void SortReverse(uint, uint);
  564. // Properties:
  565. /* readonly */
  566. bool empty;
  567. uint length;
  568. };
  569. class AttributeInfo
  570. {
  571. // Properties:
  572. Variant defaultValue;
  573. /* readonly */
  574. Array<String> enumNames;
  575. uint mode;
  576. String name;
  577. VariantType type;
  578. /* readonly */
  579. Array<String> variantStructureElementNames;
  580. };
  581. class Audio
  582. {
  583. // Methods:
  584. bool HasMasterGain(const String&) const;
  585. bool HasSubscribedToEvent(Object, const String&);
  586. bool HasSubscribedToEvent(const String&);
  587. bool IsSoundTypePaused(const String&);
  588. void PauseSoundType(const String&);
  589. bool Play();
  590. void ResumeAll();
  591. void ResumeSoundType(const String&);
  592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  593. void SetMode(int, int, bool, bool = true);
  594. void Stop();
  595. // Properties:
  596. /* readonly */
  597. String category;
  598. /* readonly */
  599. bool initialized;
  600. /* readonly */
  601. bool interpolation;
  602. SoundListener listener;
  603. Array<float> masterGain;
  604. /* readonly */
  605. int mixRate;
  606. /* readonly */
  607. bool playing;
  608. /* readonly */
  609. int refs;
  610. /* readonly */
  611. uint sampleSize;
  612. /* readonly */
  613. bool stereo;
  614. /* readonly */
  615. StringHash type;
  616. /* readonly */
  617. String typeName;
  618. /* readonly */
  619. int weakRefs;
  620. };
  621. class BiasParameters
  622. {
  623. // Properties:
  624. float constantBias;
  625. float normalOffset;
  626. float slopeScaledBias;
  627. };
  628. class Billboard
  629. {
  630. // Properties:
  631. Color color;
  632. Vector3 direction;
  633. bool enabled;
  634. Vector3 position;
  635. float rotation;
  636. Vector2 size;
  637. Rect uv;
  638. };
  639. class BillboardSet
  640. {
  641. // Methods:
  642. void ApplyAttributes();
  643. void Commit();
  644. void DrawDebugGeometry(DebugRenderer, bool);
  645. Variant GetAttribute(const String&) const;
  646. ValueAnimation GetAttributeAnimation(const String&) const;
  647. float GetAttributeAnimationSpeed(const String&) const;
  648. float GetAttributeAnimationTime(const String&) const;
  649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  650. Variant GetAttributeDefault(const String&) const;
  651. bool GetInterceptNetworkUpdate(const String&) const;
  652. bool HasSubscribedToEvent(Object, const String&);
  653. bool HasSubscribedToEvent(const String&);
  654. bool IsInView(Camera) const;
  655. bool Load(File, bool = false);
  656. bool Load(VectorBuffer&, bool = false);
  657. bool LoadJSON(const JSONValue&, bool = false);
  658. bool LoadXML(const XMLElement&, bool = false);
  659. void MarkNetworkUpdate() const;
  660. void Remove();
  661. void RemoveAttributeAnimation(const String&);
  662. void RemoveInstanceDefault();
  663. void RemoveObjectAnimation();
  664. void ResetToDefault();
  665. bool Save(File) const;
  666. bool Save(VectorBuffer&) const;
  667. bool SaveJSON(JSONValue&) const;
  668. bool SaveXML(XMLElement&) const;
  669. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  670. void SetAnimationTime(float);
  671. bool SetAttribute(const String&, const Variant&);
  672. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  673. void SetAttributeAnimationSpeed(const String&, float);
  674. void SetAttributeAnimationTime(const String&, float);
  675. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  676. void SetInterceptNetworkUpdate(const String&, bool);
  677. // Properties:
  678. bool animationEnabled;
  679. float animationLodBias;
  680. /* readonly */
  681. Array<Variant> attributeDefaults;
  682. /* readonly */
  683. Array<AttributeInfo> attributeInfos;
  684. Array<Variant> attributes;
  685. /* readonly */
  686. Array<Billboard> billboards;
  687. /* readonly */
  688. BoundingBox boundingBox;
  689. bool castShadows;
  690. /* readonly */
  691. String category;
  692. float drawDistance;
  693. bool enabled;
  694. /* readonly */
  695. bool enabledEffective;
  696. FaceCameraMode faceCameraMode;
  697. bool fixedScreenSize;
  698. /* readonly */
  699. uint id;
  700. /* readonly */
  701. bool inView;
  702. uint lightMask;
  703. float lodBias;
  704. Material material;
  705. uint maxLights;
  706. float minAngle;
  707. /* readonly */
  708. Node node;
  709. /* readonly */
  710. uint numAttributes;
  711. uint numBillboards;
  712. ObjectAnimation objectAnimation;
  713. bool occludee;
  714. bool occluder;
  715. /* readonly */
  716. int refs;
  717. bool relative;
  718. bool scaled;
  719. float shadowDistance;
  720. uint shadowMask;
  721. bool sorted;
  722. bool temporary;
  723. /* readonly */
  724. StringHash type;
  725. /* readonly */
  726. String typeName;
  727. uint viewMask;
  728. /* readonly */
  729. int weakRefs;
  730. /* readonly */
  731. BoundingBox worldBoundingBox;
  732. /* readonly */
  733. Zone zone;
  734. uint zoneMask;
  735. };
  736. class Bone
  737. {
  738. // Properties:
  739. bool animated;
  740. BoundingBox boundingBox;
  741. Vector3 initialPosition;
  742. Quaternion initialRotation;
  743. Vector3 initialScale;
  744. String name;
  745. Node node;
  746. float radius;
  747. };
  748. class BorderImage
  749. {
  750. // Methods:
  751. void AddChild(UIElement);
  752. void AddTag(const String&);
  753. void AddTags(const String&, int8 = ';');
  754. void ApplyAttributes();
  755. void BringToFront();
  756. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  757. void DisableLayoutUpdate();
  758. IntVector2 ElementToScreen(const IntVector2&);
  759. void EnableLayoutUpdate();
  760. uint FindChild(UIElement) const;
  761. Variant GetAttribute(const String&) const;
  762. ValueAnimation GetAttributeAnimation(const String&) const;
  763. float GetAttributeAnimationSpeed(const String&) const;
  764. float GetAttributeAnimationTime(const String&) const;
  765. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  766. Variant GetAttributeDefault(const String&) const;
  767. UIElement GetChild(const String&, bool = false) const;
  768. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  769. Array<UIElement> GetChildren(bool = false) const;
  770. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  771. UIElement GetElementEventSender() const;
  772. bool GetInterceptNetworkUpdate(const String&) const;
  773. uint GetNumChildren(bool) const;
  774. bool HasSubscribedToEvent(Object, const String&);
  775. bool HasSubscribedToEvent(const String&);
  776. bool HasTag(const String&) const;
  777. void InsertChild(uint, UIElement);
  778. bool IsInside(IntVector2, bool);
  779. bool IsInsideCombined(IntVector2, bool);
  780. bool Load(File, bool = false);
  781. bool Load(VectorBuffer&, bool = false);
  782. UIElement LoadChildXML(XMLFile, XMLFile = null);
  783. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  784. bool LoadJSON(const JSONValue&, bool = false);
  785. bool LoadXML(File);
  786. bool LoadXML(VectorBuffer&);
  787. bool LoadXML(XMLFile, XMLFile);
  788. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  789. bool LoadXML(const XMLElement&, bool = false);
  790. void MarkNetworkUpdate() const;
  791. void Remove();
  792. void RemoveAllChildren();
  793. void RemoveAllTags();
  794. void RemoveAttributeAnimation(const String&);
  795. void RemoveChild(UIElement, uint = 0);
  796. void RemoveChild(uint);
  797. void RemoveInstanceDefault();
  798. void RemoveObjectAnimation();
  799. bool RemoveTag(const String&);
  800. void ResetDeepEnabled();
  801. void ResetToDefault();
  802. bool Save(File) const;
  803. bool Save(VectorBuffer&) const;
  804. bool SaveJSON(JSONValue&) const;
  805. bool SaveXML(File, const String& = "\t");
  806. bool SaveXML(VectorBuffer&, const String& = "\t");
  807. bool SaveXML(XMLElement&) const;
  808. IntVector2 ScreenToElement(const IntVector2&);
  809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  810. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  811. void SetAnimationTime(float);
  812. bool SetAttribute(const String&, const Variant&);
  813. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  814. void SetAttributeAnimationSpeed(const String&, float);
  815. void SetAttributeAnimationTime(const String&, float);
  816. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  817. void SetDeepEnabled(bool);
  818. void SetEnabledRecursive(bool);
  819. void SetFixedHeight(int);
  820. void SetFixedSize(int, int);
  821. void SetFixedWidth(int);
  822. void SetFullImageRect();
  823. void SetHoverOffset(int, int);
  824. void SetInterceptNetworkUpdate(const String&, bool);
  825. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  826. void SetMaxAnchor(float, float);
  827. void SetMaxSize(int, int);
  828. void SetMinAnchor(float, float);
  829. void SetMinSize(int, int);
  830. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  831. void SetPivot(float, float);
  832. void SetPosition(int, int);
  833. void SetSize(int, int);
  834. bool SetStyle(const String&, XMLFile = null);
  835. bool SetStyle(const XMLElement&);
  836. bool SetStyleAuto(XMLFile = null);
  837. void UpdateLayout();
  838. const Variant& GetVar(const StringHash&);
  839. // Properties:
  840. bool animationEnabled;
  841. /* readonly */
  842. Array<Variant> attributeDefaults;
  843. /* readonly */
  844. Array<AttributeInfo> attributeInfos;
  845. Array<Variant> attributes;
  846. BlendMode blendMode;
  847. IntRect border;
  848. bool bringToBack;
  849. bool bringToFront;
  850. /* readonly */
  851. String category;
  852. /* readonly */
  853. IntVector2 childOffset;
  854. /* readonly */
  855. Array<UIElement> children;
  856. IntRect clipBorder;
  857. bool clipChildren;
  858. /* writeonly */
  859. Color color;
  860. /* readonly */
  861. bool colorGradient;
  862. Array<Color> colors;
  863. /* readonly */
  864. IntRect combinedScreenRect;
  865. XMLFile defaultStyle;
  866. /* readonly */
  867. float derivedOpacity;
  868. /* readonly */
  869. uint dragButtonCombo;
  870. /* readonly */
  871. int dragButtonCount;
  872. uint dragDropMode;
  873. bool editable;
  874. bool elementEventSender;
  875. bool enableAnchor;
  876. bool enabled;
  877. /* readonly */
  878. bool enabledSelf;
  879. /* readonly */
  880. bool fixedHeight;
  881. /* readonly */
  882. bool fixedSize;
  883. /* readonly */
  884. bool fixedWidth;
  885. bool focus;
  886. FocusMode focusMode;
  887. int height;
  888. HorizontalAlignment horizontalAlignment;
  889. IntVector2 hoverOffset;
  890. /* readonly */
  891. bool hovering;
  892. IntRect imageBorder;
  893. IntRect imageRect;
  894. int indent;
  895. int indentSpacing;
  896. /* readonly */
  897. int indentWidth;
  898. bool internal;
  899. IntRect layoutBorder;
  900. Vector2 layoutFlexScale;
  901. LayoutMode layoutMode;
  902. int layoutSpacing;
  903. Vector2 maxAnchor;
  904. int maxHeight;
  905. IntVector2 maxOffset;
  906. IntVector2 maxSize;
  907. int maxWidth;
  908. Vector2 minAnchor;
  909. int minHeight;
  910. IntVector2 minOffset;
  911. IntVector2 minSize;
  912. int minWidth;
  913. String name;
  914. /* readonly */
  915. uint numAllChildren;
  916. /* readonly */
  917. uint numAttributes;
  918. /* readonly */
  919. uint numChildren;
  920. ObjectAnimation objectAnimation;
  921. float opacity;
  922. UIElement parent;
  923. Vector2 pivot;
  924. IntVector2 position;
  925. int priority;
  926. /* readonly */
  927. int refs;
  928. /* readonly */
  929. UIElement root;
  930. /* readonly */
  931. IntVector2 screenPosition;
  932. bool selected;
  933. IntVector2 size;
  934. bool sortChildren;
  935. String style;
  936. /* readonly */
  937. Array<String> tags;
  938. bool temporary;
  939. Texture texture;
  940. bool tiled;
  941. TraversalMode traversalMode;
  942. /* readonly */
  943. StringHash type;
  944. /* readonly */
  945. String typeName;
  946. bool useDerivedOpacity;
  947. /* readonly */
  948. VariantMap vars;
  949. VerticalAlignment verticalAlignment;
  950. bool visible;
  951. /* readonly */
  952. bool visibleEffective;
  953. /* readonly */
  954. int weakRefs;
  955. int width;
  956. };
  957. class BoundingBox
  958. {
  959. // Methods:
  960. void Clear();
  961. void Clip(const BoundingBox&);
  962. void Define(const BoundingBox&);
  963. void Define(const Frustum&);
  964. void Define(const Polyhedron&);
  965. void Define(const Sphere&);
  966. void Define(const Vector3&);
  967. void Define(const Vector3&, const Vector3&);
  968. void Define(float, float);
  969. bool Defined() const;
  970. Intersection IsInside(const BoundingBox&) const;
  971. Intersection IsInside(const Sphere&) const;
  972. Intersection IsInside(const Vector3&) const;
  973. Intersection IsInsideFast(const BoundingBox&) const;
  974. Intersection IsInsideFast(const Sphere&) const;
  975. void Merge(const BoundingBox&);
  976. void Merge(const Frustum&);
  977. void Merge(const Polyhedron&);
  978. void Merge(const Sphere&);
  979. void Merge(const Vector3&);
  980. Rect Projected(const Matrix4&) const;
  981. String ToString() const;
  982. void Transform(const Matrix3&);
  983. void Transform(const Matrix3x4&);
  984. BoundingBox Transformed(const Matrix3&) const;
  985. BoundingBox Transformed(const Matrix3x4&) const;
  986. // Properties:
  987. /* readonly */
  988. Vector3 center;
  989. /* readonly */
  990. Vector3 halfSize;
  991. Vector3 max;
  992. Vector3 min;
  993. /* readonly */
  994. Vector3 size;
  995. };
  996. class Button
  997. {
  998. // Methods:
  999. void AddChild(UIElement);
  1000. void AddTag(const String&);
  1001. void AddTags(const String&, int8 = ';');
  1002. void ApplyAttributes();
  1003. void BringToFront();
  1004. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1005. void DisableLayoutUpdate();
  1006. IntVector2 ElementToScreen(const IntVector2&);
  1007. void EnableLayoutUpdate();
  1008. uint FindChild(UIElement) const;
  1009. Variant GetAttribute(const String&) const;
  1010. ValueAnimation GetAttributeAnimation(const String&) const;
  1011. float GetAttributeAnimationSpeed(const String&) const;
  1012. float GetAttributeAnimationTime(const String&) const;
  1013. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1014. Variant GetAttributeDefault(const String&) const;
  1015. UIElement GetChild(const String&, bool = false) const;
  1016. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1017. Array<UIElement> GetChildren(bool = false) const;
  1018. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1019. UIElement GetElementEventSender() const;
  1020. bool GetInterceptNetworkUpdate(const String&) const;
  1021. uint GetNumChildren(bool) const;
  1022. bool HasSubscribedToEvent(Object, const String&);
  1023. bool HasSubscribedToEvent(const String&);
  1024. bool HasTag(const String&) const;
  1025. void InsertChild(uint, UIElement);
  1026. bool IsInside(IntVector2, bool);
  1027. bool IsInsideCombined(IntVector2, bool);
  1028. bool Load(File, bool = false);
  1029. bool Load(VectorBuffer&, bool = false);
  1030. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1031. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1032. bool LoadJSON(const JSONValue&, bool = false);
  1033. bool LoadXML(File);
  1034. bool LoadXML(VectorBuffer&);
  1035. bool LoadXML(XMLFile, XMLFile);
  1036. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1037. bool LoadXML(const XMLElement&, bool = false);
  1038. void MarkNetworkUpdate() const;
  1039. void Remove();
  1040. void RemoveAllChildren();
  1041. void RemoveAllTags();
  1042. void RemoveAttributeAnimation(const String&);
  1043. void RemoveChild(UIElement, uint = 0);
  1044. void RemoveChild(uint);
  1045. void RemoveInstanceDefault();
  1046. void RemoveObjectAnimation();
  1047. bool RemoveTag(const String&);
  1048. void ResetDeepEnabled();
  1049. void ResetToDefault();
  1050. bool Save(File) const;
  1051. bool Save(VectorBuffer&) const;
  1052. bool SaveJSON(JSONValue&) const;
  1053. bool SaveXML(File, const String& = "\t");
  1054. bool SaveXML(VectorBuffer&, const String& = "\t");
  1055. bool SaveXML(XMLElement&) const;
  1056. IntVector2 ScreenToElement(const IntVector2&);
  1057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1058. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1059. void SetAnimationTime(float);
  1060. bool SetAttribute(const String&, const Variant&);
  1061. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1062. void SetAttributeAnimationSpeed(const String&, float);
  1063. void SetAttributeAnimationTime(const String&, float);
  1064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1065. void SetDeepEnabled(bool);
  1066. void SetEnabledRecursive(bool);
  1067. void SetFixedHeight(int);
  1068. void SetFixedSize(int, int);
  1069. void SetFixedWidth(int);
  1070. void SetFullImageRect();
  1071. void SetHoverOffset(int, int);
  1072. void SetInterceptNetworkUpdate(const String&, bool);
  1073. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1074. void SetMaxAnchor(float, float);
  1075. void SetMaxSize(int, int);
  1076. void SetMinAnchor(float, float);
  1077. void SetMinSize(int, int);
  1078. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1079. void SetPivot(float, float);
  1080. void SetPosition(int, int);
  1081. void SetPressedChildOffset(int, int);
  1082. void SetPressedOffset(int, int);
  1083. void SetRepeat(float, float);
  1084. void SetSize(int, int);
  1085. bool SetStyle(const String&, XMLFile = null);
  1086. bool SetStyle(const XMLElement&);
  1087. bool SetStyleAuto(XMLFile = null);
  1088. void UpdateLayout();
  1089. const Variant& GetVar(const StringHash&);
  1090. // Properties:
  1091. bool animationEnabled;
  1092. /* readonly */
  1093. Array<Variant> attributeDefaults;
  1094. /* readonly */
  1095. Array<AttributeInfo> attributeInfos;
  1096. Array<Variant> attributes;
  1097. BlendMode blendMode;
  1098. IntRect border;
  1099. bool bringToBack;
  1100. bool bringToFront;
  1101. /* readonly */
  1102. String category;
  1103. /* readonly */
  1104. IntVector2 childOffset;
  1105. /* readonly */
  1106. Array<UIElement> children;
  1107. IntRect clipBorder;
  1108. bool clipChildren;
  1109. /* writeonly */
  1110. Color color;
  1111. /* readonly */
  1112. bool colorGradient;
  1113. Array<Color> colors;
  1114. /* readonly */
  1115. IntRect combinedScreenRect;
  1116. XMLFile defaultStyle;
  1117. /* readonly */
  1118. float derivedOpacity;
  1119. /* readonly */
  1120. uint dragButtonCombo;
  1121. /* readonly */
  1122. int dragButtonCount;
  1123. uint dragDropMode;
  1124. bool editable;
  1125. bool elementEventSender;
  1126. bool enableAnchor;
  1127. bool enabled;
  1128. /* readonly */
  1129. bool enabledSelf;
  1130. /* readonly */
  1131. bool fixedHeight;
  1132. /* readonly */
  1133. bool fixedSize;
  1134. /* readonly */
  1135. bool fixedWidth;
  1136. bool focus;
  1137. FocusMode focusMode;
  1138. int height;
  1139. HorizontalAlignment horizontalAlignment;
  1140. IntVector2 hoverOffset;
  1141. /* readonly */
  1142. bool hovering;
  1143. IntRect imageBorder;
  1144. IntRect imageRect;
  1145. int indent;
  1146. int indentSpacing;
  1147. /* readonly */
  1148. int indentWidth;
  1149. bool internal;
  1150. IntRect layoutBorder;
  1151. Vector2 layoutFlexScale;
  1152. LayoutMode layoutMode;
  1153. int layoutSpacing;
  1154. Vector2 maxAnchor;
  1155. int maxHeight;
  1156. IntVector2 maxOffset;
  1157. IntVector2 maxSize;
  1158. int maxWidth;
  1159. Vector2 minAnchor;
  1160. int minHeight;
  1161. IntVector2 minOffset;
  1162. IntVector2 minSize;
  1163. int minWidth;
  1164. String name;
  1165. /* readonly */
  1166. uint numAllChildren;
  1167. /* readonly */
  1168. uint numAttributes;
  1169. /* readonly */
  1170. uint numChildren;
  1171. ObjectAnimation objectAnimation;
  1172. float opacity;
  1173. UIElement parent;
  1174. Vector2 pivot;
  1175. IntVector2 position;
  1176. /* readonly */
  1177. bool pressed;
  1178. IntVector2 pressedChildOffset;
  1179. IntVector2 pressedOffset;
  1180. int priority;
  1181. /* readonly */
  1182. int refs;
  1183. float repeatDelay;
  1184. float repeatRate;
  1185. /* readonly */
  1186. UIElement root;
  1187. /* readonly */
  1188. IntVector2 screenPosition;
  1189. bool selected;
  1190. IntVector2 size;
  1191. bool sortChildren;
  1192. String style;
  1193. /* readonly */
  1194. Array<String> tags;
  1195. bool temporary;
  1196. Texture texture;
  1197. bool tiled;
  1198. TraversalMode traversalMode;
  1199. /* readonly */
  1200. StringHash type;
  1201. /* readonly */
  1202. String typeName;
  1203. bool useDerivedOpacity;
  1204. /* readonly */
  1205. VariantMap vars;
  1206. VerticalAlignment verticalAlignment;
  1207. bool visible;
  1208. /* readonly */
  1209. bool visibleEffective;
  1210. /* readonly */
  1211. int weakRefs;
  1212. int width;
  1213. };
  1214. class Camera
  1215. {
  1216. // Methods:
  1217. void ApplyAttributes();
  1218. void DrawDebugGeometry(DebugRenderer, bool);
  1219. Variant GetAttribute(const String&) const;
  1220. ValueAnimation GetAttributeAnimation(const String&) const;
  1221. float GetAttributeAnimationSpeed(const String&) const;
  1222. float GetAttributeAnimationTime(const String&) const;
  1223. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1224. Variant GetAttributeDefault(const String&) const;
  1225. float GetDistance(const Vector3&) const;
  1226. float GetDistanceSquared(const Vector3&) const;
  1227. bool GetInterceptNetworkUpdate(const String&) const;
  1228. Ray GetScreenRay(float, float) const;
  1229. Frustum GetSplitFrustum(float, float) const;
  1230. bool HasSubscribedToEvent(Object, const String&);
  1231. bool HasSubscribedToEvent(const String&);
  1232. bool Load(File, bool = false);
  1233. bool Load(VectorBuffer&, bool = false);
  1234. bool LoadJSON(const JSONValue&, bool = false);
  1235. bool LoadXML(const XMLElement&, bool = false);
  1236. void MarkNetworkUpdate() const;
  1237. void Remove();
  1238. void RemoveAttributeAnimation(const String&);
  1239. void RemoveInstanceDefault();
  1240. void RemoveObjectAnimation();
  1241. void ResetToDefault();
  1242. bool Save(File) const;
  1243. bool Save(VectorBuffer&) const;
  1244. bool SaveJSON(JSONValue&) const;
  1245. bool SaveXML(XMLElement&) const;
  1246. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1248. void SetAnimationTime(float);
  1249. bool SetAttribute(const String&, const Variant&);
  1250. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1251. void SetAttributeAnimationSpeed(const String&, float);
  1252. void SetAttributeAnimationTime(const String&, float);
  1253. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1254. void SetInterceptNetworkUpdate(const String&, bool);
  1255. void SetOrthoSize(const Vector2&);
  1256. Vector2 WorldToScreenPoint(const Vector3&) const;
  1257. // Properties:
  1258. bool animationEnabled;
  1259. float aspectRatio;
  1260. /* readonly */
  1261. Array<Variant> attributeDefaults;
  1262. /* readonly */
  1263. Array<AttributeInfo> attributeInfos;
  1264. Array<Variant> attributes;
  1265. bool autoAspectRatio;
  1266. /* readonly */
  1267. String category;
  1268. Plane clipPlane;
  1269. /* readonly */
  1270. Matrix3x4 effectiveWorldTransform;
  1271. bool enabled;
  1272. /* readonly */
  1273. bool enabledEffective;
  1274. float farClip;
  1275. FillMode fillMode;
  1276. float fov;
  1277. /* readonly */
  1278. Frustum frustum;
  1279. /* readonly */
  1280. Matrix4 gpuProjection;
  1281. /* readonly */
  1282. float halfViewSize;
  1283. /* readonly */
  1284. uint id;
  1285. float lodBias;
  1286. float nearClip;
  1287. /* readonly */
  1288. Node node;
  1289. /* readonly */
  1290. uint numAttributes;
  1291. ObjectAnimation objectAnimation;
  1292. float orthoSize;
  1293. bool orthographic;
  1294. Matrix4 projection;
  1295. Vector2 projectionOffset;
  1296. Plane reflectionPlane;
  1297. /* readonly */
  1298. int refs;
  1299. bool temporary;
  1300. /* readonly */
  1301. StringHash type;
  1302. /* readonly */
  1303. String typeName;
  1304. bool useClipping;
  1305. bool useReflection;
  1306. /* readonly */
  1307. Matrix3x4 view;
  1308. uint viewMask;
  1309. uint viewOverrideFlags;
  1310. /* readonly */
  1311. Frustum viewSpaceFrustum;
  1312. /* readonly */
  1313. int weakRefs;
  1314. float zoom;
  1315. };
  1316. class CascadeParameters
  1317. {
  1318. // Properties:
  1319. float biasAutoAdjust;
  1320. float fadeStart;
  1321. float split1;
  1322. float split2;
  1323. float split3;
  1324. float split4;
  1325. };
  1326. class CheckBox
  1327. {
  1328. // Methods:
  1329. void AddChild(UIElement);
  1330. void AddTag(const String&);
  1331. void AddTags(const String&, int8 = ';');
  1332. void ApplyAttributes();
  1333. void BringToFront();
  1334. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1335. void DisableLayoutUpdate();
  1336. IntVector2 ElementToScreen(const IntVector2&);
  1337. void EnableLayoutUpdate();
  1338. uint FindChild(UIElement) const;
  1339. Variant GetAttribute(const String&) const;
  1340. ValueAnimation GetAttributeAnimation(const String&) const;
  1341. float GetAttributeAnimationSpeed(const String&) const;
  1342. float GetAttributeAnimationTime(const String&) const;
  1343. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1344. Variant GetAttributeDefault(const String&) const;
  1345. UIElement GetChild(const String&, bool = false) const;
  1346. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1347. Array<UIElement> GetChildren(bool = false) const;
  1348. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1349. UIElement GetElementEventSender() const;
  1350. bool GetInterceptNetworkUpdate(const String&) const;
  1351. uint GetNumChildren(bool) const;
  1352. bool HasSubscribedToEvent(Object, const String&);
  1353. bool HasSubscribedToEvent(const String&);
  1354. bool HasTag(const String&) const;
  1355. void InsertChild(uint, UIElement);
  1356. bool IsInside(IntVector2, bool);
  1357. bool IsInsideCombined(IntVector2, bool);
  1358. bool Load(File, bool = false);
  1359. bool Load(VectorBuffer&, bool = false);
  1360. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1361. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1362. bool LoadJSON(const JSONValue&, bool = false);
  1363. bool LoadXML(File);
  1364. bool LoadXML(VectorBuffer&);
  1365. bool LoadXML(XMLFile, XMLFile);
  1366. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1367. bool LoadXML(const XMLElement&, bool = false);
  1368. void MarkNetworkUpdate() const;
  1369. void Remove();
  1370. void RemoveAllChildren();
  1371. void RemoveAllTags();
  1372. void RemoveAttributeAnimation(const String&);
  1373. void RemoveChild(UIElement, uint = 0);
  1374. void RemoveChild(uint);
  1375. void RemoveInstanceDefault();
  1376. void RemoveObjectAnimation();
  1377. bool RemoveTag(const String&);
  1378. void ResetDeepEnabled();
  1379. void ResetToDefault();
  1380. bool Save(File) const;
  1381. bool Save(VectorBuffer&) const;
  1382. bool SaveJSON(JSONValue&) const;
  1383. bool SaveXML(File, const String& = "\t");
  1384. bool SaveXML(VectorBuffer&, const String& = "\t");
  1385. bool SaveXML(XMLElement&) const;
  1386. IntVector2 ScreenToElement(const IntVector2&);
  1387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1388. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1389. void SetAnimationTime(float);
  1390. bool SetAttribute(const String&, const Variant&);
  1391. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1392. void SetAttributeAnimationSpeed(const String&, float);
  1393. void SetAttributeAnimationTime(const String&, float);
  1394. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1395. void SetCheckedOffset(int, int);
  1396. void SetDeepEnabled(bool);
  1397. void SetEnabledRecursive(bool);
  1398. void SetFixedHeight(int);
  1399. void SetFixedSize(int, int);
  1400. void SetFixedWidth(int);
  1401. void SetFullImageRect();
  1402. void SetHoverOffset(int, int);
  1403. void SetInterceptNetworkUpdate(const String&, bool);
  1404. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1405. void SetMaxAnchor(float, float);
  1406. void SetMaxSize(int, int);
  1407. void SetMinAnchor(float, float);
  1408. void SetMinSize(int, int);
  1409. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1410. void SetPivot(float, float);
  1411. void SetPosition(int, int);
  1412. void SetSize(int, int);
  1413. bool SetStyle(const String&, XMLFile = null);
  1414. bool SetStyle(const XMLElement&);
  1415. bool SetStyleAuto(XMLFile = null);
  1416. void UpdateLayout();
  1417. const Variant& GetVar(const StringHash&);
  1418. // Properties:
  1419. bool animationEnabled;
  1420. /* readonly */
  1421. Array<Variant> attributeDefaults;
  1422. /* readonly */
  1423. Array<AttributeInfo> attributeInfos;
  1424. Array<Variant> attributes;
  1425. BlendMode blendMode;
  1426. IntRect border;
  1427. bool bringToBack;
  1428. bool bringToFront;
  1429. /* readonly */
  1430. String category;
  1431. bool checked;
  1432. IntVector2 checkedOffset;
  1433. /* readonly */
  1434. IntVector2 childOffset;
  1435. /* readonly */
  1436. Array<UIElement> children;
  1437. IntRect clipBorder;
  1438. bool clipChildren;
  1439. /* writeonly */
  1440. Color color;
  1441. /* readonly */
  1442. bool colorGradient;
  1443. Array<Color> colors;
  1444. /* readonly */
  1445. IntRect combinedScreenRect;
  1446. XMLFile defaultStyle;
  1447. /* readonly */
  1448. float derivedOpacity;
  1449. /* readonly */
  1450. uint dragButtonCombo;
  1451. /* readonly */
  1452. int dragButtonCount;
  1453. uint dragDropMode;
  1454. bool editable;
  1455. bool elementEventSender;
  1456. bool enableAnchor;
  1457. bool enabled;
  1458. /* readonly */
  1459. bool enabledSelf;
  1460. /* readonly */
  1461. bool fixedHeight;
  1462. /* readonly */
  1463. bool fixedSize;
  1464. /* readonly */
  1465. bool fixedWidth;
  1466. bool focus;
  1467. FocusMode focusMode;
  1468. int height;
  1469. HorizontalAlignment horizontalAlignment;
  1470. IntVector2 hoverOffset;
  1471. /* readonly */
  1472. bool hovering;
  1473. IntRect imageBorder;
  1474. IntRect imageRect;
  1475. int indent;
  1476. int indentSpacing;
  1477. /* readonly */
  1478. int indentWidth;
  1479. bool internal;
  1480. IntRect layoutBorder;
  1481. Vector2 layoutFlexScale;
  1482. LayoutMode layoutMode;
  1483. int layoutSpacing;
  1484. Vector2 maxAnchor;
  1485. int maxHeight;
  1486. IntVector2 maxOffset;
  1487. IntVector2 maxSize;
  1488. int maxWidth;
  1489. Vector2 minAnchor;
  1490. int minHeight;
  1491. IntVector2 minOffset;
  1492. IntVector2 minSize;
  1493. int minWidth;
  1494. String name;
  1495. /* readonly */
  1496. uint numAllChildren;
  1497. /* readonly */
  1498. uint numAttributes;
  1499. /* readonly */
  1500. uint numChildren;
  1501. ObjectAnimation objectAnimation;
  1502. float opacity;
  1503. UIElement parent;
  1504. Vector2 pivot;
  1505. IntVector2 position;
  1506. int priority;
  1507. /* readonly */
  1508. int refs;
  1509. /* readonly */
  1510. UIElement root;
  1511. /* readonly */
  1512. IntVector2 screenPosition;
  1513. bool selected;
  1514. IntVector2 size;
  1515. bool sortChildren;
  1516. String style;
  1517. /* readonly */
  1518. Array<String> tags;
  1519. bool temporary;
  1520. Texture texture;
  1521. bool tiled;
  1522. TraversalMode traversalMode;
  1523. /* readonly */
  1524. StringHash type;
  1525. /* readonly */
  1526. String typeName;
  1527. bool useDerivedOpacity;
  1528. /* readonly */
  1529. VariantMap vars;
  1530. VerticalAlignment verticalAlignment;
  1531. bool visible;
  1532. /* readonly */
  1533. bool visibleEffective;
  1534. /* readonly */
  1535. int weakRefs;
  1536. int width;
  1537. };
  1538. class CollisionBox2D
  1539. {
  1540. // Methods:
  1541. void ApplyAttributes();
  1542. void DrawDebugGeometry(DebugRenderer, bool);
  1543. Variant GetAttribute(const String&) const;
  1544. ValueAnimation GetAttributeAnimation(const String&) const;
  1545. float GetAttributeAnimationSpeed(const String&) const;
  1546. float GetAttributeAnimationTime(const String&) const;
  1547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1548. Variant GetAttributeDefault(const String&) const;
  1549. bool GetInterceptNetworkUpdate(const String&) const;
  1550. bool HasSubscribedToEvent(Object, const String&);
  1551. bool HasSubscribedToEvent(const String&);
  1552. bool Load(File, bool = false);
  1553. bool Load(VectorBuffer&, bool = false);
  1554. bool LoadJSON(const JSONValue&, bool = false);
  1555. bool LoadXML(const XMLElement&, bool = false);
  1556. void MarkNetworkUpdate() const;
  1557. void Remove();
  1558. void RemoveAttributeAnimation(const String&);
  1559. void RemoveInstanceDefault();
  1560. void RemoveObjectAnimation();
  1561. void ResetToDefault();
  1562. bool Save(File) const;
  1563. bool Save(VectorBuffer&) const;
  1564. bool SaveJSON(JSONValue&) const;
  1565. bool SaveXML(XMLElement&) const;
  1566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1567. void SetAnimationTime(float);
  1568. bool SetAttribute(const String&, const Variant&);
  1569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1570. void SetAttributeAnimationSpeed(const String&, float);
  1571. void SetAttributeAnimationTime(const String&, float);
  1572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1573. void SetCenter(float, float);
  1574. void SetInterceptNetworkUpdate(const String&, bool);
  1575. void SetSize(float, float);
  1576. // Properties:
  1577. float angle;
  1578. bool animationEnabled;
  1579. /* readonly */
  1580. Array<Variant> attributeDefaults;
  1581. /* readonly */
  1582. Array<AttributeInfo> attributeInfos;
  1583. Array<Variant> attributes;
  1584. /* readonly */
  1585. String category;
  1586. int categoryBits;
  1587. Vector2 center;
  1588. float density;
  1589. bool enabled;
  1590. /* readonly */
  1591. bool enabledEffective;
  1592. float friction;
  1593. int groupIndex;
  1594. /* readonly */
  1595. uint id;
  1596. /* readonly */
  1597. float inertia;
  1598. int maskBits;
  1599. /* readonly */
  1600. float mass;
  1601. /* readonly */
  1602. Vector2 massCenter;
  1603. /* readonly */
  1604. Node node;
  1605. /* readonly */
  1606. uint numAttributes;
  1607. ObjectAnimation objectAnimation;
  1608. /* readonly */
  1609. int refs;
  1610. float restitution;
  1611. Vector2 size;
  1612. bool temporary;
  1613. bool trigger;
  1614. /* readonly */
  1615. StringHash type;
  1616. /* readonly */
  1617. String typeName;
  1618. /* readonly */
  1619. int weakRefs;
  1620. };
  1621. class CollisionChain2D
  1622. {
  1623. // Methods:
  1624. void ApplyAttributes();
  1625. void DrawDebugGeometry(DebugRenderer, bool);
  1626. Variant GetAttribute(const String&) const;
  1627. ValueAnimation GetAttributeAnimation(const String&) const;
  1628. float GetAttributeAnimationSpeed(const String&) const;
  1629. float GetAttributeAnimationTime(const String&) const;
  1630. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1631. Variant GetAttributeDefault(const String&) const;
  1632. bool GetInterceptNetworkUpdate(const String&) const;
  1633. Array<Vector2> GetVertices() const;
  1634. bool HasSubscribedToEvent(Object, const String&);
  1635. bool HasSubscribedToEvent(const String&);
  1636. bool Load(File, bool = false);
  1637. bool Load(VectorBuffer&, bool = false);
  1638. bool LoadJSON(const JSONValue&, bool = false);
  1639. bool LoadXML(const XMLElement&, bool = false);
  1640. void MarkNetworkUpdate() const;
  1641. void Remove();
  1642. void RemoveAttributeAnimation(const String&);
  1643. void RemoveInstanceDefault();
  1644. void RemoveObjectAnimation();
  1645. void ResetToDefault();
  1646. bool Save(File) const;
  1647. bool Save(VectorBuffer&) const;
  1648. bool SaveJSON(JSONValue&) const;
  1649. bool SaveXML(XMLElement&) const;
  1650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1651. void SetAnimationTime(float);
  1652. bool SetAttribute(const String&, const Variant&);
  1653. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1654. void SetAttributeAnimationSpeed(const String&, float);
  1655. void SetAttributeAnimationTime(const String&, float);
  1656. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1657. void SetInterceptNetworkUpdate(const String&, bool);
  1658. void SetVertex(uint, const Vector2&);
  1659. void SetVertices(Array<Vector2>);
  1660. const Vector2& GetVertex(uint) const;
  1661. // Properties:
  1662. bool animationEnabled;
  1663. /* readonly */
  1664. Array<Variant> attributeDefaults;
  1665. /* readonly */
  1666. Array<AttributeInfo> attributeInfos;
  1667. Array<Variant> attributes;
  1668. /* readonly */
  1669. String category;
  1670. int categoryBits;
  1671. float density;
  1672. bool enabled;
  1673. /* readonly */
  1674. bool enabledEffective;
  1675. float friction;
  1676. int groupIndex;
  1677. /* readonly */
  1678. uint id;
  1679. /* readonly */
  1680. float inertia;
  1681. bool loop;
  1682. int maskBits;
  1683. /* readonly */
  1684. float mass;
  1685. /* readonly */
  1686. Vector2 massCenter;
  1687. /* readonly */
  1688. Node node;
  1689. /* readonly */
  1690. uint numAttributes;
  1691. ObjectAnimation objectAnimation;
  1692. /* readonly */
  1693. int refs;
  1694. float restitution;
  1695. bool temporary;
  1696. bool trigger;
  1697. /* readonly */
  1698. StringHash type;
  1699. /* readonly */
  1700. String typeName;
  1701. uint vertexCount;
  1702. /* readonly */
  1703. int weakRefs;
  1704. };
  1705. class CollisionCircle2D
  1706. {
  1707. // Methods:
  1708. void ApplyAttributes();
  1709. void DrawDebugGeometry(DebugRenderer, bool);
  1710. Variant GetAttribute(const String&) const;
  1711. ValueAnimation GetAttributeAnimation(const String&) const;
  1712. float GetAttributeAnimationSpeed(const String&) const;
  1713. float GetAttributeAnimationTime(const String&) const;
  1714. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1715. Variant GetAttributeDefault(const String&) const;
  1716. bool GetInterceptNetworkUpdate(const String&) const;
  1717. bool HasSubscribedToEvent(Object, const String&);
  1718. bool HasSubscribedToEvent(const String&);
  1719. bool Load(File, bool = false);
  1720. bool Load(VectorBuffer&, bool = false);
  1721. bool LoadJSON(const JSONValue&, bool = false);
  1722. bool LoadXML(const XMLElement&, bool = false);
  1723. void MarkNetworkUpdate() const;
  1724. void Remove();
  1725. void RemoveAttributeAnimation(const String&);
  1726. void RemoveInstanceDefault();
  1727. void RemoveObjectAnimation();
  1728. void ResetToDefault();
  1729. bool Save(File) const;
  1730. bool Save(VectorBuffer&) const;
  1731. bool SaveJSON(JSONValue&) const;
  1732. bool SaveXML(XMLElement&) const;
  1733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1734. void SetAnimationTime(float);
  1735. bool SetAttribute(const String&, const Variant&);
  1736. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1737. void SetAttributeAnimationSpeed(const String&, float);
  1738. void SetAttributeAnimationTime(const String&, float);
  1739. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1740. void SetCenter(float, float);
  1741. void SetInterceptNetworkUpdate(const String&, bool);
  1742. // Properties:
  1743. bool animationEnabled;
  1744. /* readonly */
  1745. Array<Variant> attributeDefaults;
  1746. /* readonly */
  1747. Array<AttributeInfo> attributeInfos;
  1748. Array<Variant> attributes;
  1749. /* readonly */
  1750. String category;
  1751. int categoryBits;
  1752. Vector2 center;
  1753. float density;
  1754. bool enabled;
  1755. /* readonly */
  1756. bool enabledEffective;
  1757. float friction;
  1758. int groupIndex;
  1759. /* readonly */
  1760. uint id;
  1761. /* readonly */
  1762. float inertia;
  1763. int maskBits;
  1764. /* readonly */
  1765. float mass;
  1766. /* readonly */
  1767. Vector2 massCenter;
  1768. /* readonly */
  1769. Node node;
  1770. /* readonly */
  1771. uint numAttributes;
  1772. ObjectAnimation objectAnimation;
  1773. float radius;
  1774. /* readonly */
  1775. int refs;
  1776. float restitution;
  1777. bool temporary;
  1778. bool trigger;
  1779. /* readonly */
  1780. StringHash type;
  1781. /* readonly */
  1782. String typeName;
  1783. /* readonly */
  1784. int weakRefs;
  1785. };
  1786. class CollisionEdge2D
  1787. {
  1788. // Methods:
  1789. void ApplyAttributes();
  1790. void DrawDebugGeometry(DebugRenderer, bool);
  1791. Variant GetAttribute(const String&) const;
  1792. ValueAnimation GetAttributeAnimation(const String&) const;
  1793. float GetAttributeAnimationSpeed(const String&) const;
  1794. float GetAttributeAnimationTime(const String&) const;
  1795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1796. Variant GetAttributeDefault(const String&) const;
  1797. bool GetInterceptNetworkUpdate(const String&) const;
  1798. bool HasSubscribedToEvent(Object, const String&);
  1799. bool HasSubscribedToEvent(const String&);
  1800. bool Load(File, bool = false);
  1801. bool Load(VectorBuffer&, bool = false);
  1802. bool LoadJSON(const JSONValue&, bool = false);
  1803. bool LoadXML(const XMLElement&, bool = false);
  1804. void MarkNetworkUpdate() const;
  1805. void Remove();
  1806. void RemoveAttributeAnimation(const String&);
  1807. void RemoveInstanceDefault();
  1808. void RemoveObjectAnimation();
  1809. void ResetToDefault();
  1810. bool Save(File) const;
  1811. bool Save(VectorBuffer&) const;
  1812. bool SaveJSON(JSONValue&) const;
  1813. bool SaveXML(XMLElement&) const;
  1814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1815. void SetAnimationTime(float);
  1816. bool SetAttribute(const String&, const Variant&);
  1817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1818. void SetAttributeAnimationSpeed(const String&, float);
  1819. void SetAttributeAnimationTime(const String&, float);
  1820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1821. void SetInterceptNetworkUpdate(const String&, bool);
  1822. void SetVertices(const Vector2&, const Vector2&);
  1823. // Properties:
  1824. bool animationEnabled;
  1825. /* readonly */
  1826. Array<Variant> attributeDefaults;
  1827. /* readonly */
  1828. Array<AttributeInfo> attributeInfos;
  1829. Array<Variant> attributes;
  1830. /* readonly */
  1831. String category;
  1832. int categoryBits;
  1833. float density;
  1834. bool enabled;
  1835. /* readonly */
  1836. bool enabledEffective;
  1837. float friction;
  1838. int groupIndex;
  1839. /* readonly */
  1840. uint id;
  1841. /* readonly */
  1842. float inertia;
  1843. int maskBits;
  1844. /* readonly */
  1845. float mass;
  1846. /* readonly */
  1847. Vector2 massCenter;
  1848. /* readonly */
  1849. Node node;
  1850. /* readonly */
  1851. uint numAttributes;
  1852. ObjectAnimation objectAnimation;
  1853. /* readonly */
  1854. int refs;
  1855. float restitution;
  1856. bool temporary;
  1857. bool trigger;
  1858. /* readonly */
  1859. StringHash type;
  1860. /* readonly */
  1861. String typeName;
  1862. Vector2 vertex1;
  1863. Vector2 vertex2;
  1864. /* readonly */
  1865. int weakRefs;
  1866. };
  1867. class CollisionPolygon2D
  1868. {
  1869. // Methods:
  1870. void ApplyAttributes();
  1871. void DrawDebugGeometry(DebugRenderer, bool);
  1872. Variant GetAttribute(const String&) const;
  1873. ValueAnimation GetAttributeAnimation(const String&) const;
  1874. float GetAttributeAnimationSpeed(const String&) const;
  1875. float GetAttributeAnimationTime(const String&) const;
  1876. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1877. Variant GetAttributeDefault(const String&) const;
  1878. bool GetInterceptNetworkUpdate(const String&) const;
  1879. Array<Vector2> GetVertices() const;
  1880. bool HasSubscribedToEvent(Object, const String&);
  1881. bool HasSubscribedToEvent(const String&);
  1882. bool Load(File, bool = false);
  1883. bool Load(VectorBuffer&, bool = false);
  1884. bool LoadJSON(const JSONValue&, bool = false);
  1885. bool LoadXML(const XMLElement&, bool = false);
  1886. void MarkNetworkUpdate() const;
  1887. void Remove();
  1888. void RemoveAttributeAnimation(const String&);
  1889. void RemoveInstanceDefault();
  1890. void RemoveObjectAnimation();
  1891. void ResetToDefault();
  1892. bool Save(File) const;
  1893. bool Save(VectorBuffer&) const;
  1894. bool SaveJSON(JSONValue&) const;
  1895. bool SaveXML(XMLElement&) const;
  1896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1897. void SetAnimationTime(float);
  1898. bool SetAttribute(const String&, const Variant&);
  1899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1900. void SetAttributeAnimationSpeed(const String&, float);
  1901. void SetAttributeAnimationTime(const String&, float);
  1902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1903. void SetInterceptNetworkUpdate(const String&, bool);
  1904. void SetVertex(uint, const Vector2&);
  1905. void SetVertices(Array<Vector2>);
  1906. const Vector2& GetVertex(uint) const;
  1907. // Properties:
  1908. bool animationEnabled;
  1909. /* readonly */
  1910. Array<Variant> attributeDefaults;
  1911. /* readonly */
  1912. Array<AttributeInfo> attributeInfos;
  1913. Array<Variant> attributes;
  1914. /* readonly */
  1915. String category;
  1916. int categoryBits;
  1917. float density;
  1918. bool enabled;
  1919. /* readonly */
  1920. bool enabledEffective;
  1921. float friction;
  1922. int groupIndex;
  1923. /* readonly */
  1924. uint id;
  1925. /* readonly */
  1926. float inertia;
  1927. int maskBits;
  1928. /* readonly */
  1929. float mass;
  1930. /* readonly */
  1931. Vector2 massCenter;
  1932. /* readonly */
  1933. Node node;
  1934. /* readonly */
  1935. uint numAttributes;
  1936. ObjectAnimation objectAnimation;
  1937. /* readonly */
  1938. int refs;
  1939. float restitution;
  1940. bool temporary;
  1941. bool trigger;
  1942. /* readonly */
  1943. StringHash type;
  1944. /* readonly */
  1945. String typeName;
  1946. uint vertexCount;
  1947. /* readonly */
  1948. int weakRefs;
  1949. };
  1950. class CollisionShape
  1951. {
  1952. // Methods:
  1953. void ApplyAttributes();
  1954. void DrawDebugGeometry(DebugRenderer, bool);
  1955. Variant GetAttribute(const String&) const;
  1956. ValueAnimation GetAttributeAnimation(const String&) const;
  1957. float GetAttributeAnimationSpeed(const String&) const;
  1958. float GetAttributeAnimationTime(const String&) const;
  1959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1960. Variant GetAttributeDefault(const String&) const;
  1961. bool GetInterceptNetworkUpdate(const String&) const;
  1962. bool HasSubscribedToEvent(Object, const String&);
  1963. bool HasSubscribedToEvent(const String&);
  1964. bool Load(File, bool = false);
  1965. bool Load(VectorBuffer&, bool = false);
  1966. bool LoadJSON(const JSONValue&, bool = false);
  1967. bool LoadXML(const XMLElement&, bool = false);
  1968. void MarkNetworkUpdate() const;
  1969. void Remove();
  1970. void RemoveAttributeAnimation(const String&);
  1971. void RemoveInstanceDefault();
  1972. void RemoveObjectAnimation();
  1973. void ResetToDefault();
  1974. bool Save(File) const;
  1975. bool Save(VectorBuffer&) const;
  1976. bool SaveJSON(JSONValue&) const;
  1977. bool SaveXML(XMLElement&) const;
  1978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1979. void SetAnimationTime(float);
  1980. bool SetAttribute(const String&, const Variant&);
  1981. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1982. void SetAttributeAnimationSpeed(const String&, float);
  1983. void SetAttributeAnimationTime(const String&, float);
  1984. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1985. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1986. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1987. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1988. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1989. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1990. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1991. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1992. void SetInterceptNetworkUpdate(const String&, bool);
  1993. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1994. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1995. void SetTerrain(uint = 0);
  1996. void SetTransform(const Vector3&, const Quaternion&);
  1997. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1998. // Properties:
  1999. bool animationEnabled;
  2000. /* readonly */
  2001. Array<Variant> attributeDefaults;
  2002. /* readonly */
  2003. Array<AttributeInfo> attributeInfos;
  2004. Array<Variant> attributes;
  2005. /* readonly */
  2006. String category;
  2007. bool enabled;
  2008. /* readonly */
  2009. bool enabledEffective;
  2010. /* readonly */
  2011. uint id;
  2012. uint lodLevel;
  2013. float margin;
  2014. Model model;
  2015. /* readonly */
  2016. Node node;
  2017. /* readonly */
  2018. uint numAttributes;
  2019. ObjectAnimation objectAnimation;
  2020. Vector3 position;
  2021. /* readonly */
  2022. int refs;
  2023. Quaternion rotation;
  2024. ShapeType shapeType;
  2025. Vector3 size;
  2026. bool temporary;
  2027. /* readonly */
  2028. StringHash type;
  2029. /* readonly */
  2030. String typeName;
  2031. /* readonly */
  2032. int weakRefs;
  2033. /* readonly */
  2034. BoundingBox worldBoundingBox;
  2035. };
  2036. class CollisionShape2D
  2037. {
  2038. // Methods:
  2039. void ApplyAttributes();
  2040. void DrawDebugGeometry(DebugRenderer, bool);
  2041. Variant GetAttribute(const String&) const;
  2042. ValueAnimation GetAttributeAnimation(const String&) const;
  2043. float GetAttributeAnimationSpeed(const String&) const;
  2044. float GetAttributeAnimationTime(const String&) const;
  2045. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2046. Variant GetAttributeDefault(const String&) const;
  2047. bool GetInterceptNetworkUpdate(const String&) const;
  2048. bool HasSubscribedToEvent(Object, const String&);
  2049. bool HasSubscribedToEvent(const String&);
  2050. bool Load(File, bool = false);
  2051. bool Load(VectorBuffer&, bool = false);
  2052. bool LoadJSON(const JSONValue&, bool = false);
  2053. bool LoadXML(const XMLElement&, bool = false);
  2054. void MarkNetworkUpdate() const;
  2055. void Remove();
  2056. void RemoveAttributeAnimation(const String&);
  2057. void RemoveInstanceDefault();
  2058. void RemoveObjectAnimation();
  2059. void ResetToDefault();
  2060. bool Save(File) const;
  2061. bool Save(VectorBuffer&) const;
  2062. bool SaveJSON(JSONValue&) const;
  2063. bool SaveXML(XMLElement&) const;
  2064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2065. void SetAnimationTime(float);
  2066. bool SetAttribute(const String&, const Variant&);
  2067. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2068. void SetAttributeAnimationSpeed(const String&, float);
  2069. void SetAttributeAnimationTime(const String&, float);
  2070. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2071. void SetInterceptNetworkUpdate(const String&, bool);
  2072. // Properties:
  2073. bool animationEnabled;
  2074. /* readonly */
  2075. Array<Variant> attributeDefaults;
  2076. /* readonly */
  2077. Array<AttributeInfo> attributeInfos;
  2078. Array<Variant> attributes;
  2079. /* readonly */
  2080. String category;
  2081. int categoryBits;
  2082. float density;
  2083. bool enabled;
  2084. /* readonly */
  2085. bool enabledEffective;
  2086. float friction;
  2087. int groupIndex;
  2088. /* readonly */
  2089. uint id;
  2090. /* readonly */
  2091. float inertia;
  2092. int maskBits;
  2093. /* readonly */
  2094. float mass;
  2095. /* readonly */
  2096. Vector2 massCenter;
  2097. /* readonly */
  2098. Node node;
  2099. /* readonly */
  2100. uint numAttributes;
  2101. ObjectAnimation objectAnimation;
  2102. /* readonly */
  2103. int refs;
  2104. float restitution;
  2105. bool temporary;
  2106. bool trigger;
  2107. /* readonly */
  2108. StringHash type;
  2109. /* readonly */
  2110. String typeName;
  2111. /* readonly */
  2112. int weakRefs;
  2113. };
  2114. class Color
  2115. {
  2116. // Methods:
  2117. Color Abs() const;
  2118. float Average() const;
  2119. float Chroma() const;
  2120. void Clip(bool);
  2121. bool Equals() const;
  2122. void FromHSL(float, float, float, float);
  2123. void FromHSV(float, float, float, float);
  2124. float Hue() const;
  2125. void Invert(bool);
  2126. Color Lerp(const Color&, float) const;
  2127. float Lightness() const;
  2128. float Luma() const;
  2129. float MaxRGB() const;
  2130. float MinRGB() const;
  2131. float Range() const;
  2132. float SaturationHSL() const;
  2133. float SaturationHSV() const;
  2134. float SumRGB() const;
  2135. Vector3 ToHSL() const;
  2136. Vector3 ToHSV() const;
  2137. String ToString() const;
  2138. uint ToUInt() const;
  2139. float Value() const;
  2140. // Properties:
  2141. float a;
  2142. float b;
  2143. /* readonly */
  2144. Array<float> data;
  2145. float g;
  2146. float r;
  2147. /* readonly */
  2148. Vector3 rgb;
  2149. /* readonly */
  2150. Vector4 rgba;
  2151. };
  2152. class ColorFrame
  2153. {
  2154. // Properties:
  2155. Color color;
  2156. float time;
  2157. };
  2158. class Component
  2159. {
  2160. // Methods:
  2161. void ApplyAttributes();
  2162. void DrawDebugGeometry(DebugRenderer, bool);
  2163. Variant GetAttribute(const String&) const;
  2164. ValueAnimation GetAttributeAnimation(const String&) const;
  2165. float GetAttributeAnimationSpeed(const String&) const;
  2166. float GetAttributeAnimationTime(const String&) const;
  2167. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2168. Variant GetAttributeDefault(const String&) const;
  2169. bool GetInterceptNetworkUpdate(const String&) const;
  2170. bool HasSubscribedToEvent(Object, const String&);
  2171. bool HasSubscribedToEvent(const String&);
  2172. bool Load(File, bool = false);
  2173. bool Load(VectorBuffer&, bool = false);
  2174. bool LoadJSON(const JSONValue&, bool = false);
  2175. bool LoadXML(const XMLElement&, bool = false);
  2176. void MarkNetworkUpdate() const;
  2177. void Remove();
  2178. void RemoveAttributeAnimation(const String&);
  2179. void RemoveInstanceDefault();
  2180. void RemoveObjectAnimation();
  2181. void ResetToDefault();
  2182. bool Save(File) const;
  2183. bool Save(VectorBuffer&) const;
  2184. bool SaveJSON(JSONValue&) const;
  2185. bool SaveXML(XMLElement&) const;
  2186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2187. void SetAnimationTime(float);
  2188. bool SetAttribute(const String&, const Variant&);
  2189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2190. void SetAttributeAnimationSpeed(const String&, float);
  2191. void SetAttributeAnimationTime(const String&, float);
  2192. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2193. void SetInterceptNetworkUpdate(const String&, bool);
  2194. // Properties:
  2195. bool animationEnabled;
  2196. /* readonly */
  2197. Array<Variant> attributeDefaults;
  2198. /* readonly */
  2199. Array<AttributeInfo> attributeInfos;
  2200. Array<Variant> attributes;
  2201. /* readonly */
  2202. String category;
  2203. bool enabled;
  2204. /* readonly */
  2205. bool enabledEffective;
  2206. /* readonly */
  2207. uint id;
  2208. /* readonly */
  2209. Node node;
  2210. /* readonly */
  2211. uint numAttributes;
  2212. ObjectAnimation objectAnimation;
  2213. /* readonly */
  2214. int refs;
  2215. bool temporary;
  2216. /* readonly */
  2217. StringHash type;
  2218. /* readonly */
  2219. String typeName;
  2220. /* readonly */
  2221. int weakRefs;
  2222. };
  2223. class Connection
  2224. {
  2225. // Methods:
  2226. void Disconnect(int = 0);
  2227. bool HasSubscribedToEvent(Object, const String&);
  2228. bool HasSubscribedToEvent(const String&);
  2229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2230. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2231. void SendPackageToClient(PackageFile);
  2232. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2233. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2234. String ToString() const;
  2235. // Properties:
  2236. /* readonly */
  2237. String address;
  2238. /* readonly */
  2239. float bytesInPerSec;
  2240. /* readonly */
  2241. float bytesOutPerSec;
  2242. /* readonly */
  2243. String category;
  2244. /* readonly */
  2245. bool client;
  2246. /* readonly */
  2247. bool connectPending;
  2248. /* readonly */
  2249. bool connected;
  2250. Controls controls;
  2251. /* readonly */
  2252. String downloadName;
  2253. /* readonly */
  2254. float downloadProgress;
  2255. VariantMap identity;
  2256. /* readonly */
  2257. float lastHeardTime;
  2258. bool logStatistics;
  2259. /* readonly */
  2260. uint numDownloads;
  2261. /* readonly */
  2262. float packetsInPerSec;
  2263. /* readonly */
  2264. float packetsOutPerSec;
  2265. /* readonly */
  2266. uint16 port;
  2267. Vector3 position;
  2268. /* readonly */
  2269. int refs;
  2270. Quaternion rotation;
  2271. /* readonly */
  2272. float roundTripTime;
  2273. Scene scene;
  2274. /* readonly */
  2275. bool sceneLoaded;
  2276. uint8 timeStamp;
  2277. /* readonly */
  2278. StringHash type;
  2279. /* readonly */
  2280. String typeName;
  2281. /* readonly */
  2282. int weakRefs;
  2283. };
  2284. class Console
  2285. {
  2286. // Methods:
  2287. void AddAutoComplete(const String&);
  2288. void CopySelectedRows() const;
  2289. bool HasSubscribedToEvent(Object, const String&);
  2290. bool HasSubscribedToEvent(const String&);
  2291. void RemoveAutoComplete(const String&);
  2292. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2293. void Toggle();
  2294. void UpdateElements();
  2295. // Properties:
  2296. bool autoVisibleOnError;
  2297. /* readonly */
  2298. BorderImage background;
  2299. /* readonly */
  2300. String category;
  2301. /* readonly */
  2302. Button closeButton;
  2303. String commandInterpreter;
  2304. XMLFile defaultStyle;
  2305. bool focusOnShow;
  2306. /* readonly */
  2307. uint historyPosition;
  2308. /* readonly */
  2309. Array<String> historyRow;
  2310. /* readonly */
  2311. LineEdit lineEdit;
  2312. uint numBufferedRows;
  2313. uint numHistoryRows;
  2314. uint numRows;
  2315. /* readonly */
  2316. int refs;
  2317. /* readonly */
  2318. StringHash type;
  2319. /* readonly */
  2320. String typeName;
  2321. bool visible;
  2322. /* readonly */
  2323. int weakRefs;
  2324. };
  2325. class Constraint
  2326. {
  2327. // Methods:
  2328. void ApplyAttributes();
  2329. void DrawDebugGeometry(DebugRenderer, bool);
  2330. Variant GetAttribute(const String&) const;
  2331. ValueAnimation GetAttributeAnimation(const String&) const;
  2332. float GetAttributeAnimationSpeed(const String&) const;
  2333. float GetAttributeAnimationTime(const String&) const;
  2334. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2335. Variant GetAttributeDefault(const String&) const;
  2336. bool GetInterceptNetworkUpdate(const String&) const;
  2337. bool HasSubscribedToEvent(Object, const String&);
  2338. bool HasSubscribedToEvent(const String&);
  2339. bool Load(File, bool = false);
  2340. bool Load(VectorBuffer&, bool = false);
  2341. bool LoadJSON(const JSONValue&, bool = false);
  2342. bool LoadXML(const XMLElement&, bool = false);
  2343. void MarkNetworkUpdate() const;
  2344. void Remove();
  2345. void RemoveAttributeAnimation(const String&);
  2346. void RemoveInstanceDefault();
  2347. void RemoveObjectAnimation();
  2348. void ResetToDefault();
  2349. bool Save(File) const;
  2350. bool Save(VectorBuffer&) const;
  2351. bool SaveJSON(JSONValue&) const;
  2352. bool SaveXML(XMLElement&) const;
  2353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2354. void SetAnimationTime(float);
  2355. bool SetAttribute(const String&, const Variant&);
  2356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2357. void SetAttributeAnimationSpeed(const String&, float);
  2358. void SetAttributeAnimationTime(const String&, float);
  2359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2360. void SetInterceptNetworkUpdate(const String&, bool);
  2361. // Properties:
  2362. bool animationEnabled;
  2363. /* readonly */
  2364. Array<Variant> attributeDefaults;
  2365. /* readonly */
  2366. Array<AttributeInfo> attributeInfos;
  2367. Array<Variant> attributes;
  2368. /* writeonly */
  2369. Vector3 axis;
  2370. /* readonly */
  2371. String category;
  2372. float cfm;
  2373. ConstraintType constraintType;
  2374. bool disableCollision;
  2375. bool enabled;
  2376. /* readonly */
  2377. bool enabledEffective;
  2378. float erp;
  2379. Vector2 highLimit;
  2380. /* readonly */
  2381. uint id;
  2382. Vector2 lowLimit;
  2383. /* readonly */
  2384. Node node;
  2385. /* readonly */
  2386. uint numAttributes;
  2387. ObjectAnimation objectAnimation;
  2388. /* writeonly */
  2389. Vector3 otherAxis;
  2390. RigidBody otherBody;
  2391. Vector3 otherPosition;
  2392. Quaternion otherRotation;
  2393. /* readonly */
  2394. RigidBody ownBody;
  2395. Vector3 position;
  2396. /* readonly */
  2397. int refs;
  2398. Quaternion rotation;
  2399. bool temporary;
  2400. /* readonly */
  2401. StringHash type;
  2402. /* readonly */
  2403. String typeName;
  2404. /* readonly */
  2405. int weakRefs;
  2406. Vector3 worldPosition;
  2407. };
  2408. class Constraint2D
  2409. {
  2410. // Methods:
  2411. void ApplyAttributes();
  2412. void DrawDebugGeometry(DebugRenderer, bool);
  2413. Variant GetAttribute(const String&) const;
  2414. ValueAnimation GetAttributeAnimation(const String&) const;
  2415. float GetAttributeAnimationSpeed(const String&) const;
  2416. float GetAttributeAnimationTime(const String&) const;
  2417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2418. Variant GetAttributeDefault(const String&) const;
  2419. bool GetInterceptNetworkUpdate(const String&) const;
  2420. bool HasSubscribedToEvent(Object, const String&);
  2421. bool HasSubscribedToEvent(const String&);
  2422. bool Load(File, bool = false);
  2423. bool Load(VectorBuffer&, bool = false);
  2424. bool LoadJSON(const JSONValue&, bool = false);
  2425. bool LoadXML(const XMLElement&, bool = false);
  2426. void MarkNetworkUpdate() const;
  2427. void Remove();
  2428. void RemoveAttributeAnimation(const String&);
  2429. void RemoveInstanceDefault();
  2430. void RemoveObjectAnimation();
  2431. void ResetToDefault();
  2432. bool Save(File) const;
  2433. bool Save(VectorBuffer&) const;
  2434. bool SaveJSON(JSONValue&) const;
  2435. bool SaveXML(XMLElement&) const;
  2436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2437. void SetAnimationTime(float);
  2438. bool SetAttribute(const String&, const Variant&);
  2439. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2440. void SetAttributeAnimationSpeed(const String&, float);
  2441. void SetAttributeAnimationTime(const String&, float);
  2442. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2443. void SetInterceptNetworkUpdate(const String&, bool);
  2444. // Properties:
  2445. bool animationEnabled;
  2446. /* readonly */
  2447. Array<Variant> attributeDefaults;
  2448. /* readonly */
  2449. Array<AttributeInfo> attributeInfos;
  2450. Array<Variant> attributes;
  2451. /* readonly */
  2452. String category;
  2453. bool collideConnected;
  2454. bool enabled;
  2455. /* readonly */
  2456. bool enabledEffective;
  2457. /* readonly */
  2458. uint id;
  2459. /* readonly */
  2460. Node node;
  2461. /* readonly */
  2462. uint numAttributes;
  2463. ObjectAnimation objectAnimation;
  2464. RigidBody2D otherBody;
  2465. /* readonly */
  2466. RigidBody2D ownerBody;
  2467. /* readonly */
  2468. int refs;
  2469. bool temporary;
  2470. /* readonly */
  2471. StringHash type;
  2472. /* readonly */
  2473. String typeName;
  2474. /* readonly */
  2475. int weakRefs;
  2476. };
  2477. class ConstraintDistance2D
  2478. {
  2479. // Methods:
  2480. void ApplyAttributes();
  2481. void DrawDebugGeometry(DebugRenderer, bool);
  2482. Variant GetAttribute(const String&) const;
  2483. ValueAnimation GetAttributeAnimation(const String&) const;
  2484. float GetAttributeAnimationSpeed(const String&) const;
  2485. float GetAttributeAnimationTime(const String&) const;
  2486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2487. Variant GetAttributeDefault(const String&) const;
  2488. bool GetInterceptNetworkUpdate(const String&) const;
  2489. bool HasSubscribedToEvent(Object, const String&);
  2490. bool HasSubscribedToEvent(const String&);
  2491. bool Load(File, bool = false);
  2492. bool Load(VectorBuffer&, bool = false);
  2493. bool LoadJSON(const JSONValue&, bool = false);
  2494. bool LoadXML(const XMLElement&, bool = false);
  2495. void MarkNetworkUpdate() const;
  2496. void Remove();
  2497. void RemoveAttributeAnimation(const String&);
  2498. void RemoveInstanceDefault();
  2499. void RemoveObjectAnimation();
  2500. void ResetToDefault();
  2501. bool Save(File) const;
  2502. bool Save(VectorBuffer&) const;
  2503. bool SaveJSON(JSONValue&) const;
  2504. bool SaveXML(XMLElement&) const;
  2505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2506. void SetAnimationTime(float);
  2507. bool SetAttribute(const String&, const Variant&);
  2508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2509. void SetAttributeAnimationSpeed(const String&, float);
  2510. void SetAttributeAnimationTime(const String&, float);
  2511. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2512. void SetInterceptNetworkUpdate(const String&, bool);
  2513. // Properties:
  2514. bool animationEnabled;
  2515. /* readonly */
  2516. Array<Variant> attributeDefaults;
  2517. /* readonly */
  2518. Array<AttributeInfo> attributeInfos;
  2519. Array<Variant> attributes;
  2520. /* readonly */
  2521. String category;
  2522. bool collideConnected;
  2523. float dampingRatio;
  2524. bool enabled;
  2525. /* readonly */
  2526. bool enabledEffective;
  2527. float frequencyHz;
  2528. /* readonly */
  2529. uint id;
  2530. /* readonly */
  2531. Node node;
  2532. /* readonly */
  2533. uint numAttributes;
  2534. ObjectAnimation objectAnimation;
  2535. RigidBody2D otherBody;
  2536. Vector2 otherBodyAnchor;
  2537. /* readonly */
  2538. RigidBody2D ownerBody;
  2539. Vector2 ownerBodyAnchor;
  2540. /* readonly */
  2541. int refs;
  2542. bool temporary;
  2543. /* readonly */
  2544. StringHash type;
  2545. /* readonly */
  2546. String typeName;
  2547. /* readonly */
  2548. int weakRefs;
  2549. };
  2550. class ConstraintFriction2D
  2551. {
  2552. // Methods:
  2553. void ApplyAttributes();
  2554. void DrawDebugGeometry(DebugRenderer, bool);
  2555. Variant GetAttribute(const String&) const;
  2556. ValueAnimation GetAttributeAnimation(const String&) const;
  2557. float GetAttributeAnimationSpeed(const String&) const;
  2558. float GetAttributeAnimationTime(const String&) const;
  2559. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2560. Variant GetAttributeDefault(const String&) const;
  2561. bool GetInterceptNetworkUpdate(const String&) const;
  2562. bool HasSubscribedToEvent(Object, const String&);
  2563. bool HasSubscribedToEvent(const String&);
  2564. bool Load(File, bool = false);
  2565. bool Load(VectorBuffer&, bool = false);
  2566. bool LoadJSON(const JSONValue&, bool = false);
  2567. bool LoadXML(const XMLElement&, bool = false);
  2568. void MarkNetworkUpdate() const;
  2569. void Remove();
  2570. void RemoveAttributeAnimation(const String&);
  2571. void RemoveInstanceDefault();
  2572. void RemoveObjectAnimation();
  2573. void ResetToDefault();
  2574. bool Save(File) const;
  2575. bool Save(VectorBuffer&) const;
  2576. bool SaveJSON(JSONValue&) const;
  2577. bool SaveXML(XMLElement&) const;
  2578. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2579. void SetAnimationTime(float);
  2580. bool SetAttribute(const String&, const Variant&);
  2581. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2582. void SetAttributeAnimationSpeed(const String&, float);
  2583. void SetAttributeAnimationTime(const String&, float);
  2584. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2585. void SetInterceptNetworkUpdate(const String&, bool);
  2586. // Properties:
  2587. Vector2 anchor;
  2588. bool animationEnabled;
  2589. /* readonly */
  2590. Array<Variant> attributeDefaults;
  2591. /* readonly */
  2592. Array<AttributeInfo> attributeInfos;
  2593. Array<Variant> attributes;
  2594. /* readonly */
  2595. String category;
  2596. bool collideConnected;
  2597. bool enabled;
  2598. /* readonly */
  2599. bool enabledEffective;
  2600. /* readonly */
  2601. uint id;
  2602. float maxForce;
  2603. float maxTorque;
  2604. /* readonly */
  2605. Node node;
  2606. /* readonly */
  2607. uint numAttributes;
  2608. ObjectAnimation objectAnimation;
  2609. RigidBody2D otherBody;
  2610. /* readonly */
  2611. RigidBody2D ownerBody;
  2612. /* readonly */
  2613. int refs;
  2614. bool temporary;
  2615. /* readonly */
  2616. StringHash type;
  2617. /* readonly */
  2618. String typeName;
  2619. /* readonly */
  2620. int weakRefs;
  2621. };
  2622. class ConstraintGear2D
  2623. {
  2624. // Methods:
  2625. void ApplyAttributes();
  2626. void DrawDebugGeometry(DebugRenderer, bool);
  2627. Variant GetAttribute(const String&) const;
  2628. ValueAnimation GetAttributeAnimation(const String&) const;
  2629. float GetAttributeAnimationSpeed(const String&) const;
  2630. float GetAttributeAnimationTime(const String&) const;
  2631. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2632. Variant GetAttributeDefault(const String&) const;
  2633. bool GetInterceptNetworkUpdate(const String&) const;
  2634. bool HasSubscribedToEvent(Object, const String&);
  2635. bool HasSubscribedToEvent(const String&);
  2636. bool Load(File, bool = false);
  2637. bool Load(VectorBuffer&, bool = false);
  2638. bool LoadJSON(const JSONValue&, bool = false);
  2639. bool LoadXML(const XMLElement&, bool = false);
  2640. void MarkNetworkUpdate() const;
  2641. void Remove();
  2642. void RemoveAttributeAnimation(const String&);
  2643. void RemoveInstanceDefault();
  2644. void RemoveObjectAnimation();
  2645. void ResetToDefault();
  2646. bool Save(File) const;
  2647. bool Save(VectorBuffer&) const;
  2648. bool SaveJSON(JSONValue&) const;
  2649. bool SaveXML(XMLElement&) const;
  2650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2651. void SetAnimationTime(float);
  2652. bool SetAttribute(const String&, const Variant&);
  2653. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2654. void SetAttributeAnimationSpeed(const String&, float);
  2655. void SetAttributeAnimationTime(const String&, float);
  2656. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2657. void SetInterceptNetworkUpdate(const String&, bool);
  2658. // Properties:
  2659. bool animationEnabled;
  2660. /* readonly */
  2661. Array<Variant> attributeDefaults;
  2662. /* readonly */
  2663. Array<AttributeInfo> attributeInfos;
  2664. Array<Variant> attributes;
  2665. /* readonly */
  2666. String category;
  2667. bool collideConnected;
  2668. bool enabled;
  2669. /* readonly */
  2670. bool enabledEffective;
  2671. /* readonly */
  2672. uint id;
  2673. /* readonly */
  2674. Node node;
  2675. /* readonly */
  2676. uint numAttributes;
  2677. ObjectAnimation objectAnimation;
  2678. RigidBody2D otherBody;
  2679. Constraint2D otherConstraint;
  2680. /* readonly */
  2681. RigidBody2D ownerBody;
  2682. Constraint2D ownerConstraint;
  2683. float ratio;
  2684. /* readonly */
  2685. int refs;
  2686. bool temporary;
  2687. /* readonly */
  2688. StringHash type;
  2689. /* readonly */
  2690. String typeName;
  2691. /* readonly */
  2692. int weakRefs;
  2693. };
  2694. class ConstraintMotor2D
  2695. {
  2696. // Methods:
  2697. void ApplyAttributes();
  2698. void DrawDebugGeometry(DebugRenderer, bool);
  2699. Variant GetAttribute(const String&) const;
  2700. ValueAnimation GetAttributeAnimation(const String&) const;
  2701. float GetAttributeAnimationSpeed(const String&) const;
  2702. float GetAttributeAnimationTime(const String&) const;
  2703. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2704. Variant GetAttributeDefault(const String&) const;
  2705. bool GetInterceptNetworkUpdate(const String&) const;
  2706. bool HasSubscribedToEvent(Object, const String&);
  2707. bool HasSubscribedToEvent(const String&);
  2708. bool Load(File, bool = false);
  2709. bool Load(VectorBuffer&, bool = false);
  2710. bool LoadJSON(const JSONValue&, bool = false);
  2711. bool LoadXML(const XMLElement&, bool = false);
  2712. void MarkNetworkUpdate() const;
  2713. void Remove();
  2714. void RemoveAttributeAnimation(const String&);
  2715. void RemoveInstanceDefault();
  2716. void RemoveObjectAnimation();
  2717. void ResetToDefault();
  2718. bool Save(File) const;
  2719. bool Save(VectorBuffer&) const;
  2720. bool SaveJSON(JSONValue&) const;
  2721. bool SaveXML(XMLElement&) const;
  2722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2723. void SetAnimationTime(float);
  2724. bool SetAttribute(const String&, const Variant&);
  2725. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2726. void SetAttributeAnimationSpeed(const String&, float);
  2727. void SetAttributeAnimationTime(const String&, float);
  2728. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2729. void SetInterceptNetworkUpdate(const String&, bool);
  2730. // Properties:
  2731. float angularOffset;
  2732. bool animationEnabled;
  2733. /* readonly */
  2734. Array<Variant> attributeDefaults;
  2735. /* readonly */
  2736. Array<AttributeInfo> attributeInfos;
  2737. Array<Variant> attributes;
  2738. /* readonly */
  2739. String category;
  2740. bool collideConnected;
  2741. float correctionFactor;
  2742. bool enabled;
  2743. /* readonly */
  2744. bool enabledEffective;
  2745. /* readonly */
  2746. uint id;
  2747. Vector2 linearOffset;
  2748. float maxForce;
  2749. float maxTorque;
  2750. /* readonly */
  2751. Node node;
  2752. /* readonly */
  2753. uint numAttributes;
  2754. ObjectAnimation objectAnimation;
  2755. RigidBody2D otherBody;
  2756. /* readonly */
  2757. RigidBody2D ownerBody;
  2758. /* readonly */
  2759. int refs;
  2760. bool temporary;
  2761. /* readonly */
  2762. StringHash type;
  2763. /* readonly */
  2764. String typeName;
  2765. /* readonly */
  2766. int weakRefs;
  2767. };
  2768. class ConstraintMouse2D
  2769. {
  2770. // Methods:
  2771. void ApplyAttributes();
  2772. void DrawDebugGeometry(DebugRenderer, bool);
  2773. Variant GetAttribute(const String&) const;
  2774. ValueAnimation GetAttributeAnimation(const String&) const;
  2775. float GetAttributeAnimationSpeed(const String&) const;
  2776. float GetAttributeAnimationTime(const String&) const;
  2777. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2778. Variant GetAttributeDefault(const String&) const;
  2779. bool GetInterceptNetworkUpdate(const String&) const;
  2780. bool HasSubscribedToEvent(Object, const String&);
  2781. bool HasSubscribedToEvent(const String&);
  2782. bool Load(File, bool = false);
  2783. bool Load(VectorBuffer&, bool = false);
  2784. bool LoadJSON(const JSONValue&, bool = false);
  2785. bool LoadXML(const XMLElement&, bool = false);
  2786. void MarkNetworkUpdate() const;
  2787. void Remove();
  2788. void RemoveAttributeAnimation(const String&);
  2789. void RemoveInstanceDefault();
  2790. void RemoveObjectAnimation();
  2791. void ResetToDefault();
  2792. bool Save(File) const;
  2793. bool Save(VectorBuffer&) const;
  2794. bool SaveJSON(JSONValue&) const;
  2795. bool SaveXML(XMLElement&) const;
  2796. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2797. void SetAnimationTime(float);
  2798. bool SetAttribute(const String&, const Variant&);
  2799. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2800. void SetAttributeAnimationSpeed(const String&, float);
  2801. void SetAttributeAnimationTime(const String&, float);
  2802. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2803. void SetInterceptNetworkUpdate(const String&, bool);
  2804. // Properties:
  2805. bool animationEnabled;
  2806. /* readonly */
  2807. Array<Variant> attributeDefaults;
  2808. /* readonly */
  2809. Array<AttributeInfo> attributeInfos;
  2810. Array<Variant> attributes;
  2811. /* readonly */
  2812. String category;
  2813. bool collideConnected;
  2814. float dampingRatio;
  2815. bool enabled;
  2816. /* readonly */
  2817. bool enabledEffective;
  2818. float frequencyHz;
  2819. /* readonly */
  2820. uint id;
  2821. float maxForce;
  2822. /* readonly */
  2823. Node node;
  2824. /* readonly */
  2825. uint numAttributes;
  2826. ObjectAnimation objectAnimation;
  2827. RigidBody2D otherBody;
  2828. /* readonly */
  2829. RigidBody2D ownerBody;
  2830. /* readonly */
  2831. int refs;
  2832. Vector2 target;
  2833. bool temporary;
  2834. /* readonly */
  2835. StringHash type;
  2836. /* readonly */
  2837. String typeName;
  2838. /* readonly */
  2839. int weakRefs;
  2840. };
  2841. class ConstraintPrismatic2D
  2842. {
  2843. // Methods:
  2844. void ApplyAttributes();
  2845. void DrawDebugGeometry(DebugRenderer, bool);
  2846. Variant GetAttribute(const String&) const;
  2847. ValueAnimation GetAttributeAnimation(const String&) const;
  2848. float GetAttributeAnimationSpeed(const String&) const;
  2849. float GetAttributeAnimationTime(const String&) const;
  2850. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2851. Variant GetAttributeDefault(const String&) const;
  2852. bool GetInterceptNetworkUpdate(const String&) const;
  2853. bool HasSubscribedToEvent(Object, const String&);
  2854. bool HasSubscribedToEvent(const String&);
  2855. bool Load(File, bool = false);
  2856. bool Load(VectorBuffer&, bool = false);
  2857. bool LoadJSON(const JSONValue&, bool = false);
  2858. bool LoadXML(const XMLElement&, bool = false);
  2859. void MarkNetworkUpdate() const;
  2860. void Remove();
  2861. void RemoveAttributeAnimation(const String&);
  2862. void RemoveInstanceDefault();
  2863. void RemoveObjectAnimation();
  2864. void ResetToDefault();
  2865. bool Save(File) const;
  2866. bool Save(VectorBuffer&) const;
  2867. bool SaveJSON(JSONValue&) const;
  2868. bool SaveXML(XMLElement&) const;
  2869. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2870. void SetAnimationTime(float);
  2871. bool SetAttribute(const String&, const Variant&);
  2872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2873. void SetAttributeAnimationSpeed(const String&, float);
  2874. void SetAttributeAnimationTime(const String&, float);
  2875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2876. void SetInterceptNetworkUpdate(const String&, bool);
  2877. // Properties:
  2878. Vector2 anchor;
  2879. bool animationEnabled;
  2880. /* readonly */
  2881. Array<Variant> attributeDefaults;
  2882. /* readonly */
  2883. Array<AttributeInfo> attributeInfos;
  2884. Array<Variant> attributes;
  2885. Vector2 axis;
  2886. /* readonly */
  2887. String category;
  2888. bool collideConnected;
  2889. bool enableLimit;
  2890. bool enableMotor;
  2891. bool enabled;
  2892. /* readonly */
  2893. bool enabledEffective;
  2894. /* readonly */
  2895. uint id;
  2896. float lowerTranslation;
  2897. float maxMotorForce;
  2898. float motorSpeed;
  2899. /* readonly */
  2900. Node node;
  2901. /* readonly */
  2902. uint numAttributes;
  2903. ObjectAnimation objectAnimation;
  2904. RigidBody2D otherBody;
  2905. /* readonly */
  2906. RigidBody2D ownerBody;
  2907. /* readonly */
  2908. int refs;
  2909. bool temporary;
  2910. /* readonly */
  2911. StringHash type;
  2912. /* readonly */
  2913. String typeName;
  2914. float upperTranslation;
  2915. /* readonly */
  2916. int weakRefs;
  2917. };
  2918. class ConstraintPulley2D
  2919. {
  2920. // Methods:
  2921. void ApplyAttributes();
  2922. void DrawDebugGeometry(DebugRenderer, bool);
  2923. Variant GetAttribute(const String&) const;
  2924. ValueAnimation GetAttributeAnimation(const String&) const;
  2925. float GetAttributeAnimationSpeed(const String&) const;
  2926. float GetAttributeAnimationTime(const String&) const;
  2927. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2928. Variant GetAttributeDefault(const String&) const;
  2929. bool GetInterceptNetworkUpdate(const String&) const;
  2930. bool HasSubscribedToEvent(Object, const String&);
  2931. bool HasSubscribedToEvent(const String&);
  2932. bool Load(File, bool = false);
  2933. bool Load(VectorBuffer&, bool = false);
  2934. bool LoadJSON(const JSONValue&, bool = false);
  2935. bool LoadXML(const XMLElement&, bool = false);
  2936. void MarkNetworkUpdate() const;
  2937. void Remove();
  2938. void RemoveAttributeAnimation(const String&);
  2939. void RemoveInstanceDefault();
  2940. void RemoveObjectAnimation();
  2941. void ResetToDefault();
  2942. bool Save(File) const;
  2943. bool Save(VectorBuffer&) const;
  2944. bool SaveJSON(JSONValue&) const;
  2945. bool SaveXML(XMLElement&) const;
  2946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2947. void SetAnimationTime(float);
  2948. bool SetAttribute(const String&, const Variant&);
  2949. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2950. void SetAttributeAnimationSpeed(const String&, float);
  2951. void SetAttributeAnimationTime(const String&, float);
  2952. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2953. void SetInterceptNetworkUpdate(const String&, bool);
  2954. // Properties:
  2955. bool animationEnabled;
  2956. /* readonly */
  2957. Array<Variant> attributeDefaults;
  2958. /* readonly */
  2959. Array<AttributeInfo> attributeInfos;
  2960. Array<Variant> attributes;
  2961. /* readonly */
  2962. String category;
  2963. bool collideConnected;
  2964. bool enabled;
  2965. /* readonly */
  2966. bool enabledEffective;
  2967. /* readonly */
  2968. uint id;
  2969. /* readonly */
  2970. Node node;
  2971. /* readonly */
  2972. uint numAttributes;
  2973. ObjectAnimation objectAnimation;
  2974. RigidBody2D otherBody;
  2975. Vector2 otherBodyAnchor;
  2976. Vector2 otherBodyGroundAnchor;
  2977. /* readonly */
  2978. RigidBody2D ownerBody;
  2979. Vector2 ownerBodyAnchor;
  2980. Vector2 ownerBodyGroundAnchor;
  2981. float ratio;
  2982. /* readonly */
  2983. int refs;
  2984. bool temporary;
  2985. /* readonly */
  2986. StringHash type;
  2987. /* readonly */
  2988. String typeName;
  2989. /* readonly */
  2990. int weakRefs;
  2991. };
  2992. class ConstraintRevolute2D
  2993. {
  2994. // Methods:
  2995. void ApplyAttributes();
  2996. void DrawDebugGeometry(DebugRenderer, bool);
  2997. Variant GetAttribute(const String&) const;
  2998. ValueAnimation GetAttributeAnimation(const String&) const;
  2999. float GetAttributeAnimationSpeed(const String&) const;
  3000. float GetAttributeAnimationTime(const String&) const;
  3001. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3002. Variant GetAttributeDefault(const String&) const;
  3003. bool GetInterceptNetworkUpdate(const String&) const;
  3004. bool HasSubscribedToEvent(Object, const String&);
  3005. bool HasSubscribedToEvent(const String&);
  3006. bool Load(File, bool = false);
  3007. bool Load(VectorBuffer&, bool = false);
  3008. bool LoadJSON(const JSONValue&, bool = false);
  3009. bool LoadXML(const XMLElement&, bool = false);
  3010. void MarkNetworkUpdate() const;
  3011. void Remove();
  3012. void RemoveAttributeAnimation(const String&);
  3013. void RemoveInstanceDefault();
  3014. void RemoveObjectAnimation();
  3015. void ResetToDefault();
  3016. bool Save(File) const;
  3017. bool Save(VectorBuffer&) const;
  3018. bool SaveJSON(JSONValue&) const;
  3019. bool SaveXML(XMLElement&) const;
  3020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3021. void SetAnimationTime(float);
  3022. bool SetAttribute(const String&, const Variant&);
  3023. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3024. void SetAttributeAnimationSpeed(const String&, float);
  3025. void SetAttributeAnimationTime(const String&, float);
  3026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3027. void SetInterceptNetworkUpdate(const String&, bool);
  3028. // Properties:
  3029. Vector2 anchor;
  3030. bool animationEnabled;
  3031. /* readonly */
  3032. Array<Variant> attributeDefaults;
  3033. /* readonly */
  3034. Array<AttributeInfo> attributeInfos;
  3035. Array<Variant> attributes;
  3036. /* readonly */
  3037. String category;
  3038. bool collideConnected;
  3039. bool enableLimit;
  3040. bool enableMotor;
  3041. bool enabled;
  3042. /* readonly */
  3043. bool enabledEffective;
  3044. /* readonly */
  3045. uint id;
  3046. float lowerAngle;
  3047. float maxMotorTorque;
  3048. float motorSpeed;
  3049. /* readonly */
  3050. Node node;
  3051. /* readonly */
  3052. uint numAttributes;
  3053. ObjectAnimation objectAnimation;
  3054. RigidBody2D otherBody;
  3055. /* readonly */
  3056. RigidBody2D ownerBody;
  3057. /* readonly */
  3058. int refs;
  3059. bool temporary;
  3060. /* readonly */
  3061. StringHash type;
  3062. /* readonly */
  3063. String typeName;
  3064. float upperAngle;
  3065. /* readonly */
  3066. int weakRefs;
  3067. };
  3068. class ConstraintRope2D
  3069. {
  3070. // Methods:
  3071. void ApplyAttributes();
  3072. void DrawDebugGeometry(DebugRenderer, bool);
  3073. Variant GetAttribute(const String&) const;
  3074. ValueAnimation GetAttributeAnimation(const String&) const;
  3075. float GetAttributeAnimationSpeed(const String&) const;
  3076. float GetAttributeAnimationTime(const String&) const;
  3077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3078. Variant GetAttributeDefault(const String&) const;
  3079. bool GetInterceptNetworkUpdate(const String&) const;
  3080. bool HasSubscribedToEvent(Object, const String&);
  3081. bool HasSubscribedToEvent(const String&);
  3082. bool Load(File, bool = false);
  3083. bool Load(VectorBuffer&, bool = false);
  3084. bool LoadJSON(const JSONValue&, bool = false);
  3085. bool LoadXML(const XMLElement&, bool = false);
  3086. void MarkNetworkUpdate() const;
  3087. void Remove();
  3088. void RemoveAttributeAnimation(const String&);
  3089. void RemoveInstanceDefault();
  3090. void RemoveObjectAnimation();
  3091. void ResetToDefault();
  3092. bool Save(File) const;
  3093. bool Save(VectorBuffer&) const;
  3094. bool SaveJSON(JSONValue&) const;
  3095. bool SaveXML(XMLElement&) const;
  3096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3097. void SetAnimationTime(float);
  3098. bool SetAttribute(const String&, const Variant&);
  3099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3100. void SetAttributeAnimationSpeed(const String&, float);
  3101. void SetAttributeAnimationTime(const String&, float);
  3102. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3103. void SetInterceptNetworkUpdate(const String&, bool);
  3104. // Properties:
  3105. bool animationEnabled;
  3106. /* readonly */
  3107. Array<Variant> attributeDefaults;
  3108. /* readonly */
  3109. Array<AttributeInfo> attributeInfos;
  3110. Array<Variant> attributes;
  3111. /* readonly */
  3112. String category;
  3113. bool collideConnected;
  3114. bool enabled;
  3115. /* readonly */
  3116. bool enabledEffective;
  3117. /* readonly */
  3118. uint id;
  3119. float maxLength;
  3120. /* readonly */
  3121. Node node;
  3122. /* readonly */
  3123. uint numAttributes;
  3124. ObjectAnimation objectAnimation;
  3125. RigidBody2D otherBody;
  3126. Vector2 otherBodyAnchor;
  3127. /* readonly */
  3128. RigidBody2D ownerBody;
  3129. Vector2 ownerBodyAnchor;
  3130. /* readonly */
  3131. int refs;
  3132. bool temporary;
  3133. /* readonly */
  3134. StringHash type;
  3135. /* readonly */
  3136. String typeName;
  3137. /* readonly */
  3138. int weakRefs;
  3139. };
  3140. class ConstraintWeld2D
  3141. {
  3142. // Methods:
  3143. void ApplyAttributes();
  3144. void DrawDebugGeometry(DebugRenderer, bool);
  3145. Variant GetAttribute(const String&) const;
  3146. ValueAnimation GetAttributeAnimation(const String&) const;
  3147. float GetAttributeAnimationSpeed(const String&) const;
  3148. float GetAttributeAnimationTime(const String&) const;
  3149. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3150. Variant GetAttributeDefault(const String&) const;
  3151. bool GetInterceptNetworkUpdate(const String&) const;
  3152. bool HasSubscribedToEvent(Object, const String&);
  3153. bool HasSubscribedToEvent(const String&);
  3154. bool Load(File, bool = false);
  3155. bool Load(VectorBuffer&, bool = false);
  3156. bool LoadJSON(const JSONValue&, bool = false);
  3157. bool LoadXML(const XMLElement&, bool = false);
  3158. void MarkNetworkUpdate() const;
  3159. void Remove();
  3160. void RemoveAttributeAnimation(const String&);
  3161. void RemoveInstanceDefault();
  3162. void RemoveObjectAnimation();
  3163. void ResetToDefault();
  3164. bool Save(File) const;
  3165. bool Save(VectorBuffer&) const;
  3166. bool SaveJSON(JSONValue&) const;
  3167. bool SaveXML(XMLElement&) const;
  3168. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3169. void SetAnimationTime(float);
  3170. bool SetAttribute(const String&, const Variant&);
  3171. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3172. void SetAttributeAnimationSpeed(const String&, float);
  3173. void SetAttributeAnimationTime(const String&, float);
  3174. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3175. void SetInterceptNetworkUpdate(const String&, bool);
  3176. // Properties:
  3177. Vector2 anchor;
  3178. bool animationEnabled;
  3179. /* readonly */
  3180. Array<Variant> attributeDefaults;
  3181. /* readonly */
  3182. Array<AttributeInfo> attributeInfos;
  3183. Array<Variant> attributes;
  3184. /* readonly */
  3185. String category;
  3186. bool collideConnected;
  3187. float dampingRatio;
  3188. bool enabled;
  3189. /* readonly */
  3190. bool enabledEffective;
  3191. float frequencyHz;
  3192. /* readonly */
  3193. uint id;
  3194. /* readonly */
  3195. Node node;
  3196. /* readonly */
  3197. uint numAttributes;
  3198. ObjectAnimation objectAnimation;
  3199. RigidBody2D otherBody;
  3200. /* readonly */
  3201. RigidBody2D ownerBody;
  3202. /* readonly */
  3203. int refs;
  3204. bool temporary;
  3205. /* readonly */
  3206. StringHash type;
  3207. /* readonly */
  3208. String typeName;
  3209. /* readonly */
  3210. int weakRefs;
  3211. };
  3212. class ConstraintWheel2D
  3213. {
  3214. // Methods:
  3215. void ApplyAttributes();
  3216. void DrawDebugGeometry(DebugRenderer, bool);
  3217. Variant GetAttribute(const String&) const;
  3218. ValueAnimation GetAttributeAnimation(const String&) const;
  3219. float GetAttributeAnimationSpeed(const String&) const;
  3220. float GetAttributeAnimationTime(const String&) const;
  3221. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3222. Variant GetAttributeDefault(const String&) const;
  3223. bool GetInterceptNetworkUpdate(const String&) const;
  3224. bool HasSubscribedToEvent(Object, const String&);
  3225. bool HasSubscribedToEvent(const String&);
  3226. bool Load(File, bool = false);
  3227. bool Load(VectorBuffer&, bool = false);
  3228. bool LoadJSON(const JSONValue&, bool = false);
  3229. bool LoadXML(const XMLElement&, bool = false);
  3230. void MarkNetworkUpdate() const;
  3231. void Remove();
  3232. void RemoveAttributeAnimation(const String&);
  3233. void RemoveInstanceDefault();
  3234. void RemoveObjectAnimation();
  3235. void ResetToDefault();
  3236. bool Save(File) const;
  3237. bool Save(VectorBuffer&) const;
  3238. bool SaveJSON(JSONValue&) const;
  3239. bool SaveXML(XMLElement&) const;
  3240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3241. void SetAnimationTime(float);
  3242. bool SetAttribute(const String&, const Variant&);
  3243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3244. void SetAttributeAnimationSpeed(const String&, float);
  3245. void SetAttributeAnimationTime(const String&, float);
  3246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3247. void SetInterceptNetworkUpdate(const String&, bool);
  3248. // Properties:
  3249. Vector2 anchor;
  3250. bool animationEnabled;
  3251. /* readonly */
  3252. Array<Variant> attributeDefaults;
  3253. /* readonly */
  3254. Array<AttributeInfo> attributeInfos;
  3255. Array<Variant> attributes;
  3256. Vector2 axis;
  3257. /* readonly */
  3258. String category;
  3259. bool collideConnected;
  3260. float dampingRatio;
  3261. bool enableMotor;
  3262. bool enabled;
  3263. /* readonly */
  3264. bool enabledEffective;
  3265. float frequencyHz;
  3266. /* readonly */
  3267. uint id;
  3268. float maxMotorTorque;
  3269. float motorSpeed;
  3270. /* readonly */
  3271. Node node;
  3272. /* readonly */
  3273. uint numAttributes;
  3274. ObjectAnimation objectAnimation;
  3275. RigidBody2D otherBody;
  3276. /* readonly */
  3277. RigidBody2D ownerBody;
  3278. /* readonly */
  3279. int refs;
  3280. bool temporary;
  3281. /* readonly */
  3282. StringHash type;
  3283. /* readonly */
  3284. String typeName;
  3285. /* readonly */
  3286. int weakRefs;
  3287. };
  3288. class Controls
  3289. {
  3290. // Methods:
  3291. bool IsDown(uint) const;
  3292. bool IsPressed(uint, const Controls&) const;
  3293. void Reset();
  3294. void Set(uint, bool);
  3295. // Properties:
  3296. uint buttons;
  3297. VariantMap extraData;
  3298. float pitch;
  3299. float yaw;
  3300. };
  3301. class CrowdAgent
  3302. {
  3303. // Methods:
  3304. void ApplyAttributes();
  3305. void DrawDebugGeometry(DebugRenderer, bool);
  3306. void DrawDebugGeometry(bool);
  3307. Variant GetAttribute(const String&) const;
  3308. ValueAnimation GetAttributeAnimation(const String&) const;
  3309. float GetAttributeAnimationSpeed(const String&) const;
  3310. float GetAttributeAnimationTime(const String&) const;
  3311. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3312. Variant GetAttributeDefault(const String&) const;
  3313. bool GetInterceptNetworkUpdate(const String&) const;
  3314. bool HasSubscribedToEvent(Object, const String&);
  3315. bool HasSubscribedToEvent(const String&);
  3316. bool Load(File, bool = false);
  3317. bool Load(VectorBuffer&, bool = false);
  3318. bool LoadJSON(const JSONValue&, bool = false);
  3319. bool LoadXML(const XMLElement&, bool = false);
  3320. void MarkNetworkUpdate() const;
  3321. void Remove();
  3322. void RemoveAttributeAnimation(const String&);
  3323. void RemoveInstanceDefault();
  3324. void RemoveObjectAnimation();
  3325. void ResetTarget();
  3326. void ResetToDefault();
  3327. bool Save(File) const;
  3328. bool Save(VectorBuffer&) const;
  3329. bool SaveJSON(JSONValue&) const;
  3330. bool SaveXML(XMLElement&) const;
  3331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3332. void SetAnimationTime(float);
  3333. bool SetAttribute(const String&, const Variant&);
  3334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3335. void SetAttributeAnimationSpeed(const String&, float);
  3336. void SetAttributeAnimationTime(const String&, float);
  3337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3338. void SetInterceptNetworkUpdate(const String&, bool);
  3339. // Properties:
  3340. /* readonly */
  3341. Vector3 actualVelocity;
  3342. /* readonly */
  3343. CrowdAgentState agentState;
  3344. bool animationEnabled;
  3345. /* readonly */
  3346. bool arrived;
  3347. /* readonly */
  3348. Array<Variant> attributeDefaults;
  3349. /* readonly */
  3350. Array<AttributeInfo> attributeInfos;
  3351. Array<Variant> attributes;
  3352. /* readonly */
  3353. String category;
  3354. /* readonly */
  3355. Vector3 desiredVelocity;
  3356. bool enabled;
  3357. /* readonly */
  3358. bool enabledEffective;
  3359. float height;
  3360. /* readonly */
  3361. uint id;
  3362. /* readonly */
  3363. bool inCrowd;
  3364. float maxAccel;
  3365. float maxSpeed;
  3366. NavigationPushiness navigationPushiness;
  3367. NavigationQuality navigationQuality;
  3368. /* readonly */
  3369. Node node;
  3370. /* readonly */
  3371. uint numAttributes;
  3372. ObjectAnimation objectAnimation;
  3373. uint obstacleAvoidanceType;
  3374. /* readonly */
  3375. Vector3 position;
  3376. uint queryFilterType;
  3377. float radius;
  3378. /* readonly */
  3379. int refs;
  3380. /* readonly */
  3381. bool requestedTarget;
  3382. /* readonly */
  3383. CrowdAgentRequestedTarget requestedTargetType;
  3384. Vector3 targetPosition;
  3385. /* readonly */
  3386. CrowdAgentTargetState targetState;
  3387. Vector3 targetVelocity;
  3388. bool temporary;
  3389. /* readonly */
  3390. StringHash type;
  3391. /* readonly */
  3392. String typeName;
  3393. bool updateNodePosition;
  3394. /* readonly */
  3395. int weakRefs;
  3396. };
  3397. class CrowdManager
  3398. {
  3399. // Methods:
  3400. void ApplyAttributes();
  3401. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3402. void DrawDebugGeometry(DebugRenderer, bool);
  3403. void DrawDebugGeometry(bool);
  3404. Vector3 FindNearestPoint(const Vector3&, int);
  3405. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3406. float GetAreaCost(uint, uint);
  3407. Variant GetAttribute(const String&) const;
  3408. ValueAnimation GetAttributeAnimation(const String&) const;
  3409. float GetAttributeAnimationSpeed(const String&) const;
  3410. float GetAttributeAnimationTime(const String&) const;
  3411. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3412. Variant GetAttributeDefault(const String&) const;
  3413. float GetDistanceToWall(const Vector3&, float, int);
  3414. uint16 GetExcludeFlags(uint);
  3415. uint16 GetIncludeFlags(uint);
  3416. bool GetInterceptNetworkUpdate(const String&) const;
  3417. Vector3 GetRandomPoint(int);
  3418. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3419. bool HasSubscribedToEvent(Object, const String&);
  3420. bool HasSubscribedToEvent(const String&);
  3421. bool Load(File, bool = false);
  3422. bool Load(VectorBuffer&, bool = false);
  3423. bool LoadJSON(const JSONValue&, bool = false);
  3424. bool LoadXML(const XMLElement&, bool = false);
  3425. void MarkNetworkUpdate() const;
  3426. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3427. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3428. void Remove();
  3429. void RemoveAttributeAnimation(const String&);
  3430. void RemoveInstanceDefault();
  3431. void RemoveObjectAnimation();
  3432. void ResetCrowdTarget(Node = null);
  3433. void ResetToDefault();
  3434. bool Save(File) const;
  3435. bool Save(VectorBuffer&) const;
  3436. bool SaveJSON(JSONValue&) const;
  3437. bool SaveXML(XMLElement&) const;
  3438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3439. void SetAnimationTime(float);
  3440. void SetAreaCost(uint, uint, float);
  3441. bool SetAttribute(const String&, const Variant&);
  3442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3443. void SetAttributeAnimationSpeed(const String&, float);
  3444. void SetAttributeAnimationTime(const String&, float);
  3445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3446. void SetCrowdTarget(const Vector3&, Node = null);
  3447. void SetCrowdVelocity(const Vector3&, Node = null);
  3448. void SetExcludeFlags(uint, uint16);
  3449. void SetIncludeFlags(uint, uint16);
  3450. void SetInterceptNetworkUpdate(const String&, bool);
  3451. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3452. // Properties:
  3453. bool animationEnabled;
  3454. /* readonly */
  3455. Array<Variant> attributeDefaults;
  3456. /* readonly */
  3457. Array<AttributeInfo> attributeInfos;
  3458. Array<Variant> attributes;
  3459. /* readonly */
  3460. String category;
  3461. bool enabled;
  3462. /* readonly */
  3463. bool enabledEffective;
  3464. /* readonly */
  3465. uint id;
  3466. float maxAgentRadius;
  3467. int maxAgents;
  3468. NavigationMesh navMesh;
  3469. /* readonly */
  3470. Node node;
  3471. /* readonly */
  3472. Array<uint> numAreas;
  3473. /* readonly */
  3474. uint numAttributes;
  3475. /* readonly */
  3476. uint numObstacleAvoidanceTypes;
  3477. /* readonly */
  3478. uint numQueryFilterTypes;
  3479. ObjectAnimation objectAnimation;
  3480. /* readonly */
  3481. int refs;
  3482. bool temporary;
  3483. /* readonly */
  3484. StringHash type;
  3485. /* readonly */
  3486. String typeName;
  3487. /* readonly */
  3488. int weakRefs;
  3489. };
  3490. class CrowdObstacleAvoidanceParams
  3491. {
  3492. // Properties:
  3493. uint8 adaptiveDepth;
  3494. uint8 adaptiveDivs;
  3495. uint8 adaptiveRings;
  3496. uint8 gridSize;
  3497. float horizTime;
  3498. float velBias;
  3499. float weightCurVel;
  3500. float weightDesVel;
  3501. float weightSide;
  3502. float weightToi;
  3503. };
  3504. class Cursor
  3505. {
  3506. // Methods:
  3507. void AddChild(UIElement);
  3508. void AddTag(const String&);
  3509. void AddTags(const String&, int8 = ';');
  3510. void ApplyAttributes();
  3511. void BringToFront();
  3512. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3513. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3514. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3515. void DisableLayoutUpdate();
  3516. IntVector2 ElementToScreen(const IntVector2&);
  3517. void EnableLayoutUpdate();
  3518. uint FindChild(UIElement) const;
  3519. Variant GetAttribute(const String&) const;
  3520. ValueAnimation GetAttributeAnimation(const String&) const;
  3521. float GetAttributeAnimationSpeed(const String&) const;
  3522. float GetAttributeAnimationTime(const String&) const;
  3523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3524. Variant GetAttributeDefault(const String&) const;
  3525. UIElement GetChild(const String&, bool = false) const;
  3526. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3527. Array<UIElement> GetChildren(bool = false) const;
  3528. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3529. UIElement GetElementEventSender() const;
  3530. bool GetInterceptNetworkUpdate(const String&) const;
  3531. uint GetNumChildren(bool) const;
  3532. bool HasSubscribedToEvent(Object, const String&);
  3533. bool HasSubscribedToEvent(const String&);
  3534. bool HasTag(const String&) const;
  3535. void InsertChild(uint, UIElement);
  3536. bool IsInside(IntVector2, bool);
  3537. bool IsInsideCombined(IntVector2, bool);
  3538. bool Load(File, bool = false);
  3539. bool Load(VectorBuffer&, bool = false);
  3540. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3541. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3542. bool LoadJSON(const JSONValue&, bool = false);
  3543. bool LoadXML(File);
  3544. bool LoadXML(VectorBuffer&);
  3545. bool LoadXML(XMLFile, XMLFile);
  3546. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3547. bool LoadXML(const XMLElement&, bool = false);
  3548. void MarkNetworkUpdate() const;
  3549. void Remove();
  3550. void RemoveAllChildren();
  3551. void RemoveAllTags();
  3552. void RemoveAttributeAnimation(const String&);
  3553. void RemoveChild(UIElement, uint = 0);
  3554. void RemoveChild(uint);
  3555. void RemoveInstanceDefault();
  3556. void RemoveObjectAnimation();
  3557. bool RemoveTag(const String&);
  3558. void ResetDeepEnabled();
  3559. void ResetToDefault();
  3560. bool Save(File) const;
  3561. bool Save(VectorBuffer&) const;
  3562. bool SaveJSON(JSONValue&) const;
  3563. bool SaveXML(File, const String& = "\t");
  3564. bool SaveXML(VectorBuffer&, const String& = "\t");
  3565. bool SaveXML(XMLElement&) const;
  3566. IntVector2 ScreenToElement(const IntVector2&);
  3567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3568. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3569. void SetAnimationTime(float);
  3570. bool SetAttribute(const String&, const Variant&);
  3571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3572. void SetAttributeAnimationSpeed(const String&, float);
  3573. void SetAttributeAnimationTime(const String&, float);
  3574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3575. void SetDeepEnabled(bool);
  3576. void SetEnabledRecursive(bool);
  3577. void SetFixedHeight(int);
  3578. void SetFixedSize(int, int);
  3579. void SetFixedWidth(int);
  3580. void SetFullImageRect();
  3581. void SetHoverOffset(int, int);
  3582. void SetInterceptNetworkUpdate(const String&, bool);
  3583. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3584. void SetMaxAnchor(float, float);
  3585. void SetMaxSize(int, int);
  3586. void SetMinAnchor(float, float);
  3587. void SetMinSize(int, int);
  3588. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3589. void SetPivot(float, float);
  3590. void SetPosition(int, int);
  3591. void SetShape(CursorShape);
  3592. void SetShape(const String&);
  3593. void SetSize(int, int);
  3594. bool SetStyle(const String&, XMLFile = null);
  3595. bool SetStyle(const XMLElement&);
  3596. bool SetStyleAuto(XMLFile = null);
  3597. void UpdateLayout();
  3598. const Variant& GetVar(const StringHash&);
  3599. // Properties:
  3600. bool animationEnabled;
  3601. /* readonly */
  3602. Array<Variant> attributeDefaults;
  3603. /* readonly */
  3604. Array<AttributeInfo> attributeInfos;
  3605. Array<Variant> attributes;
  3606. BlendMode blendMode;
  3607. IntRect border;
  3608. bool bringToBack;
  3609. bool bringToFront;
  3610. /* readonly */
  3611. String category;
  3612. /* readonly */
  3613. IntVector2 childOffset;
  3614. /* readonly */
  3615. Array<UIElement> children;
  3616. IntRect clipBorder;
  3617. bool clipChildren;
  3618. /* writeonly */
  3619. Color color;
  3620. /* readonly */
  3621. bool colorGradient;
  3622. Array<Color> colors;
  3623. /* readonly */
  3624. IntRect combinedScreenRect;
  3625. XMLFile defaultStyle;
  3626. /* readonly */
  3627. float derivedOpacity;
  3628. /* readonly */
  3629. uint dragButtonCombo;
  3630. /* readonly */
  3631. int dragButtonCount;
  3632. uint dragDropMode;
  3633. bool editable;
  3634. bool elementEventSender;
  3635. bool enableAnchor;
  3636. bool enabled;
  3637. /* readonly */
  3638. bool enabledSelf;
  3639. /* readonly */
  3640. bool fixedHeight;
  3641. /* readonly */
  3642. bool fixedSize;
  3643. /* readonly */
  3644. bool fixedWidth;
  3645. bool focus;
  3646. FocusMode focusMode;
  3647. int height;
  3648. HorizontalAlignment horizontalAlignment;
  3649. IntVector2 hoverOffset;
  3650. /* readonly */
  3651. bool hovering;
  3652. IntRect imageBorder;
  3653. IntRect imageRect;
  3654. int indent;
  3655. int indentSpacing;
  3656. /* readonly */
  3657. int indentWidth;
  3658. bool internal;
  3659. IntRect layoutBorder;
  3660. Vector2 layoutFlexScale;
  3661. LayoutMode layoutMode;
  3662. int layoutSpacing;
  3663. Vector2 maxAnchor;
  3664. int maxHeight;
  3665. IntVector2 maxOffset;
  3666. IntVector2 maxSize;
  3667. int maxWidth;
  3668. Vector2 minAnchor;
  3669. int minHeight;
  3670. IntVector2 minOffset;
  3671. IntVector2 minSize;
  3672. int minWidth;
  3673. String name;
  3674. /* readonly */
  3675. uint numAllChildren;
  3676. /* readonly */
  3677. uint numAttributes;
  3678. /* readonly */
  3679. uint numChildren;
  3680. ObjectAnimation objectAnimation;
  3681. float opacity;
  3682. UIElement parent;
  3683. Vector2 pivot;
  3684. IntVector2 position;
  3685. int priority;
  3686. /* readonly */
  3687. int refs;
  3688. /* readonly */
  3689. UIElement root;
  3690. /* readonly */
  3691. IntVector2 screenPosition;
  3692. bool selected;
  3693. String shape;
  3694. IntVector2 size;
  3695. bool sortChildren;
  3696. String style;
  3697. /* readonly */
  3698. Array<String> tags;
  3699. bool temporary;
  3700. Texture texture;
  3701. bool tiled;
  3702. TraversalMode traversalMode;
  3703. /* readonly */
  3704. StringHash type;
  3705. /* readonly */
  3706. String typeName;
  3707. bool useDerivedOpacity;
  3708. bool useSystemShapes;
  3709. /* readonly */
  3710. VariantMap vars;
  3711. VerticalAlignment verticalAlignment;
  3712. bool visible;
  3713. /* readonly */
  3714. bool visibleEffective;
  3715. /* readonly */
  3716. int weakRefs;
  3717. int width;
  3718. };
  3719. class CustomGeometry
  3720. {
  3721. // Methods:
  3722. void ApplyAttributes();
  3723. void BeginGeometry(uint, PrimitiveType);
  3724. void Clear();
  3725. void Commit();
  3726. void DefineColor(const Color&);
  3727. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3728. void DefineNormal(const Vector3&);
  3729. void DefineTangent(const Vector4&);
  3730. void DefineTexCoord(const Vector2&);
  3731. void DefineVertex(const Vector3&);
  3732. void DrawDebugGeometry(DebugRenderer, bool);
  3733. Variant GetAttribute(const String&) const;
  3734. ValueAnimation GetAttributeAnimation(const String&) const;
  3735. float GetAttributeAnimationSpeed(const String&) const;
  3736. float GetAttributeAnimationTime(const String&) const;
  3737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3738. Variant GetAttributeDefault(const String&) const;
  3739. bool GetInterceptNetworkUpdate(const String&) const;
  3740. CustomGeometryVertex GetVertex(uint, uint);
  3741. bool HasSubscribedToEvent(Object, const String&);
  3742. bool HasSubscribedToEvent(const String&);
  3743. bool IsInView(Camera) const;
  3744. bool Load(File, bool = false);
  3745. bool Load(VectorBuffer&, bool = false);
  3746. bool LoadJSON(const JSONValue&, bool = false);
  3747. bool LoadXML(const XMLElement&, bool = false);
  3748. void MarkNetworkUpdate() const;
  3749. void Remove();
  3750. void RemoveAttributeAnimation(const String&);
  3751. void RemoveInstanceDefault();
  3752. void RemoveObjectAnimation();
  3753. void ResetToDefault();
  3754. bool Save(File) const;
  3755. bool Save(VectorBuffer&) const;
  3756. bool SaveJSON(JSONValue&) const;
  3757. bool SaveXML(XMLElement&) const;
  3758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3759. void SetAnimationTime(float);
  3760. bool SetAttribute(const String&, const Variant&);
  3761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3762. void SetAttributeAnimationSpeed(const String&, float);
  3763. void SetAttributeAnimationTime(const String&, float);
  3764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3765. void SetInterceptNetworkUpdate(const String&, bool);
  3766. // Properties:
  3767. bool animationEnabled;
  3768. /* readonly */
  3769. Array<Variant> attributeDefaults;
  3770. /* readonly */
  3771. Array<AttributeInfo> attributeInfos;
  3772. Array<Variant> attributes;
  3773. /* readonly */
  3774. BoundingBox boundingBox;
  3775. bool castShadows;
  3776. /* readonly */
  3777. String category;
  3778. float drawDistance;
  3779. bool dynamic;
  3780. bool enabled;
  3781. /* readonly */
  3782. bool enabledEffective;
  3783. /* readonly */
  3784. uint id;
  3785. /* readonly */
  3786. bool inView;
  3787. uint lightMask;
  3788. float lodBias;
  3789. /* writeonly */
  3790. Material material;
  3791. Array<Material> materials;
  3792. uint maxLights;
  3793. /* readonly */
  3794. Node node;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. uint numGeometries;
  3798. /* readonly */
  3799. Array<uint> numVertices;
  3800. ObjectAnimation objectAnimation;
  3801. bool occludee;
  3802. bool occluder;
  3803. /* readonly */
  3804. int refs;
  3805. float shadowDistance;
  3806. uint shadowMask;
  3807. bool temporary;
  3808. /* readonly */
  3809. StringHash type;
  3810. /* readonly */
  3811. String typeName;
  3812. uint viewMask;
  3813. /* readonly */
  3814. int weakRefs;
  3815. /* readonly */
  3816. BoundingBox worldBoundingBox;
  3817. /* readonly */
  3818. Zone zone;
  3819. uint zoneMask;
  3820. };
  3821. class CustomGeometryVertex
  3822. {
  3823. // Properties:
  3824. uint color;
  3825. Vector3 normal;
  3826. Vector3 position;
  3827. Vector4 tangent;
  3828. Vector2 texCoord;
  3829. };
  3830. class Database
  3831. {
  3832. // Methods:
  3833. DbConnection Connect(const String&);
  3834. void Disconnect(DbConnection);
  3835. bool HasSubscribedToEvent(Object, const String&);
  3836. bool HasSubscribedToEvent(const String&);
  3837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3838. // Properties:
  3839. /* readonly */
  3840. String category;
  3841. uint poolSize;
  3842. /* readonly */
  3843. bool pooling;
  3844. /* readonly */
  3845. int refs;
  3846. /* readonly */
  3847. StringHash type;
  3848. /* readonly */
  3849. String typeName;
  3850. /* readonly */
  3851. int weakRefs;
  3852. };
  3853. class DbConnection
  3854. {
  3855. // Methods:
  3856. DbResult Execute(const String&, bool = false);
  3857. bool HasSubscribedToEvent(Object, const String&);
  3858. bool HasSubscribedToEvent(const String&);
  3859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3860. // Properties:
  3861. /* readonly */
  3862. String category;
  3863. /* readonly */
  3864. bool connected;
  3865. /* readonly */
  3866. String connectionString;
  3867. /* readonly */
  3868. int refs;
  3869. /* readonly */
  3870. StringHash type;
  3871. /* readonly */
  3872. String typeName;
  3873. /* readonly */
  3874. int weakRefs;
  3875. };
  3876. class DbResult
  3877. {
  3878. // Properties:
  3879. /* readonly */
  3880. Array<String> columns;
  3881. /* readonly */
  3882. int64 numAffectedRows;
  3883. /* readonly */
  3884. uint numColumns;
  3885. /* readonly */
  3886. uint numRows;
  3887. /* readonly */
  3888. Array<Array<Variant>> row;
  3889. };
  3890. class DebugHud
  3891. {
  3892. // Methods:
  3893. void ClearAppStats();
  3894. bool HasSubscribedToEvent(Object, const String&);
  3895. bool HasSubscribedToEvent(const String&);
  3896. void ResetAppStats(const String&);
  3897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3898. void SetAppStats(const String&, const String&);
  3899. void SetAppStats(const String&, const Variant&);
  3900. void Toggle(uint);
  3901. void ToggleAll();
  3902. void Update();
  3903. // Properties:
  3904. /* readonly */
  3905. String category;
  3906. XMLFile defaultStyle;
  3907. /* readonly */
  3908. Text memoryText;
  3909. uint mode;
  3910. /* readonly */
  3911. Text modeText;
  3912. float profilerInterval;
  3913. uint profilerMaxDepth;
  3914. /* readonly */
  3915. Text profilerText;
  3916. /* readonly */
  3917. int refs;
  3918. /* readonly */
  3919. Text statsText;
  3920. /* readonly */
  3921. StringHash type;
  3922. /* readonly */
  3923. String typeName;
  3924. bool useRendererStats;
  3925. /* readonly */
  3926. int weakRefs;
  3927. };
  3928. class DebugRenderer
  3929. {
  3930. // Methods:
  3931. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  3932. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3933. void AddCross(const Vector3&, float, const Color&, bool = true);
  3934. void AddFrustum(const Frustum&, const Color&, bool = true);
  3935. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3936. void AddNode(Node, float = 1.0, bool = true);
  3937. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3938. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3939. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3940. void AddSkeleton(Skeleton, const Color&, bool = true);
  3941. void AddSphere(const Sphere&, const Color&, bool = true);
  3942. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3943. void ApplyAttributes();
  3944. void DrawDebugGeometry(DebugRenderer, bool);
  3945. Variant GetAttribute(const String&) const;
  3946. ValueAnimation GetAttributeAnimation(const String&) const;
  3947. float GetAttributeAnimationSpeed(const String&) const;
  3948. float GetAttributeAnimationTime(const String&) const;
  3949. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3950. Variant GetAttributeDefault(const String&) const;
  3951. bool GetInterceptNetworkUpdate(const String&) const;
  3952. bool HasSubscribedToEvent(Object, const String&);
  3953. bool HasSubscribedToEvent(const String&);
  3954. bool Load(File, bool = false);
  3955. bool Load(VectorBuffer&, bool = false);
  3956. bool LoadJSON(const JSONValue&, bool = false);
  3957. bool LoadXML(const XMLElement&, bool = false);
  3958. void MarkNetworkUpdate() const;
  3959. void Remove();
  3960. void RemoveAttributeAnimation(const String&);
  3961. void RemoveInstanceDefault();
  3962. void RemoveObjectAnimation();
  3963. void ResetToDefault();
  3964. bool Save(File) const;
  3965. bool Save(VectorBuffer&) const;
  3966. bool SaveJSON(JSONValue&) const;
  3967. bool SaveXML(XMLElement&) const;
  3968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3969. void SetAnimationTime(float);
  3970. bool SetAttribute(const String&, const Variant&);
  3971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3972. void SetAttributeAnimationSpeed(const String&, float);
  3973. void SetAttributeAnimationTime(const String&, float);
  3974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3975. void SetInterceptNetworkUpdate(const String&, bool);
  3976. // Properties:
  3977. bool animationEnabled;
  3978. /* readonly */
  3979. Array<Variant> attributeDefaults;
  3980. /* readonly */
  3981. Array<AttributeInfo> attributeInfos;
  3982. Array<Variant> attributes;
  3983. /* readonly */
  3984. String category;
  3985. bool enabled;
  3986. /* readonly */
  3987. bool enabledEffective;
  3988. /* readonly */
  3989. uint id;
  3990. bool lineAntiAlias;
  3991. /* readonly */
  3992. Node node;
  3993. /* readonly */
  3994. uint numAttributes;
  3995. ObjectAnimation objectAnimation;
  3996. /* readonly */
  3997. int refs;
  3998. bool temporary;
  3999. /* readonly */
  4000. StringHash type;
  4001. /* readonly */
  4002. String typeName;
  4003. /* readonly */
  4004. int weakRefs;
  4005. };
  4006. class DecalSet
  4007. {
  4008. // Methods:
  4009. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4010. void ApplyAttributes();
  4011. void DrawDebugGeometry(DebugRenderer, bool);
  4012. Variant GetAttribute(const String&) const;
  4013. ValueAnimation GetAttributeAnimation(const String&) const;
  4014. float GetAttributeAnimationSpeed(const String&) const;
  4015. float GetAttributeAnimationTime(const String&) const;
  4016. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4017. Variant GetAttributeDefault(const String&) const;
  4018. bool GetInterceptNetworkUpdate(const String&) const;
  4019. bool HasSubscribedToEvent(Object, const String&);
  4020. bool HasSubscribedToEvent(const String&);
  4021. bool IsInView(Camera) const;
  4022. bool Load(File, bool = false);
  4023. bool Load(VectorBuffer&, bool = false);
  4024. bool LoadJSON(const JSONValue&, bool = false);
  4025. bool LoadXML(const XMLElement&, bool = false);
  4026. void MarkNetworkUpdate() const;
  4027. void Remove();
  4028. void RemoveAllDecals();
  4029. void RemoveAttributeAnimation(const String&);
  4030. void RemoveDecals(uint);
  4031. void RemoveInstanceDefault();
  4032. void RemoveObjectAnimation();
  4033. void ResetToDefault();
  4034. bool Save(File) const;
  4035. bool Save(VectorBuffer&) const;
  4036. bool SaveJSON(JSONValue&) const;
  4037. bool SaveXML(XMLElement&) const;
  4038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4039. void SetAnimationTime(float);
  4040. bool SetAttribute(const String&, const Variant&);
  4041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4042. void SetAttributeAnimationSpeed(const String&, float);
  4043. void SetAttributeAnimationTime(const String&, float);
  4044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4045. void SetInterceptNetworkUpdate(const String&, bool);
  4046. // Properties:
  4047. bool animationEnabled;
  4048. /* readonly */
  4049. Array<Variant> attributeDefaults;
  4050. /* readonly */
  4051. Array<AttributeInfo> attributeInfos;
  4052. Array<Variant> attributes;
  4053. /* readonly */
  4054. BoundingBox boundingBox;
  4055. bool castShadows;
  4056. /* readonly */
  4057. String category;
  4058. float drawDistance;
  4059. bool enabled;
  4060. /* readonly */
  4061. bool enabledEffective;
  4062. /* readonly */
  4063. uint id;
  4064. /* readonly */
  4065. bool inView;
  4066. uint lightMask;
  4067. float lodBias;
  4068. Material material;
  4069. uint maxIndices;
  4070. uint maxLights;
  4071. uint maxVertices;
  4072. /* readonly */
  4073. Node node;
  4074. /* readonly */
  4075. uint numAttributes;
  4076. /* readonly */
  4077. uint numDecals;
  4078. /* readonly */
  4079. uint numIndices;
  4080. /* readonly */
  4081. uint numVertices;
  4082. ObjectAnimation objectAnimation;
  4083. bool occludee;
  4084. bool occluder;
  4085. bool optimizeBufferSize;
  4086. /* readonly */
  4087. int refs;
  4088. float shadowDistance;
  4089. uint shadowMask;
  4090. bool temporary;
  4091. /* readonly */
  4092. StringHash type;
  4093. /* readonly */
  4094. String typeName;
  4095. uint viewMask;
  4096. /* readonly */
  4097. int weakRefs;
  4098. /* readonly */
  4099. BoundingBox worldBoundingBox;
  4100. /* readonly */
  4101. Zone zone;
  4102. uint zoneMask;
  4103. };
  4104. class Deserializer
  4105. {
  4106. // Methods:
  4107. Array<uint8> Read(uint);
  4108. bool ReadBool();
  4109. BoundingBox ReadBoundingBox();
  4110. int8 ReadByte();
  4111. Color ReadColor();
  4112. double ReadDouble();
  4113. String ReadFileID();
  4114. float ReadFloat();
  4115. int ReadInt();
  4116. int64 ReadInt64();
  4117. IntRect ReadIntRect();
  4118. IntVector2 ReadIntVector2();
  4119. String ReadLine();
  4120. Matrix3 ReadMatrix3();
  4121. Matrix3x4 ReadMatrix3x4();
  4122. Matrix4 ReadMatrix4();
  4123. uint ReadNetID();
  4124. Quaternion ReadPackedQuaternion();
  4125. Vector3 ReadPackedVector3(float);
  4126. Quaternion ReadQuaternion();
  4127. int16 ReadShort();
  4128. String ReadString();
  4129. StringHash ReadStringHash();
  4130. uint8 ReadUByte();
  4131. uint ReadUInt();
  4132. uint64 ReadUInt64();
  4133. uint16 ReadUShort();
  4134. uint ReadVLE();
  4135. Variant ReadVariant();
  4136. VariantMap ReadVariantMap();
  4137. Vector2 ReadVector2();
  4138. Vector3 ReadVector3();
  4139. Vector4 ReadVector4();
  4140. VectorBuffer ReadVectorBuffer(uint);
  4141. uint Seek(uint);
  4142. // Properties:
  4143. /* readonly */
  4144. uint checksum;
  4145. /* readonly */
  4146. bool eof;
  4147. /* readonly */
  4148. String name;
  4149. /* readonly */
  4150. uint position;
  4151. /* readonly */
  4152. uint size;
  4153. };
  4154. class Dictionary
  4155. {
  4156. // Methods:
  4157. void Clear();
  4158. void Erase(const String&);
  4159. bool Exists(const String&) const;
  4160. bool Get(const String&, void*) const;
  4161. bool Get(const String&, double&) const;
  4162. bool Get(const String&, int64&) const;
  4163. void Set(const String&, const void*);
  4164. void Set(const String&, const double&);
  4165. void Set(const String&, const int64&);
  4166. // Properties:
  4167. /* readonly */
  4168. bool empty;
  4169. /* readonly */
  4170. Array<String> keys;
  4171. /* readonly */
  4172. uint length;
  4173. };
  4174. class DictionaryValue
  4175. {
  4176. };
  4177. class Drawable
  4178. {
  4179. // Methods:
  4180. void ApplyAttributes();
  4181. void DrawDebugGeometry(DebugRenderer, bool);
  4182. Variant GetAttribute(const String&) const;
  4183. ValueAnimation GetAttributeAnimation(const String&) const;
  4184. float GetAttributeAnimationSpeed(const String&) const;
  4185. float GetAttributeAnimationTime(const String&) const;
  4186. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4187. Variant GetAttributeDefault(const String&) const;
  4188. bool GetInterceptNetworkUpdate(const String&) const;
  4189. bool HasSubscribedToEvent(Object, const String&);
  4190. bool HasSubscribedToEvent(const String&);
  4191. bool IsInView(Camera) const;
  4192. bool Load(File, bool = false);
  4193. bool Load(VectorBuffer&, bool = false);
  4194. bool LoadJSON(const JSONValue&, bool = false);
  4195. bool LoadXML(const XMLElement&, bool = false);
  4196. void MarkNetworkUpdate() const;
  4197. void Remove();
  4198. void RemoveAttributeAnimation(const String&);
  4199. void RemoveInstanceDefault();
  4200. void RemoveObjectAnimation();
  4201. void ResetToDefault();
  4202. bool Save(File) const;
  4203. bool Save(VectorBuffer&) const;
  4204. bool SaveJSON(JSONValue&) const;
  4205. bool SaveXML(XMLElement&) const;
  4206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4207. void SetAnimationTime(float);
  4208. bool SetAttribute(const String&, const Variant&);
  4209. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4210. void SetAttributeAnimationSpeed(const String&, float);
  4211. void SetAttributeAnimationTime(const String&, float);
  4212. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4213. void SetInterceptNetworkUpdate(const String&, bool);
  4214. // Properties:
  4215. bool animationEnabled;
  4216. /* readonly */
  4217. Array<Variant> attributeDefaults;
  4218. /* readonly */
  4219. Array<AttributeInfo> attributeInfos;
  4220. Array<Variant> attributes;
  4221. /* readonly */
  4222. BoundingBox boundingBox;
  4223. bool castShadows;
  4224. /* readonly */
  4225. String category;
  4226. float drawDistance;
  4227. bool enabled;
  4228. /* readonly */
  4229. bool enabledEffective;
  4230. /* readonly */
  4231. uint id;
  4232. /* readonly */
  4233. bool inView;
  4234. uint lightMask;
  4235. float lodBias;
  4236. uint maxLights;
  4237. /* readonly */
  4238. Node node;
  4239. /* readonly */
  4240. uint numAttributes;
  4241. ObjectAnimation objectAnimation;
  4242. bool occludee;
  4243. bool occluder;
  4244. /* readonly */
  4245. int refs;
  4246. float shadowDistance;
  4247. uint shadowMask;
  4248. bool temporary;
  4249. /* readonly */
  4250. StringHash type;
  4251. /* readonly */
  4252. String typeName;
  4253. uint viewMask;
  4254. /* readonly */
  4255. int weakRefs;
  4256. /* readonly */
  4257. BoundingBox worldBoundingBox;
  4258. uint zoneMask;
  4259. };
  4260. class Drawable2D
  4261. {
  4262. // Methods:
  4263. void ApplyAttributes();
  4264. void DrawDebugGeometry(DebugRenderer, bool);
  4265. Variant GetAttribute(const String&) const;
  4266. ValueAnimation GetAttributeAnimation(const String&) const;
  4267. float GetAttributeAnimationSpeed(const String&) const;
  4268. float GetAttributeAnimationTime(const String&) const;
  4269. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4270. Variant GetAttributeDefault(const String&) const;
  4271. bool GetInterceptNetworkUpdate(const String&) const;
  4272. bool HasSubscribedToEvent(Object, const String&);
  4273. bool HasSubscribedToEvent(const String&);
  4274. bool IsInView(Camera) const;
  4275. bool Load(File, bool = false);
  4276. bool Load(VectorBuffer&, bool = false);
  4277. bool LoadJSON(const JSONValue&, bool = false);
  4278. bool LoadXML(const XMLElement&, bool = false);
  4279. void MarkNetworkUpdate() const;
  4280. void Remove();
  4281. void RemoveAttributeAnimation(const String&);
  4282. void RemoveInstanceDefault();
  4283. void RemoveObjectAnimation();
  4284. void ResetToDefault();
  4285. bool Save(File) const;
  4286. bool Save(VectorBuffer&) const;
  4287. bool SaveJSON(JSONValue&) const;
  4288. bool SaveXML(XMLElement&) const;
  4289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4290. void SetAnimationTime(float);
  4291. bool SetAttribute(const String&, const Variant&);
  4292. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4293. void SetAttributeAnimationSpeed(const String&, float);
  4294. void SetAttributeAnimationTime(const String&, float);
  4295. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4296. void SetInterceptNetworkUpdate(const String&, bool);
  4297. // Properties:
  4298. bool animationEnabled;
  4299. /* readonly */
  4300. Array<Variant> attributeDefaults;
  4301. /* readonly */
  4302. Array<AttributeInfo> attributeInfos;
  4303. Array<Variant> attributes;
  4304. /* readonly */
  4305. BoundingBox boundingBox;
  4306. bool castShadows;
  4307. /* readonly */
  4308. String category;
  4309. float drawDistance;
  4310. bool enabled;
  4311. /* readonly */
  4312. bool enabledEffective;
  4313. /* readonly */
  4314. uint id;
  4315. /* readonly */
  4316. bool inView;
  4317. int layer;
  4318. uint lightMask;
  4319. float lodBias;
  4320. uint maxLights;
  4321. /* readonly */
  4322. Node node;
  4323. /* readonly */
  4324. uint numAttributes;
  4325. ObjectAnimation objectAnimation;
  4326. bool occludee;
  4327. bool occluder;
  4328. int orderInLayer;
  4329. /* readonly */
  4330. int refs;
  4331. float shadowDistance;
  4332. uint shadowMask;
  4333. bool temporary;
  4334. /* readonly */
  4335. StringHash type;
  4336. /* readonly */
  4337. String typeName;
  4338. uint viewMask;
  4339. /* readonly */
  4340. int weakRefs;
  4341. /* readonly */
  4342. BoundingBox worldBoundingBox;
  4343. uint zoneMask;
  4344. };
  4345. class DropDownList
  4346. {
  4347. // Methods:
  4348. void AddChild(UIElement);
  4349. void AddItem(UIElement);
  4350. void AddTag(const String&);
  4351. void AddTags(const String&, int8 = ';');
  4352. void ApplyAttributes();
  4353. void BringToFront();
  4354. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4355. void DisableLayoutUpdate();
  4356. IntVector2 ElementToScreen(const IntVector2&);
  4357. void EnableLayoutUpdate();
  4358. uint FindChild(UIElement) const;
  4359. Variant GetAttribute(const String&) const;
  4360. ValueAnimation GetAttributeAnimation(const String&) const;
  4361. float GetAttributeAnimationSpeed(const String&) const;
  4362. float GetAttributeAnimationTime(const String&) const;
  4363. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4364. Variant GetAttributeDefault(const String&) const;
  4365. UIElement GetChild(const String&, bool = false) const;
  4366. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4367. Array<UIElement> GetChildren(bool = false) const;
  4368. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4369. UIElement GetElementEventSender() const;
  4370. bool GetInterceptNetworkUpdate(const String&) const;
  4371. Array<UIElement> GetItems() const;
  4372. uint GetNumChildren(bool) const;
  4373. bool HasSubscribedToEvent(Object, const String&);
  4374. bool HasSubscribedToEvent(const String&);
  4375. bool HasTag(const String&) const;
  4376. void InsertChild(uint, UIElement);
  4377. void InsertItem(uint, UIElement);
  4378. bool IsInside(IntVector2, bool);
  4379. bool IsInsideCombined(IntVector2, bool);
  4380. bool Load(File, bool = false);
  4381. bool Load(VectorBuffer&, bool = false);
  4382. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4383. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4384. bool LoadJSON(const JSONValue&, bool = false);
  4385. bool LoadXML(File);
  4386. bool LoadXML(VectorBuffer&);
  4387. bool LoadXML(XMLFile, XMLFile);
  4388. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4389. bool LoadXML(const XMLElement&, bool = false);
  4390. void MarkNetworkUpdate() const;
  4391. void Remove();
  4392. void RemoveAllChildren();
  4393. void RemoveAllItems();
  4394. void RemoveAllTags();
  4395. void RemoveAttributeAnimation(const String&);
  4396. void RemoveChild(UIElement, uint = 0);
  4397. void RemoveChild(uint);
  4398. void RemoveInstanceDefault();
  4399. void RemoveItem(UIElement);
  4400. void RemoveItem(uint);
  4401. void RemoveObjectAnimation();
  4402. bool RemoveTag(const String&);
  4403. void ResetDeepEnabled();
  4404. void ResetToDefault();
  4405. bool Save(File) const;
  4406. bool Save(VectorBuffer&) const;
  4407. bool SaveJSON(JSONValue&) const;
  4408. bool SaveXML(File, const String& = "\t");
  4409. bool SaveXML(VectorBuffer&, const String& = "\t");
  4410. bool SaveXML(XMLElement&) const;
  4411. IntVector2 ScreenToElement(const IntVector2&);
  4412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4413. void SetAccelerator(int, int);
  4414. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4415. void SetAnimationTime(float);
  4416. bool SetAttribute(const String&, const Variant&);
  4417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4418. void SetAttributeAnimationSpeed(const String&, float);
  4419. void SetAttributeAnimationTime(const String&, float);
  4420. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4421. void SetDeepEnabled(bool);
  4422. void SetEnabledRecursive(bool);
  4423. void SetFixedHeight(int);
  4424. void SetFixedSize(int, int);
  4425. void SetFixedWidth(int);
  4426. void SetFullImageRect();
  4427. void SetHoverOffset(int, int);
  4428. void SetInterceptNetworkUpdate(const String&, bool);
  4429. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4430. void SetMaxAnchor(float, float);
  4431. void SetMaxSize(int, int);
  4432. void SetMinAnchor(float, float);
  4433. void SetMinSize(int, int);
  4434. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4435. void SetPivot(float, float);
  4436. void SetPosition(int, int);
  4437. void SetPressedChildOffset(int, int);
  4438. void SetPressedOffset(int, int);
  4439. void SetRepeat(float, float);
  4440. void SetSize(int, int);
  4441. bool SetStyle(const String&, XMLFile = null);
  4442. bool SetStyle(const XMLElement&);
  4443. bool SetStyleAuto(XMLFile = null);
  4444. void UpdateLayout();
  4445. const Variant& GetVar(const StringHash&);
  4446. UIElement getPopup() const;
  4447. // Properties:
  4448. /* readonly */
  4449. int acceleratorKey;
  4450. /* readonly */
  4451. int acceleratorQualifiers;
  4452. bool animationEnabled;
  4453. /* readonly */
  4454. Array<Variant> attributeDefaults;
  4455. /* readonly */
  4456. Array<AttributeInfo> attributeInfos;
  4457. Array<Variant> attributes;
  4458. BlendMode blendMode;
  4459. IntRect border;
  4460. bool bringToBack;
  4461. bool bringToFront;
  4462. /* readonly */
  4463. String category;
  4464. /* readonly */
  4465. IntVector2 childOffset;
  4466. /* readonly */
  4467. Array<UIElement> children;
  4468. IntRect clipBorder;
  4469. bool clipChildren;
  4470. /* writeonly */
  4471. Color color;
  4472. /* readonly */
  4473. bool colorGradient;
  4474. Array<Color> colors;
  4475. /* readonly */
  4476. IntRect combinedScreenRect;
  4477. XMLFile defaultStyle;
  4478. /* readonly */
  4479. float derivedOpacity;
  4480. /* readonly */
  4481. uint dragButtonCombo;
  4482. /* readonly */
  4483. int dragButtonCount;
  4484. uint dragDropMode;
  4485. bool editable;
  4486. bool elementEventSender;
  4487. bool enableAnchor;
  4488. bool enabled;
  4489. /* readonly */
  4490. bool enabledSelf;
  4491. /* readonly */
  4492. bool fixedHeight;
  4493. /* readonly */
  4494. bool fixedSize;
  4495. /* readonly */
  4496. bool fixedWidth;
  4497. bool focus;
  4498. FocusMode focusMode;
  4499. int height;
  4500. HorizontalAlignment horizontalAlignment;
  4501. IntVector2 hoverOffset;
  4502. /* readonly */
  4503. bool hovering;
  4504. IntRect imageBorder;
  4505. IntRect imageRect;
  4506. int indent;
  4507. int indentSpacing;
  4508. /* readonly */
  4509. int indentWidth;
  4510. bool internal;
  4511. /* readonly */
  4512. Array<UIElement> items;
  4513. IntRect layoutBorder;
  4514. Vector2 layoutFlexScale;
  4515. LayoutMode layoutMode;
  4516. int layoutSpacing;
  4517. /* readonly */
  4518. ListView listView;
  4519. Vector2 maxAnchor;
  4520. int maxHeight;
  4521. IntVector2 maxOffset;
  4522. IntVector2 maxSize;
  4523. int maxWidth;
  4524. Vector2 minAnchor;
  4525. int minHeight;
  4526. IntVector2 minOffset;
  4527. IntVector2 minSize;
  4528. int minWidth;
  4529. String name;
  4530. /* readonly */
  4531. uint numAllChildren;
  4532. /* readonly */
  4533. uint numAttributes;
  4534. /* readonly */
  4535. uint numChildren;
  4536. /* readonly */
  4537. uint numItems;
  4538. ObjectAnimation objectAnimation;
  4539. float opacity;
  4540. UIElement parent;
  4541. Vector2 pivot;
  4542. /* readonly */
  4543. UIElement placeholder;
  4544. String placeholderText;
  4545. IntVector2 position;
  4546. /* readonly */
  4547. bool pressed;
  4548. IntVector2 pressedChildOffset;
  4549. IntVector2 pressedOffset;
  4550. int priority;
  4551. /* readonly */
  4552. int refs;
  4553. float repeatDelay;
  4554. float repeatRate;
  4555. bool resizePopup;
  4556. /* readonly */
  4557. UIElement root;
  4558. /* readonly */
  4559. IntVector2 screenPosition;
  4560. bool selected;
  4561. /* readonly */
  4562. UIElement selectedItem;
  4563. uint selection;
  4564. bool showPopup;
  4565. IntVector2 size;
  4566. bool sortChildren;
  4567. String style;
  4568. /* readonly */
  4569. Array<String> tags;
  4570. bool temporary;
  4571. Texture texture;
  4572. bool tiled;
  4573. TraversalMode traversalMode;
  4574. /* readonly */
  4575. StringHash type;
  4576. /* readonly */
  4577. String typeName;
  4578. bool useDerivedOpacity;
  4579. /* readonly */
  4580. VariantMap vars;
  4581. VerticalAlignment verticalAlignment;
  4582. bool visible;
  4583. /* readonly */
  4584. bool visibleEffective;
  4585. /* readonly */
  4586. int weakRefs;
  4587. int width;
  4588. };
  4589. class DynamicNavigationMesh
  4590. {
  4591. // Methods:
  4592. void ApplyAttributes();
  4593. bool Build();
  4594. bool Build(const BoundingBox&);
  4595. void DrawDebugGeometry(DebugRenderer, bool);
  4596. void DrawDebugGeometry(bool);
  4597. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4598. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4599. float GetAreaCost(uint) const;
  4600. Variant GetAttribute(const String&) const;
  4601. ValueAnimation GetAttributeAnimation(const String&) const;
  4602. float GetAttributeAnimationSpeed(const String&) const;
  4603. float GetAttributeAnimationTime(const String&) const;
  4604. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4605. Variant GetAttributeDefault(const String&) const;
  4606. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4607. bool GetInterceptNetworkUpdate(const String&) const;
  4608. Vector3 GetRandomPoint();
  4609. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4610. bool HasSubscribedToEvent(Object, const String&);
  4611. bool HasSubscribedToEvent(const String&);
  4612. bool Load(File, bool = false);
  4613. bool Load(VectorBuffer&, bool = false);
  4614. bool LoadJSON(const JSONValue&, bool = false);
  4615. bool LoadXML(const XMLElement&, bool = false);
  4616. void MarkNetworkUpdate() const;
  4617. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4618. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4619. void Remove();
  4620. void RemoveAttributeAnimation(const String&);
  4621. void RemoveInstanceDefault();
  4622. void RemoveObjectAnimation();
  4623. void ResetToDefault();
  4624. bool Save(File) const;
  4625. bool Save(VectorBuffer&) const;
  4626. bool SaveJSON(JSONValue&) const;
  4627. bool SaveXML(XMLElement&) const;
  4628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4629. void SetAnimationTime(float);
  4630. void SetAreaCost(uint, float);
  4631. bool SetAttribute(const String&, const Variant&);
  4632. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4633. void SetAttributeAnimationSpeed(const String&, float);
  4634. void SetAttributeAnimationTime(const String&, float);
  4635. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4636. void SetInterceptNetworkUpdate(const String&, bool);
  4637. // Properties:
  4638. float agentHeight;
  4639. float agentMaxClimb;
  4640. float agentMaxSlope;
  4641. float agentRadius;
  4642. bool animationEnabled;
  4643. /* readonly */
  4644. Array<Variant> attributeDefaults;
  4645. /* readonly */
  4646. Array<AttributeInfo> attributeInfos;
  4647. Array<Variant> attributes;
  4648. /* readonly */
  4649. BoundingBox boundingBox;
  4650. /* readonly */
  4651. String category;
  4652. float cellHeight;
  4653. float cellSize;
  4654. float detailSampleDistance;
  4655. float detailSampleMaxError;
  4656. bool drawNavAreas;
  4657. bool drawObstacles;
  4658. bool drawOffMeshConnections;
  4659. float edgeMaxError;
  4660. float edgeMaxLength;
  4661. bool enabled;
  4662. /* readonly */
  4663. bool enabledEffective;
  4664. /* readonly */
  4665. uint id;
  4666. /* readonly */
  4667. bool initialized;
  4668. bool maxLayers;
  4669. uint maxObstacles;
  4670. /* readonly */
  4671. Node node;
  4672. /* readonly */
  4673. uint numAttributes;
  4674. /* readonly */
  4675. IntVector2 numTiles;
  4676. ObjectAnimation objectAnimation;
  4677. Vector3 padding;
  4678. NavmeshPartitionType partitionType;
  4679. /* readonly */
  4680. int refs;
  4681. float regionMergeSize;
  4682. float regionMinSize;
  4683. bool temporary;
  4684. int tileSize;
  4685. /* readonly */
  4686. StringHash type;
  4687. /* readonly */
  4688. String typeName;
  4689. /* readonly */
  4690. int weakRefs;
  4691. /* readonly */
  4692. BoundingBox worldBoundingBox;
  4693. };
  4694. class Engine
  4695. {
  4696. // Methods:
  4697. Console CreateConsole();
  4698. DebugHud CreateDebugHud();
  4699. void DumpMemory();
  4700. void DumpProfiler();
  4701. void DumpResources(bool = false);
  4702. void Exit();
  4703. bool HasSubscribedToEvent(Object, const String&);
  4704. bool HasSubscribedToEvent(const String&);
  4705. void RunFrame();
  4706. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4707. // Properties:
  4708. bool autoExit;
  4709. /* readonly */
  4710. String category;
  4711. /* readonly */
  4712. bool exiting;
  4713. /* readonly */
  4714. bool headless;
  4715. /* readonly */
  4716. bool initialized;
  4717. int maxFps;
  4718. int maxInactiveFps;
  4719. int minFps;
  4720. bool pauseMinimized;
  4721. /* readonly */
  4722. int refs;
  4723. int timeStepSmoothing;
  4724. /* readonly */
  4725. StringHash type;
  4726. /* readonly */
  4727. String typeName;
  4728. /* readonly */
  4729. int weakRefs;
  4730. };
  4731. class File
  4732. {
  4733. // Methods:
  4734. void Close();
  4735. bool HasSubscribedToEvent(Object, const String&);
  4736. bool HasSubscribedToEvent(const String&);
  4737. bool Open(const String&, FileMode = FILE_READ);
  4738. Array<uint8> Read(uint);
  4739. bool ReadBool();
  4740. BoundingBox ReadBoundingBox();
  4741. int8 ReadByte();
  4742. Color ReadColor();
  4743. double ReadDouble();
  4744. String ReadFileID();
  4745. float ReadFloat();
  4746. int ReadInt();
  4747. int64 ReadInt64();
  4748. IntRect ReadIntRect();
  4749. IntVector2 ReadIntVector2();
  4750. String ReadLine();
  4751. Matrix3 ReadMatrix3();
  4752. Matrix3x4 ReadMatrix3x4();
  4753. Matrix4 ReadMatrix4();
  4754. uint ReadNetID();
  4755. Quaternion ReadPackedQuaternion();
  4756. Vector3 ReadPackedVector3(float);
  4757. Quaternion ReadQuaternion();
  4758. int16 ReadShort();
  4759. String ReadString();
  4760. StringHash ReadStringHash();
  4761. uint8 ReadUByte();
  4762. uint ReadUInt();
  4763. uint64 ReadUInt64();
  4764. uint16 ReadUShort();
  4765. uint ReadVLE();
  4766. Variant ReadVariant();
  4767. VariantMap ReadVariantMap();
  4768. Vector2 ReadVector2();
  4769. Vector3 ReadVector3();
  4770. Vector4 ReadVector4();
  4771. VectorBuffer ReadVectorBuffer(uint);
  4772. uint Seek(uint);
  4773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4774. uint Write(Array<uint8>);
  4775. bool WriteBool(bool);
  4776. bool WriteBoundingBox(const BoundingBox&);
  4777. bool WriteByte(int8);
  4778. bool WriteColor(const Color&);
  4779. bool WriteDouble(double);
  4780. bool WriteFileID(const String&);
  4781. bool WriteFloat(float);
  4782. bool WriteInt(int);
  4783. bool WriteInt64(int64);
  4784. bool WriteIntRect(const IntRect&);
  4785. bool WriteIntVector2(const IntVector2&);
  4786. bool WriteLine(const String&);
  4787. bool WriteMatrix3(const Matrix3&);
  4788. bool WriteMatrix3x4(const Matrix3x4&);
  4789. bool WriteMatrix4(const Matrix4&);
  4790. bool WriteNetID(uint);
  4791. bool WritePackedQuaternion(const Quaternion&);
  4792. bool WritePackedVector3(const Vector3&, float);
  4793. bool WriteQuaternion(const Quaternion&);
  4794. bool WriteShort(int16);
  4795. bool WriteString(const String&);
  4796. bool WriteStringHash(const StringHash&);
  4797. bool WriteUByte(uint8);
  4798. bool WriteUInt(uint);
  4799. bool WriteUInt64(uint64);
  4800. bool WriteUShort(uint16);
  4801. bool WriteVLE(uint);
  4802. bool WriteVariant(const Variant&);
  4803. bool WriteVariantMap(const VariantMap&);
  4804. bool WriteVector2(const Vector2&);
  4805. bool WriteVector3(const Vector3&);
  4806. bool WriteVector4(const Vector4&);
  4807. bool WriteVectorBuffer(const VectorBuffer&);
  4808. // Properties:
  4809. /* readonly */
  4810. String category;
  4811. /* readonly */
  4812. uint checksum;
  4813. /* readonly */
  4814. bool eof;
  4815. /* readonly */
  4816. FileMode mode;
  4817. /* readonly */
  4818. String name;
  4819. /* readonly */
  4820. bool open;
  4821. /* readonly */
  4822. bool packaged;
  4823. /* readonly */
  4824. uint position;
  4825. /* readonly */
  4826. int refs;
  4827. /* readonly */
  4828. uint size;
  4829. /* readonly */
  4830. StringHash type;
  4831. /* readonly */
  4832. String typeName;
  4833. /* readonly */
  4834. int weakRefs;
  4835. };
  4836. class FileSelector
  4837. {
  4838. // Methods:
  4839. bool HasSubscribedToEvent(Object, const String&);
  4840. bool HasSubscribedToEvent(const String&);
  4841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4842. void SetButtonTexts(const String&, const String&);
  4843. void SetFilters(Array<String>, uint);
  4844. void UpdateElements();
  4845. // Properties:
  4846. /* readonly */
  4847. Button cancelButton;
  4848. /* readonly */
  4849. String category;
  4850. XMLFile defaultStyle;
  4851. bool directoryMode;
  4852. /* readonly */
  4853. ListView fileList;
  4854. String fileName;
  4855. /* readonly */
  4856. LineEdit fileNameEdit;
  4857. /* readonly */
  4858. String filter;
  4859. /* readonly */
  4860. uint filterIndex;
  4861. /* readonly */
  4862. DropDownList filterList;
  4863. /* readonly */
  4864. Button okButton;
  4865. String path;
  4866. /* readonly */
  4867. LineEdit pathEdit;
  4868. /* readonly */
  4869. int refs;
  4870. String title;
  4871. /* readonly */
  4872. Text titleText;
  4873. /* readonly */
  4874. StringHash type;
  4875. /* readonly */
  4876. String typeName;
  4877. /* readonly */
  4878. int weakRefs;
  4879. /* readonly */
  4880. Window window;
  4881. };
  4882. class FileSystem
  4883. {
  4884. // Methods:
  4885. bool Copy(const String&, const String&);
  4886. bool CreateDir(const String&);
  4887. bool Delete(const String&);
  4888. bool DirExists(const String&) const;
  4889. bool FileExists(const String&) const;
  4890. String GetAppPreferencesDir(const String&, const String&) const;
  4891. uint GetLastModifiedTime(const String&) const;
  4892. bool HasSubscribedToEvent(Object, const String&);
  4893. bool HasSubscribedToEvent(const String&);
  4894. bool Rename(const String&, const String&);
  4895. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4897. bool SetLastModifiedTime(const String&, uint);
  4898. int SystemCommand(const String&, bool = false);
  4899. uint SystemCommandAsync(const String&);
  4900. bool SystemOpen(const String&, const String&);
  4901. int SystemRun(const String&, Array<String>);
  4902. uint SystemRunAsync(const String&, Array<String>);
  4903. // Properties:
  4904. /* readonly */
  4905. String category;
  4906. String currentDir;
  4907. bool executeConsoleCommands;
  4908. /* readonly */
  4909. String programDir;
  4910. /* readonly */
  4911. int refs;
  4912. /* readonly */
  4913. StringHash type;
  4914. /* readonly */
  4915. String typeName;
  4916. /* readonly */
  4917. String userDocumentsDir;
  4918. /* readonly */
  4919. int weakRefs;
  4920. };
  4921. class FocusParameters
  4922. {
  4923. // Properties:
  4924. bool autoSize;
  4925. bool focus;
  4926. float minView;
  4927. bool nonUniform;
  4928. float quantize;
  4929. };
  4930. class Font
  4931. {
  4932. // Methods:
  4933. IntVector2 GetTotalGlyphOffset(int) const;
  4934. bool HasSubscribedToEvent(Object, const String&);
  4935. bool HasSubscribedToEvent(const String&);
  4936. bool Load(File);
  4937. bool Load(VectorBuffer&);
  4938. bool Load(const String&);
  4939. bool Save(File) const;
  4940. bool Save(VectorBuffer&) const;
  4941. bool Save(const String&) const;
  4942. bool SaveXML(File, int, bool = false, const String& = "\t");
  4943. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4944. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4946. // Properties:
  4947. IntVector2 absoluteGlyphOffset;
  4948. /* readonly */
  4949. String category;
  4950. /* readonly */
  4951. FontType fontType;
  4952. /* readonly */
  4953. uint memoryUse;
  4954. String name;
  4955. /* readonly */
  4956. int refs;
  4957. Vector2 scaledGlyphOffset;
  4958. /* readonly */
  4959. StringHash type;
  4960. /* readonly */
  4961. String typeName;
  4962. /* readonly */
  4963. uint useTimer;
  4964. /* readonly */
  4965. int weakRefs;
  4966. };
  4967. class Frustum
  4968. {
  4969. // Methods:
  4970. void Define(const BoundingBox&, const Matrix3x4&);
  4971. void Define(const Matrix4&);
  4972. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4973. void Define(float, float, float, float, float, const Matrix3x4&);
  4974. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4975. void DefineSplit(const Matrix4&, float, float);
  4976. float Distance(const Vector3&) const;
  4977. Intersection IsInside(const BoundingBox&);
  4978. Intersection IsInside(const Sphere&);
  4979. Intersection IsInside(const Vector3&);
  4980. Intersection IsInsideFast(const BoundingBox&) const;
  4981. Intersection IsInsideFast(const Sphere&) const;
  4982. void Transform(const Matrix3&);
  4983. void Transform(const Matrix3x4&);
  4984. Frustum Transformed(const Matrix3&) const;
  4985. Frustum Transformed(const Matrix3x4&) const;
  4986. // Properties:
  4987. /* readonly */
  4988. Array<Vector3> vertices;
  4989. };
  4990. class Geometry
  4991. {
  4992. // Methods:
  4993. bool HasSubscribedToEvent(Object, const String&);
  4994. bool HasSubscribedToEvent(const String&);
  4995. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4996. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4997. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4998. void SetIndexBuffer(IndexBuffer);
  4999. bool SetVertexBuffer(uint, VertexBuffer);
  5000. // Properties:
  5001. /* readonly */
  5002. String category;
  5003. /* readonly */
  5004. bool empty;
  5005. IndexBuffer indexBuffer;
  5006. /* readonly */
  5007. uint indexCount;
  5008. /* readonly */
  5009. uint indexStart;
  5010. float lodDistance;
  5011. uint numVertexBuffers;
  5012. /* readonly */
  5013. PrimitiveType primitiveType;
  5014. /* readonly */
  5015. int refs;
  5016. /* readonly */
  5017. StringHash type;
  5018. /* readonly */
  5019. String typeName;
  5020. /* readonly */
  5021. Array<VertexBuffer> vertexBuffers;
  5022. /* readonly */
  5023. uint vertexCount;
  5024. /* readonly */
  5025. uint vertexStart;
  5026. /* readonly */
  5027. int weakRefs;
  5028. };
  5029. class Graphics
  5030. {
  5031. // Methods:
  5032. void BeginDumpShaders(const String&);
  5033. void Close();
  5034. void EndDumpShaders();
  5035. bool HasSubscribedToEvent(Object, const String&);
  5036. bool HasSubscribedToEvent(const String&);
  5037. void Maximize();
  5038. void Minimize();
  5039. void PrecacheShaders(File);
  5040. void PrecacheShaders(VectorBuffer&);
  5041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5042. bool SetMode(int, int);
  5043. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  5044. void SetWindowPosition(int, int);
  5045. bool TakeScreenShot(Image);
  5046. bool ToggleFullscreen();
  5047. // Properties:
  5048. /* readonly */
  5049. String apiName;
  5050. /* readonly */
  5051. bool borderless;
  5052. /* readonly */
  5053. String category;
  5054. /* readonly */
  5055. bool deferredSupport;
  5056. /* readonly */
  5057. IntVector2 desktopResolution;
  5058. /* readonly */
  5059. bool deviceLost;
  5060. bool dither;
  5061. bool flushGPU;
  5062. /* readonly */
  5063. bool fullscreen;
  5064. /* readonly */
  5065. bool hardwareShadowSupport;
  5066. /* readonly */
  5067. int height;
  5068. /* readonly */
  5069. bool initialized;
  5070. /* readonly */
  5071. bool instancingSupport;
  5072. /* readonly */
  5073. bool lightPrepassSupport;
  5074. /* readonly */
  5075. int multiSample;
  5076. /* readonly */
  5077. Array<int> multiSampleLevels;
  5078. /* readonly */
  5079. uint numBatches;
  5080. /* readonly */
  5081. uint numPrimitives;
  5082. String orientations;
  5083. /* readonly */
  5084. bool readableDepthSupport;
  5085. /* readonly */
  5086. int refs;
  5087. /* readonly */
  5088. bool resizable;
  5089. /* readonly */
  5090. Array<IntVector2> resolutions;
  5091. bool sRGB;
  5092. /* readonly */
  5093. bool sRGBSupport;
  5094. /* readonly */
  5095. bool sRGBWriteSupport;
  5096. String shaderCacheDir;
  5097. /* readonly */
  5098. bool tripleBuffer;
  5099. /* readonly */
  5100. StringHash type;
  5101. /* readonly */
  5102. String typeName;
  5103. /* readonly */
  5104. bool vsync;
  5105. /* readonly */
  5106. int weakRefs;
  5107. /* readonly */
  5108. int width;
  5109. /* writeonly */
  5110. Image windowIcon;
  5111. IntVector2 windowPosition;
  5112. String windowTitle;
  5113. };
  5114. class HttpRequest
  5115. {
  5116. // Methods:
  5117. Array<uint8> Read(uint);
  5118. bool ReadBool();
  5119. BoundingBox ReadBoundingBox();
  5120. int8 ReadByte();
  5121. Color ReadColor();
  5122. double ReadDouble();
  5123. String ReadFileID();
  5124. float ReadFloat();
  5125. int ReadInt();
  5126. int64 ReadInt64();
  5127. IntRect ReadIntRect();
  5128. IntVector2 ReadIntVector2();
  5129. String ReadLine();
  5130. Matrix3 ReadMatrix3();
  5131. Matrix3x4 ReadMatrix3x4();
  5132. Matrix4 ReadMatrix4();
  5133. uint ReadNetID();
  5134. Quaternion ReadPackedQuaternion();
  5135. Vector3 ReadPackedVector3(float);
  5136. Quaternion ReadQuaternion();
  5137. int16 ReadShort();
  5138. String ReadString();
  5139. StringHash ReadStringHash();
  5140. uint8 ReadUByte();
  5141. uint ReadUInt();
  5142. uint64 ReadUInt64();
  5143. uint16 ReadUShort();
  5144. uint ReadVLE();
  5145. Variant ReadVariant();
  5146. VariantMap ReadVariantMap();
  5147. Vector2 ReadVector2();
  5148. Vector3 ReadVector3();
  5149. Vector4 ReadVector4();
  5150. VectorBuffer ReadVectorBuffer(uint);
  5151. uint Seek(uint);
  5152. // Properties:
  5153. /* readonly */
  5154. uint availableSize;
  5155. /* readonly */
  5156. uint checksum;
  5157. /* readonly */
  5158. bool eof;
  5159. /* readonly */
  5160. String error;
  5161. /* readonly */
  5162. String name;
  5163. /* readonly */
  5164. bool open;
  5165. /* readonly */
  5166. uint position;
  5167. /* readonly */
  5168. int refs;
  5169. /* readonly */
  5170. uint size;
  5171. /* readonly */
  5172. HttpRequestState state;
  5173. /* readonly */
  5174. String url;
  5175. /* readonly */
  5176. String verb;
  5177. /* readonly */
  5178. int weakRefs;
  5179. };
  5180. class Image
  5181. {
  5182. // Methods:
  5183. void Clear(const Color&);
  5184. void ClearInt(uint);
  5185. bool FlipHorizontal();
  5186. bool FlipVertical();
  5187. Color GetPixel(int, int) const;
  5188. Color GetPixel(int, int, int) const;
  5189. Color GetPixelBilinear(float, float) const;
  5190. uint GetPixelInt(int, int) const;
  5191. uint GetPixelInt(int, int, int) const;
  5192. Color GetPixelTrilinear(float, float, float) const;
  5193. Image GetSubimage(const IntRect&) const;
  5194. bool HasSubscribedToEvent(Object, const String&);
  5195. bool HasSubscribedToEvent(const String&);
  5196. bool Load(File);
  5197. bool Load(VectorBuffer&);
  5198. bool Load(const String&);
  5199. bool LoadColorLUT(File);
  5200. bool LoadColorLUT(VectorBuffer&);
  5201. bool Resize(int, int);
  5202. bool Save(File) const;
  5203. bool Save(VectorBuffer&) const;
  5204. bool Save(const String&) const;
  5205. bool SaveBMP(const String&) const;
  5206. bool SaveDDS(const String&) const;
  5207. bool SaveJPG(const String&, int) const;
  5208. bool SavePNG(const String&) const;
  5209. bool SaveTGA(const String&) const;
  5210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5211. void SetPixel(int, int, const Color&);
  5212. void SetPixel(int, int, int, const Color&);
  5213. void SetPixelInt(int, int, int, uint);
  5214. void SetPixelInt(int, int, uint);
  5215. bool SetSize(int, int, int, uint);
  5216. bool SetSize(int, int, uint);
  5217. // Properties:
  5218. /* readonly */
  5219. bool array;
  5220. /* readonly */
  5221. String category;
  5222. /* readonly */
  5223. uint components;
  5224. /* readonly */
  5225. bool compressed;
  5226. /* readonly */
  5227. CompressedFormat compressedFormat;
  5228. /* readonly */
  5229. bool cubemap;
  5230. /* readonly */
  5231. int depth;
  5232. /* readonly */
  5233. int height;
  5234. /* readonly */
  5235. uint memoryUse;
  5236. String name;
  5237. /* readonly */
  5238. uint numCompressedLevels;
  5239. /* readonly */
  5240. int refs;
  5241. /* readonly */
  5242. bool sRGB;
  5243. /* readonly */
  5244. StringHash type;
  5245. /* readonly */
  5246. String typeName;
  5247. /* readonly */
  5248. uint useTimer;
  5249. /* readonly */
  5250. int weakRefs;
  5251. /* readonly */
  5252. int width;
  5253. };
  5254. class IndexBuffer
  5255. {
  5256. // Methods:
  5257. VectorBuffer GetData();
  5258. bool HasSubscribedToEvent(Object, const String&);
  5259. bool HasSubscribedToEvent(const String&);
  5260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5261. bool SetData(VectorBuffer&);
  5262. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5263. void SetSize(uint, bool, bool = false);
  5264. // Properties:
  5265. /* readonly */
  5266. String category;
  5267. /* readonly */
  5268. bool dynamic;
  5269. /* readonly */
  5270. uint indexCount;
  5271. /* readonly */
  5272. uint indexSize;
  5273. /* readonly */
  5274. int refs;
  5275. bool shadowed;
  5276. /* readonly */
  5277. StringHash type;
  5278. /* readonly */
  5279. String typeName;
  5280. /* readonly */
  5281. int weakRefs;
  5282. };
  5283. class Input
  5284. {
  5285. // Methods:
  5286. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5287. void CenterMousePosition();
  5288. int GetKeyFromName(const String&) const;
  5289. int GetKeyFromScancode(int) const;
  5290. String GetKeyName(int) const;
  5291. int GetScancodeFromKey(int) const;
  5292. int GetScancodeFromName(const String&) const;
  5293. String GetScancodeName(int) const;
  5294. bool HasSubscribedToEvent(Object, const String&);
  5295. bool HasSubscribedToEvent(const String&);
  5296. uint LoadGestures(File);
  5297. uint LoadGestures(VectorBuffer&);
  5298. bool RecordGesture();
  5299. void RemoveAllGestures();
  5300. bool RemoveGesture(uint);
  5301. bool RemoveScreenJoystick(int);
  5302. void ResetMouseGrabbed();
  5303. void ResetMouseMode();
  5304. void ResetMouseVisible();
  5305. bool SaveGesture(File, uint);
  5306. bool SaveGesture(VectorBuffer&, uint);
  5307. bool SaveGestures(File);
  5308. bool SaveGestures(VectorBuffer&);
  5309. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5310. void SetMouseGrabbed(bool, bool = false);
  5311. void SetMouseMode(MouseMode, bool = false);
  5312. void SetMouseVisible(bool, bool = false);
  5313. // Properties:
  5314. /* readonly */
  5315. String category;
  5316. /* readonly */
  5317. bool focus;
  5318. /* readonly */
  5319. Array<JoystickState> joysticks;
  5320. /* readonly */
  5321. Array<JoystickState> joysticksByIndex;
  5322. /* readonly */
  5323. Array<JoystickState> joysticksByName;
  5324. /* readonly */
  5325. Array<bool> keyDown;
  5326. /* readonly */
  5327. Array<bool> keyPress;
  5328. /* readonly */
  5329. bool minimized;
  5330. /* readonly */
  5331. Array<bool> mouseButtonDown;
  5332. /* readonly */
  5333. Array<bool> mouseButtonPress;
  5334. bool mouseGrabbed;
  5335. /* readonly */
  5336. bool mouseLocked;
  5337. MouseMode mouseMode;
  5338. /* readonly */
  5339. IntVector2 mouseMove;
  5340. /* readonly */
  5341. int mouseMoveWheel;
  5342. /* readonly */
  5343. int mouseMoveX;
  5344. /* readonly */
  5345. int mouseMoveY;
  5346. IntVector2 mousePosition;
  5347. bool mouseVisible;
  5348. /* readonly */
  5349. uint numJoysticks;
  5350. /* readonly */
  5351. uint numTouches;
  5352. /* readonly */
  5353. Array<bool> qualifierDown;
  5354. /* readonly */
  5355. Array<bool> qualifierPress;
  5356. /* readonly */
  5357. int qualifiers;
  5358. /* readonly */
  5359. int refs;
  5360. /* readonly */
  5361. Array<bool> scancodeDown;
  5362. /* readonly */
  5363. Array<bool> scancodePress;
  5364. Array<bool> screenJoystickVisible;
  5365. /* readonly */
  5366. bool screenKeyboardSupport;
  5367. bool screenKeyboardVisible;
  5368. bool toggleFullscreen;
  5369. bool touchEmulation;
  5370. /* readonly */
  5371. Array<TouchState> touches;
  5372. /* readonly */
  5373. StringHash type;
  5374. /* readonly */
  5375. String typeName;
  5376. /* readonly */
  5377. int weakRefs;
  5378. };
  5379. class IntRect
  5380. {
  5381. // Methods:
  5382. Intersection IsInside(const IntVector2&) const;
  5383. // Properties:
  5384. int bottom;
  5385. /* readonly */
  5386. Array<int> data;
  5387. /* readonly */
  5388. int height;
  5389. int left;
  5390. int right;
  5391. /* readonly */
  5392. IntVector2 size;
  5393. int top;
  5394. /* readonly */
  5395. int width;
  5396. };
  5397. class IntVector2
  5398. {
  5399. // Methods:
  5400. float Length() const;
  5401. uint ToHash() const;
  5402. String ToString() const;
  5403. // Properties:
  5404. /* readonly */
  5405. Array<int> data;
  5406. int x;
  5407. int y;
  5408. };
  5409. class JSONFile
  5410. {
  5411. // Methods:
  5412. bool FromString(const String&);
  5413. JSONValue& GetRoot();
  5414. bool HasSubscribedToEvent(Object, const String&);
  5415. bool HasSubscribedToEvent(const String&);
  5416. bool Load(File);
  5417. bool Load(VectorBuffer&);
  5418. bool Load(const String&);
  5419. bool Save(File) const;
  5420. bool Save(File, const String&) const;
  5421. bool Save(VectorBuffer&) const;
  5422. bool Save(const String&) const;
  5423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5424. // Properties:
  5425. /* readonly */
  5426. String category;
  5427. /* readonly */
  5428. uint memoryUse;
  5429. String name;
  5430. /* readonly */
  5431. int refs;
  5432. /* readonly */
  5433. JSONValue root;
  5434. /* readonly */
  5435. StringHash type;
  5436. /* readonly */
  5437. String typeName;
  5438. /* readonly */
  5439. uint useTimer;
  5440. /* readonly */
  5441. int weakRefs;
  5442. };
  5443. class JSONValue
  5444. {
  5445. // Methods:
  5446. void Clear();
  5447. bool Contains(const String&) const;
  5448. void Erase(const String&);
  5449. void Erase(uint, uint = 1);
  5450. bool GetBool() const;
  5451. double GetDouble() const;
  5452. float GetFloat() const;
  5453. int GetInt() const;
  5454. uint GetUInt() const;
  5455. void Insert(uint, const JSONValue&);
  5456. const JSONValue& Get(const String&) const;
  5457. void Pop();
  5458. void Push(const JSONValue&);
  5459. void Resize(uint);
  5460. void Set(const String&, const JSONValue&);
  5461. const String& GetString() const;
  5462. // Properties:
  5463. /* readonly */
  5464. bool isArray;
  5465. /* readonly */
  5466. bool isBool;
  5467. /* readonly */
  5468. bool isNull;
  5469. /* readonly */
  5470. bool isNumber;
  5471. /* readonly */
  5472. bool isObject;
  5473. /* readonly */
  5474. bool isString;
  5475. /* readonly */
  5476. JSONNumberType numberType;
  5477. /* readonly */
  5478. String numberTypeName;
  5479. /* readonly */
  5480. uint size;
  5481. /* readonly */
  5482. JSONValueType valueType;
  5483. /* readonly */
  5484. String valueTypeName;
  5485. };
  5486. class JoystickState
  5487. {
  5488. // Properties:
  5489. /* readonly */
  5490. Array<float> axisPosition;
  5491. /* readonly */
  5492. Array<bool> buttonDown;
  5493. /* readonly */
  5494. Array<bool> buttonPress;
  5495. /* readonly */
  5496. bool controller;
  5497. /* readonly */
  5498. Array<int> hatPosition;
  5499. int joystickID;
  5500. String name;
  5501. /* readonly */
  5502. uint numAxes;
  5503. /* readonly */
  5504. uint numButtons;
  5505. /* readonly */
  5506. uint numHats;
  5507. };
  5508. class Light
  5509. {
  5510. // Methods:
  5511. void ApplyAttributes();
  5512. void DrawDebugGeometry(DebugRenderer, bool);
  5513. Variant GetAttribute(const String&) const;
  5514. ValueAnimation GetAttributeAnimation(const String&) const;
  5515. float GetAttributeAnimationSpeed(const String&) const;
  5516. float GetAttributeAnimationTime(const String&) const;
  5517. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5518. Variant GetAttributeDefault(const String&) const;
  5519. bool GetInterceptNetworkUpdate(const String&) const;
  5520. bool HasSubscribedToEvent(Object, const String&);
  5521. bool HasSubscribedToEvent(const String&);
  5522. bool IsInView(Camera) const;
  5523. bool Load(File, bool = false);
  5524. bool Load(VectorBuffer&, bool = false);
  5525. bool LoadJSON(const JSONValue&, bool = false);
  5526. bool LoadXML(const XMLElement&, bool = false);
  5527. void MarkNetworkUpdate() const;
  5528. void Remove();
  5529. void RemoveAttributeAnimation(const String&);
  5530. void RemoveInstanceDefault();
  5531. void RemoveObjectAnimation();
  5532. void ResetToDefault();
  5533. bool Save(File) const;
  5534. bool Save(VectorBuffer&) const;
  5535. bool SaveJSON(JSONValue&) const;
  5536. bool SaveXML(XMLElement&) const;
  5537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5538. void SetAnimationTime(float);
  5539. bool SetAttribute(const String&, const Variant&);
  5540. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5541. void SetAttributeAnimationSpeed(const String&, float);
  5542. void SetAttributeAnimationTime(const String&, float);
  5543. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5544. void SetInterceptNetworkUpdate(const String&, bool);
  5545. // Properties:
  5546. bool animationEnabled;
  5547. float aspectRatio;
  5548. /* readonly */
  5549. Array<Variant> attributeDefaults;
  5550. /* readonly */
  5551. Array<AttributeInfo> attributeInfos;
  5552. Array<Variant> attributes;
  5553. /* readonly */
  5554. BoundingBox boundingBox;
  5555. float brightness;
  5556. bool castShadows;
  5557. /* readonly */
  5558. String category;
  5559. Color color;
  5560. /* readonly */
  5561. Color colorFromTemperature;
  5562. float drawDistance;
  5563. /* readonly */
  5564. Color effectiveColor;
  5565. /* readonly */
  5566. float effectiveSpecularIntensity;
  5567. bool enabled;
  5568. /* readonly */
  5569. bool enabledEffective;
  5570. float fadeDistance;
  5571. float fov;
  5572. /* readonly */
  5573. Frustum frustum;
  5574. /* readonly */
  5575. uint id;
  5576. /* readonly */
  5577. bool inView;
  5578. float length;
  5579. uint lightMask;
  5580. LightType lightType;
  5581. float lodBias;
  5582. uint maxLights;
  5583. /* readonly */
  5584. bool negative;
  5585. /* readonly */
  5586. Node node;
  5587. /* readonly */
  5588. uint numAttributes;
  5589. /* readonly */
  5590. int numShadowSplits;
  5591. ObjectAnimation objectAnimation;
  5592. bool occludee;
  5593. bool occluder;
  5594. bool perVertex;
  5595. float radius;
  5596. Texture rampTexture;
  5597. float range;
  5598. /* readonly */
  5599. int refs;
  5600. BiasParameters shadowBias;
  5601. CascadeParameters shadowCascade;
  5602. float shadowDistance;
  5603. float shadowFadeDistance;
  5604. FocusParameters shadowFocus;
  5605. float shadowIntensity;
  5606. uint shadowMask;
  5607. float shadowMaxExtrusion;
  5608. float shadowNearFarRatio;
  5609. float shadowResolution;
  5610. Texture shapeTexture;
  5611. float specularIntensity;
  5612. float temperature;
  5613. bool temporary;
  5614. /* readonly */
  5615. StringHash type;
  5616. /* readonly */
  5617. String typeName;
  5618. bool usePhysicalValues;
  5619. uint viewMask;
  5620. /* readonly */
  5621. int weakRefs;
  5622. /* readonly */
  5623. BoundingBox worldBoundingBox;
  5624. uint zoneMask;
  5625. };
  5626. class LineEdit
  5627. {
  5628. // Methods:
  5629. void AddChild(UIElement);
  5630. void AddTag(const String&);
  5631. void AddTags(const String&, int8 = ';');
  5632. void ApplyAttributes();
  5633. void BringToFront();
  5634. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5635. void DisableLayoutUpdate();
  5636. IntVector2 ElementToScreen(const IntVector2&);
  5637. void EnableLayoutUpdate();
  5638. uint FindChild(UIElement) const;
  5639. Variant GetAttribute(const String&) const;
  5640. ValueAnimation GetAttributeAnimation(const String&) const;
  5641. float GetAttributeAnimationSpeed(const String&) const;
  5642. float GetAttributeAnimationTime(const String&) const;
  5643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5644. Variant GetAttributeDefault(const String&) const;
  5645. UIElement GetChild(const String&, bool = false) const;
  5646. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5647. Array<UIElement> GetChildren(bool = false) const;
  5648. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5649. UIElement GetElementEventSender() const;
  5650. bool GetInterceptNetworkUpdate(const String&) const;
  5651. uint GetNumChildren(bool) const;
  5652. bool HasSubscribedToEvent(Object, const String&);
  5653. bool HasSubscribedToEvent(const String&);
  5654. bool HasTag(const String&) const;
  5655. void InsertChild(uint, UIElement);
  5656. bool IsInside(IntVector2, bool);
  5657. bool IsInsideCombined(IntVector2, bool);
  5658. bool Load(File, bool = false);
  5659. bool Load(VectorBuffer&, bool = false);
  5660. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5661. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5662. bool LoadJSON(const JSONValue&, bool = false);
  5663. bool LoadXML(File);
  5664. bool LoadXML(VectorBuffer&);
  5665. bool LoadXML(XMLFile, XMLFile);
  5666. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5667. bool LoadXML(const XMLElement&, bool = false);
  5668. void MarkNetworkUpdate() const;
  5669. void Remove();
  5670. void RemoveAllChildren();
  5671. void RemoveAllTags();
  5672. void RemoveAttributeAnimation(const String&);
  5673. void RemoveChild(UIElement, uint = 0);
  5674. void RemoveChild(uint);
  5675. void RemoveInstanceDefault();
  5676. void RemoveObjectAnimation();
  5677. bool RemoveTag(const String&);
  5678. void ResetDeepEnabled();
  5679. void ResetToDefault();
  5680. bool Save(File) const;
  5681. bool Save(VectorBuffer&) const;
  5682. bool SaveJSON(JSONValue&) const;
  5683. bool SaveXML(File, const String& = "\t");
  5684. bool SaveXML(VectorBuffer&, const String& = "\t");
  5685. bool SaveXML(XMLElement&) const;
  5686. IntVector2 ScreenToElement(const IntVector2&);
  5687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5688. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5689. void SetAnimationTime(float);
  5690. bool SetAttribute(const String&, const Variant&);
  5691. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5692. void SetAttributeAnimationSpeed(const String&, float);
  5693. void SetAttributeAnimationTime(const String&, float);
  5694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5695. void SetDeepEnabled(bool);
  5696. void SetEnabledRecursive(bool);
  5697. void SetFixedHeight(int);
  5698. void SetFixedSize(int, int);
  5699. void SetFixedWidth(int);
  5700. void SetFullImageRect();
  5701. void SetHoverOffset(int, int);
  5702. void SetInterceptNetworkUpdate(const String&, bool);
  5703. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5704. void SetMaxAnchor(float, float);
  5705. void SetMaxSize(int, int);
  5706. void SetMinAnchor(float, float);
  5707. void SetMinSize(int, int);
  5708. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5709. void SetPivot(float, float);
  5710. void SetPosition(int, int);
  5711. void SetSize(int, int);
  5712. bool SetStyle(const String&, XMLFile = null);
  5713. bool SetStyle(const XMLElement&);
  5714. bool SetStyleAuto(XMLFile = null);
  5715. void UpdateLayout();
  5716. const Variant& GetVar(const StringHash&);
  5717. // Properties:
  5718. bool animationEnabled;
  5719. /* readonly */
  5720. Array<Variant> attributeDefaults;
  5721. /* readonly */
  5722. Array<AttributeInfo> attributeInfos;
  5723. Array<Variant> attributes;
  5724. BlendMode blendMode;
  5725. IntRect border;
  5726. bool bringToBack;
  5727. bool bringToFront;
  5728. /* readonly */
  5729. String category;
  5730. /* readonly */
  5731. IntVector2 childOffset;
  5732. /* readonly */
  5733. Array<UIElement> children;
  5734. IntRect clipBorder;
  5735. bool clipChildren;
  5736. /* writeonly */
  5737. Color color;
  5738. /* readonly */
  5739. bool colorGradient;
  5740. Array<Color> colors;
  5741. /* readonly */
  5742. IntRect combinedScreenRect;
  5743. /* readonly */
  5744. BorderImage cursor;
  5745. float cursorBlinkRate;
  5746. bool cursorMovable;
  5747. uint cursorPosition;
  5748. XMLFile defaultStyle;
  5749. /* readonly */
  5750. float derivedOpacity;
  5751. /* readonly */
  5752. uint dragButtonCombo;
  5753. /* readonly */
  5754. int dragButtonCount;
  5755. uint dragDropMode;
  5756. uint echoCharacter;
  5757. bool editable;
  5758. bool elementEventSender;
  5759. bool enableAnchor;
  5760. bool enabled;
  5761. /* readonly */
  5762. bool enabledSelf;
  5763. /* readonly */
  5764. bool fixedHeight;
  5765. /* readonly */
  5766. bool fixedSize;
  5767. /* readonly */
  5768. bool fixedWidth;
  5769. bool focus;
  5770. FocusMode focusMode;
  5771. int height;
  5772. HorizontalAlignment horizontalAlignment;
  5773. IntVector2 hoverOffset;
  5774. /* readonly */
  5775. bool hovering;
  5776. IntRect imageBorder;
  5777. IntRect imageRect;
  5778. int indent;
  5779. int indentSpacing;
  5780. /* readonly */
  5781. int indentWidth;
  5782. bool internal;
  5783. IntRect layoutBorder;
  5784. Vector2 layoutFlexScale;
  5785. LayoutMode layoutMode;
  5786. int layoutSpacing;
  5787. Vector2 maxAnchor;
  5788. int maxHeight;
  5789. uint maxLength;
  5790. IntVector2 maxOffset;
  5791. IntVector2 maxSize;
  5792. int maxWidth;
  5793. Vector2 minAnchor;
  5794. int minHeight;
  5795. IntVector2 minOffset;
  5796. IntVector2 minSize;
  5797. int minWidth;
  5798. String name;
  5799. /* readonly */
  5800. uint numAllChildren;
  5801. /* readonly */
  5802. uint numAttributes;
  5803. /* readonly */
  5804. uint numChildren;
  5805. ObjectAnimation objectAnimation;
  5806. float opacity;
  5807. UIElement parent;
  5808. Vector2 pivot;
  5809. IntVector2 position;
  5810. int priority;
  5811. /* readonly */
  5812. int refs;
  5813. /* readonly */
  5814. UIElement root;
  5815. /* readonly */
  5816. IntVector2 screenPosition;
  5817. bool selected;
  5818. IntVector2 size;
  5819. bool sortChildren;
  5820. String style;
  5821. /* readonly */
  5822. Array<String> tags;
  5823. bool temporary;
  5824. String text;
  5825. bool textCopyable;
  5826. /* readonly */
  5827. Text textElement;
  5828. bool textSelectable;
  5829. Texture texture;
  5830. bool tiled;
  5831. TraversalMode traversalMode;
  5832. /* readonly */
  5833. StringHash type;
  5834. /* readonly */
  5835. String typeName;
  5836. bool useDerivedOpacity;
  5837. /* readonly */
  5838. VariantMap vars;
  5839. VerticalAlignment verticalAlignment;
  5840. bool visible;
  5841. /* readonly */
  5842. bool visibleEffective;
  5843. /* readonly */
  5844. int weakRefs;
  5845. int width;
  5846. };
  5847. class ListView
  5848. {
  5849. // Methods:
  5850. void AddChild(UIElement);
  5851. void AddItem(UIElement);
  5852. void AddSelection(uint);
  5853. void AddTag(const String&);
  5854. void AddTags(const String&, int8 = ';');
  5855. void ApplyAttributes();
  5856. void BringToFront();
  5857. void ChangeSelection(int, bool);
  5858. void ClearSelection();
  5859. void CopySelectedItemsToClipboard();
  5860. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5861. void DisableLayoutUpdate();
  5862. IntVector2 ElementToScreen(const IntVector2&);
  5863. void EnableLayoutUpdate();
  5864. void Expand(uint, bool, bool = false);
  5865. uint FindChild(UIElement) const;
  5866. uint FindItem(UIElement);
  5867. Variant GetAttribute(const String&) const;
  5868. ValueAnimation GetAttributeAnimation(const String&) const;
  5869. float GetAttributeAnimationSpeed(const String&) const;
  5870. float GetAttributeAnimationTime(const String&) const;
  5871. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5872. Variant GetAttributeDefault(const String&) const;
  5873. UIElement GetChild(const String&, bool = false) const;
  5874. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5875. Array<UIElement> GetChildren(bool = false) const;
  5876. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5877. UIElement GetElementEventSender() const;
  5878. bool GetInterceptNetworkUpdate(const String&) const;
  5879. Array<UIElement> GetItems() const;
  5880. uint GetNumChildren(bool) const;
  5881. bool HasSubscribedToEvent(Object, const String&);
  5882. bool HasSubscribedToEvent(const String&);
  5883. bool HasTag(const String&) const;
  5884. void InsertChild(uint, UIElement);
  5885. void InsertItem(uint, UIElement, UIElement = null);
  5886. bool IsExpanded(uint) const;
  5887. bool IsInside(IntVector2, bool);
  5888. bool IsInsideCombined(IntVector2, bool);
  5889. bool IsSelected(uint) const;
  5890. bool Load(File, bool = false);
  5891. bool Load(VectorBuffer&, bool = false);
  5892. UIElement LoadChildXML(XMLFile, XMLFile = null);
  5893. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5894. bool LoadJSON(const JSONValue&, bool = false);
  5895. bool LoadXML(File);
  5896. bool LoadXML(VectorBuffer&);
  5897. bool LoadXML(XMLFile, XMLFile);
  5898. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5899. bool LoadXML(const XMLElement&, bool = false);
  5900. void MarkNetworkUpdate() const;
  5901. void Remove();
  5902. void RemoveAllChildren();
  5903. void RemoveAllItems();
  5904. void RemoveAllTags();
  5905. void RemoveAttributeAnimation(const String&);
  5906. void RemoveChild(UIElement, uint = 0);
  5907. void RemoveChild(uint);
  5908. void RemoveInstanceDefault();
  5909. void RemoveItem(UIElement, uint = 0);
  5910. void RemoveItem(uint);
  5911. void RemoveObjectAnimation();
  5912. void RemoveSelection(uint);
  5913. bool RemoveTag(const String&);
  5914. void ResetDeepEnabled();
  5915. void ResetToDefault();
  5916. bool Save(File) const;
  5917. bool Save(VectorBuffer&) const;
  5918. bool SaveJSON(JSONValue&) const;
  5919. bool SaveXML(File, const String& = "\t");
  5920. bool SaveXML(VectorBuffer&, const String& = "\t");
  5921. bool SaveXML(XMLElement&) const;
  5922. IntVector2 ScreenToElement(const IntVector2&);
  5923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5924. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5925. void SetAnimationTime(float);
  5926. bool SetAttribute(const String&, const Variant&);
  5927. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5928. void SetAttributeAnimationSpeed(const String&, float);
  5929. void SetAttributeAnimationTime(const String&, float);
  5930. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5931. void SetDeepEnabled(bool);
  5932. void SetEnabledRecursive(bool);
  5933. void SetFixedHeight(int);
  5934. void SetFixedSize(int, int);
  5935. void SetFixedWidth(int);
  5936. void SetInterceptNetworkUpdate(const String&, bool);
  5937. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5938. void SetMaxAnchor(float, float);
  5939. void SetMaxSize(int, int);
  5940. void SetMinAnchor(float, float);
  5941. void SetMinSize(int, int);
  5942. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5943. void SetPivot(float, float);
  5944. void SetPosition(int, int);
  5945. void SetScrollBarsVisible(bool, bool);
  5946. void SetSelections(Array<uint>);
  5947. void SetSize(int, int);
  5948. bool SetStyle(const String&, XMLFile = null);
  5949. bool SetStyle(const XMLElement&);
  5950. bool SetStyleAuto(XMLFile = null);
  5951. void SetViewPosition(int, int);
  5952. void ToggleExpand(uint, bool = false);
  5953. void ToggleSelection(uint);
  5954. void UpdateLayout();
  5955. const Variant& GetVar(const StringHash&);
  5956. // Properties:
  5957. bool animationEnabled;
  5958. /* readonly */
  5959. Array<Variant> attributeDefaults;
  5960. /* readonly */
  5961. Array<AttributeInfo> attributeInfos;
  5962. Array<Variant> attributes;
  5963. bool autoDisableChildren;
  5964. float autoDisableThreshold;
  5965. int baseIndent;
  5966. bool bringToBack;
  5967. bool bringToFront;
  5968. /* readonly */
  5969. String category;
  5970. /* readonly */
  5971. IntVector2 childOffset;
  5972. /* readonly */
  5973. Array<UIElement> children;
  5974. bool clearSelectionOnDefocus;
  5975. IntRect clipBorder;
  5976. bool clipChildren;
  5977. /* writeonly */
  5978. Color color;
  5979. /* readonly */
  5980. bool colorGradient;
  5981. Array<Color> colors;
  5982. /* readonly */
  5983. IntRect combinedScreenRect;
  5984. /* readonly */
  5985. UIElement contentElement;
  5986. XMLFile defaultStyle;
  5987. /* readonly */
  5988. float derivedOpacity;
  5989. /* readonly */
  5990. uint dragButtonCombo;
  5991. /* readonly */
  5992. int dragButtonCount;
  5993. uint dragDropMode;
  5994. bool editable;
  5995. bool elementEventSender;
  5996. bool enableAnchor;
  5997. bool enabled;
  5998. /* readonly */
  5999. bool enabledSelf;
  6000. /* readonly */
  6001. bool fixedHeight;
  6002. /* readonly */
  6003. bool fixedSize;
  6004. /* readonly */
  6005. bool fixedWidth;
  6006. bool focus;
  6007. FocusMode focusMode;
  6008. int height;
  6009. bool hierarchyMode;
  6010. HighlightMode highlightMode;
  6011. HorizontalAlignment horizontalAlignment;
  6012. /* readonly */
  6013. ScrollBar horizontalScrollBar;
  6014. /* readonly */
  6015. bool hovering;
  6016. int indent;
  6017. int indentSpacing;
  6018. /* readonly */
  6019. int indentWidth;
  6020. bool internal;
  6021. /* readonly */
  6022. Array<UIElement> items;
  6023. IntRect layoutBorder;
  6024. Vector2 layoutFlexScale;
  6025. LayoutMode layoutMode;
  6026. int layoutSpacing;
  6027. Vector2 maxAnchor;
  6028. int maxHeight;
  6029. IntVector2 maxOffset;
  6030. IntVector2 maxSize;
  6031. int maxWidth;
  6032. Vector2 minAnchor;
  6033. int minHeight;
  6034. IntVector2 minOffset;
  6035. IntVector2 minSize;
  6036. int minWidth;
  6037. bool multiselect;
  6038. String name;
  6039. /* readonly */
  6040. uint numAllChildren;
  6041. /* readonly */
  6042. uint numAttributes;
  6043. /* readonly */
  6044. uint numChildren;
  6045. /* readonly */
  6046. uint numItems;
  6047. ObjectAnimation objectAnimation;
  6048. float opacity;
  6049. float pageStep;
  6050. UIElement parent;
  6051. Vector2 pivot;
  6052. IntVector2 position;
  6053. int priority;
  6054. /* readonly */
  6055. int refs;
  6056. /* readonly */
  6057. UIElement root;
  6058. /* readonly */
  6059. IntVector2 screenPosition;
  6060. bool scrollBarsAutoVisible;
  6061. float scrollDeceleration;
  6062. /* readonly */
  6063. BorderImage scrollPanel;
  6064. float scrollSnapEpsilon;
  6065. float scrollStep;
  6066. bool selectOnClickEnd;
  6067. bool selected;
  6068. /* readonly */
  6069. UIElement selectedItem;
  6070. /* readonly */
  6071. Array<UIElement> selectedItems;
  6072. uint selection;
  6073. /* readonly */
  6074. Array<uint> selections;
  6075. IntVector2 size;
  6076. bool sortChildren;
  6077. String style;
  6078. /* readonly */
  6079. Array<String> tags;
  6080. bool temporary;
  6081. TraversalMode traversalMode;
  6082. /* readonly */
  6083. StringHash type;
  6084. /* readonly */
  6085. String typeName;
  6086. bool useDerivedOpacity;
  6087. /* readonly */
  6088. VariantMap vars;
  6089. VerticalAlignment verticalAlignment;
  6090. /* readonly */
  6091. ScrollBar verticalScrollBar;
  6092. IntVector2 viewPosition;
  6093. bool visible;
  6094. /* readonly */
  6095. bool visibleEffective;
  6096. /* readonly */
  6097. int weakRefs;
  6098. int width;
  6099. };
  6100. class Localization
  6101. {
  6102. // Methods:
  6103. String Get(const String&);
  6104. String GetLanguage(int);
  6105. int GetLanguageIndex(const String&);
  6106. bool HasSubscribedToEvent(Object, const String&);
  6107. bool HasSubscribedToEvent(const String&);
  6108. void LoadJSON(const JSONValue&);
  6109. void LoadJSONFile(const String&);
  6110. void Reset();
  6111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6112. void SetLanguage(const String&);
  6113. void SetLanguage(int);
  6114. // Properties:
  6115. /* readonly */
  6116. String category;
  6117. /* readonly */
  6118. String language;
  6119. /* readonly */
  6120. int languageIndex;
  6121. /* readonly */
  6122. int numLanguages;
  6123. /* readonly */
  6124. int refs;
  6125. /* readonly */
  6126. StringHash type;
  6127. /* readonly */
  6128. String typeName;
  6129. /* readonly */
  6130. int weakRefs;
  6131. };
  6132. class Log
  6133. {
  6134. // Methods:
  6135. void Close();
  6136. void Debug(const String&);
  6137. void Error(const String&);
  6138. bool HasSubscribedToEvent(Object, const String&);
  6139. bool HasSubscribedToEvent(const String&);
  6140. void Info(const String&);
  6141. void Open(const String&);
  6142. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6143. void Warning(const String&);
  6144. void Write(const String&, bool = false);
  6145. // Properties:
  6146. /* readonly */
  6147. String category;
  6148. /* readonly */
  6149. String lastMessage;
  6150. int level;
  6151. bool quiet;
  6152. /* readonly */
  6153. int refs;
  6154. bool timeStamp;
  6155. /* readonly */
  6156. StringHash type;
  6157. /* readonly */
  6158. String typeName;
  6159. /* readonly */
  6160. int weakRefs;
  6161. };
  6162. class Material
  6163. {
  6164. // Methods:
  6165. Material Clone(const String& = String ( )) const;
  6166. Pass GetPass(uint, const String&);
  6167. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6168. float GetShaderParameterAnimationSpeed(const String&) const;
  6169. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6170. bool HasSubscribedToEvent(Object, const String&);
  6171. bool HasSubscribedToEvent(const String&);
  6172. bool Load(File);
  6173. bool Load(VectorBuffer&);
  6174. bool Load(const JSONValue&);
  6175. bool Load(const String&);
  6176. bool Load(const XMLElement&);
  6177. void RemoveShaderParameter(const String&);
  6178. bool Save(File) const;
  6179. bool Save(JSONValue&) const;
  6180. bool Save(VectorBuffer&) const;
  6181. bool Save(XMLElement&) const;
  6182. bool Save(const String&) const;
  6183. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6184. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6185. void SetShaderParameterAnimationSpeed(const String&, float);
  6186. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6187. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6188. void SetUVTransform(const Vector2&, float, const Vector2&);
  6189. void SetUVTransform(const Vector2&, float, float);
  6190. void SortTechniques();
  6191. // Properties:
  6192. bool alphaToCoverage;
  6193. /* readonly */
  6194. String category;
  6195. CullMode cullMode;
  6196. BiasParameters depthBias;
  6197. FillMode fillMode;
  6198. bool lineAntiAlias;
  6199. /* readonly */
  6200. uint memoryUse;
  6201. String name;
  6202. uint numTechniques;
  6203. bool occlusion;
  6204. String pixelShaderDefines;
  6205. /* readonly */
  6206. int refs;
  6207. uint8 renderOrder;
  6208. Scene scene;
  6209. /* readonly */
  6210. Array<String> shaderParameterNames;
  6211. Array<Variant> shaderParameters;
  6212. CullMode shadowCullMode;
  6213. /* readonly */
  6214. Array<TechniqueEntry> techniqueEntries;
  6215. /* readonly */
  6216. Array<Technique> techniques;
  6217. Array<Texture> textures;
  6218. /* readonly */
  6219. StringHash type;
  6220. /* readonly */
  6221. String typeName;
  6222. /* readonly */
  6223. uint useTimer;
  6224. String vertexShaderDefines;
  6225. /* readonly */
  6226. int weakRefs;
  6227. };
  6228. class Matrix2
  6229. {
  6230. // Methods:
  6231. bool Equals(const Matrix2&) const;
  6232. Matrix2 Inverse() const;
  6233. Vector2 Scale() const;
  6234. Matrix2 Scaled(const Vector2&) const;
  6235. void SetScale(const Vector2&);
  6236. void SetScale(float);
  6237. String ToString() const;
  6238. Matrix2 Transpose() const;
  6239. // Properties:
  6240. float m00;
  6241. float m01;
  6242. float m10;
  6243. float m11;
  6244. };
  6245. class Matrix3
  6246. {
  6247. // Methods:
  6248. bool Equals(const Matrix3&) const;
  6249. Matrix3 Inverse() const;
  6250. Vector3 Scale() const;
  6251. Matrix3 Scaled(const Vector3&) const;
  6252. void SetScale(const Vector3&);
  6253. void SetScale(float);
  6254. String ToString() const;
  6255. Matrix3 Transpose() const;
  6256. // Properties:
  6257. float m00;
  6258. float m01;
  6259. float m02;
  6260. float m10;
  6261. float m11;
  6262. float m12;
  6263. float m20;
  6264. float m21;
  6265. float m22;
  6266. };
  6267. class Matrix3x4
  6268. {
  6269. // Methods:
  6270. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6271. bool Equals(const Matrix3x4&) const;
  6272. Matrix3x4 Inverse() const;
  6273. Quaternion Rotation() const;
  6274. Matrix3 RotationMatrix() const;
  6275. Vector3 Scale() const;
  6276. void SetRotation(const Matrix3&);
  6277. void SetScale(const Vector3&);
  6278. void SetScale(float);
  6279. void SetTranslation(const Vector3&);
  6280. Matrix3 ToMatrix3() const;
  6281. Matrix4 ToMatrix4() const;
  6282. String ToString() const;
  6283. Vector3 Translation() const;
  6284. // Properties:
  6285. float m00;
  6286. float m01;
  6287. float m02;
  6288. float m03;
  6289. float m10;
  6290. float m11;
  6291. float m12;
  6292. float m13;
  6293. float m20;
  6294. float m21;
  6295. float m22;
  6296. float m23;
  6297. };
  6298. class Matrix4
  6299. {
  6300. // Methods:
  6301. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6302. bool Equals(const Matrix4&) const;
  6303. Matrix4 Inverse() const;
  6304. Quaternion Rotation() const;
  6305. Matrix3 RotationMatrix() const;
  6306. Vector3 Scale() const;
  6307. void SetRotation(const Matrix3&);
  6308. void SetScale(const Vector3&);
  6309. void SetScale(float);
  6310. void SetTranslation(const Vector3&);
  6311. Matrix3 ToMatrix3() const;
  6312. String ToString() const;
  6313. Vector3 Translation() const;
  6314. Matrix4 Transpose() const;
  6315. // Properties:
  6316. float m00;
  6317. float m01;
  6318. float m02;
  6319. float m03;
  6320. float m10;
  6321. float m11;
  6322. float m12;
  6323. float m13;
  6324. float m20;
  6325. float m21;
  6326. float m22;
  6327. float m23;
  6328. float m30;
  6329. float m31;
  6330. float m32;
  6331. float m33;
  6332. };
  6333. class Menu
  6334. {
  6335. // Methods:
  6336. void AddChild(UIElement);
  6337. void AddTag(const String&);
  6338. void AddTags(const String&, int8 = ';');
  6339. void ApplyAttributes();
  6340. void BringToFront();
  6341. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6342. void DisableLayoutUpdate();
  6343. IntVector2 ElementToScreen(const IntVector2&);
  6344. void EnableLayoutUpdate();
  6345. uint FindChild(UIElement) const;
  6346. Variant GetAttribute(const String&) const;
  6347. ValueAnimation GetAttributeAnimation(const String&) const;
  6348. float GetAttributeAnimationSpeed(const String&) const;
  6349. float GetAttributeAnimationTime(const String&) const;
  6350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6351. Variant GetAttributeDefault(const String&) const;
  6352. UIElement GetChild(const String&, bool = false) const;
  6353. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6354. Array<UIElement> GetChildren(bool = false) const;
  6355. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6356. UIElement GetElementEventSender() const;
  6357. bool GetInterceptNetworkUpdate(const String&) const;
  6358. uint GetNumChildren(bool) const;
  6359. bool HasSubscribedToEvent(Object, const String&);
  6360. bool HasSubscribedToEvent(const String&);
  6361. bool HasTag(const String&) const;
  6362. void InsertChild(uint, UIElement);
  6363. bool IsInside(IntVector2, bool);
  6364. bool IsInsideCombined(IntVector2, bool);
  6365. bool Load(File, bool = false);
  6366. bool Load(VectorBuffer&, bool = false);
  6367. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6368. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6369. bool LoadJSON(const JSONValue&, bool = false);
  6370. bool LoadXML(File);
  6371. bool LoadXML(VectorBuffer&);
  6372. bool LoadXML(XMLFile, XMLFile);
  6373. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6374. bool LoadXML(const XMLElement&, bool = false);
  6375. void MarkNetworkUpdate() const;
  6376. void Remove();
  6377. void RemoveAllChildren();
  6378. void RemoveAllTags();
  6379. void RemoveAttributeAnimation(const String&);
  6380. void RemoveChild(UIElement, uint = 0);
  6381. void RemoveChild(uint);
  6382. void RemoveInstanceDefault();
  6383. void RemoveObjectAnimation();
  6384. bool RemoveTag(const String&);
  6385. void ResetDeepEnabled();
  6386. void ResetToDefault();
  6387. bool Save(File) const;
  6388. bool Save(VectorBuffer&) const;
  6389. bool SaveJSON(JSONValue&) const;
  6390. bool SaveXML(File, const String& = "\t");
  6391. bool SaveXML(VectorBuffer&, const String& = "\t");
  6392. bool SaveXML(XMLElement&) const;
  6393. IntVector2 ScreenToElement(const IntVector2&);
  6394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6395. void SetAccelerator(int, int);
  6396. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6397. void SetAnimationTime(float);
  6398. bool SetAttribute(const String&, const Variant&);
  6399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6400. void SetAttributeAnimationSpeed(const String&, float);
  6401. void SetAttributeAnimationTime(const String&, float);
  6402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6403. void SetDeepEnabled(bool);
  6404. void SetEnabledRecursive(bool);
  6405. void SetFixedHeight(int);
  6406. void SetFixedSize(int, int);
  6407. void SetFixedWidth(int);
  6408. void SetFullImageRect();
  6409. void SetHoverOffset(int, int);
  6410. void SetInterceptNetworkUpdate(const String&, bool);
  6411. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6412. void SetMaxAnchor(float, float);
  6413. void SetMaxSize(int, int);
  6414. void SetMinAnchor(float, float);
  6415. void SetMinSize(int, int);
  6416. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6417. void SetPivot(float, float);
  6418. void SetPopupOffset(int, int);
  6419. void SetPosition(int, int);
  6420. void SetPressedChildOffset(int, int);
  6421. void SetPressedOffset(int, int);
  6422. void SetRepeat(float, float);
  6423. void SetSize(int, int);
  6424. bool SetStyle(const String&, XMLFile = null);
  6425. bool SetStyle(const XMLElement&);
  6426. bool SetStyleAuto(XMLFile = null);
  6427. void UpdateLayout();
  6428. const Variant& GetVar(const StringHash&);
  6429. // Properties:
  6430. /* readonly */
  6431. int acceleratorKey;
  6432. /* readonly */
  6433. int acceleratorQualifiers;
  6434. bool animationEnabled;
  6435. /* readonly */
  6436. Array<Variant> attributeDefaults;
  6437. /* readonly */
  6438. Array<AttributeInfo> attributeInfos;
  6439. Array<Variant> attributes;
  6440. BlendMode blendMode;
  6441. IntRect border;
  6442. bool bringToBack;
  6443. bool bringToFront;
  6444. /* readonly */
  6445. String category;
  6446. /* readonly */
  6447. IntVector2 childOffset;
  6448. /* readonly */
  6449. Array<UIElement> children;
  6450. IntRect clipBorder;
  6451. bool clipChildren;
  6452. /* writeonly */
  6453. Color color;
  6454. /* readonly */
  6455. bool colorGradient;
  6456. Array<Color> colors;
  6457. /* readonly */
  6458. IntRect combinedScreenRect;
  6459. XMLFile defaultStyle;
  6460. /* readonly */
  6461. float derivedOpacity;
  6462. /* readonly */
  6463. uint dragButtonCombo;
  6464. /* readonly */
  6465. int dragButtonCount;
  6466. uint dragDropMode;
  6467. bool editable;
  6468. bool elementEventSender;
  6469. bool enableAnchor;
  6470. bool enabled;
  6471. /* readonly */
  6472. bool enabledSelf;
  6473. /* readonly */
  6474. bool fixedHeight;
  6475. /* readonly */
  6476. bool fixedSize;
  6477. /* readonly */
  6478. bool fixedWidth;
  6479. bool focus;
  6480. FocusMode focusMode;
  6481. int height;
  6482. HorizontalAlignment horizontalAlignment;
  6483. IntVector2 hoverOffset;
  6484. /* readonly */
  6485. bool hovering;
  6486. IntRect imageBorder;
  6487. IntRect imageRect;
  6488. int indent;
  6489. int indentSpacing;
  6490. /* readonly */
  6491. int indentWidth;
  6492. bool internal;
  6493. IntRect layoutBorder;
  6494. Vector2 layoutFlexScale;
  6495. LayoutMode layoutMode;
  6496. int layoutSpacing;
  6497. Vector2 maxAnchor;
  6498. int maxHeight;
  6499. IntVector2 maxOffset;
  6500. IntVector2 maxSize;
  6501. int maxWidth;
  6502. Vector2 minAnchor;
  6503. int minHeight;
  6504. IntVector2 minOffset;
  6505. IntVector2 minSize;
  6506. int minWidth;
  6507. String name;
  6508. /* readonly */
  6509. uint numAllChildren;
  6510. /* readonly */
  6511. uint numAttributes;
  6512. /* readonly */
  6513. uint numChildren;
  6514. ObjectAnimation objectAnimation;
  6515. float opacity;
  6516. UIElement parent;
  6517. Vector2 pivot;
  6518. UIElement popup;
  6519. IntVector2 popupOffset;
  6520. IntVector2 position;
  6521. /* readonly */
  6522. bool pressed;
  6523. IntVector2 pressedChildOffset;
  6524. IntVector2 pressedOffset;
  6525. int priority;
  6526. /* readonly */
  6527. int refs;
  6528. float repeatDelay;
  6529. float repeatRate;
  6530. /* readonly */
  6531. UIElement root;
  6532. /* readonly */
  6533. IntVector2 screenPosition;
  6534. bool selected;
  6535. bool showPopup;
  6536. IntVector2 size;
  6537. bool sortChildren;
  6538. String style;
  6539. /* readonly */
  6540. Array<String> tags;
  6541. bool temporary;
  6542. Texture texture;
  6543. bool tiled;
  6544. TraversalMode traversalMode;
  6545. /* readonly */
  6546. StringHash type;
  6547. /* readonly */
  6548. String typeName;
  6549. bool useDerivedOpacity;
  6550. /* readonly */
  6551. VariantMap vars;
  6552. VerticalAlignment verticalAlignment;
  6553. bool visible;
  6554. /* readonly */
  6555. bool visibleEffective;
  6556. /* readonly */
  6557. int weakRefs;
  6558. int width;
  6559. };
  6560. class MessageBox
  6561. {
  6562. // Methods:
  6563. bool HasSubscribedToEvent(Object, const String&);
  6564. bool HasSubscribedToEvent(const String&);
  6565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6566. // Properties:
  6567. /* readonly */
  6568. String category;
  6569. String message;
  6570. /* readonly */
  6571. int refs;
  6572. String title;
  6573. /* readonly */
  6574. StringHash type;
  6575. /* readonly */
  6576. String typeName;
  6577. /* readonly */
  6578. int weakRefs;
  6579. /* readonly */
  6580. UIElement window;
  6581. };
  6582. class Model
  6583. {
  6584. // Methods:
  6585. Model Clone(const String& = String ( )) const;
  6586. Geometry GetGeometry(uint, uint) const;
  6587. bool HasSubscribedToEvent(Object, const String&);
  6588. bool HasSubscribedToEvent(const String&);
  6589. bool Load(File);
  6590. bool Load(VectorBuffer&);
  6591. bool Load(const String&);
  6592. bool Save(File) const;
  6593. bool Save(VectorBuffer&) const;
  6594. bool Save(const String&) const;
  6595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6596. bool SetGeometry(uint, uint, Geometry);
  6597. bool SetIndexBuffers(Array<IndexBuffer>);
  6598. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  6599. // Properties:
  6600. BoundingBox boundingBox;
  6601. /* readonly */
  6602. String category;
  6603. Array<Vector3> geometryCenters;
  6604. /* readonly */
  6605. uint memoryUse;
  6606. String name;
  6607. uint numGeometries;
  6608. Array<uint> numGeometryLodLevels;
  6609. /* readonly */
  6610. uint numMorphs;
  6611. /* readonly */
  6612. int refs;
  6613. /* readonly */
  6614. Skeleton skeleton;
  6615. /* readonly */
  6616. StringHash type;
  6617. /* readonly */
  6618. String typeName;
  6619. /* readonly */
  6620. uint useTimer;
  6621. /* readonly */
  6622. int weakRefs;
  6623. };
  6624. class NamedPipe
  6625. {
  6626. // Methods:
  6627. void Close();
  6628. bool HasSubscribedToEvent(Object, const String&);
  6629. bool HasSubscribedToEvent(const String&);
  6630. bool Open(const String&, bool);
  6631. Array<uint8> Read(uint);
  6632. bool ReadBool();
  6633. BoundingBox ReadBoundingBox();
  6634. int8 ReadByte();
  6635. Color ReadColor();
  6636. double ReadDouble();
  6637. String ReadFileID();
  6638. float ReadFloat();
  6639. int ReadInt();
  6640. int64 ReadInt64();
  6641. IntRect ReadIntRect();
  6642. IntVector2 ReadIntVector2();
  6643. String ReadLine();
  6644. Matrix3 ReadMatrix3();
  6645. Matrix3x4 ReadMatrix3x4();
  6646. Matrix4 ReadMatrix4();
  6647. uint ReadNetID();
  6648. Quaternion ReadPackedQuaternion();
  6649. Vector3 ReadPackedVector3(float);
  6650. Quaternion ReadQuaternion();
  6651. int16 ReadShort();
  6652. String ReadString();
  6653. StringHash ReadStringHash();
  6654. uint8 ReadUByte();
  6655. uint ReadUInt();
  6656. uint64 ReadUInt64();
  6657. uint16 ReadUShort();
  6658. uint ReadVLE();
  6659. Variant ReadVariant();
  6660. VariantMap ReadVariantMap();
  6661. Vector2 ReadVector2();
  6662. Vector3 ReadVector3();
  6663. Vector4 ReadVector4();
  6664. VectorBuffer ReadVectorBuffer(uint);
  6665. uint Seek(uint);
  6666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6667. uint Write(Array<uint8>);
  6668. bool WriteBool(bool);
  6669. bool WriteBoundingBox(const BoundingBox&);
  6670. bool WriteByte(int8);
  6671. bool WriteColor(const Color&);
  6672. bool WriteDouble(double);
  6673. bool WriteFileID(const String&);
  6674. bool WriteFloat(float);
  6675. bool WriteInt(int);
  6676. bool WriteInt64(int64);
  6677. bool WriteIntRect(const IntRect&);
  6678. bool WriteIntVector2(const IntVector2&);
  6679. bool WriteLine(const String&);
  6680. bool WriteMatrix3(const Matrix3&);
  6681. bool WriteMatrix3x4(const Matrix3x4&);
  6682. bool WriteMatrix4(const Matrix4&);
  6683. bool WriteNetID(uint);
  6684. bool WritePackedQuaternion(const Quaternion&);
  6685. bool WritePackedVector3(const Vector3&, float);
  6686. bool WriteQuaternion(const Quaternion&);
  6687. bool WriteShort(int16);
  6688. bool WriteString(const String&);
  6689. bool WriteStringHash(const StringHash&);
  6690. bool WriteUByte(uint8);
  6691. bool WriteUInt(uint);
  6692. bool WriteUInt64(uint64);
  6693. bool WriteUShort(uint16);
  6694. bool WriteVLE(uint);
  6695. bool WriteVariant(const Variant&);
  6696. bool WriteVariantMap(const VariantMap&);
  6697. bool WriteVector2(const Vector2&);
  6698. bool WriteVector3(const Vector3&);
  6699. bool WriteVector4(const Vector4&);
  6700. bool WriteVectorBuffer(const VectorBuffer&);
  6701. // Properties:
  6702. /* readonly */
  6703. String category;
  6704. /* readonly */
  6705. uint checksum;
  6706. /* readonly */
  6707. bool eof;
  6708. /* readonly */
  6709. String name;
  6710. /* readonly */
  6711. bool open;
  6712. /* readonly */
  6713. uint position;
  6714. /* readonly */
  6715. int refs;
  6716. /* readonly */
  6717. bool server;
  6718. /* readonly */
  6719. uint size;
  6720. /* readonly */
  6721. StringHash type;
  6722. /* readonly */
  6723. String typeName;
  6724. /* readonly */
  6725. int weakRefs;
  6726. };
  6727. class NavArea
  6728. {
  6729. // Methods:
  6730. void ApplyAttributes();
  6731. void DrawDebugGeometry(DebugRenderer, bool);
  6732. Variant GetAttribute(const String&) const;
  6733. ValueAnimation GetAttributeAnimation(const String&) const;
  6734. float GetAttributeAnimationSpeed(const String&) const;
  6735. float GetAttributeAnimationTime(const String&) const;
  6736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6737. Variant GetAttributeDefault(const String&) const;
  6738. bool GetInterceptNetworkUpdate(const String&) const;
  6739. bool HasSubscribedToEvent(Object, const String&);
  6740. bool HasSubscribedToEvent(const String&);
  6741. bool Load(File, bool = false);
  6742. bool Load(VectorBuffer&, bool = false);
  6743. bool LoadJSON(const JSONValue&, bool = false);
  6744. bool LoadXML(const XMLElement&, bool = false);
  6745. void MarkNetworkUpdate() const;
  6746. void Remove();
  6747. void RemoveAttributeAnimation(const String&);
  6748. void RemoveInstanceDefault();
  6749. void RemoveObjectAnimation();
  6750. void ResetToDefault();
  6751. bool Save(File) const;
  6752. bool Save(VectorBuffer&) const;
  6753. bool SaveJSON(JSONValue&) const;
  6754. bool SaveXML(XMLElement&) const;
  6755. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6756. void SetAnimationTime(float);
  6757. bool SetAttribute(const String&, const Variant&);
  6758. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6759. void SetAttributeAnimationSpeed(const String&, float);
  6760. void SetAttributeAnimationTime(const String&, float);
  6761. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6762. void SetInterceptNetworkUpdate(const String&, bool);
  6763. // Properties:
  6764. bool animationEnabled;
  6765. uint areaID;
  6766. /* readonly */
  6767. Array<Variant> attributeDefaults;
  6768. /* readonly */
  6769. Array<AttributeInfo> attributeInfos;
  6770. Array<Variant> attributes;
  6771. BoundingBox boundingBox;
  6772. /* readonly */
  6773. String category;
  6774. bool enabled;
  6775. /* readonly */
  6776. bool enabledEffective;
  6777. /* readonly */
  6778. uint id;
  6779. /* readonly */
  6780. Node node;
  6781. /* readonly */
  6782. uint numAttributes;
  6783. ObjectAnimation objectAnimation;
  6784. /* readonly */
  6785. int refs;
  6786. bool temporary;
  6787. /* readonly */
  6788. StringHash type;
  6789. /* readonly */
  6790. String typeName;
  6791. /* readonly */
  6792. int weakRefs;
  6793. /* readonly */
  6794. BoundingBox worldBoundingBox;
  6795. };
  6796. class Navigable
  6797. {
  6798. // Methods:
  6799. void ApplyAttributes();
  6800. void DrawDebugGeometry(DebugRenderer, bool);
  6801. Variant GetAttribute(const String&) const;
  6802. ValueAnimation GetAttributeAnimation(const String&) const;
  6803. float GetAttributeAnimationSpeed(const String&) const;
  6804. float GetAttributeAnimationTime(const String&) const;
  6805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6806. Variant GetAttributeDefault(const String&) const;
  6807. bool GetInterceptNetworkUpdate(const String&) const;
  6808. bool HasSubscribedToEvent(Object, const String&);
  6809. bool HasSubscribedToEvent(const String&);
  6810. bool Load(File, bool = false);
  6811. bool Load(VectorBuffer&, bool = false);
  6812. bool LoadJSON(const JSONValue&, bool = false);
  6813. bool LoadXML(const XMLElement&, bool = false);
  6814. void MarkNetworkUpdate() const;
  6815. void Remove();
  6816. void RemoveAttributeAnimation(const String&);
  6817. void RemoveInstanceDefault();
  6818. void RemoveObjectAnimation();
  6819. void ResetToDefault();
  6820. bool Save(File) const;
  6821. bool Save(VectorBuffer&) const;
  6822. bool SaveJSON(JSONValue&) const;
  6823. bool SaveXML(XMLElement&) const;
  6824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6825. void SetAnimationTime(float);
  6826. bool SetAttribute(const String&, const Variant&);
  6827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6828. void SetAttributeAnimationSpeed(const String&, float);
  6829. void SetAttributeAnimationTime(const String&, float);
  6830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6831. void SetInterceptNetworkUpdate(const String&, bool);
  6832. // Properties:
  6833. bool animationEnabled;
  6834. /* readonly */
  6835. Array<Variant> attributeDefaults;
  6836. /* readonly */
  6837. Array<AttributeInfo> attributeInfos;
  6838. Array<Variant> attributes;
  6839. /* readonly */
  6840. String category;
  6841. bool enabled;
  6842. /* readonly */
  6843. bool enabledEffective;
  6844. /* readonly */
  6845. uint id;
  6846. /* readonly */
  6847. Node node;
  6848. /* readonly */
  6849. uint numAttributes;
  6850. ObjectAnimation objectAnimation;
  6851. bool recursive;
  6852. /* readonly */
  6853. int refs;
  6854. bool temporary;
  6855. /* readonly */
  6856. StringHash type;
  6857. /* readonly */
  6858. String typeName;
  6859. /* readonly */
  6860. int weakRefs;
  6861. };
  6862. class NavigationMesh
  6863. {
  6864. // Methods:
  6865. void ApplyAttributes();
  6866. bool Build();
  6867. bool Build(const BoundingBox&);
  6868. void DrawDebugGeometry(DebugRenderer, bool);
  6869. void DrawDebugGeometry(bool);
  6870. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6871. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6872. float GetAreaCost(uint) const;
  6873. Variant GetAttribute(const String&) const;
  6874. ValueAnimation GetAttributeAnimation(const String&) const;
  6875. float GetAttributeAnimationSpeed(const String&) const;
  6876. float GetAttributeAnimationTime(const String&) const;
  6877. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6878. Variant GetAttributeDefault(const String&) const;
  6879. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6880. bool GetInterceptNetworkUpdate(const String&) const;
  6881. Vector3 GetRandomPoint();
  6882. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6883. bool HasSubscribedToEvent(Object, const String&);
  6884. bool HasSubscribedToEvent(const String&);
  6885. bool Load(File, bool = false);
  6886. bool Load(VectorBuffer&, bool = false);
  6887. bool LoadJSON(const JSONValue&, bool = false);
  6888. bool LoadXML(const XMLElement&, bool = false);
  6889. void MarkNetworkUpdate() const;
  6890. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6891. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6892. void Remove();
  6893. void RemoveAttributeAnimation(const String&);
  6894. void RemoveInstanceDefault();
  6895. void RemoveObjectAnimation();
  6896. void ResetToDefault();
  6897. bool Save(File) const;
  6898. bool Save(VectorBuffer&) const;
  6899. bool SaveJSON(JSONValue&) const;
  6900. bool SaveXML(XMLElement&) const;
  6901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6902. void SetAnimationTime(float);
  6903. void SetAreaCost(uint, float);
  6904. bool SetAttribute(const String&, const Variant&);
  6905. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6906. void SetAttributeAnimationSpeed(const String&, float);
  6907. void SetAttributeAnimationTime(const String&, float);
  6908. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6909. void SetInterceptNetworkUpdate(const String&, bool);
  6910. // Properties:
  6911. float agentHeight;
  6912. float agentMaxClimb;
  6913. float agentMaxSlope;
  6914. float agentRadius;
  6915. bool animationEnabled;
  6916. /* readonly */
  6917. Array<Variant> attributeDefaults;
  6918. /* readonly */
  6919. Array<AttributeInfo> attributeInfos;
  6920. Array<Variant> attributes;
  6921. /* readonly */
  6922. BoundingBox boundingBox;
  6923. /* readonly */
  6924. String category;
  6925. float cellHeight;
  6926. float cellSize;
  6927. float detailSampleDistance;
  6928. float detailSampleMaxError;
  6929. bool drawNavAreas;
  6930. bool drawOffMeshConnections;
  6931. float edgeMaxError;
  6932. float edgeMaxLength;
  6933. bool enabled;
  6934. /* readonly */
  6935. bool enabledEffective;
  6936. /* readonly */
  6937. uint id;
  6938. /* readonly */
  6939. bool initialized;
  6940. /* readonly */
  6941. Node node;
  6942. /* readonly */
  6943. uint numAttributes;
  6944. /* readonly */
  6945. IntVector2 numTiles;
  6946. ObjectAnimation objectAnimation;
  6947. Vector3 padding;
  6948. NavmeshPartitionType partitionType;
  6949. /* readonly */
  6950. int refs;
  6951. float regionMergeSize;
  6952. float regionMinSize;
  6953. bool temporary;
  6954. int tileSize;
  6955. /* readonly */
  6956. StringHash type;
  6957. /* readonly */
  6958. String typeName;
  6959. /* readonly */
  6960. int weakRefs;
  6961. /* readonly */
  6962. BoundingBox worldBoundingBox;
  6963. };
  6964. class Network
  6965. {
  6966. // Methods:
  6967. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6968. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6969. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6970. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6971. bool CheckRemoteEvent(const String&) const;
  6972. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6973. void Disconnect(int = 0);
  6974. bool HasSubscribedToEvent(Object, const String&);
  6975. bool HasSubscribedToEvent(const String&);
  6976. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6977. void RegisterRemoteEvent(const String&) const;
  6978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6979. void SendPackageToClients(Scene, PackageFile);
  6980. bool StartServer(uint16);
  6981. void StopServer();
  6982. void UnregisterAllRemoteEvents();
  6983. void UnregisterRemoteEvent(const String&) const;
  6984. // Properties:
  6985. /* readonly */
  6986. String category;
  6987. /* readonly */
  6988. Array<Connection> clientConnections;
  6989. String packageCacheDir;
  6990. /* readonly */
  6991. int refs;
  6992. /* readonly */
  6993. Connection serverConnection;
  6994. /* readonly */
  6995. bool serverRunning;
  6996. int simulatedLatency;
  6997. float simulatedPacketLoss;
  6998. /* readonly */
  6999. StringHash type;
  7000. /* readonly */
  7001. String typeName;
  7002. int updateFps;
  7003. /* readonly */
  7004. int weakRefs;
  7005. };
  7006. class NetworkPriority
  7007. {
  7008. // Methods:
  7009. void ApplyAttributes();
  7010. void DrawDebugGeometry(DebugRenderer, bool);
  7011. Variant GetAttribute(const String&) const;
  7012. ValueAnimation GetAttributeAnimation(const String&) const;
  7013. float GetAttributeAnimationSpeed(const String&) const;
  7014. float GetAttributeAnimationTime(const String&) const;
  7015. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7016. Variant GetAttributeDefault(const String&) const;
  7017. bool GetInterceptNetworkUpdate(const String&) const;
  7018. bool HasSubscribedToEvent(Object, const String&);
  7019. bool HasSubscribedToEvent(const String&);
  7020. bool Load(File, bool = false);
  7021. bool Load(VectorBuffer&, bool = false);
  7022. bool LoadJSON(const JSONValue&, bool = false);
  7023. bool LoadXML(const XMLElement&, bool = false);
  7024. void MarkNetworkUpdate() const;
  7025. void Remove();
  7026. void RemoveAttributeAnimation(const String&);
  7027. void RemoveInstanceDefault();
  7028. void RemoveObjectAnimation();
  7029. void ResetToDefault();
  7030. bool Save(File) const;
  7031. bool Save(VectorBuffer&) const;
  7032. bool SaveJSON(JSONValue&) const;
  7033. bool SaveXML(XMLElement&) const;
  7034. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7035. void SetAnimationTime(float);
  7036. bool SetAttribute(const String&, const Variant&);
  7037. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7038. void SetAttributeAnimationSpeed(const String&, float);
  7039. void SetAttributeAnimationTime(const String&, float);
  7040. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7041. void SetInterceptNetworkUpdate(const String&, bool);
  7042. // Properties:
  7043. bool alwaysUpdateOwner;
  7044. bool animationEnabled;
  7045. /* readonly */
  7046. Array<Variant> attributeDefaults;
  7047. /* readonly */
  7048. Array<AttributeInfo> attributeInfos;
  7049. Array<Variant> attributes;
  7050. float basePriority;
  7051. /* readonly */
  7052. String category;
  7053. float distanceFactor;
  7054. bool enabled;
  7055. /* readonly */
  7056. bool enabledEffective;
  7057. /* readonly */
  7058. uint id;
  7059. float minPriority;
  7060. /* readonly */
  7061. Node node;
  7062. /* readonly */
  7063. uint numAttributes;
  7064. ObjectAnimation objectAnimation;
  7065. /* readonly */
  7066. int refs;
  7067. bool temporary;
  7068. /* readonly */
  7069. StringHash type;
  7070. /* readonly */
  7071. String typeName;
  7072. /* readonly */
  7073. int weakRefs;
  7074. };
  7075. class Node
  7076. {
  7077. // Methods:
  7078. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7079. void AddTag(const String&);
  7080. void AddTags(const String&, int8 = ';');
  7081. void ApplyAttributes();
  7082. Node Clone(CreateMode = REPLICATED);
  7083. Component CloneComponent(Component, CreateMode, uint = 0);
  7084. Component CloneComponent(Component, uint = 0);
  7085. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7086. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7087. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7088. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7089. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7090. Variant GetAttribute(const String&) const;
  7091. ValueAnimation GetAttributeAnimation(const String&) const;
  7092. float GetAttributeAnimationSpeed(const String&) const;
  7093. float GetAttributeAnimationTime(const String&) const;
  7094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7095. Variant GetAttributeDefault(const String&) const;
  7096. Node GetChild(const String&, bool = false) const;
  7097. Array<Node> GetChildren(bool = false) const;
  7098. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7099. Array<Node> GetChildrenWithScript(bool = false) const;
  7100. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7101. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7102. Component GetComponent(const String&, bool = false) const;
  7103. Array<Component> GetComponents() const;
  7104. Array<Component> GetComponents(const String&, bool = false) const;
  7105. bool GetInterceptNetworkUpdate(const String&) const;
  7106. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7107. Component GetParentComponent(const String&, bool = false) const;
  7108. ScriptObject GetScriptObject() const;
  7109. ScriptObject GetScriptObject(const String&) const;
  7110. bool HasComponent(const String&) const;
  7111. bool HasSubscribedToEvent(Object, const String&);
  7112. bool HasSubscribedToEvent(const String&);
  7113. bool HasTag(const String&);
  7114. bool Load(File, bool = false);
  7115. bool Load(VectorBuffer&, bool = false);
  7116. bool LoadJSON(const JSONValue&, bool = false);
  7117. bool LoadXML(const XMLElement&, bool = false);
  7118. Vector3 LocalToWorld(const Vector3&) const;
  7119. Vector3 LocalToWorld(const Vector4&) const;
  7120. Vector2 LocalToWorld2D(const Vector2&) const;
  7121. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7122. void MarkDirty();
  7123. void MarkNetworkUpdate() const;
  7124. void Pitch(float, TransformSpace = TS_LOCAL);
  7125. void Remove();
  7126. void RemoveAllChildren();
  7127. void RemoveAllComponents();
  7128. void RemoveAllTags();
  7129. void RemoveAttributeAnimation(const String&);
  7130. void RemoveChild(Node);
  7131. void RemoveChildren(bool, bool, bool);
  7132. void RemoveComponent(Component);
  7133. void RemoveComponent(const String&);
  7134. void RemoveComponents(bool, bool);
  7135. void RemoveComponents(const String&);
  7136. void RemoveInstanceDefault();
  7137. void RemoveObjectAnimation();
  7138. bool RemoveTag(const String&);
  7139. void ReorderComponent(Component, uint);
  7140. void ResetDeepEnabled();
  7141. void ResetToDefault();
  7142. void Roll(float, TransformSpace = TS_LOCAL);
  7143. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7144. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7145. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7146. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7147. bool Save(File) const;
  7148. bool Save(VectorBuffer&) const;
  7149. bool SaveJSON(File);
  7150. bool SaveJSON(JSONValue&) const;
  7151. bool SaveJSON(VectorBuffer&);
  7152. bool SaveXML(File, const String& = "\t");
  7153. bool SaveXML(VectorBuffer&, const String& = "\t");
  7154. bool SaveXML(XMLElement&) const;
  7155. void Scale(const Vector3&);
  7156. void Scale(float);
  7157. void Scale2D(const Vector2&);
  7158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7159. void SetAnimationTime(float);
  7160. bool SetAttribute(const String&, const Variant&);
  7161. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7162. void SetAttributeAnimationSpeed(const String&, float);
  7163. void SetAttributeAnimationTime(const String&, float);
  7164. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7165. void SetDeepEnabled(bool);
  7166. void SetEnabledRecursive(bool);
  7167. void SetInterceptNetworkUpdate(const String&, bool);
  7168. void SetPosition2D(float, float);
  7169. void SetScale(float);
  7170. void SetScale2D(float, float);
  7171. void SetTransform(const Matrix3x4&);
  7172. void SetTransform(const Vector3&, const Quaternion&);
  7173. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7174. void SetTransform(const Vector3&, const Quaternion&, float);
  7175. void SetTransform2D(const Vector2&, float);
  7176. void SetTransform2D(const Vector2&, float, const Vector2&);
  7177. void SetTransform2D(const Vector2&, float, float);
  7178. void SetWorldTransform(const Vector3&, const Quaternion&);
  7179. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7180. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7181. void SetWorldTransform2D(const Vector2&, float);
  7182. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7183. void SetWorldTransform2D(const Vector2&, float, float);
  7184. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7185. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7186. Vector3 WorldToLocal(const Vector3&) const;
  7187. Vector3 WorldToLocal(const Vector4&) const;
  7188. Vector2 WorldToLocal2D(const Vector2&) const;
  7189. void Yaw(float, TransformSpace = TS_LOCAL);
  7190. // Properties:
  7191. bool animationEnabled;
  7192. /* readonly */
  7193. Array<Variant> attributeDefaults;
  7194. /* readonly */
  7195. Array<AttributeInfo> attributeInfos;
  7196. Array<Variant> attributes;
  7197. /* readonly */
  7198. String category;
  7199. /* readonly */
  7200. Array<Node> children;
  7201. /* readonly */
  7202. Array<Component> components;
  7203. Vector3 direction;
  7204. bool enabled;
  7205. /* readonly */
  7206. bool enabledSelf;
  7207. uint id;
  7208. String name;
  7209. /* readonly */
  7210. uint numAllChildren;
  7211. /* readonly */
  7212. uint numAttributes;
  7213. /* readonly */
  7214. uint numChildren;
  7215. /* readonly */
  7216. uint numComponents;
  7217. ObjectAnimation objectAnimation;
  7218. Connection owner;
  7219. Node parent;
  7220. Vector3 position;
  7221. Vector2 position2D;
  7222. /* readonly */
  7223. int refs;
  7224. /* readonly */
  7225. Vector3 right;
  7226. Quaternion rotation;
  7227. float rotation2D;
  7228. Vector3 scale;
  7229. Vector2 scale2D;
  7230. /* readonly */
  7231. Scene scene;
  7232. /* readonly */
  7233. ScriptObject scriptObject;
  7234. /* readonly */
  7235. Array<String> tags;
  7236. bool temporary;
  7237. /* readonly */
  7238. Matrix3x4 transform;
  7239. /* readonly */
  7240. StringHash type;
  7241. /* readonly */
  7242. String typeName;
  7243. /* readonly */
  7244. Vector3 up;
  7245. /* readonly */
  7246. VariantMap vars;
  7247. /* readonly */
  7248. int weakRefs;
  7249. Vector3 worldDirection;
  7250. Vector3 worldPosition;
  7251. Vector2 worldPosition2D;
  7252. /* readonly */
  7253. Vector3 worldRight;
  7254. Quaternion worldRotation;
  7255. float worldRotation2D;
  7256. Vector3 worldScale;
  7257. Vector2 worldScale2D;
  7258. /* readonly */
  7259. Matrix3x4 worldTransform;
  7260. /* readonly */
  7261. Vector3 worldUp;
  7262. };
  7263. class Object
  7264. {
  7265. // Methods:
  7266. bool HasSubscribedToEvent(Object, const String&);
  7267. bool HasSubscribedToEvent(const String&);
  7268. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7269. // Properties:
  7270. /* readonly */
  7271. String category;
  7272. /* readonly */
  7273. int refs;
  7274. /* readonly */
  7275. StringHash type;
  7276. /* readonly */
  7277. String typeName;
  7278. /* readonly */
  7279. int weakRefs;
  7280. };
  7281. class ObjectAnimation
  7282. {
  7283. // Methods:
  7284. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7285. ValueAnimation GetAttributeAnimation(const String&) const;
  7286. float GetAttributeAnimationSpeed(const String&) const;
  7287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7288. bool HasSubscribedToEvent(Object, const String&);
  7289. bool HasSubscribedToEvent(const String&);
  7290. bool Load(File);
  7291. bool Load(VectorBuffer&);
  7292. bool Load(const String&);
  7293. void RemoveAttributeAnimation(ValueAnimation);
  7294. void RemoveAttributeAnimation(const String&);
  7295. bool Save(File) const;
  7296. bool Save(VectorBuffer&) const;
  7297. bool Save(const String&) const;
  7298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7299. // Properties:
  7300. /* readonly */
  7301. Array<Variant> attributeAnimations;
  7302. /* readonly */
  7303. String category;
  7304. /* readonly */
  7305. uint memoryUse;
  7306. String name;
  7307. /* readonly */
  7308. int refs;
  7309. /* readonly */
  7310. Array<Variant> speeds;
  7311. /* readonly */
  7312. StringHash type;
  7313. /* readonly */
  7314. String typeName;
  7315. /* readonly */
  7316. uint useTimer;
  7317. /* readonly */
  7318. int weakRefs;
  7319. /* readonly */
  7320. Array<Variant> wrapModes;
  7321. };
  7322. class Obstacle
  7323. {
  7324. // Methods:
  7325. void ApplyAttributes();
  7326. void DrawDebugGeometry(DebugRenderer, bool);
  7327. void DrawDebugGeometry(bool);
  7328. Variant GetAttribute(const String&) const;
  7329. ValueAnimation GetAttributeAnimation(const String&) const;
  7330. float GetAttributeAnimationSpeed(const String&) const;
  7331. float GetAttributeAnimationTime(const String&) const;
  7332. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7333. Variant GetAttributeDefault(const String&) const;
  7334. bool GetInterceptNetworkUpdate(const String&) const;
  7335. bool HasSubscribedToEvent(Object, const String&);
  7336. bool HasSubscribedToEvent(const String&);
  7337. bool Load(File, bool = false);
  7338. bool Load(VectorBuffer&, bool = false);
  7339. bool LoadJSON(const JSONValue&, bool = false);
  7340. bool LoadXML(const XMLElement&, bool = false);
  7341. void MarkNetworkUpdate() const;
  7342. void Remove();
  7343. void RemoveAttributeAnimation(const String&);
  7344. void RemoveInstanceDefault();
  7345. void RemoveObjectAnimation();
  7346. void ResetToDefault();
  7347. bool Save(File) const;
  7348. bool Save(VectorBuffer&) const;
  7349. bool SaveJSON(JSONValue&) const;
  7350. bool SaveXML(XMLElement&) const;
  7351. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7352. void SetAnimationTime(float);
  7353. bool SetAttribute(const String&, const Variant&);
  7354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7355. void SetAttributeAnimationSpeed(const String&, float);
  7356. void SetAttributeAnimationTime(const String&, float);
  7357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7358. void SetInterceptNetworkUpdate(const String&, bool);
  7359. // Properties:
  7360. bool animationEnabled;
  7361. /* readonly */
  7362. Array<Variant> attributeDefaults;
  7363. /* readonly */
  7364. Array<AttributeInfo> attributeInfos;
  7365. Array<Variant> attributes;
  7366. /* readonly */
  7367. String category;
  7368. bool enabled;
  7369. /* readonly */
  7370. bool enabledEffective;
  7371. float height;
  7372. /* readonly */
  7373. uint id;
  7374. /* readonly */
  7375. Node node;
  7376. /* readonly */
  7377. uint numAttributes;
  7378. ObjectAnimation objectAnimation;
  7379. /* readonly */
  7380. uint obstacleId;
  7381. float radius;
  7382. /* readonly */
  7383. int refs;
  7384. bool temporary;
  7385. /* readonly */
  7386. StringHash type;
  7387. /* readonly */
  7388. String typeName;
  7389. /* readonly */
  7390. int weakRefs;
  7391. };
  7392. class Octree
  7393. {
  7394. // Methods:
  7395. void AddManualDrawable(Drawable);
  7396. void ApplyAttributes();
  7397. void DrawDebugGeometry(DebugRenderer, bool);
  7398. void DrawDebugGeometry(bool) const;
  7399. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7400. Variant GetAttribute(const String&) const;
  7401. ValueAnimation GetAttributeAnimation(const String&) const;
  7402. float GetAttributeAnimationSpeed(const String&) const;
  7403. float GetAttributeAnimationTime(const String&) const;
  7404. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7405. Variant GetAttributeDefault(const String&) const;
  7406. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7407. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7408. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7409. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7410. bool GetInterceptNetworkUpdate(const String&) const;
  7411. bool HasSubscribedToEvent(Object, const String&);
  7412. bool HasSubscribedToEvent(const String&);
  7413. bool Load(File, bool = false);
  7414. bool Load(VectorBuffer&, bool = false);
  7415. bool LoadJSON(const JSONValue&, bool = false);
  7416. bool LoadXML(const XMLElement&, bool = false);
  7417. void MarkNetworkUpdate() const;
  7418. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7419. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7420. void Remove();
  7421. void RemoveAttributeAnimation(const String&);
  7422. void RemoveInstanceDefault();
  7423. void RemoveManualDrawable(Drawable);
  7424. void RemoveObjectAnimation();
  7425. void ResetToDefault();
  7426. bool Save(File) const;
  7427. bool Save(VectorBuffer&) const;
  7428. bool SaveJSON(JSONValue&) const;
  7429. bool SaveXML(XMLElement&) const;
  7430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7431. void SetAnimationTime(float);
  7432. bool SetAttribute(const String&, const Variant&);
  7433. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7434. void SetAttributeAnimationSpeed(const String&, float);
  7435. void SetAttributeAnimationTime(const String&, float);
  7436. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7437. void SetInterceptNetworkUpdate(const String&, bool);
  7438. void SetSize(const BoundingBox&, uint);
  7439. // Properties:
  7440. bool animationEnabled;
  7441. /* readonly */
  7442. Array<Variant> attributeDefaults;
  7443. /* readonly */
  7444. Array<AttributeInfo> attributeInfos;
  7445. Array<Variant> attributes;
  7446. /* readonly */
  7447. String category;
  7448. bool enabled;
  7449. /* readonly */
  7450. bool enabledEffective;
  7451. /* readonly */
  7452. uint id;
  7453. /* readonly */
  7454. Node node;
  7455. /* readonly */
  7456. uint numAttributes;
  7457. /* readonly */
  7458. uint numLevels;
  7459. ObjectAnimation objectAnimation;
  7460. /* readonly */
  7461. int refs;
  7462. bool temporary;
  7463. /* readonly */
  7464. StringHash type;
  7465. /* readonly */
  7466. String typeName;
  7467. /* readonly */
  7468. int weakRefs;
  7469. /* readonly */
  7470. BoundingBox worldBoundingBox;
  7471. };
  7472. class OffMeshConnection
  7473. {
  7474. // Methods:
  7475. void ApplyAttributes();
  7476. void DrawDebugGeometry(DebugRenderer, bool);
  7477. Variant GetAttribute(const String&) const;
  7478. ValueAnimation GetAttributeAnimation(const String&) const;
  7479. float GetAttributeAnimationSpeed(const String&) const;
  7480. float GetAttributeAnimationTime(const String&) const;
  7481. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7482. Variant GetAttributeDefault(const String&) const;
  7483. bool GetInterceptNetworkUpdate(const String&) const;
  7484. bool HasSubscribedToEvent(Object, const String&);
  7485. bool HasSubscribedToEvent(const String&);
  7486. bool Load(File, bool = false);
  7487. bool Load(VectorBuffer&, bool = false);
  7488. bool LoadJSON(const JSONValue&, bool = false);
  7489. bool LoadXML(const XMLElement&, bool = false);
  7490. void MarkNetworkUpdate() const;
  7491. void Remove();
  7492. void RemoveAttributeAnimation(const String&);
  7493. void RemoveInstanceDefault();
  7494. void RemoveObjectAnimation();
  7495. void ResetToDefault();
  7496. bool Save(File) const;
  7497. bool Save(VectorBuffer&) const;
  7498. bool SaveJSON(JSONValue&) const;
  7499. bool SaveXML(XMLElement&) const;
  7500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7501. void SetAnimationTime(float);
  7502. bool SetAttribute(const String&, const Variant&);
  7503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7504. void SetAttributeAnimationSpeed(const String&, float);
  7505. void SetAttributeAnimationTime(const String&, float);
  7506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7507. void SetInterceptNetworkUpdate(const String&, bool);
  7508. // Properties:
  7509. bool animationEnabled;
  7510. uint areaID;
  7511. /* readonly */
  7512. Array<Variant> attributeDefaults;
  7513. /* readonly */
  7514. Array<AttributeInfo> attributeInfos;
  7515. Array<Variant> attributes;
  7516. bool bidirectional;
  7517. /* readonly */
  7518. String category;
  7519. bool enabled;
  7520. /* readonly */
  7521. bool enabledEffective;
  7522. Node endPoint;
  7523. /* readonly */
  7524. uint id;
  7525. uint mask;
  7526. /* readonly */
  7527. Node node;
  7528. /* readonly */
  7529. uint numAttributes;
  7530. ObjectAnimation objectAnimation;
  7531. float radius;
  7532. /* readonly */
  7533. int refs;
  7534. bool temporary;
  7535. /* readonly */
  7536. StringHash type;
  7537. /* readonly */
  7538. String typeName;
  7539. /* readonly */
  7540. int weakRefs;
  7541. };
  7542. class PackageFile
  7543. {
  7544. // Methods:
  7545. bool Exists(const String&) const;
  7546. Array<String> GetEntryNames() const;
  7547. bool HasSubscribedToEvent(Object, const String&);
  7548. bool HasSubscribedToEvent(const String&);
  7549. bool Open(const String&, uint = 0) const;
  7550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7551. bool compressed() const;
  7552. // Properties:
  7553. /* readonly */
  7554. String category;
  7555. /* readonly */
  7556. uint checksum;
  7557. /* readonly */
  7558. String name;
  7559. /* readonly */
  7560. uint numFiles;
  7561. /* readonly */
  7562. int refs;
  7563. /* readonly */
  7564. uint totalDataSize;
  7565. /* readonly */
  7566. uint totalSize;
  7567. /* readonly */
  7568. StringHash type;
  7569. /* readonly */
  7570. String typeName;
  7571. /* readonly */
  7572. int weakRefs;
  7573. };
  7574. class ParticleEffect
  7575. {
  7576. // Methods:
  7577. void AddColorFrame(ColorFrame);
  7578. void AddColorTime(Color&, float);
  7579. void AddTextureFrame(TextureFrame);
  7580. void AddTextureTime(Rect&, float);
  7581. ParticleEffect Clone(const String& = String ( )) const;
  7582. ColorFrame GetColorFrame(uint) const;
  7583. TextureFrame GetTextureFrame(uint) const;
  7584. bool HasSubscribedToEvent(Object, const String&);
  7585. bool HasSubscribedToEvent(const String&);
  7586. bool Load(File);
  7587. bool Load(VectorBuffer&);
  7588. bool Load(const String&);
  7589. bool Load(const XMLElement&);
  7590. void RemoveColorFrame(uint);
  7591. void RemoveTextureFrame(uint);
  7592. bool Save(File) const;
  7593. bool Save(VectorBuffer&) const;
  7594. bool Save(XMLElement&) const;
  7595. bool Save(const String&) const;
  7596. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7597. void SetColorFrame(uint, ColorFrame);
  7598. void SetTextureFrame(uint, TextureFrame);
  7599. void SortColorFrames();
  7600. void SortTextureFrames();
  7601. // Properties:
  7602. float activeTime;
  7603. float animationLodBias;
  7604. /* readonly */
  7605. String category;
  7606. Vector3 constantForce;
  7607. float dampingForce;
  7608. Vector3 emitterSize;
  7609. EmitterType emitterType;
  7610. FaceCameraMode faceCameraMode;
  7611. bool fixedScreenSize;
  7612. float inactiveTime;
  7613. Material material;
  7614. Vector3 maxDirection;
  7615. float maxEmissionRate;
  7616. Vector2 maxParticleSize;
  7617. float maxRotation;
  7618. float maxRotationSpeed;
  7619. float maxTimeToLive;
  7620. float maxVelocity;
  7621. /* readonly */
  7622. uint memoryUse;
  7623. Vector3 minDirection;
  7624. float minEmissionRate;
  7625. Vector2 minParticleSize;
  7626. float minRotation;
  7627. float minRotationSpeed;
  7628. float minTimeToLive;
  7629. float minVelocity;
  7630. String name;
  7631. uint numColorFrames;
  7632. uint numParticles;
  7633. uint numTextureFrames;
  7634. /* readonly */
  7635. int refs;
  7636. bool relative;
  7637. bool scaled;
  7638. float sizeAdd;
  7639. float sizeMul;
  7640. bool sorted;
  7641. /* readonly */
  7642. StringHash type;
  7643. /* readonly */
  7644. String typeName;
  7645. bool updateInvisible;
  7646. /* readonly */
  7647. uint useTimer;
  7648. /* readonly */
  7649. int weakRefs;
  7650. };
  7651. class ParticleEffect2D
  7652. {
  7653. // Methods:
  7654. ParticleEffect2D Clone(const String& = String ( )) const;
  7655. bool HasSubscribedToEvent(Object, const String&);
  7656. bool HasSubscribedToEvent(const String&);
  7657. bool Load(File);
  7658. bool Load(VectorBuffer&);
  7659. bool Load(const String&);
  7660. bool Save(File) const;
  7661. bool Save(VectorBuffer&) const;
  7662. bool Save(const String&) const;
  7663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7664. // Properties:
  7665. /* readonly */
  7666. String category;
  7667. /* readonly */
  7668. uint memoryUse;
  7669. String name;
  7670. /* readonly */
  7671. int refs;
  7672. /* readonly */
  7673. StringHash type;
  7674. /* readonly */
  7675. String typeName;
  7676. /* readonly */
  7677. uint useTimer;
  7678. /* readonly */
  7679. int weakRefs;
  7680. };
  7681. class ParticleEmitter
  7682. {
  7683. // Methods:
  7684. void ApplyAttributes();
  7685. void ApplyEffect();
  7686. void Commit();
  7687. void DrawDebugGeometry(DebugRenderer, bool);
  7688. Variant GetAttribute(const String&) const;
  7689. ValueAnimation GetAttributeAnimation(const String&) const;
  7690. float GetAttributeAnimationSpeed(const String&) const;
  7691. float GetAttributeAnimationTime(const String&) const;
  7692. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7693. Variant GetAttributeDefault(const String&) const;
  7694. bool GetInterceptNetworkUpdate(const String&) const;
  7695. bool HasSubscribedToEvent(Object, const String&);
  7696. bool HasSubscribedToEvent(const String&);
  7697. bool IsInView(Camera) const;
  7698. bool Load(File, bool = false);
  7699. bool Load(VectorBuffer&, bool = false);
  7700. bool LoadJSON(const JSONValue&, bool = false);
  7701. bool LoadXML(const XMLElement&, bool = false);
  7702. void MarkNetworkUpdate() const;
  7703. void Remove();
  7704. void RemoveAllParticles();
  7705. void RemoveAttributeAnimation(const String&);
  7706. void RemoveInstanceDefault();
  7707. void RemoveObjectAnimation();
  7708. void Reset();
  7709. void ResetEmissionTimer();
  7710. void ResetToDefault();
  7711. bool Save(File) const;
  7712. bool Save(VectorBuffer&) const;
  7713. bool SaveJSON(JSONValue&) const;
  7714. bool SaveXML(XMLElement&) const;
  7715. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7716. void SetAnimationTime(float);
  7717. bool SetAttribute(const String&, const Variant&);
  7718. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7719. void SetAttributeAnimationSpeed(const String&, float);
  7720. void SetAttributeAnimationTime(const String&, float);
  7721. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7722. void SetInterceptNetworkUpdate(const String&, bool);
  7723. // Properties:
  7724. bool animationEnabled;
  7725. float animationLodBias;
  7726. /* readonly */
  7727. Array<Variant> attributeDefaults;
  7728. /* readonly */
  7729. Array<AttributeInfo> attributeInfos;
  7730. Array<Variant> attributes;
  7731. AutoRemoveMode autoRemoveMode;
  7732. /* readonly */
  7733. Array<Billboard> billboards;
  7734. /* readonly */
  7735. BoundingBox boundingBox;
  7736. bool castShadows;
  7737. /* readonly */
  7738. String category;
  7739. float drawDistance;
  7740. ParticleEffect effect;
  7741. bool emitting;
  7742. bool enabled;
  7743. /* readonly */
  7744. bool enabledEffective;
  7745. FaceCameraMode faceCameraMode;
  7746. bool fixedScreenSize;
  7747. /* readonly */
  7748. uint id;
  7749. /* readonly */
  7750. bool inView;
  7751. uint lightMask;
  7752. float lodBias;
  7753. Material material;
  7754. uint maxLights;
  7755. /* readonly */
  7756. Node node;
  7757. /* readonly */
  7758. uint numAttributes;
  7759. uint numBillboards;
  7760. uint numParticles;
  7761. ObjectAnimation objectAnimation;
  7762. bool occludee;
  7763. bool occluder;
  7764. /* readonly */
  7765. int refs;
  7766. bool relative;
  7767. bool scaled;
  7768. bool serializeParticles;
  7769. float shadowDistance;
  7770. uint shadowMask;
  7771. bool sorted;
  7772. bool temporary;
  7773. /* readonly */
  7774. StringHash type;
  7775. /* readonly */
  7776. String typeName;
  7777. uint viewMask;
  7778. /* readonly */
  7779. int weakRefs;
  7780. /* readonly */
  7781. BoundingBox worldBoundingBox;
  7782. /* readonly */
  7783. Zone zone;
  7784. uint zoneMask;
  7785. };
  7786. class ParticleEmitter2D
  7787. {
  7788. // Methods:
  7789. void ApplyAttributes();
  7790. void DrawDebugGeometry(DebugRenderer, bool);
  7791. Variant GetAttribute(const String&) const;
  7792. ValueAnimation GetAttributeAnimation(const String&) const;
  7793. float GetAttributeAnimationSpeed(const String&) const;
  7794. float GetAttributeAnimationTime(const String&) const;
  7795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7796. Variant GetAttributeDefault(const String&) const;
  7797. bool GetInterceptNetworkUpdate(const String&) const;
  7798. bool HasSubscribedToEvent(Object, const String&);
  7799. bool HasSubscribedToEvent(const String&);
  7800. bool IsInView(Camera) const;
  7801. bool Load(File, bool = false);
  7802. bool Load(VectorBuffer&, bool = false);
  7803. bool LoadJSON(const JSONValue&, bool = false);
  7804. bool LoadXML(const XMLElement&, bool = false);
  7805. void MarkNetworkUpdate() const;
  7806. void Remove();
  7807. void RemoveAttributeAnimation(const String&);
  7808. void RemoveInstanceDefault();
  7809. void RemoveObjectAnimation();
  7810. void ResetToDefault();
  7811. bool Save(File) const;
  7812. bool Save(VectorBuffer&) const;
  7813. bool SaveJSON(JSONValue&) const;
  7814. bool SaveXML(XMLElement&) const;
  7815. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7816. void SetAnimationTime(float);
  7817. bool SetAttribute(const String&, const Variant&);
  7818. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7819. void SetAttributeAnimationSpeed(const String&, float);
  7820. void SetAttributeAnimationTime(const String&, float);
  7821. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7822. void SetInterceptNetworkUpdate(const String&, bool);
  7823. // Properties:
  7824. bool animationEnabled;
  7825. /* readonly */
  7826. Array<Variant> attributeDefaults;
  7827. /* readonly */
  7828. Array<AttributeInfo> attributeInfos;
  7829. Array<Variant> attributes;
  7830. BlendMode blendMode;
  7831. /* readonly */
  7832. BoundingBox boundingBox;
  7833. bool castShadows;
  7834. /* readonly */
  7835. String category;
  7836. float drawDistance;
  7837. ParticleEffect2D effect;
  7838. bool enabled;
  7839. /* readonly */
  7840. bool enabledEffective;
  7841. /* readonly */
  7842. uint id;
  7843. /* readonly */
  7844. bool inView;
  7845. int layer;
  7846. uint lightMask;
  7847. float lodBias;
  7848. uint maxLights;
  7849. /* readonly */
  7850. Node node;
  7851. /* readonly */
  7852. uint numAttributes;
  7853. ObjectAnimation objectAnimation;
  7854. bool occludee;
  7855. bool occluder;
  7856. int orderInLayer;
  7857. /* readonly */
  7858. int refs;
  7859. float shadowDistance;
  7860. uint shadowMask;
  7861. Sprite2D sprite;
  7862. bool temporary;
  7863. /* readonly */
  7864. StringHash type;
  7865. /* readonly */
  7866. String typeName;
  7867. uint viewMask;
  7868. /* readonly */
  7869. int weakRefs;
  7870. /* readonly */
  7871. BoundingBox worldBoundingBox;
  7872. uint zoneMask;
  7873. };
  7874. class Pass
  7875. {
  7876. // Properties:
  7877. bool alphaToCoverage;
  7878. BlendMode blendMode;
  7879. CullMode cullMode;
  7880. CompareMode depthTestMode;
  7881. bool depthWrite;
  7882. bool desktop;
  7883. PassLightingMode lightingMode;
  7884. String pixelShader;
  7885. String pixelShaderDefineExcludes;
  7886. String pixelShaderDefines;
  7887. /* readonly */
  7888. int refs;
  7889. String vertexShader;
  7890. String vertexShaderDefineExcludes;
  7891. String vertexShaderDefines;
  7892. /* readonly */
  7893. int weakRefs;
  7894. };
  7895. class PhysicsRaycastResult
  7896. {
  7897. // Properties:
  7898. /* readonly */
  7899. RigidBody body;
  7900. float distance;
  7901. float hitFraction;
  7902. Vector3 normal;
  7903. Vector3 position;
  7904. };
  7905. class PhysicsRaycastResult2D
  7906. {
  7907. // Properties:
  7908. /* readonly */
  7909. RigidBody2D body;
  7910. float distance;
  7911. Vector2 normal;
  7912. Vector2 position;
  7913. };
  7914. class PhysicsWorld
  7915. {
  7916. // Methods:
  7917. void ApplyAttributes();
  7918. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7919. void DrawDebugGeometry(DebugRenderer, bool);
  7920. void DrawDebugGeometry(bool);
  7921. Variant GetAttribute(const String&) const;
  7922. ValueAnimation GetAttributeAnimation(const String&) const;
  7923. float GetAttributeAnimationSpeed(const String&) const;
  7924. float GetAttributeAnimationTime(const String&) const;
  7925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7926. Variant GetAttributeDefault(const String&) const;
  7927. Array<RigidBody> GetCollidingBodies(RigidBody);
  7928. bool GetInterceptNetworkUpdate(const String&) const;
  7929. Array<RigidBody> GetRigidBodies(RigidBody);
  7930. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7931. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7932. bool HasSubscribedToEvent(Object, const String&);
  7933. bool HasSubscribedToEvent(const String&);
  7934. bool Load(File, bool = false);
  7935. bool Load(VectorBuffer&, bool = false);
  7936. bool LoadJSON(const JSONValue&, bool = false);
  7937. bool LoadXML(const XMLElement&, bool = false);
  7938. void MarkNetworkUpdate() const;
  7939. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7940. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7941. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7942. void Remove();
  7943. void RemoveAttributeAnimation(const String&);
  7944. void RemoveCachedGeometry(Model);
  7945. void RemoveInstanceDefault();
  7946. void RemoveObjectAnimation();
  7947. void ResetToDefault();
  7948. bool Save(File) const;
  7949. bool Save(VectorBuffer&) const;
  7950. bool SaveJSON(JSONValue&) const;
  7951. bool SaveXML(XMLElement&) const;
  7952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7953. void SetAnimationTime(float);
  7954. bool SetAttribute(const String&, const Variant&);
  7955. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7956. void SetAttributeAnimationSpeed(const String&, float);
  7957. void SetAttributeAnimationTime(const String&, float);
  7958. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7959. void SetInterceptNetworkUpdate(const String&, bool);
  7960. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7961. void Update(float);
  7962. void UpdateCollisions();
  7963. // Properties:
  7964. bool animationEnabled;
  7965. /* readonly */
  7966. Array<Variant> attributeDefaults;
  7967. /* readonly */
  7968. Array<AttributeInfo> attributeInfos;
  7969. Array<Variant> attributes;
  7970. /* readonly */
  7971. String category;
  7972. bool enabled;
  7973. /* readonly */
  7974. bool enabledEffective;
  7975. int fps;
  7976. Vector3 gravity;
  7977. /* readonly */
  7978. uint id;
  7979. bool internalEdge;
  7980. bool interpolation;
  7981. int maxSubSteps;
  7982. /* readonly */
  7983. Node node;
  7984. /* readonly */
  7985. uint numAttributes;
  7986. int numIterations;
  7987. ObjectAnimation objectAnimation;
  7988. /* readonly */
  7989. int refs;
  7990. bool splitImpulse;
  7991. bool temporary;
  7992. /* readonly */
  7993. StringHash type;
  7994. /* readonly */
  7995. String typeName;
  7996. bool updateEnabled;
  7997. /* readonly */
  7998. int weakRefs;
  7999. };
  8000. class PhysicsWorld2D
  8001. {
  8002. // Methods:
  8003. void ApplyAttributes();
  8004. void DrawDebugGeometry() const;
  8005. void DrawDebugGeometry(DebugRenderer, bool);
  8006. Variant GetAttribute(const String&) const;
  8007. ValueAnimation GetAttributeAnimation(const String&) const;
  8008. float GetAttributeAnimationSpeed(const String&) const;
  8009. float GetAttributeAnimationTime(const String&) const;
  8010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8011. Variant GetAttributeDefault(const String&) const;
  8012. bool GetInterceptNetworkUpdate(const String&) const;
  8013. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8014. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8015. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8016. bool HasSubscribedToEvent(Object, const String&);
  8017. bool HasSubscribedToEvent(const String&);
  8018. bool Load(File, bool = false);
  8019. bool Load(VectorBuffer&, bool = false);
  8020. bool LoadJSON(const JSONValue&, bool = false);
  8021. bool LoadXML(const XMLElement&, bool = false);
  8022. void MarkNetworkUpdate() const;
  8023. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8024. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8025. void Remove();
  8026. void RemoveAttributeAnimation(const String&);
  8027. void RemoveInstanceDefault();
  8028. void RemoveObjectAnimation();
  8029. void ResetToDefault();
  8030. bool Save(File) const;
  8031. bool Save(VectorBuffer&) const;
  8032. bool SaveJSON(JSONValue&) const;
  8033. bool SaveXML(XMLElement&) const;
  8034. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8035. void SetAnimationTime(float);
  8036. bool SetAttribute(const String&, const Variant&);
  8037. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8038. void SetAttributeAnimationSpeed(const String&, float);
  8039. void SetAttributeAnimationTime(const String&, float);
  8040. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8041. void SetInterceptNetworkUpdate(const String&, bool);
  8042. // Properties:
  8043. bool allowSleeping;
  8044. bool animationEnabled;
  8045. /* readonly */
  8046. Array<Variant> attributeDefaults;
  8047. /* readonly */
  8048. Array<AttributeInfo> attributeInfos;
  8049. Array<Variant> attributes;
  8050. bool autoClearForces;
  8051. /* readonly */
  8052. String category;
  8053. bool continuousPhysics;
  8054. bool drawAabb;
  8055. bool drawCenterOfMass;
  8056. bool drawJoint;
  8057. bool drawPair;
  8058. bool drawShape;
  8059. bool enabled;
  8060. /* readonly */
  8061. bool enabledEffective;
  8062. Vector2 gravity;
  8063. /* readonly */
  8064. uint id;
  8065. /* readonly */
  8066. Node node;
  8067. /* readonly */
  8068. uint numAttributes;
  8069. ObjectAnimation objectAnimation;
  8070. uint positionIterations;
  8071. /* readonly */
  8072. int refs;
  8073. bool subStepping;
  8074. bool temporary;
  8075. /* readonly */
  8076. StringHash type;
  8077. /* readonly */
  8078. String typeName;
  8079. bool updateEnabled;
  8080. uint velocityIterations;
  8081. bool warmStarting;
  8082. /* readonly */
  8083. int weakRefs;
  8084. };
  8085. class Plane
  8086. {
  8087. // Methods:
  8088. void Define(const Vector3&, const Vector3&);
  8089. void Define(const Vector3&, const Vector3&, const Vector3&);
  8090. void Define(const Vector4&);
  8091. float Distance(const Vector3&) const;
  8092. Vector3 Project(const Vector3&) const;
  8093. Vector3 Reflect(const Vector3&) const;
  8094. Vector4 ToVector4() const;
  8095. void Transform(const Matrix3&);
  8096. void Transform(const Matrix3x4&);
  8097. void Transform(const Matrix4&);
  8098. Plane Transformed(const Matrix3&) const;
  8099. Plane Transformed(const Matrix3x4&) const;
  8100. Plane Transformed(const Matrix4&) const;
  8101. // Properties:
  8102. Vector3 absNormal;
  8103. float d;
  8104. Vector3 normal;
  8105. /* readonly */
  8106. Matrix3x4 reflectionMatrix;
  8107. };
  8108. class Polyhedron
  8109. {
  8110. // Methods:
  8111. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8112. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8113. void AddFace(const Array<Vector3>);
  8114. void Clear();
  8115. void Clip(const BoundingBox&);
  8116. void Clip(const Frustum&);
  8117. void Define(const BoundingBox&);
  8118. void Define(const Frustum&);
  8119. void Transform(const Matrix3&);
  8120. void Transform(const Matrix3x4&);
  8121. Polyhedron Transformed(const Matrix3&) const;
  8122. Polyhedron Transformed(const Matrix3x4&) const;
  8123. // Properties:
  8124. /* readonly */
  8125. Array<Array<Vector3>> face;
  8126. /* readonly */
  8127. uint numFaces;
  8128. };
  8129. class ProgressBar
  8130. {
  8131. // Methods:
  8132. void ChangeValue(float);
  8133. bool HasSubscribedToEvent(Object, const String&);
  8134. bool HasSubscribedToEvent(const String&);
  8135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8136. void SetLoadingPercentStyle(const String&);
  8137. // Properties:
  8138. /* readonly */
  8139. String category;
  8140. /* readonly */
  8141. BorderImage knob;
  8142. Orientation orientation;
  8143. float range;
  8144. /* readonly */
  8145. int refs;
  8146. bool showPercentText;
  8147. /* readonly */
  8148. StringHash type;
  8149. /* readonly */
  8150. String typeName;
  8151. float value;
  8152. /* readonly */
  8153. int weakRefs;
  8154. };
  8155. class PropertySet2D
  8156. {
  8157. // Methods:
  8158. bool HasProperty(const String&) const;
  8159. const String& GetProperty(const String&) const;
  8160. // Properties:
  8161. /* readonly */
  8162. int refs;
  8163. /* readonly */
  8164. int weakRefs;
  8165. };
  8166. class Quaternion
  8167. {
  8168. // Methods:
  8169. Quaternion Conjugate() const;
  8170. float DotProduct(const Quaternion&) const;
  8171. bool Equals(const Quaternion&) const;
  8172. void FromAngleAxis(float, const Vector3&);
  8173. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8174. void FromEulerAngles(float, float, float);
  8175. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8176. void FromRotationMatrix(const Matrix3&);
  8177. void FromRotationTo(const Vector3&, const Vector3&);
  8178. Quaternion Inverse() const;
  8179. bool IsNaN() const;
  8180. float LengthSquared() const;
  8181. Quaternion Nlerp(Quaternion, float, bool) const;
  8182. void Normalize();
  8183. Quaternion Normalized() const;
  8184. Quaternion Slerp(Quaternion, float) const;
  8185. String ToString() const;
  8186. // Properties:
  8187. /* readonly */
  8188. Vector3 eulerAngles;
  8189. /* readonly */
  8190. float pitch;
  8191. /* readonly */
  8192. float roll;
  8193. /* readonly */
  8194. Matrix3 rotationMatrix;
  8195. float w;
  8196. float x;
  8197. float y;
  8198. /* readonly */
  8199. float yaw;
  8200. float z;
  8201. };
  8202. class Ray
  8203. {
  8204. // Methods:
  8205. Vector3 ClosestPoint(const Ray&) const;
  8206. void Define(const Vector3&, const Vector3&);
  8207. float Distance(const Vector3&) const;
  8208. float HitDistance(const BoundingBox&) const;
  8209. float HitDistance(const Frustum&, bool = true) const;
  8210. float HitDistance(const Plane&) const;
  8211. float HitDistance(const Sphere&) const;
  8212. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8213. Vector3 Project(const Vector3&) const;
  8214. Ray Transformed(const Matrix3x4&) const;
  8215. // Properties:
  8216. Vector3 direction;
  8217. Vector3 origin;
  8218. };
  8219. class RayQueryResult
  8220. {
  8221. // Properties:
  8222. float distance;
  8223. /* readonly */
  8224. Drawable drawable;
  8225. /* readonly */
  8226. Node node;
  8227. Vector3 normal;
  8228. Vector3 position;
  8229. uint subObject;
  8230. Vector2 textureUV;
  8231. };
  8232. class Rect
  8233. {
  8234. // Methods:
  8235. void Clear();
  8236. void Clip(const Rect&);
  8237. void Define(const Vector2&);
  8238. void Define(const Vector2&, const Vector2&);
  8239. bool Defined() const;
  8240. bool Equals(const Rect&) const;
  8241. Intersection IsInside(const Rect&) const;
  8242. Intersection IsInside(const Vector2&) const;
  8243. void Merge(const Rect&);
  8244. void Merge(const Vector2&);
  8245. Vector4 ToVector4() const;
  8246. // Properties:
  8247. float bottom;
  8248. /* readonly */
  8249. Vector2 center;
  8250. /* readonly */
  8251. Vector2 halfSize;
  8252. float left;
  8253. Vector2 max;
  8254. Vector2 min;
  8255. float right;
  8256. /* readonly */
  8257. Vector2 size;
  8258. float top;
  8259. };
  8260. class RefCounted
  8261. {
  8262. // Properties:
  8263. /* readonly */
  8264. int refs;
  8265. /* readonly */
  8266. int weakRefs;
  8267. };
  8268. class RenderPath
  8269. {
  8270. // Methods:
  8271. void AddCommand(const RenderPathCommand&);
  8272. void AddRenderTarget(const RenderTargetInfo&);
  8273. bool Append(XMLFile);
  8274. RenderPath Clone();
  8275. void InsertCommand(uint, const RenderPathCommand&);
  8276. bool Load(XMLFile);
  8277. void RemoveCommand(uint);
  8278. void RemoveCommands(const String&);
  8279. void RemoveRenderTarget(const String&);
  8280. void RemoveRenderTarget(uint);
  8281. void RemoveRenderTargts(const String&);
  8282. void SetEnabled(const String&, bool);
  8283. void ToggleEnabled(const String&);
  8284. // Properties:
  8285. Array<RenderPathCommand> commands;
  8286. /* readonly */
  8287. uint numCommands;
  8288. /* readonly */
  8289. uint numRenderTargets;
  8290. /* readonly */
  8291. int refs;
  8292. Array<RenderTargetInfo> renderTargets;
  8293. Array<Variant> shaderParameters;
  8294. /* readonly */
  8295. int weakRefs;
  8296. };
  8297. class RenderPathCommand
  8298. {
  8299. // Methods:
  8300. void RemoveShaderParameter(const String&);
  8301. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8302. // Properties:
  8303. BlendMode blendMode;
  8304. Color clearColor;
  8305. float clearDepth;
  8306. uint clearFlags;
  8307. uint clearStencil;
  8308. String depthStencilName;
  8309. bool enabled;
  8310. String eventName;
  8311. bool markToStencil;
  8312. String metadata;
  8313. uint numOutputs;
  8314. Array<CubeMapFace> outputFaces;
  8315. Array<String> outputNames;
  8316. String pass;
  8317. String pixelShaderDefines;
  8318. String pixelShaderName;
  8319. Array<Variant> shaderParameters;
  8320. RenderCommandSortMode sortMode;
  8321. String tag;
  8322. Array<String> textureNames;
  8323. RenderCommandType type;
  8324. bool useFogColor;
  8325. bool useLitBase;
  8326. bool vertexLights;
  8327. String vertexShaderDefines;
  8328. String vertexShaderName;
  8329. };
  8330. class RenderSurface
  8331. {
  8332. // Methods:
  8333. void QueueUpdate();
  8334. // Properties:
  8335. /* readonly */
  8336. int height;
  8337. RenderSurface linkedDepthStencil;
  8338. RenderSurface linkedRenderTarget;
  8339. uint numViewports;
  8340. /* readonly */
  8341. Texture parentTexture;
  8342. /* readonly */
  8343. bool resolveDirty;
  8344. RenderSurfaceUpdateMode updateMode;
  8345. /* readonly */
  8346. TextureUsage usage;
  8347. Array<Viewport> viewports;
  8348. /* readonly */
  8349. int width;
  8350. };
  8351. class RenderTargetInfo
  8352. {
  8353. // Properties:
  8354. bool autoResolve;
  8355. bool cubemap;
  8356. bool enabled;
  8357. bool filtered;
  8358. uint format;
  8359. int multiSample;
  8360. String name;
  8361. bool persistent;
  8362. bool sRGB;
  8363. Vector2 size;
  8364. RenderTargetSizeMode sizeMode;
  8365. String tag;
  8366. };
  8367. class Renderer
  8368. {
  8369. // Methods:
  8370. void DrawDebugGeometry(bool) const;
  8371. bool HasSubscribedToEvent(Object, const String&);
  8372. bool HasSubscribedToEvent(const String&);
  8373. void ReloadShaders() const;
  8374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8375. void SetDefaultRenderPath(XMLFile);
  8376. void SetVSMShadowParameters(float, float);
  8377. // Properties:
  8378. /* readonly */
  8379. String category;
  8380. /* readonly */
  8381. Material defaultLightRamp;
  8382. /* readonly */
  8383. Material defaultLightSpot;
  8384. /* readonly */
  8385. Material defaultMaterial;
  8386. RenderPath defaultRenderPath;
  8387. Technique defaultTechnique;
  8388. /* readonly */
  8389. Zone defaultZone;
  8390. bool drawShadows;
  8391. bool dynamicInstancing;
  8392. bool hdrRendering;
  8393. int materialQuality;
  8394. int maxOccluderTriangles;
  8395. int maxShadowMaps;
  8396. int maxSortedInstances;
  8397. int minInstances;
  8398. float mobileNormalOffsetMul;
  8399. float mobileShadowBiasAdd;
  8400. float mobileShadowBiasMul;
  8401. /* readonly */
  8402. uint numBatches;
  8403. int numExtraInstancingBufferElements;
  8404. /* readonly */
  8405. Array<uint> numGeometries;
  8406. /* readonly */
  8407. Array<uint> numLights;
  8408. /* readonly */
  8409. Array<uint> numOccluders;
  8410. /* readonly */
  8411. uint numPrimitives;
  8412. /* readonly */
  8413. Array<uint> numShadowMaps;
  8414. uint numViewports;
  8415. /* readonly */
  8416. uint numViews;
  8417. float occluderSizeThreshold;
  8418. int occlusionBufferSize;
  8419. /* readonly */
  8420. int refs;
  8421. bool reuseShadowMaps;
  8422. int shadowMapSize;
  8423. ShadowQuality shadowQuality;
  8424. float shadowSoftness;
  8425. bool specularLighting;
  8426. int textureAnisotropy;
  8427. TextureFilterMode textureFilterMode;
  8428. int textureQuality;
  8429. bool threadedOcclusion;
  8430. /* readonly */
  8431. StringHash type;
  8432. /* readonly */
  8433. String typeName;
  8434. Array<Viewport> viewports;
  8435. int vsmMultiSample;
  8436. Vector2 vsmShadowParameters;
  8437. /* readonly */
  8438. int weakRefs;
  8439. };
  8440. class Resource
  8441. {
  8442. // Methods:
  8443. bool HasSubscribedToEvent(Object, const String&);
  8444. bool HasSubscribedToEvent(const String&);
  8445. bool Load(File);
  8446. bool Load(VectorBuffer&);
  8447. bool Load(const String&);
  8448. bool Save(File) const;
  8449. bool Save(VectorBuffer&) const;
  8450. bool Save(const String&) const;
  8451. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8452. // Properties:
  8453. /* readonly */
  8454. String category;
  8455. /* readonly */
  8456. uint memoryUse;
  8457. String name;
  8458. /* readonly */
  8459. int refs;
  8460. /* readonly */
  8461. StringHash type;
  8462. /* readonly */
  8463. String typeName;
  8464. /* readonly */
  8465. uint useTimer;
  8466. /* readonly */
  8467. int weakRefs;
  8468. };
  8469. class ResourceCache
  8470. {
  8471. // Methods:
  8472. bool AddManualResource(Resource);
  8473. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8474. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8475. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8476. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8477. bool Exists(const String&) const;
  8478. Resource GetExistingResource(StringHash, const String&);
  8479. Resource GetExistingResource(const String&, const String&);
  8480. File GetFile(const String&);
  8481. String GetPreferredResourceDir(const String&) const;
  8482. Resource GetResource(StringHash, const String&, bool = true);
  8483. Resource GetResource(const String&, const String&, bool = true);
  8484. String GetResourceFileName(const String&) const;
  8485. bool HasSubscribedToEvent(Object, const String&);
  8486. bool HasSubscribedToEvent(const String&);
  8487. void ReleaseAllResources(bool = false);
  8488. void ReleaseResource(const String&, const String&, bool = false);
  8489. void ReleaseResources(StringHash, bool = false);
  8490. void ReleaseResources(const String&, bool = false);
  8491. void ReleaseResources(const String&, const String&, bool = false);
  8492. bool ReloadResource(Resource);
  8493. void ReloadResourceWithDependencies(const String&);
  8494. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8495. void RemovePackageFile(const String&, bool = true, bool = false);
  8496. void RemoveResourceDir(const String&);
  8497. String SanitateResourceDirName(const String&) const;
  8498. String SanitateResourceName(const String&) const;
  8499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8500. // Properties:
  8501. bool autoReloadResources;
  8502. /* readonly */
  8503. String category;
  8504. int finishBackgroundResourcesMs;
  8505. Array<uint64> memoryBudget;
  8506. /* readonly */
  8507. Array<uint64> memoryUse;
  8508. /* readonly */
  8509. uint numBackgroundLoadResources;
  8510. /* readonly */
  8511. Array<PackageFile> packageFiles;
  8512. /* readonly */
  8513. int refs;
  8514. /* readonly */
  8515. Array<String> resourceDirs;
  8516. bool returnFailedResources;
  8517. /* readonly */
  8518. bool seachPackagesFirst;
  8519. /* writeonly */
  8520. bool searchPackagesFirst;
  8521. /* readonly */
  8522. uint64 totalMemoryUse;
  8523. /* readonly */
  8524. StringHash type;
  8525. /* readonly */
  8526. String typeName;
  8527. /* readonly */
  8528. int weakRefs;
  8529. };
  8530. class ResourceRef
  8531. {
  8532. // Properties:
  8533. String name;
  8534. StringHash type;
  8535. };
  8536. class ResourceRefList
  8537. {
  8538. // Methods:
  8539. void Resize(uint);
  8540. // Properties:
  8541. /* readonly */
  8542. bool empty;
  8543. /* readonly */
  8544. uint length;
  8545. Array<String> names;
  8546. StringHash type;
  8547. };
  8548. class RibbonTrail
  8549. {
  8550. // Methods:
  8551. void ApplyAttributes();
  8552. void Commit();
  8553. void DrawDebugGeometry(DebugRenderer, bool);
  8554. Variant GetAttribute(const String&) const;
  8555. ValueAnimation GetAttributeAnimation(const String&) const;
  8556. float GetAttributeAnimationSpeed(const String&) const;
  8557. float GetAttributeAnimationTime(const String&) const;
  8558. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8559. Variant GetAttributeDefault(const String&) const;
  8560. bool GetInterceptNetworkUpdate(const String&) const;
  8561. bool HasSubscribedToEvent(Object, const String&);
  8562. bool HasSubscribedToEvent(const String&);
  8563. bool IsInView(Camera) const;
  8564. bool Load(File, bool = false);
  8565. bool Load(VectorBuffer&, bool = false);
  8566. bool LoadJSON(const JSONValue&, bool = false);
  8567. bool LoadXML(const XMLElement&, bool = false);
  8568. void MarkNetworkUpdate() const;
  8569. void Remove();
  8570. void RemoveAttributeAnimation(const String&);
  8571. void RemoveInstanceDefault();
  8572. void RemoveObjectAnimation();
  8573. void ResetToDefault();
  8574. bool Save(File) const;
  8575. bool Save(VectorBuffer&) const;
  8576. bool SaveJSON(JSONValue&) const;
  8577. bool SaveXML(XMLElement&) const;
  8578. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8579. void SetAnimationTime(float);
  8580. bool SetAttribute(const String&, const Variant&);
  8581. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8582. void SetAttributeAnimationSpeed(const String&, float);
  8583. void SetAttributeAnimationTime(const String&, float);
  8584. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8585. void SetInterceptNetworkUpdate(const String&, bool);
  8586. // Properties:
  8587. bool animationEnabled;
  8588. float animationLodBias;
  8589. /* readonly */
  8590. Array<Variant> attributeDefaults;
  8591. /* readonly */
  8592. Array<AttributeInfo> attributeInfos;
  8593. Array<Variant> attributes;
  8594. /* readonly */
  8595. BoundingBox boundingBox;
  8596. bool castShadows;
  8597. /* readonly */
  8598. String category;
  8599. float drawDistance;
  8600. bool emitting;
  8601. bool enabled;
  8602. /* readonly */
  8603. bool enabledEffective;
  8604. Color endColor;
  8605. float endScale;
  8606. /* readonly */
  8607. uint id;
  8608. /* readonly */
  8609. bool inView;
  8610. float lifetime;
  8611. uint lightMask;
  8612. float lodBias;
  8613. Material material;
  8614. uint maxLights;
  8615. /* readonly */
  8616. Node node;
  8617. /* readonly */
  8618. uint numAttributes;
  8619. ObjectAnimation objectAnimation;
  8620. bool occludee;
  8621. bool occluder;
  8622. /* readonly */
  8623. int refs;
  8624. float shadowDistance;
  8625. uint shadowMask;
  8626. bool sorted;
  8627. Color startColor;
  8628. float startScale;
  8629. uint tailColumn;
  8630. bool temporary;
  8631. TrailType trailType;
  8632. /* readonly */
  8633. StringHash type;
  8634. /* readonly */
  8635. String typeName;
  8636. bool updateInvisible;
  8637. float vertexDistance;
  8638. uint viewMask;
  8639. /* readonly */
  8640. int weakRefs;
  8641. float width;
  8642. /* readonly */
  8643. BoundingBox worldBoundingBox;
  8644. /* readonly */
  8645. Zone zone;
  8646. uint zoneMask;
  8647. };
  8648. class RigidBody
  8649. {
  8650. // Methods:
  8651. void Activate();
  8652. void ApplyAttributes();
  8653. void ApplyForce(const Vector3&);
  8654. void ApplyForce(const Vector3&, const Vector3&);
  8655. void ApplyImpulse(const Vector3&);
  8656. void ApplyImpulse(const Vector3&, const Vector3&);
  8657. void ApplyTorque(const Vector3&);
  8658. void ApplyTorqueImpulse(const Vector3&);
  8659. void DisableMassUpdate();
  8660. void DrawDebugGeometry(DebugRenderer, bool);
  8661. void EnableMassUpdate();
  8662. Variant GetAttribute(const String&) const;
  8663. ValueAnimation GetAttributeAnimation(const String&) const;
  8664. float GetAttributeAnimationSpeed(const String&) const;
  8665. float GetAttributeAnimationTime(const String&) const;
  8666. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8667. Variant GetAttributeDefault(const String&) const;
  8668. bool GetInterceptNetworkUpdate(const String&) const;
  8669. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8670. bool HasSubscribedToEvent(Object, const String&);
  8671. bool HasSubscribedToEvent(const String&);
  8672. bool Load(File, bool = false);
  8673. bool Load(VectorBuffer&, bool = false);
  8674. bool LoadJSON(const JSONValue&, bool = false);
  8675. bool LoadXML(const XMLElement&, bool = false);
  8676. void MarkNetworkUpdate() const;
  8677. void ReAddBodyToWorld();
  8678. void Remove();
  8679. void RemoveAttributeAnimation(const String&);
  8680. void RemoveInstanceDefault();
  8681. void RemoveObjectAnimation();
  8682. void ResetForces();
  8683. void ResetToDefault();
  8684. bool Save(File) const;
  8685. bool Save(VectorBuffer&) const;
  8686. bool SaveJSON(JSONValue&) const;
  8687. bool SaveXML(XMLElement&) const;
  8688. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8689. void SetAnimationTime(float);
  8690. bool SetAttribute(const String&, const Variant&);
  8691. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8692. void SetAttributeAnimationSpeed(const String&, float);
  8693. void SetAttributeAnimationTime(const String&, float);
  8694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8695. void SetCollisionLayerAndMask(uint, uint);
  8696. void SetInterceptNetworkUpdate(const String&, bool);
  8697. void SetTransform(const Vector3&, const Quaternion&);
  8698. // Properties:
  8699. /* readonly */
  8700. bool active;
  8701. float angularDamping;
  8702. Vector3 angularFactor;
  8703. float angularRestThreshold;
  8704. Vector3 angularVelocity;
  8705. bool animationEnabled;
  8706. Vector3 anisotropicFriction;
  8707. /* readonly */
  8708. Array<Variant> attributeDefaults;
  8709. /* readonly */
  8710. Array<AttributeInfo> attributeInfos;
  8711. Array<Variant> attributes;
  8712. /* readonly */
  8713. String category;
  8714. float ccdMotionThreshold;
  8715. float ccdRadius;
  8716. /* readonly */
  8717. Vector3 centerOfMass;
  8718. /* readonly */
  8719. Array<RigidBody> collidingBodies;
  8720. CollisionEventMode collisionEventMode;
  8721. uint collisionLayer;
  8722. uint collisionMask;
  8723. float contactProcessingThreshold;
  8724. bool enabled;
  8725. /* readonly */
  8726. bool enabledEffective;
  8727. float friction;
  8728. Vector3 gravityOverride;
  8729. /* readonly */
  8730. uint id;
  8731. bool kinematic;
  8732. float linearDamping;
  8733. Vector3 linearFactor;
  8734. float linearRestThreshold;
  8735. Vector3 linearVelocity;
  8736. float mass;
  8737. /* readonly */
  8738. Node node;
  8739. /* readonly */
  8740. uint numAttributes;
  8741. ObjectAnimation objectAnimation;
  8742. Vector3 position;
  8743. /* readonly */
  8744. int refs;
  8745. float restitution;
  8746. float rollingFriction;
  8747. Quaternion rotation;
  8748. bool temporary;
  8749. bool trigger;
  8750. /* readonly */
  8751. StringHash type;
  8752. /* readonly */
  8753. String typeName;
  8754. bool useGravity;
  8755. /* readonly */
  8756. int weakRefs;
  8757. };
  8758. class RigidBody2D
  8759. {
  8760. // Methods:
  8761. void ApplyAngularImpulse(float, bool);
  8762. void ApplyAttributes();
  8763. void ApplyForce(const Vector2&, const Vector2&, bool);
  8764. void ApplyForceToCenter(const Vector2&, bool);
  8765. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8766. void ApplyTorque(float, bool);
  8767. void DrawDebugGeometry(DebugRenderer, bool);
  8768. Variant GetAttribute(const String&) const;
  8769. ValueAnimation GetAttributeAnimation(const String&) const;
  8770. float GetAttributeAnimationSpeed(const String&) const;
  8771. float GetAttributeAnimationTime(const String&) const;
  8772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8773. Variant GetAttributeDefault(const String&) const;
  8774. bool GetInterceptNetworkUpdate(const String&) const;
  8775. bool HasSubscribedToEvent(Object, const String&);
  8776. bool HasSubscribedToEvent(const String&);
  8777. bool Load(File, bool = false);
  8778. bool Load(VectorBuffer&, bool = false);
  8779. bool LoadJSON(const JSONValue&, bool = false);
  8780. bool LoadXML(const XMLElement&, bool = false);
  8781. void MarkNetworkUpdate() const;
  8782. void Remove();
  8783. void RemoveAttributeAnimation(const String&);
  8784. void RemoveInstanceDefault();
  8785. void RemoveObjectAnimation();
  8786. void ResetToDefault();
  8787. bool Save(File) const;
  8788. bool Save(VectorBuffer&) const;
  8789. bool SaveJSON(JSONValue&) const;
  8790. bool SaveXML(XMLElement&) const;
  8791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8792. void SetAnimationTime(float);
  8793. bool SetAttribute(const String&, const Variant&);
  8794. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8795. void SetAttributeAnimationSpeed(const String&, float);
  8796. void SetAttributeAnimationTime(const String&, float);
  8797. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8798. void SetInterceptNetworkUpdate(const String&, bool);
  8799. // Properties:
  8800. bool allowSleep;
  8801. float angularDamping;
  8802. bool animationEnabled;
  8803. /* readonly */
  8804. Array<Variant> attributeDefaults;
  8805. /* readonly */
  8806. Array<AttributeInfo> attributeInfos;
  8807. Array<Variant> attributes;
  8808. bool awake;
  8809. BodyType2D bodyType;
  8810. bool bullet;
  8811. /* readonly */
  8812. String category;
  8813. bool enabled;
  8814. /* readonly */
  8815. bool enabledEffective;
  8816. bool fixedRotation;
  8817. float gravityScale;
  8818. /* readonly */
  8819. uint id;
  8820. float inertia;
  8821. float linearDamping;
  8822. Vector2 linearVelocity;
  8823. float mass;
  8824. Vector2 massCenter;
  8825. /* readonly */
  8826. Node node;
  8827. /* readonly */
  8828. uint numAttributes;
  8829. ObjectAnimation objectAnimation;
  8830. /* readonly */
  8831. int refs;
  8832. bool temporary;
  8833. /* readonly */
  8834. StringHash type;
  8835. /* readonly */
  8836. String typeName;
  8837. bool useFixtureMass;
  8838. /* readonly */
  8839. int weakRefs;
  8840. };
  8841. class Scene
  8842. {
  8843. // Methods:
  8844. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8845. void AddRequiredPackageFile(PackageFile);
  8846. void AddTag(const String&);
  8847. void AddTags(const String&, int8 = ';');
  8848. void ApplyAttributes();
  8849. void Clear(bool = true, bool = true);
  8850. void ClearRequiredPackageFiles();
  8851. Component CloneComponent(Component, CreateMode, uint = 0);
  8852. Component CloneComponent(Component, uint = 0);
  8853. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  8854. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8855. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8856. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8857. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8858. Variant GetAttribute(const String&) const;
  8859. ValueAnimation GetAttributeAnimation(const String&) const;
  8860. float GetAttributeAnimationSpeed(const String&) const;
  8861. float GetAttributeAnimationTime(const String&) const;
  8862. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8863. Variant GetAttributeDefault(const String&) const;
  8864. Node GetChild(const String&, bool = false) const;
  8865. Array<Node> GetChildren(bool = false) const;
  8866. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8867. Array<Node> GetChildrenWithScript(bool = false) const;
  8868. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8869. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8870. Component GetComponent(const String&, bool = false) const;
  8871. Component GetComponent(uint) const;
  8872. Array<Component> GetComponents() const;
  8873. Array<Component> GetComponents(const String&, bool = false) const;
  8874. bool GetInterceptNetworkUpdate(const String&) const;
  8875. Node GetNode(uint) const;
  8876. Array<Node> GetNodesWithTag(const String&) const;
  8877. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8878. Component GetParentComponent(const String&, bool = false) const;
  8879. ScriptObject GetScriptObject() const;
  8880. ScriptObject GetScriptObject(const String&) const;
  8881. bool HasComponent(const String&) const;
  8882. bool HasSubscribedToEvent(Object, const String&);
  8883. bool HasSubscribedToEvent(const String&);
  8884. bool HasTag(const String&);
  8885. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8886. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8887. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8888. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8889. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8890. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8891. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8892. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8893. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8894. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8895. bool Load(File, bool = false);
  8896. bool Load(VectorBuffer&, bool = false);
  8897. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8898. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8899. bool LoadJSON(File);
  8900. bool LoadJSON(VectorBuffer&);
  8901. bool LoadJSON(const JSONValue&, bool = false);
  8902. bool LoadXML(File);
  8903. bool LoadXML(VectorBuffer&);
  8904. bool LoadXML(const XMLElement&, bool = false);
  8905. Vector3 LocalToWorld(const Vector3&) const;
  8906. Vector3 LocalToWorld(const Vector4&) const;
  8907. Vector2 LocalToWorld2D(const Vector2&) const;
  8908. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8909. void MarkNetworkUpdate() const;
  8910. void Pitch(float, TransformSpace = TS_LOCAL);
  8911. void RegisterVar(const String&);
  8912. void Remove();
  8913. void RemoveAllChildren();
  8914. void RemoveAllComponents();
  8915. void RemoveAllTags();
  8916. void RemoveAttributeAnimation(const String&);
  8917. void RemoveChild(Node);
  8918. void RemoveChildren(bool, bool, bool);
  8919. void RemoveComponent(Component);
  8920. void RemoveComponent(const String&);
  8921. void RemoveComponents(bool, bool);
  8922. void RemoveComponents(const String&);
  8923. void RemoveInstanceDefault();
  8924. void RemoveObjectAnimation();
  8925. bool RemoveTag(const String&);
  8926. void ReorderComponent(Component, uint);
  8927. void ResetToDefault();
  8928. void Roll(float, TransformSpace = TS_LOCAL);
  8929. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8930. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8931. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8932. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8933. bool Save(File) const;
  8934. bool Save(VectorBuffer&) const;
  8935. bool SaveJSON(File, const String& = "\t");
  8936. bool SaveJSON(JSONValue&) const;
  8937. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8938. bool SaveXML(File, const String& = "\t");
  8939. bool SaveXML(VectorBuffer&, const String& = "\t");
  8940. bool SaveXML(XMLElement&) const;
  8941. void Scale(const Vector3&);
  8942. void Scale(float);
  8943. void Scale2D(const Vector2&);
  8944. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8945. void SetAnimationTime(float);
  8946. bool SetAttribute(const String&, const Variant&);
  8947. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8948. void SetAttributeAnimationSpeed(const String&, float);
  8949. void SetAttributeAnimationTime(const String&, float);
  8950. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8951. void SetInterceptNetworkUpdate(const String&, bool);
  8952. void SetPosition2D(float, float);
  8953. void SetScale(float);
  8954. void SetScale2D(float, float);
  8955. void SetTransform(const Matrix3x4&);
  8956. void SetTransform(const Vector3&, const Quaternion&);
  8957. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8958. void SetTransform(const Vector3&, const Quaternion&, float);
  8959. void SetTransform2D(const Vector2&, float);
  8960. void SetTransform2D(const Vector2&, float, const Vector2&);
  8961. void SetTransform2D(const Vector2&, float, float);
  8962. void SetWorldTransform(const Vector3&, const Quaternion&);
  8963. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8964. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8965. void SetWorldTransform2D(const Vector2&, float);
  8966. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8967. void SetWorldTransform2D(const Vector2&, float, float);
  8968. void StopAsyncLoading();
  8969. const String& GetVarName(StringHash) const;
  8970. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8971. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8972. void UnregisterAllVars(const String&);
  8973. void UnregisterVar(const String&);
  8974. void Update(float);
  8975. Vector3 WorldToLocal(const Vector3&) const;
  8976. Vector3 WorldToLocal(const Vector4&) const;
  8977. Vector2 WorldToLocal2D(const Vector2&) const;
  8978. void Yaw(float, TransformSpace = TS_LOCAL);
  8979. // Properties:
  8980. bool animationEnabled;
  8981. /* readonly */
  8982. LoadMode asyncLoadMode;
  8983. /* readonly */
  8984. bool asyncLoading;
  8985. int asyncLoadingMs;
  8986. /* readonly */
  8987. float asyncProgress;
  8988. /* readonly */
  8989. Array<Variant> attributeDefaults;
  8990. /* readonly */
  8991. Array<AttributeInfo> attributeInfos;
  8992. Array<Variant> attributes;
  8993. /* readonly */
  8994. String category;
  8995. /* readonly */
  8996. uint checksum;
  8997. /* readonly */
  8998. Array<Node> children;
  8999. /* readonly */
  9000. Array<Component> components;
  9001. /* readonly */
  9002. DebugRenderer debugRenderer;
  9003. Vector3 direction;
  9004. float elapsedTime;
  9005. /* readonly */
  9006. String fileName;
  9007. uint id;
  9008. String name;
  9009. /* readonly */
  9010. uint numAllChildren;
  9011. /* readonly */
  9012. uint numAttributes;
  9013. /* readonly */
  9014. uint numChildren;
  9015. /* readonly */
  9016. uint numComponents;
  9017. ObjectAnimation objectAnimation;
  9018. /* readonly */
  9019. Octree octree;
  9020. Node parent;
  9021. /* readonly */
  9022. PhysicsWorld physicsWorld;
  9023. /* readonly */
  9024. PhysicsWorld2D physicsWorld2D;
  9025. Vector3 position;
  9026. Vector2 position2D;
  9027. /* readonly */
  9028. int refs;
  9029. /* readonly */
  9030. Array<PackageFile> requiredPackageFiles;
  9031. /* readonly */
  9032. Vector3 right;
  9033. Quaternion rotation;
  9034. float rotation2D;
  9035. Vector3 scale;
  9036. Vector2 scale2D;
  9037. /* readonly */
  9038. ScriptObject scriptObject;
  9039. float smoothingConstant;
  9040. float snapThreshold;
  9041. /* readonly */
  9042. Array<String> tags;
  9043. bool temporary;
  9044. float timeScale;
  9045. /* readonly */
  9046. Matrix3x4 transform;
  9047. /* readonly */
  9048. StringHash type;
  9049. /* readonly */
  9050. String typeName;
  9051. /* readonly */
  9052. Vector3 up;
  9053. bool updateEnabled;
  9054. /* readonly */
  9055. VariantMap vars;
  9056. /* readonly */
  9057. int weakRefs;
  9058. Vector3 worldDirection;
  9059. Vector3 worldPosition;
  9060. Vector2 worldPosition2D;
  9061. /* readonly */
  9062. Vector3 worldRight;
  9063. Quaternion worldRotation;
  9064. float worldRotation2D;
  9065. Vector3 worldScale;
  9066. Vector2 worldScale2D;
  9067. /* readonly */
  9068. Matrix3x4 worldTransform;
  9069. /* readonly */
  9070. Vector3 worldUp;
  9071. };
  9072. class Script
  9073. {
  9074. // Methods:
  9075. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9076. bool Execute(const String&);
  9077. bool HasSubscribedToEvent(Object, const String&);
  9078. bool HasSubscribedToEvent(const String&);
  9079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9080. // Properties:
  9081. /* readonly */
  9082. String category;
  9083. Scene defaultScene;
  9084. ScriptFile defaultScriptFile;
  9085. bool executeConsoleCommands;
  9086. /* readonly */
  9087. int refs;
  9088. /* readonly */
  9089. StringHash type;
  9090. /* readonly */
  9091. String typeName;
  9092. /* readonly */
  9093. int weakRefs;
  9094. };
  9095. class ScriptFile
  9096. {
  9097. // Methods:
  9098. void ClearDelayedExecute(const String& = String ( ));
  9099. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9100. bool Execute(const String&, const Array<Variant> = null);
  9101. bool HasSubscribedToEvent(Object, const String&);
  9102. bool HasSubscribedToEvent(const String&);
  9103. bool Load(File);
  9104. bool Load(VectorBuffer&);
  9105. bool Load(const String&);
  9106. bool Save(File) const;
  9107. bool Save(VectorBuffer&) const;
  9108. bool Save(const String&) const;
  9109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9110. // Properties:
  9111. /* readonly */
  9112. String category;
  9113. /* readonly */
  9114. bool compiled;
  9115. /* readonly */
  9116. uint memoryUse;
  9117. String name;
  9118. /* readonly */
  9119. int refs;
  9120. /* readonly */
  9121. StringHash type;
  9122. /* readonly */
  9123. String typeName;
  9124. /* readonly */
  9125. uint useTimer;
  9126. /* readonly */
  9127. int weakRefs;
  9128. };
  9129. class ScriptInstance
  9130. {
  9131. // Methods:
  9132. void ApplyAttributes();
  9133. void ClearDelayedExecute(const String& = String ( ));
  9134. bool CreateObject(ScriptFile, const String&);
  9135. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9136. void DrawDebugGeometry(DebugRenderer, bool);
  9137. bool Execute(const String&, const Array<Variant> = null);
  9138. Variant GetAttribute(const String&) const;
  9139. ValueAnimation GetAttributeAnimation(const String&) const;
  9140. float GetAttributeAnimationSpeed(const String&) const;
  9141. float GetAttributeAnimationTime(const String&) const;
  9142. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9143. Variant GetAttributeDefault(const String&) const;
  9144. bool GetInterceptNetworkUpdate(const String&) const;
  9145. bool HasMethod(const String&) const;
  9146. bool HasSubscribedToEvent(Object, const String&);
  9147. bool HasSubscribedToEvent(const String&);
  9148. bool IsA(const String&) const;
  9149. bool Load(File, bool = false);
  9150. bool Load(VectorBuffer&, bool = false);
  9151. bool LoadJSON(const JSONValue&, bool = false);
  9152. bool LoadXML(const XMLElement&, bool = false);
  9153. void MarkNetworkUpdate() const;
  9154. void Remove();
  9155. void RemoveAttributeAnimation(const String&);
  9156. void RemoveInstanceDefault();
  9157. void RemoveObjectAnimation();
  9158. void ResetToDefault();
  9159. bool Save(File) const;
  9160. bool Save(VectorBuffer&) const;
  9161. bool SaveJSON(JSONValue&) const;
  9162. bool SaveXML(XMLElement&) const;
  9163. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9164. void SetAnimationTime(float);
  9165. bool SetAttribute(const String&, const Variant&);
  9166. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9167. void SetAttributeAnimationSpeed(const String&, float);
  9168. void SetAttributeAnimationTime(const String&, float);
  9169. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9170. void SetInterceptNetworkUpdate(const String&, bool);
  9171. // Properties:
  9172. bool animationEnabled;
  9173. /* readonly */
  9174. Array<Variant> attributeDefaults;
  9175. /* readonly */
  9176. Array<AttributeInfo> attributeInfos;
  9177. Array<Variant> attributes;
  9178. /* readonly */
  9179. String category;
  9180. String className;
  9181. bool enabled;
  9182. /* readonly */
  9183. bool enabledEffective;
  9184. /* readonly */
  9185. uint id;
  9186. /* readonly */
  9187. Node node;
  9188. /* readonly */
  9189. uint numAttributes;
  9190. ObjectAnimation objectAnimation;
  9191. /* readonly */
  9192. int refs;
  9193. ScriptFile scriptFile;
  9194. /* readonly */
  9195. ScriptObject scriptObject;
  9196. bool temporary;
  9197. /* readonly */
  9198. StringHash type;
  9199. /* readonly */
  9200. String typeName;
  9201. /* readonly */
  9202. int weakRefs;
  9203. };
  9204. class ScriptObject
  9205. {
  9206. };
  9207. class ScrollBar
  9208. {
  9209. // Methods:
  9210. void AddChild(UIElement);
  9211. void AddTag(const String&);
  9212. void AddTags(const String&, int8 = ';');
  9213. void ApplyAttributes();
  9214. void BringToFront();
  9215. void ChangeValue(float);
  9216. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9217. void DisableLayoutUpdate();
  9218. IntVector2 ElementToScreen(const IntVector2&);
  9219. void EnableLayoutUpdate();
  9220. uint FindChild(UIElement) const;
  9221. Variant GetAttribute(const String&) const;
  9222. ValueAnimation GetAttributeAnimation(const String&) const;
  9223. float GetAttributeAnimationSpeed(const String&) const;
  9224. float GetAttributeAnimationTime(const String&) const;
  9225. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9226. Variant GetAttributeDefault(const String&) const;
  9227. UIElement GetChild(const String&, bool = false) const;
  9228. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9229. Array<UIElement> GetChildren(bool = false) const;
  9230. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9231. UIElement GetElementEventSender() const;
  9232. bool GetInterceptNetworkUpdate(const String&) const;
  9233. uint GetNumChildren(bool) const;
  9234. bool HasSubscribedToEvent(Object, const String&);
  9235. bool HasSubscribedToEvent(const String&);
  9236. bool HasTag(const String&) const;
  9237. void InsertChild(uint, UIElement);
  9238. bool IsInside(IntVector2, bool);
  9239. bool IsInsideCombined(IntVector2, bool);
  9240. bool Load(File, bool = false);
  9241. bool Load(VectorBuffer&, bool = false);
  9242. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9243. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9244. bool LoadJSON(const JSONValue&, bool = false);
  9245. bool LoadXML(File);
  9246. bool LoadXML(VectorBuffer&);
  9247. bool LoadXML(XMLFile, XMLFile);
  9248. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9249. bool LoadXML(const XMLElement&, bool = false);
  9250. void MarkNetworkUpdate() const;
  9251. void Remove();
  9252. void RemoveAllChildren();
  9253. void RemoveAllTags();
  9254. void RemoveAttributeAnimation(const String&);
  9255. void RemoveChild(UIElement, uint = 0);
  9256. void RemoveChild(uint);
  9257. void RemoveInstanceDefault();
  9258. void RemoveObjectAnimation();
  9259. bool RemoveTag(const String&);
  9260. void ResetDeepEnabled();
  9261. void ResetToDefault();
  9262. bool Save(File) const;
  9263. bool Save(VectorBuffer&) const;
  9264. bool SaveJSON(JSONValue&) const;
  9265. bool SaveXML(File, const String& = "\t");
  9266. bool SaveXML(VectorBuffer&, const String& = "\t");
  9267. bool SaveXML(XMLElement&) const;
  9268. IntVector2 ScreenToElement(const IntVector2&);
  9269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9270. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9271. void SetAnimationTime(float);
  9272. bool SetAttribute(const String&, const Variant&);
  9273. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9274. void SetAttributeAnimationSpeed(const String&, float);
  9275. void SetAttributeAnimationTime(const String&, float);
  9276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9277. void SetDeepEnabled(bool);
  9278. void SetEnabledRecursive(bool);
  9279. void SetFixedHeight(int);
  9280. void SetFixedSize(int, int);
  9281. void SetFixedWidth(int);
  9282. void SetInterceptNetworkUpdate(const String&, bool);
  9283. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9284. void SetMaxAnchor(float, float);
  9285. void SetMaxSize(int, int);
  9286. void SetMinAnchor(float, float);
  9287. void SetMinSize(int, int);
  9288. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9289. void SetPivot(float, float);
  9290. void SetPosition(int, int);
  9291. void SetSize(int, int);
  9292. bool SetStyle(const String&, XMLFile = null);
  9293. bool SetStyle(const XMLElement&);
  9294. bool SetStyleAuto(XMLFile = null);
  9295. void StepBack();
  9296. void StepForward();
  9297. void UpdateLayout();
  9298. const Variant& GetVar(const StringHash&);
  9299. // Properties:
  9300. bool animationEnabled;
  9301. /* readonly */
  9302. Array<Variant> attributeDefaults;
  9303. /* readonly */
  9304. Array<AttributeInfo> attributeInfos;
  9305. Array<Variant> attributes;
  9306. /* readonly */
  9307. Button backButton;
  9308. bool bringToBack;
  9309. bool bringToFront;
  9310. /* readonly */
  9311. String category;
  9312. /* readonly */
  9313. IntVector2 childOffset;
  9314. /* readonly */
  9315. Array<UIElement> children;
  9316. IntRect clipBorder;
  9317. bool clipChildren;
  9318. /* writeonly */
  9319. Color color;
  9320. /* readonly */
  9321. bool colorGradient;
  9322. Array<Color> colors;
  9323. /* readonly */
  9324. IntRect combinedScreenRect;
  9325. XMLFile defaultStyle;
  9326. /* readonly */
  9327. float derivedOpacity;
  9328. /* readonly */
  9329. uint dragButtonCombo;
  9330. /* readonly */
  9331. int dragButtonCount;
  9332. uint dragDropMode;
  9333. bool editable;
  9334. /* readonly */
  9335. float effectiveScrollStep;
  9336. bool elementEventSender;
  9337. bool enableAnchor;
  9338. bool enabled;
  9339. /* readonly */
  9340. bool enabledSelf;
  9341. /* readonly */
  9342. bool fixedHeight;
  9343. /* readonly */
  9344. bool fixedSize;
  9345. /* readonly */
  9346. bool fixedWidth;
  9347. bool focus;
  9348. FocusMode focusMode;
  9349. /* readonly */
  9350. Button forwardButton;
  9351. int height;
  9352. HorizontalAlignment horizontalAlignment;
  9353. /* readonly */
  9354. bool hovering;
  9355. int indent;
  9356. int indentSpacing;
  9357. /* readonly */
  9358. int indentWidth;
  9359. bool internal;
  9360. IntRect layoutBorder;
  9361. Vector2 layoutFlexScale;
  9362. LayoutMode layoutMode;
  9363. int layoutSpacing;
  9364. Vector2 maxAnchor;
  9365. int maxHeight;
  9366. IntVector2 maxOffset;
  9367. IntVector2 maxSize;
  9368. int maxWidth;
  9369. Vector2 minAnchor;
  9370. int minHeight;
  9371. IntVector2 minOffset;
  9372. IntVector2 minSize;
  9373. int minWidth;
  9374. String name;
  9375. /* readonly */
  9376. uint numAllChildren;
  9377. /* readonly */
  9378. uint numAttributes;
  9379. /* readonly */
  9380. uint numChildren;
  9381. ObjectAnimation objectAnimation;
  9382. float opacity;
  9383. Orientation orientation;
  9384. UIElement parent;
  9385. Vector2 pivot;
  9386. IntVector2 position;
  9387. int priority;
  9388. float range;
  9389. /* readonly */
  9390. int refs;
  9391. /* readonly */
  9392. UIElement root;
  9393. /* readonly */
  9394. IntVector2 screenPosition;
  9395. float scrollStep;
  9396. bool selected;
  9397. IntVector2 size;
  9398. /* readonly */
  9399. Slider slider;
  9400. bool sortChildren;
  9401. float stepFactor;
  9402. String style;
  9403. /* readonly */
  9404. Array<String> tags;
  9405. bool temporary;
  9406. TraversalMode traversalMode;
  9407. /* readonly */
  9408. StringHash type;
  9409. /* readonly */
  9410. String typeName;
  9411. bool useDerivedOpacity;
  9412. float value;
  9413. /* readonly */
  9414. VariantMap vars;
  9415. VerticalAlignment verticalAlignment;
  9416. bool visible;
  9417. /* readonly */
  9418. bool visibleEffective;
  9419. /* readonly */
  9420. int weakRefs;
  9421. int width;
  9422. };
  9423. class ScrollView
  9424. {
  9425. // Methods:
  9426. void AddChild(UIElement);
  9427. void AddTag(const String&);
  9428. void AddTags(const String&, int8 = ';');
  9429. void ApplyAttributes();
  9430. void BringToFront();
  9431. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9432. void DisableLayoutUpdate();
  9433. IntVector2 ElementToScreen(const IntVector2&);
  9434. void EnableLayoutUpdate();
  9435. uint FindChild(UIElement) const;
  9436. Variant GetAttribute(const String&) const;
  9437. ValueAnimation GetAttributeAnimation(const String&) const;
  9438. float GetAttributeAnimationSpeed(const String&) const;
  9439. float GetAttributeAnimationTime(const String&) const;
  9440. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9441. Variant GetAttributeDefault(const String&) const;
  9442. UIElement GetChild(const String&, bool = false) const;
  9443. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9444. Array<UIElement> GetChildren(bool = false) const;
  9445. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9446. UIElement GetElementEventSender() const;
  9447. bool GetInterceptNetworkUpdate(const String&) const;
  9448. uint GetNumChildren(bool) const;
  9449. bool HasSubscribedToEvent(Object, const String&);
  9450. bool HasSubscribedToEvent(const String&);
  9451. bool HasTag(const String&) const;
  9452. void InsertChild(uint, UIElement);
  9453. bool IsInside(IntVector2, bool);
  9454. bool IsInsideCombined(IntVector2, bool);
  9455. bool Load(File, bool = false);
  9456. bool Load(VectorBuffer&, bool = false);
  9457. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9458. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9459. bool LoadJSON(const JSONValue&, bool = false);
  9460. bool LoadXML(File);
  9461. bool LoadXML(VectorBuffer&);
  9462. bool LoadXML(XMLFile, XMLFile);
  9463. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9464. bool LoadXML(const XMLElement&, bool = false);
  9465. void MarkNetworkUpdate() const;
  9466. void Remove();
  9467. void RemoveAllChildren();
  9468. void RemoveAllTags();
  9469. void RemoveAttributeAnimation(const String&);
  9470. void RemoveChild(UIElement, uint = 0);
  9471. void RemoveChild(uint);
  9472. void RemoveInstanceDefault();
  9473. void RemoveObjectAnimation();
  9474. bool RemoveTag(const String&);
  9475. void ResetDeepEnabled();
  9476. void ResetToDefault();
  9477. bool Save(File) const;
  9478. bool Save(VectorBuffer&) const;
  9479. bool SaveJSON(JSONValue&) const;
  9480. bool SaveXML(File, const String& = "\t");
  9481. bool SaveXML(VectorBuffer&, const String& = "\t");
  9482. bool SaveXML(XMLElement&) const;
  9483. IntVector2 ScreenToElement(const IntVector2&);
  9484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9485. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9486. void SetAnimationTime(float);
  9487. bool SetAttribute(const String&, const Variant&);
  9488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9489. void SetAttributeAnimationSpeed(const String&, float);
  9490. void SetAttributeAnimationTime(const String&, float);
  9491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9492. void SetDeepEnabled(bool);
  9493. void SetEnabledRecursive(bool);
  9494. void SetFixedHeight(int);
  9495. void SetFixedSize(int, int);
  9496. void SetFixedWidth(int);
  9497. void SetInterceptNetworkUpdate(const String&, bool);
  9498. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9499. void SetMaxAnchor(float, float);
  9500. void SetMaxSize(int, int);
  9501. void SetMinAnchor(float, float);
  9502. void SetMinSize(int, int);
  9503. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9504. void SetPivot(float, float);
  9505. void SetPosition(int, int);
  9506. void SetScrollBarsVisible(bool, bool);
  9507. void SetSize(int, int);
  9508. bool SetStyle(const String&, XMLFile = null);
  9509. bool SetStyle(const XMLElement&);
  9510. bool SetStyleAuto(XMLFile = null);
  9511. void SetViewPosition(int, int);
  9512. void UpdateLayout();
  9513. const Variant& GetVar(const StringHash&);
  9514. // Properties:
  9515. bool animationEnabled;
  9516. /* readonly */
  9517. Array<Variant> attributeDefaults;
  9518. /* readonly */
  9519. Array<AttributeInfo> attributeInfos;
  9520. Array<Variant> attributes;
  9521. bool autoDisableChildren;
  9522. float autoDisableThreshold;
  9523. bool bringToBack;
  9524. bool bringToFront;
  9525. /* readonly */
  9526. String category;
  9527. /* readonly */
  9528. IntVector2 childOffset;
  9529. /* readonly */
  9530. Array<UIElement> children;
  9531. IntRect clipBorder;
  9532. bool clipChildren;
  9533. /* writeonly */
  9534. Color color;
  9535. /* readonly */
  9536. bool colorGradient;
  9537. Array<Color> colors;
  9538. /* readonly */
  9539. IntRect combinedScreenRect;
  9540. UIElement contentElement;
  9541. XMLFile defaultStyle;
  9542. /* readonly */
  9543. float derivedOpacity;
  9544. /* readonly */
  9545. uint dragButtonCombo;
  9546. /* readonly */
  9547. int dragButtonCount;
  9548. uint dragDropMode;
  9549. bool editable;
  9550. bool elementEventSender;
  9551. bool enableAnchor;
  9552. bool enabled;
  9553. /* readonly */
  9554. bool enabledSelf;
  9555. /* readonly */
  9556. bool fixedHeight;
  9557. /* readonly */
  9558. bool fixedSize;
  9559. /* readonly */
  9560. bool fixedWidth;
  9561. bool focus;
  9562. FocusMode focusMode;
  9563. int height;
  9564. HorizontalAlignment horizontalAlignment;
  9565. /* readonly */
  9566. ScrollBar horizontalScrollBar;
  9567. /* readonly */
  9568. bool hovering;
  9569. int indent;
  9570. int indentSpacing;
  9571. /* readonly */
  9572. int indentWidth;
  9573. bool internal;
  9574. IntRect layoutBorder;
  9575. Vector2 layoutFlexScale;
  9576. LayoutMode layoutMode;
  9577. int layoutSpacing;
  9578. Vector2 maxAnchor;
  9579. int maxHeight;
  9580. IntVector2 maxOffset;
  9581. IntVector2 maxSize;
  9582. int maxWidth;
  9583. Vector2 minAnchor;
  9584. int minHeight;
  9585. IntVector2 minOffset;
  9586. IntVector2 minSize;
  9587. int minWidth;
  9588. String name;
  9589. /* readonly */
  9590. uint numAllChildren;
  9591. /* readonly */
  9592. uint numAttributes;
  9593. /* readonly */
  9594. uint numChildren;
  9595. ObjectAnimation objectAnimation;
  9596. float opacity;
  9597. float pageStep;
  9598. UIElement parent;
  9599. Vector2 pivot;
  9600. IntVector2 position;
  9601. int priority;
  9602. /* readonly */
  9603. int refs;
  9604. /* readonly */
  9605. UIElement root;
  9606. /* readonly */
  9607. IntVector2 screenPosition;
  9608. bool scrollBarsAutoVisible;
  9609. float scrollDeceleration;
  9610. /* readonly */
  9611. BorderImage scrollPanel;
  9612. float scrollSnapEpsilon;
  9613. float scrollStep;
  9614. bool selected;
  9615. IntVector2 size;
  9616. bool sortChildren;
  9617. String style;
  9618. /* readonly */
  9619. Array<String> tags;
  9620. bool temporary;
  9621. TraversalMode traversalMode;
  9622. /* readonly */
  9623. StringHash type;
  9624. /* readonly */
  9625. String typeName;
  9626. bool useDerivedOpacity;
  9627. /* readonly */
  9628. VariantMap vars;
  9629. VerticalAlignment verticalAlignment;
  9630. /* readonly */
  9631. ScrollBar verticalScrollBar;
  9632. IntVector2 viewPosition;
  9633. bool visible;
  9634. /* readonly */
  9635. bool visibleEffective;
  9636. /* readonly */
  9637. int weakRefs;
  9638. int width;
  9639. };
  9640. class Serializable
  9641. {
  9642. // Methods:
  9643. void ApplyAttributes();
  9644. Variant GetAttribute(const String&) const;
  9645. Variant GetAttributeDefault(const String&) const;
  9646. bool GetInterceptNetworkUpdate(const String&) const;
  9647. bool HasSubscribedToEvent(Object, const String&);
  9648. bool HasSubscribedToEvent(const String&);
  9649. bool Load(File, bool = false);
  9650. bool Load(VectorBuffer&, bool = false);
  9651. bool LoadJSON(const JSONValue&, bool = false);
  9652. bool LoadXML(const XMLElement&, bool = false);
  9653. void MarkNetworkUpdate() const;
  9654. void RemoveInstanceDefault();
  9655. void ResetToDefault();
  9656. bool Save(File) const;
  9657. bool Save(VectorBuffer&) const;
  9658. bool SaveJSON(JSONValue&) const;
  9659. bool SaveXML(XMLElement&) const;
  9660. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9661. bool SetAttribute(const String&, const Variant&);
  9662. void SetInterceptNetworkUpdate(const String&, bool);
  9663. // Properties:
  9664. /* readonly */
  9665. Array<Variant> attributeDefaults;
  9666. /* readonly */
  9667. Array<AttributeInfo> attributeInfos;
  9668. Array<Variant> attributes;
  9669. /* readonly */
  9670. String category;
  9671. /* readonly */
  9672. uint numAttributes;
  9673. /* readonly */
  9674. int refs;
  9675. bool temporary;
  9676. /* readonly */
  9677. StringHash type;
  9678. /* readonly */
  9679. String typeName;
  9680. /* readonly */
  9681. int weakRefs;
  9682. };
  9683. class Serializer
  9684. {
  9685. // Methods:
  9686. uint Write(Array<uint8>);
  9687. bool WriteBool(bool);
  9688. bool WriteBoundingBox(const BoundingBox&);
  9689. bool WriteByte(int8);
  9690. bool WriteColor(const Color&);
  9691. bool WriteDouble(double);
  9692. bool WriteFileID(const String&);
  9693. bool WriteFloat(float);
  9694. bool WriteInt(int);
  9695. bool WriteInt64(int64);
  9696. bool WriteIntRect(const IntRect&);
  9697. bool WriteIntVector2(const IntVector2&);
  9698. bool WriteLine(const String&);
  9699. bool WriteMatrix3(const Matrix3&);
  9700. bool WriteMatrix3x4(const Matrix3x4&);
  9701. bool WriteMatrix4(const Matrix4&);
  9702. bool WriteNetID(uint);
  9703. bool WritePackedQuaternion(const Quaternion&);
  9704. bool WritePackedVector3(const Vector3&, float);
  9705. bool WriteQuaternion(const Quaternion&);
  9706. bool WriteShort(int16);
  9707. bool WriteString(const String&);
  9708. bool WriteStringHash(const StringHash&);
  9709. bool WriteUByte(uint8);
  9710. bool WriteUInt(uint);
  9711. bool WriteUInt64(uint64);
  9712. bool WriteUShort(uint16);
  9713. bool WriteVLE(uint);
  9714. bool WriteVariant(const Variant&);
  9715. bool WriteVariantMap(const VariantMap&);
  9716. bool WriteVector2(const Vector2&);
  9717. bool WriteVector3(const Vector3&);
  9718. bool WriteVector4(const Vector4&);
  9719. bool WriteVectorBuffer(const VectorBuffer&);
  9720. };
  9721. class Skeleton
  9722. {
  9723. // Methods:
  9724. Bone GetBone(const String&) const;
  9725. void Reset();
  9726. // Properties:
  9727. /* readonly */
  9728. Array<Bone> bones;
  9729. /* readonly */
  9730. uint numBones;
  9731. /* readonly */
  9732. Bone rootBone;
  9733. };
  9734. class Skybox
  9735. {
  9736. // Methods:
  9737. void ApplyAttributes();
  9738. void ApplyMaterialList(const String& = String ( ));
  9739. void DrawDebugGeometry(DebugRenderer, bool);
  9740. Variant GetAttribute(const String&) const;
  9741. ValueAnimation GetAttributeAnimation(const String&) const;
  9742. float GetAttributeAnimationSpeed(const String&) const;
  9743. float GetAttributeAnimationTime(const String&) const;
  9744. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9745. Variant GetAttributeDefault(const String&) const;
  9746. bool GetInterceptNetworkUpdate(const String&) const;
  9747. bool HasSubscribedToEvent(Object, const String&);
  9748. bool HasSubscribedToEvent(const String&);
  9749. bool IsInView(Camera) const;
  9750. bool Load(File, bool = false);
  9751. bool Load(VectorBuffer&, bool = false);
  9752. bool LoadJSON(const JSONValue&, bool = false);
  9753. bool LoadXML(const XMLElement&, bool = false);
  9754. void MarkNetworkUpdate() const;
  9755. void Remove();
  9756. void RemoveAttributeAnimation(const String&);
  9757. void RemoveInstanceDefault();
  9758. void RemoveObjectAnimation();
  9759. void ResetToDefault();
  9760. bool Save(File) const;
  9761. bool Save(VectorBuffer&) const;
  9762. bool SaveJSON(JSONValue&) const;
  9763. bool SaveXML(XMLElement&) const;
  9764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9765. void SetAnimationTime(float);
  9766. bool SetAttribute(const String&, const Variant&);
  9767. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9768. void SetAttributeAnimationSpeed(const String&, float);
  9769. void SetAttributeAnimationTime(const String&, float);
  9770. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9771. void SetInterceptNetworkUpdate(const String&, bool);
  9772. // Properties:
  9773. bool animationEnabled;
  9774. /* readonly */
  9775. Array<Variant> attributeDefaults;
  9776. /* readonly */
  9777. Array<AttributeInfo> attributeInfos;
  9778. Array<Variant> attributes;
  9779. /* readonly */
  9780. BoundingBox boundingBox;
  9781. bool castShadows;
  9782. /* readonly */
  9783. String category;
  9784. float drawDistance;
  9785. bool enabled;
  9786. /* readonly */
  9787. bool enabledEffective;
  9788. /* readonly */
  9789. uint id;
  9790. /* readonly */
  9791. bool inView;
  9792. uint lightMask;
  9793. float lodBias;
  9794. /* writeonly */
  9795. Material material;
  9796. Array<Material> materials;
  9797. uint maxLights;
  9798. Model model;
  9799. /* readonly */
  9800. Node node;
  9801. /* readonly */
  9802. uint numAttributes;
  9803. /* readonly */
  9804. uint numGeometries;
  9805. ObjectAnimation objectAnimation;
  9806. bool occludee;
  9807. bool occluder;
  9808. /* readonly */
  9809. int refs;
  9810. float shadowDistance;
  9811. uint shadowMask;
  9812. bool temporary;
  9813. /* readonly */
  9814. StringHash type;
  9815. /* readonly */
  9816. String typeName;
  9817. uint viewMask;
  9818. /* readonly */
  9819. int weakRefs;
  9820. /* readonly */
  9821. BoundingBox worldBoundingBox;
  9822. /* readonly */
  9823. Zone zone;
  9824. uint zoneMask;
  9825. };
  9826. class Slider
  9827. {
  9828. // Methods:
  9829. void AddChild(UIElement);
  9830. void AddTag(const String&);
  9831. void AddTags(const String&, int8 = ';');
  9832. void ApplyAttributes();
  9833. void BringToFront();
  9834. void ChangeValue(float);
  9835. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9836. void DisableLayoutUpdate();
  9837. IntVector2 ElementToScreen(const IntVector2&);
  9838. void EnableLayoutUpdate();
  9839. uint FindChild(UIElement) const;
  9840. Variant GetAttribute(const String&) const;
  9841. ValueAnimation GetAttributeAnimation(const String&) const;
  9842. float GetAttributeAnimationSpeed(const String&) const;
  9843. float GetAttributeAnimationTime(const String&) const;
  9844. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9845. Variant GetAttributeDefault(const String&) const;
  9846. UIElement GetChild(const String&, bool = false) const;
  9847. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9848. Array<UIElement> GetChildren(bool = false) const;
  9849. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9850. UIElement GetElementEventSender() const;
  9851. bool GetInterceptNetworkUpdate(const String&) const;
  9852. uint GetNumChildren(bool) const;
  9853. bool HasSubscribedToEvent(Object, const String&);
  9854. bool HasSubscribedToEvent(const String&);
  9855. bool HasTag(const String&) const;
  9856. void InsertChild(uint, UIElement);
  9857. bool IsInside(IntVector2, bool);
  9858. bool IsInsideCombined(IntVector2, bool);
  9859. bool Load(File, bool = false);
  9860. bool Load(VectorBuffer&, bool = false);
  9861. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9862. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9863. bool LoadJSON(const JSONValue&, bool = false);
  9864. bool LoadXML(File);
  9865. bool LoadXML(VectorBuffer&);
  9866. bool LoadXML(XMLFile, XMLFile);
  9867. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9868. bool LoadXML(const XMLElement&, bool = false);
  9869. void MarkNetworkUpdate() const;
  9870. void Remove();
  9871. void RemoveAllChildren();
  9872. void RemoveAllTags();
  9873. void RemoveAttributeAnimation(const String&);
  9874. void RemoveChild(UIElement, uint = 0);
  9875. void RemoveChild(uint);
  9876. void RemoveInstanceDefault();
  9877. void RemoveObjectAnimation();
  9878. bool RemoveTag(const String&);
  9879. void ResetDeepEnabled();
  9880. void ResetToDefault();
  9881. bool Save(File) const;
  9882. bool Save(VectorBuffer&) const;
  9883. bool SaveJSON(JSONValue&) const;
  9884. bool SaveXML(File, const String& = "\t");
  9885. bool SaveXML(VectorBuffer&, const String& = "\t");
  9886. bool SaveXML(XMLElement&) const;
  9887. IntVector2 ScreenToElement(const IntVector2&);
  9888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9889. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9890. void SetAnimationTime(float);
  9891. bool SetAttribute(const String&, const Variant&);
  9892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9893. void SetAttributeAnimationSpeed(const String&, float);
  9894. void SetAttributeAnimationTime(const String&, float);
  9895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9896. void SetDeepEnabled(bool);
  9897. void SetEnabledRecursive(bool);
  9898. void SetFixedHeight(int);
  9899. void SetFixedSize(int, int);
  9900. void SetFixedWidth(int);
  9901. void SetFullImageRect();
  9902. void SetHoverOffset(int, int);
  9903. void SetInterceptNetworkUpdate(const String&, bool);
  9904. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9905. void SetMaxAnchor(float, float);
  9906. void SetMaxSize(int, int);
  9907. void SetMinAnchor(float, float);
  9908. void SetMinSize(int, int);
  9909. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9910. void SetPivot(float, float);
  9911. void SetPosition(int, int);
  9912. void SetSize(int, int);
  9913. bool SetStyle(const String&, XMLFile = null);
  9914. bool SetStyle(const XMLElement&);
  9915. bool SetStyleAuto(XMLFile = null);
  9916. void UpdateLayout();
  9917. const Variant& GetVar(const StringHash&);
  9918. // Properties:
  9919. bool animationEnabled;
  9920. /* readonly */
  9921. Array<Variant> attributeDefaults;
  9922. /* readonly */
  9923. Array<AttributeInfo> attributeInfos;
  9924. Array<Variant> attributes;
  9925. BlendMode blendMode;
  9926. IntRect border;
  9927. bool bringToBack;
  9928. bool bringToFront;
  9929. /* readonly */
  9930. String category;
  9931. /* readonly */
  9932. IntVector2 childOffset;
  9933. /* readonly */
  9934. Array<UIElement> children;
  9935. IntRect clipBorder;
  9936. bool clipChildren;
  9937. /* writeonly */
  9938. Color color;
  9939. /* readonly */
  9940. bool colorGradient;
  9941. Array<Color> colors;
  9942. /* readonly */
  9943. IntRect combinedScreenRect;
  9944. XMLFile defaultStyle;
  9945. /* readonly */
  9946. float derivedOpacity;
  9947. /* readonly */
  9948. uint dragButtonCombo;
  9949. /* readonly */
  9950. int dragButtonCount;
  9951. uint dragDropMode;
  9952. bool editable;
  9953. bool elementEventSender;
  9954. bool enableAnchor;
  9955. bool enabled;
  9956. /* readonly */
  9957. bool enabledSelf;
  9958. /* readonly */
  9959. bool fixedHeight;
  9960. /* readonly */
  9961. bool fixedSize;
  9962. /* readonly */
  9963. bool fixedWidth;
  9964. bool focus;
  9965. FocusMode focusMode;
  9966. int height;
  9967. HorizontalAlignment horizontalAlignment;
  9968. IntVector2 hoverOffset;
  9969. /* readonly */
  9970. bool hovering;
  9971. IntRect imageBorder;
  9972. IntRect imageRect;
  9973. int indent;
  9974. int indentSpacing;
  9975. /* readonly */
  9976. int indentWidth;
  9977. bool internal;
  9978. /* readonly */
  9979. BorderImage knob;
  9980. IntRect layoutBorder;
  9981. Vector2 layoutFlexScale;
  9982. LayoutMode layoutMode;
  9983. int layoutSpacing;
  9984. Vector2 maxAnchor;
  9985. int maxHeight;
  9986. IntVector2 maxOffset;
  9987. IntVector2 maxSize;
  9988. int maxWidth;
  9989. Vector2 minAnchor;
  9990. int minHeight;
  9991. IntVector2 minOffset;
  9992. IntVector2 minSize;
  9993. int minWidth;
  9994. String name;
  9995. /* readonly */
  9996. uint numAllChildren;
  9997. /* readonly */
  9998. uint numAttributes;
  9999. /* readonly */
  10000. uint numChildren;
  10001. ObjectAnimation objectAnimation;
  10002. float opacity;
  10003. Orientation orientation;
  10004. UIElement parent;
  10005. Vector2 pivot;
  10006. IntVector2 position;
  10007. int priority;
  10008. float range;
  10009. /* readonly */
  10010. int refs;
  10011. float repeatRate;
  10012. /* readonly */
  10013. UIElement root;
  10014. /* readonly */
  10015. IntVector2 screenPosition;
  10016. bool selected;
  10017. IntVector2 size;
  10018. bool sortChildren;
  10019. String style;
  10020. /* readonly */
  10021. Array<String> tags;
  10022. bool temporary;
  10023. Texture texture;
  10024. bool tiled;
  10025. TraversalMode traversalMode;
  10026. /* readonly */
  10027. StringHash type;
  10028. /* readonly */
  10029. String typeName;
  10030. bool useDerivedOpacity;
  10031. float value;
  10032. /* readonly */
  10033. VariantMap vars;
  10034. VerticalAlignment verticalAlignment;
  10035. bool visible;
  10036. /* readonly */
  10037. bool visibleEffective;
  10038. /* readonly */
  10039. int weakRefs;
  10040. int width;
  10041. };
  10042. class SmoothedTransform
  10043. {
  10044. // Methods:
  10045. void ApplyAttributes();
  10046. void DrawDebugGeometry(DebugRenderer, bool);
  10047. Variant GetAttribute(const String&) const;
  10048. ValueAnimation GetAttributeAnimation(const String&) const;
  10049. float GetAttributeAnimationSpeed(const String&) const;
  10050. float GetAttributeAnimationTime(const String&) const;
  10051. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10052. Variant GetAttributeDefault(const String&) const;
  10053. bool GetInterceptNetworkUpdate(const String&) const;
  10054. bool HasSubscribedToEvent(Object, const String&);
  10055. bool HasSubscribedToEvent(const String&);
  10056. bool Load(File, bool = false);
  10057. bool Load(VectorBuffer&, bool = false);
  10058. bool LoadJSON(const JSONValue&, bool = false);
  10059. bool LoadXML(const XMLElement&, bool = false);
  10060. void MarkNetworkUpdate() const;
  10061. void Remove();
  10062. void RemoveAttributeAnimation(const String&);
  10063. void RemoveInstanceDefault();
  10064. void RemoveObjectAnimation();
  10065. void ResetToDefault();
  10066. bool Save(File) const;
  10067. bool Save(VectorBuffer&) const;
  10068. bool SaveJSON(JSONValue&) const;
  10069. bool SaveXML(XMLElement&) const;
  10070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10071. void SetAnimationTime(float);
  10072. bool SetAttribute(const String&, const Variant&);
  10073. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10074. void SetAttributeAnimationSpeed(const String&, float);
  10075. void SetAttributeAnimationTime(const String&, float);
  10076. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10077. void SetInterceptNetworkUpdate(const String&, bool);
  10078. void Update(float, float);
  10079. // Properties:
  10080. bool animationEnabled;
  10081. /* readonly */
  10082. Array<Variant> attributeDefaults;
  10083. /* readonly */
  10084. Array<AttributeInfo> attributeInfos;
  10085. Array<Variant> attributes;
  10086. /* readonly */
  10087. String category;
  10088. bool enabled;
  10089. /* readonly */
  10090. bool enabledEffective;
  10091. /* readonly */
  10092. uint id;
  10093. /* readonly */
  10094. bool inProgress;
  10095. /* readonly */
  10096. Node node;
  10097. /* readonly */
  10098. uint numAttributes;
  10099. ObjectAnimation objectAnimation;
  10100. /* readonly */
  10101. int refs;
  10102. Vector3 targetPosition;
  10103. Quaternion targetRotation;
  10104. Vector3 targetWorldPosition;
  10105. Quaternion targetWorldRotation;
  10106. bool temporary;
  10107. /* readonly */
  10108. StringHash type;
  10109. /* readonly */
  10110. String typeName;
  10111. /* readonly */
  10112. int weakRefs;
  10113. };
  10114. class Sound
  10115. {
  10116. // Methods:
  10117. bool HasSubscribedToEvent(Object, const String&);
  10118. bool HasSubscribedToEvent(const String&);
  10119. bool Load(File);
  10120. bool Load(VectorBuffer&);
  10121. bool Load(const String&);
  10122. bool Save(File) const;
  10123. bool Save(VectorBuffer&) const;
  10124. bool Save(const String&) const;
  10125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10126. // Properties:
  10127. /* readonly */
  10128. String category;
  10129. /* readonly */
  10130. bool compressed;
  10131. /* readonly */
  10132. float frequency;
  10133. /* readonly */
  10134. float length;
  10135. bool looped;
  10136. /* readonly */
  10137. uint memoryUse;
  10138. String name;
  10139. /* readonly */
  10140. int refs;
  10141. /* readonly */
  10142. uint sampleSize;
  10143. /* readonly */
  10144. bool sixteenBit;
  10145. /* readonly */
  10146. bool stereo;
  10147. /* readonly */
  10148. StringHash type;
  10149. /* readonly */
  10150. String typeName;
  10151. /* readonly */
  10152. uint useTimer;
  10153. /* readonly */
  10154. int weakRefs;
  10155. };
  10156. class SoundListener
  10157. {
  10158. // Methods:
  10159. void ApplyAttributes();
  10160. void DrawDebugGeometry(DebugRenderer, bool);
  10161. Variant GetAttribute(const String&) const;
  10162. ValueAnimation GetAttributeAnimation(const String&) const;
  10163. float GetAttributeAnimationSpeed(const String&) const;
  10164. float GetAttributeAnimationTime(const String&) const;
  10165. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10166. Variant GetAttributeDefault(const String&) const;
  10167. bool GetInterceptNetworkUpdate(const String&) const;
  10168. bool HasSubscribedToEvent(Object, const String&);
  10169. bool HasSubscribedToEvent(const String&);
  10170. bool Load(File, bool = false);
  10171. bool Load(VectorBuffer&, bool = false);
  10172. bool LoadJSON(const JSONValue&, bool = false);
  10173. bool LoadXML(const XMLElement&, bool = false);
  10174. void MarkNetworkUpdate() const;
  10175. void Remove();
  10176. void RemoveAttributeAnimation(const String&);
  10177. void RemoveInstanceDefault();
  10178. void RemoveObjectAnimation();
  10179. void ResetToDefault();
  10180. bool Save(File) const;
  10181. bool Save(VectorBuffer&) const;
  10182. bool SaveJSON(JSONValue&) const;
  10183. bool SaveXML(XMLElement&) const;
  10184. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10185. void SetAnimationTime(float);
  10186. bool SetAttribute(const String&, const Variant&);
  10187. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10188. void SetAttributeAnimationSpeed(const String&, float);
  10189. void SetAttributeAnimationTime(const String&, float);
  10190. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10191. void SetInterceptNetworkUpdate(const String&, bool);
  10192. // Properties:
  10193. bool animationEnabled;
  10194. /* readonly */
  10195. Array<Variant> attributeDefaults;
  10196. /* readonly */
  10197. Array<AttributeInfo> attributeInfos;
  10198. Array<Variant> attributes;
  10199. /* readonly */
  10200. String category;
  10201. bool enabled;
  10202. /* readonly */
  10203. bool enabledEffective;
  10204. /* readonly */
  10205. uint id;
  10206. /* readonly */
  10207. Node node;
  10208. /* readonly */
  10209. uint numAttributes;
  10210. ObjectAnimation objectAnimation;
  10211. /* readonly */
  10212. int refs;
  10213. bool temporary;
  10214. /* readonly */
  10215. StringHash type;
  10216. /* readonly */
  10217. String typeName;
  10218. /* readonly */
  10219. int weakRefs;
  10220. };
  10221. class SoundSource
  10222. {
  10223. // Methods:
  10224. void ApplyAttributes();
  10225. void DrawDebugGeometry(DebugRenderer, bool);
  10226. Variant GetAttribute(const String&) const;
  10227. ValueAnimation GetAttributeAnimation(const String&) const;
  10228. float GetAttributeAnimationSpeed(const String&) const;
  10229. float GetAttributeAnimationTime(const String&) const;
  10230. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10231. Variant GetAttributeDefault(const String&) const;
  10232. bool GetInterceptNetworkUpdate(const String&) const;
  10233. bool HasSubscribedToEvent(Object, const String&);
  10234. bool HasSubscribedToEvent(const String&);
  10235. bool Load(File, bool = false);
  10236. bool Load(VectorBuffer&, bool = false);
  10237. bool LoadJSON(const JSONValue&, bool = false);
  10238. bool LoadXML(const XMLElement&, bool = false);
  10239. void MarkNetworkUpdate() const;
  10240. void Play(Sound);
  10241. void Play(Sound, float);
  10242. void Play(Sound, float, float);
  10243. void Play(Sound, float, float, float);
  10244. void Remove();
  10245. void RemoveAttributeAnimation(const String&);
  10246. void RemoveInstanceDefault();
  10247. void RemoveObjectAnimation();
  10248. void ResetToDefault();
  10249. bool Save(File) const;
  10250. bool Save(VectorBuffer&) const;
  10251. bool SaveJSON(JSONValue&) const;
  10252. bool SaveXML(XMLElement&) const;
  10253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10254. void SetAnimationTime(float);
  10255. bool SetAttribute(const String&, const Variant&);
  10256. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10257. void SetAttributeAnimationSpeed(const String&, float);
  10258. void SetAttributeAnimationTime(const String&, float);
  10259. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10260. void SetInterceptNetworkUpdate(const String&, bool);
  10261. void Stop();
  10262. // Properties:
  10263. bool animationEnabled;
  10264. /* readonly */
  10265. float attenuation;
  10266. /* readonly */
  10267. Array<Variant> attributeDefaults;
  10268. /* readonly */
  10269. Array<AttributeInfo> attributeInfos;
  10270. Array<Variant> attributes;
  10271. AutoRemoveMode autoRemoveMode;
  10272. /* readonly */
  10273. String category;
  10274. bool enabled;
  10275. /* readonly */
  10276. bool enabledEffective;
  10277. float frequency;
  10278. float gain;
  10279. /* readonly */
  10280. uint id;
  10281. /* readonly */
  10282. Node node;
  10283. /* readonly */
  10284. uint numAttributes;
  10285. ObjectAnimation objectAnimation;
  10286. float panning;
  10287. /* readonly */
  10288. bool playing;
  10289. /* readonly */
  10290. int refs;
  10291. /* readonly */
  10292. Sound sound;
  10293. String soundType;
  10294. bool temporary;
  10295. /* readonly */
  10296. float timePosition;
  10297. /* readonly */
  10298. StringHash type;
  10299. /* readonly */
  10300. String typeName;
  10301. /* readonly */
  10302. int weakRefs;
  10303. };
  10304. class SoundSource3D
  10305. {
  10306. // Methods:
  10307. void ApplyAttributes();
  10308. void DrawDebugGeometry(DebugRenderer, bool);
  10309. Variant GetAttribute(const String&) const;
  10310. ValueAnimation GetAttributeAnimation(const String&) const;
  10311. float GetAttributeAnimationSpeed(const String&) const;
  10312. float GetAttributeAnimationTime(const String&) const;
  10313. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10314. Variant GetAttributeDefault(const String&) const;
  10315. bool GetInterceptNetworkUpdate(const String&) const;
  10316. bool HasSubscribedToEvent(Object, const String&);
  10317. bool HasSubscribedToEvent(const String&);
  10318. bool Load(File, bool = false);
  10319. bool Load(VectorBuffer&, bool = false);
  10320. bool LoadJSON(const JSONValue&, bool = false);
  10321. bool LoadXML(const XMLElement&, bool = false);
  10322. void MarkNetworkUpdate() const;
  10323. void Play(Sound);
  10324. void Play(Sound, float);
  10325. void Play(Sound, float, float);
  10326. void Play(Sound, float, float, float);
  10327. void Remove();
  10328. void RemoveAttributeAnimation(const String&);
  10329. void RemoveInstanceDefault();
  10330. void RemoveObjectAnimation();
  10331. void ResetToDefault();
  10332. bool Save(File) const;
  10333. bool Save(VectorBuffer&) const;
  10334. bool SaveJSON(JSONValue&) const;
  10335. bool SaveXML(XMLElement&) const;
  10336. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10337. void SetAngleAttenuation(float, float);
  10338. void SetAnimationTime(float);
  10339. bool SetAttribute(const String&, const Variant&);
  10340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10341. void SetAttributeAnimationSpeed(const String&, float);
  10342. void SetAttributeAnimationTime(const String&, float);
  10343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10344. void SetDistanceAttenuation(float, float, float);
  10345. void SetInterceptNetworkUpdate(const String&, bool);
  10346. void Stop();
  10347. // Properties:
  10348. bool animationEnabled;
  10349. /* readonly */
  10350. float attenuation;
  10351. /* readonly */
  10352. Array<Variant> attributeDefaults;
  10353. /* readonly */
  10354. Array<AttributeInfo> attributeInfos;
  10355. Array<Variant> attributes;
  10356. AutoRemoveMode autoRemoveMode;
  10357. /* readonly */
  10358. String category;
  10359. bool enabled;
  10360. /* readonly */
  10361. bool enabledEffective;
  10362. float farDistance;
  10363. float frequency;
  10364. float gain;
  10365. /* readonly */
  10366. uint id;
  10367. float innerAngle;
  10368. float nearDistance;
  10369. /* readonly */
  10370. Node node;
  10371. /* readonly */
  10372. uint numAttributes;
  10373. ObjectAnimation objectAnimation;
  10374. float outerAngle;
  10375. float panning;
  10376. /* readonly */
  10377. bool playing;
  10378. /* readonly */
  10379. int refs;
  10380. float rolloffFactor;
  10381. /* readonly */
  10382. Sound sound;
  10383. String soundType;
  10384. bool temporary;
  10385. /* readonly */
  10386. float timePosition;
  10387. /* readonly */
  10388. StringHash type;
  10389. /* readonly */
  10390. String typeName;
  10391. /* readonly */
  10392. int weakRefs;
  10393. };
  10394. class Sphere
  10395. {
  10396. // Methods:
  10397. void Clear();
  10398. void Define(const BoundingBox&);
  10399. void Define(const Frustum&);
  10400. void Define(const Polyhedron&);
  10401. void Define(const Sphere&);
  10402. void Define(const Vector3&, float);
  10403. bool Defined() const;
  10404. float Distance(const Vector3&) const;
  10405. Intersection IsInside(const BoundingBox&) const;
  10406. Intersection IsInside(const Sphere&) const;
  10407. Intersection IsInside(const Vector3&) const;
  10408. Intersection IsInsideFast(const BoundingBox&) const;
  10409. Intersection IsInsideFast(const Sphere&) const;
  10410. void Merge(const BoundingBox&);
  10411. void Merge(const Frustum&);
  10412. void Merge(const Sphere&);
  10413. void Merge(const Vector3&);
  10414. // Properties:
  10415. Vector3 center;
  10416. float radius;
  10417. };
  10418. class Spline
  10419. {
  10420. // Methods:
  10421. void AddKnot(const Variant&);
  10422. void AddKnot(const Variant&, uint);
  10423. void Clear();
  10424. Variant GetPoint(float);
  10425. void RemoveKnot();
  10426. void RemoveKnot(uint);
  10427. // Properties:
  10428. InterpolationMode interpolationMode;
  10429. Array<Variant> knot;
  10430. Array<Variant> knots;
  10431. };
  10432. class SplinePath
  10433. {
  10434. // Methods:
  10435. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10436. void ApplyAttributes();
  10437. void ClearControlPoints();
  10438. void DrawDebugGeometry(DebugRenderer, bool);
  10439. Variant GetAttribute(const String&) const;
  10440. ValueAnimation GetAttributeAnimation(const String&) const;
  10441. float GetAttributeAnimationSpeed(const String&) const;
  10442. float GetAttributeAnimationTime(const String&) const;
  10443. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10444. Variant GetAttributeDefault(const String&) const;
  10445. bool GetInterceptNetworkUpdate(const String&) const;
  10446. Vector3 GetPoint(float) const;
  10447. Vector3 GetPosition() const;
  10448. bool HasSubscribedToEvent(Object, const String&);
  10449. bool HasSubscribedToEvent(const String&);
  10450. bool Load(File, bool = false);
  10451. bool Load(VectorBuffer&, bool = false);
  10452. bool LoadJSON(const JSONValue&, bool = false);
  10453. bool LoadXML(const XMLElement&, bool = false);
  10454. void MarkNetworkUpdate() const;
  10455. void Move(float);
  10456. void Remove();
  10457. void RemoveAttributeAnimation(const String&);
  10458. void RemoveControlPoint(Node);
  10459. void RemoveInstanceDefault();
  10460. void RemoveObjectAnimation();
  10461. void Reset();
  10462. void ResetToDefault();
  10463. bool Save(File) const;
  10464. bool Save(VectorBuffer&) const;
  10465. bool SaveJSON(JSONValue&) const;
  10466. bool SaveXML(XMLElement&) const;
  10467. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10468. void SetAnimationTime(float);
  10469. bool SetAttribute(const String&, const Variant&);
  10470. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10471. void SetAttributeAnimationSpeed(const String&, float);
  10472. void SetAttributeAnimationTime(const String&, float);
  10473. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10474. void SetInterceptNetworkUpdate(const String&, bool);
  10475. void SetPosition(float);
  10476. // Properties:
  10477. bool animationEnabled;
  10478. /* readonly */
  10479. Array<Variant> attributeDefaults;
  10480. /* readonly */
  10481. Array<AttributeInfo> attributeInfos;
  10482. Array<Variant> attributes;
  10483. /* readonly */
  10484. String category;
  10485. Node controlledNode;
  10486. bool enabled;
  10487. /* readonly */
  10488. bool enabledEffective;
  10489. /* readonly */
  10490. uint id;
  10491. InterpolationMode interpolationMode;
  10492. /* readonly */
  10493. bool isFinished;
  10494. /* readonly */
  10495. float length;
  10496. /* readonly */
  10497. Node node;
  10498. /* readonly */
  10499. uint numAttributes;
  10500. ObjectAnimation objectAnimation;
  10501. /* readonly */
  10502. int refs;
  10503. float speed;
  10504. bool temporary;
  10505. /* readonly */
  10506. StringHash type;
  10507. /* readonly */
  10508. String typeName;
  10509. /* readonly */
  10510. int weakRefs;
  10511. };
  10512. class Sprite
  10513. {
  10514. // Methods:
  10515. void AddChild(UIElement);
  10516. void AddTag(const String&);
  10517. void AddTags(const String&, int8 = ';');
  10518. void ApplyAttributes();
  10519. void BringToFront();
  10520. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10521. void DisableLayoutUpdate();
  10522. IntVector2 ElementToScreen(const IntVector2&);
  10523. void EnableLayoutUpdate();
  10524. uint FindChild(UIElement) const;
  10525. Variant GetAttribute(const String&) const;
  10526. ValueAnimation GetAttributeAnimation(const String&) const;
  10527. float GetAttributeAnimationSpeed(const String&) const;
  10528. float GetAttributeAnimationTime(const String&) const;
  10529. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10530. Variant GetAttributeDefault(const String&) const;
  10531. UIElement GetChild(const String&, bool = false) const;
  10532. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10533. Array<UIElement> GetChildren(bool = false) const;
  10534. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10535. UIElement GetElementEventSender() const;
  10536. bool GetInterceptNetworkUpdate(const String&) const;
  10537. uint GetNumChildren(bool) const;
  10538. bool HasSubscribedToEvent(Object, const String&);
  10539. bool HasSubscribedToEvent(const String&);
  10540. bool HasTag(const String&) const;
  10541. void InsertChild(uint, UIElement);
  10542. bool IsInside(IntVector2, bool);
  10543. bool IsInsideCombined(IntVector2, bool);
  10544. bool Load(File, bool = false);
  10545. bool Load(VectorBuffer&, bool = false);
  10546. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10547. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10548. bool LoadJSON(const JSONValue&, bool = false);
  10549. bool LoadXML(File);
  10550. bool LoadXML(VectorBuffer&);
  10551. bool LoadXML(XMLFile, XMLFile);
  10552. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10553. bool LoadXML(const XMLElement&, bool = false);
  10554. void MarkNetworkUpdate() const;
  10555. void Remove();
  10556. void RemoveAllChildren();
  10557. void RemoveAllTags();
  10558. void RemoveAttributeAnimation(const String&);
  10559. void RemoveChild(UIElement, uint = 0);
  10560. void RemoveChild(uint);
  10561. void RemoveInstanceDefault();
  10562. void RemoveObjectAnimation();
  10563. bool RemoveTag(const String&);
  10564. void ResetDeepEnabled();
  10565. void ResetToDefault();
  10566. bool Save(File) const;
  10567. bool Save(VectorBuffer&) const;
  10568. bool SaveJSON(JSONValue&) const;
  10569. bool SaveXML(File, const String& = "\t");
  10570. bool SaveXML(VectorBuffer&, const String& = "\t");
  10571. bool SaveXML(XMLElement&) const;
  10572. IntVector2 ScreenToElement(const IntVector2&);
  10573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10574. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10575. void SetAnimationTime(float);
  10576. bool SetAttribute(const String&, const Variant&);
  10577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10578. void SetAttributeAnimationSpeed(const String&, float);
  10579. void SetAttributeAnimationTime(const String&, float);
  10580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10581. void SetDeepEnabled(bool);
  10582. void SetEnabledRecursive(bool);
  10583. void SetFixedHeight(int);
  10584. void SetFixedSize(int, int);
  10585. void SetFixedWidth(int);
  10586. void SetFullImageRect();
  10587. void SetHotSpot(int, int);
  10588. void SetInterceptNetworkUpdate(const String&, bool);
  10589. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10590. void SetMaxAnchor(float, float);
  10591. void SetMaxSize(int, int);
  10592. void SetMinAnchor(float, float);
  10593. void SetMinSize(int, int);
  10594. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10595. void SetPivot(float, float);
  10596. void SetPosition(float, float);
  10597. void SetScale(float);
  10598. void SetScale(float, float);
  10599. void SetSize(int, int);
  10600. bool SetStyle(const String&, XMLFile = null);
  10601. bool SetStyle(const XMLElement&);
  10602. bool SetStyleAuto(XMLFile = null);
  10603. void UpdateLayout();
  10604. const Variant& GetVar(const StringHash&);
  10605. // Properties:
  10606. bool animationEnabled;
  10607. /* readonly */
  10608. Array<Variant> attributeDefaults;
  10609. /* readonly */
  10610. Array<AttributeInfo> attributeInfos;
  10611. Array<Variant> attributes;
  10612. BlendMode blendMode;
  10613. bool bringToBack;
  10614. bool bringToFront;
  10615. /* readonly */
  10616. String category;
  10617. /* readonly */
  10618. IntVector2 childOffset;
  10619. /* readonly */
  10620. Array<UIElement> children;
  10621. IntRect clipBorder;
  10622. bool clipChildren;
  10623. /* writeonly */
  10624. Color color;
  10625. /* readonly */
  10626. bool colorGradient;
  10627. Array<Color> colors;
  10628. /* readonly */
  10629. IntRect combinedScreenRect;
  10630. XMLFile defaultStyle;
  10631. /* readonly */
  10632. float derivedOpacity;
  10633. /* readonly */
  10634. uint dragButtonCombo;
  10635. /* readonly */
  10636. int dragButtonCount;
  10637. uint dragDropMode;
  10638. bool editable;
  10639. bool elementEventSender;
  10640. bool enableAnchor;
  10641. bool enabled;
  10642. /* readonly */
  10643. bool enabledSelf;
  10644. /* readonly */
  10645. bool fixedHeight;
  10646. /* readonly */
  10647. bool fixedSize;
  10648. /* readonly */
  10649. bool fixedWidth;
  10650. bool focus;
  10651. FocusMode focusMode;
  10652. int height;
  10653. HorizontalAlignment horizontalAlignment;
  10654. IntVector2 hotSpot;
  10655. /* readonly */
  10656. bool hovering;
  10657. IntRect imageRect;
  10658. int indent;
  10659. int indentSpacing;
  10660. /* readonly */
  10661. int indentWidth;
  10662. bool internal;
  10663. IntRect layoutBorder;
  10664. Vector2 layoutFlexScale;
  10665. LayoutMode layoutMode;
  10666. int layoutSpacing;
  10667. Vector2 maxAnchor;
  10668. int maxHeight;
  10669. IntVector2 maxOffset;
  10670. IntVector2 maxSize;
  10671. int maxWidth;
  10672. Vector2 minAnchor;
  10673. int minHeight;
  10674. IntVector2 minOffset;
  10675. IntVector2 minSize;
  10676. int minWidth;
  10677. String name;
  10678. /* readonly */
  10679. uint numAllChildren;
  10680. /* readonly */
  10681. uint numAttributes;
  10682. /* readonly */
  10683. uint numChildren;
  10684. ObjectAnimation objectAnimation;
  10685. float opacity;
  10686. UIElement parent;
  10687. Vector2 pivot;
  10688. Vector2 position;
  10689. int priority;
  10690. /* readonly */
  10691. int refs;
  10692. /* readonly */
  10693. UIElement root;
  10694. float rotation;
  10695. Vector2 scale;
  10696. /* readonly */
  10697. IntVector2 screenPosition;
  10698. bool selected;
  10699. IntVector2 size;
  10700. bool sortChildren;
  10701. String style;
  10702. /* readonly */
  10703. Array<String> tags;
  10704. bool temporary;
  10705. Texture texture;
  10706. TraversalMode traversalMode;
  10707. /* readonly */
  10708. StringHash type;
  10709. /* readonly */
  10710. String typeName;
  10711. bool useDerivedOpacity;
  10712. /* readonly */
  10713. VariantMap vars;
  10714. VerticalAlignment verticalAlignment;
  10715. bool visible;
  10716. /* readonly */
  10717. bool visibleEffective;
  10718. /* readonly */
  10719. int weakRefs;
  10720. int width;
  10721. };
  10722. class Sprite2D
  10723. {
  10724. // Methods:
  10725. bool HasSubscribedToEvent(Object, const String&);
  10726. bool HasSubscribedToEvent(const String&);
  10727. bool Load(File);
  10728. bool Load(VectorBuffer&);
  10729. bool Load(const String&);
  10730. bool Save(File) const;
  10731. bool Save(VectorBuffer&) const;
  10732. bool Save(const String&) const;
  10733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10734. // Properties:
  10735. /* readonly */
  10736. String category;
  10737. Vector2 hotSpot;
  10738. /* readonly */
  10739. uint memoryUse;
  10740. String name;
  10741. IntVector2 offset;
  10742. IntRect rectangle;
  10743. /* readonly */
  10744. int refs;
  10745. Texture2D texture;
  10746. float textureEdgeOffset;
  10747. /* readonly */
  10748. StringHash type;
  10749. /* readonly */
  10750. String typeName;
  10751. /* readonly */
  10752. uint useTimer;
  10753. /* readonly */
  10754. int weakRefs;
  10755. };
  10756. class SpriteSheet2D
  10757. {
  10758. // Methods:
  10759. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10760. Sprite2D GetSprite(const String&);
  10761. bool HasSubscribedToEvent(Object, const String&);
  10762. bool HasSubscribedToEvent(const String&);
  10763. bool Load(File);
  10764. bool Load(VectorBuffer&);
  10765. bool Load(const String&);
  10766. bool Save(File) const;
  10767. bool Save(VectorBuffer&) const;
  10768. bool Save(const String&) const;
  10769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10770. // Properties:
  10771. /* readonly */
  10772. String category;
  10773. /* readonly */
  10774. uint memoryUse;
  10775. String name;
  10776. /* readonly */
  10777. int refs;
  10778. Texture2D texture;
  10779. /* readonly */
  10780. StringHash type;
  10781. /* readonly */
  10782. String typeName;
  10783. /* readonly */
  10784. uint useTimer;
  10785. /* readonly */
  10786. int weakRefs;
  10787. };
  10788. class StaticModel
  10789. {
  10790. // Methods:
  10791. void ApplyAttributes();
  10792. void ApplyMaterialList(const String& = String ( ));
  10793. void DrawDebugGeometry(DebugRenderer, bool);
  10794. Variant GetAttribute(const String&) const;
  10795. ValueAnimation GetAttributeAnimation(const String&) const;
  10796. float GetAttributeAnimationSpeed(const String&) const;
  10797. float GetAttributeAnimationTime(const String&) const;
  10798. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10799. Variant GetAttributeDefault(const String&) const;
  10800. bool GetInterceptNetworkUpdate(const String&) const;
  10801. bool HasSubscribedToEvent(Object, const String&);
  10802. bool HasSubscribedToEvent(const String&);
  10803. bool IsInView(Camera) const;
  10804. bool IsInside(const Vector3&) const;
  10805. bool IsInsideLocal(const Vector3&) const;
  10806. bool Load(File, bool = false);
  10807. bool Load(VectorBuffer&, bool = false);
  10808. bool LoadJSON(const JSONValue&, bool = false);
  10809. bool LoadXML(const XMLElement&, bool = false);
  10810. void MarkNetworkUpdate() const;
  10811. void Remove();
  10812. void RemoveAttributeAnimation(const String&);
  10813. void RemoveInstanceDefault();
  10814. void RemoveObjectAnimation();
  10815. void ResetToDefault();
  10816. bool Save(File) const;
  10817. bool Save(VectorBuffer&) const;
  10818. bool SaveJSON(JSONValue&) const;
  10819. bool SaveXML(XMLElement&) const;
  10820. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10821. void SetAnimationTime(float);
  10822. bool SetAttribute(const String&, const Variant&);
  10823. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10824. void SetAttributeAnimationSpeed(const String&, float);
  10825. void SetAttributeAnimationTime(const String&, float);
  10826. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10827. void SetInterceptNetworkUpdate(const String&, bool);
  10828. // Properties:
  10829. bool animationEnabled;
  10830. /* readonly */
  10831. Array<Variant> attributeDefaults;
  10832. /* readonly */
  10833. Array<AttributeInfo> attributeInfos;
  10834. Array<Variant> attributes;
  10835. /* readonly */
  10836. BoundingBox boundingBox;
  10837. bool castShadows;
  10838. /* readonly */
  10839. String category;
  10840. float drawDistance;
  10841. bool enabled;
  10842. /* readonly */
  10843. bool enabledEffective;
  10844. /* readonly */
  10845. uint id;
  10846. /* readonly */
  10847. bool inView;
  10848. uint lightMask;
  10849. float lodBias;
  10850. /* writeonly */
  10851. Material material;
  10852. Array<Material> materials;
  10853. uint maxLights;
  10854. Model model;
  10855. /* readonly */
  10856. Node node;
  10857. /* readonly */
  10858. uint numAttributes;
  10859. /* readonly */
  10860. uint numGeometries;
  10861. ObjectAnimation objectAnimation;
  10862. bool occludee;
  10863. bool occluder;
  10864. uint occlusionLodLevel;
  10865. /* readonly */
  10866. int refs;
  10867. float shadowDistance;
  10868. uint shadowMask;
  10869. bool temporary;
  10870. /* readonly */
  10871. StringHash type;
  10872. /* readonly */
  10873. String typeName;
  10874. uint viewMask;
  10875. /* readonly */
  10876. int weakRefs;
  10877. /* readonly */
  10878. BoundingBox worldBoundingBox;
  10879. uint zoneMask;
  10880. };
  10881. class StaticModelGroup
  10882. {
  10883. // Methods:
  10884. void AddInstanceNode(Node);
  10885. void ApplyAttributes();
  10886. void ApplyMaterialList(const String& = String ( ));
  10887. void DrawDebugGeometry(DebugRenderer, bool);
  10888. Variant GetAttribute(const String&) const;
  10889. ValueAnimation GetAttributeAnimation(const String&) const;
  10890. float GetAttributeAnimationSpeed(const String&) const;
  10891. float GetAttributeAnimationTime(const String&) const;
  10892. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10893. Variant GetAttributeDefault(const String&) const;
  10894. bool GetInterceptNetworkUpdate(const String&) const;
  10895. bool HasSubscribedToEvent(Object, const String&);
  10896. bool HasSubscribedToEvent(const String&);
  10897. bool IsInView(Camera) const;
  10898. bool Load(File, bool = false);
  10899. bool Load(VectorBuffer&, bool = false);
  10900. bool LoadJSON(const JSONValue&, bool = false);
  10901. bool LoadXML(const XMLElement&, bool = false);
  10902. void MarkNetworkUpdate() const;
  10903. void Remove();
  10904. void RemoveAllInstanceNodes();
  10905. void RemoveAttributeAnimation(const String&);
  10906. void RemoveInstanceDefault();
  10907. void RemoveInstanceNode(Node);
  10908. void RemoveObjectAnimation();
  10909. void ResetToDefault();
  10910. bool Save(File) const;
  10911. bool Save(VectorBuffer&) const;
  10912. bool SaveJSON(JSONValue&) const;
  10913. bool SaveXML(XMLElement&) const;
  10914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10915. void SetAnimationTime(float);
  10916. bool SetAttribute(const String&, const Variant&);
  10917. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10918. void SetAttributeAnimationSpeed(const String&, float);
  10919. void SetAttributeAnimationTime(const String&, float);
  10920. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10921. void SetInterceptNetworkUpdate(const String&, bool);
  10922. // Properties:
  10923. bool animationEnabled;
  10924. /* readonly */
  10925. Array<Variant> attributeDefaults;
  10926. /* readonly */
  10927. Array<AttributeInfo> attributeInfos;
  10928. Array<Variant> attributes;
  10929. /* readonly */
  10930. BoundingBox boundingBox;
  10931. bool castShadows;
  10932. /* readonly */
  10933. String category;
  10934. float drawDistance;
  10935. bool enabled;
  10936. /* readonly */
  10937. bool enabledEffective;
  10938. /* readonly */
  10939. uint id;
  10940. /* readonly */
  10941. bool inView;
  10942. /* readonly */
  10943. Array<Node> instanceNodes;
  10944. uint lightMask;
  10945. float lodBias;
  10946. /* writeonly */
  10947. Material material;
  10948. Array<Material> materials;
  10949. uint maxLights;
  10950. Model model;
  10951. /* readonly */
  10952. Node node;
  10953. /* readonly */
  10954. uint numAttributes;
  10955. /* readonly */
  10956. uint numGeometries;
  10957. /* readonly */
  10958. uint numInstanceNodes;
  10959. ObjectAnimation objectAnimation;
  10960. bool occludee;
  10961. bool occluder;
  10962. uint occlusionLodLevel;
  10963. /* readonly */
  10964. int refs;
  10965. float shadowDistance;
  10966. uint shadowMask;
  10967. bool temporary;
  10968. /* readonly */
  10969. StringHash type;
  10970. /* readonly */
  10971. String typeName;
  10972. uint viewMask;
  10973. /* readonly */
  10974. int weakRefs;
  10975. /* readonly */
  10976. BoundingBox worldBoundingBox;
  10977. /* readonly */
  10978. Zone zone;
  10979. uint zoneMask;
  10980. };
  10981. class StaticSprite2D
  10982. {
  10983. // Methods:
  10984. void ApplyAttributes();
  10985. void DrawDebugGeometry(DebugRenderer, bool);
  10986. Variant GetAttribute(const String&) const;
  10987. ValueAnimation GetAttributeAnimation(const String&) const;
  10988. float GetAttributeAnimationSpeed(const String&) const;
  10989. float GetAttributeAnimationTime(const String&) const;
  10990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10991. Variant GetAttributeDefault(const String&) const;
  10992. bool GetInterceptNetworkUpdate(const String&) const;
  10993. bool HasSubscribedToEvent(Object, const String&);
  10994. bool HasSubscribedToEvent(const String&);
  10995. bool IsInView(Camera) const;
  10996. bool Load(File, bool = false);
  10997. bool Load(VectorBuffer&, bool = false);
  10998. bool LoadJSON(const JSONValue&, bool = false);
  10999. bool LoadXML(const XMLElement&, bool = false);
  11000. void MarkNetworkUpdate() const;
  11001. void Remove();
  11002. void RemoveAttributeAnimation(const String&);
  11003. void RemoveInstanceDefault();
  11004. void RemoveObjectAnimation();
  11005. void ResetToDefault();
  11006. bool Save(File) const;
  11007. bool Save(VectorBuffer&) const;
  11008. bool SaveJSON(JSONValue&) const;
  11009. bool SaveXML(XMLElement&) const;
  11010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11011. void SetAnimationTime(float);
  11012. bool SetAttribute(const String&, const Variant&);
  11013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11014. void SetAttributeAnimationSpeed(const String&, float);
  11015. void SetAttributeAnimationTime(const String&, float);
  11016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11017. void SetFlip(bool, bool);
  11018. void SetInterceptNetworkUpdate(const String&, bool);
  11019. // Properties:
  11020. float alpha;
  11021. bool animationEnabled;
  11022. /* readonly */
  11023. Array<Variant> attributeDefaults;
  11024. /* readonly */
  11025. Array<AttributeInfo> attributeInfos;
  11026. Array<Variant> attributes;
  11027. BlendMode blendMode;
  11028. /* readonly */
  11029. BoundingBox boundingBox;
  11030. bool castShadows;
  11031. /* readonly */
  11032. String category;
  11033. Color color;
  11034. Material customMaterial;
  11035. float drawDistance;
  11036. Rect drawRect;
  11037. bool enabled;
  11038. /* readonly */
  11039. bool enabledEffective;
  11040. bool flipX;
  11041. bool flipY;
  11042. Vector2 hotSpot;
  11043. /* readonly */
  11044. uint id;
  11045. /* readonly */
  11046. bool inView;
  11047. int layer;
  11048. uint lightMask;
  11049. float lodBias;
  11050. uint maxLights;
  11051. /* readonly */
  11052. Node node;
  11053. /* readonly */
  11054. uint numAttributes;
  11055. ObjectAnimation objectAnimation;
  11056. bool occludee;
  11057. bool occluder;
  11058. int orderInLayer;
  11059. /* readonly */
  11060. int refs;
  11061. float shadowDistance;
  11062. uint shadowMask;
  11063. Sprite2D sprite;
  11064. bool temporary;
  11065. Rect textureRect;
  11066. /* readonly */
  11067. StringHash type;
  11068. /* readonly */
  11069. String typeName;
  11070. bool useDrawRect;
  11071. bool useHotSpot;
  11072. bool useTextureRect;
  11073. uint viewMask;
  11074. /* readonly */
  11075. int weakRefs;
  11076. /* readonly */
  11077. BoundingBox worldBoundingBox;
  11078. uint zoneMask;
  11079. };
  11080. class String
  11081. {
  11082. // Methods:
  11083. void AppendUTF8(uint);
  11084. uint AtUTF8(uint) const;
  11085. uint ByteOffsetUTF8(uint) const;
  11086. void Clear();
  11087. int Compare(const String&, bool = true) const;
  11088. bool Contains(const String&, bool = true) const;
  11089. bool Contains(uint8, bool = true) const;
  11090. bool EndsWith(const String&, bool = true) const;
  11091. uint Find(const String&, uint = 0, bool = true) const;
  11092. uint Find(uint8, uint = 0, bool = true) const;
  11093. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11094. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11095. void Join(Array<String>&, const String&);
  11096. uint NextUTF8Char(uint&) const;
  11097. void Replace(const String&, const String&, bool = true);
  11098. void Replace(uint8, uint8, bool = true);
  11099. void ReplaceUTF8(uint, uint);
  11100. String Replaced(const String&, const String&, bool = true) const;
  11101. String Replaced(uint8, uint8, bool = true) const;
  11102. void Resize(uint);
  11103. void SetUTF8FromLatin1(const String&);
  11104. Array<String> Split(uint8, bool = false) const;
  11105. bool StartsWith(const String&, bool = true) const;
  11106. String Substring(uint) const;
  11107. String Substring(uint, uint) const;
  11108. String SubstringUTF8(uint) const;
  11109. String SubstringUTF8(uint, uint) const;
  11110. bool ToBool() const;
  11111. Color ToColor() const;
  11112. double ToDouble() const;
  11113. float ToFloat() const;
  11114. int ToInt(int = 10) const;
  11115. IntRect ToIntRect() const;
  11116. IntVector2 ToIntVector2() const;
  11117. String ToLower() const;
  11118. Matrix3 ToMatrix3() const;
  11119. Matrix3x4 ToMatrix3x4() const;
  11120. Matrix4 ToMatrix4() const;
  11121. Quaternion ToQuaternion() const;
  11122. uint ToUInt(int = 10) const;
  11123. String ToUpper() const;
  11124. Vector2 ToVector2() const;
  11125. Vector3 ToVector3() const;
  11126. Vector4 ToVector4(bool = false) const;
  11127. Variant ToVectorVariant() const;
  11128. String Trimmed() const;
  11129. // Properties:
  11130. /* readonly */
  11131. bool empty;
  11132. /* readonly */
  11133. uint length;
  11134. /* readonly */
  11135. uint utf8Length;
  11136. };
  11137. class StringHash
  11138. {
  11139. // Methods:
  11140. String ToString() const;
  11141. // Properties:
  11142. /* readonly */
  11143. uint value;
  11144. };
  11145. class Technique
  11146. {
  11147. // Methods:
  11148. Technique Clone(const String& = String ( )) const;
  11149. Pass CreatePass(const String&);
  11150. Pass GetPass(const String&);
  11151. Pass GetSupportedPass(const String&);
  11152. bool HasPass(const String&) const;
  11153. bool HasSubscribedToEvent(Object, const String&);
  11154. bool HasSubscribedToEvent(const String&);
  11155. bool Load(File);
  11156. bool Load(VectorBuffer&);
  11157. bool Load(const String&);
  11158. void RemovePass(const String&);
  11159. bool Save(File) const;
  11160. bool Save(VectorBuffer&) const;
  11161. bool Save(const String&) const;
  11162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11163. // Properties:
  11164. /* readonly */
  11165. String category;
  11166. bool desktop;
  11167. /* readonly */
  11168. uint memoryUse;
  11169. String name;
  11170. /* readonly */
  11171. uint numPasses;
  11172. /* readonly */
  11173. Array<String> passNames;
  11174. /* readonly */
  11175. Array<Pass> passes;
  11176. /* readonly */
  11177. int refs;
  11178. /* readonly */
  11179. bool supported;
  11180. /* readonly */
  11181. StringHash type;
  11182. /* readonly */
  11183. String typeName;
  11184. /* readonly */
  11185. uint useTimer;
  11186. /* readonly */
  11187. int weakRefs;
  11188. };
  11189. class TechniqueEntry
  11190. {
  11191. // Properties:
  11192. float lodDistance;
  11193. int qualityLevel;
  11194. Technique technique;
  11195. };
  11196. class Terrain
  11197. {
  11198. // Methods:
  11199. void ApplyAttributes();
  11200. void ApplyHeightMap();
  11201. void DrawDebugGeometry(DebugRenderer, bool);
  11202. Variant GetAttribute(const String&) const;
  11203. ValueAnimation GetAttributeAnimation(const String&) const;
  11204. float GetAttributeAnimationSpeed(const String&) const;
  11205. float GetAttributeAnimationTime(const String&) const;
  11206. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11207. Variant GetAttributeDefault(const String&) const;
  11208. float GetHeight(const Vector3&) const;
  11209. bool GetInterceptNetworkUpdate(const String&) const;
  11210. TerrainPatch GetNeighborPatch(int, int) const;
  11211. Vector3 GetNormal(const Vector3&) const;
  11212. TerrainPatch GetPatch(int, int) const;
  11213. bool HasSubscribedToEvent(Object, const String&);
  11214. bool HasSubscribedToEvent(const String&);
  11215. bool Load(File, bool = false);
  11216. bool Load(VectorBuffer&, bool = false);
  11217. bool LoadJSON(const JSONValue&, bool = false);
  11218. bool LoadXML(const XMLElement&, bool = false);
  11219. void MarkNetworkUpdate() const;
  11220. void Remove();
  11221. void RemoveAttributeAnimation(const String&);
  11222. void RemoveInstanceDefault();
  11223. void RemoveObjectAnimation();
  11224. void ResetToDefault();
  11225. bool Save(File) const;
  11226. bool Save(VectorBuffer&) const;
  11227. bool SaveJSON(JSONValue&) const;
  11228. bool SaveXML(XMLElement&) const;
  11229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11230. void SetAnimationTime(float);
  11231. bool SetAttribute(const String&, const Variant&);
  11232. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11233. void SetAttributeAnimationSpeed(const String&, float);
  11234. void SetAttributeAnimationTime(const String&, float);
  11235. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11236. void SetInterceptNetworkUpdate(const String&, bool);
  11237. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11238. IntVector2 WorldToHeightMap(const Vector3&) const;
  11239. // Properties:
  11240. bool animationEnabled;
  11241. /* readonly */
  11242. Array<Variant> attributeDefaults;
  11243. /* readonly */
  11244. Array<AttributeInfo> attributeInfos;
  11245. Array<Variant> attributes;
  11246. bool castShadows;
  11247. /* readonly */
  11248. String category;
  11249. float drawDistance;
  11250. Terrain eastNeighbor;
  11251. bool enabled;
  11252. /* readonly */
  11253. bool enabledEffective;
  11254. Image heightMap;
  11255. /* readonly */
  11256. uint id;
  11257. uint lightMask;
  11258. float lodBias;
  11259. Material material;
  11260. uint maxLights;
  11261. uint maxLodLevels;
  11262. /* readonly */
  11263. Node node;
  11264. Terrain northNeighbor;
  11265. /* readonly */
  11266. uint numAttributes;
  11267. /* readonly */
  11268. IntVector2 numPatches;
  11269. /* readonly */
  11270. IntVector2 numVertices;
  11271. ObjectAnimation objectAnimation;
  11272. bool occludee;
  11273. bool occluder;
  11274. uint occlusionLodLevel;
  11275. int patchSize;
  11276. /* readonly */
  11277. Array<TerrainPatch> patches;
  11278. /* readonly */
  11279. int refs;
  11280. float shadowDistance;
  11281. uint shadowMask;
  11282. bool smoothing;
  11283. Terrain southNeighbor;
  11284. Vector3 spacing;
  11285. bool temporary;
  11286. /* readonly */
  11287. StringHash type;
  11288. /* readonly */
  11289. String typeName;
  11290. uint viewMask;
  11291. /* readonly */
  11292. int weakRefs;
  11293. Terrain westNeighbor;
  11294. uint zoneMask;
  11295. };
  11296. class TerrainPatch
  11297. {
  11298. // Methods:
  11299. void ApplyAttributes();
  11300. void DrawDebugGeometry(DebugRenderer, bool);
  11301. Variant GetAttribute(const String&) const;
  11302. ValueAnimation GetAttributeAnimation(const String&) const;
  11303. float GetAttributeAnimationSpeed(const String&) const;
  11304. float GetAttributeAnimationTime(const String&) const;
  11305. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11306. Variant GetAttributeDefault(const String&) const;
  11307. bool GetInterceptNetworkUpdate(const String&) const;
  11308. bool HasSubscribedToEvent(Object, const String&);
  11309. bool HasSubscribedToEvent(const String&);
  11310. bool IsInView(Camera) const;
  11311. bool Load(File, bool = false);
  11312. bool Load(VectorBuffer&, bool = false);
  11313. bool LoadJSON(const JSONValue&, bool = false);
  11314. bool LoadXML(const XMLElement&, bool = false);
  11315. void MarkNetworkUpdate() const;
  11316. void Remove();
  11317. void RemoveAttributeAnimation(const String&);
  11318. void RemoveInstanceDefault();
  11319. void RemoveObjectAnimation();
  11320. void ResetToDefault();
  11321. bool Save(File) const;
  11322. bool Save(VectorBuffer&) const;
  11323. bool SaveJSON(JSONValue&) const;
  11324. bool SaveXML(XMLElement&) const;
  11325. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11326. void SetAnimationTime(float);
  11327. bool SetAttribute(const String&, const Variant&);
  11328. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11329. void SetAttributeAnimationSpeed(const String&, float);
  11330. void SetAttributeAnimationTime(const String&, float);
  11331. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11332. void SetInterceptNetworkUpdate(const String&, bool);
  11333. // Properties:
  11334. bool animationEnabled;
  11335. /* readonly */
  11336. Array<Variant> attributeDefaults;
  11337. /* readonly */
  11338. Array<AttributeInfo> attributeInfos;
  11339. Array<Variant> attributes;
  11340. /* readonly */
  11341. BoundingBox boundingBox;
  11342. bool castShadows;
  11343. /* readonly */
  11344. String category;
  11345. float drawDistance;
  11346. bool enabled;
  11347. /* readonly */
  11348. bool enabledEffective;
  11349. /* readonly */
  11350. uint id;
  11351. /* readonly */
  11352. bool inView;
  11353. uint lightMask;
  11354. float lodBias;
  11355. uint maxLights;
  11356. /* readonly */
  11357. Node node;
  11358. /* readonly */
  11359. uint numAttributes;
  11360. ObjectAnimation objectAnimation;
  11361. bool occludee;
  11362. bool occluder;
  11363. /* readonly */
  11364. int refs;
  11365. float shadowDistance;
  11366. uint shadowMask;
  11367. bool temporary;
  11368. /* readonly */
  11369. StringHash type;
  11370. /* readonly */
  11371. String typeName;
  11372. uint viewMask;
  11373. /* readonly */
  11374. int weakRefs;
  11375. /* readonly */
  11376. BoundingBox worldBoundingBox;
  11377. uint zoneMask;
  11378. };
  11379. class Text
  11380. {
  11381. // Methods:
  11382. void AddChild(UIElement);
  11383. void AddTag(const String&);
  11384. void AddTags(const String&, int8 = ';');
  11385. void ApplyAttributes();
  11386. void BringToFront();
  11387. void ClearSelection();
  11388. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11389. void DisableLayoutUpdate();
  11390. IntVector2 ElementToScreen(const IntVector2&);
  11391. void EnableLayoutUpdate();
  11392. uint FindChild(UIElement) const;
  11393. Variant GetAttribute(const String&) const;
  11394. ValueAnimation GetAttributeAnimation(const String&) const;
  11395. float GetAttributeAnimationSpeed(const String&) const;
  11396. float GetAttributeAnimationTime(const String&) const;
  11397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11398. Variant GetAttributeDefault(const String&) const;
  11399. UIElement GetChild(const String&, bool = false) const;
  11400. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11401. Array<UIElement> GetChildren(bool = false) const;
  11402. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11403. UIElement GetElementEventSender() const;
  11404. bool GetInterceptNetworkUpdate(const String&) const;
  11405. uint GetNumChildren(bool) const;
  11406. bool HasSubscribedToEvent(Object, const String&);
  11407. bool HasSubscribedToEvent(const String&);
  11408. bool HasTag(const String&) const;
  11409. void InsertChild(uint, UIElement);
  11410. bool IsInside(IntVector2, bool);
  11411. bool IsInsideCombined(IntVector2, bool);
  11412. bool Load(File, bool = false);
  11413. bool Load(VectorBuffer&, bool = false);
  11414. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11415. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11416. bool LoadJSON(const JSONValue&, bool = false);
  11417. bool LoadXML(File);
  11418. bool LoadXML(VectorBuffer&);
  11419. bool LoadXML(XMLFile, XMLFile);
  11420. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11421. bool LoadXML(const XMLElement&, bool = false);
  11422. void MarkNetworkUpdate() const;
  11423. void Remove();
  11424. void RemoveAllChildren();
  11425. void RemoveAllTags();
  11426. void RemoveAttributeAnimation(const String&);
  11427. void RemoveChild(UIElement, uint = 0);
  11428. void RemoveChild(uint);
  11429. void RemoveInstanceDefault();
  11430. void RemoveObjectAnimation();
  11431. bool RemoveTag(const String&);
  11432. void ResetDeepEnabled();
  11433. void ResetToDefault();
  11434. bool Save(File) const;
  11435. bool Save(VectorBuffer&) const;
  11436. bool SaveJSON(JSONValue&) const;
  11437. bool SaveXML(File, const String& = "\t");
  11438. bool SaveXML(VectorBuffer&, const String& = "\t");
  11439. bool SaveXML(XMLElement&) const;
  11440. IntVector2 ScreenToElement(const IntVector2&);
  11441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11442. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11443. void SetAnimationTime(float);
  11444. bool SetAttribute(const String&, const Variant&);
  11445. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11446. void SetAttributeAnimationSpeed(const String&, float);
  11447. void SetAttributeAnimationTime(const String&, float);
  11448. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11449. void SetDeepEnabled(bool);
  11450. void SetEnabledRecursive(bool);
  11451. void SetFixedHeight(int);
  11452. void SetFixedSize(int, int);
  11453. void SetFixedWidth(int);
  11454. bool SetFont(Font, int);
  11455. bool SetFont(const String&, int);
  11456. void SetInterceptNetworkUpdate(const String&, bool);
  11457. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11458. void SetMaxAnchor(float, float);
  11459. void SetMaxSize(int, int);
  11460. void SetMinAnchor(float, float);
  11461. void SetMinSize(int, int);
  11462. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11463. void SetPivot(float, float);
  11464. void SetPosition(int, int);
  11465. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11466. void SetSize(int, int);
  11467. bool SetStyle(const String&, XMLFile = null);
  11468. bool SetStyle(const XMLElement&);
  11469. bool SetStyleAuto(XMLFile = null);
  11470. void UpdateLayout();
  11471. const Variant& GetVar(const StringHash&);
  11472. // Properties:
  11473. bool animationEnabled;
  11474. /* readonly */
  11475. Array<Variant> attributeDefaults;
  11476. /* readonly */
  11477. Array<AttributeInfo> attributeInfos;
  11478. Array<Variant> attributes;
  11479. bool autoLocalizable;
  11480. bool bringToBack;
  11481. bool bringToFront;
  11482. /* readonly */
  11483. String category;
  11484. /* readonly */
  11485. Array<IntVector2> charPositions;
  11486. /* readonly */
  11487. Array<IntVector2> charSizes;
  11488. /* readonly */
  11489. IntVector2 childOffset;
  11490. /* readonly */
  11491. Array<UIElement> children;
  11492. IntRect clipBorder;
  11493. bool clipChildren;
  11494. /* writeonly */
  11495. Color color;
  11496. /* readonly */
  11497. bool colorGradient;
  11498. Array<Color> colors;
  11499. /* readonly */
  11500. IntRect combinedScreenRect;
  11501. XMLFile defaultStyle;
  11502. /* readonly */
  11503. float derivedOpacity;
  11504. /* readonly */
  11505. uint dragButtonCombo;
  11506. /* readonly */
  11507. int dragButtonCount;
  11508. uint dragDropMode;
  11509. bool editable;
  11510. Color effectColor;
  11511. bool effectRoundStroke;
  11512. IntVector2 effectShadowOffset;
  11513. int effectStrokeThickness;
  11514. bool elementEventSender;
  11515. bool enableAnchor;
  11516. bool enabled;
  11517. /* readonly */
  11518. bool enabledSelf;
  11519. /* readonly */
  11520. bool fixedHeight;
  11521. /* readonly */
  11522. bool fixedSize;
  11523. /* readonly */
  11524. bool fixedWidth;
  11525. bool focus;
  11526. FocusMode focusMode;
  11527. /* readonly */
  11528. Font font;
  11529. int fontSize;
  11530. int height;
  11531. HorizontalAlignment horizontalAlignment;
  11532. Color hoverColor;
  11533. /* readonly */
  11534. bool hovering;
  11535. int indent;
  11536. int indentSpacing;
  11537. /* readonly */
  11538. int indentWidth;
  11539. bool internal;
  11540. IntRect layoutBorder;
  11541. Vector2 layoutFlexScale;
  11542. LayoutMode layoutMode;
  11543. int layoutSpacing;
  11544. Vector2 maxAnchor;
  11545. int maxHeight;
  11546. IntVector2 maxOffset;
  11547. IntVector2 maxSize;
  11548. int maxWidth;
  11549. Vector2 minAnchor;
  11550. int minHeight;
  11551. IntVector2 minOffset;
  11552. IntVector2 minSize;
  11553. int minWidth;
  11554. String name;
  11555. /* readonly */
  11556. uint numAllChildren;
  11557. /* readonly */
  11558. uint numAttributes;
  11559. /* readonly */
  11560. uint numChars;
  11561. /* readonly */
  11562. uint numChildren;
  11563. /* readonly */
  11564. uint numRows;
  11565. ObjectAnimation objectAnimation;
  11566. float opacity;
  11567. UIElement parent;
  11568. Vector2 pivot;
  11569. IntVector2 position;
  11570. int priority;
  11571. /* readonly */
  11572. int refs;
  11573. /* readonly */
  11574. UIElement root;
  11575. /* readonly */
  11576. int rowHeight;
  11577. float rowSpacing;
  11578. /* readonly */
  11579. Array<int> rowWidths;
  11580. /* readonly */
  11581. IntVector2 screenPosition;
  11582. bool selected;
  11583. Color selectionColor;
  11584. /* readonly */
  11585. uint selectionLength;
  11586. /* readonly */
  11587. uint selectionStart;
  11588. IntVector2 size;
  11589. bool sortChildren;
  11590. String style;
  11591. /* readonly */
  11592. Array<String> tags;
  11593. bool temporary;
  11594. String text;
  11595. HorizontalAlignment textAlignment;
  11596. TextEffect textEffect;
  11597. TraversalMode traversalMode;
  11598. /* readonly */
  11599. StringHash type;
  11600. /* readonly */
  11601. String typeName;
  11602. bool useDerivedOpacity;
  11603. /* readonly */
  11604. VariantMap vars;
  11605. VerticalAlignment verticalAlignment;
  11606. bool visible;
  11607. /* readonly */
  11608. bool visibleEffective;
  11609. /* readonly */
  11610. int weakRefs;
  11611. int width;
  11612. bool wordwrap;
  11613. };
  11614. class Text3D
  11615. {
  11616. // Methods:
  11617. void ApplyAttributes();
  11618. void DrawDebugGeometry(DebugRenderer, bool);
  11619. Variant GetAttribute(const String&) const;
  11620. ValueAnimation GetAttributeAnimation(const String&) const;
  11621. float GetAttributeAnimationSpeed(const String&) const;
  11622. float GetAttributeAnimationTime(const String&) const;
  11623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11624. Variant GetAttributeDefault(const String&) const;
  11625. bool GetInterceptNetworkUpdate(const String&) const;
  11626. bool HasSubscribedToEvent(Object, const String&);
  11627. bool HasSubscribedToEvent(const String&);
  11628. bool IsInView(Camera) const;
  11629. bool Load(File, bool = false);
  11630. bool Load(VectorBuffer&, bool = false);
  11631. bool LoadJSON(const JSONValue&, bool = false);
  11632. bool LoadXML(const XMLElement&, bool = false);
  11633. void MarkNetworkUpdate() const;
  11634. void Remove();
  11635. void RemoveAttributeAnimation(const String&);
  11636. void RemoveInstanceDefault();
  11637. void RemoveObjectAnimation();
  11638. void ResetToDefault();
  11639. bool Save(File) const;
  11640. bool Save(VectorBuffer&) const;
  11641. bool SaveJSON(JSONValue&) const;
  11642. bool SaveXML(XMLElement&) const;
  11643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11644. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11645. void SetAnimationTime(float);
  11646. bool SetAttribute(const String&, const Variant&);
  11647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11648. void SetAttributeAnimationSpeed(const String&, float);
  11649. void SetAttributeAnimationTime(const String&, float);
  11650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11651. bool SetFont(Font, int);
  11652. bool SetFont(const String&, int);
  11653. void SetInterceptNetworkUpdate(const String&, bool);
  11654. // Properties:
  11655. bool animationEnabled;
  11656. /* readonly */
  11657. Array<Variant> attributeDefaults;
  11658. /* readonly */
  11659. Array<AttributeInfo> attributeInfos;
  11660. Array<Variant> attributes;
  11661. /* readonly */
  11662. BoundingBox boundingBox;
  11663. bool castShadows;
  11664. /* readonly */
  11665. String category;
  11666. /* readonly */
  11667. Array<IntVector2> charPositions;
  11668. /* readonly */
  11669. Array<IntVector2> charSizes;
  11670. /* writeonly */
  11671. Color color;
  11672. Array<Color> colors;
  11673. float drawDistance;
  11674. Color effectColor;
  11675. float effectDepthBias;
  11676. bool effectRoundStroke;
  11677. IntVector2 effectShadowOffset;
  11678. int effectStrokeThickness;
  11679. bool enabled;
  11680. /* readonly */
  11681. bool enabledEffective;
  11682. FaceCameraMode faceCameraMode;
  11683. bool fixedScreenSize;
  11684. /* readonly */
  11685. Font font;
  11686. int fontSize;
  11687. /* readonly */
  11688. int height;
  11689. HorizontalAlignment horizontalAlignment;
  11690. /* readonly */
  11691. uint id;
  11692. /* readonly */
  11693. bool inView;
  11694. uint lightMask;
  11695. float lodBias;
  11696. Material material;
  11697. uint maxLights;
  11698. /* readonly */
  11699. Node node;
  11700. /* readonly */
  11701. uint numAttributes;
  11702. /* readonly */
  11703. uint numChars;
  11704. /* readonly */
  11705. uint numRows;
  11706. ObjectAnimation objectAnimation;
  11707. bool occludee;
  11708. bool occluder;
  11709. float opacity;
  11710. /* readonly */
  11711. int refs;
  11712. /* readonly */
  11713. int rowHeight;
  11714. float rowSpacing;
  11715. /* readonly */
  11716. Array<int> rowWidths;
  11717. float shadowDistance;
  11718. uint shadowMask;
  11719. bool temporary;
  11720. String text;
  11721. HorizontalAlignment textAlignment;
  11722. TextEffect textEffect;
  11723. /* readonly */
  11724. StringHash type;
  11725. /* readonly */
  11726. String typeName;
  11727. VerticalAlignment verticalAlignment;
  11728. uint viewMask;
  11729. /* readonly */
  11730. int weakRefs;
  11731. int width;
  11732. bool wordwrap;
  11733. /* readonly */
  11734. BoundingBox worldBoundingBox;
  11735. uint zoneMask;
  11736. };
  11737. class Texture
  11738. {
  11739. // Methods:
  11740. void ClearDataLost();
  11741. bool HasSubscribedToEvent(Object, const String&);
  11742. bool HasSubscribedToEvent(const String&);
  11743. bool Load(File);
  11744. bool Load(VectorBuffer&);
  11745. bool Load(const String&);
  11746. bool Save(File) const;
  11747. bool Save(VectorBuffer&) const;
  11748. bool Save(const String&) const;
  11749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11750. void SetNumLevels(uint);
  11751. // Properties:
  11752. Array<TextureAddressMode> addressMode;
  11753. uint anisotropy;
  11754. /* readonly */
  11755. bool autoResolve;
  11756. Texture backupTexture;
  11757. Color borderColor;
  11758. /* readonly */
  11759. String category;
  11760. /* readonly */
  11761. uint components;
  11762. /* readonly */
  11763. bool compressed;
  11764. /* readonly */
  11765. bool dataLost;
  11766. TextureFilterMode filterMode;
  11767. /* readonly */
  11768. uint format;
  11769. /* readonly */
  11770. int height;
  11771. /* readonly */
  11772. Array<int> levelHeight;
  11773. /* readonly */
  11774. Array<int> levelWidth;
  11775. /* readonly */
  11776. uint levels;
  11777. /* readonly */
  11778. bool levelsDirty;
  11779. /* readonly */
  11780. uint memoryUse;
  11781. Array<int> mipsToSkip;
  11782. /* readonly */
  11783. int multiSample;
  11784. String name;
  11785. /* readonly */
  11786. int refs;
  11787. /* readonly */
  11788. bool resolveDirty;
  11789. bool sRGB;
  11790. /* readonly */
  11791. StringHash type;
  11792. /* readonly */
  11793. String typeName;
  11794. /* readonly */
  11795. TextureUsage usage;
  11796. /* readonly */
  11797. uint useTimer;
  11798. /* readonly */
  11799. int weakRefs;
  11800. /* readonly */
  11801. int width;
  11802. };
  11803. class Texture2D
  11804. {
  11805. // Methods:
  11806. void ClearDataLost();
  11807. Image GetImage() const;
  11808. bool HasSubscribedToEvent(Object, const String&);
  11809. bool HasSubscribedToEvent(const String&);
  11810. bool Load(File);
  11811. bool Load(VectorBuffer&);
  11812. bool Load(const String&);
  11813. bool Save(File) const;
  11814. bool Save(VectorBuffer&) const;
  11815. bool Save(const String&) const;
  11816. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11817. bool SetData(Image, bool = false);
  11818. void SetNumLevels(uint);
  11819. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11820. // Properties:
  11821. Array<TextureAddressMode> addressMode;
  11822. uint anisotropy;
  11823. /* readonly */
  11824. bool autoResolve;
  11825. Texture backupTexture;
  11826. Color borderColor;
  11827. /* readonly */
  11828. String category;
  11829. /* readonly */
  11830. uint components;
  11831. /* readonly */
  11832. bool compressed;
  11833. /* readonly */
  11834. bool dataLost;
  11835. TextureFilterMode filterMode;
  11836. /* readonly */
  11837. uint format;
  11838. /* readonly */
  11839. int height;
  11840. /* readonly */
  11841. Array<int> levelHeight;
  11842. /* readonly */
  11843. Array<int> levelWidth;
  11844. /* readonly */
  11845. uint levels;
  11846. /* readonly */
  11847. bool levelsDirty;
  11848. /* readonly */
  11849. uint memoryUse;
  11850. Array<int> mipsToSkip;
  11851. /* readonly */
  11852. int multiSample;
  11853. String name;
  11854. /* readonly */
  11855. int refs;
  11856. /* readonly */
  11857. RenderSurface renderSurface;
  11858. /* readonly */
  11859. bool resolveDirty;
  11860. bool sRGB;
  11861. /* readonly */
  11862. StringHash type;
  11863. /* readonly */
  11864. String typeName;
  11865. /* readonly */
  11866. TextureUsage usage;
  11867. /* readonly */
  11868. uint useTimer;
  11869. /* readonly */
  11870. int weakRefs;
  11871. /* readonly */
  11872. int width;
  11873. };
  11874. class Texture2DArray
  11875. {
  11876. // Methods:
  11877. void ClearDataLost();
  11878. bool HasSubscribedToEvent(Object, const String&);
  11879. bool HasSubscribedToEvent(const String&);
  11880. bool Load(File);
  11881. bool Load(VectorBuffer&);
  11882. bool Load(const String&);
  11883. bool Save(File) const;
  11884. bool Save(VectorBuffer&) const;
  11885. bool Save(const String&) const;
  11886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11887. bool SetData(uint, Image, bool = false);
  11888. void SetNumLevels(uint);
  11889. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11890. // Properties:
  11891. Array<TextureAddressMode> addressMode;
  11892. uint anisotropy;
  11893. /* readonly */
  11894. bool autoResolve;
  11895. Texture backupTexture;
  11896. Color borderColor;
  11897. /* readonly */
  11898. String category;
  11899. /* readonly */
  11900. uint components;
  11901. /* readonly */
  11902. bool compressed;
  11903. /* readonly */
  11904. bool dataLost;
  11905. TextureFilterMode filterMode;
  11906. /* readonly */
  11907. uint format;
  11908. /* readonly */
  11909. int height;
  11910. uint layers;
  11911. /* readonly */
  11912. Array<int> levelHeight;
  11913. /* readonly */
  11914. Array<int> levelWidth;
  11915. /* readonly */
  11916. uint levels;
  11917. /* readonly */
  11918. bool levelsDirty;
  11919. /* readonly */
  11920. uint memoryUse;
  11921. Array<int> mipsToSkip;
  11922. /* readonly */
  11923. int multiSample;
  11924. String name;
  11925. /* readonly */
  11926. int refs;
  11927. /* readonly */
  11928. RenderSurface renderSurface;
  11929. /* readonly */
  11930. bool resolveDirty;
  11931. bool sRGB;
  11932. /* readonly */
  11933. StringHash type;
  11934. /* readonly */
  11935. String typeName;
  11936. /* readonly */
  11937. TextureUsage usage;
  11938. /* readonly */
  11939. uint useTimer;
  11940. /* readonly */
  11941. int weakRefs;
  11942. /* readonly */
  11943. int width;
  11944. };
  11945. class Texture3D
  11946. {
  11947. // Methods:
  11948. void ClearDataLost();
  11949. bool HasSubscribedToEvent(Object, const String&);
  11950. bool HasSubscribedToEvent(const String&);
  11951. bool Load(File);
  11952. bool Load(VectorBuffer&);
  11953. bool Load(const String&);
  11954. bool Save(File) const;
  11955. bool Save(VectorBuffer&) const;
  11956. bool Save(const String&) const;
  11957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11958. bool SetData(Image, bool = false);
  11959. void SetNumLevels(uint);
  11960. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11961. // Properties:
  11962. Array<TextureAddressMode> addressMode;
  11963. uint anisotropy;
  11964. /* readonly */
  11965. bool autoResolve;
  11966. Texture backupTexture;
  11967. Color borderColor;
  11968. /* readonly */
  11969. String category;
  11970. /* readonly */
  11971. uint components;
  11972. /* readonly */
  11973. bool compressed;
  11974. /* readonly */
  11975. bool dataLost;
  11976. TextureFilterMode filterMode;
  11977. /* readonly */
  11978. uint format;
  11979. /* readonly */
  11980. int height;
  11981. /* readonly */
  11982. Array<int> levelHeight;
  11983. /* readonly */
  11984. Array<int> levelWidth;
  11985. /* readonly */
  11986. uint levels;
  11987. /* readonly */
  11988. bool levelsDirty;
  11989. /* readonly */
  11990. uint memoryUse;
  11991. Array<int> mipsToSkip;
  11992. /* readonly */
  11993. int multiSample;
  11994. String name;
  11995. /* readonly */
  11996. int refs;
  11997. /* readonly */
  11998. bool resolveDirty;
  11999. bool sRGB;
  12000. /* readonly */
  12001. StringHash type;
  12002. /* readonly */
  12003. String typeName;
  12004. /* readonly */
  12005. TextureUsage usage;
  12006. /* readonly */
  12007. uint useTimer;
  12008. /* readonly */
  12009. int weakRefs;
  12010. /* readonly */
  12011. int width;
  12012. };
  12013. class TextureCube
  12014. {
  12015. // Methods:
  12016. void ClearDataLost();
  12017. Image GetImage(CubeMapFace) const;
  12018. bool HasSubscribedToEvent(Object, const String&);
  12019. bool HasSubscribedToEvent(const String&);
  12020. bool Load(File);
  12021. bool Load(VectorBuffer&);
  12022. bool Load(const String&);
  12023. bool Save(File) const;
  12024. bool Save(VectorBuffer&) const;
  12025. bool Save(const String&) const;
  12026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12027. bool SetData(CubeMapFace, Image, bool = false);
  12028. void SetNumLevels(uint);
  12029. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12030. // Properties:
  12031. Array<TextureAddressMode> addressMode;
  12032. uint anisotropy;
  12033. /* readonly */
  12034. bool autoResolve;
  12035. Texture backupTexture;
  12036. Color borderColor;
  12037. /* readonly */
  12038. String category;
  12039. /* readonly */
  12040. uint components;
  12041. /* readonly */
  12042. bool compressed;
  12043. /* readonly */
  12044. bool dataLost;
  12045. TextureFilterMode filterMode;
  12046. /* readonly */
  12047. uint format;
  12048. /* readonly */
  12049. int height;
  12050. /* readonly */
  12051. Array<int> levelHeight;
  12052. /* readonly */
  12053. Array<int> levelWidth;
  12054. /* readonly */
  12055. uint levels;
  12056. /* readonly */
  12057. bool levelsDirty;
  12058. /* readonly */
  12059. uint memoryUse;
  12060. Array<int> mipsToSkip;
  12061. /* readonly */
  12062. int multiSample;
  12063. String name;
  12064. /* readonly */
  12065. int refs;
  12066. /* readonly */
  12067. Array<RenderSurface> renderSurfaces;
  12068. /* readonly */
  12069. bool resolveDirty;
  12070. bool sRGB;
  12071. /* readonly */
  12072. StringHash type;
  12073. /* readonly */
  12074. String typeName;
  12075. /* readonly */
  12076. TextureUsage usage;
  12077. /* readonly */
  12078. uint useTimer;
  12079. /* readonly */
  12080. int weakRefs;
  12081. /* readonly */
  12082. int width;
  12083. };
  12084. class TextureFrame
  12085. {
  12086. // Properties:
  12087. float time;
  12088. Rect uv;
  12089. };
  12090. class Tile2D
  12091. {
  12092. // Methods:
  12093. bool HasProperty(const String&) const;
  12094. const String& GetProperty(const String&) const;
  12095. // Properties:
  12096. /* readonly */
  12097. int gid;
  12098. /* readonly */
  12099. int refs;
  12100. /* readonly */
  12101. Sprite2D sprite;
  12102. /* readonly */
  12103. int weakRefs;
  12104. };
  12105. class TileMap2D
  12106. {
  12107. // Methods:
  12108. void ApplyAttributes();
  12109. void DrawDebugGeometry(DebugRenderer, bool);
  12110. Variant GetAttribute(const String&) const;
  12111. ValueAnimation GetAttributeAnimation(const String&) const;
  12112. float GetAttributeAnimationSpeed(const String&) const;
  12113. float GetAttributeAnimationTime(const String&) const;
  12114. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12115. Variant GetAttributeDefault(const String&) const;
  12116. bool GetInterceptNetworkUpdate(const String&) const;
  12117. TileMapLayer2D GetLayer(uint) const;
  12118. bool HasSubscribedToEvent(Object, const String&);
  12119. bool HasSubscribedToEvent(const String&);
  12120. bool Load(File, bool = false);
  12121. bool Load(VectorBuffer&, bool = false);
  12122. bool LoadJSON(const JSONValue&, bool = false);
  12123. bool LoadXML(const XMLElement&, bool = false);
  12124. void MarkNetworkUpdate() const;
  12125. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12126. void Remove();
  12127. void RemoveAttributeAnimation(const String&);
  12128. void RemoveInstanceDefault();
  12129. void RemoveObjectAnimation();
  12130. void ResetToDefault();
  12131. bool Save(File) const;
  12132. bool Save(VectorBuffer&) const;
  12133. bool SaveJSON(JSONValue&) const;
  12134. bool SaveXML(XMLElement&) const;
  12135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12136. void SetAnimationTime(float);
  12137. bool SetAttribute(const String&, const Variant&);
  12138. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12139. void SetAttributeAnimationSpeed(const String&, float);
  12140. void SetAttributeAnimationTime(const String&, float);
  12141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12142. void SetInterceptNetworkUpdate(const String&, bool);
  12143. Vector2 TileIndexToPosition(int, int) const;
  12144. // Properties:
  12145. bool animationEnabled;
  12146. /* readonly */
  12147. Array<Variant> attributeDefaults;
  12148. /* readonly */
  12149. Array<AttributeInfo> attributeInfos;
  12150. Array<Variant> attributes;
  12151. /* readonly */
  12152. String category;
  12153. bool enabled;
  12154. /* readonly */
  12155. bool enabledEffective;
  12156. /* readonly */
  12157. uint id;
  12158. /* readonly */
  12159. TileMapInfo2D info;
  12160. /* readonly */
  12161. Node node;
  12162. /* readonly */
  12163. uint numAttributes;
  12164. /* readonly */
  12165. uint numLayers;
  12166. ObjectAnimation objectAnimation;
  12167. /* readonly */
  12168. int refs;
  12169. bool temporary;
  12170. TmxFile2D tmxFile;
  12171. /* readonly */
  12172. StringHash type;
  12173. /* readonly */
  12174. String typeName;
  12175. /* readonly */
  12176. int weakRefs;
  12177. };
  12178. class TileMapInfo2D
  12179. {
  12180. // Properties:
  12181. int height;
  12182. /* readonly */
  12183. float mapHeight;
  12184. /* readonly */
  12185. float mapWidth;
  12186. Orientation2D orientation;
  12187. float tileHeight;
  12188. float tileWidth;
  12189. int width;
  12190. };
  12191. class TileMapLayer2D
  12192. {
  12193. // Methods:
  12194. void ApplyAttributes();
  12195. void DrawDebugGeometry(DebugRenderer, bool);
  12196. Variant GetAttribute(const String&) const;
  12197. ValueAnimation GetAttributeAnimation(const String&) const;
  12198. float GetAttributeAnimationSpeed(const String&) const;
  12199. float GetAttributeAnimationTime(const String&) const;
  12200. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12201. Variant GetAttributeDefault(const String&) const;
  12202. bool GetInterceptNetworkUpdate(const String&) const;
  12203. TileMapObject2D GetObject(uint) const;
  12204. Node GetObjectNode(uint) const;
  12205. Tile2D GetTile(int, int) const;
  12206. Node GetTileNode(int, int) const;
  12207. bool HasProperty(const String&) const;
  12208. bool HasSubscribedToEvent(Object, const String&);
  12209. bool HasSubscribedToEvent(const String&);
  12210. bool Load(File, bool = false);
  12211. bool Load(VectorBuffer&, bool = false);
  12212. bool LoadJSON(const JSONValue&, bool = false);
  12213. bool LoadXML(const XMLElement&, bool = false);
  12214. void MarkNetworkUpdate() const;
  12215. void Remove();
  12216. void RemoveAttributeAnimation(const String&);
  12217. void RemoveInstanceDefault();
  12218. void RemoveObjectAnimation();
  12219. void ResetToDefault();
  12220. bool Save(File) const;
  12221. bool Save(VectorBuffer&) const;
  12222. bool SaveJSON(JSONValue&) const;
  12223. bool SaveXML(XMLElement&) const;
  12224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12225. void SetAnimationTime(float);
  12226. bool SetAttribute(const String&, const Variant&);
  12227. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12228. void SetAttributeAnimationSpeed(const String&, float);
  12229. void SetAttributeAnimationTime(const String&, float);
  12230. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12231. void SetInterceptNetworkUpdate(const String&, bool);
  12232. const String& GetProperty(const String&) const;
  12233. // Properties:
  12234. bool animationEnabled;
  12235. /* readonly */
  12236. Array<Variant> attributeDefaults;
  12237. /* readonly */
  12238. Array<AttributeInfo> attributeInfos;
  12239. Array<Variant> attributes;
  12240. /* readonly */
  12241. String category;
  12242. int drawOrder;
  12243. bool enabled;
  12244. /* readonly */
  12245. bool enabledEffective;
  12246. /* readonly */
  12247. int height;
  12248. /* readonly */
  12249. uint id;
  12250. /* readonly */
  12251. Node imageNode;
  12252. /* readonly */
  12253. TileMapLayerType2D layerType;
  12254. /* readonly */
  12255. Node node;
  12256. /* readonly */
  12257. uint numAttributes;
  12258. /* readonly */
  12259. uint numObjects;
  12260. ObjectAnimation objectAnimation;
  12261. /* readonly */
  12262. int refs;
  12263. bool temporary;
  12264. /* readonly */
  12265. StringHash type;
  12266. /* readonly */
  12267. String typeName;
  12268. bool visible;
  12269. /* readonly */
  12270. int weakRefs;
  12271. /* readonly */
  12272. int width;
  12273. };
  12274. class TileMapObject2D
  12275. {
  12276. // Methods:
  12277. bool HasProperty(const String&) const;
  12278. const String& GetProperty(const String&) const;
  12279. const Vector2& GetPoint(uint) const;
  12280. // Properties:
  12281. /* readonly */
  12282. String name;
  12283. /* readonly */
  12284. uint numPoints;
  12285. /* readonly */
  12286. TileObjectType2D objectType;
  12287. /* readonly */
  12288. Vector2 position;
  12289. /* readonly */
  12290. int refs;
  12291. /* readonly */
  12292. Vector2 size;
  12293. /* readonly */
  12294. int tileGid;
  12295. /* readonly */
  12296. Sprite2D tileSprite;
  12297. /* readonly */
  12298. String type;
  12299. /* readonly */
  12300. int weakRefs;
  12301. };
  12302. class Time
  12303. {
  12304. // Methods:
  12305. bool HasSubscribedToEvent(Object, const String&);
  12306. bool HasSubscribedToEvent(const String&);
  12307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12308. // Properties:
  12309. /* readonly */
  12310. String category;
  12311. /* readonly */
  12312. float elapsedTime;
  12313. /* readonly */
  12314. uint frameNumber;
  12315. /* readonly */
  12316. int refs;
  12317. /* readonly */
  12318. uint systemTime;
  12319. /* readonly */
  12320. uint timeSinceEpoch;
  12321. /* readonly */
  12322. String timeStamp;
  12323. /* readonly */
  12324. float timeStep;
  12325. /* readonly */
  12326. StringHash type;
  12327. /* readonly */
  12328. String typeName;
  12329. /* readonly */
  12330. int weakRefs;
  12331. };
  12332. class Timer
  12333. {
  12334. // Methods:
  12335. uint GetMSec(bool);
  12336. void Reset();
  12337. };
  12338. class TmxFile2D
  12339. {
  12340. // Methods:
  12341. bool HasSubscribedToEvent(Object, const String&);
  12342. bool HasSubscribedToEvent(const String&);
  12343. bool Load(File);
  12344. bool Load(VectorBuffer&);
  12345. bool Load(const String&);
  12346. bool Save(File) const;
  12347. bool Save(VectorBuffer&) const;
  12348. bool Save(const String&) const;
  12349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12350. // Properties:
  12351. /* readonly */
  12352. String category;
  12353. /* readonly */
  12354. uint memoryUse;
  12355. String name;
  12356. /* readonly */
  12357. int refs;
  12358. /* readonly */
  12359. StringHash type;
  12360. /* readonly */
  12361. String typeName;
  12362. /* readonly */
  12363. uint useTimer;
  12364. /* readonly */
  12365. int weakRefs;
  12366. };
  12367. class ToolTip
  12368. {
  12369. // Methods:
  12370. void AddChild(UIElement);
  12371. void AddTag(const String&);
  12372. void AddTags(const String&, int8 = ';');
  12373. void ApplyAttributes();
  12374. void BringToFront();
  12375. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12376. void DisableLayoutUpdate();
  12377. IntVector2 ElementToScreen(const IntVector2&);
  12378. void EnableLayoutUpdate();
  12379. uint FindChild(UIElement) const;
  12380. Variant GetAttribute(const String&) const;
  12381. ValueAnimation GetAttributeAnimation(const String&) const;
  12382. float GetAttributeAnimationSpeed(const String&) const;
  12383. float GetAttributeAnimationTime(const String&) const;
  12384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12385. Variant GetAttributeDefault(const String&) const;
  12386. UIElement GetChild(const String&, bool = false) const;
  12387. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12388. Array<UIElement> GetChildren(bool = false) const;
  12389. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12390. UIElement GetElementEventSender() const;
  12391. bool GetInterceptNetworkUpdate(const String&) const;
  12392. uint GetNumChildren(bool) const;
  12393. bool HasSubscribedToEvent(Object, const String&);
  12394. bool HasSubscribedToEvent(const String&);
  12395. bool HasTag(const String&) const;
  12396. void InsertChild(uint, UIElement);
  12397. bool IsInside(IntVector2, bool);
  12398. bool IsInsideCombined(IntVector2, bool);
  12399. bool Load(File, bool = false);
  12400. bool Load(VectorBuffer&, bool = false);
  12401. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12402. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12403. bool LoadJSON(const JSONValue&, bool = false);
  12404. bool LoadXML(File);
  12405. bool LoadXML(VectorBuffer&);
  12406. bool LoadXML(XMLFile, XMLFile);
  12407. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12408. bool LoadXML(const XMLElement&, bool = false);
  12409. void MarkNetworkUpdate() const;
  12410. void Remove();
  12411. void RemoveAllChildren();
  12412. void RemoveAllTags();
  12413. void RemoveAttributeAnimation(const String&);
  12414. void RemoveChild(UIElement, uint = 0);
  12415. void RemoveChild(uint);
  12416. void RemoveInstanceDefault();
  12417. void RemoveObjectAnimation();
  12418. bool RemoveTag(const String&);
  12419. void ResetDeepEnabled();
  12420. void ResetToDefault();
  12421. bool Save(File) const;
  12422. bool Save(VectorBuffer&) const;
  12423. bool SaveJSON(JSONValue&) const;
  12424. bool SaveXML(File, const String& = "\t");
  12425. bool SaveXML(VectorBuffer&, const String& = "\t");
  12426. bool SaveXML(XMLElement&) const;
  12427. IntVector2 ScreenToElement(const IntVector2&);
  12428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12429. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12430. void SetAnimationTime(float);
  12431. bool SetAttribute(const String&, const Variant&);
  12432. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12433. void SetAttributeAnimationSpeed(const String&, float);
  12434. void SetAttributeAnimationTime(const String&, float);
  12435. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12436. void SetDeepEnabled(bool);
  12437. void SetEnabledRecursive(bool);
  12438. void SetFixedHeight(int);
  12439. void SetFixedSize(int, int);
  12440. void SetFixedWidth(int);
  12441. void SetInterceptNetworkUpdate(const String&, bool);
  12442. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12443. void SetMaxAnchor(float, float);
  12444. void SetMaxSize(int, int);
  12445. void SetMinAnchor(float, float);
  12446. void SetMinSize(int, int);
  12447. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12448. void SetPivot(float, float);
  12449. void SetPosition(int, int);
  12450. void SetSize(int, int);
  12451. bool SetStyle(const String&, XMLFile = null);
  12452. bool SetStyle(const XMLElement&);
  12453. bool SetStyleAuto(XMLFile = null);
  12454. void UpdateLayout();
  12455. const Variant& GetVar(const StringHash&);
  12456. // Properties:
  12457. bool animationEnabled;
  12458. /* readonly */
  12459. Array<Variant> attributeDefaults;
  12460. /* readonly */
  12461. Array<AttributeInfo> attributeInfos;
  12462. Array<Variant> attributes;
  12463. bool bringToBack;
  12464. bool bringToFront;
  12465. /* readonly */
  12466. String category;
  12467. /* readonly */
  12468. IntVector2 childOffset;
  12469. /* readonly */
  12470. Array<UIElement> children;
  12471. IntRect clipBorder;
  12472. bool clipChildren;
  12473. /* writeonly */
  12474. Color color;
  12475. /* readonly */
  12476. bool colorGradient;
  12477. Array<Color> colors;
  12478. /* readonly */
  12479. IntRect combinedScreenRect;
  12480. XMLFile defaultStyle;
  12481. float delay;
  12482. /* readonly */
  12483. float derivedOpacity;
  12484. /* readonly */
  12485. uint dragButtonCombo;
  12486. /* readonly */
  12487. int dragButtonCount;
  12488. uint dragDropMode;
  12489. bool editable;
  12490. bool elementEventSender;
  12491. bool enableAnchor;
  12492. bool enabled;
  12493. /* readonly */
  12494. bool enabledSelf;
  12495. /* readonly */
  12496. bool fixedHeight;
  12497. /* readonly */
  12498. bool fixedSize;
  12499. /* readonly */
  12500. bool fixedWidth;
  12501. bool focus;
  12502. FocusMode focusMode;
  12503. int height;
  12504. HorizontalAlignment horizontalAlignment;
  12505. /* readonly */
  12506. bool hovering;
  12507. int indent;
  12508. int indentSpacing;
  12509. /* readonly */
  12510. int indentWidth;
  12511. bool internal;
  12512. IntRect layoutBorder;
  12513. Vector2 layoutFlexScale;
  12514. LayoutMode layoutMode;
  12515. int layoutSpacing;
  12516. Vector2 maxAnchor;
  12517. int maxHeight;
  12518. IntVector2 maxOffset;
  12519. IntVector2 maxSize;
  12520. int maxWidth;
  12521. Vector2 minAnchor;
  12522. int minHeight;
  12523. IntVector2 minOffset;
  12524. IntVector2 minSize;
  12525. int minWidth;
  12526. String name;
  12527. /* readonly */
  12528. uint numAllChildren;
  12529. /* readonly */
  12530. uint numAttributes;
  12531. /* readonly */
  12532. uint numChildren;
  12533. ObjectAnimation objectAnimation;
  12534. float opacity;
  12535. UIElement parent;
  12536. Vector2 pivot;
  12537. IntVector2 position;
  12538. int priority;
  12539. /* readonly */
  12540. int refs;
  12541. /* readonly */
  12542. UIElement root;
  12543. /* readonly */
  12544. IntVector2 screenPosition;
  12545. bool selected;
  12546. IntVector2 size;
  12547. bool sortChildren;
  12548. String style;
  12549. /* readonly */
  12550. Array<String> tags;
  12551. bool temporary;
  12552. TraversalMode traversalMode;
  12553. /* readonly */
  12554. StringHash type;
  12555. /* readonly */
  12556. String typeName;
  12557. bool useDerivedOpacity;
  12558. /* readonly */
  12559. VariantMap vars;
  12560. VerticalAlignment verticalAlignment;
  12561. bool visible;
  12562. /* readonly */
  12563. bool visibleEffective;
  12564. /* readonly */
  12565. int weakRefs;
  12566. int width;
  12567. };
  12568. class TouchState
  12569. {
  12570. // Properties:
  12571. IntVector2 delta;
  12572. IntVector2 lastPosition;
  12573. IntVector2 position;
  12574. float pressure;
  12575. int touchID;
  12576. /* readonly */
  12577. UIElement touchedElement;
  12578. };
  12579. class UI
  12580. {
  12581. // Methods:
  12582. void Clear();
  12583. void DebugDraw(UIElement);
  12584. UIElement GetElementAt(const IntVector2&, bool = true);
  12585. UIElement GetElementAt(int, int, bool = true);
  12586. bool HasModalElement() const;
  12587. bool HasSubscribedToEvent(Object, const String&);
  12588. bool HasSubscribedToEvent(const String&);
  12589. bool IsDragging() const;
  12590. UIElement LoadLayout(File);
  12591. UIElement LoadLayout(File, XMLFile);
  12592. UIElement LoadLayout(VectorBuffer&);
  12593. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12594. UIElement LoadLayout(XMLFile);
  12595. UIElement LoadLayout(XMLFile, XMLFile);
  12596. bool SaveLayout(File, UIElement);
  12597. bool SaveLayout(VectorBuffer&, UIElement);
  12598. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12599. void SetCustomSize(int, int);
  12600. void SetFocusElement(UIElement, bool = false);
  12601. void SetHeight(float);
  12602. void SetWidth(float);
  12603. const Array<UIElement> GetDragElements();
  12604. // Properties:
  12605. /* readonly */
  12606. String category;
  12607. String clipBoardText;
  12608. Cursor cursor;
  12609. /* readonly */
  12610. IntVector2 cursorPosition;
  12611. IntVector2 customSize;
  12612. float defaultToolTipDelay;
  12613. float doubleClickInterval;
  12614. int dragBeginDistance;
  12615. float dragBeginInterval;
  12616. UIElement focusElement;
  12617. bool forceAutoHint;
  12618. /* readonly */
  12619. UIElement frontElement;
  12620. int maxFontTextureSize;
  12621. /* readonly */
  12622. UIElement modalRoot;
  12623. bool nonFocusedMouseWheel;
  12624. /* readonly */
  12625. int refs;
  12626. /* readonly */
  12627. UIElement root;
  12628. float scale;
  12629. /* readonly */
  12630. StringHash type;
  12631. /* readonly */
  12632. String typeName;
  12633. bool useMutableGlyphs;
  12634. bool useScreenKeyboard;
  12635. bool useSystemClipboard;
  12636. /* readonly */
  12637. int weakRefs;
  12638. };
  12639. class UIElement
  12640. {
  12641. // Methods:
  12642. void AddChild(UIElement);
  12643. void AddTag(const String&);
  12644. void AddTags(const String&, int8 = ';');
  12645. void ApplyAttributes();
  12646. void BringToFront();
  12647. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12648. void DisableLayoutUpdate();
  12649. IntVector2 ElementToScreen(const IntVector2&);
  12650. void EnableLayoutUpdate();
  12651. uint FindChild(UIElement) const;
  12652. Variant GetAttribute(const String&) const;
  12653. ValueAnimation GetAttributeAnimation(const String&) const;
  12654. float GetAttributeAnimationSpeed(const String&) const;
  12655. float GetAttributeAnimationTime(const String&) const;
  12656. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12657. Variant GetAttributeDefault(const String&) const;
  12658. UIElement GetChild(const String&, bool = false) const;
  12659. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12660. Array<UIElement> GetChildren(bool = false) const;
  12661. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12662. UIElement GetElementEventSender() const;
  12663. bool GetInterceptNetworkUpdate(const String&) const;
  12664. uint GetNumChildren(bool) const;
  12665. bool HasSubscribedToEvent(Object, const String&);
  12666. bool HasSubscribedToEvent(const String&);
  12667. bool HasTag(const String&) const;
  12668. void InsertChild(uint, UIElement);
  12669. bool IsInside(IntVector2, bool);
  12670. bool IsInsideCombined(IntVector2, bool);
  12671. bool Load(File, bool = false);
  12672. bool Load(VectorBuffer&, bool = false);
  12673. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12674. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12675. bool LoadJSON(const JSONValue&, bool = false);
  12676. bool LoadXML(File);
  12677. bool LoadXML(VectorBuffer&);
  12678. bool LoadXML(XMLFile, XMLFile);
  12679. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12680. bool LoadXML(const XMLElement&, bool = false);
  12681. void MarkNetworkUpdate() const;
  12682. void Remove();
  12683. void RemoveAllChildren();
  12684. void RemoveAllTags();
  12685. void RemoveAttributeAnimation(const String&);
  12686. void RemoveChild(UIElement, uint = 0);
  12687. void RemoveChild(uint);
  12688. void RemoveInstanceDefault();
  12689. void RemoveObjectAnimation();
  12690. bool RemoveTag(const String&);
  12691. void ResetDeepEnabled();
  12692. void ResetToDefault();
  12693. bool Save(File) const;
  12694. bool Save(VectorBuffer&) const;
  12695. bool SaveJSON(JSONValue&) const;
  12696. bool SaveXML(File, const String& = "\t");
  12697. bool SaveXML(VectorBuffer&, const String& = "\t");
  12698. bool SaveXML(XMLElement&) const;
  12699. IntVector2 ScreenToElement(const IntVector2&);
  12700. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12701. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12702. void SetAnimationTime(float);
  12703. bool SetAttribute(const String&, const Variant&);
  12704. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12705. void SetAttributeAnimationSpeed(const String&, float);
  12706. void SetAttributeAnimationTime(const String&, float);
  12707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12708. void SetDeepEnabled(bool);
  12709. void SetEnabledRecursive(bool);
  12710. void SetFixedHeight(int);
  12711. void SetFixedSize(int, int);
  12712. void SetFixedWidth(int);
  12713. void SetInterceptNetworkUpdate(const String&, bool);
  12714. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12715. void SetMaxAnchor(float, float);
  12716. void SetMaxSize(int, int);
  12717. void SetMinAnchor(float, float);
  12718. void SetMinSize(int, int);
  12719. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12720. void SetPivot(float, float);
  12721. void SetPosition(int, int);
  12722. void SetSize(int, int);
  12723. bool SetStyle(const String&, XMLFile = null);
  12724. bool SetStyle(const XMLElement&);
  12725. bool SetStyleAuto(XMLFile = null);
  12726. void UpdateLayout();
  12727. const Variant& GetVar(const StringHash&);
  12728. // Properties:
  12729. bool animationEnabled;
  12730. /* readonly */
  12731. Array<Variant> attributeDefaults;
  12732. /* readonly */
  12733. Array<AttributeInfo> attributeInfos;
  12734. Array<Variant> attributes;
  12735. bool bringToBack;
  12736. bool bringToFront;
  12737. /* readonly */
  12738. String category;
  12739. /* readonly */
  12740. IntVector2 childOffset;
  12741. /* readonly */
  12742. Array<UIElement> children;
  12743. IntRect clipBorder;
  12744. bool clipChildren;
  12745. /* writeonly */
  12746. Color color;
  12747. /* readonly */
  12748. bool colorGradient;
  12749. Array<Color> colors;
  12750. /* readonly */
  12751. IntRect combinedScreenRect;
  12752. XMLFile defaultStyle;
  12753. /* readonly */
  12754. float derivedOpacity;
  12755. /* readonly */
  12756. uint dragButtonCombo;
  12757. /* readonly */
  12758. int dragButtonCount;
  12759. uint dragDropMode;
  12760. bool editable;
  12761. bool elementEventSender;
  12762. bool enableAnchor;
  12763. bool enabled;
  12764. /* readonly */
  12765. bool enabledSelf;
  12766. /* readonly */
  12767. bool fixedHeight;
  12768. /* readonly */
  12769. bool fixedSize;
  12770. /* readonly */
  12771. bool fixedWidth;
  12772. bool focus;
  12773. FocusMode focusMode;
  12774. int height;
  12775. HorizontalAlignment horizontalAlignment;
  12776. /* readonly */
  12777. bool hovering;
  12778. int indent;
  12779. int indentSpacing;
  12780. /* readonly */
  12781. int indentWidth;
  12782. bool internal;
  12783. IntRect layoutBorder;
  12784. Vector2 layoutFlexScale;
  12785. LayoutMode layoutMode;
  12786. int layoutSpacing;
  12787. Vector2 maxAnchor;
  12788. int maxHeight;
  12789. IntVector2 maxOffset;
  12790. IntVector2 maxSize;
  12791. int maxWidth;
  12792. Vector2 minAnchor;
  12793. int minHeight;
  12794. IntVector2 minOffset;
  12795. IntVector2 minSize;
  12796. int minWidth;
  12797. String name;
  12798. /* readonly */
  12799. uint numAllChildren;
  12800. /* readonly */
  12801. uint numAttributes;
  12802. /* readonly */
  12803. uint numChildren;
  12804. ObjectAnimation objectAnimation;
  12805. float opacity;
  12806. UIElement parent;
  12807. Vector2 pivot;
  12808. IntVector2 position;
  12809. int priority;
  12810. /* readonly */
  12811. int refs;
  12812. /* readonly */
  12813. UIElement root;
  12814. /* readonly */
  12815. IntVector2 screenPosition;
  12816. bool selected;
  12817. IntVector2 size;
  12818. bool sortChildren;
  12819. String style;
  12820. /* readonly */
  12821. Array<String> tags;
  12822. bool temporary;
  12823. TraversalMode traversalMode;
  12824. /* readonly */
  12825. StringHash type;
  12826. /* readonly */
  12827. String typeName;
  12828. bool useDerivedOpacity;
  12829. /* readonly */
  12830. VariantMap vars;
  12831. VerticalAlignment verticalAlignment;
  12832. bool visible;
  12833. /* readonly */
  12834. bool visibleEffective;
  12835. /* readonly */
  12836. int weakRefs;
  12837. int width;
  12838. };
  12839. class ValueAnimation
  12840. {
  12841. // Methods:
  12842. bool HasSubscribedToEvent(Object, const String&);
  12843. bool HasSubscribedToEvent(const String&);
  12844. bool Load(File);
  12845. bool Load(VectorBuffer&);
  12846. bool Load(const String&);
  12847. bool Save(File) const;
  12848. bool Save(VectorBuffer&) const;
  12849. bool Save(const String&) const;
  12850. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12851. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12852. void SetKeyFrame(float, const Variant&);
  12853. // Properties:
  12854. /* readonly */
  12855. String category;
  12856. InterpMethod interpolationMethod;
  12857. /* readonly */
  12858. uint memoryUse;
  12859. String name;
  12860. /* readonly */
  12861. int refs;
  12862. float splineTension;
  12863. /* readonly */
  12864. StringHash type;
  12865. /* readonly */
  12866. String typeName;
  12867. /* readonly */
  12868. uint useTimer;
  12869. VariantType valueType;
  12870. /* readonly */
  12871. int weakRefs;
  12872. };
  12873. class Variant
  12874. {
  12875. // Methods:
  12876. void Clear();
  12877. const Color& GetColor() const;
  12878. void FromString(VariantType, const String&);
  12879. void FromString(const String&, const String&);
  12880. bool GetBool() const;
  12881. VectorBuffer GetBuffer() const;
  12882. double GetDouble() const;
  12883. float GetFloat() const;
  12884. int GetInt() const;
  12885. RefCounted GetPtr() const;
  12886. ScriptObject GetScriptObject() const;
  12887. StringHash GetStringHash() const;
  12888. Array<String> GetStringVector() const;
  12889. uint GetUInt() const;
  12890. Array<Variant> GetVariantVector() const;
  12891. const IntRect& GetIntRect() const;
  12892. const IntVector2& GetIntVector2() const;
  12893. const Matrix3& GetMatrix3() const;
  12894. const Matrix3x4& GetMatrix3x4() const;
  12895. const Matrix4& GetMatrix4() const;
  12896. const Quaternion& GetQuaternion() const;
  12897. const Rect& GetRect() const;
  12898. const ResourceRef& GetResourceRef() const;
  12899. const ResourceRefList& GetResourceRefList() const;
  12900. const String& GetString() const;
  12901. String ToString() const;
  12902. const VariantMap& GetVariantMap() const;
  12903. const Vector2& GetVector2() const;
  12904. const Vector3& GetVector3() const;
  12905. const Vector4& GetVector4() const;
  12906. // Properties:
  12907. /* readonly */
  12908. bool empty;
  12909. /* readonly */
  12910. VariantType type;
  12911. /* readonly */
  12912. String typeName;
  12913. /* readonly */
  12914. bool zero;
  12915. };
  12916. class VariantMap
  12917. {
  12918. // Methods:
  12919. void Clear();
  12920. bool Contains(StringHash) const;
  12921. bool Contains(const String&) const;
  12922. bool Erase(StringHash);
  12923. bool Erase(const String&);
  12924. // Properties:
  12925. /* readonly */
  12926. Array<StringHash> keys;
  12927. /* readonly */
  12928. uint length;
  12929. /* readonly */
  12930. Array<Variant> values;
  12931. };
  12932. class Vector2
  12933. {
  12934. // Methods:
  12935. Vector2 Abs() const;
  12936. float AbsDotProduct(const Vector2&) const;
  12937. float Angle(const Vector2&) const;
  12938. float DotProduct(const Vector2&) const;
  12939. bool Equals(const Vector2&) const;
  12940. bool IsNaN() const;
  12941. Vector2 Lerp(const Vector2&, float) const;
  12942. void Normalize();
  12943. Vector2 Normalized() const;
  12944. float ProjectOntoAxis(const Vector2&) const;
  12945. String ToString() const;
  12946. // Properties:
  12947. /* readonly */
  12948. Array<float> data;
  12949. /* readonly */
  12950. float length;
  12951. /* readonly */
  12952. float lengthSquared;
  12953. float x;
  12954. float y;
  12955. };
  12956. class Vector3
  12957. {
  12958. // Methods:
  12959. Vector3 Abs() const;
  12960. float AbsDotProduct(const Vector3&) const;
  12961. float Angle(const Vector3&) const;
  12962. Vector3 CrossProduct(const Vector3&) const;
  12963. float DotProduct(const Vector3&) const;
  12964. bool Equals(const Vector3&) const;
  12965. bool IsNaN() const;
  12966. Vector3 Lerp(const Vector3&, float) const;
  12967. void Normalize();
  12968. Vector3 Normalized() const;
  12969. float ProjectOntoAxis(const Vector3&) const;
  12970. String ToString() const;
  12971. // Properties:
  12972. /* readonly */
  12973. Array<float> data;
  12974. /* readonly */
  12975. float length;
  12976. /* readonly */
  12977. float lengthSquared;
  12978. float x;
  12979. float y;
  12980. float z;
  12981. };
  12982. class Vector4
  12983. {
  12984. // Methods:
  12985. Vector4 Abs() const;
  12986. float AbsDotProduct(const Vector4&) const;
  12987. float DotProduct(const Vector4&) const;
  12988. bool Equals(const Vector4&) const;
  12989. bool IsNaN() const;
  12990. Vector4 Lerp(const Vector4&, float) const;
  12991. float ProjectOntoAxis(const Vector3&) const;
  12992. String ToString() const;
  12993. // Properties:
  12994. /* readonly */
  12995. Array<float> data;
  12996. float w;
  12997. float x;
  12998. float y;
  12999. float z;
  13000. };
  13001. class VectorBuffer
  13002. {
  13003. // Methods:
  13004. void Clear();
  13005. Array<uint8> Read(uint);
  13006. bool ReadBool();
  13007. BoundingBox ReadBoundingBox();
  13008. int8 ReadByte();
  13009. Color ReadColor();
  13010. double ReadDouble();
  13011. String ReadFileID();
  13012. float ReadFloat();
  13013. int ReadInt();
  13014. int64 ReadInt64();
  13015. IntRect ReadIntRect();
  13016. IntVector2 ReadIntVector2();
  13017. String ReadLine();
  13018. Matrix3 ReadMatrix3();
  13019. Matrix3x4 ReadMatrix3x4();
  13020. Matrix4 ReadMatrix4();
  13021. uint ReadNetID();
  13022. Quaternion ReadPackedQuaternion();
  13023. Vector3 ReadPackedVector3(float);
  13024. Quaternion ReadQuaternion();
  13025. int16 ReadShort();
  13026. String ReadString();
  13027. StringHash ReadStringHash();
  13028. uint8 ReadUByte();
  13029. uint ReadUInt();
  13030. uint64 ReadUInt64();
  13031. uint16 ReadUShort();
  13032. uint ReadVLE();
  13033. Variant ReadVariant();
  13034. VariantMap ReadVariantMap();
  13035. Vector2 ReadVector2();
  13036. Vector3 ReadVector3();
  13037. Vector4 ReadVector4();
  13038. VectorBuffer ReadVectorBuffer(uint);
  13039. void Resize(uint);
  13040. uint Seek(uint);
  13041. void SetData(Deserializer, uint);
  13042. uint Write(Array<uint8>);
  13043. bool WriteBool(bool);
  13044. bool WriteBoundingBox(const BoundingBox&);
  13045. bool WriteByte(int8);
  13046. bool WriteColor(const Color&);
  13047. bool WriteDouble(double);
  13048. bool WriteFileID(const String&);
  13049. bool WriteFloat(float);
  13050. bool WriteInt(int);
  13051. bool WriteInt64(int64);
  13052. bool WriteIntRect(const IntRect&);
  13053. bool WriteIntVector2(const IntVector2&);
  13054. bool WriteLine(const String&);
  13055. bool WriteMatrix3(const Matrix3&);
  13056. bool WriteMatrix3x4(const Matrix3x4&);
  13057. bool WriteMatrix4(const Matrix4&);
  13058. bool WriteNetID(uint);
  13059. bool WritePackedQuaternion(const Quaternion&);
  13060. bool WritePackedVector3(const Vector3&, float);
  13061. bool WriteQuaternion(const Quaternion&);
  13062. bool WriteShort(int16);
  13063. bool WriteString(const String&);
  13064. bool WriteStringHash(const StringHash&);
  13065. bool WriteUByte(uint8);
  13066. bool WriteUInt(uint);
  13067. bool WriteUInt64(uint64);
  13068. bool WriteUShort(uint16);
  13069. bool WriteVLE(uint);
  13070. bool WriteVariant(const Variant&);
  13071. bool WriteVariantMap(const VariantMap&);
  13072. bool WriteVector2(const Vector2&);
  13073. bool WriteVector3(const Vector3&);
  13074. bool WriteVector4(const Vector4&);
  13075. bool WriteVectorBuffer(const VectorBuffer&);
  13076. // Properties:
  13077. /* readonly */
  13078. uint checksum;
  13079. /* readonly */
  13080. bool eof;
  13081. /* readonly */
  13082. String name;
  13083. /* readonly */
  13084. uint position;
  13085. /* readonly */
  13086. uint size;
  13087. };
  13088. class VertexBuffer
  13089. {
  13090. // Methods:
  13091. VectorBuffer GetData() const;
  13092. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13093. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13094. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13095. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13096. bool HasSubscribedToEvent(Object, const String&);
  13097. bool HasSubscribedToEvent(const String&);
  13098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13099. bool SetData(VectorBuffer&);
  13100. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13101. void SetSize(uint, Array<VertexElement>, bool = false);
  13102. void SetSize(uint, uint, bool = false);
  13103. // Properties:
  13104. /* readonly */
  13105. String category;
  13106. /* readonly */
  13107. bool dynamic;
  13108. /* readonly */
  13109. uint elementMask;
  13110. /* readonly */
  13111. Array<VertexElement> elements;
  13112. /* readonly */
  13113. int refs;
  13114. bool shadowed;
  13115. /* readonly */
  13116. StringHash type;
  13117. /* readonly */
  13118. String typeName;
  13119. /* readonly */
  13120. uint vertexCount;
  13121. /* readonly */
  13122. uint vertexSize;
  13123. /* readonly */
  13124. int weakRefs;
  13125. };
  13126. class VertexElement
  13127. {
  13128. // Properties:
  13129. uint8 index;
  13130. uint offset;
  13131. bool perInstance;
  13132. VertexElementSemantic semantic;
  13133. VertexElementType type;
  13134. };
  13135. class View3D
  13136. {
  13137. // Methods:
  13138. void AddChild(UIElement);
  13139. void AddTag(const String&);
  13140. void AddTags(const String&, int8 = ';');
  13141. void ApplyAttributes();
  13142. void BringToFront();
  13143. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13144. void DisableLayoutUpdate();
  13145. IntVector2 ElementToScreen(const IntVector2&);
  13146. void EnableLayoutUpdate();
  13147. uint FindChild(UIElement) const;
  13148. Variant GetAttribute(const String&) const;
  13149. ValueAnimation GetAttributeAnimation(const String&) const;
  13150. float GetAttributeAnimationSpeed(const String&) const;
  13151. float GetAttributeAnimationTime(const String&) const;
  13152. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13153. Variant GetAttributeDefault(const String&) const;
  13154. UIElement GetChild(const String&, bool = false) const;
  13155. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13156. Array<UIElement> GetChildren(bool = false) const;
  13157. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13158. UIElement GetElementEventSender() const;
  13159. bool GetInterceptNetworkUpdate(const String&) const;
  13160. uint GetNumChildren(bool) const;
  13161. bool HasSubscribedToEvent(Object, const String&);
  13162. bool HasSubscribedToEvent(const String&);
  13163. bool HasTag(const String&) const;
  13164. void InsertChild(uint, UIElement);
  13165. bool IsInside(IntVector2, bool);
  13166. bool IsInsideCombined(IntVector2, bool);
  13167. bool Load(File, bool = false);
  13168. bool Load(VectorBuffer&, bool = false);
  13169. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13170. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13171. bool LoadJSON(const JSONValue&, bool = false);
  13172. bool LoadXML(File);
  13173. bool LoadXML(VectorBuffer&);
  13174. bool LoadXML(XMLFile, XMLFile);
  13175. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13176. bool LoadXML(const XMLElement&, bool = false);
  13177. void MarkNetworkUpdate() const;
  13178. void QueueUpdate();
  13179. void Remove();
  13180. void RemoveAllChildren();
  13181. void RemoveAllTags();
  13182. void RemoveAttributeAnimation(const String&);
  13183. void RemoveChild(UIElement, uint = 0);
  13184. void RemoveChild(uint);
  13185. void RemoveInstanceDefault();
  13186. void RemoveObjectAnimation();
  13187. bool RemoveTag(const String&);
  13188. void ResetDeepEnabled();
  13189. void ResetToDefault();
  13190. bool Save(File) const;
  13191. bool Save(VectorBuffer&) const;
  13192. bool SaveJSON(JSONValue&) const;
  13193. bool SaveXML(File, const String& = "\t");
  13194. bool SaveXML(VectorBuffer&, const String& = "\t");
  13195. bool SaveXML(XMLElement&) const;
  13196. IntVector2 ScreenToElement(const IntVector2&);
  13197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13198. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13199. void SetAnimationTime(float);
  13200. bool SetAttribute(const String&, const Variant&);
  13201. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13202. void SetAttributeAnimationSpeed(const String&, float);
  13203. void SetAttributeAnimationTime(const String&, float);
  13204. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13205. void SetDeepEnabled(bool);
  13206. void SetEnabledRecursive(bool);
  13207. void SetFixedHeight(int);
  13208. void SetFixedSize(int, int);
  13209. void SetFixedWidth(int);
  13210. void SetFullImageRect();
  13211. void SetHoverOffset(int, int);
  13212. void SetInterceptNetworkUpdate(const String&, bool);
  13213. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13214. void SetMaxAnchor(float, float);
  13215. void SetMaxSize(int, int);
  13216. void SetMinAnchor(float, float);
  13217. void SetMinSize(int, int);
  13218. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13219. void SetPivot(float, float);
  13220. void SetPosition(int, int);
  13221. void SetSize(int, int);
  13222. bool SetStyle(const String&, XMLFile = null);
  13223. bool SetStyle(const XMLElement&);
  13224. bool SetStyleAuto(XMLFile = null);
  13225. void SetView(Scene, Camera, bool = true);
  13226. void UpdateLayout();
  13227. const Variant& GetVar(const StringHash&);
  13228. // Properties:
  13229. bool animationEnabled;
  13230. /* readonly */
  13231. Array<Variant> attributeDefaults;
  13232. /* readonly */
  13233. Array<AttributeInfo> attributeInfos;
  13234. Array<Variant> attributes;
  13235. bool autoUpdate;
  13236. BlendMode blendMode;
  13237. IntRect border;
  13238. bool bringToBack;
  13239. bool bringToFront;
  13240. /* readonly */
  13241. Node cameraNode;
  13242. /* readonly */
  13243. String category;
  13244. /* readonly */
  13245. IntVector2 childOffset;
  13246. /* readonly */
  13247. Array<UIElement> children;
  13248. IntRect clipBorder;
  13249. bool clipChildren;
  13250. /* writeonly */
  13251. Color color;
  13252. /* readonly */
  13253. bool colorGradient;
  13254. Array<Color> colors;
  13255. /* readonly */
  13256. IntRect combinedScreenRect;
  13257. XMLFile defaultStyle;
  13258. /* readonly */
  13259. Texture2D depthTexture;
  13260. /* readonly */
  13261. float derivedOpacity;
  13262. /* readonly */
  13263. uint dragButtonCombo;
  13264. /* readonly */
  13265. int dragButtonCount;
  13266. uint dragDropMode;
  13267. bool editable;
  13268. bool elementEventSender;
  13269. bool enableAnchor;
  13270. bool enabled;
  13271. /* readonly */
  13272. bool enabledSelf;
  13273. /* readonly */
  13274. bool fixedHeight;
  13275. bool fixedHeightResizing;
  13276. /* readonly */
  13277. bool fixedSize;
  13278. /* readonly */
  13279. bool fixedWidth;
  13280. bool fixedWidthResizing;
  13281. bool focus;
  13282. FocusMode focusMode;
  13283. uint format;
  13284. int height;
  13285. HorizontalAlignment horizontalAlignment;
  13286. IntVector2 hoverOffset;
  13287. /* readonly */
  13288. bool hovering;
  13289. IntRect imageBorder;
  13290. IntRect imageRect;
  13291. int indent;
  13292. int indentSpacing;
  13293. /* readonly */
  13294. int indentWidth;
  13295. bool internal;
  13296. IntRect layoutBorder;
  13297. Vector2 layoutFlexScale;
  13298. LayoutMode layoutMode;
  13299. int layoutSpacing;
  13300. Vector2 maxAnchor;
  13301. int maxHeight;
  13302. IntVector2 maxOffset;
  13303. IntVector2 maxSize;
  13304. int maxWidth;
  13305. Vector2 minAnchor;
  13306. int minHeight;
  13307. IntVector2 minOffset;
  13308. IntVector2 minSize;
  13309. int minWidth;
  13310. bool modal;
  13311. bool modalAutoDismiss;
  13312. Color modalFrameColor;
  13313. IntVector2 modalFrameSize;
  13314. Color modalShadeColor;
  13315. bool movable;
  13316. String name;
  13317. /* readonly */
  13318. uint numAllChildren;
  13319. /* readonly */
  13320. uint numAttributes;
  13321. /* readonly */
  13322. uint numChildren;
  13323. ObjectAnimation objectAnimation;
  13324. float opacity;
  13325. UIElement parent;
  13326. Vector2 pivot;
  13327. IntVector2 position;
  13328. int priority;
  13329. /* readonly */
  13330. int refs;
  13331. /* readonly */
  13332. Texture2D renderTexture;
  13333. bool resizable;
  13334. IntRect resizeBorder;
  13335. /* readonly */
  13336. UIElement root;
  13337. /* readonly */
  13338. Scene scene;
  13339. /* readonly */
  13340. IntVector2 screenPosition;
  13341. bool selected;
  13342. IntVector2 size;
  13343. bool sortChildren;
  13344. String style;
  13345. /* readonly */
  13346. Array<String> tags;
  13347. bool temporary;
  13348. Texture texture;
  13349. bool tiled;
  13350. TraversalMode traversalMode;
  13351. /* readonly */
  13352. StringHash type;
  13353. /* readonly */
  13354. String typeName;
  13355. bool useDerivedOpacity;
  13356. /* readonly */
  13357. VariantMap vars;
  13358. VerticalAlignment verticalAlignment;
  13359. /* readonly */
  13360. Viewport viewport;
  13361. bool visible;
  13362. /* readonly */
  13363. bool visibleEffective;
  13364. /* readonly */
  13365. int weakRefs;
  13366. int width;
  13367. };
  13368. class Viewport
  13369. {
  13370. // Methods:
  13371. Ray GetScreenRay(int, int) const;
  13372. bool HasSubscribedToEvent(Object, const String&);
  13373. bool HasSubscribedToEvent(const String&);
  13374. Vector3 ScreenToWorldPoint(int, int, float) const;
  13375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13376. void SetRenderPath(XMLFile);
  13377. IntVector2 WorldToScreenPoint(const Vector3&) const;
  13378. // Properties:
  13379. Camera camera;
  13380. /* readonly */
  13381. String category;
  13382. Camera cullCamera;
  13383. bool drawDebug;
  13384. IntRect rect;
  13385. /* readonly */
  13386. int refs;
  13387. RenderPath renderPath;
  13388. Scene scene;
  13389. /* readonly */
  13390. StringHash type;
  13391. /* readonly */
  13392. String typeName;
  13393. /* readonly */
  13394. int weakRefs;
  13395. };
  13396. class WeakHandle
  13397. {
  13398. // Methods:
  13399. RefCounted Get() const;
  13400. // Properties:
  13401. /* readonly */
  13402. bool expired;
  13403. /* readonly */
  13404. int refs;
  13405. /* readonly */
  13406. int weakRefs;
  13407. };
  13408. class Window
  13409. {
  13410. // Methods:
  13411. void AddChild(UIElement);
  13412. void AddTag(const String&);
  13413. void AddTags(const String&, int8 = ';');
  13414. void ApplyAttributes();
  13415. void BringToFront();
  13416. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13417. void DisableLayoutUpdate();
  13418. IntVector2 ElementToScreen(const IntVector2&);
  13419. void EnableLayoutUpdate();
  13420. uint FindChild(UIElement) const;
  13421. Variant GetAttribute(const String&) const;
  13422. ValueAnimation GetAttributeAnimation(const String&) const;
  13423. float GetAttributeAnimationSpeed(const String&) const;
  13424. float GetAttributeAnimationTime(const String&) const;
  13425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13426. Variant GetAttributeDefault(const String&) const;
  13427. UIElement GetChild(const String&, bool = false) const;
  13428. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13429. Array<UIElement> GetChildren(bool = false) const;
  13430. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13431. UIElement GetElementEventSender() const;
  13432. bool GetInterceptNetworkUpdate(const String&) const;
  13433. uint GetNumChildren(bool) const;
  13434. bool HasSubscribedToEvent(Object, const String&);
  13435. bool HasSubscribedToEvent(const String&);
  13436. bool HasTag(const String&) const;
  13437. void InsertChild(uint, UIElement);
  13438. bool IsInside(IntVector2, bool);
  13439. bool IsInsideCombined(IntVector2, bool);
  13440. bool Load(File, bool = false);
  13441. bool Load(VectorBuffer&, bool = false);
  13442. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13443. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13444. bool LoadJSON(const JSONValue&, bool = false);
  13445. bool LoadXML(File);
  13446. bool LoadXML(VectorBuffer&);
  13447. bool LoadXML(XMLFile, XMLFile);
  13448. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13449. bool LoadXML(const XMLElement&, bool = false);
  13450. void MarkNetworkUpdate() const;
  13451. void Remove();
  13452. void RemoveAllChildren();
  13453. void RemoveAllTags();
  13454. void RemoveAttributeAnimation(const String&);
  13455. void RemoveChild(UIElement, uint = 0);
  13456. void RemoveChild(uint);
  13457. void RemoveInstanceDefault();
  13458. void RemoveObjectAnimation();
  13459. bool RemoveTag(const String&);
  13460. void ResetDeepEnabled();
  13461. void ResetToDefault();
  13462. bool Save(File) const;
  13463. bool Save(VectorBuffer&) const;
  13464. bool SaveJSON(JSONValue&) const;
  13465. bool SaveXML(File, const String& = "\t");
  13466. bool SaveXML(VectorBuffer&, const String& = "\t");
  13467. bool SaveXML(XMLElement&) const;
  13468. IntVector2 ScreenToElement(const IntVector2&);
  13469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13470. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13471. void SetAnimationTime(float);
  13472. bool SetAttribute(const String&, const Variant&);
  13473. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13474. void SetAttributeAnimationSpeed(const String&, float);
  13475. void SetAttributeAnimationTime(const String&, float);
  13476. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13477. void SetDeepEnabled(bool);
  13478. void SetEnabledRecursive(bool);
  13479. void SetFixedHeight(int);
  13480. void SetFixedSize(int, int);
  13481. void SetFixedWidth(int);
  13482. void SetFullImageRect();
  13483. void SetHoverOffset(int, int);
  13484. void SetInterceptNetworkUpdate(const String&, bool);
  13485. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13486. void SetMaxAnchor(float, float);
  13487. void SetMaxSize(int, int);
  13488. void SetMinAnchor(float, float);
  13489. void SetMinSize(int, int);
  13490. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13491. void SetPivot(float, float);
  13492. void SetPosition(int, int);
  13493. void SetSize(int, int);
  13494. bool SetStyle(const String&, XMLFile = null);
  13495. bool SetStyle(const XMLElement&);
  13496. bool SetStyleAuto(XMLFile = null);
  13497. void UpdateLayout();
  13498. const Variant& GetVar(const StringHash&);
  13499. // Properties:
  13500. bool animationEnabled;
  13501. /* readonly */
  13502. Array<Variant> attributeDefaults;
  13503. /* readonly */
  13504. Array<AttributeInfo> attributeInfos;
  13505. Array<Variant> attributes;
  13506. BlendMode blendMode;
  13507. IntRect border;
  13508. bool bringToBack;
  13509. bool bringToFront;
  13510. /* readonly */
  13511. String category;
  13512. /* readonly */
  13513. IntVector2 childOffset;
  13514. /* readonly */
  13515. Array<UIElement> children;
  13516. IntRect clipBorder;
  13517. bool clipChildren;
  13518. /* writeonly */
  13519. Color color;
  13520. /* readonly */
  13521. bool colorGradient;
  13522. Array<Color> colors;
  13523. /* readonly */
  13524. IntRect combinedScreenRect;
  13525. XMLFile defaultStyle;
  13526. /* readonly */
  13527. float derivedOpacity;
  13528. /* readonly */
  13529. uint dragButtonCombo;
  13530. /* readonly */
  13531. int dragButtonCount;
  13532. uint dragDropMode;
  13533. bool editable;
  13534. bool elementEventSender;
  13535. bool enableAnchor;
  13536. bool enabled;
  13537. /* readonly */
  13538. bool enabledSelf;
  13539. /* readonly */
  13540. bool fixedHeight;
  13541. bool fixedHeightResizing;
  13542. /* readonly */
  13543. bool fixedSize;
  13544. /* readonly */
  13545. bool fixedWidth;
  13546. bool fixedWidthResizing;
  13547. bool focus;
  13548. FocusMode focusMode;
  13549. int height;
  13550. HorizontalAlignment horizontalAlignment;
  13551. IntVector2 hoverOffset;
  13552. /* readonly */
  13553. bool hovering;
  13554. IntRect imageBorder;
  13555. IntRect imageRect;
  13556. int indent;
  13557. int indentSpacing;
  13558. /* readonly */
  13559. int indentWidth;
  13560. bool internal;
  13561. IntRect layoutBorder;
  13562. Vector2 layoutFlexScale;
  13563. LayoutMode layoutMode;
  13564. int layoutSpacing;
  13565. Vector2 maxAnchor;
  13566. int maxHeight;
  13567. IntVector2 maxOffset;
  13568. IntVector2 maxSize;
  13569. int maxWidth;
  13570. Vector2 minAnchor;
  13571. int minHeight;
  13572. IntVector2 minOffset;
  13573. IntVector2 minSize;
  13574. int minWidth;
  13575. bool modal;
  13576. bool modalAutoDismiss;
  13577. Color modalFrameColor;
  13578. IntVector2 modalFrameSize;
  13579. Color modalShadeColor;
  13580. bool movable;
  13581. String name;
  13582. /* readonly */
  13583. uint numAllChildren;
  13584. /* readonly */
  13585. uint numAttributes;
  13586. /* readonly */
  13587. uint numChildren;
  13588. ObjectAnimation objectAnimation;
  13589. float opacity;
  13590. UIElement parent;
  13591. Vector2 pivot;
  13592. IntVector2 position;
  13593. int priority;
  13594. /* readonly */
  13595. int refs;
  13596. bool resizable;
  13597. IntRect resizeBorder;
  13598. /* readonly */
  13599. UIElement root;
  13600. /* readonly */
  13601. IntVector2 screenPosition;
  13602. bool selected;
  13603. IntVector2 size;
  13604. bool sortChildren;
  13605. String style;
  13606. /* readonly */
  13607. Array<String> tags;
  13608. bool temporary;
  13609. Texture texture;
  13610. bool tiled;
  13611. TraversalMode traversalMode;
  13612. /* readonly */
  13613. StringHash type;
  13614. /* readonly */
  13615. String typeName;
  13616. bool useDerivedOpacity;
  13617. /* readonly */
  13618. VariantMap vars;
  13619. VerticalAlignment verticalAlignment;
  13620. bool visible;
  13621. /* readonly */
  13622. bool visibleEffective;
  13623. /* readonly */
  13624. int weakRefs;
  13625. int width;
  13626. };
  13627. class XMLElement
  13628. {
  13629. // Methods:
  13630. XMLElement CreateChild(const String&);
  13631. String GetAttribute(const String& = String ( )) const;
  13632. String GetAttributeLower(const String&) const;
  13633. Array<String> GetAttributeNames() const;
  13634. String GetAttributeUpper(const String&) const;
  13635. bool GetBool(const String&) const;
  13636. BoundingBox GetBoundingBox() const;
  13637. XMLElement GetChild(const String& = String ( )) const;
  13638. Color GetColor(const String&) const;
  13639. double GetDouble(const String&) const;
  13640. float GetFloat(const String&) const;
  13641. int GetInt(const String&) const;
  13642. IntRect GetIntRect(const String&) const;
  13643. IntVector2 GetIntVector2(const String&) const;
  13644. Matrix3 GetMatrix3(const String&) const;
  13645. Matrix3x4 GetMatrix3x4(const String&) const;
  13646. Matrix4 GetMatrix4(const String&) const;
  13647. XMLElement GetNext(const String& = String ( )) const;
  13648. XMLElement GetOrCreateChild(const String&);
  13649. Quaternion GetQuaternion(const String&) const;
  13650. ResourceRef GetResourceRef() const;
  13651. ResourceRefList GetResourceRefList() const;
  13652. uint GetUInt(const String&) const;
  13653. String GetValue() const;
  13654. Variant GetVariant() const;
  13655. VariantMap GetVariantMap() const;
  13656. Array<Variant> GetVariantVector() const;
  13657. Vector2 GetVector2(const String&) const;
  13658. Vector3 GetVector3(const String&) const;
  13659. Vector4 GetVector4(const String&) const;
  13660. Variant GetVectorVariant(const String&) const;
  13661. bool HasAttribute(const String&) const;
  13662. bool HasChild(const String&) const;
  13663. bool RemoveAttribute(const String& = String ( ));
  13664. bool RemoveChild(const String&);
  13665. bool RemoveChild(const XMLElement&);
  13666. bool RemoveChildren(const String& = String ( ));
  13667. XPathResultSet Select(const String&);
  13668. XPathResultSet SelectPrepared(const XPathQuery&);
  13669. XMLElement SelectSingle(const String&);
  13670. XMLElement SelectSinglePrepared(const XPathQuery&);
  13671. bool SetAttribute(const String&);
  13672. bool SetAttribute(const String&, const String&);
  13673. bool SetBool(const String&, bool);
  13674. bool SetBoundingBox(const BoundingBox&);
  13675. bool SetColor(const String&, const Color&);
  13676. bool SetDouble(const String&, double);
  13677. bool SetFloat(const String&, float);
  13678. bool SetInt(const String&, int);
  13679. bool SetIntRect(const String&, const IntRect&);
  13680. bool SetIntVector2(const String&, const IntVector2&);
  13681. bool SetMatrix3(const String&, const Matrix3&);
  13682. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13683. bool SetMatrix4(const String&, const Matrix4&);
  13684. bool SetQuaternion(const String&, const Quaternion&);
  13685. bool SetResourceRef(const String&, const ResourceRef&);
  13686. bool SetResourceRefList(const String&, const ResourceRefList&);
  13687. bool SetUInt(const String&, uint);
  13688. bool SetValue(const String&);
  13689. bool SetVariant(const Variant&);
  13690. bool SetVariantMap(const VariantMap&);
  13691. bool SetVariantVector(Array<Variant>);
  13692. bool SetVector2(const String&, const Vector2&);
  13693. bool SetVector3(const String&, const Vector3&);
  13694. bool SetVector4(const String&, const Vector4&);
  13695. bool SetVectorVariant(const String&, const Variant&);
  13696. // Properties:
  13697. /* readonly */
  13698. XMLFile file;
  13699. /* readonly */
  13700. bool isNull;
  13701. /* readonly */
  13702. String name;
  13703. /* readonly */
  13704. XMLElement nextResult;
  13705. /* readonly */
  13706. bool notNull;
  13707. /* readonly */
  13708. uint numAttributes;
  13709. /* readonly */
  13710. XMLElement parent;
  13711. String value;
  13712. };
  13713. class XMLFile
  13714. {
  13715. // Methods:
  13716. XMLElement CreateRoot(const String&);
  13717. bool FromString(const String&);
  13718. XMLElement GetOrCreateRoot(const String&);
  13719. XMLElement GetRoot(const String& = String ( ));
  13720. bool HasSubscribedToEvent(Object, const String&);
  13721. bool HasSubscribedToEvent(const String&);
  13722. bool Load(File);
  13723. bool Load(VectorBuffer&);
  13724. bool Load(const String&);
  13725. void Patch(XMLElement);
  13726. void Patch(XMLFile);
  13727. bool Save(File) const;
  13728. bool Save(File, const String&) const;
  13729. bool Save(VectorBuffer&) const;
  13730. bool Save(const String&) const;
  13731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13732. String ToString(const String& = String ( "\t" )) const;
  13733. // Properties:
  13734. /* readonly */
  13735. String category;
  13736. /* readonly */
  13737. uint memoryUse;
  13738. String name;
  13739. /* readonly */
  13740. int refs;
  13741. /* readonly */
  13742. XMLElement root;
  13743. /* readonly */
  13744. StringHash type;
  13745. /* readonly */
  13746. String typeName;
  13747. /* readonly */
  13748. uint useTimer;
  13749. /* readonly */
  13750. int weakRefs;
  13751. };
  13752. class XPathQuery
  13753. {
  13754. // Methods:
  13755. void Bind();
  13756. void Clear();
  13757. XPathResultSet Evaluate(XMLElement);
  13758. bool EvaluateToBool(XMLElement);
  13759. float EvaluateToFloat(XMLElement);
  13760. String EvaluateToString(XMLElement);
  13761. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13762. bool SetVariable(const String&, bool);
  13763. bool SetVariable(const String&, const String&);
  13764. bool SetVariable(const String&, const XPathResultSet&);
  13765. bool SetVariable(const String&, float);
  13766. // Properties:
  13767. String query;
  13768. };
  13769. class XPathResultSet
  13770. {
  13771. // Properties:
  13772. /* readonly */
  13773. bool empty;
  13774. /* readonly */
  13775. XMLElement firstResult;
  13776. /* readonly */
  13777. uint size;
  13778. };
  13779. class Zone
  13780. {
  13781. // Methods:
  13782. void ApplyAttributes();
  13783. void DrawDebugGeometry(DebugRenderer, bool);
  13784. Variant GetAttribute(const String&) const;
  13785. ValueAnimation GetAttributeAnimation(const String&) const;
  13786. float GetAttributeAnimationSpeed(const String&) const;
  13787. float GetAttributeAnimationTime(const String&) const;
  13788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13789. Variant GetAttributeDefault(const String&) const;
  13790. bool GetInterceptNetworkUpdate(const String&) const;
  13791. bool HasSubscribedToEvent(Object, const String&);
  13792. bool HasSubscribedToEvent(const String&);
  13793. bool IsInView(Camera) const;
  13794. bool Load(File, bool = false);
  13795. bool Load(VectorBuffer&, bool = false);
  13796. bool LoadJSON(const JSONValue&, bool = false);
  13797. bool LoadXML(const XMLElement&, bool = false);
  13798. void MarkNetworkUpdate() const;
  13799. void Remove();
  13800. void RemoveAttributeAnimation(const String&);
  13801. void RemoveInstanceDefault();
  13802. void RemoveObjectAnimation();
  13803. void ResetToDefault();
  13804. bool Save(File) const;
  13805. bool Save(VectorBuffer&) const;
  13806. bool SaveJSON(JSONValue&) const;
  13807. bool SaveXML(XMLElement&) const;
  13808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13809. void SetAnimationTime(float);
  13810. bool SetAttribute(const String&, const Variant&);
  13811. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13812. void SetAttributeAnimationSpeed(const String&, float);
  13813. void SetAttributeAnimationTime(const String&, float);
  13814. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13815. void SetInterceptNetworkUpdate(const String&, bool);
  13816. // Properties:
  13817. Color ambientColor;
  13818. /* readonly */
  13819. Color ambientEndColor;
  13820. bool ambientGradient;
  13821. /* readonly */
  13822. Color ambientStartColor;
  13823. bool animationEnabled;
  13824. /* readonly */
  13825. Array<Variant> attributeDefaults;
  13826. /* readonly */
  13827. Array<AttributeInfo> attributeInfos;
  13828. Array<Variant> attributes;
  13829. BoundingBox boundingBox;
  13830. bool castShadows;
  13831. /* readonly */
  13832. String category;
  13833. float drawDistance;
  13834. bool enabled;
  13835. /* readonly */
  13836. bool enabledEffective;
  13837. Color fogColor;
  13838. float fogEnd;
  13839. float fogHeight;
  13840. float fogHeightScale;
  13841. float fogStart;
  13842. bool heightFog;
  13843. /* readonly */
  13844. uint id;
  13845. /* readonly */
  13846. bool inView;
  13847. /* readonly */
  13848. Matrix3x4 inverseWorldTransform;
  13849. uint lightMask;
  13850. float lodBias;
  13851. uint maxLights;
  13852. /* readonly */
  13853. Node node;
  13854. /* readonly */
  13855. uint numAttributes;
  13856. ObjectAnimation objectAnimation;
  13857. bool occludee;
  13858. bool occluder;
  13859. bool override;
  13860. int priority;
  13861. /* readonly */
  13862. int refs;
  13863. float shadowDistance;
  13864. uint shadowMask;
  13865. bool temporary;
  13866. /* readonly */
  13867. StringHash type;
  13868. /* readonly */
  13869. String typeName;
  13870. uint viewMask;
  13871. /* readonly */
  13872. int weakRefs;
  13873. /* readonly */
  13874. BoundingBox worldBoundingBox;
  13875. uint zoneMask;
  13876. Texture zoneTexture;
  13877. };
  13878. // Enumerations
  13879. enum AnimationBlendMode
  13880. {
  13881. ABM_LERP,
  13882. ABM_ADDITIVE,
  13883. };
  13884. enum AutoRemoveMode
  13885. {
  13886. REMOVE_DISABLED,
  13887. REMOVE_COMPONENT,
  13888. REMOVE_NODE,
  13889. };
  13890. enum BlendMode
  13891. {
  13892. BLEND_REPLACE,
  13893. BLEND_ADD,
  13894. BLEND_MULTIPLY,
  13895. BLEND_ALPHA,
  13896. BLEND_ADDALPHA,
  13897. BLEND_PREMULALPHA,
  13898. BLEND_INVDESTALPHA,
  13899. BLEND_SUBTRACT,
  13900. BLEND_SUBTRACTALPHA,
  13901. };
  13902. enum BodyType2D
  13903. {
  13904. BT_STATIC,
  13905. BT_KINEMATIC,
  13906. BT_DYNAMIC,
  13907. };
  13908. enum CollisionEventMode
  13909. {
  13910. COLLISION_NEVER,
  13911. COLLISION_ACTIVE,
  13912. COLLISION_ALWAYS,
  13913. };
  13914. enum CompareMode
  13915. {
  13916. CMP_ALWAYS,
  13917. CMP_EQUAL,
  13918. CMP_NOTEQUAL,
  13919. CMP_LESS,
  13920. CMP_LESSEQUAL,
  13921. CMP_GREATER,
  13922. CMP_GREATEREQUAL,
  13923. };
  13924. enum CompressedFormat
  13925. {
  13926. CF_NONE,
  13927. CF_RGBA,
  13928. CF_DXT1,
  13929. CF_DXT3,
  13930. CF_DXT5,
  13931. CF_ETC1,
  13932. CF_PVRTC_RGB_2BPP,
  13933. CF_PVRTC_RGBA_2BPP,
  13934. CF_PVRTC_RGB_4BPP,
  13935. CF_PVRTC_RGBA_4BPP,
  13936. };
  13937. enum ConstraintType
  13938. {
  13939. CONSTRAINT_POINT,
  13940. CONSTRAINT_HINGE,
  13941. CONSTRAINT_SLIDER,
  13942. CONSTRAINT_CONETWIST,
  13943. };
  13944. enum Corner
  13945. {
  13946. C_TOPLEFT,
  13947. C_TOPRIGHT,
  13948. C_BOTTOMLEFT,
  13949. C_BOTTOMRIGHT,
  13950. };
  13951. enum CreateMode
  13952. {
  13953. REPLICATED,
  13954. LOCAL,
  13955. };
  13956. enum CrowdAgentRequestedTarget
  13957. {
  13958. CA_REQUESTEDTARGET_NONE,
  13959. CA_REQUESTEDTARGET_POSITION,
  13960. CA_REQUESTEDTARGET_VELOCITY,
  13961. };
  13962. enum CrowdAgentState
  13963. {
  13964. CA_STATE_INVALID,
  13965. CA_STATE_WALKING,
  13966. CA_STATE_OFFMESH,
  13967. };
  13968. enum CrowdAgentTargetState
  13969. {
  13970. CA_TARGET_NONE,
  13971. CA_TARGET_FAILED,
  13972. CA_TARGET_VALID,
  13973. CA_TARGET_REQUESTING,
  13974. CA_TARGET_WAITINGFORQUEUE,
  13975. CA_TARGET_WAITINGFORPATH,
  13976. CA_TARGET_VELOCITY,
  13977. };
  13978. enum CubeMapFace
  13979. {
  13980. FACE_POSITIVE_X,
  13981. FACE_NEGATIVE_X,
  13982. FACE_POSITIVE_Y,
  13983. FACE_NEGATIVE_Y,
  13984. FACE_POSITIVE_Z,
  13985. FACE_NEGATIVE_Z,
  13986. };
  13987. enum CullMode
  13988. {
  13989. CULL_NONE,
  13990. CULL_CCW,
  13991. CULL_CW,
  13992. };
  13993. enum CursorShape
  13994. {
  13995. CS_NORMAL,
  13996. CS_IBEAM,
  13997. CS_CROSS,
  13998. CS_RESIZEVERTICAL,
  13999. CS_RESIZEDIAGONAL_TOPRIGHT,
  14000. CS_RESIZEHORIZONTAL,
  14001. CS_RESIZEDIAGONAL_TOPLEFT,
  14002. CS_RESIZE_ALL,
  14003. CS_ACCEPTDROP,
  14004. CS_REJECTDROP,
  14005. CS_BUSY,
  14006. CS_BUSY_ARROW,
  14007. };
  14008. enum DBAPI
  14009. {
  14010. DBAPI_SQLITE,
  14011. DBAPI_ODBC,
  14012. };
  14013. enum DumpMode
  14014. {
  14015. DOXYGEN,
  14016. C_HEADER,
  14017. };
  14018. enum EmitterType
  14019. {
  14020. EMITTER_SPHERE,
  14021. EMITTER_BOX,
  14022. };
  14023. enum EmitterType2D
  14024. {
  14025. EMITTER_TYPE_GRAVITY,
  14026. EMITTER_TYPE_RADIAL,
  14027. };
  14028. enum FaceCameraMode
  14029. {
  14030. FC_NONE,
  14031. FC_ROTATE_XYZ,
  14032. FC_ROTATE_Y,
  14033. FC_LOOKAT_XYZ,
  14034. FC_LOOKAT_Y,
  14035. FC_LOOKAT_MIXED,
  14036. FC_DIRECTION,
  14037. };
  14038. enum FileMode
  14039. {
  14040. FILE_READ,
  14041. FILE_WRITE,
  14042. FILE_READWRITE,
  14043. };
  14044. enum FillMode
  14045. {
  14046. FILL_SOLID,
  14047. FILL_WIREFRAME,
  14048. FILL_POINT,
  14049. };
  14050. enum FocusMode
  14051. {
  14052. FM_NOTFOCUSABLE,
  14053. FM_RESETFOCUS,
  14054. FM_FOCUSABLE,
  14055. FM_FOCUSABLE_DEFOCUSABLE,
  14056. };
  14057. enum FontType
  14058. {
  14059. FONT_NONE,
  14060. FONT_FREETYPE,
  14061. FONT_BITMAP,
  14062. };
  14063. enum HighlightMode
  14064. {
  14065. HM_NEVER,
  14066. HM_FOCUS,
  14067. HM_ALWAYS,
  14068. };
  14069. enum HorizontalAlignment
  14070. {
  14071. HA_LEFT,
  14072. HA_CENTER,
  14073. HA_RIGHT,
  14074. HA_CUSTOM,
  14075. };
  14076. enum HttpRequestState
  14077. {
  14078. HTTP_INITIALIZING,
  14079. HTTP_ERROR,
  14080. HTTP_OPEN,
  14081. HTTP_CLOSED,
  14082. };
  14083. enum InterpMethod
  14084. {
  14085. IM_NONE,
  14086. IM_LINEAR,
  14087. IM_SPLINE,
  14088. };
  14089. enum InterpolationMode
  14090. {
  14091. BEZIER_CURVE,
  14092. CATMULL_ROM_CURVE,
  14093. LINEAR_CURVE,
  14094. CATMULL_ROM_FULL_CURVE,
  14095. };
  14096. enum Intersection
  14097. {
  14098. OUTSIDE,
  14099. INTERSECTS,
  14100. INSIDE,
  14101. };
  14102. enum JSONNumberType
  14103. {
  14104. JSONNT_NAN,
  14105. JSONNT_INT,
  14106. JSONNT_UINT,
  14107. JSONNT_FLOAT_DOUBLE,
  14108. };
  14109. enum JSONValueType
  14110. {
  14111. JSON_NULL,
  14112. JSON_BOOL,
  14113. JSON_NUMBER,
  14114. JSON_STRING,
  14115. JSON_ARRAY,
  14116. JSON_OBJECT,
  14117. };
  14118. enum LayoutMode
  14119. {
  14120. LM_FREE,
  14121. LM_HORIZONTAL,
  14122. LM_VERTICAL,
  14123. };
  14124. enum LightType
  14125. {
  14126. LIGHT_DIRECTIONAL,
  14127. LIGHT_SPOT,
  14128. LIGHT_POINT,
  14129. };
  14130. enum LoadMode
  14131. {
  14132. LOAD_RESOURCES_ONLY,
  14133. LOAD_SCENE,
  14134. LOAD_SCENE_AND_RESOURCES,
  14135. };
  14136. enum LoopMode2D
  14137. {
  14138. LM_DEFAULT,
  14139. LM_FORCE_LOOPED,
  14140. LM_FORCE_CLAMPED,
  14141. };
  14142. enum MouseMode
  14143. {
  14144. MM_ABSOLUTE,
  14145. MM_RELATIVE,
  14146. MM_WRAP,
  14147. MM_FREE,
  14148. };
  14149. enum NavigationPushiness
  14150. {
  14151. NAVIGATIONPUSHINESS_LOW,
  14152. NAVIGATIONPUSHINESS_MEDIUM,
  14153. NAVIGATIONPUSHINESS_HIGH,
  14154. NAVIGATIONPUSHINESS_NONE,
  14155. };
  14156. enum NavigationQuality
  14157. {
  14158. NAVIGATIONQUALITY_LOW,
  14159. NAVIGATIONQUALITY_MEDIUM,
  14160. NAVIGATIONQUALITY_HIGH,
  14161. };
  14162. enum NavmeshPartitionType
  14163. {
  14164. NAVMESH_PARTITION_WATERSHED,
  14165. NAVMESH_PARTITION_MONOTONE,
  14166. };
  14167. enum Orientation
  14168. {
  14169. O_HORIZONTAL,
  14170. O_VERTICAL,
  14171. };
  14172. enum Orientation2D
  14173. {
  14174. O_ORTHOGONAL,
  14175. O_ISOMETRIC,
  14176. O_STAGGERED,
  14177. O_HEXAGONAL,
  14178. };
  14179. enum PassLightingMode
  14180. {
  14181. LIGHTING_UNLIT,
  14182. LIGHTING_PERVERTEX,
  14183. LIGHTING_PERPIXEL,
  14184. };
  14185. enum PrimitiveType
  14186. {
  14187. TRIANGLE_LIST,
  14188. LINE_LIST,
  14189. POINT_LIST,
  14190. TRIANGLE_STRIP,
  14191. LINE_STRIP,
  14192. TRIANGLE_FAN,
  14193. };
  14194. enum RayQueryLevel
  14195. {
  14196. RAY_AABB,
  14197. RAY_OBB,
  14198. RAY_TRIANGLE,
  14199. RAY_TRIANGLE_UV,
  14200. };
  14201. enum RenderCommandSortMode
  14202. {
  14203. SORT_FRONTTOBACK,
  14204. SORT_BACKTOFRONT,
  14205. };
  14206. enum RenderCommandType
  14207. {
  14208. CMD_NONE,
  14209. CMD_CLEAR,
  14210. CMD_SCENEPASS,
  14211. CMD_QUAD,
  14212. CMD_FORWARDLIGHTS,
  14213. CMD_LIGHTVOLUMES,
  14214. CMD_RENDERUI,
  14215. CMD_SENDEVENT,
  14216. };
  14217. enum RenderSurfaceUpdateMode
  14218. {
  14219. SURFACE_MANUALUPDATE,
  14220. SURFACE_UPDATEVISIBLE,
  14221. SURFACE_UPDATEALWAYS,
  14222. };
  14223. enum RenderTargetSizeMode
  14224. {
  14225. SIZE_ABSOLUTE,
  14226. SIZE_VIEWPORTDIVISOR,
  14227. SIZE_VIEWPORTMULTIPLIER,
  14228. };
  14229. enum ShadowQuality
  14230. {
  14231. SHADOWQUALITY_SIMPLE_16BIT,
  14232. SHADOWQUALITY_SIMPLE_24BIT,
  14233. SHADOWQUALITY_PCF_16BIT,
  14234. SHADOWQUALITY_PCF_24BIT,
  14235. SHADOWQUALITY_VSM,
  14236. SHADOWQUALITY_BLUR_VSM,
  14237. };
  14238. enum ShapeType
  14239. {
  14240. SHAPE_BOX,
  14241. SHAPE_SPHERE,
  14242. SHAPE_STATICPLANE,
  14243. SHAPE_CYLINDER,
  14244. SHAPE_CAPSULE,
  14245. SHAPE_CONE,
  14246. SHAPE_TRIANGLEMESH,
  14247. SHAPE_CONVEXHULL,
  14248. SHAPE_TERRAIN,
  14249. };
  14250. enum TextEffect
  14251. {
  14252. TE_NONE,
  14253. TE_SHADOW,
  14254. TE_STROKE,
  14255. };
  14256. enum TextureAddressMode
  14257. {
  14258. ADDRESS_WRAP,
  14259. ADDRESS_MIRROR,
  14260. ADDRESS_CLAMP,
  14261. ADDRESS_BORDER,
  14262. };
  14263. enum TextureCoordinate
  14264. {
  14265. COORD_U,
  14266. COORD_V,
  14267. COORD_W,
  14268. };
  14269. enum TextureFilterMode
  14270. {
  14271. FILTER_NEAREST,
  14272. FILTER_BILINEAR,
  14273. FILTER_TRILINEAR,
  14274. FILTER_ANISOTROPIC,
  14275. FILTER_NEAREST_ANISOTROPIC,
  14276. FILTER_DEFAULT,
  14277. };
  14278. enum TextureUnit
  14279. {
  14280. TU_DIFFUSE,
  14281. TU_ALBEDOBUFFER,
  14282. TU_NORMAL,
  14283. TU_NORMALBUFFER,
  14284. TU_SPECULAR,
  14285. TU_EMISSIVE,
  14286. TU_ENVIRONMENT,
  14287. TU_LIGHTRAMP,
  14288. TU_LIGHTSHAPE,
  14289. TU_SHADOWMAP,
  14290. TU_CUSTOM1,
  14291. TU_CUSTOM2,
  14292. TU_VOLUMEMAP,
  14293. TU_FACESELECT,
  14294. TU_INDIRECTION,
  14295. TU_DEPTHBUFFER,
  14296. TU_LIGHTBUFFER,
  14297. TU_ZONE,
  14298. MAX_MATERIAL_TEXTURE_UNITS,
  14299. MAX_TEXTURE_UNITS,
  14300. };
  14301. enum TextureUsage
  14302. {
  14303. TEXTURE_STATIC,
  14304. TEXTURE_DYNAMIC,
  14305. TEXTURE_RENDERTARGET,
  14306. TEXTURE_DEPTHSTENCIL,
  14307. };
  14308. enum TileMapLayerType2D
  14309. {
  14310. LT_TILE_LAYER,
  14311. LT_OBJECT_GROUP,
  14312. LT_IMAGE_LAYER,
  14313. LT_INVALID,
  14314. };
  14315. enum TileObjectType2D
  14316. {
  14317. OT_RECTANGLE,
  14318. OT_ELLIPSE,
  14319. OT_POLYGON,
  14320. OT_POLYLINE,
  14321. OT_TILE,
  14322. OT_INVALID,
  14323. };
  14324. enum TrailType
  14325. {
  14326. TT_FACE_CAMERA,
  14327. TT_BONE,
  14328. };
  14329. enum TransformSpace
  14330. {
  14331. TS_LOCAL,
  14332. TS_PARENT,
  14333. TS_WORLD,
  14334. };
  14335. enum TraversalMode
  14336. {
  14337. TM_BREADTH_FIRST,
  14338. TM_DEPTH_FIRST,
  14339. };
  14340. enum VariantType
  14341. {
  14342. VAR_NONE,
  14343. VAR_INT,
  14344. VAR_BOOL,
  14345. VAR_FLOAT,
  14346. VAR_VECTOR2,
  14347. VAR_VECTOR3,
  14348. VAR_VECTOR4,
  14349. VAR_QUATERNION,
  14350. VAR_COLOR,
  14351. VAR_STRING,
  14352. VAR_BUFFER,
  14353. VAR_VOIDPTR,
  14354. VAR_RESOURCEREF,
  14355. VAR_RESOURCEREFLIST,
  14356. VAR_VARIANTVECTOR,
  14357. VAR_VARIANTMAP,
  14358. VAR_INTRECT,
  14359. VAR_INTVECTOR2,
  14360. VAR_PTR,
  14361. VAR_MATRIX3,
  14362. VAR_MATRIX3X4,
  14363. VAR_MATRIX4,
  14364. VAR_DOUBLE,
  14365. VAR_STRINGVECTOR,
  14366. VAR_RECT,
  14367. };
  14368. enum VertexElementSemantic
  14369. {
  14370. SEM_POSITION,
  14371. SEM_NORMAL,
  14372. SEM_BINORMAL,
  14373. SEM_TANGENT,
  14374. SEM_TEXCOORD,
  14375. SEM_COLOR,
  14376. SEM_BLENDWEIGHTS,
  14377. SEM_BLENDINDICES,
  14378. SEM_OBJECTINDEX,
  14379. MAX_VERTEX_ELEMENT_SEMANTICS,
  14380. };
  14381. enum VertexElementType
  14382. {
  14383. TYPE_INT,
  14384. TYPE_FLOAT,
  14385. TYPE_VECTOR2,
  14386. TYPE_VECTOR3,
  14387. TYPE_VECTOR4,
  14388. TYPE_UBYTE4,
  14389. TYPE_UBYTE4_NORM,
  14390. MAX_VERTEX_ELEMENT_TYPES,
  14391. };
  14392. enum VerticalAlignment
  14393. {
  14394. VA_TOP,
  14395. VA_CENTER,
  14396. VA_BOTTOM,
  14397. VA_CUSTOM,
  14398. };
  14399. enum WrapMode
  14400. {
  14401. WM_LOOP,
  14402. WM_ONCE,
  14403. WM_CLAMP,
  14404. };
  14405. // Global functions
  14406. float Abs(float);
  14407. float Acos(float);
  14408. String AddTrailingSlash(const String&);
  14409. float Asin(float);
  14410. float Atan(float);
  14411. float Atan2(float, float);
  14412. float Ceil(float);
  14413. int CeilToInt(float);
  14414. float Clamp(float, float, float);
  14415. int Clamp(int, int, int);
  14416. void ClearDelayedExecute(const String& = String ( ));
  14417. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14418. float Cos(float);
  14419. uint CountSetBits(uint);
  14420. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14421. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14422. bool Equals(float, float);
  14423. void ErrorDialog(const String&, const String&);
  14424. float Floor(float);
  14425. int FloorToInt(float);
  14426. float Fract(float);
  14427. uint GetAlphaFormat();
  14428. Array<String> GetArguments();
  14429. String GetConsoleInput();
  14430. uint GetDepthStencilFormat();
  14431. Object GetEventSender();
  14432. String GetExtension(const String&, bool = true);
  14433. String GetFileName(const String&);
  14434. String GetFileNameAndExtension(const String&, bool = false);
  14435. String GetFileSizeString(uint64);
  14436. uint GetFloat16Format();
  14437. uint GetFloat32Format();
  14438. uint GetFormat(const String&);
  14439. Variant GetGlobalVar(const String&);
  14440. String GetInternalPath(const String&);
  14441. uint GetLinearDepthFormat();
  14442. uint GetLuminanceAlphaFormat();
  14443. uint GetLuminanceFormat();
  14444. uint GetMaxBones();
  14445. String GetMiniDumpDir();
  14446. uint GetNumLogicalCPUs();
  14447. uint GetNumPhysicalCPUs();
  14448. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  14449. Array<String> GetObjectCategories();
  14450. Array<String> GetObjectsByCategory(const String&);
  14451. String GetParentPath(const String&);
  14452. String GetPath(const String&);
  14453. String GetPlatform();
  14454. uint GetRG16Format();
  14455. uint GetRGBA16Format();
  14456. uint GetRGBAFloat16Format();
  14457. uint GetRGBAFloat32Format();
  14458. uint GetRGBAFormat();
  14459. uint GetRGBFormat();
  14460. uint GetRGFloat16Format();
  14461. uint GetRGFloat32Format();
  14462. uint GetRandomSeed();
  14463. uint GetReadableDepthFormat();
  14464. String GetTextureUnitName(TextureUnit);
  14465. VariantType GetVariantTypeFromName(const String&);
  14466. String GetVariantTypeName(VariantType);
  14467. bool HasSubscribedToEvent(Object, const String&);
  14468. bool HasSubscribedToEvent(const String&);
  14469. float InverseLerp(float, float, float);
  14470. bool IsAbsolutePath(const String&);
  14471. bool IsAlpha(uint);
  14472. bool IsDigit(uint);
  14473. bool IsNaN(float);
  14474. bool IsPowerOfTwo(uint);
  14475. String Join(Array<String>&, const String&);
  14476. float Lerp(float, float, float);
  14477. float Ln(float);
  14478. void MarkNetworkUpdate();
  14479. float Max(float, float);
  14480. int Max(int, int);
  14481. float Min(float, float);
  14482. int Min(int, int);
  14483. float Mod(float, float);
  14484. uint NextPowerOfTwo(uint);
  14485. void OpenConsoleWindow();
  14486. float Pow(float, float);
  14487. void Print(bool, bool = false);
  14488. void Print(const String&, bool = false);
  14489. void Print(const Variant&, bool = false);
  14490. void Print(float, bool = false);
  14491. void Print(int, bool = false);
  14492. void Print(uint, bool = false);
  14493. void PrintCallStack(bool = false);
  14494. float Random();
  14495. float Random(float);
  14496. float Random(float, float);
  14497. int RandomInt();
  14498. int RandomInt(int);
  14499. int RandomInt(int, int);
  14500. float RandomNormal(float, float);
  14501. void RegisterEventName(const String&);
  14502. void Remove();
  14503. String RemoveTrailingSlash(const String&);
  14504. String ReplaceExtension(const String&, const String&);
  14505. float Round(float);
  14506. int RoundToInt(float);
  14507. uint SDBMHash(uint, uint8);
  14508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14509. void SetGlobalVar(const String&, Variant&);
  14510. void SetMiniDumpDir(const String&);
  14511. void SetRandomSeed(uint);
  14512. float Sign(float);
  14513. float Sin(float);
  14514. float SmoothStep(float, float, float);
  14515. float Sqrt(float);
  14516. float StableRandom(const Vector2&);
  14517. float StableRandom(const Vector3&);
  14518. float StableRandom(float);
  14519. const String& GetTypeName(StringHash);
  14520. void SubscribeToEvent(Object, const String&, const String&);
  14521. void SubscribeToEvent(const String&, const String&);
  14522. float Tan(float);
  14523. uint ToLower(uint);
  14524. String ToStringHex(int);
  14525. uint ToUpper(uint);
  14526. void UnsubscribeFromAllEvents();
  14527. void UnsubscribeFromAllEventsExcept(Array<String>);
  14528. void UnsubscribeFromEvent(Object, const String&);
  14529. void UnsubscribeFromEvent(const String&);
  14530. void UnsubscribeFromEvents(Object);
  14531. Vector2 VectorCeil(const Vector2&);
  14532. Vector3 VectorCeil(const Vector3&);
  14533. Vector4 VectorCeil(const Vector4&);
  14534. IntVector2 VectorCeilToInt(const Vector2&);
  14535. Vector2 VectorFloor(const Vector2&);
  14536. Vector3 VectorFloor(const Vector3&);
  14537. Vector4 VectorFloor(const Vector4&);
  14538. IntVector2 VectorFloorToInt(const Vector2&);
  14539. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  14540. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  14541. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  14542. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  14543. Vector2 VectorMax(const Vector2&, const Vector2&);
  14544. Vector3 VectorMax(const Vector3&, const Vector3&);
  14545. Vector4 VectorMax(const Vector4&, const Vector4&);
  14546. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  14547. Vector2 VectorMin(const Vector2&, const Vector2&);
  14548. Vector3 VectorMin(const Vector3&, const Vector3&);
  14549. Vector4 VectorMin(const Vector4&, const Vector4&);
  14550. Vector2 VectorRound(const Vector2&);
  14551. Vector3 VectorRound(const Vector3&);
  14552. Vector4 VectorRound(const Vector4&);
  14553. IntVector2 VectorRoundToInt(const Vector2&);
  14554. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14555. // Global properties
  14556. DBAPI DBAPI;
  14557. Audio audio;
  14558. ResourceCache cache;
  14559. Console console;
  14560. Database database;
  14561. DebugHud debugHud;
  14562. DebugRenderer debugRenderer;
  14563. Engine engine;
  14564. FileSystem fileSystem;
  14565. VariantMap globalVars;
  14566. Graphics graphics;
  14567. Input input;
  14568. Localization localization;
  14569. Log log;
  14570. Network network;
  14571. Node node;
  14572. Octree octree;
  14573. PhysicsWorld physicsWorld;
  14574. PhysicsWorld2D physicsWorld2D;
  14575. Renderer renderer;
  14576. ResourceCache resourceCache;
  14577. Scene scene;
  14578. Script script;
  14579. ScriptFile scriptFile;
  14580. ScriptInstance self;
  14581. Time time;
  14582. UI ui;
  14583. // Global constants
  14584. uint AM_COMPONENTID;
  14585. uint AM_DEFAULT;
  14586. uint AM_FILE;
  14587. uint AM_FILEREADONLY;
  14588. uint AM_LATESTDATA;
  14589. uint AM_NET;
  14590. uint AM_NODEID;
  14591. uint AM_NODEIDVECTOR;
  14592. uint AM_NOEDIT;
  14593. Color BLACK;
  14594. Color BLUE;
  14595. uint8 CHANNEL_POSITION;
  14596. uint8 CHANNEL_ROTATION;
  14597. uint8 CHANNEL_SCALE;
  14598. uint CLEAR_COLOR;
  14599. uint CLEAR_DEPTH;
  14600. uint CLEAR_STENCIL;
  14601. int CONTROLLER_AXIS_LEFTX;
  14602. int CONTROLLER_AXIS_LEFTY;
  14603. int CONTROLLER_AXIS_RIGHTX;
  14604. int CONTROLLER_AXIS_RIGHTY;
  14605. int CONTROLLER_AXIS_TRIGGERLEFT;
  14606. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14607. int CONTROLLER_BUTTON_A;
  14608. int CONTROLLER_BUTTON_B;
  14609. int CONTROLLER_BUTTON_BACK;
  14610. int CONTROLLER_BUTTON_DPAD_DOWN;
  14611. int CONTROLLER_BUTTON_DPAD_LEFT;
  14612. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14613. int CONTROLLER_BUTTON_DPAD_UP;
  14614. int CONTROLLER_BUTTON_GUIDE;
  14615. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14616. int CONTROLLER_BUTTON_LEFTSTICK;
  14617. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14618. int CONTROLLER_BUTTON_RIGHTSTICK;
  14619. int CONTROLLER_BUTTON_START;
  14620. int CONTROLLER_BUTTON_X;
  14621. int CONTROLLER_BUTTON_Y;
  14622. Color CYAN;
  14623. uint DD_DISABLED;
  14624. uint DD_SOURCE;
  14625. uint DD_SOURCE_AND_TARGET;
  14626. uint DD_TARGET;
  14627. uint DEBUGHUD_SHOW_ALL;
  14628. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14629. uint DEBUGHUD_SHOW_MEMORY;
  14630. uint DEBUGHUD_SHOW_MODE;
  14631. uint DEBUGHUD_SHOW_NONE;
  14632. uint DEBUGHUD_SHOW_PROFILER;
  14633. uint DEBUGHUD_SHOW_STATS;
  14634. uint DEFAULT_LIGHTMASK;
  14635. uint DEFAULT_VIEWMASK;
  14636. uint DRAWABLE_ANY;
  14637. uint DRAWABLE_GEOMETRY;
  14638. uint DRAWABLE_GEOMETRY2D;
  14639. uint DRAWABLE_LIGHT;
  14640. uint DRAWABLE_ZONE;
  14641. uint FIRST_LOCAL_ID;
  14642. uint FIRST_REPLICATED_ID;
  14643. Color GRAY;
  14644. Color GREEN;
  14645. int HAT_CENTER;
  14646. int HAT_DOWN;
  14647. int HAT_LEFT;
  14648. int HAT_RIGHT;
  14649. int HAT_UP;
  14650. int KEY_0;
  14651. int KEY_1;
  14652. int KEY_2;
  14653. int KEY_3;
  14654. int KEY_4;
  14655. int KEY_5;
  14656. int KEY_6;
  14657. int KEY_7;
  14658. int KEY_8;
  14659. int KEY_9;
  14660. int KEY_A;
  14661. int KEY_ALT;
  14662. int KEY_APPLICATION;
  14663. int KEY_B;
  14664. int KEY_BACKSPACE;
  14665. int KEY_C;
  14666. int KEY_CAPSLOCK;
  14667. int KEY_CTRL;
  14668. int KEY_D;
  14669. int KEY_DELETE;
  14670. int KEY_DOWN;
  14671. int KEY_E;
  14672. int KEY_END;
  14673. int KEY_ESCAPE;
  14674. int KEY_F;
  14675. int KEY_F1;
  14676. int KEY_F10;
  14677. int KEY_F11;
  14678. int KEY_F12;
  14679. int KEY_F13;
  14680. int KEY_F14;
  14681. int KEY_F15;
  14682. int KEY_F16;
  14683. int KEY_F17;
  14684. int KEY_F18;
  14685. int KEY_F19;
  14686. int KEY_F2;
  14687. int KEY_F20;
  14688. int KEY_F21;
  14689. int KEY_F22;
  14690. int KEY_F23;
  14691. int KEY_F24;
  14692. int KEY_F3;
  14693. int KEY_F4;
  14694. int KEY_F5;
  14695. int KEY_F6;
  14696. int KEY_F7;
  14697. int KEY_F8;
  14698. int KEY_F9;
  14699. int KEY_G;
  14700. int KEY_GUI;
  14701. int KEY_H;
  14702. int KEY_HOME;
  14703. int KEY_I;
  14704. int KEY_INSERT;
  14705. int KEY_J;
  14706. int KEY_K;
  14707. int KEY_KP_0;
  14708. int KEY_KP_1;
  14709. int KEY_KP_2;
  14710. int KEY_KP_3;
  14711. int KEY_KP_4;
  14712. int KEY_KP_5;
  14713. int KEY_KP_6;
  14714. int KEY_KP_7;
  14715. int KEY_KP_8;
  14716. int KEY_KP_9;
  14717. int KEY_KP_DIVIDE;
  14718. int KEY_KP_ENTER;
  14719. int KEY_KP_MINUS;
  14720. int KEY_KP_MULTIPLY;
  14721. int KEY_KP_PERIOD;
  14722. int KEY_KP_PLUS;
  14723. int KEY_L;
  14724. int KEY_LALT;
  14725. int KEY_LCTRL;
  14726. int KEY_LEFT;
  14727. int KEY_LGUI;
  14728. int KEY_LSHIFT;
  14729. int KEY_M;
  14730. int KEY_N;
  14731. int KEY_NUMLOCKCLEAR;
  14732. int KEY_O;
  14733. int KEY_P;
  14734. int KEY_PAGEDOWN;
  14735. int KEY_PAGEUP;
  14736. int KEY_PAUSE;
  14737. int KEY_PRINTSCREEN;
  14738. int KEY_Q;
  14739. int KEY_R;
  14740. int KEY_RALT;
  14741. int KEY_RCTRL;
  14742. int KEY_RETURN;
  14743. int KEY_RETURN2;
  14744. int KEY_RGUI;
  14745. int KEY_RIGHT;
  14746. int KEY_RSHIFT;
  14747. int KEY_S;
  14748. int KEY_SCROLLLOCK;
  14749. int KEY_SELECT;
  14750. int KEY_SHIFT;
  14751. int KEY_SPACE;
  14752. int KEY_T;
  14753. int KEY_TAB;
  14754. int KEY_U;
  14755. int KEY_UNKNOWN;
  14756. int KEY_UP;
  14757. int KEY_V;
  14758. int KEY_W;
  14759. int KEY_X;
  14760. int KEY_Y;
  14761. int KEY_Z;
  14762. uint LAST_LOCAL_ID;
  14763. uint LAST_REPLICATED_ID;
  14764. int LOG_DEBUG;
  14765. int LOG_ERROR;
  14766. int LOG_INFO;
  14767. int LOG_NONE;
  14768. int LOG_WARNING;
  14769. Color MAGENTA;
  14770. uint MASK_BLENDINDICES;
  14771. uint MASK_BLENDWEIGHTS;
  14772. uint MASK_COLOR;
  14773. uint MASK_CUBETEXCOORD1;
  14774. uint MASK_CUBETEXCOORD2;
  14775. uint MASK_INSTANCEMATRIX1;
  14776. uint MASK_INSTANCEMATRIX2;
  14777. uint MASK_INSTANCEMATRIX3;
  14778. uint MASK_NONE;
  14779. uint MASK_NORMAL;
  14780. uint MASK_OBJECTINDEX;
  14781. uint MASK_POSITION;
  14782. uint MASK_TANGENT;
  14783. uint MASK_TEXCOORD1;
  14784. uint MASK_TEXCOORD2;
  14785. int MOUSEB_LEFT;
  14786. int MOUSEB_MIDDLE;
  14787. int MOUSEB_RIGHT;
  14788. float M_DEGTORAD;
  14789. float M_DEGTORAD_2;
  14790. float M_EPSILON;
  14791. float M_HALF_PI;
  14792. float M_INFINITY;
  14793. float M_LARGE_EPSILON;
  14794. float M_LARGE_VALUE;
  14795. int M_MAX_INT;
  14796. uint M_MAX_UNSIGNED;
  14797. int M_MIN_INT;
  14798. uint M_MIN_UNSIGNED;
  14799. float M_PI;
  14800. float M_RADTODEG;
  14801. uint NPOS;
  14802. float PIXEL_SIZE;
  14803. int QUALITY_HIGH;
  14804. int QUALITY_LOW;
  14805. int QUALITY_MAX;
  14806. int QUALITY_MEDIUM;
  14807. int QUAL_ALT;
  14808. int QUAL_ANY;
  14809. int QUAL_CTRL;
  14810. int QUAL_SHIFT;
  14811. Color RED;
  14812. int SCANCODE_0;
  14813. int SCANCODE_1;
  14814. int SCANCODE_2;
  14815. int SCANCODE_3;
  14816. int SCANCODE_4;
  14817. int SCANCODE_5;
  14818. int SCANCODE_6;
  14819. int SCANCODE_7;
  14820. int SCANCODE_8;
  14821. int SCANCODE_9;
  14822. int SCANCODE_A;
  14823. int SCANCODE_AC_BACK;
  14824. int SCANCODE_AC_BOOKMARKS;
  14825. int SCANCODE_AC_FORWARD;
  14826. int SCANCODE_AC_HOME;
  14827. int SCANCODE_AC_REFRESH;
  14828. int SCANCODE_AC_SEARCH;
  14829. int SCANCODE_AC_STOP;
  14830. int SCANCODE_AGAIN;
  14831. int SCANCODE_ALT;
  14832. int SCANCODE_ALTERASE;
  14833. int SCANCODE_APOSTROPHE;
  14834. int SCANCODE_APP1;
  14835. int SCANCODE_APP2;
  14836. int SCANCODE_APPLICATION;
  14837. int SCANCODE_AUDIOMUTE;
  14838. int SCANCODE_AUDIONEXT;
  14839. int SCANCODE_AUDIOPLAY;
  14840. int SCANCODE_AUDIOPREV;
  14841. int SCANCODE_AUDIOSTOP;
  14842. int SCANCODE_B;
  14843. int SCANCODE_BACKSLASH;
  14844. int SCANCODE_BACKSPACE;
  14845. int SCANCODE_BRIGHTNESSDOWN;
  14846. int SCANCODE_BRIGHTNESSUP;
  14847. int SCANCODE_C;
  14848. int SCANCODE_CALCULATOR;
  14849. int SCANCODE_CANCEL;
  14850. int SCANCODE_CAPSLOCK;
  14851. int SCANCODE_CLEAR;
  14852. int SCANCODE_CLEARAGAIN;
  14853. int SCANCODE_COMMA;
  14854. int SCANCODE_COMPUTER;
  14855. int SCANCODE_COPY;
  14856. int SCANCODE_CRSEL;
  14857. int SCANCODE_CTRL;
  14858. int SCANCODE_CURRENCYSUBUNIT;
  14859. int SCANCODE_CURRENCYUNIT;
  14860. int SCANCODE_CUT;
  14861. int SCANCODE_D;
  14862. int SCANCODE_DECIMALSEPARATOR;
  14863. int SCANCODE_DELETE;
  14864. int SCANCODE_DISPLAYSWITCH;
  14865. int SCANCODE_DOWN;
  14866. int SCANCODE_E;
  14867. int SCANCODE_EJECT;
  14868. int SCANCODE_END;
  14869. int SCANCODE_EQUALS;
  14870. int SCANCODE_ESCAPE;
  14871. int SCANCODE_EXECUTE;
  14872. int SCANCODE_EXSEL;
  14873. int SCANCODE_F;
  14874. int SCANCODE_F1;
  14875. int SCANCODE_F10;
  14876. int SCANCODE_F11;
  14877. int SCANCODE_F12;
  14878. int SCANCODE_F13;
  14879. int SCANCODE_F14;
  14880. int SCANCODE_F15;
  14881. int SCANCODE_F16;
  14882. int SCANCODE_F17;
  14883. int SCANCODE_F18;
  14884. int SCANCODE_F19;
  14885. int SCANCODE_F2;
  14886. int SCANCODE_F20;
  14887. int SCANCODE_F21;
  14888. int SCANCODE_F22;
  14889. int SCANCODE_F23;
  14890. int SCANCODE_F24;
  14891. int SCANCODE_F3;
  14892. int SCANCODE_F4;
  14893. int SCANCODE_F5;
  14894. int SCANCODE_F6;
  14895. int SCANCODE_F7;
  14896. int SCANCODE_F8;
  14897. int SCANCODE_F9;
  14898. int SCANCODE_FIND;
  14899. int SCANCODE_G;
  14900. int SCANCODE_GRAVE;
  14901. int SCANCODE_GUI;
  14902. int SCANCODE_H;
  14903. int SCANCODE_HELP;
  14904. int SCANCODE_HOME;
  14905. int SCANCODE_I;
  14906. int SCANCODE_INSERT;
  14907. int SCANCODE_INTERNATIONAL1;
  14908. int SCANCODE_INTERNATIONAL2;
  14909. int SCANCODE_INTERNATIONAL3;
  14910. int SCANCODE_INTERNATIONAL4;
  14911. int SCANCODE_INTERNATIONAL5;
  14912. int SCANCODE_INTERNATIONAL6;
  14913. int SCANCODE_INTERNATIONAL7;
  14914. int SCANCODE_INTERNATIONAL8;
  14915. int SCANCODE_INTERNATIONAL9;
  14916. int SCANCODE_J;
  14917. int SCANCODE_K;
  14918. int SCANCODE_KBDILLUMDOWN;
  14919. int SCANCODE_KBDILLUMTOGGLE;
  14920. int SCANCODE_KBDILLUMUP;
  14921. int SCANCODE_KP_0;
  14922. int SCANCODE_KP_00;
  14923. int SCANCODE_KP_000;
  14924. int SCANCODE_KP_1;
  14925. int SCANCODE_KP_2;
  14926. int SCANCODE_KP_3;
  14927. int SCANCODE_KP_4;
  14928. int SCANCODE_KP_5;
  14929. int SCANCODE_KP_6;
  14930. int SCANCODE_KP_7;
  14931. int SCANCODE_KP_8;
  14932. int SCANCODE_KP_9;
  14933. int SCANCODE_KP_A;
  14934. int SCANCODE_KP_AMPERSAND;
  14935. int SCANCODE_KP_AT;
  14936. int SCANCODE_KP_B;
  14937. int SCANCODE_KP_BACKSPACE;
  14938. int SCANCODE_KP_BINARY;
  14939. int SCANCODE_KP_C;
  14940. int SCANCODE_KP_CLEAR;
  14941. int SCANCODE_KP_CLEARENTRY;
  14942. int SCANCODE_KP_COLON;
  14943. int SCANCODE_KP_COMMA;
  14944. int SCANCODE_KP_D;
  14945. int SCANCODE_KP_DBLAMPERSAND;
  14946. int SCANCODE_KP_DBLVERTICALBAR;
  14947. int SCANCODE_KP_DECIMAL;
  14948. int SCANCODE_KP_DIVIDE;
  14949. int SCANCODE_KP_E;
  14950. int SCANCODE_KP_ENTER;
  14951. int SCANCODE_KP_EQUALS;
  14952. int SCANCODE_KP_EQUALSAS400;
  14953. int SCANCODE_KP_EXCLAM;
  14954. int SCANCODE_KP_F;
  14955. int SCANCODE_KP_GREATER;
  14956. int SCANCODE_KP_HASH;
  14957. int SCANCODE_KP_HEXADECIMAL;
  14958. int SCANCODE_KP_LEFTBRACE;
  14959. int SCANCODE_KP_LEFTPAREN;
  14960. int SCANCODE_KP_LESS;
  14961. int SCANCODE_KP_MEMADD;
  14962. int SCANCODE_KP_MEMCLEAR;
  14963. int SCANCODE_KP_MEMDIVIDE;
  14964. int SCANCODE_KP_MEMMULTIPLY;
  14965. int SCANCODE_KP_MEMRECALL;
  14966. int SCANCODE_KP_MEMSTORE;
  14967. int SCANCODE_KP_MEMSUBTRACT;
  14968. int SCANCODE_KP_MINUS;
  14969. int SCANCODE_KP_MULTIPLY;
  14970. int SCANCODE_KP_OCTAL;
  14971. int SCANCODE_KP_PERCENT;
  14972. int SCANCODE_KP_PERIOD;
  14973. int SCANCODE_KP_PLUS;
  14974. int SCANCODE_KP_PLUSMINUS;
  14975. int SCANCODE_KP_POWER;
  14976. int SCANCODE_KP_RIGHTBRACE;
  14977. int SCANCODE_KP_RIGHTPAREN;
  14978. int SCANCODE_KP_SPACE;
  14979. int SCANCODE_KP_TAB;
  14980. int SCANCODE_KP_VERTICALBAR;
  14981. int SCANCODE_KP_XOR;
  14982. int SCANCODE_L;
  14983. int SCANCODE_LALT;
  14984. int SCANCODE_LANG1;
  14985. int SCANCODE_LANG2;
  14986. int SCANCODE_LANG3;
  14987. int SCANCODE_LANG4;
  14988. int SCANCODE_LANG5;
  14989. int SCANCODE_LANG6;
  14990. int SCANCODE_LANG7;
  14991. int SCANCODE_LANG8;
  14992. int SCANCODE_LANG9;
  14993. int SCANCODE_LCTRL;
  14994. int SCANCODE_LEFT;
  14995. int SCANCODE_LEFTBRACKET;
  14996. int SCANCODE_LGUI;
  14997. int SCANCODE_LSHIFT;
  14998. int SCANCODE_M;
  14999. int SCANCODE_MAIL;
  15000. int SCANCODE_MEDIASELECT;
  15001. int SCANCODE_MENU;
  15002. int SCANCODE_MINUS;
  15003. int SCANCODE_MODE;
  15004. int SCANCODE_MUTE;
  15005. int SCANCODE_N;
  15006. int SCANCODE_NONUSBACKSLASH;
  15007. int SCANCODE_NONUSHASH;
  15008. int SCANCODE_NUMLOCKCLEAR;
  15009. int SCANCODE_O;
  15010. int SCANCODE_OPER;
  15011. int SCANCODE_OUT;
  15012. int SCANCODE_P;
  15013. int SCANCODE_PAGEDOWN;
  15014. int SCANCODE_PAGEUP;
  15015. int SCANCODE_PASTE;
  15016. int SCANCODE_PAUSE;
  15017. int SCANCODE_PERIOD;
  15018. int SCANCODE_POWER;
  15019. int SCANCODE_PRINTSCREEN;
  15020. int SCANCODE_PRIOR;
  15021. int SCANCODE_Q;
  15022. int SCANCODE_R;
  15023. int SCANCODE_RALT;
  15024. int SCANCODE_RCTRL;
  15025. int SCANCODE_RETURN;
  15026. int SCANCODE_RETURN2;
  15027. int SCANCODE_RGUI;
  15028. int SCANCODE_RIGHT;
  15029. int SCANCODE_RIGHTBRACKET;
  15030. int SCANCODE_RSHIFT;
  15031. int SCANCODE_S;
  15032. int SCANCODE_SCROLLLOCK;
  15033. int SCANCODE_SELECT;
  15034. int SCANCODE_SEMICOLON;
  15035. int SCANCODE_SEPARATOR;
  15036. int SCANCODE_SHIFT;
  15037. int SCANCODE_SLASH;
  15038. int SCANCODE_SLEEP;
  15039. int SCANCODE_SPACE;
  15040. int SCANCODE_STOP;
  15041. int SCANCODE_SYSREQ;
  15042. int SCANCODE_T;
  15043. int SCANCODE_TAB;
  15044. int SCANCODE_THOUSANDSSEPARATOR;
  15045. int SCANCODE_U;
  15046. int SCANCODE_UNDO;
  15047. int SCANCODE_UNKNOWN;
  15048. int SCANCODE_UP;
  15049. int SCANCODE_V;
  15050. int SCANCODE_VOLUMEDOWN;
  15051. int SCANCODE_VOLUMEUP;
  15052. int SCANCODE_W;
  15053. int SCANCODE_WWW;
  15054. int SCANCODE_X;
  15055. int SCANCODE_Y;
  15056. int SCANCODE_Z;
  15057. uint SCAN_DIRS;
  15058. uint SCAN_FILES;
  15059. uint SCAN_HIDDEN;
  15060. String SOUND_AMBIENT;
  15061. String SOUND_EFFECT;
  15062. String SOUND_MASTER;
  15063. String SOUND_MUSIC;
  15064. String SOUND_VOICE;
  15065. Color TRANSPARENT;
  15066. uint VO_DISABLE_OCCLUSION;
  15067. uint VO_DISABLE_SHADOWS;
  15068. uint VO_LOW_MATERIAL_QUALITY;
  15069. uint VO_NONE;
  15070. Color WHITE;
  15071. Color YELLOW;