AngelScriptAPI.h 340 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055
  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 Load(File, bool = false);
  22. bool Load(VectorBuffer&, bool = false);
  23. bool LoadXML(const XMLElement&, bool = false);
  24. void MarkNetworkUpdate() const;
  25. void RemoveAttributeAnimation(const String&);
  26. void RemoveInstanceDefault();
  27. void RemoveObjectAnimation();
  28. void ResetToDefault();
  29. bool Save(File) const;
  30. bool Save(VectorBuffer&) const;
  31. bool SaveXML(XMLElement&) const;
  32. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  33. void SetAnimationTime(float);
  34. bool SetAttribute(const String&, const Variant&);
  35. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36. void SetAttributeAnimationSpeed(const String&, float);
  37. void SetAttributeAnimationTime(const String&, float);
  38. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  39. void SetInterceptNetworkUpdate(const String&, bool);
  40. // Properties:
  41. bool animationEnabled;
  42. /* readonly */
  43. Array<Variant> attributeDefaults;
  44. /* readonly */
  45. Array<AttributeInfo> attributeInfos;
  46. Array<Variant> attributes;
  47. /* readonly */
  48. String category;
  49. /* readonly */
  50. uint numAttributes;
  51. ObjectAnimation objectAnimation;
  52. /* readonly */
  53. int refs;
  54. bool temporary;
  55. /* readonly */
  56. StringHash type;
  57. /* readonly */
  58. String typeName;
  59. /* readonly */
  60. int weakRefs;
  61. };
  62. class AnimatedModel
  63. {
  64. // Methods:
  65. AnimationState AddAnimationState(Animation);
  66. void ApplyAttributes();
  67. void ApplyMaterialList(const String& = String ( ));
  68. void DrawDebugGeometry(DebugRenderer, bool);
  69. AnimationState GetAnimationState(Animation) const;
  70. AnimationState GetAnimationState(uint) const;
  71. Variant GetAttribute(const String&) const;
  72. ValueAnimation GetAttributeAnimation(const String&) const;
  73. float GetAttributeAnimationSpeed(const String&) const;
  74. float GetAttributeAnimationTime(const String&) const;
  75. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  76. Variant GetAttributeDefault(const String&) const;
  77. bool GetInterceptNetworkUpdate(const String&) const;
  78. float GetMorphWeight(uint) const;
  79. bool IsInView(Camera) const;
  80. bool Load(File, bool = false);
  81. bool Load(VectorBuffer&, bool = false);
  82. bool LoadXML(const XMLElement&, bool = false);
  83. void MarkNetworkUpdate() const;
  84. void Remove();
  85. void RemoveAllAnimationStates();
  86. void RemoveAnimationState(Animation);
  87. void RemoveAnimationState(AnimationState);
  88. void RemoveAnimationState(const String&);
  89. void RemoveAnimationState(uint);
  90. void RemoveAttributeAnimation(const String&);
  91. void RemoveInstanceDefault();
  92. void RemoveObjectAnimation();
  93. void ResetMorphWeights();
  94. void ResetToDefault();
  95. bool Save(File) const;
  96. bool Save(VectorBuffer&) const;
  97. bool SaveXML(XMLElement&) const;
  98. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  99. void SetAnimationTime(float);
  100. bool SetAttribute(const String&, const Variant&);
  101. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  102. void SetAttributeAnimationSpeed(const String&, float);
  103. void SetAttributeAnimationTime(const String&, float);
  104. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  105. void SetInterceptNetworkUpdate(const String&, bool);
  106. void SetMorphWeight(uint, float);
  107. // Properties:
  108. bool animationEnabled;
  109. float animationLodBias;
  110. /* readonly */
  111. Array<AnimationState> animationStates;
  112. /* readonly */
  113. Array<Variant> attributeDefaults;
  114. /* readonly */
  115. Array<AttributeInfo> attributeInfos;
  116. Array<Variant> attributes;
  117. /* readonly */
  118. BoundingBox boundingBox;
  119. bool castShadows;
  120. /* readonly */
  121. String category;
  122. float drawDistance;
  123. bool enabled;
  124. /* readonly */
  125. bool enabledEffective;
  126. /* readonly */
  127. uint id;
  128. /* readonly */
  129. bool inView;
  130. uint lightMask;
  131. float lodBias;
  132. /* writeonly */
  133. Material material;
  134. Array<Material> materials;
  135. uint maxLights;
  136. Model model;
  137. /* readonly */
  138. Array<String> morphNames;
  139. Array<float> morphWeights;
  140. /* readonly */
  141. Node node;
  142. /* readonly */
  143. uint numAnimationStates;
  144. /* readonly */
  145. uint numAttributes;
  146. /* readonly */
  147. uint numGeometries;
  148. /* readonly */
  149. uint numMorphs;
  150. ObjectAnimation objectAnimation;
  151. bool occludee;
  152. bool occluder;
  153. /* readonly */
  154. int refs;
  155. float shadowDistance;
  156. uint shadowMask;
  157. /* readonly */
  158. Skeleton skeleton;
  159. bool temporary;
  160. /* readonly */
  161. StringHash type;
  162. /* readonly */
  163. String typeName;
  164. bool updateInvisible;
  165. uint viewMask;
  166. /* readonly */
  167. int weakRefs;
  168. /* readonly */
  169. BoundingBox worldBoundingBox;
  170. /* readonly */
  171. Zone zone;
  172. uint zoneMask;
  173. };
  174. class AnimatedSprite2D
  175. {
  176. // Methods:
  177. void ApplyAttributes();
  178. void DrawDebugGeometry(DebugRenderer, bool);
  179. Variant GetAttribute(const String&) const;
  180. ValueAnimation GetAttributeAnimation(const String&) const;
  181. float GetAttributeAnimationSpeed(const String&) const;
  182. float GetAttributeAnimationTime(const String&) const;
  183. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  184. Variant GetAttributeDefault(const String&) const;
  185. bool GetInterceptNetworkUpdate(const String&) const;
  186. bool IsInView(Camera) const;
  187. bool Load(File, bool = false);
  188. bool Load(VectorBuffer&, bool = false);
  189. bool LoadXML(const XMLElement&, bool = false);
  190. void MarkNetworkUpdate() const;
  191. void Remove();
  192. void RemoveAttributeAnimation(const String&);
  193. void RemoveInstanceDefault();
  194. void RemoveObjectAnimation();
  195. void ResetToDefault();
  196. bool Save(File) const;
  197. bool Save(VectorBuffer&) const;
  198. bool SaveXML(XMLElement&) const;
  199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  200. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  201. void SetAnimationTime(float);
  202. bool SetAttribute(const String&, const Variant&);
  203. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  204. void SetAttributeAnimationSpeed(const String&, float);
  205. void SetAttributeAnimationTime(const String&, float);
  206. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  207. void SetFlip(bool, bool);
  208. void SetInterceptNetworkUpdate(const String&, bool);
  209. // Properties:
  210. float alpha;
  211. String animation;
  212. bool animationEnabled;
  213. AnimationSet2D animationSet;
  214. /* readonly */
  215. Array<Variant> attributeDefaults;
  216. /* readonly */
  217. Array<AttributeInfo> attributeInfos;
  218. Array<Variant> attributes;
  219. BlendMode blendMode;
  220. /* readonly */
  221. BoundingBox boundingBox;
  222. bool castShadows;
  223. /* readonly */
  224. String category;
  225. Color color;
  226. Material customMaterial;
  227. float drawDistance;
  228. bool enabled;
  229. /* readonly */
  230. bool enabledEffective;
  231. String entity;
  232. bool flipX;
  233. bool flipY;
  234. Vector2 hotSpot;
  235. /* readonly */
  236. uint id;
  237. /* readonly */
  238. bool inView;
  239. int layer;
  240. uint lightMask;
  241. float lodBias;
  242. LoopMode2D loopMode;
  243. uint maxLights;
  244. /* readonly */
  245. Node node;
  246. /* readonly */
  247. uint numAttributes;
  248. ObjectAnimation objectAnimation;
  249. bool occludee;
  250. bool occluder;
  251. int orderInLayer;
  252. /* readonly */
  253. int refs;
  254. float shadowDistance;
  255. uint shadowMask;
  256. float speed;
  257. Sprite2D sprite;
  258. bool temporary;
  259. /* readonly */
  260. StringHash type;
  261. /* readonly */
  262. String typeName;
  263. bool useHotSpot;
  264. uint viewMask;
  265. /* readonly */
  266. int weakRefs;
  267. /* readonly */
  268. BoundingBox worldBoundingBox;
  269. uint zoneMask;
  270. };
  271. class Animation
  272. {
  273. // Methods:
  274. void AddTrigger(const AnimationTriggerPoint&);
  275. void AddTrigger(float, bool, const Variant&);
  276. AnimationTrack CreateTrack(const String&);
  277. bool Load(File);
  278. bool Load(VectorBuffer&);
  279. bool RemoveAllTracks();
  280. void RemoveAllTriggers();
  281. bool RemoveTrack(const String&);
  282. void RemoveTrigger(uint);
  283. bool Save(File) const;
  284. bool Save(VectorBuffer&) const;
  285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  286. // Properties:
  287. String animationName;
  288. /* readonly */
  289. String category;
  290. float length;
  291. /* readonly */
  292. uint memoryUse;
  293. String name;
  294. /* readonly */
  295. uint numTracks;
  296. uint numTriggers;
  297. /* readonly */
  298. int refs;
  299. /* readonly */
  300. Array<AnimationTrack> tracks;
  301. Array<AnimationTriggerPoint> triggers;
  302. /* readonly */
  303. StringHash type;
  304. /* readonly */
  305. String typeName;
  306. /* readonly */
  307. uint useTimer;
  308. /* readonly */
  309. int weakRefs;
  310. };
  311. class AnimationController
  312. {
  313. // Methods:
  314. void ApplyAttributes();
  315. void DrawDebugGeometry(DebugRenderer, bool);
  316. bool Fade(const String&, float, float);
  317. bool FadeOthers(const String&, float, float);
  318. AnimationState GetAnimationState(StringHash) const;
  319. AnimationState GetAnimationState(const String&) const;
  320. Variant GetAttribute(const String&) const;
  321. ValueAnimation GetAttributeAnimation(const String&) const;
  322. float GetAttributeAnimationSpeed(const String&) const;
  323. float GetAttributeAnimationTime(const String&) const;
  324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  325. Variant GetAttributeDefault(const String&) const;
  326. float GetAutoFade(const String&) const;
  327. float GetFadeTarget(const String&) const;
  328. float GetFadeTime(const String&) const;
  329. bool GetInterceptNetworkUpdate(const String&) const;
  330. uint8 GetLayer(const String&) const;
  331. float GetLength(const String&) const;
  332. bool GetLooped(const String&) const;
  333. bool GetRemoveOnCompletion(const String&);
  334. float GetSpeed(const String&) const;
  335. float GetTime(const String&) const;
  336. float GetWeight(const String&) const;
  337. bool IsAtEnd(const String&) const;
  338. bool IsFadingIn(const String&) const;
  339. bool IsFadingOut(const String&) const;
  340. bool IsPlaying(const String&) const;
  341. bool Load(File, bool = false);
  342. bool Load(VectorBuffer&, bool = false);
  343. bool LoadXML(const XMLElement&, bool = false);
  344. void MarkNetworkUpdate() const;
  345. bool Play(const String&, uint8, bool, float = 0.0f);
  346. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  347. void Remove();
  348. void RemoveAttributeAnimation(const String&);
  349. void RemoveInstanceDefault();
  350. void RemoveObjectAnimation();
  351. void ResetToDefault();
  352. bool Save(File) const;
  353. bool Save(VectorBuffer&) const;
  354. bool SaveXML(XMLElement&) const;
  355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  356. void SetAnimationTime(float);
  357. bool SetAttribute(const String&, const Variant&);
  358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  359. void SetAttributeAnimationSpeed(const String&, float);
  360. void SetAttributeAnimationTime(const String&, float);
  361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  362. bool SetAutoFade(const String&, float);
  363. void SetInterceptNetworkUpdate(const String&, bool);
  364. bool SetLayer(const String&, uint8);
  365. bool SetLooped(const String&, bool);
  366. bool SetRemoveOnCompletion(const String&, bool);
  367. bool SetSpeed(const String&, float);
  368. bool SetStartBone(const String&, const String&);
  369. bool SetTime(const String&, float);
  370. bool SetWeight(const String&, float);
  371. void Stop(const String&, float = 0.0f);
  372. void StopAll(float = 0.0f);
  373. void StopLayer(uint8, float = 0.0f);
  374. const String& GetStartBone(const String&) const;
  375. // Properties:
  376. bool animationEnabled;
  377. /* readonly */
  378. Array<Variant> attributeDefaults;
  379. /* readonly */
  380. Array<AttributeInfo> attributeInfos;
  381. Array<Variant> attributes;
  382. /* readonly */
  383. String category;
  384. bool enabled;
  385. /* readonly */
  386. bool enabledEffective;
  387. /* readonly */
  388. uint id;
  389. /* readonly */
  390. Node node;
  391. /* readonly */
  392. uint numAttributes;
  393. ObjectAnimation objectAnimation;
  394. /* readonly */
  395. int refs;
  396. bool temporary;
  397. /* readonly */
  398. StringHash type;
  399. /* readonly */
  400. String typeName;
  401. /* readonly */
  402. int weakRefs;
  403. };
  404. class AnimationKeyFrame
  405. {
  406. // Properties:
  407. Vector3 position;
  408. Quaternion rotation;
  409. Vector3 scale;
  410. float time;
  411. };
  412. class AnimationSet2D
  413. {
  414. // Methods:
  415. String GetAnimation(uint) const;
  416. bool Load(File);
  417. bool Load(VectorBuffer&);
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  421. // Properties:
  422. /* readonly */
  423. String category;
  424. /* readonly */
  425. uint memoryUse;
  426. String name;
  427. /* readonly */
  428. uint numAnimations;
  429. /* readonly */
  430. int refs;
  431. /* readonly */
  432. StringHash type;
  433. /* readonly */
  434. String typeName;
  435. /* readonly */
  436. uint useTimer;
  437. /* readonly */
  438. int weakRefs;
  439. };
  440. class AnimationState
  441. {
  442. // Methods:
  443. void AddTime(float);
  444. void AddWeight(float);
  445. void Apply();
  446. float GetBoneWeight(StringHash) const;
  447. float GetBoneWeight(uint) const;
  448. uint GetTrackIndex(StringHash) const;
  449. uint GetTrackIndex(const String&) const;
  450. void SetBoneWeight(StringHash, float, bool = false);
  451. void SetBoneWeight(const String&, float, bool = false);
  452. void SetBoneWeight(uint, float, bool = false);
  453. // Properties:
  454. /* readonly */
  455. Animation animation;
  456. Array<float> boneWeights;
  457. /* readonly */
  458. bool enabled;
  459. uint8 layer;
  460. /* readonly */
  461. float length;
  462. bool looped;
  463. /* readonly */
  464. AnimatedModel model;
  465. /* readonly */
  466. Node node;
  467. /* readonly */
  468. int refs;
  469. Bone startBone;
  470. float time;
  471. /* readonly */
  472. int weakRefs;
  473. float weight;
  474. };
  475. class AnimationTrack
  476. {
  477. // Methods:
  478. void AddKeyFrame(const AnimationKeyFrame&);
  479. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  480. void RemoveAllKeyFrames();
  481. void RemoveKeyFrame(uint);
  482. // Properties:
  483. uint8 channelMask;
  484. Array<AnimationKeyFrame> keyFrames;
  485. String name;
  486. StringHash nameHash;
  487. /* readonly */
  488. uint numKeyFrames;
  489. };
  490. class AnimationTriggerPoint
  491. {
  492. // Properties:
  493. Variant data;
  494. float time;
  495. };
  496. template <class T> class Array
  497. {
  498. // Methods:
  499. void Clear();
  500. void Erase(uint);
  501. int Find(const T&) const;
  502. int Find(uint, const T&) const;
  503. int FindByRef(const T&) const;
  504. int FindByRef(uint, const T&) const;
  505. void Insert(uint, const T&);
  506. void Pop();
  507. void Push(const T&);
  508. void Reserve(uint);
  509. void Resize(uint);
  510. void Reverse();
  511. void Sort();
  512. void Sort(uint, uint);
  513. void SortReverse();
  514. void SortReverse(uint, uint);
  515. // Properties:
  516. /* readonly */
  517. bool empty;
  518. uint length;
  519. };
  520. class AttributeInfo
  521. {
  522. // Properties:
  523. Variant defaultValue;
  524. /* readonly */
  525. Array<String> enumNames;
  526. uint mode;
  527. String name;
  528. VariantType type;
  529. };
  530. class Audio
  531. {
  532. // Methods:
  533. bool HasMasterGain(const String&) const;
  534. bool Play();
  535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  536. void SetMode(int, int, bool, bool = true);
  537. void Stop();
  538. // Properties:
  539. /* readonly */
  540. String category;
  541. /* readonly */
  542. bool initialized;
  543. /* readonly */
  544. bool interpolation;
  545. SoundListener listener;
  546. Array<float> masterGain;
  547. /* readonly */
  548. int mixRate;
  549. /* readonly */
  550. bool playing;
  551. /* readonly */
  552. int refs;
  553. /* readonly */
  554. uint sampleSize;
  555. /* readonly */
  556. bool stereo;
  557. /* readonly */
  558. StringHash type;
  559. /* readonly */
  560. String typeName;
  561. /* readonly */
  562. int weakRefs;
  563. };
  564. class BiasParameters
  565. {
  566. // Properties:
  567. float constantBias;
  568. float slopeScaledBias;
  569. };
  570. class Billboard
  571. {
  572. // Properties:
  573. Color color;
  574. bool enabled;
  575. Vector3 position;
  576. float rotation;
  577. Vector2 size;
  578. Rect uv;
  579. };
  580. class BillboardSet
  581. {
  582. // Methods:
  583. void ApplyAttributes();
  584. void Commit();
  585. void DrawDebugGeometry(DebugRenderer, bool);
  586. Variant GetAttribute(const String&) const;
  587. ValueAnimation GetAttributeAnimation(const String&) const;
  588. float GetAttributeAnimationSpeed(const String&) const;
  589. float GetAttributeAnimationTime(const String&) const;
  590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  591. Variant GetAttributeDefault(const String&) const;
  592. bool GetInterceptNetworkUpdate(const String&) const;
  593. bool IsInView(Camera) const;
  594. bool Load(File, bool = false);
  595. bool Load(VectorBuffer&, bool = false);
  596. bool LoadXML(const XMLElement&, bool = false);
  597. void MarkNetworkUpdate() const;
  598. void Remove();
  599. void RemoveAttributeAnimation(const String&);
  600. void RemoveInstanceDefault();
  601. void RemoveObjectAnimation();
  602. void ResetToDefault();
  603. bool Save(File) const;
  604. bool Save(VectorBuffer&) const;
  605. bool SaveXML(XMLElement&) const;
  606. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  607. void SetAnimationTime(float);
  608. bool SetAttribute(const String&, const Variant&);
  609. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  610. void SetAttributeAnimationSpeed(const String&, float);
  611. void SetAttributeAnimationTime(const String&, float);
  612. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  613. void SetInterceptNetworkUpdate(const String&, bool);
  614. // Properties:
  615. bool animationEnabled;
  616. float animationLodBias;
  617. /* readonly */
  618. Array<Variant> attributeDefaults;
  619. /* readonly */
  620. Array<AttributeInfo> attributeInfos;
  621. Array<Variant> attributes;
  622. /* readonly */
  623. Array<Billboard> billboards;
  624. /* readonly */
  625. BoundingBox boundingBox;
  626. bool castShadows;
  627. /* readonly */
  628. String category;
  629. float drawDistance;
  630. bool enabled;
  631. /* readonly */
  632. bool enabledEffective;
  633. FaceCameraMode faceCameraMode;
  634. /* readonly */
  635. uint id;
  636. /* readonly */
  637. bool inView;
  638. uint lightMask;
  639. float lodBias;
  640. Material material;
  641. uint maxLights;
  642. /* readonly */
  643. Node node;
  644. /* readonly */
  645. uint numAttributes;
  646. uint numBillboards;
  647. ObjectAnimation objectAnimation;
  648. bool occludee;
  649. bool occluder;
  650. /* readonly */
  651. int refs;
  652. bool relative;
  653. bool scaled;
  654. float shadowDistance;
  655. uint shadowMask;
  656. bool sorted;
  657. bool temporary;
  658. /* readonly */
  659. StringHash type;
  660. /* readonly */
  661. String typeName;
  662. uint viewMask;
  663. /* readonly */
  664. int weakRefs;
  665. /* readonly */
  666. BoundingBox worldBoundingBox;
  667. /* readonly */
  668. Zone zone;
  669. uint zoneMask;
  670. };
  671. class Bone
  672. {
  673. // Properties:
  674. bool animated;
  675. BoundingBox boundingBox;
  676. Vector3 initialPosition;
  677. Quaternion initialRotation;
  678. Vector3 initialScale;
  679. String name;
  680. Node node;
  681. float radius;
  682. };
  683. class BorderImage
  684. {
  685. // Methods:
  686. void AddChild(UIElement);
  687. void ApplyAttributes();
  688. void BringToFront();
  689. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  690. void DisableLayoutUpdate();
  691. IntVector2 ElementToScreen(const IntVector2&);
  692. void EnableLayoutUpdate();
  693. uint FindChild(UIElement) const;
  694. Variant GetAttribute(const String&) const;
  695. ValueAnimation GetAttributeAnimation(const String&) const;
  696. float GetAttributeAnimationSpeed(const String&) const;
  697. float GetAttributeAnimationTime(const String&) const;
  698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  699. Variant GetAttributeDefault(const String&) const;
  700. UIElement GetChild(const String&, bool = false) const;
  701. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  702. Array<UIElement> GetChildren(bool = false) const;
  703. UIElement GetElementEventSender() const;
  704. bool GetInterceptNetworkUpdate(const String&) const;
  705. uint GetNumChildren(bool) const;
  706. void InsertChild(uint, UIElement);
  707. bool IsInside(IntVector2, bool);
  708. bool IsInsideCombined(IntVector2, bool);
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadChildXML(XMLFile, XMLFile = null);
  712. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  713. bool LoadXML(File);
  714. bool LoadXML(VectorBuffer&);
  715. bool LoadXML(XMLFile, XMLFile);
  716. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  717. bool LoadXML(const XMLElement&, bool = false);
  718. void MarkNetworkUpdate() const;
  719. void Remove();
  720. void RemoveAllChildren();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveChild(UIElement, uint = 0);
  723. void RemoveChild(uint);
  724. void RemoveInstanceDefault();
  725. void RemoveObjectAnimation();
  726. void ResetDeepEnabled();
  727. void ResetToDefault();
  728. bool Save(File) const;
  729. bool Save(VectorBuffer&) const;
  730. bool SaveXML(File, const String& = "\t");
  731. bool SaveXML(VectorBuffer&, const String& = "\t");
  732. bool SaveXML(XMLElement&) const;
  733. IntVector2 ScreenToElement(const IntVector2&);
  734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  735. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  736. void SetAnimationTime(float);
  737. bool SetAttribute(const String&, const Variant&);
  738. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  739. void SetAttributeAnimationSpeed(const String&, float);
  740. void SetAttributeAnimationTime(const String&, float);
  741. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  742. void SetDeepEnabled(bool);
  743. void SetEnabledRecursive(bool);
  744. void SetFixedHeight(int);
  745. void SetFixedSize(int, int);
  746. void SetFixedWidth(int);
  747. void SetFullImageRect();
  748. void SetHoverOffset(int, int);
  749. void SetInterceptNetworkUpdate(const String&, bool);
  750. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  751. void SetMaxSize(int, int);
  752. void SetMinSize(int, int);
  753. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  754. void SetPosition(int, int);
  755. void SetSize(int, int);
  756. bool SetStyle(const String&, XMLFile = null);
  757. bool SetStyle(const XMLElement&);
  758. bool SetStyleAuto(XMLFile = null);
  759. void UpdateLayout();
  760. const Variant& GetVar(const StringHash&);
  761. // Properties:
  762. bool animationEnabled;
  763. /* readonly */
  764. Array<Variant> attributeDefaults;
  765. /* readonly */
  766. Array<AttributeInfo> attributeInfos;
  767. Array<Variant> attributes;
  768. BlendMode blendMode;
  769. IntRect border;
  770. bool bringToBack;
  771. bool bringToFront;
  772. /* readonly */
  773. String category;
  774. /* readonly */
  775. IntVector2 childOffset;
  776. /* readonly */
  777. Array<UIElement> children;
  778. IntRect clipBorder;
  779. bool clipChildren;
  780. /* writeonly */
  781. Color color;
  782. /* readonly */
  783. bool colorGradient;
  784. Array<Color> colors;
  785. /* readonly */
  786. IntRect combinedScreenRect;
  787. XMLFile defaultStyle;
  788. /* readonly */
  789. float derivedOpacity;
  790. /* readonly */
  791. uint dragButtonCombo;
  792. /* readonly */
  793. int dragButtonCount;
  794. uint dragDropMode;
  795. bool editable;
  796. bool elementEventSender;
  797. bool enabled;
  798. /* readonly */
  799. bool enabledSelf;
  800. /* readonly */
  801. bool fixedHeight;
  802. /* readonly */
  803. bool fixedSize;
  804. /* readonly */
  805. bool fixedWidth;
  806. bool focus;
  807. FocusMode focusMode;
  808. int height;
  809. HorizontalAlignment horizontalAlignment;
  810. IntVector2 hoverOffset;
  811. /* readonly */
  812. bool hovering;
  813. IntRect imageBorder;
  814. IntRect imageRect;
  815. int indent;
  816. int indentSpacing;
  817. /* readonly */
  818. int indentWidth;
  819. bool internal;
  820. IntRect layoutBorder;
  821. Vector2 layoutFlexScale;
  822. LayoutMode layoutMode;
  823. int layoutSpacing;
  824. int maxHeight;
  825. IntVector2 maxSize;
  826. int maxWidth;
  827. int minHeight;
  828. IntVector2 minSize;
  829. int minWidth;
  830. String name;
  831. /* readonly */
  832. uint numAllChildren;
  833. /* readonly */
  834. uint numAttributes;
  835. /* readonly */
  836. uint numChildren;
  837. ObjectAnimation objectAnimation;
  838. float opacity;
  839. UIElement parent;
  840. IntVector2 position;
  841. int priority;
  842. /* readonly */
  843. int refs;
  844. /* readonly */
  845. UIElement root;
  846. /* readonly */
  847. IntVector2 screenPosition;
  848. bool selected;
  849. IntVector2 size;
  850. bool sortChildren;
  851. String style;
  852. bool temporary;
  853. Texture texture;
  854. bool tiled;
  855. TraversalMode traversalMode;
  856. /* readonly */
  857. StringHash type;
  858. /* readonly */
  859. String typeName;
  860. bool useDerivedOpacity;
  861. /* readonly */
  862. VariantMap vars;
  863. VerticalAlignment verticalAlignment;
  864. bool visible;
  865. /* readonly */
  866. bool visibleEffective;
  867. /* readonly */
  868. int weakRefs;
  869. int width;
  870. };
  871. class BoundingBox
  872. {
  873. // Methods:
  874. void Clear();
  875. void Clip(const BoundingBox&);
  876. void Define(const BoundingBox&);
  877. void Define(const Frustum&);
  878. void Define(const Polyhedron&);
  879. void Define(const Sphere&);
  880. void Define(const Vector3&);
  881. void Define(const Vector3&, const Vector3&);
  882. void Define(float, float);
  883. bool Defined() const;
  884. Intersection IsInside(const BoundingBox&) const;
  885. Intersection IsInside(const Sphere&) const;
  886. Intersection IsInside(const Vector3&) const;
  887. Intersection IsInsideFast(const BoundingBox&) const;
  888. Intersection IsInsideFast(const Sphere&) const;
  889. void Merge(const BoundingBox&);
  890. void Merge(const Frustum&);
  891. void Merge(const Polyhedron&);
  892. void Merge(const Sphere&);
  893. void Merge(const Vector3&);
  894. Rect Projected(const Matrix4&) const;
  895. String ToString() const;
  896. void Transform(const Matrix3&);
  897. void Transform(const Matrix3x4&);
  898. BoundingBox Transformed(const Matrix3&) const;
  899. BoundingBox Transformed(const Matrix3x4&) const;
  900. // Properties:
  901. /* readonly */
  902. Vector3 center;
  903. /* readonly */
  904. Vector3 halfSize;
  905. Vector3 max;
  906. Vector3 min;
  907. /* readonly */
  908. Vector3 size;
  909. };
  910. class Button
  911. {
  912. // Methods:
  913. void AddChild(UIElement);
  914. void ApplyAttributes();
  915. void BringToFront();
  916. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  917. void DisableLayoutUpdate();
  918. IntVector2 ElementToScreen(const IntVector2&);
  919. void EnableLayoutUpdate();
  920. uint FindChild(UIElement) const;
  921. Variant GetAttribute(const String&) const;
  922. ValueAnimation GetAttributeAnimation(const String&) const;
  923. float GetAttributeAnimationSpeed(const String&) const;
  924. float GetAttributeAnimationTime(const String&) const;
  925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  926. Variant GetAttributeDefault(const String&) const;
  927. UIElement GetChild(const String&, bool = false) const;
  928. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  929. Array<UIElement> GetChildren(bool = false) const;
  930. UIElement GetElementEventSender() const;
  931. bool GetInterceptNetworkUpdate(const String&) const;
  932. uint GetNumChildren(bool) const;
  933. void InsertChild(uint, UIElement);
  934. bool IsInside(IntVector2, bool);
  935. bool IsInsideCombined(IntVector2, bool);
  936. bool Load(File, bool = false);
  937. bool Load(VectorBuffer&, bool = false);
  938. bool LoadChildXML(XMLFile, XMLFile = null);
  939. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  940. bool LoadXML(File);
  941. bool LoadXML(VectorBuffer&);
  942. bool LoadXML(XMLFile, XMLFile);
  943. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  944. bool LoadXML(const XMLElement&, bool = false);
  945. void MarkNetworkUpdate() const;
  946. void Remove();
  947. void RemoveAllChildren();
  948. void RemoveAttributeAnimation(const String&);
  949. void RemoveChild(UIElement, uint = 0);
  950. void RemoveChild(uint);
  951. void RemoveInstanceDefault();
  952. void RemoveObjectAnimation();
  953. void ResetDeepEnabled();
  954. void ResetToDefault();
  955. bool Save(File) const;
  956. bool Save(VectorBuffer&) const;
  957. bool SaveXML(File, const String& = "\t");
  958. bool SaveXML(VectorBuffer&, const String& = "\t");
  959. bool SaveXML(XMLElement&) const;
  960. IntVector2 ScreenToElement(const IntVector2&);
  961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  962. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  963. void SetAnimationTime(float);
  964. bool SetAttribute(const String&, const Variant&);
  965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  966. void SetAttributeAnimationSpeed(const String&, float);
  967. void SetAttributeAnimationTime(const String&, float);
  968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  969. void SetDeepEnabled(bool);
  970. void SetEnabledRecursive(bool);
  971. void SetFixedHeight(int);
  972. void SetFixedSize(int, int);
  973. void SetFixedWidth(int);
  974. void SetFullImageRect();
  975. void SetHoverOffset(int, int);
  976. void SetInterceptNetworkUpdate(const String&, bool);
  977. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  978. void SetMaxSize(int, int);
  979. void SetMinSize(int, int);
  980. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  981. void SetPosition(int, int);
  982. void SetPressedChildOffset(int, int);
  983. void SetPressedOffset(int, int);
  984. void SetRepeat(float, float);
  985. void SetSize(int, int);
  986. bool SetStyle(const String&, XMLFile = null);
  987. bool SetStyle(const XMLElement&);
  988. bool SetStyleAuto(XMLFile = null);
  989. void UpdateLayout();
  990. const Variant& GetVar(const StringHash&);
  991. // Properties:
  992. bool animationEnabled;
  993. /* readonly */
  994. Array<Variant> attributeDefaults;
  995. /* readonly */
  996. Array<AttributeInfo> attributeInfos;
  997. Array<Variant> attributes;
  998. BlendMode blendMode;
  999. IntRect border;
  1000. bool bringToBack;
  1001. bool bringToFront;
  1002. /* readonly */
  1003. String category;
  1004. /* readonly */
  1005. IntVector2 childOffset;
  1006. /* readonly */
  1007. Array<UIElement> children;
  1008. IntRect clipBorder;
  1009. bool clipChildren;
  1010. /* writeonly */
  1011. Color color;
  1012. /* readonly */
  1013. bool colorGradient;
  1014. Array<Color> colors;
  1015. /* readonly */
  1016. IntRect combinedScreenRect;
  1017. XMLFile defaultStyle;
  1018. /* readonly */
  1019. float derivedOpacity;
  1020. /* readonly */
  1021. uint dragButtonCombo;
  1022. /* readonly */
  1023. int dragButtonCount;
  1024. uint dragDropMode;
  1025. bool editable;
  1026. bool elementEventSender;
  1027. bool enabled;
  1028. /* readonly */
  1029. bool enabledSelf;
  1030. /* readonly */
  1031. bool fixedHeight;
  1032. /* readonly */
  1033. bool fixedSize;
  1034. /* readonly */
  1035. bool fixedWidth;
  1036. bool focus;
  1037. FocusMode focusMode;
  1038. int height;
  1039. HorizontalAlignment horizontalAlignment;
  1040. IntVector2 hoverOffset;
  1041. /* readonly */
  1042. bool hovering;
  1043. IntRect imageBorder;
  1044. IntRect imageRect;
  1045. int indent;
  1046. int indentSpacing;
  1047. /* readonly */
  1048. int indentWidth;
  1049. bool internal;
  1050. IntRect layoutBorder;
  1051. Vector2 layoutFlexScale;
  1052. LayoutMode layoutMode;
  1053. int layoutSpacing;
  1054. int maxHeight;
  1055. IntVector2 maxSize;
  1056. int maxWidth;
  1057. int minHeight;
  1058. IntVector2 minSize;
  1059. int minWidth;
  1060. String name;
  1061. /* readonly */
  1062. uint numAllChildren;
  1063. /* readonly */
  1064. uint numAttributes;
  1065. /* readonly */
  1066. uint numChildren;
  1067. ObjectAnimation objectAnimation;
  1068. float opacity;
  1069. UIElement parent;
  1070. IntVector2 position;
  1071. /* readonly */
  1072. bool pressed;
  1073. IntVector2 pressedChildOffset;
  1074. IntVector2 pressedOffset;
  1075. int priority;
  1076. /* readonly */
  1077. int refs;
  1078. float repeatDelay;
  1079. float repeatRate;
  1080. /* readonly */
  1081. UIElement root;
  1082. /* readonly */
  1083. IntVector2 screenPosition;
  1084. bool selected;
  1085. IntVector2 size;
  1086. bool sortChildren;
  1087. String style;
  1088. bool temporary;
  1089. Texture texture;
  1090. bool tiled;
  1091. TraversalMode traversalMode;
  1092. /* readonly */
  1093. StringHash type;
  1094. /* readonly */
  1095. String typeName;
  1096. bool useDerivedOpacity;
  1097. /* readonly */
  1098. VariantMap vars;
  1099. VerticalAlignment verticalAlignment;
  1100. bool visible;
  1101. /* readonly */
  1102. bool visibleEffective;
  1103. /* readonly */
  1104. int weakRefs;
  1105. int width;
  1106. };
  1107. class Camera
  1108. {
  1109. // Methods:
  1110. void ApplyAttributes();
  1111. void DrawDebugGeometry(DebugRenderer, bool);
  1112. Variant GetAttribute(const String&) const;
  1113. ValueAnimation GetAttributeAnimation(const String&) const;
  1114. float GetAttributeAnimationSpeed(const String&) const;
  1115. float GetAttributeAnimationTime(const String&) const;
  1116. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1117. Variant GetAttributeDefault(const String&) const;
  1118. float GetDistance(const Vector3&) const;
  1119. float GetDistanceSquared(const Vector3&) const;
  1120. bool GetInterceptNetworkUpdate(const String&) const;
  1121. Ray GetScreenRay(float, float) const;
  1122. Frustum GetSplitFrustum(float, float) const;
  1123. bool Load(File, bool = false);
  1124. bool Load(VectorBuffer&, bool = false);
  1125. bool LoadXML(const XMLElement&, bool = false);
  1126. void MarkNetworkUpdate() const;
  1127. void Remove();
  1128. void RemoveAttributeAnimation(const String&);
  1129. void RemoveInstanceDefault();
  1130. void RemoveObjectAnimation();
  1131. void ResetToDefault();
  1132. bool Save(File) const;
  1133. bool Save(VectorBuffer&) const;
  1134. bool SaveXML(XMLElement&) const;
  1135. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1137. void SetAnimationTime(float);
  1138. bool SetAttribute(const String&, const Variant&);
  1139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1140. void SetAttributeAnimationSpeed(const String&, float);
  1141. void SetAttributeAnimationTime(const String&, float);
  1142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1143. void SetInterceptNetworkUpdate(const String&, bool);
  1144. void SetOrthoSize(const Vector2&);
  1145. Vector2 WorldToScreenPoint(const Vector3&) const;
  1146. // Properties:
  1147. bool animationEnabled;
  1148. float aspectRatio;
  1149. /* readonly */
  1150. Array<Variant> attributeDefaults;
  1151. /* readonly */
  1152. Array<AttributeInfo> attributeInfos;
  1153. Array<Variant> attributes;
  1154. bool autoAspectRatio;
  1155. /* readonly */
  1156. String category;
  1157. Plane clipPlane;
  1158. /* readonly */
  1159. Matrix3x4 effectiveWorldTransform;
  1160. bool enabled;
  1161. /* readonly */
  1162. bool enabledEffective;
  1163. float farClip;
  1164. FillMode fillMode;
  1165. float fov;
  1166. /* readonly */
  1167. Frustum frustum;
  1168. /* readonly */
  1169. float halfViewSize;
  1170. /* readonly */
  1171. uint id;
  1172. float lodBias;
  1173. float nearClip;
  1174. /* readonly */
  1175. Node node;
  1176. /* readonly */
  1177. uint numAttributes;
  1178. ObjectAnimation objectAnimation;
  1179. float orthoSize;
  1180. bool orthographic;
  1181. /* readonly */
  1182. Matrix4 projection;
  1183. Vector2 projectionOffset;
  1184. Plane reflectionPlane;
  1185. /* readonly */
  1186. int refs;
  1187. bool temporary;
  1188. /* readonly */
  1189. StringHash type;
  1190. /* readonly */
  1191. String typeName;
  1192. bool useClipping;
  1193. bool useReflection;
  1194. /* readonly */
  1195. Matrix3x4 view;
  1196. uint viewMask;
  1197. uint viewOverrideFlags;
  1198. /* readonly */
  1199. Frustum viewSpaceFrustum;
  1200. /* readonly */
  1201. int weakRefs;
  1202. float zoom;
  1203. };
  1204. class CascadeParameters
  1205. {
  1206. // Properties:
  1207. float biasAutoAdjust;
  1208. float fadeStart;
  1209. float split1;
  1210. float split2;
  1211. float split3;
  1212. float split4;
  1213. };
  1214. class CheckBox
  1215. {
  1216. // Methods:
  1217. void AddChild(UIElement);
  1218. void ApplyAttributes();
  1219. void BringToFront();
  1220. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1221. void DisableLayoutUpdate();
  1222. IntVector2 ElementToScreen(const IntVector2&);
  1223. void EnableLayoutUpdate();
  1224. uint FindChild(UIElement) const;
  1225. Variant GetAttribute(const String&) const;
  1226. ValueAnimation GetAttributeAnimation(const String&) const;
  1227. float GetAttributeAnimationSpeed(const String&) const;
  1228. float GetAttributeAnimationTime(const String&) const;
  1229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1230. Variant GetAttributeDefault(const String&) const;
  1231. UIElement GetChild(const String&, bool = false) const;
  1232. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1233. Array<UIElement> GetChildren(bool = false) const;
  1234. UIElement GetElementEventSender() const;
  1235. bool GetInterceptNetworkUpdate(const String&) const;
  1236. uint GetNumChildren(bool) const;
  1237. void InsertChild(uint, UIElement);
  1238. bool IsInside(IntVector2, bool);
  1239. bool IsInsideCombined(IntVector2, bool);
  1240. bool Load(File, bool = false);
  1241. bool Load(VectorBuffer&, bool = false);
  1242. bool LoadChildXML(XMLFile, XMLFile = null);
  1243. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1244. bool LoadXML(File);
  1245. bool LoadXML(VectorBuffer&);
  1246. bool LoadXML(XMLFile, XMLFile);
  1247. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1248. bool LoadXML(const XMLElement&, bool = false);
  1249. void MarkNetworkUpdate() const;
  1250. void Remove();
  1251. void RemoveAllChildren();
  1252. void RemoveAttributeAnimation(const String&);
  1253. void RemoveChild(UIElement, uint = 0);
  1254. void RemoveChild(uint);
  1255. void RemoveInstanceDefault();
  1256. void RemoveObjectAnimation();
  1257. void ResetDeepEnabled();
  1258. void ResetToDefault();
  1259. bool Save(File) const;
  1260. bool Save(VectorBuffer&) const;
  1261. bool SaveXML(File, const String& = "\t");
  1262. bool SaveXML(VectorBuffer&, const String& = "\t");
  1263. bool SaveXML(XMLElement&) const;
  1264. IntVector2 ScreenToElement(const IntVector2&);
  1265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1266. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1267. void SetAnimationTime(float);
  1268. bool SetAttribute(const String&, const Variant&);
  1269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1270. void SetAttributeAnimationSpeed(const String&, float);
  1271. void SetAttributeAnimationTime(const String&, float);
  1272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1273. void SetCheckedOffset(int, int);
  1274. void SetDeepEnabled(bool);
  1275. void SetEnabledRecursive(bool);
  1276. void SetFixedHeight(int);
  1277. void SetFixedSize(int, int);
  1278. void SetFixedWidth(int);
  1279. void SetFullImageRect();
  1280. void SetHoverOffset(int, int);
  1281. void SetInterceptNetworkUpdate(const String&, bool);
  1282. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1283. void SetMaxSize(int, int);
  1284. void SetMinSize(int, int);
  1285. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1286. void SetPosition(int, int);
  1287. void SetSize(int, int);
  1288. bool SetStyle(const String&, XMLFile = null);
  1289. bool SetStyle(const XMLElement&);
  1290. bool SetStyleAuto(XMLFile = null);
  1291. void UpdateLayout();
  1292. const Variant& GetVar(const StringHash&);
  1293. // Properties:
  1294. bool animationEnabled;
  1295. /* readonly */
  1296. Array<Variant> attributeDefaults;
  1297. /* readonly */
  1298. Array<AttributeInfo> attributeInfos;
  1299. Array<Variant> attributes;
  1300. BlendMode blendMode;
  1301. IntRect border;
  1302. bool bringToBack;
  1303. bool bringToFront;
  1304. /* readonly */
  1305. String category;
  1306. bool checked;
  1307. IntVector2 checkedOffset;
  1308. /* readonly */
  1309. IntVector2 childOffset;
  1310. /* readonly */
  1311. Array<UIElement> children;
  1312. IntRect clipBorder;
  1313. bool clipChildren;
  1314. /* writeonly */
  1315. Color color;
  1316. /* readonly */
  1317. bool colorGradient;
  1318. Array<Color> colors;
  1319. /* readonly */
  1320. IntRect combinedScreenRect;
  1321. XMLFile defaultStyle;
  1322. /* readonly */
  1323. float derivedOpacity;
  1324. /* readonly */
  1325. uint dragButtonCombo;
  1326. /* readonly */
  1327. int dragButtonCount;
  1328. uint dragDropMode;
  1329. bool editable;
  1330. bool elementEventSender;
  1331. bool enabled;
  1332. /* readonly */
  1333. bool enabledSelf;
  1334. /* readonly */
  1335. bool fixedHeight;
  1336. /* readonly */
  1337. bool fixedSize;
  1338. /* readonly */
  1339. bool fixedWidth;
  1340. bool focus;
  1341. FocusMode focusMode;
  1342. int height;
  1343. HorizontalAlignment horizontalAlignment;
  1344. IntVector2 hoverOffset;
  1345. /* readonly */
  1346. bool hovering;
  1347. IntRect imageBorder;
  1348. IntRect imageRect;
  1349. int indent;
  1350. int indentSpacing;
  1351. /* readonly */
  1352. int indentWidth;
  1353. bool internal;
  1354. IntRect layoutBorder;
  1355. Vector2 layoutFlexScale;
  1356. LayoutMode layoutMode;
  1357. int layoutSpacing;
  1358. int maxHeight;
  1359. IntVector2 maxSize;
  1360. int maxWidth;
  1361. int minHeight;
  1362. IntVector2 minSize;
  1363. int minWidth;
  1364. String name;
  1365. /* readonly */
  1366. uint numAllChildren;
  1367. /* readonly */
  1368. uint numAttributes;
  1369. /* readonly */
  1370. uint numChildren;
  1371. ObjectAnimation objectAnimation;
  1372. float opacity;
  1373. UIElement parent;
  1374. IntVector2 position;
  1375. int priority;
  1376. /* readonly */
  1377. int refs;
  1378. /* readonly */
  1379. UIElement root;
  1380. /* readonly */
  1381. IntVector2 screenPosition;
  1382. bool selected;
  1383. IntVector2 size;
  1384. bool sortChildren;
  1385. String style;
  1386. bool temporary;
  1387. Texture texture;
  1388. bool tiled;
  1389. TraversalMode traversalMode;
  1390. /* readonly */
  1391. StringHash type;
  1392. /* readonly */
  1393. String typeName;
  1394. bool useDerivedOpacity;
  1395. /* readonly */
  1396. VariantMap vars;
  1397. VerticalAlignment verticalAlignment;
  1398. bool visible;
  1399. /* readonly */
  1400. bool visibleEffective;
  1401. /* readonly */
  1402. int weakRefs;
  1403. int width;
  1404. };
  1405. class CollisionBox2D
  1406. {
  1407. // Methods:
  1408. void ApplyAttributes();
  1409. void DrawDebugGeometry(DebugRenderer, bool);
  1410. Variant GetAttribute(const String&) const;
  1411. ValueAnimation GetAttributeAnimation(const String&) const;
  1412. float GetAttributeAnimationSpeed(const String&) const;
  1413. float GetAttributeAnimationTime(const String&) const;
  1414. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1415. Variant GetAttributeDefault(const String&) const;
  1416. bool GetInterceptNetworkUpdate(const String&) const;
  1417. bool Load(File, bool = false);
  1418. bool Load(VectorBuffer&, bool = false);
  1419. bool LoadXML(const XMLElement&, bool = false);
  1420. void MarkNetworkUpdate() const;
  1421. void Remove();
  1422. void RemoveAttributeAnimation(const String&);
  1423. void RemoveInstanceDefault();
  1424. void RemoveObjectAnimation();
  1425. void ResetToDefault();
  1426. bool Save(File) const;
  1427. bool Save(VectorBuffer&) const;
  1428. bool SaveXML(XMLElement&) const;
  1429. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1430. void SetAnimationTime(float);
  1431. bool SetAttribute(const String&, const Variant&);
  1432. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1433. void SetAttributeAnimationSpeed(const String&, float);
  1434. void SetAttributeAnimationTime(const String&, float);
  1435. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1436. void SetCenter(float, float);
  1437. void SetInterceptNetworkUpdate(const String&, bool);
  1438. void SetSize(float, float);
  1439. // Properties:
  1440. float angle;
  1441. bool animationEnabled;
  1442. /* readonly */
  1443. Array<Variant> attributeDefaults;
  1444. /* readonly */
  1445. Array<AttributeInfo> attributeInfos;
  1446. Array<Variant> attributes;
  1447. /* readonly */
  1448. String category;
  1449. int categoryBits;
  1450. Vector2 center;
  1451. float density;
  1452. bool enabled;
  1453. /* readonly */
  1454. bool enabledEffective;
  1455. float friction;
  1456. int groupIndex;
  1457. /* readonly */
  1458. uint id;
  1459. /* readonly */
  1460. float inertia;
  1461. int maskBits;
  1462. /* readonly */
  1463. float mass;
  1464. /* readonly */
  1465. Vector2 massCenter;
  1466. /* readonly */
  1467. Node node;
  1468. /* readonly */
  1469. uint numAttributes;
  1470. ObjectAnimation objectAnimation;
  1471. /* readonly */
  1472. int refs;
  1473. float restitution;
  1474. Vector2 size;
  1475. bool temporary;
  1476. bool trigger;
  1477. /* readonly */
  1478. StringHash type;
  1479. /* readonly */
  1480. String typeName;
  1481. /* readonly */
  1482. int weakRefs;
  1483. };
  1484. class CollisionChain2D
  1485. {
  1486. // Methods:
  1487. void ApplyAttributes();
  1488. void DrawDebugGeometry(DebugRenderer, bool);
  1489. Variant GetAttribute(const String&) const;
  1490. ValueAnimation GetAttributeAnimation(const String&) const;
  1491. float GetAttributeAnimationSpeed(const String&) const;
  1492. float GetAttributeAnimationTime(const String&) const;
  1493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1494. Variant GetAttributeDefault(const String&) const;
  1495. bool GetInterceptNetworkUpdate(const String&) const;
  1496. Array<Vector2> GetVertices() const;
  1497. bool Load(File, bool = false);
  1498. bool Load(VectorBuffer&, bool = false);
  1499. bool LoadXML(const XMLElement&, bool = false);
  1500. void MarkNetworkUpdate() const;
  1501. void Remove();
  1502. void RemoveAttributeAnimation(const String&);
  1503. void RemoveInstanceDefault();
  1504. void RemoveObjectAnimation();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool SaveXML(XMLElement&) const;
  1509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1510. void SetAnimationTime(float);
  1511. bool SetAttribute(const String&, const Variant&);
  1512. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1513. void SetAttributeAnimationSpeed(const String&, float);
  1514. void SetAttributeAnimationTime(const String&, float);
  1515. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1516. void SetInterceptNetworkUpdate(const String&, bool);
  1517. void SetVertex(uint, const Vector2&);
  1518. void SetVertices(Array<Vector2>);
  1519. const Vector2& GetVertex(uint) const;
  1520. // Properties:
  1521. bool animationEnabled;
  1522. /* readonly */
  1523. Array<Variant> attributeDefaults;
  1524. /* readonly */
  1525. Array<AttributeInfo> attributeInfos;
  1526. Array<Variant> attributes;
  1527. /* readonly */
  1528. String category;
  1529. int categoryBits;
  1530. float density;
  1531. bool enabled;
  1532. /* readonly */
  1533. bool enabledEffective;
  1534. float friction;
  1535. int groupIndex;
  1536. /* readonly */
  1537. uint id;
  1538. /* readonly */
  1539. float inertia;
  1540. bool loop;
  1541. int maskBits;
  1542. /* readonly */
  1543. float mass;
  1544. /* readonly */
  1545. Vector2 massCenter;
  1546. /* readonly */
  1547. Node node;
  1548. /* readonly */
  1549. uint numAttributes;
  1550. ObjectAnimation objectAnimation;
  1551. /* readonly */
  1552. int refs;
  1553. float restitution;
  1554. bool temporary;
  1555. bool trigger;
  1556. /* readonly */
  1557. StringHash type;
  1558. /* readonly */
  1559. String typeName;
  1560. uint vertexCount;
  1561. /* readonly */
  1562. int weakRefs;
  1563. };
  1564. class CollisionCircle2D
  1565. {
  1566. // Methods:
  1567. void ApplyAttributes();
  1568. void DrawDebugGeometry(DebugRenderer, bool);
  1569. Variant GetAttribute(const String&) const;
  1570. ValueAnimation GetAttributeAnimation(const String&) const;
  1571. float GetAttributeAnimationSpeed(const String&) const;
  1572. float GetAttributeAnimationTime(const String&) const;
  1573. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1574. Variant GetAttributeDefault(const String&) const;
  1575. bool GetInterceptNetworkUpdate(const String&) const;
  1576. bool Load(File, bool = false);
  1577. bool Load(VectorBuffer&, bool = false);
  1578. bool LoadXML(const XMLElement&, bool = false);
  1579. void MarkNetworkUpdate() const;
  1580. void Remove();
  1581. void RemoveAttributeAnimation(const String&);
  1582. void RemoveInstanceDefault();
  1583. void RemoveObjectAnimation();
  1584. void ResetToDefault();
  1585. bool Save(File) const;
  1586. bool Save(VectorBuffer&) const;
  1587. bool SaveXML(XMLElement&) const;
  1588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1589. void SetAnimationTime(float);
  1590. bool SetAttribute(const String&, const Variant&);
  1591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1592. void SetAttributeAnimationSpeed(const String&, float);
  1593. void SetAttributeAnimationTime(const String&, float);
  1594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1595. void SetCenter(float, float);
  1596. void SetInterceptNetworkUpdate(const String&, bool);
  1597. // Properties:
  1598. bool animationEnabled;
  1599. /* readonly */
  1600. Array<Variant> attributeDefaults;
  1601. /* readonly */
  1602. Array<AttributeInfo> attributeInfos;
  1603. Array<Variant> attributes;
  1604. /* readonly */
  1605. String category;
  1606. int categoryBits;
  1607. Vector2 center;
  1608. float density;
  1609. bool enabled;
  1610. /* readonly */
  1611. bool enabledEffective;
  1612. float friction;
  1613. int groupIndex;
  1614. /* readonly */
  1615. uint id;
  1616. /* readonly */
  1617. float inertia;
  1618. int maskBits;
  1619. /* readonly */
  1620. float mass;
  1621. /* readonly */
  1622. Vector2 massCenter;
  1623. /* readonly */
  1624. Node node;
  1625. /* readonly */
  1626. uint numAttributes;
  1627. ObjectAnimation objectAnimation;
  1628. float radius;
  1629. /* readonly */
  1630. int refs;
  1631. float restitution;
  1632. bool temporary;
  1633. bool trigger;
  1634. /* readonly */
  1635. StringHash type;
  1636. /* readonly */
  1637. String typeName;
  1638. /* readonly */
  1639. int weakRefs;
  1640. };
  1641. class CollisionEdge2D
  1642. {
  1643. // Methods:
  1644. void ApplyAttributes();
  1645. void DrawDebugGeometry(DebugRenderer, bool);
  1646. Variant GetAttribute(const String&) const;
  1647. ValueAnimation GetAttributeAnimation(const String&) const;
  1648. float GetAttributeAnimationSpeed(const String&) const;
  1649. float GetAttributeAnimationTime(const String&) const;
  1650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1651. Variant GetAttributeDefault(const String&) const;
  1652. bool GetInterceptNetworkUpdate(const String&) const;
  1653. bool Load(File, bool = false);
  1654. bool Load(VectorBuffer&, bool = false);
  1655. bool LoadXML(const XMLElement&, bool = false);
  1656. void MarkNetworkUpdate() const;
  1657. void Remove();
  1658. void RemoveAttributeAnimation(const String&);
  1659. void RemoveInstanceDefault();
  1660. void RemoveObjectAnimation();
  1661. void ResetToDefault();
  1662. bool Save(File) const;
  1663. bool Save(VectorBuffer&) const;
  1664. bool SaveXML(XMLElement&) const;
  1665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1666. void SetAnimationTime(float);
  1667. bool SetAttribute(const String&, const Variant&);
  1668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1669. void SetAttributeAnimationSpeed(const String&, float);
  1670. void SetAttributeAnimationTime(const String&, float);
  1671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1672. void SetInterceptNetworkUpdate(const String&, bool);
  1673. void SetVertices(const Vector2&, const Vector2&);
  1674. // Properties:
  1675. bool animationEnabled;
  1676. /* readonly */
  1677. Array<Variant> attributeDefaults;
  1678. /* readonly */
  1679. Array<AttributeInfo> attributeInfos;
  1680. Array<Variant> attributes;
  1681. /* readonly */
  1682. String category;
  1683. int categoryBits;
  1684. float density;
  1685. bool enabled;
  1686. /* readonly */
  1687. bool enabledEffective;
  1688. float friction;
  1689. int groupIndex;
  1690. /* readonly */
  1691. uint id;
  1692. /* readonly */
  1693. float inertia;
  1694. int maskBits;
  1695. /* readonly */
  1696. float mass;
  1697. /* readonly */
  1698. Vector2 massCenter;
  1699. /* readonly */
  1700. Node node;
  1701. /* readonly */
  1702. uint numAttributes;
  1703. ObjectAnimation objectAnimation;
  1704. /* readonly */
  1705. int refs;
  1706. float restitution;
  1707. bool temporary;
  1708. bool trigger;
  1709. /* readonly */
  1710. StringHash type;
  1711. /* readonly */
  1712. String typeName;
  1713. Vector2 vertex1;
  1714. Vector2 vertex2;
  1715. /* readonly */
  1716. int weakRefs;
  1717. };
  1718. class CollisionPolygon2D
  1719. {
  1720. // Methods:
  1721. void ApplyAttributes();
  1722. void DrawDebugGeometry(DebugRenderer, bool);
  1723. Variant GetAttribute(const String&) const;
  1724. ValueAnimation GetAttributeAnimation(const String&) const;
  1725. float GetAttributeAnimationSpeed(const String&) const;
  1726. float GetAttributeAnimationTime(const String&) const;
  1727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1728. Variant GetAttributeDefault(const String&) const;
  1729. bool GetInterceptNetworkUpdate(const String&) const;
  1730. Array<Vector2> GetVertices() const;
  1731. bool Load(File, bool = false);
  1732. bool Load(VectorBuffer&, bool = false);
  1733. bool LoadXML(const XMLElement&, bool = false);
  1734. void MarkNetworkUpdate() const;
  1735. void Remove();
  1736. void RemoveAttributeAnimation(const String&);
  1737. void RemoveInstanceDefault();
  1738. void RemoveObjectAnimation();
  1739. void ResetToDefault();
  1740. bool Save(File) const;
  1741. bool Save(VectorBuffer&) const;
  1742. bool SaveXML(XMLElement&) const;
  1743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1744. void SetAnimationTime(float);
  1745. bool SetAttribute(const String&, const Variant&);
  1746. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1747. void SetAttributeAnimationSpeed(const String&, float);
  1748. void SetAttributeAnimationTime(const String&, float);
  1749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1750. void SetInterceptNetworkUpdate(const String&, bool);
  1751. void SetVertex(uint, const Vector2&);
  1752. void SetVertices(Array<Vector2>);
  1753. const Vector2& GetVertex(uint) const;
  1754. // Properties:
  1755. bool animationEnabled;
  1756. /* readonly */
  1757. Array<Variant> attributeDefaults;
  1758. /* readonly */
  1759. Array<AttributeInfo> attributeInfos;
  1760. Array<Variant> attributes;
  1761. /* readonly */
  1762. String category;
  1763. int categoryBits;
  1764. float density;
  1765. bool enabled;
  1766. /* readonly */
  1767. bool enabledEffective;
  1768. float friction;
  1769. int groupIndex;
  1770. /* readonly */
  1771. uint id;
  1772. /* readonly */
  1773. float inertia;
  1774. int maskBits;
  1775. /* readonly */
  1776. float mass;
  1777. /* readonly */
  1778. Vector2 massCenter;
  1779. /* readonly */
  1780. Node node;
  1781. /* readonly */
  1782. uint numAttributes;
  1783. ObjectAnimation objectAnimation;
  1784. /* readonly */
  1785. int refs;
  1786. float restitution;
  1787. bool temporary;
  1788. bool trigger;
  1789. /* readonly */
  1790. StringHash type;
  1791. /* readonly */
  1792. String typeName;
  1793. uint vertexCount;
  1794. /* readonly */
  1795. int weakRefs;
  1796. };
  1797. class CollisionShape
  1798. {
  1799. // Methods:
  1800. void ApplyAttributes();
  1801. void DrawDebugGeometry(DebugRenderer, bool);
  1802. Variant GetAttribute(const String&) const;
  1803. ValueAnimation GetAttributeAnimation(const String&) const;
  1804. float GetAttributeAnimationSpeed(const String&) const;
  1805. float GetAttributeAnimationTime(const String&) const;
  1806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1807. Variant GetAttributeDefault(const String&) const;
  1808. bool GetInterceptNetworkUpdate(const String&) const;
  1809. bool Load(File, bool = false);
  1810. bool Load(VectorBuffer&, bool = false);
  1811. bool LoadXML(const XMLElement&, bool = false);
  1812. void MarkNetworkUpdate() const;
  1813. void Remove();
  1814. void RemoveAttributeAnimation(const String&);
  1815. void RemoveInstanceDefault();
  1816. void RemoveObjectAnimation();
  1817. void ResetToDefault();
  1818. bool Save(File) const;
  1819. bool Save(VectorBuffer&) const;
  1820. bool SaveXML(XMLElement&) const;
  1821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1822. void SetAnimationTime(float);
  1823. bool SetAttribute(const String&, const Variant&);
  1824. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1825. void SetAttributeAnimationSpeed(const String&, float);
  1826. void SetAttributeAnimationTime(const String&, float);
  1827. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1828. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1829. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1830. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1831. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1832. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1833. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1834. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1835. void SetInterceptNetworkUpdate(const String&, bool);
  1836. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1837. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1838. void SetTerrain(uint = 0);
  1839. void SetTransform(const Vector3&, const Quaternion&);
  1840. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1841. // Properties:
  1842. bool animationEnabled;
  1843. /* readonly */
  1844. Array<Variant> attributeDefaults;
  1845. /* readonly */
  1846. Array<AttributeInfo> attributeInfos;
  1847. Array<Variant> attributes;
  1848. /* readonly */
  1849. String category;
  1850. bool enabled;
  1851. /* readonly */
  1852. bool enabledEffective;
  1853. /* readonly */
  1854. uint id;
  1855. uint lodLevel;
  1856. float margin;
  1857. Model model;
  1858. /* readonly */
  1859. Node node;
  1860. /* readonly */
  1861. uint numAttributes;
  1862. ObjectAnimation objectAnimation;
  1863. Vector3 position;
  1864. /* readonly */
  1865. int refs;
  1866. Quaternion rotation;
  1867. ShapeType shapeType;
  1868. Vector3 size;
  1869. bool temporary;
  1870. /* readonly */
  1871. StringHash type;
  1872. /* readonly */
  1873. String typeName;
  1874. /* readonly */
  1875. int weakRefs;
  1876. /* readonly */
  1877. BoundingBox worldBoundingBox;
  1878. };
  1879. class CollisionShape2D
  1880. {
  1881. // Methods:
  1882. void ApplyAttributes();
  1883. void DrawDebugGeometry(DebugRenderer, bool);
  1884. Variant GetAttribute(const String&) const;
  1885. ValueAnimation GetAttributeAnimation(const String&) const;
  1886. float GetAttributeAnimationSpeed(const String&) const;
  1887. float GetAttributeAnimationTime(const String&) const;
  1888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1889. Variant GetAttributeDefault(const String&) const;
  1890. bool GetInterceptNetworkUpdate(const String&) const;
  1891. bool Load(File, bool = false);
  1892. bool Load(VectorBuffer&, bool = false);
  1893. bool LoadXML(const XMLElement&, bool = false);
  1894. void MarkNetworkUpdate() const;
  1895. void Remove();
  1896. void RemoveAttributeAnimation(const String&);
  1897. void RemoveInstanceDefault();
  1898. void RemoveObjectAnimation();
  1899. void ResetToDefault();
  1900. bool Save(File) const;
  1901. bool Save(VectorBuffer&) const;
  1902. bool SaveXML(XMLElement&) const;
  1903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1904. void SetAnimationTime(float);
  1905. bool SetAttribute(const String&, const Variant&);
  1906. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1907. void SetAttributeAnimationSpeed(const String&, float);
  1908. void SetAttributeAnimationTime(const String&, float);
  1909. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1910. void SetInterceptNetworkUpdate(const String&, bool);
  1911. // Properties:
  1912. bool animationEnabled;
  1913. /* readonly */
  1914. Array<Variant> attributeDefaults;
  1915. /* readonly */
  1916. Array<AttributeInfo> attributeInfos;
  1917. Array<Variant> attributes;
  1918. /* readonly */
  1919. String category;
  1920. int categoryBits;
  1921. float density;
  1922. bool enabled;
  1923. /* readonly */
  1924. bool enabledEffective;
  1925. float friction;
  1926. int groupIndex;
  1927. /* readonly */
  1928. uint id;
  1929. /* readonly */
  1930. float inertia;
  1931. int maskBits;
  1932. /* readonly */
  1933. float mass;
  1934. /* readonly */
  1935. Vector2 massCenter;
  1936. /* readonly */
  1937. Node node;
  1938. /* readonly */
  1939. uint numAttributes;
  1940. ObjectAnimation objectAnimation;
  1941. /* readonly */
  1942. int refs;
  1943. float restitution;
  1944. bool temporary;
  1945. bool trigger;
  1946. /* readonly */
  1947. StringHash type;
  1948. /* readonly */
  1949. String typeName;
  1950. /* readonly */
  1951. int weakRefs;
  1952. };
  1953. class Color
  1954. {
  1955. // Methods:
  1956. Color Abs() const;
  1957. float Average() const;
  1958. float Chroma() const;
  1959. void Clip(bool);
  1960. bool Equals() const;
  1961. void FromHSL(float, float, float, float);
  1962. void FromHSV(float, float, float, float);
  1963. float Hue() const;
  1964. void Invert(bool);
  1965. Color Lerp(const Color&, float) const;
  1966. float Lightness() const;
  1967. float Luma() const;
  1968. float MaxRGB() const;
  1969. float MinRGB() const;
  1970. float Range() const;
  1971. float SaturationHSL() const;
  1972. float SaturationHSV() const;
  1973. float SumRGB() const;
  1974. Vector3 ToHSL() const;
  1975. Vector3 ToHSV() const;
  1976. String ToString() const;
  1977. uint ToUInt() const;
  1978. float Value() const;
  1979. // Properties:
  1980. float a;
  1981. float b;
  1982. /* readonly */
  1983. Array<float> data;
  1984. float g;
  1985. float r;
  1986. /* readonly */
  1987. Vector3 rgb;
  1988. /* readonly */
  1989. Vector4 rgba;
  1990. };
  1991. class ColorFrame
  1992. {
  1993. // Properties:
  1994. Color color;
  1995. float time;
  1996. };
  1997. class Component
  1998. {
  1999. // Methods:
  2000. void ApplyAttributes();
  2001. void DrawDebugGeometry(DebugRenderer, bool);
  2002. Variant GetAttribute(const String&) const;
  2003. ValueAnimation GetAttributeAnimation(const String&) const;
  2004. float GetAttributeAnimationSpeed(const String&) const;
  2005. float GetAttributeAnimationTime(const String&) const;
  2006. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2007. Variant GetAttributeDefault(const String&) const;
  2008. bool GetInterceptNetworkUpdate(const String&) const;
  2009. bool Load(File, bool = false);
  2010. bool Load(VectorBuffer&, bool = false);
  2011. bool LoadXML(const XMLElement&, bool = false);
  2012. void MarkNetworkUpdate() const;
  2013. void Remove();
  2014. void RemoveAttributeAnimation(const String&);
  2015. void RemoveInstanceDefault();
  2016. void RemoveObjectAnimation();
  2017. void ResetToDefault();
  2018. bool Save(File) const;
  2019. bool Save(VectorBuffer&) const;
  2020. bool SaveXML(XMLElement&) const;
  2021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2022. void SetAnimationTime(float);
  2023. bool SetAttribute(const String&, const Variant&);
  2024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2025. void SetAttributeAnimationSpeed(const String&, float);
  2026. void SetAttributeAnimationTime(const String&, float);
  2027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2028. void SetInterceptNetworkUpdate(const String&, bool);
  2029. // Properties:
  2030. bool animationEnabled;
  2031. /* readonly */
  2032. Array<Variant> attributeDefaults;
  2033. /* readonly */
  2034. Array<AttributeInfo> attributeInfos;
  2035. Array<Variant> attributes;
  2036. /* readonly */
  2037. String category;
  2038. bool enabled;
  2039. /* readonly */
  2040. bool enabledEffective;
  2041. /* readonly */
  2042. uint id;
  2043. /* readonly */
  2044. Node node;
  2045. /* readonly */
  2046. uint numAttributes;
  2047. ObjectAnimation objectAnimation;
  2048. /* readonly */
  2049. int refs;
  2050. bool temporary;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. /* readonly */
  2056. int weakRefs;
  2057. };
  2058. class Connection
  2059. {
  2060. // Methods:
  2061. void Disconnect(int = 0);
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2064. void SendPackageToClient(PackageFile);
  2065. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2066. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2067. String ToString() const;
  2068. // Properties:
  2069. /* readonly */
  2070. String address;
  2071. /* readonly */
  2072. float bytesInPerSec;
  2073. /* readonly */
  2074. float bytesOutPerSec;
  2075. /* readonly */
  2076. String category;
  2077. /* readonly */
  2078. bool client;
  2079. /* readonly */
  2080. bool connectPending;
  2081. /* readonly */
  2082. bool connected;
  2083. Controls controls;
  2084. /* readonly */
  2085. String downloadName;
  2086. /* readonly */
  2087. float downloadProgress;
  2088. VariantMap identity;
  2089. /* readonly */
  2090. float lastHeardTime;
  2091. bool logStatistics;
  2092. /* readonly */
  2093. uint numDownloads;
  2094. /* readonly */
  2095. float packetsInPerSec;
  2096. /* readonly */
  2097. float packetsOutPerSec;
  2098. /* readonly */
  2099. uint16 port;
  2100. Vector3 position;
  2101. /* readonly */
  2102. int refs;
  2103. Quaternion rotation;
  2104. /* readonly */
  2105. float roundTripTime;
  2106. Scene scene;
  2107. /* readonly */
  2108. bool sceneLoaded;
  2109. uint8 timeStamp;
  2110. /* readonly */
  2111. StringHash type;
  2112. /* readonly */
  2113. String typeName;
  2114. /* readonly */
  2115. int weakRefs;
  2116. };
  2117. class Console
  2118. {
  2119. // Methods:
  2120. void CopySelectedRows() const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void Toggle();
  2123. void UpdateElements();
  2124. // Properties:
  2125. bool autoVisibleOnError;
  2126. /* readonly */
  2127. BorderImage background;
  2128. /* readonly */
  2129. String category;
  2130. /* readonly */
  2131. Button closeButton;
  2132. String commandInterpreter;
  2133. XMLFile defaultStyle;
  2134. bool focusOnShow;
  2135. /* readonly */
  2136. uint historyPosition;
  2137. /* readonly */
  2138. Array<String> historyRow;
  2139. /* readonly */
  2140. LineEdit lineEdit;
  2141. uint numBufferedRows;
  2142. uint numHistoryRows;
  2143. uint numRows;
  2144. /* readonly */
  2145. int refs;
  2146. /* readonly */
  2147. StringHash type;
  2148. /* readonly */
  2149. String typeName;
  2150. bool visible;
  2151. /* readonly */
  2152. int weakRefs;
  2153. };
  2154. class Constraint
  2155. {
  2156. // Methods:
  2157. void ApplyAttributes();
  2158. void DrawDebugGeometry(DebugRenderer, bool);
  2159. Variant GetAttribute(const String&) const;
  2160. ValueAnimation GetAttributeAnimation(const String&) const;
  2161. float GetAttributeAnimationSpeed(const String&) const;
  2162. float GetAttributeAnimationTime(const String&) const;
  2163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2164. Variant GetAttributeDefault(const String&) const;
  2165. bool GetInterceptNetworkUpdate(const String&) const;
  2166. bool Load(File, bool = false);
  2167. bool Load(VectorBuffer&, bool = false);
  2168. bool LoadXML(const XMLElement&, bool = false);
  2169. void MarkNetworkUpdate() const;
  2170. void Remove();
  2171. void RemoveAttributeAnimation(const String&);
  2172. void RemoveInstanceDefault();
  2173. void RemoveObjectAnimation();
  2174. void ResetToDefault();
  2175. bool Save(File) const;
  2176. bool Save(VectorBuffer&) const;
  2177. bool SaveXML(XMLElement&) const;
  2178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2179. void SetAnimationTime(float);
  2180. bool SetAttribute(const String&, const Variant&);
  2181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2182. void SetAttributeAnimationSpeed(const String&, float);
  2183. void SetAttributeAnimationTime(const String&, float);
  2184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2185. void SetInterceptNetworkUpdate(const String&, bool);
  2186. // Properties:
  2187. bool animationEnabled;
  2188. /* readonly */
  2189. Array<Variant> attributeDefaults;
  2190. /* readonly */
  2191. Array<AttributeInfo> attributeInfos;
  2192. Array<Variant> attributes;
  2193. /* writeonly */
  2194. Vector3 axis;
  2195. /* readonly */
  2196. String category;
  2197. float cfm;
  2198. ConstraintType constraintType;
  2199. bool disableCollision;
  2200. bool enabled;
  2201. /* readonly */
  2202. bool enabledEffective;
  2203. float erp;
  2204. Vector2 highLimit;
  2205. /* readonly */
  2206. uint id;
  2207. Vector2 lowLimit;
  2208. /* readonly */
  2209. Node node;
  2210. /* readonly */
  2211. uint numAttributes;
  2212. ObjectAnimation objectAnimation;
  2213. /* writeonly */
  2214. Vector3 otherAxis;
  2215. RigidBody otherBody;
  2216. Vector3 otherPosition;
  2217. Quaternion otherRotation;
  2218. /* readonly */
  2219. RigidBody ownBody;
  2220. Vector3 position;
  2221. /* readonly */
  2222. int refs;
  2223. Quaternion rotation;
  2224. bool temporary;
  2225. /* readonly */
  2226. StringHash type;
  2227. /* readonly */
  2228. String typeName;
  2229. /* readonly */
  2230. int weakRefs;
  2231. Vector3 worldPosition;
  2232. };
  2233. class Constraint2D
  2234. {
  2235. // Methods:
  2236. void ApplyAttributes();
  2237. void DrawDebugGeometry(DebugRenderer, bool);
  2238. Variant GetAttribute(const String&) const;
  2239. ValueAnimation GetAttributeAnimation(const String&) const;
  2240. float GetAttributeAnimationSpeed(const String&) const;
  2241. float GetAttributeAnimationTime(const String&) const;
  2242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2243. Variant GetAttributeDefault(const String&) const;
  2244. bool GetInterceptNetworkUpdate(const String&) const;
  2245. bool Load(File, bool = false);
  2246. bool Load(VectorBuffer&, bool = false);
  2247. bool LoadXML(const XMLElement&, bool = false);
  2248. void MarkNetworkUpdate() const;
  2249. void Remove();
  2250. void RemoveAttributeAnimation(const String&);
  2251. void RemoveInstanceDefault();
  2252. void RemoveObjectAnimation();
  2253. void ResetToDefault();
  2254. bool Save(File) const;
  2255. bool Save(VectorBuffer&) const;
  2256. bool SaveXML(XMLElement&) const;
  2257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2258. void SetAnimationTime(float);
  2259. bool SetAttribute(const String&, const Variant&);
  2260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2261. void SetAttributeAnimationSpeed(const String&, float);
  2262. void SetAttributeAnimationTime(const String&, float);
  2263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2264. void SetInterceptNetworkUpdate(const String&, bool);
  2265. // Properties:
  2266. bool animationEnabled;
  2267. /* readonly */
  2268. Array<Variant> attributeDefaults;
  2269. /* readonly */
  2270. Array<AttributeInfo> attributeInfos;
  2271. Array<Variant> attributes;
  2272. /* readonly */
  2273. String category;
  2274. bool collideConnected;
  2275. bool enabled;
  2276. /* readonly */
  2277. bool enabledEffective;
  2278. /* readonly */
  2279. uint id;
  2280. /* readonly */
  2281. Node node;
  2282. /* readonly */
  2283. uint numAttributes;
  2284. ObjectAnimation objectAnimation;
  2285. RigidBody2D otherBody;
  2286. /* readonly */
  2287. RigidBody2D ownerBody;
  2288. /* readonly */
  2289. int refs;
  2290. bool temporary;
  2291. /* readonly */
  2292. StringHash type;
  2293. /* readonly */
  2294. String typeName;
  2295. /* readonly */
  2296. int weakRefs;
  2297. };
  2298. class ConstraintDistance2D
  2299. {
  2300. // Methods:
  2301. void ApplyAttributes();
  2302. void DrawDebugGeometry(DebugRenderer, bool);
  2303. Variant GetAttribute(const String&) const;
  2304. ValueAnimation GetAttributeAnimation(const String&) const;
  2305. float GetAttributeAnimationSpeed(const String&) const;
  2306. float GetAttributeAnimationTime(const String&) const;
  2307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2308. Variant GetAttributeDefault(const String&) const;
  2309. bool GetInterceptNetworkUpdate(const String&) const;
  2310. bool Load(File, bool = false);
  2311. bool Load(VectorBuffer&, bool = false);
  2312. bool LoadXML(const XMLElement&, bool = false);
  2313. void MarkNetworkUpdate() const;
  2314. void Remove();
  2315. void RemoveAttributeAnimation(const String&);
  2316. void RemoveInstanceDefault();
  2317. void RemoveObjectAnimation();
  2318. void ResetToDefault();
  2319. bool Save(File) const;
  2320. bool Save(VectorBuffer&) const;
  2321. bool SaveXML(XMLElement&) const;
  2322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2323. void SetAnimationTime(float);
  2324. bool SetAttribute(const String&, const Variant&);
  2325. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2326. void SetAttributeAnimationSpeed(const String&, float);
  2327. void SetAttributeAnimationTime(const String&, float);
  2328. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2329. void SetInterceptNetworkUpdate(const String&, bool);
  2330. // Properties:
  2331. bool animationEnabled;
  2332. /* readonly */
  2333. Array<Variant> attributeDefaults;
  2334. /* readonly */
  2335. Array<AttributeInfo> attributeInfos;
  2336. Array<Variant> attributes;
  2337. /* readonly */
  2338. String category;
  2339. bool collideConnected;
  2340. float dampingRatio;
  2341. bool enabled;
  2342. /* readonly */
  2343. bool enabledEffective;
  2344. float frequencyHz;
  2345. /* readonly */
  2346. uint id;
  2347. /* readonly */
  2348. Node node;
  2349. /* readonly */
  2350. uint numAttributes;
  2351. ObjectAnimation objectAnimation;
  2352. RigidBody2D otherBody;
  2353. Vector2 otherBodyAnchor;
  2354. /* readonly */
  2355. RigidBody2D ownerBody;
  2356. Vector2 ownerBodyAnchor;
  2357. /* readonly */
  2358. int refs;
  2359. bool temporary;
  2360. /* readonly */
  2361. StringHash type;
  2362. /* readonly */
  2363. String typeName;
  2364. /* readonly */
  2365. int weakRefs;
  2366. };
  2367. class ConstraintFriction2D
  2368. {
  2369. // Methods:
  2370. void ApplyAttributes();
  2371. void DrawDebugGeometry(DebugRenderer, bool);
  2372. Variant GetAttribute(const String&) const;
  2373. ValueAnimation GetAttributeAnimation(const String&) const;
  2374. float GetAttributeAnimationSpeed(const String&) const;
  2375. float GetAttributeAnimationTime(const String&) const;
  2376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2377. Variant GetAttributeDefault(const String&) const;
  2378. bool GetInterceptNetworkUpdate(const String&) const;
  2379. bool Load(File, bool = false);
  2380. bool Load(VectorBuffer&, bool = false);
  2381. bool LoadXML(const XMLElement&, bool = false);
  2382. void MarkNetworkUpdate() const;
  2383. void Remove();
  2384. void RemoveAttributeAnimation(const String&);
  2385. void RemoveInstanceDefault();
  2386. void RemoveObjectAnimation();
  2387. void ResetToDefault();
  2388. bool Save(File) const;
  2389. bool Save(VectorBuffer&) const;
  2390. bool SaveXML(XMLElement&) const;
  2391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2392. void SetAnimationTime(float);
  2393. bool SetAttribute(const String&, const Variant&);
  2394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2395. void SetAttributeAnimationSpeed(const String&, float);
  2396. void SetAttributeAnimationTime(const String&, float);
  2397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2398. void SetInterceptNetworkUpdate(const String&, bool);
  2399. // Properties:
  2400. Vector2 anchor;
  2401. bool animationEnabled;
  2402. /* readonly */
  2403. Array<Variant> attributeDefaults;
  2404. /* readonly */
  2405. Array<AttributeInfo> attributeInfos;
  2406. Array<Variant> attributes;
  2407. /* readonly */
  2408. String category;
  2409. bool collideConnected;
  2410. bool enabled;
  2411. /* readonly */
  2412. bool enabledEffective;
  2413. /* readonly */
  2414. uint id;
  2415. float maxForce;
  2416. float maxTorque;
  2417. /* readonly */
  2418. Node node;
  2419. /* readonly */
  2420. uint numAttributes;
  2421. ObjectAnimation objectAnimation;
  2422. RigidBody2D otherBody;
  2423. /* readonly */
  2424. RigidBody2D ownerBody;
  2425. /* readonly */
  2426. int refs;
  2427. bool temporary;
  2428. /* readonly */
  2429. StringHash type;
  2430. /* readonly */
  2431. String typeName;
  2432. /* readonly */
  2433. int weakRefs;
  2434. };
  2435. class ConstraintGear2D
  2436. {
  2437. // Methods:
  2438. void ApplyAttributes();
  2439. void DrawDebugGeometry(DebugRenderer, bool);
  2440. Variant GetAttribute(const String&) const;
  2441. ValueAnimation GetAttributeAnimation(const String&) const;
  2442. float GetAttributeAnimationSpeed(const String&) const;
  2443. float GetAttributeAnimationTime(const String&) const;
  2444. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2445. Variant GetAttributeDefault(const String&) const;
  2446. bool GetInterceptNetworkUpdate(const String&) const;
  2447. bool Load(File, bool = false);
  2448. bool Load(VectorBuffer&, bool = false);
  2449. bool LoadXML(const XMLElement&, bool = false);
  2450. void MarkNetworkUpdate() const;
  2451. void Remove();
  2452. void RemoveAttributeAnimation(const String&);
  2453. void RemoveInstanceDefault();
  2454. void RemoveObjectAnimation();
  2455. void ResetToDefault();
  2456. bool Save(File) const;
  2457. bool Save(VectorBuffer&) const;
  2458. bool SaveXML(XMLElement&) const;
  2459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2460. void SetAnimationTime(float);
  2461. bool SetAttribute(const String&, const Variant&);
  2462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2463. void SetAttributeAnimationSpeed(const String&, float);
  2464. void SetAttributeAnimationTime(const String&, float);
  2465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2466. void SetInterceptNetworkUpdate(const String&, bool);
  2467. // Properties:
  2468. bool animationEnabled;
  2469. /* readonly */
  2470. Array<Variant> attributeDefaults;
  2471. /* readonly */
  2472. Array<AttributeInfo> attributeInfos;
  2473. Array<Variant> attributes;
  2474. /* readonly */
  2475. String category;
  2476. bool collideConnected;
  2477. bool enabled;
  2478. /* readonly */
  2479. bool enabledEffective;
  2480. /* readonly */
  2481. uint id;
  2482. /* readonly */
  2483. Node node;
  2484. /* readonly */
  2485. uint numAttributes;
  2486. ObjectAnimation objectAnimation;
  2487. RigidBody2D otherBody;
  2488. Constraint2D otherConstraint;
  2489. /* readonly */
  2490. RigidBody2D ownerBody;
  2491. Constraint2D ownerConstraint;
  2492. float ratio;
  2493. /* readonly */
  2494. int refs;
  2495. bool temporary;
  2496. /* readonly */
  2497. StringHash type;
  2498. /* readonly */
  2499. String typeName;
  2500. /* readonly */
  2501. int weakRefs;
  2502. };
  2503. class ConstraintMotor2D
  2504. {
  2505. // Methods:
  2506. void ApplyAttributes();
  2507. void DrawDebugGeometry(DebugRenderer, bool);
  2508. Variant GetAttribute(const String&) const;
  2509. ValueAnimation GetAttributeAnimation(const String&) const;
  2510. float GetAttributeAnimationSpeed(const String&) const;
  2511. float GetAttributeAnimationTime(const String&) const;
  2512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2513. Variant GetAttributeDefault(const String&) const;
  2514. bool GetInterceptNetworkUpdate(const String&) const;
  2515. bool Load(File, bool = false);
  2516. bool Load(VectorBuffer&, bool = false);
  2517. bool LoadXML(const XMLElement&, bool = false);
  2518. void MarkNetworkUpdate() const;
  2519. void Remove();
  2520. void RemoveAttributeAnimation(const String&);
  2521. void RemoveInstanceDefault();
  2522. void RemoveObjectAnimation();
  2523. void ResetToDefault();
  2524. bool Save(File) const;
  2525. bool Save(VectorBuffer&) const;
  2526. bool SaveXML(XMLElement&) const;
  2527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2528. void SetAnimationTime(float);
  2529. bool SetAttribute(const String&, const Variant&);
  2530. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2531. void SetAttributeAnimationSpeed(const String&, float);
  2532. void SetAttributeAnimationTime(const String&, float);
  2533. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2534. void SetInterceptNetworkUpdate(const String&, bool);
  2535. // Properties:
  2536. float angularOffset;
  2537. bool animationEnabled;
  2538. /* readonly */
  2539. Array<Variant> attributeDefaults;
  2540. /* readonly */
  2541. Array<AttributeInfo> attributeInfos;
  2542. Array<Variant> attributes;
  2543. /* readonly */
  2544. String category;
  2545. bool collideConnected;
  2546. float correctionFactor;
  2547. bool enabled;
  2548. /* readonly */
  2549. bool enabledEffective;
  2550. /* readonly */
  2551. uint id;
  2552. Vector2 linearOffset;
  2553. float maxForce;
  2554. float maxTorque;
  2555. /* readonly */
  2556. Node node;
  2557. /* readonly */
  2558. uint numAttributes;
  2559. ObjectAnimation objectAnimation;
  2560. RigidBody2D otherBody;
  2561. /* readonly */
  2562. RigidBody2D ownerBody;
  2563. /* readonly */
  2564. int refs;
  2565. bool temporary;
  2566. /* readonly */
  2567. StringHash type;
  2568. /* readonly */
  2569. String typeName;
  2570. /* readonly */
  2571. int weakRefs;
  2572. };
  2573. class ConstraintMouse2D
  2574. {
  2575. // Methods:
  2576. void ApplyAttributes();
  2577. void DrawDebugGeometry(DebugRenderer, bool);
  2578. Variant GetAttribute(const String&) const;
  2579. ValueAnimation GetAttributeAnimation(const String&) const;
  2580. float GetAttributeAnimationSpeed(const String&) const;
  2581. float GetAttributeAnimationTime(const String&) const;
  2582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2583. Variant GetAttributeDefault(const String&) const;
  2584. bool GetInterceptNetworkUpdate(const String&) const;
  2585. bool Load(File, bool = false);
  2586. bool Load(VectorBuffer&, bool = false);
  2587. bool LoadXML(const XMLElement&, bool = false);
  2588. void MarkNetworkUpdate() const;
  2589. void Remove();
  2590. void RemoveAttributeAnimation(const String&);
  2591. void RemoveInstanceDefault();
  2592. void RemoveObjectAnimation();
  2593. void ResetToDefault();
  2594. bool Save(File) const;
  2595. bool Save(VectorBuffer&) const;
  2596. bool SaveXML(XMLElement&) const;
  2597. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2598. void SetAnimationTime(float);
  2599. bool SetAttribute(const String&, const Variant&);
  2600. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2601. void SetAttributeAnimationSpeed(const String&, float);
  2602. void SetAttributeAnimationTime(const String&, float);
  2603. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2604. void SetInterceptNetworkUpdate(const String&, bool);
  2605. // Properties:
  2606. bool animationEnabled;
  2607. /* readonly */
  2608. Array<Variant> attributeDefaults;
  2609. /* readonly */
  2610. Array<AttributeInfo> attributeInfos;
  2611. Array<Variant> attributes;
  2612. /* readonly */
  2613. String category;
  2614. bool collideConnected;
  2615. float dampingRatio;
  2616. bool enabled;
  2617. /* readonly */
  2618. bool enabledEffective;
  2619. float frequencyHz;
  2620. /* readonly */
  2621. uint id;
  2622. float maxForce;
  2623. /* readonly */
  2624. Node node;
  2625. /* readonly */
  2626. uint numAttributes;
  2627. ObjectAnimation objectAnimation;
  2628. RigidBody2D otherBody;
  2629. /* readonly */
  2630. RigidBody2D ownerBody;
  2631. /* readonly */
  2632. int refs;
  2633. Vector2 target;
  2634. bool temporary;
  2635. /* readonly */
  2636. StringHash type;
  2637. /* readonly */
  2638. String typeName;
  2639. /* readonly */
  2640. int weakRefs;
  2641. };
  2642. class ConstraintPrismatic2D
  2643. {
  2644. // Methods:
  2645. void ApplyAttributes();
  2646. void DrawDebugGeometry(DebugRenderer, bool);
  2647. Variant GetAttribute(const String&) const;
  2648. ValueAnimation GetAttributeAnimation(const String&) const;
  2649. float GetAttributeAnimationSpeed(const String&) const;
  2650. float GetAttributeAnimationTime(const String&) const;
  2651. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2652. Variant GetAttributeDefault(const String&) const;
  2653. bool GetInterceptNetworkUpdate(const String&) const;
  2654. bool Load(File, bool = false);
  2655. bool Load(VectorBuffer&, bool = false);
  2656. bool LoadXML(const XMLElement&, bool = false);
  2657. void MarkNetworkUpdate() const;
  2658. void Remove();
  2659. void RemoveAttributeAnimation(const String&);
  2660. void RemoveInstanceDefault();
  2661. void RemoveObjectAnimation();
  2662. void ResetToDefault();
  2663. bool Save(File) const;
  2664. bool Save(VectorBuffer&) const;
  2665. bool SaveXML(XMLElement&) const;
  2666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2667. void SetAnimationTime(float);
  2668. bool SetAttribute(const String&, const Variant&);
  2669. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2670. void SetAttributeAnimationSpeed(const String&, float);
  2671. void SetAttributeAnimationTime(const String&, float);
  2672. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2673. void SetInterceptNetworkUpdate(const String&, bool);
  2674. // Properties:
  2675. Vector2 anchor;
  2676. bool animationEnabled;
  2677. /* readonly */
  2678. Array<Variant> attributeDefaults;
  2679. /* readonly */
  2680. Array<AttributeInfo> attributeInfos;
  2681. Array<Variant> attributes;
  2682. Vector2 axis;
  2683. /* readonly */
  2684. String category;
  2685. bool collideConnected;
  2686. bool enableLimit;
  2687. bool enableMotor;
  2688. bool enabled;
  2689. /* readonly */
  2690. bool enabledEffective;
  2691. /* readonly */
  2692. uint id;
  2693. float lowerTranslation;
  2694. float maxMotorForce;
  2695. float motorSpeed;
  2696. /* readonly */
  2697. Node node;
  2698. /* readonly */
  2699. uint numAttributes;
  2700. ObjectAnimation objectAnimation;
  2701. RigidBody2D otherBody;
  2702. /* readonly */
  2703. RigidBody2D ownerBody;
  2704. /* readonly */
  2705. int refs;
  2706. bool temporary;
  2707. /* readonly */
  2708. StringHash type;
  2709. /* readonly */
  2710. String typeName;
  2711. float upperTranslation;
  2712. /* readonly */
  2713. int weakRefs;
  2714. };
  2715. class ConstraintPulley2D
  2716. {
  2717. // Methods:
  2718. void ApplyAttributes();
  2719. void DrawDebugGeometry(DebugRenderer, bool);
  2720. Variant GetAttribute(const String&) const;
  2721. ValueAnimation GetAttributeAnimation(const String&) const;
  2722. float GetAttributeAnimationSpeed(const String&) const;
  2723. float GetAttributeAnimationTime(const String&) const;
  2724. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2725. Variant GetAttributeDefault(const String&) const;
  2726. bool GetInterceptNetworkUpdate(const String&) const;
  2727. bool Load(File, bool = false);
  2728. bool Load(VectorBuffer&, bool = false);
  2729. bool LoadXML(const XMLElement&, bool = false);
  2730. void MarkNetworkUpdate() const;
  2731. void Remove();
  2732. void RemoveAttributeAnimation(const String&);
  2733. void RemoveInstanceDefault();
  2734. void RemoveObjectAnimation();
  2735. void ResetToDefault();
  2736. bool Save(File) const;
  2737. bool Save(VectorBuffer&) const;
  2738. bool SaveXML(XMLElement&) const;
  2739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2740. void SetAnimationTime(float);
  2741. bool SetAttribute(const String&, const Variant&);
  2742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2743. void SetAttributeAnimationSpeed(const String&, float);
  2744. void SetAttributeAnimationTime(const String&, float);
  2745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2746. void SetInterceptNetworkUpdate(const String&, bool);
  2747. // Properties:
  2748. bool animationEnabled;
  2749. /* readonly */
  2750. Array<Variant> attributeDefaults;
  2751. /* readonly */
  2752. Array<AttributeInfo> attributeInfos;
  2753. Array<Variant> attributes;
  2754. /* readonly */
  2755. String category;
  2756. bool collideConnected;
  2757. bool enabled;
  2758. /* readonly */
  2759. bool enabledEffective;
  2760. /* readonly */
  2761. uint id;
  2762. /* readonly */
  2763. Node node;
  2764. /* readonly */
  2765. uint numAttributes;
  2766. ObjectAnimation objectAnimation;
  2767. RigidBody2D otherBody;
  2768. Vector2 otherBodyAnchor;
  2769. Vector2 otherBodyGroundAnchor;
  2770. /* readonly */
  2771. RigidBody2D ownerBody;
  2772. Vector2 ownerBodyAnchor;
  2773. Vector2 ownerBodyGroundAnchor;
  2774. float ratio;
  2775. /* readonly */
  2776. int refs;
  2777. bool temporary;
  2778. /* readonly */
  2779. StringHash type;
  2780. /* readonly */
  2781. String typeName;
  2782. /* readonly */
  2783. int weakRefs;
  2784. };
  2785. class ConstraintRevolute2D
  2786. {
  2787. // Methods:
  2788. void ApplyAttributes();
  2789. void DrawDebugGeometry(DebugRenderer, bool);
  2790. Variant GetAttribute(const String&) const;
  2791. ValueAnimation GetAttributeAnimation(const String&) const;
  2792. float GetAttributeAnimationSpeed(const String&) const;
  2793. float GetAttributeAnimationTime(const String&) const;
  2794. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2795. Variant GetAttributeDefault(const String&) const;
  2796. bool GetInterceptNetworkUpdate(const String&) const;
  2797. bool Load(File, bool = false);
  2798. bool Load(VectorBuffer&, bool = false);
  2799. bool LoadXML(const XMLElement&, bool = false);
  2800. void MarkNetworkUpdate() const;
  2801. void Remove();
  2802. void RemoveAttributeAnimation(const String&);
  2803. void RemoveInstanceDefault();
  2804. void RemoveObjectAnimation();
  2805. void ResetToDefault();
  2806. bool Save(File) const;
  2807. bool Save(VectorBuffer&) const;
  2808. bool SaveXML(XMLElement&) const;
  2809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2810. void SetAnimationTime(float);
  2811. bool SetAttribute(const String&, const Variant&);
  2812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2813. void SetAttributeAnimationSpeed(const String&, float);
  2814. void SetAttributeAnimationTime(const String&, float);
  2815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2816. void SetInterceptNetworkUpdate(const String&, bool);
  2817. // Properties:
  2818. Vector2 anchor;
  2819. bool animationEnabled;
  2820. /* readonly */
  2821. Array<Variant> attributeDefaults;
  2822. /* readonly */
  2823. Array<AttributeInfo> attributeInfos;
  2824. Array<Variant> attributes;
  2825. /* readonly */
  2826. String category;
  2827. bool collideConnected;
  2828. bool enableLimit;
  2829. bool enableMotor;
  2830. bool enabled;
  2831. /* readonly */
  2832. bool enabledEffective;
  2833. /* readonly */
  2834. uint id;
  2835. float lowerAngle;
  2836. float maxMotorTorque;
  2837. float motorSpeed;
  2838. /* readonly */
  2839. Node node;
  2840. /* readonly */
  2841. uint numAttributes;
  2842. ObjectAnimation objectAnimation;
  2843. RigidBody2D otherBody;
  2844. /* readonly */
  2845. RigidBody2D ownerBody;
  2846. /* readonly */
  2847. int refs;
  2848. bool temporary;
  2849. /* readonly */
  2850. StringHash type;
  2851. /* readonly */
  2852. String typeName;
  2853. float upperAngle;
  2854. /* readonly */
  2855. int weakRefs;
  2856. };
  2857. class ConstraintRope2D
  2858. {
  2859. // Methods:
  2860. void ApplyAttributes();
  2861. void DrawDebugGeometry(DebugRenderer, bool);
  2862. Variant GetAttribute(const String&) const;
  2863. ValueAnimation GetAttributeAnimation(const String&) const;
  2864. float GetAttributeAnimationSpeed(const String&) const;
  2865. float GetAttributeAnimationTime(const String&) const;
  2866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2867. Variant GetAttributeDefault(const String&) const;
  2868. bool GetInterceptNetworkUpdate(const String&) const;
  2869. bool Load(File, bool = false);
  2870. bool Load(VectorBuffer&, bool = false);
  2871. bool LoadXML(const XMLElement&, bool = false);
  2872. void MarkNetworkUpdate() const;
  2873. void Remove();
  2874. void RemoveAttributeAnimation(const String&);
  2875. void RemoveInstanceDefault();
  2876. void RemoveObjectAnimation();
  2877. void ResetToDefault();
  2878. bool Save(File) const;
  2879. bool Save(VectorBuffer&) const;
  2880. bool SaveXML(XMLElement&) const;
  2881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2882. void SetAnimationTime(float);
  2883. bool SetAttribute(const String&, const Variant&);
  2884. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2885. void SetAttributeAnimationSpeed(const String&, float);
  2886. void SetAttributeAnimationTime(const String&, float);
  2887. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2888. void SetInterceptNetworkUpdate(const String&, bool);
  2889. // Properties:
  2890. bool animationEnabled;
  2891. /* readonly */
  2892. Array<Variant> attributeDefaults;
  2893. /* readonly */
  2894. Array<AttributeInfo> attributeInfos;
  2895. Array<Variant> attributes;
  2896. /* readonly */
  2897. String category;
  2898. bool collideConnected;
  2899. bool enabled;
  2900. /* readonly */
  2901. bool enabledEffective;
  2902. /* readonly */
  2903. uint id;
  2904. float maxLength;
  2905. /* readonly */
  2906. Node node;
  2907. /* readonly */
  2908. uint numAttributes;
  2909. ObjectAnimation objectAnimation;
  2910. RigidBody2D otherBody;
  2911. Vector2 otherBodyAnchor;
  2912. /* readonly */
  2913. RigidBody2D ownerBody;
  2914. Vector2 ownerBodyAnchor;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintWeld2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool Load(File, bool = false);
  2938. bool Load(VectorBuffer&, bool = false);
  2939. bool LoadXML(const XMLElement&, bool = false);
  2940. void MarkNetworkUpdate() const;
  2941. void Remove();
  2942. void RemoveAttributeAnimation(const String&);
  2943. void RemoveInstanceDefault();
  2944. void RemoveObjectAnimation();
  2945. void ResetToDefault();
  2946. bool Save(File) const;
  2947. bool Save(VectorBuffer&) const;
  2948. bool SaveXML(XMLElement&) const;
  2949. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2950. void SetAnimationTime(float);
  2951. bool SetAttribute(const String&, const Variant&);
  2952. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2953. void SetAttributeAnimationSpeed(const String&, float);
  2954. void SetAttributeAnimationTime(const String&, float);
  2955. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2956. void SetInterceptNetworkUpdate(const String&, bool);
  2957. // Properties:
  2958. Vector2 anchor;
  2959. bool animationEnabled;
  2960. /* readonly */
  2961. Array<Variant> attributeDefaults;
  2962. /* readonly */
  2963. Array<AttributeInfo> attributeInfos;
  2964. Array<Variant> attributes;
  2965. /* readonly */
  2966. String category;
  2967. bool collideConnected;
  2968. float dampingRatio;
  2969. bool enabled;
  2970. /* readonly */
  2971. bool enabledEffective;
  2972. float frequencyHz;
  2973. /* readonly */
  2974. uint id;
  2975. /* readonly */
  2976. Node node;
  2977. /* readonly */
  2978. uint numAttributes;
  2979. ObjectAnimation objectAnimation;
  2980. RigidBody2D otherBody;
  2981. /* readonly */
  2982. RigidBody2D ownerBody;
  2983. /* readonly */
  2984. int refs;
  2985. bool temporary;
  2986. /* readonly */
  2987. StringHash type;
  2988. /* readonly */
  2989. String typeName;
  2990. /* readonly */
  2991. int weakRefs;
  2992. };
  2993. class ConstraintWheel2D
  2994. {
  2995. // Methods:
  2996. void ApplyAttributes();
  2997. void DrawDebugGeometry(DebugRenderer, bool);
  2998. Variant GetAttribute(const String&) const;
  2999. ValueAnimation GetAttributeAnimation(const String&) const;
  3000. float GetAttributeAnimationSpeed(const String&) const;
  3001. float GetAttributeAnimationTime(const String&) const;
  3002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3003. Variant GetAttributeDefault(const String&) const;
  3004. bool GetInterceptNetworkUpdate(const String&) const;
  3005. bool Load(File, bool = false);
  3006. bool Load(VectorBuffer&, bool = false);
  3007. bool LoadXML(const XMLElement&, bool = false);
  3008. void MarkNetworkUpdate() const;
  3009. void Remove();
  3010. void RemoveAttributeAnimation(const String&);
  3011. void RemoveInstanceDefault();
  3012. void RemoveObjectAnimation();
  3013. void ResetToDefault();
  3014. bool Save(File) const;
  3015. bool Save(VectorBuffer&) const;
  3016. bool SaveXML(XMLElement&) const;
  3017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3018. void SetAnimationTime(float);
  3019. bool SetAttribute(const String&, const Variant&);
  3020. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3021. void SetAttributeAnimationSpeed(const String&, float);
  3022. void SetAttributeAnimationTime(const String&, float);
  3023. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3024. void SetInterceptNetworkUpdate(const String&, bool);
  3025. // Properties:
  3026. Vector2 anchor;
  3027. bool animationEnabled;
  3028. /* readonly */
  3029. Array<Variant> attributeDefaults;
  3030. /* readonly */
  3031. Array<AttributeInfo> attributeInfos;
  3032. Array<Variant> attributes;
  3033. Vector2 axis;
  3034. /* readonly */
  3035. String category;
  3036. bool collideConnected;
  3037. float dampingRatio;
  3038. bool enableMotor;
  3039. bool enabled;
  3040. /* readonly */
  3041. bool enabledEffective;
  3042. float frequencyHz;
  3043. /* readonly */
  3044. uint id;
  3045. float maxMotorTorque;
  3046. float motorSpeed;
  3047. /* readonly */
  3048. Node node;
  3049. /* readonly */
  3050. uint numAttributes;
  3051. ObjectAnimation objectAnimation;
  3052. RigidBody2D otherBody;
  3053. /* readonly */
  3054. RigidBody2D ownerBody;
  3055. /* readonly */
  3056. int refs;
  3057. bool temporary;
  3058. /* readonly */
  3059. StringHash type;
  3060. /* readonly */
  3061. String typeName;
  3062. /* readonly */
  3063. int weakRefs;
  3064. };
  3065. class Controls
  3066. {
  3067. // Methods:
  3068. bool IsDown(uint) const;
  3069. bool IsPressed(uint, const Controls&) const;
  3070. void Reset();
  3071. void Set(uint, bool);
  3072. // Properties:
  3073. uint buttons;
  3074. VariantMap extraData;
  3075. float pitch;
  3076. float yaw;
  3077. };
  3078. class CrowdAgent
  3079. {
  3080. // Methods:
  3081. void ApplyAttributes();
  3082. void DrawDebugGeometry(DebugRenderer, bool);
  3083. void DrawDebugGeometry(bool);
  3084. Variant GetAttribute(const String&) const;
  3085. ValueAnimation GetAttributeAnimation(const String&) const;
  3086. float GetAttributeAnimationSpeed(const String&) const;
  3087. float GetAttributeAnimationTime(const String&) const;
  3088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3089. Variant GetAttributeDefault(const String&) const;
  3090. bool GetInterceptNetworkUpdate(const String&) const;
  3091. bool Load(File, bool = false);
  3092. bool Load(VectorBuffer&, bool = false);
  3093. bool LoadXML(const XMLElement&, bool = false);
  3094. void MarkNetworkUpdate() const;
  3095. void Remove();
  3096. void RemoveAttributeAnimation(const String&);
  3097. void RemoveInstanceDefault();
  3098. void RemoveObjectAnimation();
  3099. void ResetTarget();
  3100. void ResetToDefault();
  3101. bool Save(File) const;
  3102. bool Save(VectorBuffer&) const;
  3103. bool SaveXML(XMLElement&) const;
  3104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3105. void SetAnimationTime(float);
  3106. bool SetAttribute(const String&, const Variant&);
  3107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3108. void SetAttributeAnimationSpeed(const String&, float);
  3109. void SetAttributeAnimationTime(const String&, float);
  3110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3111. void SetInterceptNetworkUpdate(const String&, bool);
  3112. // Properties:
  3113. /* readonly */
  3114. Vector3 actualVelocity;
  3115. /* readonly */
  3116. CrowdAgentState agentState;
  3117. bool animationEnabled;
  3118. /* readonly */
  3119. bool arrived;
  3120. /* readonly */
  3121. Array<Variant> attributeDefaults;
  3122. /* readonly */
  3123. Array<AttributeInfo> attributeInfos;
  3124. Array<Variant> attributes;
  3125. /* readonly */
  3126. String category;
  3127. /* readonly */
  3128. Vector3 desiredVelocity;
  3129. bool enabled;
  3130. /* readonly */
  3131. bool enabledEffective;
  3132. float height;
  3133. /* readonly */
  3134. uint id;
  3135. /* readonly */
  3136. bool inCrowd;
  3137. float maxAccel;
  3138. float maxSpeed;
  3139. NavigationPushiness navigationPushiness;
  3140. NavigationQuality navigationQuality;
  3141. /* readonly */
  3142. Node node;
  3143. /* readonly */
  3144. uint numAttributes;
  3145. ObjectAnimation objectAnimation;
  3146. uint obstacleAvoidanceType;
  3147. /* readonly */
  3148. Vector3 position;
  3149. uint queryFilterType;
  3150. float radius;
  3151. /* readonly */
  3152. int refs;
  3153. /* readonly */
  3154. bool requestedTarget;
  3155. /* readonly */
  3156. CrowdAgentRequestedTarget requestedTargetType;
  3157. Vector3 targetPosition;
  3158. /* readonly */
  3159. CrowdAgentTargetState targetState;
  3160. Vector3 targetVelocity;
  3161. bool temporary;
  3162. /* readonly */
  3163. StringHash type;
  3164. /* readonly */
  3165. String typeName;
  3166. bool updateNodePosition;
  3167. /* readonly */
  3168. int weakRefs;
  3169. };
  3170. class CrowdManager
  3171. {
  3172. // Methods:
  3173. void ApplyAttributes();
  3174. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3175. void DrawDebugGeometry(DebugRenderer, bool);
  3176. void DrawDebugGeometry(bool);
  3177. Vector3 FindNearestPoint(const Vector3&, int);
  3178. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3179. float GetAreaCost(uint, uint);
  3180. Variant GetAttribute(const String&) const;
  3181. ValueAnimation GetAttributeAnimation(const String&) const;
  3182. float GetAttributeAnimationSpeed(const String&) const;
  3183. float GetAttributeAnimationTime(const String&) const;
  3184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3185. Variant GetAttributeDefault(const String&) const;
  3186. float GetDistanceToWall(const Vector3&, float, int);
  3187. uint16 GetExcludeFlags(uint);
  3188. uint16 GetIncludeFlags(uint);
  3189. bool GetInterceptNetworkUpdate(const String&) const;
  3190. Vector3 GetRandomPoint(int);
  3191. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3192. bool Load(File, bool = false);
  3193. bool Load(VectorBuffer&, bool = false);
  3194. bool LoadXML(const XMLElement&, bool = false);
  3195. void MarkNetworkUpdate() const;
  3196. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3197. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3198. void Remove();
  3199. void RemoveAttributeAnimation(const String&);
  3200. void RemoveInstanceDefault();
  3201. void RemoveObjectAnimation();
  3202. void ResetCrowdTarget(Node = null);
  3203. void ResetToDefault();
  3204. bool Save(File) const;
  3205. bool Save(VectorBuffer&) const;
  3206. bool SaveXML(XMLElement&) const;
  3207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3208. void SetAnimationTime(float);
  3209. void SetAreaCost(uint, uint, float);
  3210. bool SetAttribute(const String&, const Variant&);
  3211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3212. void SetAttributeAnimationSpeed(const String&, float);
  3213. void SetAttributeAnimationTime(const String&, float);
  3214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3215. void SetCrowdTarget(const Vector3&, Node = null);
  3216. void SetCrowdVelocity(const Vector3&, Node = null);
  3217. void SetExcludeFlags(uint, uint16);
  3218. void SetIncludeFlags(uint, uint16);
  3219. void SetInterceptNetworkUpdate(const String&, bool);
  3220. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3221. // Properties:
  3222. bool animationEnabled;
  3223. /* readonly */
  3224. Array<Variant> attributeDefaults;
  3225. /* readonly */
  3226. Array<AttributeInfo> attributeInfos;
  3227. Array<Variant> attributes;
  3228. /* readonly */
  3229. String category;
  3230. bool enabled;
  3231. /* readonly */
  3232. bool enabledEffective;
  3233. /* readonly */
  3234. uint id;
  3235. float maxAgentRadius;
  3236. int maxAgents;
  3237. NavigationMesh navMesh;
  3238. /* readonly */
  3239. Node node;
  3240. /* readonly */
  3241. Array<uint> numAreas;
  3242. /* readonly */
  3243. uint numAttributes;
  3244. /* readonly */
  3245. uint numObstacleAvoidanceTypes;
  3246. /* readonly */
  3247. uint numQueryFilterTypes;
  3248. ObjectAnimation objectAnimation;
  3249. /* readonly */
  3250. int refs;
  3251. bool temporary;
  3252. /* readonly */
  3253. StringHash type;
  3254. /* readonly */
  3255. String typeName;
  3256. /* readonly */
  3257. int weakRefs;
  3258. };
  3259. class CrowdObstacleAvoidanceParams
  3260. {
  3261. // Properties:
  3262. uint8 adaptiveDepth;
  3263. uint8 adaptiveDivs;
  3264. uint8 adaptiveRings;
  3265. uint8 gridSize;
  3266. float horizTime;
  3267. float velBias;
  3268. float weightCurVel;
  3269. float weightDesVel;
  3270. float weightSide;
  3271. float weightToi;
  3272. };
  3273. class Cursor
  3274. {
  3275. // Methods:
  3276. void AddChild(UIElement);
  3277. void ApplyAttributes();
  3278. void BringToFront();
  3279. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3280. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3281. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3282. void DisableLayoutUpdate();
  3283. IntVector2 ElementToScreen(const IntVector2&);
  3284. void EnableLayoutUpdate();
  3285. uint FindChild(UIElement) const;
  3286. Variant GetAttribute(const String&) const;
  3287. ValueAnimation GetAttributeAnimation(const String&) const;
  3288. float GetAttributeAnimationSpeed(const String&) const;
  3289. float GetAttributeAnimationTime(const String&) const;
  3290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3291. Variant GetAttributeDefault(const String&) const;
  3292. UIElement GetChild(const String&, bool = false) const;
  3293. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3294. Array<UIElement> GetChildren(bool = false) const;
  3295. UIElement GetElementEventSender() const;
  3296. bool GetInterceptNetworkUpdate(const String&) const;
  3297. uint GetNumChildren(bool) const;
  3298. void InsertChild(uint, UIElement);
  3299. bool IsInside(IntVector2, bool);
  3300. bool IsInsideCombined(IntVector2, bool);
  3301. bool Load(File, bool = false);
  3302. bool Load(VectorBuffer&, bool = false);
  3303. bool LoadChildXML(XMLFile, XMLFile = null);
  3304. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3305. bool LoadXML(File);
  3306. bool LoadXML(VectorBuffer&);
  3307. bool LoadXML(XMLFile, XMLFile);
  3308. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3309. bool LoadXML(const XMLElement&, bool = false);
  3310. void MarkNetworkUpdate() const;
  3311. void Remove();
  3312. void RemoveAllChildren();
  3313. void RemoveAttributeAnimation(const String&);
  3314. void RemoveChild(UIElement, uint = 0);
  3315. void RemoveChild(uint);
  3316. void RemoveInstanceDefault();
  3317. void RemoveObjectAnimation();
  3318. void ResetDeepEnabled();
  3319. void ResetToDefault();
  3320. bool Save(File) const;
  3321. bool Save(VectorBuffer&) const;
  3322. bool SaveXML(File, const String& = "\t");
  3323. bool SaveXML(VectorBuffer&, const String& = "\t");
  3324. bool SaveXML(XMLElement&) const;
  3325. IntVector2 ScreenToElement(const IntVector2&);
  3326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3327. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3328. void SetAnimationTime(float);
  3329. bool SetAttribute(const String&, const Variant&);
  3330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3331. void SetAttributeAnimationSpeed(const String&, float);
  3332. void SetAttributeAnimationTime(const String&, float);
  3333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3334. void SetDeepEnabled(bool);
  3335. void SetEnabledRecursive(bool);
  3336. void SetFixedHeight(int);
  3337. void SetFixedSize(int, int);
  3338. void SetFixedWidth(int);
  3339. void SetFullImageRect();
  3340. void SetHoverOffset(int, int);
  3341. void SetInterceptNetworkUpdate(const String&, bool);
  3342. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3343. void SetMaxSize(int, int);
  3344. void SetMinSize(int, int);
  3345. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3346. void SetPosition(int, int);
  3347. void SetShape(CursorShape);
  3348. void SetShape(const String&);
  3349. void SetSize(int, int);
  3350. bool SetStyle(const String&, XMLFile = null);
  3351. bool SetStyle(const XMLElement&);
  3352. bool SetStyleAuto(XMLFile = null);
  3353. void UpdateLayout();
  3354. const Variant& GetVar(const StringHash&);
  3355. // Properties:
  3356. bool animationEnabled;
  3357. /* readonly */
  3358. Array<Variant> attributeDefaults;
  3359. /* readonly */
  3360. Array<AttributeInfo> attributeInfos;
  3361. Array<Variant> attributes;
  3362. BlendMode blendMode;
  3363. IntRect border;
  3364. bool bringToBack;
  3365. bool bringToFront;
  3366. /* readonly */
  3367. String category;
  3368. /* readonly */
  3369. IntVector2 childOffset;
  3370. /* readonly */
  3371. Array<UIElement> children;
  3372. IntRect clipBorder;
  3373. bool clipChildren;
  3374. /* writeonly */
  3375. Color color;
  3376. /* readonly */
  3377. bool colorGradient;
  3378. Array<Color> colors;
  3379. /* readonly */
  3380. IntRect combinedScreenRect;
  3381. XMLFile defaultStyle;
  3382. /* readonly */
  3383. float derivedOpacity;
  3384. /* readonly */
  3385. uint dragButtonCombo;
  3386. /* readonly */
  3387. int dragButtonCount;
  3388. uint dragDropMode;
  3389. bool editable;
  3390. bool elementEventSender;
  3391. bool enabled;
  3392. /* readonly */
  3393. bool enabledSelf;
  3394. /* readonly */
  3395. bool fixedHeight;
  3396. /* readonly */
  3397. bool fixedSize;
  3398. /* readonly */
  3399. bool fixedWidth;
  3400. bool focus;
  3401. FocusMode focusMode;
  3402. int height;
  3403. HorizontalAlignment horizontalAlignment;
  3404. IntVector2 hoverOffset;
  3405. /* readonly */
  3406. bool hovering;
  3407. IntRect imageBorder;
  3408. IntRect imageRect;
  3409. int indent;
  3410. int indentSpacing;
  3411. /* readonly */
  3412. int indentWidth;
  3413. bool internal;
  3414. IntRect layoutBorder;
  3415. Vector2 layoutFlexScale;
  3416. LayoutMode layoutMode;
  3417. int layoutSpacing;
  3418. int maxHeight;
  3419. IntVector2 maxSize;
  3420. int maxWidth;
  3421. int minHeight;
  3422. IntVector2 minSize;
  3423. int minWidth;
  3424. String name;
  3425. /* readonly */
  3426. uint numAllChildren;
  3427. /* readonly */
  3428. uint numAttributes;
  3429. /* readonly */
  3430. uint numChildren;
  3431. ObjectAnimation objectAnimation;
  3432. float opacity;
  3433. UIElement parent;
  3434. IntVector2 position;
  3435. int priority;
  3436. /* readonly */
  3437. int refs;
  3438. /* readonly */
  3439. UIElement root;
  3440. /* readonly */
  3441. IntVector2 screenPosition;
  3442. bool selected;
  3443. String shape;
  3444. IntVector2 size;
  3445. bool sortChildren;
  3446. String style;
  3447. bool temporary;
  3448. Texture texture;
  3449. bool tiled;
  3450. TraversalMode traversalMode;
  3451. /* readonly */
  3452. StringHash type;
  3453. /* readonly */
  3454. String typeName;
  3455. bool useDerivedOpacity;
  3456. bool useSystemShapes;
  3457. /* readonly */
  3458. VariantMap vars;
  3459. VerticalAlignment verticalAlignment;
  3460. bool visible;
  3461. /* readonly */
  3462. bool visibleEffective;
  3463. /* readonly */
  3464. int weakRefs;
  3465. int width;
  3466. };
  3467. class CustomGeometry
  3468. {
  3469. // Methods:
  3470. void ApplyAttributes();
  3471. void BeginGeometry(uint, PrimitiveType);
  3472. void Clear();
  3473. void Commit();
  3474. void DefineColor(const Color&);
  3475. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3476. void DefineNormal(const Vector3&);
  3477. void DefineTangent(const Vector4&);
  3478. void DefineTexCoord(const Vector2&);
  3479. void DefineVertex(const Vector3&);
  3480. void DrawDebugGeometry(DebugRenderer, bool);
  3481. Variant GetAttribute(const String&) const;
  3482. ValueAnimation GetAttributeAnimation(const String&) const;
  3483. float GetAttributeAnimationSpeed(const String&) const;
  3484. float GetAttributeAnimationTime(const String&) const;
  3485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3486. Variant GetAttributeDefault(const String&) const;
  3487. bool GetInterceptNetworkUpdate(const String&) const;
  3488. CustomGeometryVertex GetVertex(uint, uint);
  3489. bool IsInView(Camera) const;
  3490. bool Load(File, bool = false);
  3491. bool Load(VectorBuffer&, bool = false);
  3492. bool LoadXML(const XMLElement&, bool = false);
  3493. void MarkNetworkUpdate() const;
  3494. void Remove();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveInstanceDefault();
  3497. void RemoveObjectAnimation();
  3498. void ResetToDefault();
  3499. bool Save(File) const;
  3500. bool Save(VectorBuffer&) const;
  3501. bool SaveXML(XMLElement&) const;
  3502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3503. void SetAnimationTime(float);
  3504. bool SetAttribute(const String&, const Variant&);
  3505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3506. void SetAttributeAnimationSpeed(const String&, float);
  3507. void SetAttributeAnimationTime(const String&, float);
  3508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3509. void SetInterceptNetworkUpdate(const String&, bool);
  3510. // Properties:
  3511. bool animationEnabled;
  3512. /* readonly */
  3513. Array<Variant> attributeDefaults;
  3514. /* readonly */
  3515. Array<AttributeInfo> attributeInfos;
  3516. Array<Variant> attributes;
  3517. /* readonly */
  3518. BoundingBox boundingBox;
  3519. bool castShadows;
  3520. /* readonly */
  3521. String category;
  3522. float drawDistance;
  3523. bool dynamic;
  3524. bool enabled;
  3525. /* readonly */
  3526. bool enabledEffective;
  3527. /* readonly */
  3528. uint id;
  3529. /* readonly */
  3530. bool inView;
  3531. uint lightMask;
  3532. float lodBias;
  3533. /* writeonly */
  3534. Material material;
  3535. Array<Material> materials;
  3536. uint maxLights;
  3537. /* readonly */
  3538. Node node;
  3539. /* readonly */
  3540. uint numAttributes;
  3541. uint numGeometries;
  3542. /* readonly */
  3543. Array<uint> numVertices;
  3544. ObjectAnimation objectAnimation;
  3545. bool occludee;
  3546. bool occluder;
  3547. /* readonly */
  3548. int refs;
  3549. float shadowDistance;
  3550. uint shadowMask;
  3551. bool temporary;
  3552. /* readonly */
  3553. StringHash type;
  3554. /* readonly */
  3555. String typeName;
  3556. uint viewMask;
  3557. /* readonly */
  3558. int weakRefs;
  3559. /* readonly */
  3560. BoundingBox worldBoundingBox;
  3561. /* readonly */
  3562. Zone zone;
  3563. uint zoneMask;
  3564. };
  3565. class CustomGeometryVertex
  3566. {
  3567. // Properties:
  3568. uint color;
  3569. Vector3 normal;
  3570. Vector3 position;
  3571. Vector4 tangent;
  3572. Vector2 texCoord;
  3573. };
  3574. class Database
  3575. {
  3576. // Methods:
  3577. DbConnection Connect(const String&);
  3578. void Disconnect(DbConnection);
  3579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3580. // Properties:
  3581. /* readonly */
  3582. String category;
  3583. uint poolSize;
  3584. /* readonly */
  3585. bool pooling;
  3586. /* readonly */
  3587. int refs;
  3588. /* readonly */
  3589. StringHash type;
  3590. /* readonly */
  3591. String typeName;
  3592. /* readonly */
  3593. int weakRefs;
  3594. };
  3595. class DbConnection
  3596. {
  3597. // Methods:
  3598. DbResult Execute(const String&, bool = false);
  3599. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3600. // Properties:
  3601. /* readonly */
  3602. String category;
  3603. /* readonly */
  3604. bool connected;
  3605. /* readonly */
  3606. String connectionString;
  3607. /* readonly */
  3608. int refs;
  3609. /* readonly */
  3610. StringHash type;
  3611. /* readonly */
  3612. String typeName;
  3613. /* readonly */
  3614. int weakRefs;
  3615. };
  3616. class DbResult
  3617. {
  3618. // Properties:
  3619. /* readonly */
  3620. Array<String> columns;
  3621. /* readonly */
  3622. int64 numAffectedRows;
  3623. /* readonly */
  3624. uint numColumns;
  3625. /* readonly */
  3626. uint numRows;
  3627. /* readonly */
  3628. Array<Array<Variant>> row;
  3629. };
  3630. class DebugHud
  3631. {
  3632. // Methods:
  3633. void ClearAppStats();
  3634. void ResetAppStats(const String&);
  3635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3636. void SetAppStats(const String&, const String&);
  3637. void SetAppStats(const String&, const Variant&);
  3638. void Toggle(uint);
  3639. void ToggleAll();
  3640. void Update();
  3641. // Properties:
  3642. /* readonly */
  3643. String category;
  3644. XMLFile defaultStyle;
  3645. /* readonly */
  3646. Text memoryText;
  3647. uint mode;
  3648. /* readonly */
  3649. Text modeText;
  3650. float profilerInterval;
  3651. uint profilerMaxDepth;
  3652. /* readonly */
  3653. Text profilerText;
  3654. /* readonly */
  3655. int refs;
  3656. /* readonly */
  3657. Text statsText;
  3658. /* readonly */
  3659. StringHash type;
  3660. /* readonly */
  3661. String typeName;
  3662. bool useRendererStats;
  3663. /* readonly */
  3664. int weakRefs;
  3665. };
  3666. class DebugRenderer
  3667. {
  3668. // Methods:
  3669. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3670. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3671. void AddCross(const Vector3&, float, const Color&, bool = true);
  3672. void AddFrustum(const Frustum&, const Color&, bool = true);
  3673. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3674. void AddNode(Node, float = 1.0, bool = true);
  3675. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3676. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3677. void AddSkeleton(Skeleton, const Color&, bool = true);
  3678. void AddSphere(const Sphere&, const Color&, bool = true);
  3679. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3680. void ApplyAttributes();
  3681. void DrawDebugGeometry(DebugRenderer, bool);
  3682. Variant GetAttribute(const String&) const;
  3683. ValueAnimation GetAttributeAnimation(const String&) const;
  3684. float GetAttributeAnimationSpeed(const String&) const;
  3685. float GetAttributeAnimationTime(const String&) const;
  3686. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3687. Variant GetAttributeDefault(const String&) const;
  3688. bool GetInterceptNetworkUpdate(const String&) const;
  3689. bool Load(File, bool = false);
  3690. bool Load(VectorBuffer&, bool = false);
  3691. bool LoadXML(const XMLElement&, bool = false);
  3692. void MarkNetworkUpdate() const;
  3693. void Remove();
  3694. void RemoveAttributeAnimation(const String&);
  3695. void RemoveInstanceDefault();
  3696. void RemoveObjectAnimation();
  3697. void ResetToDefault();
  3698. bool Save(File) const;
  3699. bool Save(VectorBuffer&) const;
  3700. bool SaveXML(XMLElement&) const;
  3701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3702. void SetAnimationTime(float);
  3703. bool SetAttribute(const String&, const Variant&);
  3704. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3705. void SetAttributeAnimationSpeed(const String&, float);
  3706. void SetAttributeAnimationTime(const String&, float);
  3707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3708. void SetInterceptNetworkUpdate(const String&, bool);
  3709. // Properties:
  3710. bool animationEnabled;
  3711. /* readonly */
  3712. Array<Variant> attributeDefaults;
  3713. /* readonly */
  3714. Array<AttributeInfo> attributeInfos;
  3715. Array<Variant> attributes;
  3716. /* readonly */
  3717. String category;
  3718. bool enabled;
  3719. /* readonly */
  3720. bool enabledEffective;
  3721. /* readonly */
  3722. uint id;
  3723. /* readonly */
  3724. Node node;
  3725. /* readonly */
  3726. uint numAttributes;
  3727. ObjectAnimation objectAnimation;
  3728. /* readonly */
  3729. int refs;
  3730. bool temporary;
  3731. /* readonly */
  3732. StringHash type;
  3733. /* readonly */
  3734. String typeName;
  3735. /* readonly */
  3736. int weakRefs;
  3737. };
  3738. class DecalSet
  3739. {
  3740. // Methods:
  3741. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3742. void ApplyAttributes();
  3743. void DrawDebugGeometry(DebugRenderer, bool);
  3744. Variant GetAttribute(const String&) const;
  3745. ValueAnimation GetAttributeAnimation(const String&) const;
  3746. float GetAttributeAnimationSpeed(const String&) const;
  3747. float GetAttributeAnimationTime(const String&) const;
  3748. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3749. Variant GetAttributeDefault(const String&) const;
  3750. bool GetInterceptNetworkUpdate(const String&) const;
  3751. bool IsInView(Camera) const;
  3752. bool Load(File, bool = false);
  3753. bool Load(VectorBuffer&, bool = false);
  3754. bool LoadXML(const XMLElement&, bool = false);
  3755. void MarkNetworkUpdate() const;
  3756. void Remove();
  3757. void RemoveAllDecals();
  3758. void RemoveAttributeAnimation(const String&);
  3759. void RemoveDecals(uint);
  3760. void RemoveInstanceDefault();
  3761. void RemoveObjectAnimation();
  3762. void ResetToDefault();
  3763. bool Save(File) const;
  3764. bool Save(VectorBuffer&) const;
  3765. bool SaveXML(XMLElement&) const;
  3766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3767. void SetAnimationTime(float);
  3768. bool SetAttribute(const String&, const Variant&);
  3769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3770. void SetAttributeAnimationSpeed(const String&, float);
  3771. void SetAttributeAnimationTime(const String&, float);
  3772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3773. void SetInterceptNetworkUpdate(const String&, bool);
  3774. // Properties:
  3775. bool animationEnabled;
  3776. /* readonly */
  3777. Array<Variant> attributeDefaults;
  3778. /* readonly */
  3779. Array<AttributeInfo> attributeInfos;
  3780. Array<Variant> attributes;
  3781. /* readonly */
  3782. BoundingBox boundingBox;
  3783. bool castShadows;
  3784. /* readonly */
  3785. String category;
  3786. float drawDistance;
  3787. bool enabled;
  3788. /* readonly */
  3789. bool enabledEffective;
  3790. /* readonly */
  3791. uint id;
  3792. /* readonly */
  3793. bool inView;
  3794. uint lightMask;
  3795. float lodBias;
  3796. Material material;
  3797. uint maxIndices;
  3798. uint maxLights;
  3799. uint maxVertices;
  3800. /* readonly */
  3801. Node node;
  3802. /* readonly */
  3803. uint numAttributes;
  3804. /* readonly */
  3805. uint numDecals;
  3806. /* readonly */
  3807. uint numIndices;
  3808. /* readonly */
  3809. uint numVertices;
  3810. ObjectAnimation objectAnimation;
  3811. bool occludee;
  3812. bool occluder;
  3813. /* readonly */
  3814. int refs;
  3815. float shadowDistance;
  3816. uint shadowMask;
  3817. bool temporary;
  3818. /* readonly */
  3819. StringHash type;
  3820. /* readonly */
  3821. String typeName;
  3822. uint viewMask;
  3823. /* readonly */
  3824. int weakRefs;
  3825. /* readonly */
  3826. BoundingBox worldBoundingBox;
  3827. /* readonly */
  3828. Zone zone;
  3829. uint zoneMask;
  3830. };
  3831. class Deserializer
  3832. {
  3833. // Methods:
  3834. Array<uint8> Read(uint);
  3835. bool ReadBool();
  3836. BoundingBox ReadBoundingBox();
  3837. int8 ReadByte();
  3838. Color ReadColor();
  3839. double ReadDouble();
  3840. String ReadFileID();
  3841. float ReadFloat();
  3842. int ReadInt();
  3843. IntRect ReadIntRect();
  3844. IntVector2 ReadIntVector2();
  3845. String ReadLine();
  3846. Matrix3 ReadMatrix3();
  3847. Matrix3x4 ReadMatrix3x4();
  3848. Matrix4 ReadMatrix4();
  3849. uint ReadNetID();
  3850. Quaternion ReadPackedQuaternion();
  3851. Vector3 ReadPackedVector3(float);
  3852. Quaternion ReadQuaternion();
  3853. int16 ReadShort();
  3854. String ReadString();
  3855. StringHash ReadStringHash();
  3856. uint8 ReadUByte();
  3857. uint ReadUInt();
  3858. uint16 ReadUShort();
  3859. uint ReadVLE();
  3860. Variant ReadVariant();
  3861. VariantMap ReadVariantMap();
  3862. Vector2 ReadVector2();
  3863. Vector3 ReadVector3();
  3864. Vector4 ReadVector4();
  3865. VectorBuffer ReadVectorBuffer(uint);
  3866. uint Seek(uint);
  3867. // Properties:
  3868. /* readonly */
  3869. uint checksum;
  3870. /* readonly */
  3871. bool eof;
  3872. /* readonly */
  3873. String name;
  3874. /* readonly */
  3875. uint position;
  3876. /* readonly */
  3877. uint size;
  3878. };
  3879. class Dictionary
  3880. {
  3881. // Methods:
  3882. void Clear();
  3883. void Erase(const String&);
  3884. bool Exists(const String&) const;
  3885. bool Get(const String&, void*) const;
  3886. bool Get(const String&, double&) const;
  3887. bool Get(const String&, int64&) const;
  3888. void Set(const String&, const void*);
  3889. void Set(const String&, const double&);
  3890. void Set(const String&, const int64&);
  3891. // Properties:
  3892. /* readonly */
  3893. bool empty;
  3894. /* readonly */
  3895. Array<String> keys;
  3896. /* readonly */
  3897. uint length;
  3898. };
  3899. class DictionaryValue
  3900. {
  3901. };
  3902. class Drawable
  3903. {
  3904. // Methods:
  3905. void ApplyAttributes();
  3906. void DrawDebugGeometry(DebugRenderer, bool);
  3907. Variant GetAttribute(const String&) const;
  3908. ValueAnimation GetAttributeAnimation(const String&) const;
  3909. float GetAttributeAnimationSpeed(const String&) const;
  3910. float GetAttributeAnimationTime(const String&) const;
  3911. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3912. Variant GetAttributeDefault(const String&) const;
  3913. bool GetInterceptNetworkUpdate(const String&) const;
  3914. bool IsInView(Camera) const;
  3915. bool Load(File, bool = false);
  3916. bool Load(VectorBuffer&, bool = false);
  3917. bool LoadXML(const XMLElement&, bool = false);
  3918. void MarkNetworkUpdate() const;
  3919. void Remove();
  3920. void RemoveAttributeAnimation(const String&);
  3921. void RemoveInstanceDefault();
  3922. void RemoveObjectAnimation();
  3923. void ResetToDefault();
  3924. bool Save(File) const;
  3925. bool Save(VectorBuffer&) const;
  3926. bool SaveXML(XMLElement&) const;
  3927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3928. void SetAnimationTime(float);
  3929. bool SetAttribute(const String&, const Variant&);
  3930. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3931. void SetAttributeAnimationSpeed(const String&, float);
  3932. void SetAttributeAnimationTime(const String&, float);
  3933. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3934. void SetInterceptNetworkUpdate(const String&, bool);
  3935. // Properties:
  3936. bool animationEnabled;
  3937. /* readonly */
  3938. Array<Variant> attributeDefaults;
  3939. /* readonly */
  3940. Array<AttributeInfo> attributeInfos;
  3941. Array<Variant> attributes;
  3942. /* readonly */
  3943. BoundingBox boundingBox;
  3944. bool castShadows;
  3945. /* readonly */
  3946. String category;
  3947. float drawDistance;
  3948. bool enabled;
  3949. /* readonly */
  3950. bool enabledEffective;
  3951. /* readonly */
  3952. uint id;
  3953. /* readonly */
  3954. bool inView;
  3955. uint lightMask;
  3956. float lodBias;
  3957. uint maxLights;
  3958. /* readonly */
  3959. Node node;
  3960. /* readonly */
  3961. uint numAttributes;
  3962. ObjectAnimation objectAnimation;
  3963. bool occludee;
  3964. bool occluder;
  3965. /* readonly */
  3966. int refs;
  3967. float shadowDistance;
  3968. uint shadowMask;
  3969. bool temporary;
  3970. /* readonly */
  3971. StringHash type;
  3972. /* readonly */
  3973. String typeName;
  3974. uint viewMask;
  3975. /* readonly */
  3976. int weakRefs;
  3977. /* readonly */
  3978. BoundingBox worldBoundingBox;
  3979. uint zoneMask;
  3980. };
  3981. class Drawable2D
  3982. {
  3983. // Methods:
  3984. void ApplyAttributes();
  3985. void DrawDebugGeometry(DebugRenderer, bool);
  3986. Variant GetAttribute(const String&) const;
  3987. ValueAnimation GetAttributeAnimation(const String&) const;
  3988. float GetAttributeAnimationSpeed(const String&) const;
  3989. float GetAttributeAnimationTime(const String&) const;
  3990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3991. Variant GetAttributeDefault(const String&) const;
  3992. bool GetInterceptNetworkUpdate(const String&) const;
  3993. bool IsInView(Camera) const;
  3994. bool Load(File, bool = false);
  3995. bool Load(VectorBuffer&, bool = false);
  3996. bool LoadXML(const XMLElement&, bool = false);
  3997. void MarkNetworkUpdate() const;
  3998. void Remove();
  3999. void RemoveAttributeAnimation(const String&);
  4000. void RemoveInstanceDefault();
  4001. void RemoveObjectAnimation();
  4002. void ResetToDefault();
  4003. bool Save(File) const;
  4004. bool Save(VectorBuffer&) const;
  4005. bool SaveXML(XMLElement&) const;
  4006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4007. void SetAnimationTime(float);
  4008. bool SetAttribute(const String&, const Variant&);
  4009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4010. void SetAttributeAnimationSpeed(const String&, float);
  4011. void SetAttributeAnimationTime(const String&, float);
  4012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4013. void SetInterceptNetworkUpdate(const String&, bool);
  4014. // Properties:
  4015. bool animationEnabled;
  4016. /* readonly */
  4017. Array<Variant> attributeDefaults;
  4018. /* readonly */
  4019. Array<AttributeInfo> attributeInfos;
  4020. Array<Variant> attributes;
  4021. /* readonly */
  4022. BoundingBox boundingBox;
  4023. bool castShadows;
  4024. /* readonly */
  4025. String category;
  4026. float drawDistance;
  4027. bool enabled;
  4028. /* readonly */
  4029. bool enabledEffective;
  4030. /* readonly */
  4031. uint id;
  4032. /* readonly */
  4033. bool inView;
  4034. int layer;
  4035. uint lightMask;
  4036. float lodBias;
  4037. uint maxLights;
  4038. /* readonly */
  4039. Node node;
  4040. /* readonly */
  4041. uint numAttributes;
  4042. ObjectAnimation objectAnimation;
  4043. bool occludee;
  4044. bool occluder;
  4045. int orderInLayer;
  4046. /* readonly */
  4047. int refs;
  4048. float shadowDistance;
  4049. uint shadowMask;
  4050. bool temporary;
  4051. /* readonly */
  4052. StringHash type;
  4053. /* readonly */
  4054. String typeName;
  4055. uint viewMask;
  4056. /* readonly */
  4057. int weakRefs;
  4058. /* readonly */
  4059. BoundingBox worldBoundingBox;
  4060. uint zoneMask;
  4061. };
  4062. class DropDownList
  4063. {
  4064. // Methods:
  4065. void AddChild(UIElement);
  4066. void AddItem(UIElement);
  4067. void ApplyAttributes();
  4068. void BringToFront();
  4069. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4070. void DisableLayoutUpdate();
  4071. IntVector2 ElementToScreen(const IntVector2&);
  4072. void EnableLayoutUpdate();
  4073. uint FindChild(UIElement) const;
  4074. Variant GetAttribute(const String&) const;
  4075. ValueAnimation GetAttributeAnimation(const String&) const;
  4076. float GetAttributeAnimationSpeed(const String&) const;
  4077. float GetAttributeAnimationTime(const String&) const;
  4078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4079. Variant GetAttributeDefault(const String&) const;
  4080. UIElement GetChild(const String&, bool = false) const;
  4081. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4082. Array<UIElement> GetChildren(bool = false) const;
  4083. UIElement GetElementEventSender() const;
  4084. bool GetInterceptNetworkUpdate(const String&) const;
  4085. Array<UIElement> GetItems() const;
  4086. uint GetNumChildren(bool) const;
  4087. void InsertChild(uint, UIElement);
  4088. void InsertItem(uint, UIElement);
  4089. bool IsInside(IntVector2, bool);
  4090. bool IsInsideCombined(IntVector2, bool);
  4091. bool Load(File, bool = false);
  4092. bool Load(VectorBuffer&, bool = false);
  4093. bool LoadChildXML(XMLFile, XMLFile = null);
  4094. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4095. bool LoadXML(File);
  4096. bool LoadXML(VectorBuffer&);
  4097. bool LoadXML(XMLFile, XMLFile);
  4098. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4099. bool LoadXML(const XMLElement&, bool = false);
  4100. void MarkNetworkUpdate() const;
  4101. void Remove();
  4102. void RemoveAllChildren();
  4103. void RemoveAllItems();
  4104. void RemoveAttributeAnimation(const String&);
  4105. void RemoveChild(UIElement, uint = 0);
  4106. void RemoveChild(uint);
  4107. void RemoveInstanceDefault();
  4108. void RemoveItem(UIElement);
  4109. void RemoveItem(uint);
  4110. void RemoveObjectAnimation();
  4111. void ResetDeepEnabled();
  4112. void ResetToDefault();
  4113. bool Save(File) const;
  4114. bool Save(VectorBuffer&) const;
  4115. bool SaveXML(File, const String& = "\t");
  4116. bool SaveXML(VectorBuffer&, const String& = "\t");
  4117. bool SaveXML(XMLElement&) const;
  4118. IntVector2 ScreenToElement(const IntVector2&);
  4119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4120. void SetAccelerator(int, int);
  4121. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4122. void SetAnimationTime(float);
  4123. bool SetAttribute(const String&, const Variant&);
  4124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4125. void SetAttributeAnimationSpeed(const String&, float);
  4126. void SetAttributeAnimationTime(const String&, float);
  4127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4128. void SetDeepEnabled(bool);
  4129. void SetEnabledRecursive(bool);
  4130. void SetFixedHeight(int);
  4131. void SetFixedSize(int, int);
  4132. void SetFixedWidth(int);
  4133. void SetFullImageRect();
  4134. void SetHoverOffset(int, int);
  4135. void SetInterceptNetworkUpdate(const String&, bool);
  4136. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4137. void SetMaxSize(int, int);
  4138. void SetMinSize(int, int);
  4139. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4140. void SetPosition(int, int);
  4141. void SetPressedChildOffset(int, int);
  4142. void SetPressedOffset(int, int);
  4143. void SetRepeat(float, float);
  4144. void SetSize(int, int);
  4145. bool SetStyle(const String&, XMLFile = null);
  4146. bool SetStyle(const XMLElement&);
  4147. bool SetStyleAuto(XMLFile = null);
  4148. void UpdateLayout();
  4149. const Variant& GetVar(const StringHash&);
  4150. UIElement getPopup() const;
  4151. // Properties:
  4152. /* readonly */
  4153. int acceleratorKey;
  4154. /* readonly */
  4155. int acceleratorQualifiers;
  4156. bool animationEnabled;
  4157. /* readonly */
  4158. Array<Variant> attributeDefaults;
  4159. /* readonly */
  4160. Array<AttributeInfo> attributeInfos;
  4161. Array<Variant> attributes;
  4162. BlendMode blendMode;
  4163. IntRect border;
  4164. bool bringToBack;
  4165. bool bringToFront;
  4166. /* readonly */
  4167. String category;
  4168. /* readonly */
  4169. IntVector2 childOffset;
  4170. /* readonly */
  4171. Array<UIElement> children;
  4172. IntRect clipBorder;
  4173. bool clipChildren;
  4174. /* writeonly */
  4175. Color color;
  4176. /* readonly */
  4177. bool colorGradient;
  4178. Array<Color> colors;
  4179. /* readonly */
  4180. IntRect combinedScreenRect;
  4181. XMLFile defaultStyle;
  4182. /* readonly */
  4183. float derivedOpacity;
  4184. /* readonly */
  4185. uint dragButtonCombo;
  4186. /* readonly */
  4187. int dragButtonCount;
  4188. uint dragDropMode;
  4189. bool editable;
  4190. bool elementEventSender;
  4191. bool enabled;
  4192. /* readonly */
  4193. bool enabledSelf;
  4194. /* readonly */
  4195. bool fixedHeight;
  4196. /* readonly */
  4197. bool fixedSize;
  4198. /* readonly */
  4199. bool fixedWidth;
  4200. bool focus;
  4201. FocusMode focusMode;
  4202. int height;
  4203. HorizontalAlignment horizontalAlignment;
  4204. IntVector2 hoverOffset;
  4205. /* readonly */
  4206. bool hovering;
  4207. IntRect imageBorder;
  4208. IntRect imageRect;
  4209. int indent;
  4210. int indentSpacing;
  4211. /* readonly */
  4212. int indentWidth;
  4213. bool internal;
  4214. /* readonly */
  4215. Array<UIElement> items;
  4216. IntRect layoutBorder;
  4217. Vector2 layoutFlexScale;
  4218. LayoutMode layoutMode;
  4219. int layoutSpacing;
  4220. /* readonly */
  4221. ListView listView;
  4222. int maxHeight;
  4223. IntVector2 maxSize;
  4224. int maxWidth;
  4225. int minHeight;
  4226. IntVector2 minSize;
  4227. int minWidth;
  4228. String name;
  4229. /* readonly */
  4230. uint numAllChildren;
  4231. /* readonly */
  4232. uint numAttributes;
  4233. /* readonly */
  4234. uint numChildren;
  4235. /* readonly */
  4236. uint numItems;
  4237. ObjectAnimation objectAnimation;
  4238. float opacity;
  4239. UIElement parent;
  4240. /* readonly */
  4241. UIElement placeholder;
  4242. String placeholderText;
  4243. IntVector2 position;
  4244. /* readonly */
  4245. bool pressed;
  4246. IntVector2 pressedChildOffset;
  4247. IntVector2 pressedOffset;
  4248. int priority;
  4249. /* readonly */
  4250. int refs;
  4251. float repeatDelay;
  4252. float repeatRate;
  4253. bool resizePopup;
  4254. /* readonly */
  4255. UIElement root;
  4256. /* readonly */
  4257. IntVector2 screenPosition;
  4258. bool selected;
  4259. /* readonly */
  4260. UIElement selectedItem;
  4261. uint selection;
  4262. bool showPopup;
  4263. IntVector2 size;
  4264. bool sortChildren;
  4265. String style;
  4266. bool temporary;
  4267. Texture texture;
  4268. bool tiled;
  4269. TraversalMode traversalMode;
  4270. /* readonly */
  4271. StringHash type;
  4272. /* readonly */
  4273. String typeName;
  4274. bool useDerivedOpacity;
  4275. /* readonly */
  4276. VariantMap vars;
  4277. VerticalAlignment verticalAlignment;
  4278. bool visible;
  4279. /* readonly */
  4280. bool visibleEffective;
  4281. /* readonly */
  4282. int weakRefs;
  4283. int width;
  4284. };
  4285. class DynamicNavigationMesh
  4286. {
  4287. // Methods:
  4288. void ApplyAttributes();
  4289. bool Build();
  4290. bool Build(const BoundingBox&);
  4291. void DrawDebugGeometry(DebugRenderer, bool);
  4292. void DrawDebugGeometry(bool);
  4293. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4294. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4295. float GetAreaCost(uint) const;
  4296. Variant GetAttribute(const String&) const;
  4297. ValueAnimation GetAttributeAnimation(const String&) const;
  4298. float GetAttributeAnimationSpeed(const String&) const;
  4299. float GetAttributeAnimationTime(const String&) const;
  4300. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4301. Variant GetAttributeDefault(const String&) const;
  4302. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4303. bool GetInterceptNetworkUpdate(const String&) const;
  4304. Vector3 GetRandomPoint();
  4305. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4306. bool Load(File, bool = false);
  4307. bool Load(VectorBuffer&, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4311. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4312. void Remove();
  4313. void RemoveAttributeAnimation(const String&);
  4314. void RemoveInstanceDefault();
  4315. void RemoveObjectAnimation();
  4316. void ResetToDefault();
  4317. bool Save(File) const;
  4318. bool Save(VectorBuffer&) const;
  4319. bool SaveXML(XMLElement&) const;
  4320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4321. void SetAnimationTime(float);
  4322. void SetAreaCost(uint, float);
  4323. bool SetAttribute(const String&, const Variant&);
  4324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4325. void SetAttributeAnimationSpeed(const String&, float);
  4326. void SetAttributeAnimationTime(const String&, float);
  4327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4328. void SetInterceptNetworkUpdate(const String&, bool);
  4329. // Properties:
  4330. float agentHeight;
  4331. float agentMaxClimb;
  4332. float agentMaxSlope;
  4333. float agentRadius;
  4334. bool animationEnabled;
  4335. /* readonly */
  4336. Array<Variant> attributeDefaults;
  4337. /* readonly */
  4338. Array<AttributeInfo> attributeInfos;
  4339. Array<Variant> attributes;
  4340. /* readonly */
  4341. BoundingBox boundingBox;
  4342. /* readonly */
  4343. String category;
  4344. float cellHeight;
  4345. float cellSize;
  4346. float detailSampleDistance;
  4347. float detailSampleMaxError;
  4348. bool drawNavAreas;
  4349. bool drawObstacles;
  4350. bool drawOffMeshConnections;
  4351. float edgeMaxError;
  4352. float edgeMaxLength;
  4353. bool enabled;
  4354. /* readonly */
  4355. bool enabledEffective;
  4356. /* readonly */
  4357. uint id;
  4358. /* readonly */
  4359. bool initialized;
  4360. bool maxLayers;
  4361. uint maxObstacles;
  4362. /* readonly */
  4363. Node node;
  4364. /* readonly */
  4365. uint numAttributes;
  4366. /* readonly */
  4367. IntVector2 numTiles;
  4368. ObjectAnimation objectAnimation;
  4369. Vector3 padding;
  4370. NavmeshPartitionType partitionType;
  4371. /* readonly */
  4372. int refs;
  4373. float regionMergeSize;
  4374. float regionMinSize;
  4375. bool temporary;
  4376. int tileSize;
  4377. /* readonly */
  4378. StringHash type;
  4379. /* readonly */
  4380. String typeName;
  4381. /* readonly */
  4382. int weakRefs;
  4383. /* readonly */
  4384. BoundingBox worldBoundingBox;
  4385. };
  4386. class Engine
  4387. {
  4388. // Methods:
  4389. Console CreateConsole();
  4390. DebugHud CreateDebugHud();
  4391. void DumpMemory();
  4392. void DumpProfiler();
  4393. void DumpResources(bool = false);
  4394. void Exit();
  4395. void RunFrame();
  4396. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4397. // Properties:
  4398. bool autoExit;
  4399. /* readonly */
  4400. String category;
  4401. /* readonly */
  4402. bool exiting;
  4403. /* readonly */
  4404. bool headless;
  4405. /* readonly */
  4406. bool initialized;
  4407. int maxFps;
  4408. int maxInactiveFps;
  4409. int minFps;
  4410. bool pauseMinimized;
  4411. /* readonly */
  4412. int refs;
  4413. int timeStepSmoothing;
  4414. /* readonly */
  4415. StringHash type;
  4416. /* readonly */
  4417. String typeName;
  4418. /* readonly */
  4419. int weakRefs;
  4420. };
  4421. class File
  4422. {
  4423. // Methods:
  4424. void Close();
  4425. bool Open(const String&, FileMode = FILE_READ);
  4426. Array<uint8> Read(uint);
  4427. bool ReadBool();
  4428. BoundingBox ReadBoundingBox();
  4429. int8 ReadByte();
  4430. Color ReadColor();
  4431. double ReadDouble();
  4432. String ReadFileID();
  4433. float ReadFloat();
  4434. int ReadInt();
  4435. IntRect ReadIntRect();
  4436. IntVector2 ReadIntVector2();
  4437. String ReadLine();
  4438. Matrix3 ReadMatrix3();
  4439. Matrix3x4 ReadMatrix3x4();
  4440. Matrix4 ReadMatrix4();
  4441. uint ReadNetID();
  4442. Quaternion ReadPackedQuaternion();
  4443. Vector3 ReadPackedVector3(float);
  4444. Quaternion ReadQuaternion();
  4445. int16 ReadShort();
  4446. String ReadString();
  4447. StringHash ReadStringHash();
  4448. uint8 ReadUByte();
  4449. uint ReadUInt();
  4450. uint16 ReadUShort();
  4451. uint ReadVLE();
  4452. Variant ReadVariant();
  4453. VariantMap ReadVariantMap();
  4454. Vector2 ReadVector2();
  4455. Vector3 ReadVector3();
  4456. Vector4 ReadVector4();
  4457. VectorBuffer ReadVectorBuffer(uint);
  4458. uint Seek(uint);
  4459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4460. uint Write(Array<uint8>);
  4461. bool WriteBool(bool);
  4462. bool WriteBoundingBox(const BoundingBox&);
  4463. bool WriteByte(int8);
  4464. bool WriteColor(const Color&);
  4465. bool WriteDouble(double);
  4466. bool WriteFileID(const String&);
  4467. bool WriteFloat(float);
  4468. bool WriteInt(int);
  4469. bool WriteIntRect(const IntRect&);
  4470. bool WriteIntVector2(const IntVector2&);
  4471. bool WriteLine(const String&);
  4472. bool WriteMatrix3(const Matrix3&);
  4473. bool WriteMatrix3x4(const Matrix3x4&);
  4474. bool WriteMatrix4(const Matrix4&);
  4475. bool WriteNetID(uint);
  4476. bool WritePackedQuaternion(const Quaternion&);
  4477. bool WritePackedVector3(const Vector3&, float);
  4478. bool WriteQuaternion(const Quaternion&);
  4479. bool WriteShort(int16);
  4480. bool WriteString(const String&);
  4481. bool WriteStringHash(const StringHash&);
  4482. bool WriteUByte(uint8);
  4483. bool WriteUInt(uint);
  4484. bool WriteUShort(uint16);
  4485. bool WriteVLE(uint);
  4486. bool WriteVariant(const Variant&);
  4487. bool WriteVariantMap(const VariantMap&);
  4488. bool WriteVector2(const Vector2&);
  4489. bool WriteVector3(const Vector3&);
  4490. bool WriteVector4(const Vector4&);
  4491. bool WriteVectorBuffer(const VectorBuffer&);
  4492. // Properties:
  4493. /* readonly */
  4494. String category;
  4495. /* readonly */
  4496. uint checksum;
  4497. /* readonly */
  4498. bool eof;
  4499. /* readonly */
  4500. FileMode mode;
  4501. /* readonly */
  4502. String name;
  4503. /* readonly */
  4504. bool open;
  4505. /* readonly */
  4506. bool packaged;
  4507. /* readonly */
  4508. uint position;
  4509. /* readonly */
  4510. int refs;
  4511. /* readonly */
  4512. uint size;
  4513. /* readonly */
  4514. StringHash type;
  4515. /* readonly */
  4516. String typeName;
  4517. /* readonly */
  4518. int weakRefs;
  4519. };
  4520. class FileSelector
  4521. {
  4522. // Methods:
  4523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4524. void SetButtonTexts(const String&, const String&);
  4525. void SetFilters(Array<String>, uint);
  4526. void UpdateElements();
  4527. // Properties:
  4528. /* readonly */
  4529. Button cancelButton;
  4530. /* readonly */
  4531. String category;
  4532. XMLFile defaultStyle;
  4533. bool directoryMode;
  4534. /* readonly */
  4535. ListView fileList;
  4536. String fileName;
  4537. /* readonly */
  4538. LineEdit fileNameEdit;
  4539. /* readonly */
  4540. String filter;
  4541. /* readonly */
  4542. uint filterIndex;
  4543. /* readonly */
  4544. DropDownList filterList;
  4545. /* readonly */
  4546. Button okButton;
  4547. String path;
  4548. /* readonly */
  4549. LineEdit pathEdit;
  4550. /* readonly */
  4551. int refs;
  4552. String title;
  4553. /* readonly */
  4554. Text titleText;
  4555. /* readonly */
  4556. StringHash type;
  4557. /* readonly */
  4558. String typeName;
  4559. /* readonly */
  4560. int weakRefs;
  4561. /* readonly */
  4562. Window window;
  4563. };
  4564. class FileSystem
  4565. {
  4566. // Methods:
  4567. bool Copy(const String&, const String&);
  4568. bool CreateDir(const String&);
  4569. bool Delete(const String&);
  4570. bool DirExists(const String&) const;
  4571. bool FileExists(const String&) const;
  4572. String GetAppPreferencesDir(const String&, const String&) const;
  4573. uint GetLastModifiedTime(const String&) const;
  4574. bool Rename(const String&, const String&);
  4575. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4577. bool SetLastModifiedTime(const String&, uint);
  4578. int SystemCommand(const String&, bool = false);
  4579. uint SystemCommandAsync(const String&);
  4580. bool SystemOpen(const String&, const String&);
  4581. int SystemRun(const String&, Array<String>);
  4582. uint SystemRunAsync(const String&, Array<String>);
  4583. // Properties:
  4584. /* readonly */
  4585. String category;
  4586. String currentDir;
  4587. bool executeConsoleCommands;
  4588. /* readonly */
  4589. String programDir;
  4590. /* readonly */
  4591. int refs;
  4592. /* readonly */
  4593. StringHash type;
  4594. /* readonly */
  4595. String typeName;
  4596. /* readonly */
  4597. String userDocumentsDir;
  4598. /* readonly */
  4599. int weakRefs;
  4600. };
  4601. class FocusParameters
  4602. {
  4603. // Properties:
  4604. bool autoSize;
  4605. bool focus;
  4606. float minView;
  4607. bool nonUniform;
  4608. float quantize;
  4609. };
  4610. class Font
  4611. {
  4612. // Methods:
  4613. IntVector2 GetTotalGlyphOffset(int) const;
  4614. bool Load(File);
  4615. bool Load(VectorBuffer&);
  4616. bool Save(File) const;
  4617. bool Save(VectorBuffer&) const;
  4618. bool SaveXML(File, int, bool = false, const String& = "\t");
  4619. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4620. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4622. // Properties:
  4623. IntVector2 absoluteGlyphOffset;
  4624. /* readonly */
  4625. String category;
  4626. /* readonly */
  4627. uint memoryUse;
  4628. String name;
  4629. /* readonly */
  4630. int refs;
  4631. Vector2 scaledGlyphOffset;
  4632. /* readonly */
  4633. StringHash type;
  4634. /* readonly */
  4635. String typeName;
  4636. /* readonly */
  4637. uint useTimer;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class Frustum
  4642. {
  4643. // Methods:
  4644. void Define(const BoundingBox&, const Matrix3x4&);
  4645. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4646. void Define(float, float, float, float, float, const Matrix3x4&);
  4647. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4648. float Distance(const Vector3&) const;
  4649. Intersection IsInside(const BoundingBox&);
  4650. Intersection IsInside(const Sphere&);
  4651. Intersection IsInside(const Vector3&);
  4652. Intersection IsInsideFast(const BoundingBox&) const;
  4653. Intersection IsInsideFast(const Sphere&) const;
  4654. void Transform(const Matrix3&);
  4655. void Transform(const Matrix3x4&);
  4656. Frustum Transformed(const Matrix3&) const;
  4657. Frustum Transformed(const Matrix3x4&) const;
  4658. // Properties:
  4659. /* readonly */
  4660. Array<Vector3> vertices;
  4661. };
  4662. class Geometry
  4663. {
  4664. // Methods:
  4665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4666. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4667. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4668. void SetIndexBuffer(IndexBuffer);
  4669. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4670. // Properties:
  4671. /* readonly */
  4672. String category;
  4673. /* readonly */
  4674. bool empty;
  4675. IndexBuffer indexBuffer;
  4676. /* readonly */
  4677. uint indexCount;
  4678. /* readonly */
  4679. uint indexStart;
  4680. float lodDistance;
  4681. uint numVertexBuffers;
  4682. /* readonly */
  4683. PrimitiveType primitiveType;
  4684. /* readonly */
  4685. int refs;
  4686. /* readonly */
  4687. StringHash type;
  4688. /* readonly */
  4689. String typeName;
  4690. /* readonly */
  4691. Array<VertexBuffer> vertexBuffers;
  4692. /* readonly */
  4693. uint vertexCount;
  4694. /* readonly */
  4695. Array<uint> vertexElementMasks;
  4696. /* readonly */
  4697. uint vertexStart;
  4698. /* readonly */
  4699. int weakRefs;
  4700. };
  4701. class Graphics
  4702. {
  4703. // Methods:
  4704. void BeginDumpShaders(const String&);
  4705. void Close();
  4706. void EndDumpShaders();
  4707. void Maximize();
  4708. void Minimize();
  4709. void PrecacheShaders(File);
  4710. void PrecacheShaders(VectorBuffer&);
  4711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4712. bool SetMode(int, int);
  4713. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4714. void SetWindowPosition(int, int);
  4715. bool TakeScreenShot(Image);
  4716. bool ToggleFullscreen();
  4717. // Properties:
  4718. /* readonly */
  4719. String apiName;
  4720. /* readonly */
  4721. bool borderless;
  4722. /* readonly */
  4723. String category;
  4724. /* readonly */
  4725. bool deferredSupport;
  4726. /* readonly */
  4727. IntVector2 desktopResolution;
  4728. /* readonly */
  4729. bool deviceLost;
  4730. bool flushGPU;
  4731. /* readonly */
  4732. bool fullscreen;
  4733. /* readonly */
  4734. bool hardwareShadowSupport;
  4735. /* readonly */
  4736. int height;
  4737. /* readonly */
  4738. bool initialized;
  4739. /* readonly */
  4740. bool instancingSupport;
  4741. /* readonly */
  4742. bool lightPrepassSupport;
  4743. /* readonly */
  4744. int multiSample;
  4745. /* readonly */
  4746. Array<int> multiSampleLevels;
  4747. /* readonly */
  4748. uint numBatches;
  4749. /* readonly */
  4750. uint numPrimitives;
  4751. String orientations;
  4752. /* readonly */
  4753. bool readableDepthSupport;
  4754. /* readonly */
  4755. int refs;
  4756. /* readonly */
  4757. bool resizable;
  4758. /* readonly */
  4759. Array<IntVector2> resolutions;
  4760. bool sRGB;
  4761. /* readonly */
  4762. bool sRGBSupport;
  4763. /* readonly */
  4764. bool sRGBWriteSupport;
  4765. /* readonly */
  4766. bool tripleBuffer;
  4767. /* readonly */
  4768. StringHash type;
  4769. /* readonly */
  4770. String typeName;
  4771. /* readonly */
  4772. bool vsync;
  4773. /* readonly */
  4774. int weakRefs;
  4775. /* readonly */
  4776. int width;
  4777. /* writeonly */
  4778. Image windowIcon;
  4779. IntVector2 windowPosition;
  4780. String windowTitle;
  4781. };
  4782. class HttpRequest
  4783. {
  4784. // Methods:
  4785. Array<uint8> Read(uint);
  4786. bool ReadBool();
  4787. BoundingBox ReadBoundingBox();
  4788. int8 ReadByte();
  4789. Color ReadColor();
  4790. double ReadDouble();
  4791. String ReadFileID();
  4792. float ReadFloat();
  4793. int ReadInt();
  4794. IntRect ReadIntRect();
  4795. IntVector2 ReadIntVector2();
  4796. String ReadLine();
  4797. Matrix3 ReadMatrix3();
  4798. Matrix3x4 ReadMatrix3x4();
  4799. Matrix4 ReadMatrix4();
  4800. uint ReadNetID();
  4801. Quaternion ReadPackedQuaternion();
  4802. Vector3 ReadPackedVector3(float);
  4803. Quaternion ReadQuaternion();
  4804. int16 ReadShort();
  4805. String ReadString();
  4806. StringHash ReadStringHash();
  4807. uint8 ReadUByte();
  4808. uint ReadUInt();
  4809. uint16 ReadUShort();
  4810. uint ReadVLE();
  4811. Variant ReadVariant();
  4812. VariantMap ReadVariantMap();
  4813. Vector2 ReadVector2();
  4814. Vector3 ReadVector3();
  4815. Vector4 ReadVector4();
  4816. VectorBuffer ReadVectorBuffer(uint);
  4817. uint Seek(uint);
  4818. // Properties:
  4819. /* readonly */
  4820. uint availableSize;
  4821. /* readonly */
  4822. uint checksum;
  4823. /* readonly */
  4824. bool eof;
  4825. /* readonly */
  4826. String error;
  4827. /* readonly */
  4828. String name;
  4829. /* readonly */
  4830. bool open;
  4831. /* readonly */
  4832. uint position;
  4833. /* readonly */
  4834. int refs;
  4835. /* readonly */
  4836. uint size;
  4837. /* readonly */
  4838. HttpRequestState state;
  4839. /* readonly */
  4840. String url;
  4841. /* readonly */
  4842. String verb;
  4843. /* readonly */
  4844. int weakRefs;
  4845. };
  4846. class Image
  4847. {
  4848. // Methods:
  4849. void Clear(const Color&);
  4850. void ClearInt(uint);
  4851. bool FlipHorizontal();
  4852. bool FlipVertical();
  4853. Color GetPixel(int, int) const;
  4854. Color GetPixel(int, int, int) const;
  4855. Color GetPixelBilinear(float, float) const;
  4856. uint GetPixelInt(int, int) const;
  4857. uint GetPixelInt(int, int, int) const;
  4858. Color GetPixelTrilinear(float, float, float) const;
  4859. Image GetSubimage(const IntRect&) const;
  4860. bool Load(File);
  4861. bool Load(VectorBuffer&);
  4862. bool LoadColorLUT(File);
  4863. bool LoadColorLUT(VectorBuffer&);
  4864. bool Resize(int, int);
  4865. bool Save(File) const;
  4866. bool Save(VectorBuffer&) const;
  4867. bool SaveBMP(const String&) const;
  4868. bool SaveJPG(const String&, int) const;
  4869. bool SavePNG(const String&) const;
  4870. bool SaveTGA(const String&) const;
  4871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4872. void SetPixel(int, int, const Color&);
  4873. void SetPixel(int, int, int, const Color&);
  4874. void SetPixelInt(int, int, int, uint);
  4875. void SetPixelInt(int, int, uint);
  4876. bool SetSize(int, int, int, uint);
  4877. bool SetSize(int, int, uint);
  4878. // Properties:
  4879. /* readonly */
  4880. bool array;
  4881. /* readonly */
  4882. String category;
  4883. /* readonly */
  4884. uint components;
  4885. /* readonly */
  4886. bool compressed;
  4887. /* readonly */
  4888. CompressedFormat compressedFormat;
  4889. /* readonly */
  4890. bool cubemap;
  4891. /* readonly */
  4892. int depth;
  4893. /* readonly */
  4894. int height;
  4895. /* readonly */
  4896. uint memoryUse;
  4897. String name;
  4898. /* readonly */
  4899. uint numCompressedLevels;
  4900. /* readonly */
  4901. int refs;
  4902. /* readonly */
  4903. bool sRGB;
  4904. /* readonly */
  4905. StringHash type;
  4906. /* readonly */
  4907. String typeName;
  4908. /* readonly */
  4909. uint useTimer;
  4910. /* readonly */
  4911. int weakRefs;
  4912. /* readonly */
  4913. int width;
  4914. };
  4915. class IndexBuffer
  4916. {
  4917. // Methods:
  4918. VectorBuffer GetData();
  4919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4920. bool SetData(VectorBuffer&);
  4921. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4922. void SetSize(uint, bool, bool = false);
  4923. // Properties:
  4924. /* readonly */
  4925. String category;
  4926. /* readonly */
  4927. bool dynamic;
  4928. /* readonly */
  4929. uint indexCount;
  4930. /* readonly */
  4931. uint indexSize;
  4932. /* readonly */
  4933. int refs;
  4934. bool shadowed;
  4935. /* readonly */
  4936. StringHash type;
  4937. /* readonly */
  4938. String typeName;
  4939. /* readonly */
  4940. int weakRefs;
  4941. };
  4942. class Input
  4943. {
  4944. // Methods:
  4945. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4946. int GetKeyFromName(const String&) const;
  4947. int GetKeyFromScancode(int) const;
  4948. String GetKeyName(int) const;
  4949. int GetScancodeFromKey(int) const;
  4950. int GetScancodeFromName(const String&) const;
  4951. String GetScancodeName(int) const;
  4952. uint LoadGestures(File);
  4953. uint LoadGestures(VectorBuffer&);
  4954. bool RecordGesture();
  4955. void RemoveAllGestures();
  4956. bool RemoveGesture(uint);
  4957. bool RemoveScreenJoystick(int);
  4958. void ResetMouseVisible();
  4959. bool SaveGesture(File, uint);
  4960. bool SaveGesture(VectorBuffer&, uint);
  4961. bool SaveGestures(File);
  4962. bool SaveGestures(VectorBuffer&);
  4963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4964. void SetMouseVisible(bool, bool = false);
  4965. // Properties:
  4966. /* readonly */
  4967. String category;
  4968. /* readonly */
  4969. bool focus;
  4970. /* readonly */
  4971. Array<JoystickState> joysticks;
  4972. /* readonly */
  4973. Array<JoystickState> joysticksByIndex;
  4974. /* readonly */
  4975. Array<bool> keyDown;
  4976. /* readonly */
  4977. Array<bool> keyPress;
  4978. /* readonly */
  4979. bool minimized;
  4980. /* readonly */
  4981. Array<bool> mouseButtonDown;
  4982. /* readonly */
  4983. Array<bool> mouseButtonPress;
  4984. bool mouseGrabbed;
  4985. MouseMode mouseMode;
  4986. /* readonly */
  4987. IntVector2 mouseMove;
  4988. /* readonly */
  4989. int mouseMoveWheel;
  4990. /* readonly */
  4991. int mouseMoveX;
  4992. /* readonly */
  4993. int mouseMoveY;
  4994. /* readonly */
  4995. IntVector2 mousePosition;
  4996. bool mouseVisible;
  4997. /* readonly */
  4998. uint numJoysticks;
  4999. /* readonly */
  5000. uint numTouches;
  5001. /* readonly */
  5002. Array<bool> qualifierDown;
  5003. /* readonly */
  5004. Array<bool> qualifierPress;
  5005. /* readonly */
  5006. int qualifiers;
  5007. /* readonly */
  5008. int refs;
  5009. /* readonly */
  5010. Array<bool> scancodeDown;
  5011. /* readonly */
  5012. Array<bool> scancodePress;
  5013. Array<bool> screenJoystickVisible;
  5014. /* readonly */
  5015. bool screenKeyboardSupport;
  5016. bool screenKeyboardVisible;
  5017. bool toggleFullscreen;
  5018. bool touchEmulation;
  5019. /* readonly */
  5020. Array<TouchState> touches;
  5021. /* readonly */
  5022. StringHash type;
  5023. /* readonly */
  5024. String typeName;
  5025. /* readonly */
  5026. int weakRefs;
  5027. };
  5028. class IntRect
  5029. {
  5030. // Methods:
  5031. Intersection IsInside(const IntVector2&) const;
  5032. // Properties:
  5033. int bottom;
  5034. /* readonly */
  5035. Array<int> data;
  5036. /* readonly */
  5037. int height;
  5038. int left;
  5039. int right;
  5040. /* readonly */
  5041. IntVector2 size;
  5042. int top;
  5043. /* readonly */
  5044. int width;
  5045. };
  5046. class IntVector2
  5047. {
  5048. // Methods:
  5049. String ToString() const;
  5050. // Properties:
  5051. /* readonly */
  5052. Array<int> data;
  5053. int x;
  5054. int y;
  5055. };
  5056. class JSONFile
  5057. {
  5058. // Methods:
  5059. const JSONValue& GetRoot() const;
  5060. bool Load(File);
  5061. bool Load(VectorBuffer&);
  5062. bool Save(File) const;
  5063. bool Save(File, const String&) const;
  5064. bool Save(VectorBuffer&) const;
  5065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5066. // Properties:
  5067. /* readonly */
  5068. String category;
  5069. /* readonly */
  5070. uint memoryUse;
  5071. String name;
  5072. /* readonly */
  5073. int refs;
  5074. /* readonly */
  5075. StringHash type;
  5076. /* readonly */
  5077. String typeName;
  5078. /* readonly */
  5079. uint useTimer;
  5080. /* readonly */
  5081. int weakRefs;
  5082. };
  5083. class JSONValue
  5084. {
  5085. // Methods:
  5086. void Clear();
  5087. bool Contains(const String&) const;
  5088. void Erase(const String&);
  5089. void Erase(uint, uint = 1);
  5090. bool GetBool() const;
  5091. double GetDouble() const;
  5092. float GetFloat() const;
  5093. int GetInt() const;
  5094. uint GetUInt() const;
  5095. void Insert(uint, const JSONValue&);
  5096. const JSONValue& Get(const String&) const;
  5097. void Pop();
  5098. void Push(const JSONValue&);
  5099. void Resize(uint);
  5100. void Set(const String&, const JSONValue&);
  5101. const String& GetString() const;
  5102. // Properties:
  5103. /* readonly */
  5104. bool isArray;
  5105. /* readonly */
  5106. bool isBool;
  5107. /* readonly */
  5108. bool isNull;
  5109. /* readonly */
  5110. bool isNumber;
  5111. /* readonly */
  5112. bool isObject;
  5113. /* readonly */
  5114. bool isString;
  5115. /* readonly */
  5116. uint size;
  5117. /* readonly */
  5118. JSONValueType valueType;
  5119. };
  5120. class JoystickState
  5121. {
  5122. // Properties:
  5123. /* readonly */
  5124. Array<float> axisPosition;
  5125. /* readonly */
  5126. Array<bool> buttonDown;
  5127. /* readonly */
  5128. Array<bool> buttonPress;
  5129. /* readonly */
  5130. bool controller;
  5131. /* readonly */
  5132. Array<int> hatPosition;
  5133. int joystickID;
  5134. String name;
  5135. /* readonly */
  5136. uint numAxes;
  5137. /* readonly */
  5138. uint numButtons;
  5139. /* readonly */
  5140. uint numHats;
  5141. };
  5142. class Light
  5143. {
  5144. // Methods:
  5145. void ApplyAttributes();
  5146. void DrawDebugGeometry(DebugRenderer, bool);
  5147. Variant GetAttribute(const String&) const;
  5148. ValueAnimation GetAttributeAnimation(const String&) const;
  5149. float GetAttributeAnimationSpeed(const String&) const;
  5150. float GetAttributeAnimationTime(const String&) const;
  5151. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5152. Variant GetAttributeDefault(const String&) const;
  5153. bool GetInterceptNetworkUpdate(const String&) const;
  5154. bool IsInView(Camera) const;
  5155. bool Load(File, bool = false);
  5156. bool Load(VectorBuffer&, bool = false);
  5157. bool LoadXML(const XMLElement&, bool = false);
  5158. void MarkNetworkUpdate() const;
  5159. void Remove();
  5160. void RemoveAttributeAnimation(const String&);
  5161. void RemoveInstanceDefault();
  5162. void RemoveObjectAnimation();
  5163. void ResetToDefault();
  5164. bool Save(File) const;
  5165. bool Save(VectorBuffer&) const;
  5166. bool SaveXML(XMLElement&) const;
  5167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5168. void SetAnimationTime(float);
  5169. bool SetAttribute(const String&, const Variant&);
  5170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5171. void SetAttributeAnimationSpeed(const String&, float);
  5172. void SetAttributeAnimationTime(const String&, float);
  5173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5174. void SetInterceptNetworkUpdate(const String&, bool);
  5175. // Properties:
  5176. bool animationEnabled;
  5177. float aspectRatio;
  5178. /* readonly */
  5179. Array<Variant> attributeDefaults;
  5180. /* readonly */
  5181. Array<AttributeInfo> attributeInfos;
  5182. Array<Variant> attributes;
  5183. /* readonly */
  5184. BoundingBox boundingBox;
  5185. float brightness;
  5186. bool castShadows;
  5187. /* readonly */
  5188. String category;
  5189. Color color;
  5190. float drawDistance;
  5191. /* readonly */
  5192. Color effectiveColor;
  5193. /* readonly */
  5194. float effectiveSpecularIntensity;
  5195. bool enabled;
  5196. /* readonly */
  5197. bool enabledEffective;
  5198. float fadeDistance;
  5199. float fov;
  5200. /* readonly */
  5201. Frustum frustum;
  5202. /* readonly */
  5203. uint id;
  5204. /* readonly */
  5205. bool inView;
  5206. uint lightMask;
  5207. LightType lightType;
  5208. float lodBias;
  5209. uint maxLights;
  5210. /* readonly */
  5211. bool negative;
  5212. /* readonly */
  5213. Node node;
  5214. /* readonly */
  5215. uint numAttributes;
  5216. /* readonly */
  5217. int numShadowSplits;
  5218. ObjectAnimation objectAnimation;
  5219. bool occludee;
  5220. bool occluder;
  5221. bool perVertex;
  5222. Texture rampTexture;
  5223. float range;
  5224. /* readonly */
  5225. int refs;
  5226. BiasParameters shadowBias;
  5227. CascadeParameters shadowCascade;
  5228. float shadowDistance;
  5229. float shadowFadeDistance;
  5230. FocusParameters shadowFocus;
  5231. float shadowIntensity;
  5232. uint shadowMask;
  5233. float shadowNearFarRatio;
  5234. float shadowResolution;
  5235. Texture shapeTexture;
  5236. float specularIntensity;
  5237. bool temporary;
  5238. /* readonly */
  5239. StringHash type;
  5240. /* readonly */
  5241. String typeName;
  5242. uint viewMask;
  5243. /* readonly */
  5244. int weakRefs;
  5245. /* readonly */
  5246. BoundingBox worldBoundingBox;
  5247. uint zoneMask;
  5248. };
  5249. class LineEdit
  5250. {
  5251. // Methods:
  5252. void AddChild(UIElement);
  5253. void ApplyAttributes();
  5254. void BringToFront();
  5255. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5256. void DisableLayoutUpdate();
  5257. IntVector2 ElementToScreen(const IntVector2&);
  5258. void EnableLayoutUpdate();
  5259. uint FindChild(UIElement) const;
  5260. Variant GetAttribute(const String&) const;
  5261. ValueAnimation GetAttributeAnimation(const String&) const;
  5262. float GetAttributeAnimationSpeed(const String&) const;
  5263. float GetAttributeAnimationTime(const String&) const;
  5264. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5265. Variant GetAttributeDefault(const String&) const;
  5266. UIElement GetChild(const String&, bool = false) const;
  5267. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5268. Array<UIElement> GetChildren(bool = false) const;
  5269. UIElement GetElementEventSender() const;
  5270. bool GetInterceptNetworkUpdate(const String&) const;
  5271. uint GetNumChildren(bool) const;
  5272. void InsertChild(uint, UIElement);
  5273. bool IsInside(IntVector2, bool);
  5274. bool IsInsideCombined(IntVector2, bool);
  5275. bool Load(File, bool = false);
  5276. bool Load(VectorBuffer&, bool = false);
  5277. bool LoadChildXML(XMLFile, XMLFile = null);
  5278. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5279. bool LoadXML(File);
  5280. bool LoadXML(VectorBuffer&);
  5281. bool LoadXML(XMLFile, XMLFile);
  5282. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5283. bool LoadXML(const XMLElement&, bool = false);
  5284. void MarkNetworkUpdate() const;
  5285. void Remove();
  5286. void RemoveAllChildren();
  5287. void RemoveAttributeAnimation(const String&);
  5288. void RemoveChild(UIElement, uint = 0);
  5289. void RemoveChild(uint);
  5290. void RemoveInstanceDefault();
  5291. void RemoveObjectAnimation();
  5292. void ResetDeepEnabled();
  5293. void ResetToDefault();
  5294. bool Save(File) const;
  5295. bool Save(VectorBuffer&) const;
  5296. bool SaveXML(File, const String& = "\t");
  5297. bool SaveXML(VectorBuffer&, const String& = "\t");
  5298. bool SaveXML(XMLElement&) const;
  5299. IntVector2 ScreenToElement(const IntVector2&);
  5300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5301. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5302. void SetAnimationTime(float);
  5303. bool SetAttribute(const String&, const Variant&);
  5304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5305. void SetAttributeAnimationSpeed(const String&, float);
  5306. void SetAttributeAnimationTime(const String&, float);
  5307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5308. void SetDeepEnabled(bool);
  5309. void SetEnabledRecursive(bool);
  5310. void SetFixedHeight(int);
  5311. void SetFixedSize(int, int);
  5312. void SetFixedWidth(int);
  5313. void SetFullImageRect();
  5314. void SetHoverOffset(int, int);
  5315. void SetInterceptNetworkUpdate(const String&, bool);
  5316. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5317. void SetMaxSize(int, int);
  5318. void SetMinSize(int, int);
  5319. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5320. void SetPosition(int, int);
  5321. void SetSize(int, int);
  5322. bool SetStyle(const String&, XMLFile = null);
  5323. bool SetStyle(const XMLElement&);
  5324. bool SetStyleAuto(XMLFile = null);
  5325. void UpdateLayout();
  5326. const Variant& GetVar(const StringHash&);
  5327. // Properties:
  5328. bool animationEnabled;
  5329. /* readonly */
  5330. Array<Variant> attributeDefaults;
  5331. /* readonly */
  5332. Array<AttributeInfo> attributeInfos;
  5333. Array<Variant> attributes;
  5334. BlendMode blendMode;
  5335. IntRect border;
  5336. bool bringToBack;
  5337. bool bringToFront;
  5338. /* readonly */
  5339. String category;
  5340. /* readonly */
  5341. IntVector2 childOffset;
  5342. /* readonly */
  5343. Array<UIElement> children;
  5344. IntRect clipBorder;
  5345. bool clipChildren;
  5346. /* writeonly */
  5347. Color color;
  5348. /* readonly */
  5349. bool colorGradient;
  5350. Array<Color> colors;
  5351. /* readonly */
  5352. IntRect combinedScreenRect;
  5353. /* readonly */
  5354. BorderImage cursor;
  5355. float cursorBlinkRate;
  5356. bool cursorMovable;
  5357. uint cursorPosition;
  5358. XMLFile defaultStyle;
  5359. /* readonly */
  5360. float derivedOpacity;
  5361. /* readonly */
  5362. uint dragButtonCombo;
  5363. /* readonly */
  5364. int dragButtonCount;
  5365. uint dragDropMode;
  5366. uint echoCharacter;
  5367. bool editable;
  5368. bool elementEventSender;
  5369. bool enabled;
  5370. /* readonly */
  5371. bool enabledSelf;
  5372. /* readonly */
  5373. bool fixedHeight;
  5374. /* readonly */
  5375. bool fixedSize;
  5376. /* readonly */
  5377. bool fixedWidth;
  5378. bool focus;
  5379. FocusMode focusMode;
  5380. int height;
  5381. HorizontalAlignment horizontalAlignment;
  5382. IntVector2 hoverOffset;
  5383. /* readonly */
  5384. bool hovering;
  5385. IntRect imageBorder;
  5386. IntRect imageRect;
  5387. int indent;
  5388. int indentSpacing;
  5389. /* readonly */
  5390. int indentWidth;
  5391. bool internal;
  5392. IntRect layoutBorder;
  5393. Vector2 layoutFlexScale;
  5394. LayoutMode layoutMode;
  5395. int layoutSpacing;
  5396. int maxHeight;
  5397. uint maxLength;
  5398. IntVector2 maxSize;
  5399. int maxWidth;
  5400. int minHeight;
  5401. IntVector2 minSize;
  5402. int minWidth;
  5403. String name;
  5404. /* readonly */
  5405. uint numAllChildren;
  5406. /* readonly */
  5407. uint numAttributes;
  5408. /* readonly */
  5409. uint numChildren;
  5410. ObjectAnimation objectAnimation;
  5411. float opacity;
  5412. UIElement parent;
  5413. IntVector2 position;
  5414. int priority;
  5415. /* readonly */
  5416. int refs;
  5417. /* readonly */
  5418. UIElement root;
  5419. /* readonly */
  5420. IntVector2 screenPosition;
  5421. bool selected;
  5422. IntVector2 size;
  5423. bool sortChildren;
  5424. String style;
  5425. bool temporary;
  5426. String text;
  5427. bool textCopyable;
  5428. /* readonly */
  5429. Text textElement;
  5430. bool textSelectable;
  5431. Texture texture;
  5432. bool tiled;
  5433. TraversalMode traversalMode;
  5434. /* readonly */
  5435. StringHash type;
  5436. /* readonly */
  5437. String typeName;
  5438. bool useDerivedOpacity;
  5439. /* readonly */
  5440. VariantMap vars;
  5441. VerticalAlignment verticalAlignment;
  5442. bool visible;
  5443. /* readonly */
  5444. bool visibleEffective;
  5445. /* readonly */
  5446. int weakRefs;
  5447. int width;
  5448. };
  5449. class ListView
  5450. {
  5451. // Methods:
  5452. void AddChild(UIElement);
  5453. void AddItem(UIElement);
  5454. void AddSelection(uint);
  5455. void ApplyAttributes();
  5456. void BringToFront();
  5457. void ChangeSelection(int, bool);
  5458. void ClearSelection();
  5459. void CopySelectedItemsToClipboard();
  5460. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5461. void DisableLayoutUpdate();
  5462. IntVector2 ElementToScreen(const IntVector2&);
  5463. void EnableLayoutUpdate();
  5464. void Expand(uint, bool, bool = false);
  5465. uint FindChild(UIElement) const;
  5466. uint FindItem(UIElement);
  5467. Variant GetAttribute(const String&) const;
  5468. ValueAnimation GetAttributeAnimation(const String&) const;
  5469. float GetAttributeAnimationSpeed(const String&) const;
  5470. float GetAttributeAnimationTime(const String&) const;
  5471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5472. Variant GetAttributeDefault(const String&) const;
  5473. UIElement GetChild(const String&, bool = false) const;
  5474. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5475. Array<UIElement> GetChildren(bool = false) const;
  5476. UIElement GetElementEventSender() const;
  5477. bool GetInterceptNetworkUpdate(const String&) const;
  5478. Array<UIElement> GetItems() const;
  5479. uint GetNumChildren(bool) const;
  5480. void InsertChild(uint, UIElement);
  5481. void InsertItem(uint, UIElement, UIElement = null);
  5482. bool IsExpanded(uint) const;
  5483. bool IsInside(IntVector2, bool);
  5484. bool IsInsideCombined(IntVector2, bool);
  5485. bool IsSelected(uint) const;
  5486. bool Load(File, bool = false);
  5487. bool Load(VectorBuffer&, bool = false);
  5488. bool LoadChildXML(XMLFile, XMLFile = null);
  5489. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5490. bool LoadXML(File);
  5491. bool LoadXML(VectorBuffer&);
  5492. bool LoadXML(XMLFile, XMLFile);
  5493. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5494. bool LoadXML(const XMLElement&, bool = false);
  5495. void MarkNetworkUpdate() const;
  5496. void Remove();
  5497. void RemoveAllChildren();
  5498. void RemoveAllItems();
  5499. void RemoveAttributeAnimation(const String&);
  5500. void RemoveChild(UIElement, uint = 0);
  5501. void RemoveChild(uint);
  5502. void RemoveInstanceDefault();
  5503. void RemoveItem(UIElement, uint = 0);
  5504. void RemoveItem(uint);
  5505. void RemoveObjectAnimation();
  5506. void RemoveSelection(uint);
  5507. void ResetDeepEnabled();
  5508. void ResetToDefault();
  5509. bool Save(File) const;
  5510. bool Save(VectorBuffer&) const;
  5511. bool SaveXML(File, const String& = "\t");
  5512. bool SaveXML(VectorBuffer&, const String& = "\t");
  5513. bool SaveXML(XMLElement&) const;
  5514. IntVector2 ScreenToElement(const IntVector2&);
  5515. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5516. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5517. void SetAnimationTime(float);
  5518. bool SetAttribute(const String&, const Variant&);
  5519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5520. void SetAttributeAnimationSpeed(const String&, float);
  5521. void SetAttributeAnimationTime(const String&, float);
  5522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5523. void SetDeepEnabled(bool);
  5524. void SetEnabledRecursive(bool);
  5525. void SetFixedHeight(int);
  5526. void SetFixedSize(int, int);
  5527. void SetFixedWidth(int);
  5528. void SetInterceptNetworkUpdate(const String&, bool);
  5529. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5530. void SetMaxSize(int, int);
  5531. void SetMinSize(int, int);
  5532. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5533. void SetPosition(int, int);
  5534. void SetScrollBarsVisible(bool, bool);
  5535. void SetSelections(Array<uint>);
  5536. void SetSize(int, int);
  5537. bool SetStyle(const String&, XMLFile = null);
  5538. bool SetStyle(const XMLElement&);
  5539. bool SetStyleAuto(XMLFile = null);
  5540. void SetViewPosition(int, int);
  5541. void ToggleExpand(uint, bool = false);
  5542. void ToggleSelection(uint);
  5543. void UpdateLayout();
  5544. const Variant& GetVar(const StringHash&);
  5545. // Properties:
  5546. bool animationEnabled;
  5547. /* readonly */
  5548. Array<Variant> attributeDefaults;
  5549. /* readonly */
  5550. Array<AttributeInfo> attributeInfos;
  5551. Array<Variant> attributes;
  5552. bool autoDisableChildren;
  5553. float autoDisableThreshold;
  5554. int baseIndent;
  5555. bool bringToBack;
  5556. bool bringToFront;
  5557. /* readonly */
  5558. String category;
  5559. /* readonly */
  5560. IntVector2 childOffset;
  5561. /* readonly */
  5562. Array<UIElement> children;
  5563. bool clearSelectionOnDefocus;
  5564. IntRect clipBorder;
  5565. bool clipChildren;
  5566. /* writeonly */
  5567. Color color;
  5568. /* readonly */
  5569. bool colorGradient;
  5570. Array<Color> colors;
  5571. /* readonly */
  5572. IntRect combinedScreenRect;
  5573. /* readonly */
  5574. UIElement contentElement;
  5575. XMLFile defaultStyle;
  5576. /* readonly */
  5577. float derivedOpacity;
  5578. /* readonly */
  5579. uint dragButtonCombo;
  5580. /* readonly */
  5581. int dragButtonCount;
  5582. uint dragDropMode;
  5583. bool editable;
  5584. bool elementEventSender;
  5585. bool enabled;
  5586. /* readonly */
  5587. bool enabledSelf;
  5588. /* readonly */
  5589. bool fixedHeight;
  5590. /* readonly */
  5591. bool fixedSize;
  5592. /* readonly */
  5593. bool fixedWidth;
  5594. bool focus;
  5595. FocusMode focusMode;
  5596. int height;
  5597. bool hierarchyMode;
  5598. HighlightMode highlightMode;
  5599. HorizontalAlignment horizontalAlignment;
  5600. /* readonly */
  5601. ScrollBar horizontalScrollBar;
  5602. /* readonly */
  5603. bool hovering;
  5604. int indent;
  5605. int indentSpacing;
  5606. /* readonly */
  5607. int indentWidth;
  5608. bool internal;
  5609. /* readonly */
  5610. Array<UIElement> items;
  5611. IntRect layoutBorder;
  5612. Vector2 layoutFlexScale;
  5613. LayoutMode layoutMode;
  5614. int layoutSpacing;
  5615. int maxHeight;
  5616. IntVector2 maxSize;
  5617. int maxWidth;
  5618. int minHeight;
  5619. IntVector2 minSize;
  5620. int minWidth;
  5621. bool multiselect;
  5622. String name;
  5623. /* readonly */
  5624. uint numAllChildren;
  5625. /* readonly */
  5626. uint numAttributes;
  5627. /* readonly */
  5628. uint numChildren;
  5629. /* readonly */
  5630. uint numItems;
  5631. ObjectAnimation objectAnimation;
  5632. float opacity;
  5633. float pageStep;
  5634. UIElement parent;
  5635. IntVector2 position;
  5636. int priority;
  5637. /* readonly */
  5638. int refs;
  5639. /* readonly */
  5640. UIElement root;
  5641. /* readonly */
  5642. IntVector2 screenPosition;
  5643. bool scrollBarsAutoVisible;
  5644. float scrollDeceleration;
  5645. /* readonly */
  5646. BorderImage scrollPanel;
  5647. float scrollSnapEpsilon;
  5648. float scrollStep;
  5649. bool selectOnClickEnd;
  5650. bool selected;
  5651. /* readonly */
  5652. UIElement selectedItem;
  5653. /* readonly */
  5654. Array<UIElement> selectedItems;
  5655. uint selection;
  5656. /* readonly */
  5657. Array<uint> selections;
  5658. IntVector2 size;
  5659. bool sortChildren;
  5660. String style;
  5661. bool temporary;
  5662. TraversalMode traversalMode;
  5663. /* readonly */
  5664. StringHash type;
  5665. /* readonly */
  5666. String typeName;
  5667. bool useDerivedOpacity;
  5668. /* readonly */
  5669. VariantMap vars;
  5670. VerticalAlignment verticalAlignment;
  5671. /* readonly */
  5672. ScrollBar verticalScrollBar;
  5673. IntVector2 viewPosition;
  5674. bool visible;
  5675. /* readonly */
  5676. bool visibleEffective;
  5677. /* readonly */
  5678. int weakRefs;
  5679. int width;
  5680. };
  5681. class Localization
  5682. {
  5683. // Methods:
  5684. String Get(const String&);
  5685. String GetLanguage(int);
  5686. int GetLanguageIndex(const String&);
  5687. void LoadJSON(const JSONValue&);
  5688. void LoadJSONFile(const String&);
  5689. void Reset();
  5690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5691. void SetLanguage(const String&);
  5692. void SetLanguage(int);
  5693. // Properties:
  5694. /* readonly */
  5695. String category;
  5696. /* readonly */
  5697. String language;
  5698. /* readonly */
  5699. int languageIndex;
  5700. /* readonly */
  5701. int numLanguages;
  5702. /* readonly */
  5703. int refs;
  5704. /* readonly */
  5705. StringHash type;
  5706. /* readonly */
  5707. String typeName;
  5708. /* readonly */
  5709. int weakRefs;
  5710. };
  5711. class Log
  5712. {
  5713. // Methods:
  5714. void Close();
  5715. void Debug(const String&);
  5716. void Error(const String&);
  5717. void Info(const String&);
  5718. void Open(const String&);
  5719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5720. void Warning(const String&);
  5721. void Write(const String&, bool = false);
  5722. // Properties:
  5723. /* readonly */
  5724. String category;
  5725. /* readonly */
  5726. String lastMessage;
  5727. int level;
  5728. bool quiet;
  5729. /* readonly */
  5730. int refs;
  5731. bool timeStamp;
  5732. /* readonly */
  5733. StringHash type;
  5734. /* readonly */
  5735. String typeName;
  5736. /* readonly */
  5737. int weakRefs;
  5738. };
  5739. class Material
  5740. {
  5741. // Methods:
  5742. Material Clone(const String& = String ( )) const;
  5743. Pass GetPass(uint, const String&);
  5744. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5745. float GetShaderParameterAnimationSpeed(const String&) const;
  5746. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5747. bool Load(File);
  5748. bool Load(VectorBuffer&);
  5749. bool Load(const XMLElement&);
  5750. void RemoveShaderParameter(const String&);
  5751. bool Save(File) const;
  5752. bool Save(VectorBuffer&) const;
  5753. bool Save(XMLElement&) const;
  5754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5755. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5756. void SetShaderParameterAnimationSpeed(const String&, float);
  5757. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5758. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5759. void SetUVTransform(const Vector2&, float, const Vector2&);
  5760. void SetUVTransform(const Vector2&, float, float);
  5761. void SortTechniques();
  5762. // Properties:
  5763. /* readonly */
  5764. String category;
  5765. CullMode cullMode;
  5766. BiasParameters depthBias;
  5767. FillMode fillMode;
  5768. /* readonly */
  5769. uint memoryUse;
  5770. String name;
  5771. uint numTechniques;
  5772. /* readonly */
  5773. bool occlusion;
  5774. /* readonly */
  5775. int refs;
  5776. uint8 renderOrder;
  5777. Scene scene;
  5778. /* readonly */
  5779. Array<String> shaderParameterNames;
  5780. Array<Variant> shaderParameters;
  5781. CullMode shadowCullMode;
  5782. /* readonly */
  5783. Array<TechniqueEntry> techniqueEntries;
  5784. /* readonly */
  5785. Array<Technique> techniques;
  5786. Array<Texture> textures;
  5787. /* readonly */
  5788. StringHash type;
  5789. /* readonly */
  5790. String typeName;
  5791. /* readonly */
  5792. uint useTimer;
  5793. /* readonly */
  5794. int weakRefs;
  5795. };
  5796. class Matrix3
  5797. {
  5798. // Methods:
  5799. bool Equals(const Matrix3&) const;
  5800. Matrix3 Inverse() const;
  5801. Vector3 Scale() const;
  5802. Matrix3 Scaled(const Vector3&) const;
  5803. void SetScale(const Vector3&);
  5804. void SetScale(float);
  5805. String ToString() const;
  5806. Matrix3 Transpose() const;
  5807. // Properties:
  5808. float m00;
  5809. float m01;
  5810. float m02;
  5811. float m10;
  5812. float m11;
  5813. float m12;
  5814. float m20;
  5815. float m21;
  5816. float m22;
  5817. };
  5818. class Matrix3x4
  5819. {
  5820. // Methods:
  5821. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5822. bool Equals(const Matrix3x4&) const;
  5823. Matrix3x4 Inverse() const;
  5824. Quaternion Rotation() const;
  5825. Matrix3 RotationMatrix() const;
  5826. Vector3 Scale() const;
  5827. void SetRotation(const Matrix3&);
  5828. void SetScale(const Vector3&);
  5829. void SetScale(float);
  5830. void SetTranslation(const Vector3&);
  5831. Matrix3 ToMatrix3() const;
  5832. Matrix4 ToMatrix4() const;
  5833. String ToString() const;
  5834. Vector3 Translation() const;
  5835. // Properties:
  5836. float m00;
  5837. float m01;
  5838. float m02;
  5839. float m03;
  5840. float m10;
  5841. float m11;
  5842. float m12;
  5843. float m13;
  5844. float m20;
  5845. float m21;
  5846. float m22;
  5847. float m23;
  5848. };
  5849. class Matrix4
  5850. {
  5851. // Methods:
  5852. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5853. bool Equals(const Matrix4&) const;
  5854. Matrix4 Inverse() const;
  5855. Quaternion Rotation() const;
  5856. Matrix3 RotationMatrix() const;
  5857. Vector3 Scale() const;
  5858. void SetRotation(const Matrix3&);
  5859. void SetScale(const Vector3&);
  5860. void SetScale(float);
  5861. void SetTranslation(const Vector3&);
  5862. Matrix3 ToMatrix3() const;
  5863. String ToString() const;
  5864. Vector3 Translation() const;
  5865. Matrix4 Transpose() const;
  5866. // Properties:
  5867. float m00;
  5868. float m01;
  5869. float m02;
  5870. float m03;
  5871. float m10;
  5872. float m11;
  5873. float m12;
  5874. float m13;
  5875. float m20;
  5876. float m21;
  5877. float m22;
  5878. float m23;
  5879. float m30;
  5880. float m31;
  5881. float m32;
  5882. float m33;
  5883. };
  5884. class Menu
  5885. {
  5886. // Methods:
  5887. void AddChild(UIElement);
  5888. void ApplyAttributes();
  5889. void BringToFront();
  5890. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5891. void DisableLayoutUpdate();
  5892. IntVector2 ElementToScreen(const IntVector2&);
  5893. void EnableLayoutUpdate();
  5894. uint FindChild(UIElement) const;
  5895. Variant GetAttribute(const String&) const;
  5896. ValueAnimation GetAttributeAnimation(const String&) const;
  5897. float GetAttributeAnimationSpeed(const String&) const;
  5898. float GetAttributeAnimationTime(const String&) const;
  5899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5900. Variant GetAttributeDefault(const String&) const;
  5901. UIElement GetChild(const String&, bool = false) const;
  5902. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5903. Array<UIElement> GetChildren(bool = false) const;
  5904. UIElement GetElementEventSender() const;
  5905. bool GetInterceptNetworkUpdate(const String&) const;
  5906. uint GetNumChildren(bool) const;
  5907. void InsertChild(uint, UIElement);
  5908. bool IsInside(IntVector2, bool);
  5909. bool IsInsideCombined(IntVector2, bool);
  5910. bool Load(File, bool = false);
  5911. bool Load(VectorBuffer&, bool = false);
  5912. bool LoadChildXML(XMLFile, XMLFile = null);
  5913. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5914. bool LoadXML(File);
  5915. bool LoadXML(VectorBuffer&);
  5916. bool LoadXML(XMLFile, XMLFile);
  5917. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5918. bool LoadXML(const XMLElement&, bool = false);
  5919. void MarkNetworkUpdate() const;
  5920. void Remove();
  5921. void RemoveAllChildren();
  5922. void RemoveAttributeAnimation(const String&);
  5923. void RemoveChild(UIElement, uint = 0);
  5924. void RemoveChild(uint);
  5925. void RemoveInstanceDefault();
  5926. void RemoveObjectAnimation();
  5927. void ResetDeepEnabled();
  5928. void ResetToDefault();
  5929. bool Save(File) const;
  5930. bool Save(VectorBuffer&) const;
  5931. bool SaveXML(File, const String& = "\t");
  5932. bool SaveXML(VectorBuffer&, const String& = "\t");
  5933. bool SaveXML(XMLElement&) const;
  5934. IntVector2 ScreenToElement(const IntVector2&);
  5935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5936. void SetAccelerator(int, int);
  5937. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5938. void SetAnimationTime(float);
  5939. bool SetAttribute(const String&, const Variant&);
  5940. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5941. void SetAttributeAnimationSpeed(const String&, float);
  5942. void SetAttributeAnimationTime(const String&, float);
  5943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5944. void SetDeepEnabled(bool);
  5945. void SetEnabledRecursive(bool);
  5946. void SetFixedHeight(int);
  5947. void SetFixedSize(int, int);
  5948. void SetFixedWidth(int);
  5949. void SetFullImageRect();
  5950. void SetHoverOffset(int, int);
  5951. void SetInterceptNetworkUpdate(const String&, bool);
  5952. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5953. void SetMaxSize(int, int);
  5954. void SetMinSize(int, int);
  5955. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5956. void SetPopupOffset(int, int);
  5957. void SetPosition(int, int);
  5958. void SetPressedChildOffset(int, int);
  5959. void SetPressedOffset(int, int);
  5960. void SetRepeat(float, float);
  5961. void SetSize(int, int);
  5962. bool SetStyle(const String&, XMLFile = null);
  5963. bool SetStyle(const XMLElement&);
  5964. bool SetStyleAuto(XMLFile = null);
  5965. void UpdateLayout();
  5966. const Variant& GetVar(const StringHash&);
  5967. // Properties:
  5968. /* readonly */
  5969. int acceleratorKey;
  5970. /* readonly */
  5971. int acceleratorQualifiers;
  5972. bool animationEnabled;
  5973. /* readonly */
  5974. Array<Variant> attributeDefaults;
  5975. /* readonly */
  5976. Array<AttributeInfo> attributeInfos;
  5977. Array<Variant> attributes;
  5978. BlendMode blendMode;
  5979. IntRect border;
  5980. bool bringToBack;
  5981. bool bringToFront;
  5982. /* readonly */
  5983. String category;
  5984. /* readonly */
  5985. IntVector2 childOffset;
  5986. /* readonly */
  5987. Array<UIElement> children;
  5988. IntRect clipBorder;
  5989. bool clipChildren;
  5990. /* writeonly */
  5991. Color color;
  5992. /* readonly */
  5993. bool colorGradient;
  5994. Array<Color> colors;
  5995. /* readonly */
  5996. IntRect combinedScreenRect;
  5997. XMLFile defaultStyle;
  5998. /* readonly */
  5999. float derivedOpacity;
  6000. /* readonly */
  6001. uint dragButtonCombo;
  6002. /* readonly */
  6003. int dragButtonCount;
  6004. uint dragDropMode;
  6005. bool editable;
  6006. bool elementEventSender;
  6007. bool enabled;
  6008. /* readonly */
  6009. bool enabledSelf;
  6010. /* readonly */
  6011. bool fixedHeight;
  6012. /* readonly */
  6013. bool fixedSize;
  6014. /* readonly */
  6015. bool fixedWidth;
  6016. bool focus;
  6017. FocusMode focusMode;
  6018. int height;
  6019. HorizontalAlignment horizontalAlignment;
  6020. IntVector2 hoverOffset;
  6021. /* readonly */
  6022. bool hovering;
  6023. IntRect imageBorder;
  6024. IntRect imageRect;
  6025. int indent;
  6026. int indentSpacing;
  6027. /* readonly */
  6028. int indentWidth;
  6029. bool internal;
  6030. IntRect layoutBorder;
  6031. Vector2 layoutFlexScale;
  6032. LayoutMode layoutMode;
  6033. int layoutSpacing;
  6034. int maxHeight;
  6035. IntVector2 maxSize;
  6036. int maxWidth;
  6037. int minHeight;
  6038. IntVector2 minSize;
  6039. int minWidth;
  6040. String name;
  6041. /* readonly */
  6042. uint numAllChildren;
  6043. /* readonly */
  6044. uint numAttributes;
  6045. /* readonly */
  6046. uint numChildren;
  6047. ObjectAnimation objectAnimation;
  6048. float opacity;
  6049. UIElement parent;
  6050. UIElement popup;
  6051. IntVector2 popupOffset;
  6052. IntVector2 position;
  6053. /* readonly */
  6054. bool pressed;
  6055. IntVector2 pressedChildOffset;
  6056. IntVector2 pressedOffset;
  6057. int priority;
  6058. /* readonly */
  6059. int refs;
  6060. float repeatDelay;
  6061. float repeatRate;
  6062. /* readonly */
  6063. UIElement root;
  6064. /* readonly */
  6065. IntVector2 screenPosition;
  6066. bool selected;
  6067. bool showPopup;
  6068. IntVector2 size;
  6069. bool sortChildren;
  6070. String style;
  6071. bool temporary;
  6072. Texture texture;
  6073. bool tiled;
  6074. TraversalMode traversalMode;
  6075. /* readonly */
  6076. StringHash type;
  6077. /* readonly */
  6078. String typeName;
  6079. bool useDerivedOpacity;
  6080. /* readonly */
  6081. VariantMap vars;
  6082. VerticalAlignment verticalAlignment;
  6083. bool visible;
  6084. /* readonly */
  6085. bool visibleEffective;
  6086. /* readonly */
  6087. int weakRefs;
  6088. int width;
  6089. };
  6090. class MessageBox
  6091. {
  6092. // Methods:
  6093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6094. // Properties:
  6095. /* readonly */
  6096. String category;
  6097. String message;
  6098. /* readonly */
  6099. int refs;
  6100. String title;
  6101. /* readonly */
  6102. StringHash type;
  6103. /* readonly */
  6104. String typeName;
  6105. /* readonly */
  6106. int weakRefs;
  6107. /* readonly */
  6108. UIElement window;
  6109. };
  6110. class Model
  6111. {
  6112. // Methods:
  6113. Model Clone(const String& = String ( )) const;
  6114. Geometry GetGeometry(uint, uint) const;
  6115. bool Load(File);
  6116. bool Load(VectorBuffer&);
  6117. bool Save(File) const;
  6118. bool Save(VectorBuffer&) const;
  6119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6120. bool SetGeometry(uint, uint, Geometry);
  6121. // Properties:
  6122. BoundingBox boundingBox;
  6123. /* readonly */
  6124. String category;
  6125. Array<Vector3> geometryCenters;
  6126. /* readonly */
  6127. uint memoryUse;
  6128. String name;
  6129. uint numGeometries;
  6130. Array<uint> numGeometryLodLevels;
  6131. /* readonly */
  6132. uint numMorphs;
  6133. /* readonly */
  6134. int refs;
  6135. /* readonly */
  6136. Skeleton skeleton;
  6137. /* readonly */
  6138. StringHash type;
  6139. /* readonly */
  6140. String typeName;
  6141. /* readonly */
  6142. uint useTimer;
  6143. /* readonly */
  6144. int weakRefs;
  6145. };
  6146. class NavArea
  6147. {
  6148. // Methods:
  6149. void ApplyAttributes();
  6150. void DrawDebugGeometry(DebugRenderer, bool);
  6151. Variant GetAttribute(const String&) const;
  6152. ValueAnimation GetAttributeAnimation(const String&) const;
  6153. float GetAttributeAnimationSpeed(const String&) const;
  6154. float GetAttributeAnimationTime(const String&) const;
  6155. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6156. Variant GetAttributeDefault(const String&) const;
  6157. bool GetInterceptNetworkUpdate(const String&) const;
  6158. bool Load(File, bool = false);
  6159. bool Load(VectorBuffer&, bool = false);
  6160. bool LoadXML(const XMLElement&, bool = false);
  6161. void MarkNetworkUpdate() const;
  6162. void Remove();
  6163. void RemoveAttributeAnimation(const String&);
  6164. void RemoveInstanceDefault();
  6165. void RemoveObjectAnimation();
  6166. void ResetToDefault();
  6167. bool Save(File) const;
  6168. bool Save(VectorBuffer&) const;
  6169. bool SaveXML(XMLElement&) const;
  6170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6171. void SetAnimationTime(float);
  6172. bool SetAttribute(const String&, const Variant&);
  6173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6174. void SetAttributeAnimationSpeed(const String&, float);
  6175. void SetAttributeAnimationTime(const String&, float);
  6176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6177. void SetInterceptNetworkUpdate(const String&, bool);
  6178. // Properties:
  6179. bool animationEnabled;
  6180. uint areaID;
  6181. /* readonly */
  6182. Array<Variant> attributeDefaults;
  6183. /* readonly */
  6184. Array<AttributeInfo> attributeInfos;
  6185. Array<Variant> attributes;
  6186. BoundingBox boundingBox;
  6187. /* readonly */
  6188. String category;
  6189. bool enabled;
  6190. /* readonly */
  6191. bool enabledEffective;
  6192. /* readonly */
  6193. uint id;
  6194. /* readonly */
  6195. Node node;
  6196. /* readonly */
  6197. uint numAttributes;
  6198. ObjectAnimation objectAnimation;
  6199. /* readonly */
  6200. int refs;
  6201. bool temporary;
  6202. /* readonly */
  6203. StringHash type;
  6204. /* readonly */
  6205. String typeName;
  6206. /* readonly */
  6207. int weakRefs;
  6208. /* readonly */
  6209. BoundingBox worldBoundingBox;
  6210. };
  6211. class Navigable
  6212. {
  6213. // Methods:
  6214. void ApplyAttributes();
  6215. void DrawDebugGeometry(DebugRenderer, bool);
  6216. Variant GetAttribute(const String&) const;
  6217. ValueAnimation GetAttributeAnimation(const String&) const;
  6218. float GetAttributeAnimationSpeed(const String&) const;
  6219. float GetAttributeAnimationTime(const String&) const;
  6220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6221. Variant GetAttributeDefault(const String&) const;
  6222. bool GetInterceptNetworkUpdate(const String&) const;
  6223. bool Load(File, bool = false);
  6224. bool Load(VectorBuffer&, bool = false);
  6225. bool LoadXML(const XMLElement&, bool = false);
  6226. void MarkNetworkUpdate() const;
  6227. void Remove();
  6228. void RemoveAttributeAnimation(const String&);
  6229. void RemoveInstanceDefault();
  6230. void RemoveObjectAnimation();
  6231. void ResetToDefault();
  6232. bool Save(File) const;
  6233. bool Save(VectorBuffer&) const;
  6234. bool SaveXML(XMLElement&) const;
  6235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6236. void SetAnimationTime(float);
  6237. bool SetAttribute(const String&, const Variant&);
  6238. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6239. void SetAttributeAnimationSpeed(const String&, float);
  6240. void SetAttributeAnimationTime(const String&, float);
  6241. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6242. void SetInterceptNetworkUpdate(const String&, bool);
  6243. // Properties:
  6244. bool animationEnabled;
  6245. /* readonly */
  6246. Array<Variant> attributeDefaults;
  6247. /* readonly */
  6248. Array<AttributeInfo> attributeInfos;
  6249. Array<Variant> attributes;
  6250. /* readonly */
  6251. String category;
  6252. bool enabled;
  6253. /* readonly */
  6254. bool enabledEffective;
  6255. /* readonly */
  6256. uint id;
  6257. /* readonly */
  6258. Node node;
  6259. /* readonly */
  6260. uint numAttributes;
  6261. ObjectAnimation objectAnimation;
  6262. bool recursive;
  6263. /* readonly */
  6264. int refs;
  6265. bool temporary;
  6266. /* readonly */
  6267. StringHash type;
  6268. /* readonly */
  6269. String typeName;
  6270. /* readonly */
  6271. int weakRefs;
  6272. };
  6273. class NavigationMesh
  6274. {
  6275. // Methods:
  6276. void ApplyAttributes();
  6277. bool Build();
  6278. bool Build(const BoundingBox&);
  6279. void DrawDebugGeometry(DebugRenderer, bool);
  6280. void DrawDebugGeometry(bool);
  6281. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6282. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6283. float GetAreaCost(uint) const;
  6284. Variant GetAttribute(const String&) const;
  6285. ValueAnimation GetAttributeAnimation(const String&) const;
  6286. float GetAttributeAnimationSpeed(const String&) const;
  6287. float GetAttributeAnimationTime(const String&) const;
  6288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6289. Variant GetAttributeDefault(const String&) const;
  6290. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6291. bool GetInterceptNetworkUpdate(const String&) const;
  6292. Vector3 GetRandomPoint();
  6293. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6294. bool Load(File, bool = false);
  6295. bool Load(VectorBuffer&, bool = false);
  6296. bool LoadXML(const XMLElement&, bool = false);
  6297. void MarkNetworkUpdate() const;
  6298. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6299. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6300. void Remove();
  6301. void RemoveAttributeAnimation(const String&);
  6302. void RemoveInstanceDefault();
  6303. void RemoveObjectAnimation();
  6304. void ResetToDefault();
  6305. bool Save(File) const;
  6306. bool Save(VectorBuffer&) const;
  6307. bool SaveXML(XMLElement&) const;
  6308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6309. void SetAnimationTime(float);
  6310. void SetAreaCost(uint, float);
  6311. bool SetAttribute(const String&, const Variant&);
  6312. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6313. void SetAttributeAnimationSpeed(const String&, float);
  6314. void SetAttributeAnimationTime(const String&, float);
  6315. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6316. void SetInterceptNetworkUpdate(const String&, bool);
  6317. // Properties:
  6318. float agentHeight;
  6319. float agentMaxClimb;
  6320. float agentMaxSlope;
  6321. float agentRadius;
  6322. bool animationEnabled;
  6323. /* readonly */
  6324. Array<Variant> attributeDefaults;
  6325. /* readonly */
  6326. Array<AttributeInfo> attributeInfos;
  6327. Array<Variant> attributes;
  6328. /* readonly */
  6329. BoundingBox boundingBox;
  6330. /* readonly */
  6331. String category;
  6332. float cellHeight;
  6333. float cellSize;
  6334. float detailSampleDistance;
  6335. float detailSampleMaxError;
  6336. bool drawNavAreas;
  6337. bool drawOffMeshConnections;
  6338. float edgeMaxError;
  6339. float edgeMaxLength;
  6340. bool enabled;
  6341. /* readonly */
  6342. bool enabledEffective;
  6343. /* readonly */
  6344. uint id;
  6345. /* readonly */
  6346. bool initialized;
  6347. /* readonly */
  6348. Node node;
  6349. /* readonly */
  6350. uint numAttributes;
  6351. /* readonly */
  6352. IntVector2 numTiles;
  6353. ObjectAnimation objectAnimation;
  6354. Vector3 padding;
  6355. NavmeshPartitionType partitionType;
  6356. /* readonly */
  6357. int refs;
  6358. float regionMergeSize;
  6359. float regionMinSize;
  6360. bool temporary;
  6361. int tileSize;
  6362. /* readonly */
  6363. StringHash type;
  6364. /* readonly */
  6365. String typeName;
  6366. /* readonly */
  6367. int weakRefs;
  6368. /* readonly */
  6369. BoundingBox worldBoundingBox;
  6370. };
  6371. class Network
  6372. {
  6373. // Methods:
  6374. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6375. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6376. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6377. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6378. bool CheckRemoteEvent(const String&) const;
  6379. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6380. void Disconnect(int = 0);
  6381. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6382. void RegisterRemoteEvent(const String&) const;
  6383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6384. void SendPackageToClients(Scene, PackageFile);
  6385. bool StartServer(uint16);
  6386. void StopServer();
  6387. void UnregisterAllRemoteEvents();
  6388. void UnregisterRemoteEvent(const String&) const;
  6389. // Properties:
  6390. /* readonly */
  6391. String category;
  6392. /* readonly */
  6393. Array<Connection> clientConnections;
  6394. String packageCacheDir;
  6395. /* readonly */
  6396. int refs;
  6397. /* readonly */
  6398. Connection serverConnection;
  6399. /* readonly */
  6400. bool serverRunning;
  6401. int simulatedLatency;
  6402. float simulatedPacketLoss;
  6403. /* readonly */
  6404. StringHash type;
  6405. /* readonly */
  6406. String typeName;
  6407. int updateFps;
  6408. /* readonly */
  6409. int weakRefs;
  6410. };
  6411. class NetworkPriority
  6412. {
  6413. // Methods:
  6414. void ApplyAttributes();
  6415. void DrawDebugGeometry(DebugRenderer, bool);
  6416. Variant GetAttribute(const String&) const;
  6417. ValueAnimation GetAttributeAnimation(const String&) const;
  6418. float GetAttributeAnimationSpeed(const String&) const;
  6419. float GetAttributeAnimationTime(const String&) const;
  6420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6421. Variant GetAttributeDefault(const String&) const;
  6422. bool GetInterceptNetworkUpdate(const String&) const;
  6423. bool Load(File, bool = false);
  6424. bool Load(VectorBuffer&, bool = false);
  6425. bool LoadXML(const XMLElement&, bool = false);
  6426. void MarkNetworkUpdate() const;
  6427. void Remove();
  6428. void RemoveAttributeAnimation(const String&);
  6429. void RemoveInstanceDefault();
  6430. void RemoveObjectAnimation();
  6431. void ResetToDefault();
  6432. bool Save(File) const;
  6433. bool Save(VectorBuffer&) const;
  6434. bool SaveXML(XMLElement&) const;
  6435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6436. void SetAnimationTime(float);
  6437. bool SetAttribute(const String&, const Variant&);
  6438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6439. void SetAttributeAnimationSpeed(const String&, float);
  6440. void SetAttributeAnimationTime(const String&, float);
  6441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6442. void SetInterceptNetworkUpdate(const String&, bool);
  6443. // Properties:
  6444. bool alwaysUpdateOwner;
  6445. bool animationEnabled;
  6446. /* readonly */
  6447. Array<Variant> attributeDefaults;
  6448. /* readonly */
  6449. Array<AttributeInfo> attributeInfos;
  6450. Array<Variant> attributes;
  6451. float basePriority;
  6452. /* readonly */
  6453. String category;
  6454. float distanceFactor;
  6455. bool enabled;
  6456. /* readonly */
  6457. bool enabledEffective;
  6458. /* readonly */
  6459. uint id;
  6460. float minPriority;
  6461. /* readonly */
  6462. Node node;
  6463. /* readonly */
  6464. uint numAttributes;
  6465. ObjectAnimation objectAnimation;
  6466. /* readonly */
  6467. int refs;
  6468. bool temporary;
  6469. /* readonly */
  6470. StringHash type;
  6471. /* readonly */
  6472. String typeName;
  6473. /* readonly */
  6474. int weakRefs;
  6475. };
  6476. class Node
  6477. {
  6478. // Methods:
  6479. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6480. void ApplyAttributes();
  6481. Node Clone(CreateMode = REPLICATED);
  6482. Component CloneComponent(Component, CreateMode, uint = 0);
  6483. Component CloneComponent(Component, uint = 0);
  6484. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6485. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6486. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6487. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6488. Variant GetAttribute(const String&) const;
  6489. ValueAnimation GetAttributeAnimation(const String&) const;
  6490. float GetAttributeAnimationSpeed(const String&) const;
  6491. float GetAttributeAnimationTime(const String&) const;
  6492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6493. Variant GetAttributeDefault(const String&) const;
  6494. Node GetChild(const String&, bool = false) const;
  6495. Array<Node> GetChildren(bool = false) const;
  6496. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6497. Array<Node> GetChildrenWithScript(bool = false) const;
  6498. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6499. Component GetComponent(const String&, bool = false) const;
  6500. Array<Component> GetComponents() const;
  6501. Array<Component> GetComponents(const String&, bool = false) const;
  6502. bool GetInterceptNetworkUpdate(const String&) const;
  6503. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6504. Component GetParentComponent(const String&, bool = false) const;
  6505. ScriptObject GetScriptObject() const;
  6506. ScriptObject GetScriptObject(const String&) const;
  6507. bool HasComponent(const String&) const;
  6508. bool Load(File, bool = false);
  6509. bool Load(VectorBuffer&, bool = false);
  6510. bool LoadXML(const XMLElement&, bool = false);
  6511. Vector3 LocalToWorld(const Vector3&) const;
  6512. Vector3 LocalToWorld(const Vector4&) const;
  6513. Vector2 LocalToWorld2D(const Vector2&) const;
  6514. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6515. void MarkDirty();
  6516. void MarkNetworkUpdate() const;
  6517. void Pitch(float, TransformSpace = TS_LOCAL);
  6518. void Remove();
  6519. void RemoveAllChildren();
  6520. void RemoveAllComponents();
  6521. void RemoveAttributeAnimation(const String&);
  6522. void RemoveChild(Node);
  6523. void RemoveChildren(bool, bool, bool);
  6524. void RemoveComponent(Component);
  6525. void RemoveComponent(const String&);
  6526. void RemoveComponents(bool, bool);
  6527. void RemoveComponents(const String&);
  6528. void RemoveInstanceDefault();
  6529. void RemoveObjectAnimation();
  6530. void ResetDeepEnabled();
  6531. void ResetToDefault();
  6532. void Roll(float, TransformSpace = TS_LOCAL);
  6533. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6534. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6535. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6536. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6537. bool Save(File) const;
  6538. bool Save(VectorBuffer&) const;
  6539. bool SaveXML(File, const String& = "\t");
  6540. bool SaveXML(VectorBuffer&, const String& = "\t");
  6541. bool SaveXML(XMLElement&) const;
  6542. void Scale(const Vector3&);
  6543. void Scale(float);
  6544. void Scale2D(const Vector2&);
  6545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6546. void SetAnimationTime(float);
  6547. bool SetAttribute(const String&, const Variant&);
  6548. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6549. void SetAttributeAnimationSpeed(const String&, float);
  6550. void SetAttributeAnimationTime(const String&, float);
  6551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6552. void SetDeepEnabled(bool);
  6553. void SetEnabledRecursive(bool);
  6554. void SetInterceptNetworkUpdate(const String&, bool);
  6555. void SetPosition2D(float, float);
  6556. void SetScale(float);
  6557. void SetScale2D(float, float);
  6558. void SetTransform(const Vector3&, const Quaternion&);
  6559. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6560. void SetTransform(const Vector3&, const Quaternion&, float);
  6561. void SetTransform2D(const Vector2&, float);
  6562. void SetTransform2D(const Vector2&, float, const Vector2&);
  6563. void SetTransform2D(const Vector2&, float, float);
  6564. void SetWorldTransform(const Vector3&, const Quaternion&);
  6565. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6566. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6567. void SetWorldTransform2D(const Vector2&, float);
  6568. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6569. void SetWorldTransform2D(const Vector2&, float, float);
  6570. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6571. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6572. Vector3 WorldToLocal(const Vector3&) const;
  6573. Vector3 WorldToLocal(const Vector4&) const;
  6574. Vector2 WorldToLocal2D(const Vector2&) const;
  6575. void Yaw(float, TransformSpace = TS_LOCAL);
  6576. // Properties:
  6577. bool animationEnabled;
  6578. /* readonly */
  6579. Array<Variant> attributeDefaults;
  6580. /* readonly */
  6581. Array<AttributeInfo> attributeInfos;
  6582. Array<Variant> attributes;
  6583. /* readonly */
  6584. String category;
  6585. /* readonly */
  6586. Array<Node> children;
  6587. /* readonly */
  6588. Array<Component> components;
  6589. Vector3 direction;
  6590. bool enabled;
  6591. /* readonly */
  6592. bool enabledSelf;
  6593. /* readonly */
  6594. uint id;
  6595. String name;
  6596. /* readonly */
  6597. uint numAllChildren;
  6598. /* readonly */
  6599. uint numAttributes;
  6600. /* readonly */
  6601. uint numChildren;
  6602. /* readonly */
  6603. uint numComponents;
  6604. ObjectAnimation objectAnimation;
  6605. Connection owner;
  6606. Node parent;
  6607. Vector3 position;
  6608. Vector2 position2D;
  6609. /* readonly */
  6610. int refs;
  6611. /* readonly */
  6612. Vector3 right;
  6613. Quaternion rotation;
  6614. float rotation2D;
  6615. Vector3 scale;
  6616. Vector2 scale2D;
  6617. /* readonly */
  6618. Scene scene;
  6619. /* readonly */
  6620. ScriptObject scriptObject;
  6621. bool temporary;
  6622. /* readonly */
  6623. Matrix3x4 transform;
  6624. /* readonly */
  6625. StringHash type;
  6626. /* readonly */
  6627. String typeName;
  6628. /* readonly */
  6629. Vector3 up;
  6630. /* readonly */
  6631. VariantMap vars;
  6632. /* readonly */
  6633. int weakRefs;
  6634. Vector3 worldDirection;
  6635. Vector3 worldPosition;
  6636. Vector2 worldPosition2D;
  6637. /* readonly */
  6638. Vector3 worldRight;
  6639. Quaternion worldRotation;
  6640. float worldRotation2D;
  6641. Vector3 worldScale;
  6642. Vector2 worldScale2D;
  6643. /* readonly */
  6644. Matrix3x4 worldTransform;
  6645. /* readonly */
  6646. Vector3 worldUp;
  6647. };
  6648. class Object
  6649. {
  6650. // Methods:
  6651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6652. // Properties:
  6653. /* readonly */
  6654. String category;
  6655. /* readonly */
  6656. int refs;
  6657. /* readonly */
  6658. StringHash type;
  6659. /* readonly */
  6660. String typeName;
  6661. /* readonly */
  6662. int weakRefs;
  6663. };
  6664. class ObjectAnimation
  6665. {
  6666. // Methods:
  6667. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6668. ValueAnimation GetAttributeAnimation(const String&) const;
  6669. float GetAttributeAnimationSpeed(const String&) const;
  6670. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6671. bool Load(File);
  6672. bool Load(VectorBuffer&);
  6673. void RemoveAttributeAnimation(ValueAnimation);
  6674. void RemoveAttributeAnimation(const String&);
  6675. bool Save(File) const;
  6676. bool Save(VectorBuffer&) const;
  6677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6678. // Properties:
  6679. /* readonly */
  6680. Array<Variant> attributeAnimations;
  6681. /* readonly */
  6682. String category;
  6683. /* readonly */
  6684. uint memoryUse;
  6685. String name;
  6686. /* readonly */
  6687. int refs;
  6688. /* readonly */
  6689. Array<Variant> speeds;
  6690. /* readonly */
  6691. StringHash type;
  6692. /* readonly */
  6693. String typeName;
  6694. /* readonly */
  6695. uint useTimer;
  6696. /* readonly */
  6697. int weakRefs;
  6698. /* readonly */
  6699. Array<Variant> wrapModes;
  6700. };
  6701. class Obstacle
  6702. {
  6703. // Methods:
  6704. void ApplyAttributes();
  6705. void DrawDebugGeometry(DebugRenderer, bool);
  6706. void DrawDebugGeometry(bool);
  6707. Variant GetAttribute(const String&) const;
  6708. ValueAnimation GetAttributeAnimation(const String&) const;
  6709. float GetAttributeAnimationSpeed(const String&) const;
  6710. float GetAttributeAnimationTime(const String&) const;
  6711. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6712. Variant GetAttributeDefault(const String&) const;
  6713. bool GetInterceptNetworkUpdate(const String&) const;
  6714. bool Load(File, bool = false);
  6715. bool Load(VectorBuffer&, bool = false);
  6716. bool LoadXML(const XMLElement&, bool = false);
  6717. void MarkNetworkUpdate() const;
  6718. void Remove();
  6719. void RemoveAttributeAnimation(const String&);
  6720. void RemoveInstanceDefault();
  6721. void RemoveObjectAnimation();
  6722. void ResetToDefault();
  6723. bool Save(File) const;
  6724. bool Save(VectorBuffer&) const;
  6725. bool SaveXML(XMLElement&) const;
  6726. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6727. void SetAnimationTime(float);
  6728. bool SetAttribute(const String&, const Variant&);
  6729. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6730. void SetAttributeAnimationSpeed(const String&, float);
  6731. void SetAttributeAnimationTime(const String&, float);
  6732. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6733. void SetInterceptNetworkUpdate(const String&, bool);
  6734. // Properties:
  6735. bool animationEnabled;
  6736. /* readonly */
  6737. Array<Variant> attributeDefaults;
  6738. /* readonly */
  6739. Array<AttributeInfo> attributeInfos;
  6740. Array<Variant> attributes;
  6741. /* readonly */
  6742. String category;
  6743. bool enabled;
  6744. /* readonly */
  6745. bool enabledEffective;
  6746. float height;
  6747. /* readonly */
  6748. uint id;
  6749. /* readonly */
  6750. Node node;
  6751. /* readonly */
  6752. uint numAttributes;
  6753. ObjectAnimation objectAnimation;
  6754. /* readonly */
  6755. uint obstacleId;
  6756. float radius;
  6757. /* readonly */
  6758. int refs;
  6759. bool temporary;
  6760. /* readonly */
  6761. StringHash type;
  6762. /* readonly */
  6763. String typeName;
  6764. /* readonly */
  6765. int weakRefs;
  6766. };
  6767. class Octree
  6768. {
  6769. // Methods:
  6770. void AddManualDrawable(Drawable);
  6771. void ApplyAttributes();
  6772. void DrawDebugGeometry(DebugRenderer, bool);
  6773. void DrawDebugGeometry(bool) const;
  6774. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6775. Variant GetAttribute(const String&) const;
  6776. ValueAnimation GetAttributeAnimation(const String&) const;
  6777. float GetAttributeAnimationSpeed(const String&) const;
  6778. float GetAttributeAnimationTime(const String&) const;
  6779. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6780. Variant GetAttributeDefault(const String&) const;
  6781. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6782. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6783. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6784. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6785. bool GetInterceptNetworkUpdate(const String&) const;
  6786. bool Load(File, bool = false);
  6787. bool Load(VectorBuffer&, bool = false);
  6788. bool LoadXML(const XMLElement&, bool = false);
  6789. void MarkNetworkUpdate() const;
  6790. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6791. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6792. void Remove();
  6793. void RemoveAttributeAnimation(const String&);
  6794. void RemoveInstanceDefault();
  6795. void RemoveManualDrawable(Drawable);
  6796. void RemoveObjectAnimation();
  6797. void ResetToDefault();
  6798. bool Save(File) const;
  6799. bool Save(VectorBuffer&) const;
  6800. bool SaveXML(XMLElement&) const;
  6801. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6802. void SetAnimationTime(float);
  6803. bool SetAttribute(const String&, const Variant&);
  6804. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6805. void SetAttributeAnimationSpeed(const String&, float);
  6806. void SetAttributeAnimationTime(const String&, float);
  6807. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6808. void SetInterceptNetworkUpdate(const String&, bool);
  6809. void SetSize(const BoundingBox&, uint);
  6810. // Properties:
  6811. bool animationEnabled;
  6812. /* readonly */
  6813. Array<Variant> attributeDefaults;
  6814. /* readonly */
  6815. Array<AttributeInfo> attributeInfos;
  6816. Array<Variant> attributes;
  6817. /* readonly */
  6818. String category;
  6819. bool enabled;
  6820. /* readonly */
  6821. bool enabledEffective;
  6822. /* readonly */
  6823. uint id;
  6824. /* readonly */
  6825. Node node;
  6826. /* readonly */
  6827. uint numAttributes;
  6828. /* readonly */
  6829. uint numLevels;
  6830. ObjectAnimation objectAnimation;
  6831. /* readonly */
  6832. int refs;
  6833. bool temporary;
  6834. /* readonly */
  6835. StringHash type;
  6836. /* readonly */
  6837. String typeName;
  6838. /* readonly */
  6839. int weakRefs;
  6840. /* readonly */
  6841. BoundingBox worldBoundingBox;
  6842. };
  6843. class OffMeshConnection
  6844. {
  6845. // Methods:
  6846. void ApplyAttributes();
  6847. void DrawDebugGeometry(DebugRenderer, bool);
  6848. Variant GetAttribute(const String&) const;
  6849. ValueAnimation GetAttributeAnimation(const String&) const;
  6850. float GetAttributeAnimationSpeed(const String&) const;
  6851. float GetAttributeAnimationTime(const String&) const;
  6852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6853. Variant GetAttributeDefault(const String&) const;
  6854. bool GetInterceptNetworkUpdate(const String&) const;
  6855. bool Load(File, bool = false);
  6856. bool Load(VectorBuffer&, bool = false);
  6857. bool LoadXML(const XMLElement&, bool = false);
  6858. void MarkNetworkUpdate() const;
  6859. void Remove();
  6860. void RemoveAttributeAnimation(const String&);
  6861. void RemoveInstanceDefault();
  6862. void RemoveObjectAnimation();
  6863. void ResetToDefault();
  6864. bool Save(File) const;
  6865. bool Save(VectorBuffer&) const;
  6866. bool SaveXML(XMLElement&) const;
  6867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6868. void SetAnimationTime(float);
  6869. bool SetAttribute(const String&, const Variant&);
  6870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6871. void SetAttributeAnimationSpeed(const String&, float);
  6872. void SetAttributeAnimationTime(const String&, float);
  6873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6874. void SetInterceptNetworkUpdate(const String&, bool);
  6875. // Properties:
  6876. bool animationEnabled;
  6877. uint areaID;
  6878. /* readonly */
  6879. Array<Variant> attributeDefaults;
  6880. /* readonly */
  6881. Array<AttributeInfo> attributeInfos;
  6882. Array<Variant> attributes;
  6883. bool bidirectional;
  6884. /* readonly */
  6885. String category;
  6886. bool enabled;
  6887. /* readonly */
  6888. bool enabledEffective;
  6889. Node endPoint;
  6890. /* readonly */
  6891. uint id;
  6892. uint mask;
  6893. /* readonly */
  6894. Node node;
  6895. /* readonly */
  6896. uint numAttributes;
  6897. ObjectAnimation objectAnimation;
  6898. float radius;
  6899. /* readonly */
  6900. int refs;
  6901. bool temporary;
  6902. /* readonly */
  6903. StringHash type;
  6904. /* readonly */
  6905. String typeName;
  6906. /* readonly */
  6907. int weakRefs;
  6908. };
  6909. class PackageFile
  6910. {
  6911. // Methods:
  6912. bool Exists(const String&) const;
  6913. Array<String> GetEntryNames() const;
  6914. bool Open(const String&, uint = 0) const;
  6915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6916. bool compressed() const;
  6917. // Properties:
  6918. /* readonly */
  6919. String category;
  6920. /* readonly */
  6921. uint checksum;
  6922. /* readonly */
  6923. String name;
  6924. /* readonly */
  6925. uint numFiles;
  6926. /* readonly */
  6927. int refs;
  6928. /* readonly */
  6929. uint totalSize;
  6930. /* readonly */
  6931. StringHash type;
  6932. /* readonly */
  6933. String typeName;
  6934. /* readonly */
  6935. int weakRefs;
  6936. };
  6937. class ParticleEffect
  6938. {
  6939. // Methods:
  6940. void AddColorFrame(ColorFrame);
  6941. void AddColorTime(Color&, float);
  6942. void AddTextureFrame(TextureFrame);
  6943. void AddTextureTime(Rect&, float);
  6944. ColorFrame GetColorFrame(uint) const;
  6945. TextureFrame GetTextureFrame(uint) const;
  6946. bool Load(File);
  6947. bool Load(VectorBuffer&);
  6948. bool Load(const XMLElement&);
  6949. void RemoveColorFrame(uint);
  6950. void RemoveTextureFrame(uint);
  6951. bool Save(File) const;
  6952. bool Save(VectorBuffer&) const;
  6953. bool Save(XMLElement&) const;
  6954. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6955. void SetColorFrame(uint, ColorFrame);
  6956. void SetTextureFrame(uint, TextureFrame);
  6957. void SortColorFrames();
  6958. void SortTextureFrames();
  6959. // Properties:
  6960. float activeTime;
  6961. float animationLodBias;
  6962. /* readonly */
  6963. String category;
  6964. Vector3 constantForce;
  6965. float dampingForce;
  6966. Vector3 emitterSize;
  6967. EmitterType emitterType;
  6968. float inactiveTime;
  6969. Material material;
  6970. Vector3 maxDirection;
  6971. float maxEmissionRate;
  6972. Vector2 maxParticleSize;
  6973. float maxRotation;
  6974. float maxRotationSpeed;
  6975. float maxTimeToLive;
  6976. float maxVelocity;
  6977. /* readonly */
  6978. uint memoryUse;
  6979. Vector3 minDirection;
  6980. float minEmissionRate;
  6981. Vector2 minParticleSize;
  6982. float minRotation;
  6983. float minRotationSpeed;
  6984. float minTimeToLive;
  6985. float minVelocity;
  6986. String name;
  6987. uint numColorFrames;
  6988. uint numParticles;
  6989. uint numTextureFrames;
  6990. /* readonly */
  6991. int refs;
  6992. bool relative;
  6993. bool scaled;
  6994. float sizeAdd;
  6995. float sizeMul;
  6996. bool sorted;
  6997. /* readonly */
  6998. StringHash type;
  6999. /* readonly */
  7000. String typeName;
  7001. bool updateInvisible;
  7002. /* readonly */
  7003. uint useTimer;
  7004. /* readonly */
  7005. int weakRefs;
  7006. };
  7007. class ParticleEffect2D
  7008. {
  7009. // Methods:
  7010. bool Load(File);
  7011. bool Load(VectorBuffer&);
  7012. bool Save(File) const;
  7013. bool Save(VectorBuffer&) const;
  7014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7015. // Properties:
  7016. /* readonly */
  7017. String category;
  7018. /* readonly */
  7019. uint memoryUse;
  7020. String name;
  7021. /* readonly */
  7022. int refs;
  7023. /* readonly */
  7024. StringHash type;
  7025. /* readonly */
  7026. String typeName;
  7027. /* readonly */
  7028. uint useTimer;
  7029. /* readonly */
  7030. int weakRefs;
  7031. };
  7032. class ParticleEmitter
  7033. {
  7034. // Methods:
  7035. void ApplyAttributes();
  7036. void ApplyEffect();
  7037. void Commit();
  7038. void DrawDebugGeometry(DebugRenderer, bool);
  7039. Variant GetAttribute(const String&) const;
  7040. ValueAnimation GetAttributeAnimation(const String&) const;
  7041. float GetAttributeAnimationSpeed(const String&) const;
  7042. float GetAttributeAnimationTime(const String&) const;
  7043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7044. Variant GetAttributeDefault(const String&) const;
  7045. bool GetInterceptNetworkUpdate(const String&) const;
  7046. bool IsInView(Camera) const;
  7047. bool Load(File, bool = false);
  7048. bool Load(VectorBuffer&, bool = false);
  7049. bool LoadXML(const XMLElement&, bool = false);
  7050. void MarkNetworkUpdate() const;
  7051. void Remove();
  7052. void RemoveAllParticles();
  7053. void RemoveAttributeAnimation(const String&);
  7054. void RemoveInstanceDefault();
  7055. void RemoveObjectAnimation();
  7056. void Reset();
  7057. void ResetEmissionTimer();
  7058. void ResetToDefault();
  7059. bool Save(File) const;
  7060. bool Save(VectorBuffer&) const;
  7061. bool SaveXML(XMLElement&) const;
  7062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7063. void SetAnimationTime(float);
  7064. bool SetAttribute(const String&, const Variant&);
  7065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7066. void SetAttributeAnimationSpeed(const String&, float);
  7067. void SetAttributeAnimationTime(const String&, float);
  7068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7069. void SetInterceptNetworkUpdate(const String&, bool);
  7070. // Properties:
  7071. bool animationEnabled;
  7072. float animationLodBias;
  7073. /* readonly */
  7074. Array<Variant> attributeDefaults;
  7075. /* readonly */
  7076. Array<AttributeInfo> attributeInfos;
  7077. Array<Variant> attributes;
  7078. /* readonly */
  7079. Array<Billboard> billboards;
  7080. /* readonly */
  7081. BoundingBox boundingBox;
  7082. bool castShadows;
  7083. /* readonly */
  7084. String category;
  7085. float drawDistance;
  7086. ParticleEffect effect;
  7087. bool emitting;
  7088. bool enabled;
  7089. /* readonly */
  7090. bool enabledEffective;
  7091. FaceCameraMode faceCameraMode;
  7092. /* readonly */
  7093. uint id;
  7094. /* readonly */
  7095. bool inView;
  7096. uint lightMask;
  7097. float lodBias;
  7098. Material material;
  7099. uint maxLights;
  7100. /* readonly */
  7101. Node node;
  7102. /* readonly */
  7103. uint numAttributes;
  7104. uint numBillboards;
  7105. uint numParticles;
  7106. ObjectAnimation objectAnimation;
  7107. bool occludee;
  7108. bool occluder;
  7109. /* readonly */
  7110. int refs;
  7111. bool relative;
  7112. bool scaled;
  7113. bool serializeParticles;
  7114. float shadowDistance;
  7115. uint shadowMask;
  7116. bool sorted;
  7117. bool temporary;
  7118. /* readonly */
  7119. StringHash type;
  7120. /* readonly */
  7121. String typeName;
  7122. uint viewMask;
  7123. /* readonly */
  7124. int weakRefs;
  7125. /* readonly */
  7126. BoundingBox worldBoundingBox;
  7127. /* readonly */
  7128. Zone zone;
  7129. uint zoneMask;
  7130. };
  7131. class ParticleEmitter2D
  7132. {
  7133. // Methods:
  7134. void ApplyAttributes();
  7135. void DrawDebugGeometry(DebugRenderer, bool);
  7136. Variant GetAttribute(const String&) const;
  7137. ValueAnimation GetAttributeAnimation(const String&) const;
  7138. float GetAttributeAnimationSpeed(const String&) const;
  7139. float GetAttributeAnimationTime(const String&) const;
  7140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7141. Variant GetAttributeDefault(const String&) const;
  7142. bool GetInterceptNetworkUpdate(const String&) const;
  7143. bool IsInView(Camera) const;
  7144. bool Load(File, bool = false);
  7145. bool Load(VectorBuffer&, bool = false);
  7146. bool LoadXML(const XMLElement&, bool = false);
  7147. void MarkNetworkUpdate() const;
  7148. void Remove();
  7149. void RemoveAttributeAnimation(const String&);
  7150. void RemoveInstanceDefault();
  7151. void RemoveObjectAnimation();
  7152. void ResetToDefault();
  7153. bool Save(File) const;
  7154. bool Save(VectorBuffer&) const;
  7155. bool SaveXML(XMLElement&) const;
  7156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7157. void SetAnimationTime(float);
  7158. bool SetAttribute(const String&, const Variant&);
  7159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7160. void SetAttributeAnimationSpeed(const String&, float);
  7161. void SetAttributeAnimationTime(const String&, float);
  7162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7163. void SetInterceptNetworkUpdate(const String&, bool);
  7164. // Properties:
  7165. bool animationEnabled;
  7166. /* readonly */
  7167. Array<Variant> attributeDefaults;
  7168. /* readonly */
  7169. Array<AttributeInfo> attributeInfos;
  7170. Array<Variant> attributes;
  7171. BlendMode blendMode;
  7172. /* readonly */
  7173. BoundingBox boundingBox;
  7174. bool castShadows;
  7175. /* readonly */
  7176. String category;
  7177. float drawDistance;
  7178. ParticleEffect2D effect;
  7179. bool enabled;
  7180. /* readonly */
  7181. bool enabledEffective;
  7182. /* readonly */
  7183. uint id;
  7184. /* readonly */
  7185. bool inView;
  7186. int layer;
  7187. uint lightMask;
  7188. float lodBias;
  7189. uint maxLights;
  7190. /* readonly */
  7191. Node node;
  7192. /* readonly */
  7193. uint numAttributes;
  7194. ObjectAnimation objectAnimation;
  7195. bool occludee;
  7196. bool occluder;
  7197. int orderInLayer;
  7198. /* readonly */
  7199. int refs;
  7200. float shadowDistance;
  7201. uint shadowMask;
  7202. Sprite2D sprite;
  7203. bool temporary;
  7204. /* readonly */
  7205. StringHash type;
  7206. /* readonly */
  7207. String typeName;
  7208. uint viewMask;
  7209. /* readonly */
  7210. int weakRefs;
  7211. /* readonly */
  7212. BoundingBox worldBoundingBox;
  7213. uint zoneMask;
  7214. };
  7215. class Pass
  7216. {
  7217. // Properties:
  7218. bool alphaMask;
  7219. BlendMode blendMode;
  7220. CompareMode depthTestMode;
  7221. bool depthWrite;
  7222. bool desktop;
  7223. PassLightingMode lightingMode;
  7224. String pixelShader;
  7225. String pixelShaderDefines;
  7226. /* readonly */
  7227. int refs;
  7228. String vertexShader;
  7229. String vertexShaderDefines;
  7230. /* readonly */
  7231. int weakRefs;
  7232. };
  7233. class PhysicsRaycastResult
  7234. {
  7235. // Properties:
  7236. /* readonly */
  7237. RigidBody body;
  7238. float distance;
  7239. Vector3 normal;
  7240. Vector3 position;
  7241. };
  7242. class PhysicsRaycastResult2D
  7243. {
  7244. // Properties:
  7245. /* readonly */
  7246. RigidBody2D body;
  7247. float distance;
  7248. Vector2 normal;
  7249. Vector2 position;
  7250. };
  7251. class PhysicsWorld
  7252. {
  7253. // Methods:
  7254. void ApplyAttributes();
  7255. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7256. void DrawDebugGeometry(DebugRenderer, bool);
  7257. void DrawDebugGeometry(bool);
  7258. Variant GetAttribute(const String&) const;
  7259. ValueAnimation GetAttributeAnimation(const String&) const;
  7260. float GetAttributeAnimationSpeed(const String&) const;
  7261. float GetAttributeAnimationTime(const String&) const;
  7262. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7263. Variant GetAttributeDefault(const String&) const;
  7264. Array<RigidBody> GetCollidingBodies(RigidBody);
  7265. bool GetInterceptNetworkUpdate(const String&) const;
  7266. Array<RigidBody> GetRigidBodies(RigidBody);
  7267. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7268. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7269. bool Load(File, bool = false);
  7270. bool Load(VectorBuffer&, bool = false);
  7271. bool LoadXML(const XMLElement&, bool = false);
  7272. void MarkNetworkUpdate() const;
  7273. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7274. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7275. void Remove();
  7276. void RemoveAttributeAnimation(const String&);
  7277. void RemoveCachedGeometry(Model);
  7278. void RemoveInstanceDefault();
  7279. void RemoveObjectAnimation();
  7280. void ResetToDefault();
  7281. bool Save(File) const;
  7282. bool Save(VectorBuffer&) const;
  7283. bool SaveXML(XMLElement&) const;
  7284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7285. void SetAnimationTime(float);
  7286. bool SetAttribute(const String&, const Variant&);
  7287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7288. void SetAttributeAnimationSpeed(const String&, float);
  7289. void SetAttributeAnimationTime(const String&, float);
  7290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7291. void SetInterceptNetworkUpdate(const String&, bool);
  7292. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7293. void Update(float);
  7294. void UpdateCollisions();
  7295. // Properties:
  7296. bool animationEnabled;
  7297. /* readonly */
  7298. Array<Variant> attributeDefaults;
  7299. /* readonly */
  7300. Array<AttributeInfo> attributeInfos;
  7301. Array<Variant> attributes;
  7302. /* readonly */
  7303. String category;
  7304. bool enabled;
  7305. /* readonly */
  7306. bool enabledEffective;
  7307. int fps;
  7308. Vector3 gravity;
  7309. /* readonly */
  7310. uint id;
  7311. bool internalEdge;
  7312. bool interpolation;
  7313. int maxSubSteps;
  7314. /* readonly */
  7315. Node node;
  7316. /* readonly */
  7317. uint numAttributes;
  7318. int numIterations;
  7319. ObjectAnimation objectAnimation;
  7320. /* readonly */
  7321. int refs;
  7322. bool splitImpulse;
  7323. bool temporary;
  7324. /* readonly */
  7325. StringHash type;
  7326. /* readonly */
  7327. String typeName;
  7328. bool updateEnabled;
  7329. /* readonly */
  7330. int weakRefs;
  7331. };
  7332. class PhysicsWorld2D
  7333. {
  7334. // Methods:
  7335. void ApplyAttributes();
  7336. void DrawDebugGeometry() const;
  7337. void DrawDebugGeometry(DebugRenderer, bool);
  7338. Variant GetAttribute(const String&) const;
  7339. ValueAnimation GetAttributeAnimation(const String&) const;
  7340. float GetAttributeAnimationSpeed(const String&) const;
  7341. float GetAttributeAnimationTime(const String&) const;
  7342. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7343. Variant GetAttributeDefault(const String&) const;
  7344. bool GetInterceptNetworkUpdate(const String&) const;
  7345. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7346. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7347. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7348. bool Load(File, bool = false);
  7349. bool Load(VectorBuffer&, bool = false);
  7350. bool LoadXML(const XMLElement&, bool = false);
  7351. void MarkNetworkUpdate() const;
  7352. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7353. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7354. void Remove();
  7355. void RemoveAttributeAnimation(const String&);
  7356. void RemoveInstanceDefault();
  7357. void RemoveObjectAnimation();
  7358. void ResetToDefault();
  7359. bool Save(File) const;
  7360. bool Save(VectorBuffer&) const;
  7361. bool SaveXML(XMLElement&) const;
  7362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7363. void SetAnimationTime(float);
  7364. bool SetAttribute(const String&, const Variant&);
  7365. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7366. void SetAttributeAnimationSpeed(const String&, float);
  7367. void SetAttributeAnimationTime(const String&, float);
  7368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7369. void SetInterceptNetworkUpdate(const String&, bool);
  7370. // Properties:
  7371. bool allowSleeping;
  7372. bool animationEnabled;
  7373. /* readonly */
  7374. Array<Variant> attributeDefaults;
  7375. /* readonly */
  7376. Array<AttributeInfo> attributeInfos;
  7377. Array<Variant> attributes;
  7378. bool autoClearForces;
  7379. /* readonly */
  7380. String category;
  7381. bool continuousPhysics;
  7382. bool drawAabb;
  7383. bool drawCenterOfMass;
  7384. bool drawJoint;
  7385. bool drawPair;
  7386. bool drawShape;
  7387. bool enabled;
  7388. /* readonly */
  7389. bool enabledEffective;
  7390. Vector2 gravity;
  7391. /* readonly */
  7392. uint id;
  7393. /* readonly */
  7394. Node node;
  7395. /* readonly */
  7396. uint numAttributes;
  7397. ObjectAnimation objectAnimation;
  7398. uint positionIterations;
  7399. /* readonly */
  7400. int refs;
  7401. bool subStepping;
  7402. bool temporary;
  7403. /* readonly */
  7404. StringHash type;
  7405. /* readonly */
  7406. String typeName;
  7407. bool updateEnabled;
  7408. uint velocityIterations;
  7409. bool warmStarting;
  7410. /* readonly */
  7411. int weakRefs;
  7412. };
  7413. class Plane
  7414. {
  7415. // Methods:
  7416. void Define(const Vector3&, const Vector3&);
  7417. void Define(const Vector3&, const Vector3&, const Vector3&);
  7418. void Define(const Vector4&);
  7419. float Distance(const Vector3&) const;
  7420. Vector3 Project(const Vector3&) const;
  7421. Vector3 Reflect(const Vector3&) const;
  7422. Vector4 ToVector4() const;
  7423. void Transform(const Matrix3&);
  7424. void Transform(const Matrix3x4&);
  7425. void Transform(const Matrix4&);
  7426. Plane Transformed(const Matrix3&) const;
  7427. Plane Transformed(const Matrix3x4&) const;
  7428. Plane Transformed(const Matrix4&) const;
  7429. // Properties:
  7430. Vector3 absNormal;
  7431. float d;
  7432. Vector3 normal;
  7433. /* readonly */
  7434. Matrix3x4 reflectionMatrix;
  7435. };
  7436. class Polyhedron
  7437. {
  7438. // Methods:
  7439. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7440. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7441. void AddFace(const Array<Vector3>);
  7442. void Clear();
  7443. void Clip(const BoundingBox&);
  7444. void Clip(const Frustum&);
  7445. void Define(const BoundingBox&);
  7446. void Define(const Frustum&);
  7447. void Transform(const Matrix3&);
  7448. void Transform(const Matrix3x4&);
  7449. Polyhedron Transformed(const Matrix3&) const;
  7450. Polyhedron Transformed(const Matrix3x4&) const;
  7451. // Properties:
  7452. /* readonly */
  7453. Array<Array<Vector3>> face;
  7454. /* readonly */
  7455. uint numFaces;
  7456. };
  7457. class PropertySet2D
  7458. {
  7459. // Methods:
  7460. bool HasProperty(const String&) const;
  7461. const String& GetProperty(const String&) const;
  7462. // Properties:
  7463. /* readonly */
  7464. int refs;
  7465. /* readonly */
  7466. int weakRefs;
  7467. };
  7468. class Quaternion
  7469. {
  7470. // Methods:
  7471. float DotProduct(const Quaternion&) const;
  7472. bool Equals(const Quaternion&) const;
  7473. void FromAngleAxis(float, const Vector3&);
  7474. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7475. void FromEulerAngles(float, float, float);
  7476. bool FromLookRotation(const Vector3&, const Vector3&);
  7477. void FromRotationTo(const Vector3&, const Vector3&);
  7478. Quaternion Inverse() const;
  7479. bool IsNaN() const;
  7480. Quaternion Nlerp(Quaternion, float, bool) const;
  7481. void Normalize();
  7482. Quaternion Normalized() const;
  7483. Quaternion Slerp(Quaternion, float) const;
  7484. String ToString() const;
  7485. // Properties:
  7486. /* readonly */
  7487. Vector3 eulerAngles;
  7488. /* readonly */
  7489. float pitch;
  7490. /* readonly */
  7491. float roll;
  7492. float w;
  7493. float x;
  7494. float y;
  7495. /* readonly */
  7496. float yaw;
  7497. float z;
  7498. };
  7499. class Ray
  7500. {
  7501. // Methods:
  7502. Vector3 ClosestPoint(const Ray&) const;
  7503. void Define(const Vector3&, const Vector3&);
  7504. float Distance(const Vector3&) const;
  7505. float HitDistance(const BoundingBox&) const;
  7506. float HitDistance(const Frustum&, bool = true) const;
  7507. float HitDistance(const Plane&) const;
  7508. float HitDistance(const Sphere&) const;
  7509. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7510. Vector3 Project(const Vector3&) const;
  7511. Ray Transformed(const Matrix3x4&) const;
  7512. // Properties:
  7513. Vector3 direction;
  7514. Vector3 origin;
  7515. };
  7516. class RayQueryResult
  7517. {
  7518. // Properties:
  7519. float distance;
  7520. /* readonly */
  7521. Drawable drawable;
  7522. /* readonly */
  7523. Node node;
  7524. Vector3 normal;
  7525. Vector3 position;
  7526. uint subObject;
  7527. Vector2 textureUV;
  7528. };
  7529. class Rect
  7530. {
  7531. // Methods:
  7532. void Clear();
  7533. void Clip(const Rect&);
  7534. void Define(const Vector2&);
  7535. void Define(const Vector2&, const Vector2&);
  7536. bool Defined() const;
  7537. bool Equals(const Rect&) const;
  7538. Intersection IsInside(const Vector2&) const;
  7539. void Merge(const Rect&);
  7540. void Merge(const Vector2&);
  7541. Vector4 ToVector4() const;
  7542. // Properties:
  7543. float bottom;
  7544. /* readonly */
  7545. Vector2 center;
  7546. /* readonly */
  7547. Vector2 halfSize;
  7548. float left;
  7549. Vector2 max;
  7550. Vector2 min;
  7551. float right;
  7552. /* readonly */
  7553. Vector2 size;
  7554. float top;
  7555. };
  7556. class RefCounted
  7557. {
  7558. // Properties:
  7559. /* readonly */
  7560. int refs;
  7561. /* readonly */
  7562. int weakRefs;
  7563. };
  7564. class RenderPath
  7565. {
  7566. // Methods:
  7567. void AddCommand(const RenderPathCommand&);
  7568. void AddRenderTarget(const RenderTargetInfo&);
  7569. bool Append(XMLFile);
  7570. RenderPath Clone();
  7571. void InsertCommand(uint, const RenderPathCommand&);
  7572. bool Load(XMLFile);
  7573. void RemoveCommand(uint);
  7574. void RemoveCommands(const String&);
  7575. void RemoveRenderTarget(const String&);
  7576. void RemoveRenderTarget(uint);
  7577. void RemoveRenderTargts(const String&);
  7578. void SetEnabled(const String&, bool);
  7579. void ToggleEnabled(const String&);
  7580. // Properties:
  7581. Array<RenderPathCommand> commands;
  7582. /* readonly */
  7583. uint numCommands;
  7584. /* readonly */
  7585. uint numRenderTargets;
  7586. /* readonly */
  7587. int refs;
  7588. Array<RenderTargetInfo> renderTargets;
  7589. Array<Variant> shaderParameters;
  7590. /* readonly */
  7591. int weakRefs;
  7592. };
  7593. class RenderPathCommand
  7594. {
  7595. // Methods:
  7596. void RemoveShaderParameter(const String&);
  7597. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7598. // Properties:
  7599. BlendMode blendMode;
  7600. Color clearColor;
  7601. float clearDepth;
  7602. uint clearFlags;
  7603. uint clearStencil;
  7604. String depthStencilName;
  7605. bool enabled;
  7606. bool markToStencil;
  7607. String metadata;
  7608. uint numOutputs;
  7609. Array<CubeMapFace> outputFaces;
  7610. Array<String> outputNames;
  7611. String pass;
  7612. String pixelShaderDefines;
  7613. String pixelShaderName;
  7614. Array<Variant> shaderParameters;
  7615. RenderCommandSortMode sortMode;
  7616. String tag;
  7617. Array<String> textureNames;
  7618. RenderCommandType type;
  7619. bool useFogColor;
  7620. bool useLitBase;
  7621. bool vertexLights;
  7622. String vertexShaderDefines;
  7623. String vertexShaderName;
  7624. };
  7625. class RenderSurface
  7626. {
  7627. // Methods:
  7628. void QueueUpdate();
  7629. // Properties:
  7630. /* readonly */
  7631. int height;
  7632. RenderSurface linkedDepthStencil;
  7633. RenderSurface linkedRenderTarget;
  7634. uint numViewports;
  7635. /* readonly */
  7636. Texture parentTexture;
  7637. RenderSurfaceUpdateMode updateMode;
  7638. /* readonly */
  7639. TextureUsage usage;
  7640. Array<Viewport> viewports;
  7641. /* readonly */
  7642. int width;
  7643. };
  7644. class RenderTargetInfo
  7645. {
  7646. // Properties:
  7647. bool cubemap;
  7648. bool enabled;
  7649. bool filtered;
  7650. uint format;
  7651. String name;
  7652. bool persistent;
  7653. bool sRGB;
  7654. Vector2 size;
  7655. RenderTargetSizeMode sizeMode;
  7656. String tag;
  7657. };
  7658. class Renderer
  7659. {
  7660. // Methods:
  7661. void DrawDebugGeometry(bool) const;
  7662. void ReloadShaders() const;
  7663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7664. void SetDefaultRenderPath(XMLFile);
  7665. // Properties:
  7666. /* readonly */
  7667. String category;
  7668. /* readonly */
  7669. Material defaultLightRamp;
  7670. /* readonly */
  7671. Material defaultLightSpot;
  7672. /* readonly */
  7673. Material defaultMaterial;
  7674. RenderPath defaultRenderPath;
  7675. /* readonly */
  7676. Zone defaultZone;
  7677. bool drawShadows;
  7678. bool dynamicInstancing;
  7679. bool hdrRendering;
  7680. int materialQuality;
  7681. int maxOccluderTriangles;
  7682. int maxShadowMaps;
  7683. int maxSortedInstances;
  7684. int minInstances;
  7685. float mobileShadowBiasAdd;
  7686. float mobileShadowBiasMul;
  7687. /* readonly */
  7688. uint numBatches;
  7689. /* readonly */
  7690. Array<uint> numGeometries;
  7691. /* readonly */
  7692. Array<uint> numLights;
  7693. /* readonly */
  7694. Array<uint> numOccluders;
  7695. /* readonly */
  7696. uint numPrimitives;
  7697. /* readonly */
  7698. Array<uint> numShadowMaps;
  7699. uint numViewports;
  7700. /* readonly */
  7701. uint numViews;
  7702. float occluderSizeThreshold;
  7703. int occlusionBufferSize;
  7704. /* readonly */
  7705. int refs;
  7706. bool reuseShadowMaps;
  7707. int shadowMapSize;
  7708. int shadowQuality;
  7709. bool specularLighting;
  7710. int textureAnisotropy;
  7711. TextureFilterMode textureFilterMode;
  7712. int textureQuality;
  7713. bool threadedOcclusion;
  7714. /* readonly */
  7715. StringHash type;
  7716. /* readonly */
  7717. String typeName;
  7718. Array<Viewport> viewports;
  7719. /* readonly */
  7720. int weakRefs;
  7721. };
  7722. class Resource
  7723. {
  7724. // Methods:
  7725. bool Load(File);
  7726. bool Load(VectorBuffer&);
  7727. bool Save(File) const;
  7728. bool Save(VectorBuffer&) const;
  7729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7730. // Properties:
  7731. /* readonly */
  7732. String category;
  7733. /* readonly */
  7734. uint memoryUse;
  7735. String name;
  7736. /* readonly */
  7737. int refs;
  7738. /* readonly */
  7739. StringHash type;
  7740. /* readonly */
  7741. String typeName;
  7742. /* readonly */
  7743. uint useTimer;
  7744. /* readonly */
  7745. int weakRefs;
  7746. };
  7747. class ResourceCache
  7748. {
  7749. // Methods:
  7750. bool AddManualResource(Resource);
  7751. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7752. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7753. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7754. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7755. bool Exists(const String&) const;
  7756. Resource GetExistingResource(StringHash, const String&);
  7757. Resource GetExistingResource(const String&, const String&);
  7758. File GetFile(const String&);
  7759. String GetPreferredResourceDir(const String&) const;
  7760. Resource GetResource(StringHash, const String&, bool = true);
  7761. Resource GetResource(const String&, const String&, bool = true);
  7762. String GetResourceFileName(const String&) const;
  7763. void ReleaseAllResources(bool = false);
  7764. void ReleaseResource(const String&, const String&, bool = false);
  7765. void ReleaseResources(StringHash, bool = false);
  7766. void ReleaseResources(const String&, bool = false);
  7767. void ReleaseResources(const String&, const String&, bool = false);
  7768. bool ReloadResource(Resource);
  7769. void ReloadResourceWithDependencies(const String&);
  7770. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7771. void RemovePackageFile(const String&, bool = true, bool = false);
  7772. void RemoveResourceDir(const String&);
  7773. String SanitateResourceDirName(const String&) const;
  7774. String SanitateResourceName(const String&) const;
  7775. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7776. // Properties:
  7777. bool autoReloadResources;
  7778. /* readonly */
  7779. String category;
  7780. int finishBackgroundResourcesMs;
  7781. Array<uint64> memoryBudget;
  7782. /* readonly */
  7783. Array<uint64> memoryUse;
  7784. /* readonly */
  7785. uint numBackgroundLoadResources;
  7786. /* readonly */
  7787. Array<PackageFile> packageFiles;
  7788. /* readonly */
  7789. int refs;
  7790. /* readonly */
  7791. Array<String> resourceDirs;
  7792. bool returnFailedResources;
  7793. /* readonly */
  7794. bool seachPackagesFirst;
  7795. /* writeonly */
  7796. bool searchPackagesFirst;
  7797. /* readonly */
  7798. uint64 totalMemoryUse;
  7799. /* readonly */
  7800. StringHash type;
  7801. /* readonly */
  7802. String typeName;
  7803. /* readonly */
  7804. int weakRefs;
  7805. };
  7806. class ResourceRef
  7807. {
  7808. // Properties:
  7809. String name;
  7810. StringHash type;
  7811. };
  7812. class ResourceRefList
  7813. {
  7814. // Methods:
  7815. void Resize(uint);
  7816. // Properties:
  7817. /* readonly */
  7818. bool empty;
  7819. /* readonly */
  7820. uint length;
  7821. Array<String> names;
  7822. StringHash type;
  7823. };
  7824. class RigidBody
  7825. {
  7826. // Methods:
  7827. void Activate();
  7828. void ApplyAttributes();
  7829. void ApplyForce(const Vector3&);
  7830. void ApplyForce(const Vector3&, const Vector3&);
  7831. void ApplyImpulse(const Vector3&);
  7832. void ApplyImpulse(const Vector3&, const Vector3&);
  7833. void ApplyTorque(const Vector3&);
  7834. void ApplyTorqueImpulse(const Vector3&);
  7835. void DisableMassUpdate();
  7836. void DrawDebugGeometry(DebugRenderer, bool);
  7837. void EnableMassUpdate();
  7838. Variant GetAttribute(const String&) const;
  7839. ValueAnimation GetAttributeAnimation(const String&) const;
  7840. float GetAttributeAnimationSpeed(const String&) const;
  7841. float GetAttributeAnimationTime(const String&) const;
  7842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7843. Variant GetAttributeDefault(const String&) const;
  7844. bool GetInterceptNetworkUpdate(const String&) const;
  7845. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7846. bool Load(File, bool = false);
  7847. bool Load(VectorBuffer&, bool = false);
  7848. bool LoadXML(const XMLElement&, bool = false);
  7849. void MarkNetworkUpdate() const;
  7850. void ReAddBodyToWorld();
  7851. void Remove();
  7852. void RemoveAttributeAnimation(const String&);
  7853. void RemoveInstanceDefault();
  7854. void RemoveObjectAnimation();
  7855. void ResetForces();
  7856. void ResetToDefault();
  7857. bool Save(File) const;
  7858. bool Save(VectorBuffer&) const;
  7859. bool SaveXML(XMLElement&) const;
  7860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7861. void SetAnimationTime(float);
  7862. bool SetAttribute(const String&, const Variant&);
  7863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7864. void SetAttributeAnimationSpeed(const String&, float);
  7865. void SetAttributeAnimationTime(const String&, float);
  7866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7867. void SetCollisionLayerAndMask(uint, uint);
  7868. void SetInterceptNetworkUpdate(const String&, bool);
  7869. void SetTransform(const Vector3&, const Quaternion&);
  7870. // Properties:
  7871. /* readonly */
  7872. bool active;
  7873. float angularDamping;
  7874. Vector3 angularFactor;
  7875. float angularRestThreshold;
  7876. Vector3 angularVelocity;
  7877. bool animationEnabled;
  7878. Vector3 anisotropicFriction;
  7879. /* readonly */
  7880. Array<Variant> attributeDefaults;
  7881. /* readonly */
  7882. Array<AttributeInfo> attributeInfos;
  7883. Array<Variant> attributes;
  7884. /* readonly */
  7885. String category;
  7886. float ccdMotionThreshold;
  7887. float ccdRadius;
  7888. /* readonly */
  7889. Vector3 centerOfMass;
  7890. /* readonly */
  7891. Array<RigidBody> collidingBodies;
  7892. CollisionEventMode collisionEventMode;
  7893. uint collisionLayer;
  7894. uint collisionMask;
  7895. float contactProcessingThreshold;
  7896. bool enabled;
  7897. /* readonly */
  7898. bool enabledEffective;
  7899. float friction;
  7900. Vector3 gravityOverride;
  7901. /* readonly */
  7902. uint id;
  7903. bool kinematic;
  7904. float linearDamping;
  7905. Vector3 linearFactor;
  7906. float linearRestThreshold;
  7907. Vector3 linearVelocity;
  7908. float mass;
  7909. /* readonly */
  7910. Node node;
  7911. /* readonly */
  7912. uint numAttributes;
  7913. ObjectAnimation objectAnimation;
  7914. Vector3 position;
  7915. /* readonly */
  7916. int refs;
  7917. float restitution;
  7918. float rollingFriction;
  7919. Quaternion rotation;
  7920. bool temporary;
  7921. bool trigger;
  7922. /* readonly */
  7923. StringHash type;
  7924. /* readonly */
  7925. String typeName;
  7926. bool useGravity;
  7927. /* readonly */
  7928. int weakRefs;
  7929. };
  7930. class RigidBody2D
  7931. {
  7932. // Methods:
  7933. void ApplyAngularImpulse(float, bool);
  7934. void ApplyAttributes();
  7935. void ApplyForce(const Vector2&, const Vector2&, bool);
  7936. void ApplyForceToCenter(const Vector2&, bool);
  7937. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7938. void ApplyTorque(float, bool);
  7939. void DrawDebugGeometry(DebugRenderer, bool);
  7940. Variant GetAttribute(const String&) const;
  7941. ValueAnimation GetAttributeAnimation(const String&) const;
  7942. float GetAttributeAnimationSpeed(const String&) const;
  7943. float GetAttributeAnimationTime(const String&) const;
  7944. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7945. Variant GetAttributeDefault(const String&) const;
  7946. bool GetInterceptNetworkUpdate(const String&) const;
  7947. bool Load(File, bool = false);
  7948. bool Load(VectorBuffer&, bool = false);
  7949. bool LoadXML(const XMLElement&, bool = false);
  7950. void MarkNetworkUpdate() const;
  7951. void Remove();
  7952. void RemoveAttributeAnimation(const String&);
  7953. void RemoveInstanceDefault();
  7954. void RemoveObjectAnimation();
  7955. void ResetToDefault();
  7956. bool Save(File) const;
  7957. bool Save(VectorBuffer&) const;
  7958. bool SaveXML(XMLElement&) const;
  7959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7960. void SetAnimationTime(float);
  7961. bool SetAttribute(const String&, const Variant&);
  7962. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7963. void SetAttributeAnimationSpeed(const String&, float);
  7964. void SetAttributeAnimationTime(const String&, float);
  7965. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7966. void SetInterceptNetworkUpdate(const String&, bool);
  7967. // Properties:
  7968. bool allowSleep;
  7969. float angularDamping;
  7970. bool animationEnabled;
  7971. /* readonly */
  7972. Array<Variant> attributeDefaults;
  7973. /* readonly */
  7974. Array<AttributeInfo> attributeInfos;
  7975. Array<Variant> attributes;
  7976. bool awake;
  7977. BodyType2D bodyType;
  7978. bool bullet;
  7979. /* readonly */
  7980. String category;
  7981. bool enabled;
  7982. /* readonly */
  7983. bool enabledEffective;
  7984. bool fixedRotation;
  7985. float gravityScale;
  7986. /* readonly */
  7987. uint id;
  7988. float inertia;
  7989. float linearDamping;
  7990. Vector2 linearVelocity;
  7991. float mass;
  7992. Vector2 massCenter;
  7993. /* readonly */
  7994. Node node;
  7995. /* readonly */
  7996. uint numAttributes;
  7997. ObjectAnimation objectAnimation;
  7998. /* readonly */
  7999. int refs;
  8000. bool temporary;
  8001. /* readonly */
  8002. StringHash type;
  8003. /* readonly */
  8004. String typeName;
  8005. bool useFixtureMass;
  8006. /* readonly */
  8007. int weakRefs;
  8008. };
  8009. class Scene
  8010. {
  8011. // Methods:
  8012. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8013. void AddRequiredPackageFile(PackageFile);
  8014. void ApplyAttributes();
  8015. void Clear(bool = true, bool = true);
  8016. void ClearRequiredPackageFiles();
  8017. Component CloneComponent(Component, CreateMode, uint = 0);
  8018. Component CloneComponent(Component, uint = 0);
  8019. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8020. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8021. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8022. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8023. Variant GetAttribute(const String&) const;
  8024. ValueAnimation GetAttributeAnimation(const String&) const;
  8025. float GetAttributeAnimationSpeed(const String&) const;
  8026. float GetAttributeAnimationTime(const String&) const;
  8027. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8028. Variant GetAttributeDefault(const String&) const;
  8029. Node GetChild(const String&, bool = false) const;
  8030. Array<Node> GetChildren(bool = false) const;
  8031. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8032. Array<Node> GetChildrenWithScript(bool = false) const;
  8033. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8034. Component GetComponent(const String&, bool = false) const;
  8035. Component GetComponent(uint) const;
  8036. Array<Component> GetComponents() const;
  8037. Array<Component> GetComponents(const String&, bool = false) const;
  8038. bool GetInterceptNetworkUpdate(const String&) const;
  8039. Node GetNode(uint) const;
  8040. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8041. Component GetParentComponent(const String&, bool = false) const;
  8042. ScriptObject GetScriptObject() const;
  8043. ScriptObject GetScriptObject(const String&) const;
  8044. bool HasComponent(const String&) const;
  8045. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8046. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8047. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8048. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8049. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8050. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8051. bool Load(File, bool = false);
  8052. bool Load(VectorBuffer&, bool = false);
  8053. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8054. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8055. bool LoadXML(File);
  8056. bool LoadXML(VectorBuffer&);
  8057. bool LoadXML(const XMLElement&, bool = false);
  8058. Vector3 LocalToWorld(const Vector3&) const;
  8059. Vector3 LocalToWorld(const Vector4&) const;
  8060. Vector2 LocalToWorld2D(const Vector2&) const;
  8061. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8062. void MarkNetworkUpdate() const;
  8063. void Pitch(float, TransformSpace = TS_LOCAL);
  8064. void RegisterVar(const String&);
  8065. void Remove();
  8066. void RemoveAllChildren();
  8067. void RemoveAllComponents();
  8068. void RemoveAttributeAnimation(const String&);
  8069. void RemoveChild(Node);
  8070. void RemoveChildren(bool, bool, bool);
  8071. void RemoveComponent(Component);
  8072. void RemoveComponent(const String&);
  8073. void RemoveComponents(bool, bool);
  8074. void RemoveComponents(const String&);
  8075. void RemoveInstanceDefault();
  8076. void RemoveObjectAnimation();
  8077. void ResetToDefault();
  8078. void Roll(float, TransformSpace = TS_LOCAL);
  8079. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8080. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8081. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8082. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8083. bool Save(File) const;
  8084. bool Save(VectorBuffer&) const;
  8085. bool SaveXML(File, const String& = "\t");
  8086. bool SaveXML(VectorBuffer&, const String& = "\t");
  8087. bool SaveXML(XMLElement&) const;
  8088. void Scale(const Vector3&);
  8089. void Scale(float);
  8090. void Scale2D(const Vector2&);
  8091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8092. void SetAnimationTime(float);
  8093. bool SetAttribute(const String&, const Variant&);
  8094. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8095. void SetAttributeAnimationSpeed(const String&, float);
  8096. void SetAttributeAnimationTime(const String&, float);
  8097. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8098. void SetInterceptNetworkUpdate(const String&, bool);
  8099. void SetPosition2D(float, float);
  8100. void SetScale(float);
  8101. void SetScale2D(float, float);
  8102. void SetTransform(const Vector3&, const Quaternion&);
  8103. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8104. void SetTransform(const Vector3&, const Quaternion&, float);
  8105. void SetTransform2D(const Vector2&, float);
  8106. void SetTransform2D(const Vector2&, float, const Vector2&);
  8107. void SetTransform2D(const Vector2&, float, float);
  8108. void SetWorldTransform(const Vector3&, const Quaternion&);
  8109. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8110. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8111. void SetWorldTransform2D(const Vector2&, float);
  8112. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8113. void SetWorldTransform2D(const Vector2&, float, float);
  8114. void StopAsyncLoading();
  8115. const String& GetVarName(StringHash) const;
  8116. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8117. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8118. void UnregisterAllVars(const String&);
  8119. void UnregisterVar(const String&);
  8120. void Update(float);
  8121. Vector3 WorldToLocal(const Vector3&) const;
  8122. Vector3 WorldToLocal(const Vector4&) const;
  8123. Vector2 WorldToLocal2D(const Vector2&) const;
  8124. void Yaw(float, TransformSpace = TS_LOCAL);
  8125. // Properties:
  8126. bool animationEnabled;
  8127. /* readonly */
  8128. LoadMode asyncLoadMode;
  8129. /* readonly */
  8130. bool asyncLoading;
  8131. int asyncLoadingMs;
  8132. /* readonly */
  8133. float asyncProgress;
  8134. /* readonly */
  8135. Array<Variant> attributeDefaults;
  8136. /* readonly */
  8137. Array<AttributeInfo> attributeInfos;
  8138. Array<Variant> attributes;
  8139. /* readonly */
  8140. String category;
  8141. /* readonly */
  8142. uint checksum;
  8143. /* readonly */
  8144. Array<Node> children;
  8145. /* readonly */
  8146. Array<Component> components;
  8147. /* readonly */
  8148. DebugRenderer debugRenderer;
  8149. Vector3 direction;
  8150. float elapsedTime;
  8151. /* readonly */
  8152. String fileName;
  8153. /* readonly */
  8154. uint id;
  8155. String name;
  8156. /* readonly */
  8157. uint numAllChildren;
  8158. /* readonly */
  8159. uint numAttributes;
  8160. /* readonly */
  8161. uint numChildren;
  8162. /* readonly */
  8163. uint numComponents;
  8164. ObjectAnimation objectAnimation;
  8165. /* readonly */
  8166. Octree octree;
  8167. Node parent;
  8168. /* readonly */
  8169. PhysicsWorld physicsWorld;
  8170. /* readonly */
  8171. PhysicsWorld2D physicsWorld2D;
  8172. Vector3 position;
  8173. Vector2 position2D;
  8174. /* readonly */
  8175. int refs;
  8176. /* readonly */
  8177. Array<PackageFile> requiredPackageFiles;
  8178. /* readonly */
  8179. Vector3 right;
  8180. Quaternion rotation;
  8181. float rotation2D;
  8182. Vector3 scale;
  8183. Vector2 scale2D;
  8184. /* readonly */
  8185. ScriptObject scriptObject;
  8186. float smoothingConstant;
  8187. float snapThreshold;
  8188. bool temporary;
  8189. float timeScale;
  8190. /* readonly */
  8191. Matrix3x4 transform;
  8192. /* readonly */
  8193. StringHash type;
  8194. /* readonly */
  8195. String typeName;
  8196. /* readonly */
  8197. Vector3 up;
  8198. bool updateEnabled;
  8199. /* readonly */
  8200. VariantMap vars;
  8201. /* readonly */
  8202. int weakRefs;
  8203. Vector3 worldDirection;
  8204. Vector3 worldPosition;
  8205. Vector2 worldPosition2D;
  8206. /* readonly */
  8207. Vector3 worldRight;
  8208. Quaternion worldRotation;
  8209. float worldRotation2D;
  8210. Vector3 worldScale;
  8211. Vector2 worldScale2D;
  8212. /* readonly */
  8213. Matrix3x4 worldTransform;
  8214. /* readonly */
  8215. Vector3 worldUp;
  8216. };
  8217. class Script
  8218. {
  8219. // Methods:
  8220. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8221. bool Execute(const String&);
  8222. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8223. // Properties:
  8224. /* readonly */
  8225. String category;
  8226. Scene defaultScene;
  8227. ScriptFile defaultScriptFile;
  8228. bool executeConsoleCommands;
  8229. /* readonly */
  8230. int refs;
  8231. /* readonly */
  8232. StringHash type;
  8233. /* readonly */
  8234. String typeName;
  8235. /* readonly */
  8236. int weakRefs;
  8237. };
  8238. class ScriptFile
  8239. {
  8240. // Methods:
  8241. void ClearDelayedExecute(const String& = String ( ));
  8242. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8243. bool Execute(const String&, const Array<Variant> = null);
  8244. bool Load(File);
  8245. bool Load(VectorBuffer&);
  8246. bool Save(File) const;
  8247. bool Save(VectorBuffer&) const;
  8248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8249. // Properties:
  8250. /* readonly */
  8251. String category;
  8252. /* readonly */
  8253. bool compiled;
  8254. /* readonly */
  8255. uint memoryUse;
  8256. String name;
  8257. /* readonly */
  8258. int refs;
  8259. /* readonly */
  8260. StringHash type;
  8261. /* readonly */
  8262. String typeName;
  8263. /* readonly */
  8264. uint useTimer;
  8265. /* readonly */
  8266. int weakRefs;
  8267. };
  8268. class ScriptInstance
  8269. {
  8270. // Methods:
  8271. void ApplyAttributes();
  8272. void ClearDelayedExecute(const String& = String ( ));
  8273. bool CreateObject(ScriptFile, const String&);
  8274. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8275. void DrawDebugGeometry(DebugRenderer, bool);
  8276. bool Execute(const String&, const Array<Variant> = null);
  8277. Variant GetAttribute(const String&) const;
  8278. ValueAnimation GetAttributeAnimation(const String&) const;
  8279. float GetAttributeAnimationSpeed(const String&) const;
  8280. float GetAttributeAnimationTime(const String&) const;
  8281. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8282. Variant GetAttributeDefault(const String&) const;
  8283. bool GetInterceptNetworkUpdate(const String&) const;
  8284. bool HasMethod(const String&) const;
  8285. bool IsA(const String&) const;
  8286. bool Load(File, bool = false);
  8287. bool Load(VectorBuffer&, bool = false);
  8288. bool LoadXML(const XMLElement&, bool = false);
  8289. void MarkNetworkUpdate() const;
  8290. void Remove();
  8291. void RemoveAttributeAnimation(const String&);
  8292. void RemoveInstanceDefault();
  8293. void RemoveObjectAnimation();
  8294. void ResetToDefault();
  8295. bool Save(File) const;
  8296. bool Save(VectorBuffer&) const;
  8297. bool SaveXML(XMLElement&) const;
  8298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8299. void SetAnimationTime(float);
  8300. bool SetAttribute(const String&, const Variant&);
  8301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8302. void SetAttributeAnimationSpeed(const String&, float);
  8303. void SetAttributeAnimationTime(const String&, float);
  8304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8305. void SetInterceptNetworkUpdate(const String&, bool);
  8306. // Properties:
  8307. bool animationEnabled;
  8308. /* readonly */
  8309. Array<Variant> attributeDefaults;
  8310. /* readonly */
  8311. Array<AttributeInfo> attributeInfos;
  8312. Array<Variant> attributes;
  8313. /* readonly */
  8314. String category;
  8315. String className;
  8316. bool enabled;
  8317. /* readonly */
  8318. bool enabledEffective;
  8319. /* readonly */
  8320. uint id;
  8321. /* readonly */
  8322. Node node;
  8323. /* readonly */
  8324. uint numAttributes;
  8325. ObjectAnimation objectAnimation;
  8326. /* readonly */
  8327. int refs;
  8328. ScriptFile scriptFile;
  8329. /* readonly */
  8330. ScriptObject scriptObject;
  8331. bool temporary;
  8332. /* readonly */
  8333. StringHash type;
  8334. /* readonly */
  8335. String typeName;
  8336. /* readonly */
  8337. int weakRefs;
  8338. };
  8339. class ScriptObject
  8340. {
  8341. };
  8342. class ScrollBar
  8343. {
  8344. // Methods:
  8345. void AddChild(UIElement);
  8346. void ApplyAttributes();
  8347. void BringToFront();
  8348. void ChangeValue(float);
  8349. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8350. void DisableLayoutUpdate();
  8351. IntVector2 ElementToScreen(const IntVector2&);
  8352. void EnableLayoutUpdate();
  8353. uint FindChild(UIElement) const;
  8354. Variant GetAttribute(const String&) const;
  8355. ValueAnimation GetAttributeAnimation(const String&) const;
  8356. float GetAttributeAnimationSpeed(const String&) const;
  8357. float GetAttributeAnimationTime(const String&) const;
  8358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8359. Variant GetAttributeDefault(const String&) const;
  8360. UIElement GetChild(const String&, bool = false) const;
  8361. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8362. Array<UIElement> GetChildren(bool = false) const;
  8363. UIElement GetElementEventSender() const;
  8364. bool GetInterceptNetworkUpdate(const String&) const;
  8365. uint GetNumChildren(bool) const;
  8366. void InsertChild(uint, UIElement);
  8367. bool IsInside(IntVector2, bool);
  8368. bool IsInsideCombined(IntVector2, bool);
  8369. bool Load(File, bool = false);
  8370. bool Load(VectorBuffer&, bool = false);
  8371. bool LoadChildXML(XMLFile, XMLFile = null);
  8372. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8373. bool LoadXML(File);
  8374. bool LoadXML(VectorBuffer&);
  8375. bool LoadXML(XMLFile, XMLFile);
  8376. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8377. bool LoadXML(const XMLElement&, bool = false);
  8378. void MarkNetworkUpdate() const;
  8379. void Remove();
  8380. void RemoveAllChildren();
  8381. void RemoveAttributeAnimation(const String&);
  8382. void RemoveChild(UIElement, uint = 0);
  8383. void RemoveChild(uint);
  8384. void RemoveInstanceDefault();
  8385. void RemoveObjectAnimation();
  8386. void ResetDeepEnabled();
  8387. void ResetToDefault();
  8388. bool Save(File) const;
  8389. bool Save(VectorBuffer&) const;
  8390. bool SaveXML(File, const String& = "\t");
  8391. bool SaveXML(VectorBuffer&, const String& = "\t");
  8392. bool SaveXML(XMLElement&) const;
  8393. IntVector2 ScreenToElement(const IntVector2&);
  8394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8395. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8396. void SetAnimationTime(float);
  8397. bool SetAttribute(const String&, const Variant&);
  8398. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8399. void SetAttributeAnimationSpeed(const String&, float);
  8400. void SetAttributeAnimationTime(const String&, float);
  8401. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8402. void SetDeepEnabled(bool);
  8403. void SetEnabledRecursive(bool);
  8404. void SetFixedHeight(int);
  8405. void SetFixedSize(int, int);
  8406. void SetFixedWidth(int);
  8407. void SetInterceptNetworkUpdate(const String&, bool);
  8408. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8409. void SetMaxSize(int, int);
  8410. void SetMinSize(int, int);
  8411. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8412. void SetPosition(int, int);
  8413. void SetSize(int, int);
  8414. bool SetStyle(const String&, XMLFile = null);
  8415. bool SetStyle(const XMLElement&);
  8416. bool SetStyleAuto(XMLFile = null);
  8417. void StepBack();
  8418. void StepForward();
  8419. void UpdateLayout();
  8420. const Variant& GetVar(const StringHash&);
  8421. // Properties:
  8422. bool animationEnabled;
  8423. /* readonly */
  8424. Array<Variant> attributeDefaults;
  8425. /* readonly */
  8426. Array<AttributeInfo> attributeInfos;
  8427. Array<Variant> attributes;
  8428. /* readonly */
  8429. Button backButton;
  8430. bool bringToBack;
  8431. bool bringToFront;
  8432. /* readonly */
  8433. String category;
  8434. /* readonly */
  8435. IntVector2 childOffset;
  8436. /* readonly */
  8437. Array<UIElement> children;
  8438. IntRect clipBorder;
  8439. bool clipChildren;
  8440. /* writeonly */
  8441. Color color;
  8442. /* readonly */
  8443. bool colorGradient;
  8444. Array<Color> colors;
  8445. /* readonly */
  8446. IntRect combinedScreenRect;
  8447. XMLFile defaultStyle;
  8448. /* readonly */
  8449. float derivedOpacity;
  8450. /* readonly */
  8451. uint dragButtonCombo;
  8452. /* readonly */
  8453. int dragButtonCount;
  8454. uint dragDropMode;
  8455. bool editable;
  8456. /* readonly */
  8457. float effectiveScrollStep;
  8458. bool elementEventSender;
  8459. bool enabled;
  8460. /* readonly */
  8461. bool enabledSelf;
  8462. /* readonly */
  8463. bool fixedHeight;
  8464. /* readonly */
  8465. bool fixedSize;
  8466. /* readonly */
  8467. bool fixedWidth;
  8468. bool focus;
  8469. FocusMode focusMode;
  8470. /* readonly */
  8471. Button forwardButton;
  8472. int height;
  8473. HorizontalAlignment horizontalAlignment;
  8474. /* readonly */
  8475. bool hovering;
  8476. int indent;
  8477. int indentSpacing;
  8478. /* readonly */
  8479. int indentWidth;
  8480. bool internal;
  8481. IntRect layoutBorder;
  8482. Vector2 layoutFlexScale;
  8483. LayoutMode layoutMode;
  8484. int layoutSpacing;
  8485. int maxHeight;
  8486. IntVector2 maxSize;
  8487. int maxWidth;
  8488. int minHeight;
  8489. IntVector2 minSize;
  8490. int minWidth;
  8491. String name;
  8492. /* readonly */
  8493. uint numAllChildren;
  8494. /* readonly */
  8495. uint numAttributes;
  8496. /* readonly */
  8497. uint numChildren;
  8498. ObjectAnimation objectAnimation;
  8499. float opacity;
  8500. Orientation orientation;
  8501. UIElement parent;
  8502. IntVector2 position;
  8503. int priority;
  8504. float range;
  8505. /* readonly */
  8506. int refs;
  8507. /* readonly */
  8508. UIElement root;
  8509. /* readonly */
  8510. IntVector2 screenPosition;
  8511. float scrollStep;
  8512. bool selected;
  8513. IntVector2 size;
  8514. /* readonly */
  8515. Slider slider;
  8516. bool sortChildren;
  8517. float stepFactor;
  8518. String style;
  8519. bool temporary;
  8520. TraversalMode traversalMode;
  8521. /* readonly */
  8522. StringHash type;
  8523. /* readonly */
  8524. String typeName;
  8525. bool useDerivedOpacity;
  8526. float value;
  8527. /* readonly */
  8528. VariantMap vars;
  8529. VerticalAlignment verticalAlignment;
  8530. bool visible;
  8531. /* readonly */
  8532. bool visibleEffective;
  8533. /* readonly */
  8534. int weakRefs;
  8535. int width;
  8536. };
  8537. class ScrollView
  8538. {
  8539. // Methods:
  8540. void AddChild(UIElement);
  8541. void ApplyAttributes();
  8542. void BringToFront();
  8543. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8544. void DisableLayoutUpdate();
  8545. IntVector2 ElementToScreen(const IntVector2&);
  8546. void EnableLayoutUpdate();
  8547. uint FindChild(UIElement) const;
  8548. Variant GetAttribute(const String&) const;
  8549. ValueAnimation GetAttributeAnimation(const String&) const;
  8550. float GetAttributeAnimationSpeed(const String&) const;
  8551. float GetAttributeAnimationTime(const String&) const;
  8552. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8553. Variant GetAttributeDefault(const String&) const;
  8554. UIElement GetChild(const String&, bool = false) const;
  8555. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8556. Array<UIElement> GetChildren(bool = false) const;
  8557. UIElement GetElementEventSender() const;
  8558. bool GetInterceptNetworkUpdate(const String&) const;
  8559. uint GetNumChildren(bool) const;
  8560. void InsertChild(uint, UIElement);
  8561. bool IsInside(IntVector2, bool);
  8562. bool IsInsideCombined(IntVector2, bool);
  8563. bool Load(File, bool = false);
  8564. bool Load(VectorBuffer&, bool = false);
  8565. bool LoadChildXML(XMLFile, XMLFile = null);
  8566. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8567. bool LoadXML(File);
  8568. bool LoadXML(VectorBuffer&);
  8569. bool LoadXML(XMLFile, XMLFile);
  8570. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8571. bool LoadXML(const XMLElement&, bool = false);
  8572. void MarkNetworkUpdate() const;
  8573. void Remove();
  8574. void RemoveAllChildren();
  8575. void RemoveAttributeAnimation(const String&);
  8576. void RemoveChild(UIElement, uint = 0);
  8577. void RemoveChild(uint);
  8578. void RemoveInstanceDefault();
  8579. void RemoveObjectAnimation();
  8580. void ResetDeepEnabled();
  8581. void ResetToDefault();
  8582. bool Save(File) const;
  8583. bool Save(VectorBuffer&) const;
  8584. bool SaveXML(File, const String& = "\t");
  8585. bool SaveXML(VectorBuffer&, const String& = "\t");
  8586. bool SaveXML(XMLElement&) const;
  8587. IntVector2 ScreenToElement(const IntVector2&);
  8588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8589. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8590. void SetAnimationTime(float);
  8591. bool SetAttribute(const String&, const Variant&);
  8592. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8593. void SetAttributeAnimationSpeed(const String&, float);
  8594. void SetAttributeAnimationTime(const String&, float);
  8595. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8596. void SetDeepEnabled(bool);
  8597. void SetEnabledRecursive(bool);
  8598. void SetFixedHeight(int);
  8599. void SetFixedSize(int, int);
  8600. void SetFixedWidth(int);
  8601. void SetInterceptNetworkUpdate(const String&, bool);
  8602. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8603. void SetMaxSize(int, int);
  8604. void SetMinSize(int, int);
  8605. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8606. void SetPosition(int, int);
  8607. void SetScrollBarsVisible(bool, bool);
  8608. void SetSize(int, int);
  8609. bool SetStyle(const String&, XMLFile = null);
  8610. bool SetStyle(const XMLElement&);
  8611. bool SetStyleAuto(XMLFile = null);
  8612. void SetViewPosition(int, int);
  8613. void UpdateLayout();
  8614. const Variant& GetVar(const StringHash&);
  8615. // Properties:
  8616. bool animationEnabled;
  8617. /* readonly */
  8618. Array<Variant> attributeDefaults;
  8619. /* readonly */
  8620. Array<AttributeInfo> attributeInfos;
  8621. Array<Variant> attributes;
  8622. bool autoDisableChildren;
  8623. float autoDisableThreshold;
  8624. bool bringToBack;
  8625. bool bringToFront;
  8626. /* readonly */
  8627. String category;
  8628. /* readonly */
  8629. IntVector2 childOffset;
  8630. /* readonly */
  8631. Array<UIElement> children;
  8632. IntRect clipBorder;
  8633. bool clipChildren;
  8634. /* writeonly */
  8635. Color color;
  8636. /* readonly */
  8637. bool colorGradient;
  8638. Array<Color> colors;
  8639. /* readonly */
  8640. IntRect combinedScreenRect;
  8641. UIElement contentElement;
  8642. XMLFile defaultStyle;
  8643. /* readonly */
  8644. float derivedOpacity;
  8645. /* readonly */
  8646. uint dragButtonCombo;
  8647. /* readonly */
  8648. int dragButtonCount;
  8649. uint dragDropMode;
  8650. bool editable;
  8651. bool elementEventSender;
  8652. bool enabled;
  8653. /* readonly */
  8654. bool enabledSelf;
  8655. /* readonly */
  8656. bool fixedHeight;
  8657. /* readonly */
  8658. bool fixedSize;
  8659. /* readonly */
  8660. bool fixedWidth;
  8661. bool focus;
  8662. FocusMode focusMode;
  8663. int height;
  8664. HorizontalAlignment horizontalAlignment;
  8665. /* readonly */
  8666. ScrollBar horizontalScrollBar;
  8667. /* readonly */
  8668. bool hovering;
  8669. int indent;
  8670. int indentSpacing;
  8671. /* readonly */
  8672. int indentWidth;
  8673. bool internal;
  8674. IntRect layoutBorder;
  8675. Vector2 layoutFlexScale;
  8676. LayoutMode layoutMode;
  8677. int layoutSpacing;
  8678. int maxHeight;
  8679. IntVector2 maxSize;
  8680. int maxWidth;
  8681. int minHeight;
  8682. IntVector2 minSize;
  8683. int minWidth;
  8684. String name;
  8685. /* readonly */
  8686. uint numAllChildren;
  8687. /* readonly */
  8688. uint numAttributes;
  8689. /* readonly */
  8690. uint numChildren;
  8691. ObjectAnimation objectAnimation;
  8692. float opacity;
  8693. float pageStep;
  8694. UIElement parent;
  8695. IntVector2 position;
  8696. int priority;
  8697. /* readonly */
  8698. int refs;
  8699. /* readonly */
  8700. UIElement root;
  8701. /* readonly */
  8702. IntVector2 screenPosition;
  8703. bool scrollBarsAutoVisible;
  8704. float scrollDeceleration;
  8705. /* readonly */
  8706. BorderImage scrollPanel;
  8707. float scrollSnapEpsilon;
  8708. float scrollStep;
  8709. bool selected;
  8710. IntVector2 size;
  8711. bool sortChildren;
  8712. String style;
  8713. bool temporary;
  8714. TraversalMode traversalMode;
  8715. /* readonly */
  8716. StringHash type;
  8717. /* readonly */
  8718. String typeName;
  8719. bool useDerivedOpacity;
  8720. /* readonly */
  8721. VariantMap vars;
  8722. VerticalAlignment verticalAlignment;
  8723. /* readonly */
  8724. ScrollBar verticalScrollBar;
  8725. IntVector2 viewPosition;
  8726. bool visible;
  8727. /* readonly */
  8728. bool visibleEffective;
  8729. /* readonly */
  8730. int weakRefs;
  8731. int width;
  8732. };
  8733. class Serializable
  8734. {
  8735. // Methods:
  8736. void ApplyAttributes();
  8737. Variant GetAttribute(const String&) const;
  8738. Variant GetAttributeDefault(const String&) const;
  8739. bool GetInterceptNetworkUpdate(const String&) const;
  8740. bool Load(File, bool = false);
  8741. bool Load(VectorBuffer&, bool = false);
  8742. bool LoadXML(const XMLElement&, bool = false);
  8743. void MarkNetworkUpdate() const;
  8744. void RemoveInstanceDefault();
  8745. void ResetToDefault();
  8746. bool Save(File) const;
  8747. bool Save(VectorBuffer&) const;
  8748. bool SaveXML(XMLElement&) const;
  8749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8750. bool SetAttribute(const String&, const Variant&);
  8751. void SetInterceptNetworkUpdate(const String&, bool);
  8752. // Properties:
  8753. /* readonly */
  8754. Array<Variant> attributeDefaults;
  8755. /* readonly */
  8756. Array<AttributeInfo> attributeInfos;
  8757. Array<Variant> attributes;
  8758. /* readonly */
  8759. String category;
  8760. /* readonly */
  8761. uint numAttributes;
  8762. /* readonly */
  8763. int refs;
  8764. bool temporary;
  8765. /* readonly */
  8766. StringHash type;
  8767. /* readonly */
  8768. String typeName;
  8769. /* readonly */
  8770. int weakRefs;
  8771. };
  8772. class Serializer
  8773. {
  8774. // Methods:
  8775. uint Write(Array<uint8>);
  8776. bool WriteBool(bool);
  8777. bool WriteBoundingBox(const BoundingBox&);
  8778. bool WriteByte(int8);
  8779. bool WriteColor(const Color&);
  8780. bool WriteDouble(double);
  8781. bool WriteFileID(const String&);
  8782. bool WriteFloat(float);
  8783. bool WriteInt(int);
  8784. bool WriteIntRect(const IntRect&);
  8785. bool WriteIntVector2(const IntVector2&);
  8786. bool WriteLine(const String&);
  8787. bool WriteMatrix3(const Matrix3&);
  8788. bool WriteMatrix3x4(const Matrix3x4&);
  8789. bool WriteMatrix4(const Matrix4&);
  8790. bool WriteNetID(uint);
  8791. bool WritePackedQuaternion(const Quaternion&);
  8792. bool WritePackedVector3(const Vector3&, float);
  8793. bool WriteQuaternion(const Quaternion&);
  8794. bool WriteShort(int16);
  8795. bool WriteString(const String&);
  8796. bool WriteStringHash(const StringHash&);
  8797. bool WriteUByte(uint8);
  8798. bool WriteUInt(uint);
  8799. bool WriteUShort(uint16);
  8800. bool WriteVLE(uint);
  8801. bool WriteVariant(const Variant&);
  8802. bool WriteVariantMap(const VariantMap&);
  8803. bool WriteVector2(const Vector2&);
  8804. bool WriteVector3(const Vector3&);
  8805. bool WriteVector4(const Vector4&);
  8806. bool WriteVectorBuffer(const VectorBuffer&);
  8807. };
  8808. class Skeleton
  8809. {
  8810. // Methods:
  8811. Bone GetBone(const String&) const;
  8812. void Reset();
  8813. // Properties:
  8814. /* readonly */
  8815. Array<Bone> bones;
  8816. /* readonly */
  8817. uint numBones;
  8818. /* readonly */
  8819. Bone rootBone;
  8820. };
  8821. class Skybox
  8822. {
  8823. // Methods:
  8824. void ApplyAttributes();
  8825. void ApplyMaterialList(const String& = String ( ));
  8826. void DrawDebugGeometry(DebugRenderer, bool);
  8827. Variant GetAttribute(const String&) const;
  8828. ValueAnimation GetAttributeAnimation(const String&) const;
  8829. float GetAttributeAnimationSpeed(const String&) const;
  8830. float GetAttributeAnimationTime(const String&) const;
  8831. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8832. Variant GetAttributeDefault(const String&) const;
  8833. bool GetInterceptNetworkUpdate(const String&) const;
  8834. bool IsInView(Camera) const;
  8835. bool Load(File, bool = false);
  8836. bool Load(VectorBuffer&, bool = false);
  8837. bool LoadXML(const XMLElement&, bool = false);
  8838. void MarkNetworkUpdate() const;
  8839. void Remove();
  8840. void RemoveAttributeAnimation(const String&);
  8841. void RemoveInstanceDefault();
  8842. void RemoveObjectAnimation();
  8843. void ResetToDefault();
  8844. bool Save(File) const;
  8845. bool Save(VectorBuffer&) const;
  8846. bool SaveXML(XMLElement&) const;
  8847. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8848. void SetAnimationTime(float);
  8849. bool SetAttribute(const String&, const Variant&);
  8850. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8851. void SetAttributeAnimationSpeed(const String&, float);
  8852. void SetAttributeAnimationTime(const String&, float);
  8853. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8854. void SetInterceptNetworkUpdate(const String&, bool);
  8855. // Properties:
  8856. bool animationEnabled;
  8857. /* readonly */
  8858. Array<Variant> attributeDefaults;
  8859. /* readonly */
  8860. Array<AttributeInfo> attributeInfos;
  8861. Array<Variant> attributes;
  8862. /* readonly */
  8863. BoundingBox boundingBox;
  8864. bool castShadows;
  8865. /* readonly */
  8866. String category;
  8867. float drawDistance;
  8868. bool enabled;
  8869. /* readonly */
  8870. bool enabledEffective;
  8871. /* readonly */
  8872. uint id;
  8873. /* readonly */
  8874. bool inView;
  8875. uint lightMask;
  8876. float lodBias;
  8877. /* writeonly */
  8878. Material material;
  8879. Array<Material> materials;
  8880. uint maxLights;
  8881. Model model;
  8882. /* readonly */
  8883. Node node;
  8884. /* readonly */
  8885. uint numAttributes;
  8886. /* readonly */
  8887. uint numGeometries;
  8888. ObjectAnimation objectAnimation;
  8889. bool occludee;
  8890. bool occluder;
  8891. /* readonly */
  8892. int refs;
  8893. float shadowDistance;
  8894. uint shadowMask;
  8895. bool temporary;
  8896. /* readonly */
  8897. StringHash type;
  8898. /* readonly */
  8899. String typeName;
  8900. uint viewMask;
  8901. /* readonly */
  8902. int weakRefs;
  8903. /* readonly */
  8904. BoundingBox worldBoundingBox;
  8905. /* readonly */
  8906. Zone zone;
  8907. uint zoneMask;
  8908. };
  8909. class Slider
  8910. {
  8911. // Methods:
  8912. void AddChild(UIElement);
  8913. void ApplyAttributes();
  8914. void BringToFront();
  8915. void ChangeValue(float);
  8916. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8917. void DisableLayoutUpdate();
  8918. IntVector2 ElementToScreen(const IntVector2&);
  8919. void EnableLayoutUpdate();
  8920. uint FindChild(UIElement) const;
  8921. Variant GetAttribute(const String&) const;
  8922. ValueAnimation GetAttributeAnimation(const String&) const;
  8923. float GetAttributeAnimationSpeed(const String&) const;
  8924. float GetAttributeAnimationTime(const String&) const;
  8925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8926. Variant GetAttributeDefault(const String&) const;
  8927. UIElement GetChild(const String&, bool = false) const;
  8928. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8929. Array<UIElement> GetChildren(bool = false) const;
  8930. UIElement GetElementEventSender() const;
  8931. bool GetInterceptNetworkUpdate(const String&) const;
  8932. uint GetNumChildren(bool) const;
  8933. void InsertChild(uint, UIElement);
  8934. bool IsInside(IntVector2, bool);
  8935. bool IsInsideCombined(IntVector2, bool);
  8936. bool Load(File, bool = false);
  8937. bool Load(VectorBuffer&, bool = false);
  8938. bool LoadChildXML(XMLFile, XMLFile = null);
  8939. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8940. bool LoadXML(File);
  8941. bool LoadXML(VectorBuffer&);
  8942. bool LoadXML(XMLFile, XMLFile);
  8943. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8944. bool LoadXML(const XMLElement&, bool = false);
  8945. void MarkNetworkUpdate() const;
  8946. void Remove();
  8947. void RemoveAllChildren();
  8948. void RemoveAttributeAnimation(const String&);
  8949. void RemoveChild(UIElement, uint = 0);
  8950. void RemoveChild(uint);
  8951. void RemoveInstanceDefault();
  8952. void RemoveObjectAnimation();
  8953. void ResetDeepEnabled();
  8954. void ResetToDefault();
  8955. bool Save(File) const;
  8956. bool Save(VectorBuffer&) const;
  8957. bool SaveXML(File, const String& = "\t");
  8958. bool SaveXML(VectorBuffer&, const String& = "\t");
  8959. bool SaveXML(XMLElement&) const;
  8960. IntVector2 ScreenToElement(const IntVector2&);
  8961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8962. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8963. void SetAnimationTime(float);
  8964. bool SetAttribute(const String&, const Variant&);
  8965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8966. void SetAttributeAnimationSpeed(const String&, float);
  8967. void SetAttributeAnimationTime(const String&, float);
  8968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8969. void SetDeepEnabled(bool);
  8970. void SetEnabledRecursive(bool);
  8971. void SetFixedHeight(int);
  8972. void SetFixedSize(int, int);
  8973. void SetFixedWidth(int);
  8974. void SetFullImageRect();
  8975. void SetHoverOffset(int, int);
  8976. void SetInterceptNetworkUpdate(const String&, bool);
  8977. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8978. void SetMaxSize(int, int);
  8979. void SetMinSize(int, int);
  8980. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8981. void SetPosition(int, int);
  8982. void SetSize(int, int);
  8983. bool SetStyle(const String&, XMLFile = null);
  8984. bool SetStyle(const XMLElement&);
  8985. bool SetStyleAuto(XMLFile = null);
  8986. void UpdateLayout();
  8987. const Variant& GetVar(const StringHash&);
  8988. // Properties:
  8989. bool animationEnabled;
  8990. /* readonly */
  8991. Array<Variant> attributeDefaults;
  8992. /* readonly */
  8993. Array<AttributeInfo> attributeInfos;
  8994. Array<Variant> attributes;
  8995. BlendMode blendMode;
  8996. IntRect border;
  8997. bool bringToBack;
  8998. bool bringToFront;
  8999. /* readonly */
  9000. String category;
  9001. /* readonly */
  9002. IntVector2 childOffset;
  9003. /* readonly */
  9004. Array<UIElement> children;
  9005. IntRect clipBorder;
  9006. bool clipChildren;
  9007. /* writeonly */
  9008. Color color;
  9009. /* readonly */
  9010. bool colorGradient;
  9011. Array<Color> colors;
  9012. /* readonly */
  9013. IntRect combinedScreenRect;
  9014. XMLFile defaultStyle;
  9015. /* readonly */
  9016. float derivedOpacity;
  9017. /* readonly */
  9018. uint dragButtonCombo;
  9019. /* readonly */
  9020. int dragButtonCount;
  9021. uint dragDropMode;
  9022. bool editable;
  9023. bool elementEventSender;
  9024. bool enabled;
  9025. /* readonly */
  9026. bool enabledSelf;
  9027. /* readonly */
  9028. bool fixedHeight;
  9029. /* readonly */
  9030. bool fixedSize;
  9031. /* readonly */
  9032. bool fixedWidth;
  9033. bool focus;
  9034. FocusMode focusMode;
  9035. int height;
  9036. HorizontalAlignment horizontalAlignment;
  9037. IntVector2 hoverOffset;
  9038. /* readonly */
  9039. bool hovering;
  9040. IntRect imageBorder;
  9041. IntRect imageRect;
  9042. int indent;
  9043. int indentSpacing;
  9044. /* readonly */
  9045. int indentWidth;
  9046. bool internal;
  9047. /* readonly */
  9048. BorderImage knob;
  9049. IntRect layoutBorder;
  9050. Vector2 layoutFlexScale;
  9051. LayoutMode layoutMode;
  9052. int layoutSpacing;
  9053. int maxHeight;
  9054. IntVector2 maxSize;
  9055. int maxWidth;
  9056. int minHeight;
  9057. IntVector2 minSize;
  9058. int minWidth;
  9059. String name;
  9060. /* readonly */
  9061. uint numAllChildren;
  9062. /* readonly */
  9063. uint numAttributes;
  9064. /* readonly */
  9065. uint numChildren;
  9066. ObjectAnimation objectAnimation;
  9067. float opacity;
  9068. Orientation orientation;
  9069. UIElement parent;
  9070. IntVector2 position;
  9071. int priority;
  9072. float range;
  9073. /* readonly */
  9074. int refs;
  9075. float repeatRate;
  9076. /* readonly */
  9077. UIElement root;
  9078. /* readonly */
  9079. IntVector2 screenPosition;
  9080. bool selected;
  9081. IntVector2 size;
  9082. bool sortChildren;
  9083. String style;
  9084. bool temporary;
  9085. Texture texture;
  9086. bool tiled;
  9087. TraversalMode traversalMode;
  9088. /* readonly */
  9089. StringHash type;
  9090. /* readonly */
  9091. String typeName;
  9092. bool useDerivedOpacity;
  9093. float value;
  9094. /* readonly */
  9095. VariantMap vars;
  9096. VerticalAlignment verticalAlignment;
  9097. bool visible;
  9098. /* readonly */
  9099. bool visibleEffective;
  9100. /* readonly */
  9101. int weakRefs;
  9102. int width;
  9103. };
  9104. class SmoothedTransform
  9105. {
  9106. // Methods:
  9107. void ApplyAttributes();
  9108. void DrawDebugGeometry(DebugRenderer, bool);
  9109. Variant GetAttribute(const String&) const;
  9110. ValueAnimation GetAttributeAnimation(const String&) const;
  9111. float GetAttributeAnimationSpeed(const String&) const;
  9112. float GetAttributeAnimationTime(const String&) const;
  9113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9114. Variant GetAttributeDefault(const String&) const;
  9115. bool GetInterceptNetworkUpdate(const String&) const;
  9116. bool Load(File, bool = false);
  9117. bool Load(VectorBuffer&, bool = false);
  9118. bool LoadXML(const XMLElement&, bool = false);
  9119. void MarkNetworkUpdate() const;
  9120. void Remove();
  9121. void RemoveAttributeAnimation(const String&);
  9122. void RemoveInstanceDefault();
  9123. void RemoveObjectAnimation();
  9124. void ResetToDefault();
  9125. bool Save(File) const;
  9126. bool Save(VectorBuffer&) const;
  9127. bool SaveXML(XMLElement&) const;
  9128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9129. void SetAnimationTime(float);
  9130. bool SetAttribute(const String&, const Variant&);
  9131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9132. void SetAttributeAnimationSpeed(const String&, float);
  9133. void SetAttributeAnimationTime(const String&, float);
  9134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9135. void SetInterceptNetworkUpdate(const String&, bool);
  9136. void Update(float, float);
  9137. // Properties:
  9138. bool animationEnabled;
  9139. /* readonly */
  9140. Array<Variant> attributeDefaults;
  9141. /* readonly */
  9142. Array<AttributeInfo> attributeInfos;
  9143. Array<Variant> attributes;
  9144. /* readonly */
  9145. String category;
  9146. bool enabled;
  9147. /* readonly */
  9148. bool enabledEffective;
  9149. /* readonly */
  9150. uint id;
  9151. /* readonly */
  9152. bool inProgress;
  9153. /* readonly */
  9154. Node node;
  9155. /* readonly */
  9156. uint numAttributes;
  9157. ObjectAnimation objectAnimation;
  9158. /* readonly */
  9159. int refs;
  9160. Vector3 targetPosition;
  9161. Quaternion targetRotation;
  9162. Vector3 targetWorldPosition;
  9163. Quaternion targetWorldRotation;
  9164. bool temporary;
  9165. /* readonly */
  9166. StringHash type;
  9167. /* readonly */
  9168. String typeName;
  9169. /* readonly */
  9170. int weakRefs;
  9171. };
  9172. class Sound
  9173. {
  9174. // Methods:
  9175. bool Load(File);
  9176. bool Load(VectorBuffer&);
  9177. bool Save(File) const;
  9178. bool Save(VectorBuffer&) const;
  9179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9180. // Properties:
  9181. /* readonly */
  9182. String category;
  9183. /* readonly */
  9184. bool compressed;
  9185. /* readonly */
  9186. float frequency;
  9187. /* readonly */
  9188. float length;
  9189. bool looped;
  9190. /* readonly */
  9191. uint memoryUse;
  9192. String name;
  9193. /* readonly */
  9194. int refs;
  9195. /* readonly */
  9196. uint sampleSize;
  9197. /* readonly */
  9198. bool sixteenBit;
  9199. /* readonly */
  9200. bool stereo;
  9201. /* readonly */
  9202. StringHash type;
  9203. /* readonly */
  9204. String typeName;
  9205. /* readonly */
  9206. uint useTimer;
  9207. /* readonly */
  9208. int weakRefs;
  9209. };
  9210. class SoundListener
  9211. {
  9212. // Methods:
  9213. void ApplyAttributes();
  9214. void DrawDebugGeometry(DebugRenderer, bool);
  9215. Variant GetAttribute(const String&) const;
  9216. ValueAnimation GetAttributeAnimation(const String&) const;
  9217. float GetAttributeAnimationSpeed(const String&) const;
  9218. float GetAttributeAnimationTime(const String&) const;
  9219. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9220. Variant GetAttributeDefault(const String&) const;
  9221. bool GetInterceptNetworkUpdate(const String&) const;
  9222. bool Load(File, bool = false);
  9223. bool Load(VectorBuffer&, bool = false);
  9224. bool LoadXML(const XMLElement&, bool = false);
  9225. void MarkNetworkUpdate() const;
  9226. void Remove();
  9227. void RemoveAttributeAnimation(const String&);
  9228. void RemoveInstanceDefault();
  9229. void RemoveObjectAnimation();
  9230. void ResetToDefault();
  9231. bool Save(File) const;
  9232. bool Save(VectorBuffer&) const;
  9233. bool SaveXML(XMLElement&) const;
  9234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9235. void SetAnimationTime(float);
  9236. bool SetAttribute(const String&, const Variant&);
  9237. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9238. void SetAttributeAnimationSpeed(const String&, float);
  9239. void SetAttributeAnimationTime(const String&, float);
  9240. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9241. void SetInterceptNetworkUpdate(const String&, bool);
  9242. // Properties:
  9243. bool animationEnabled;
  9244. /* readonly */
  9245. Array<Variant> attributeDefaults;
  9246. /* readonly */
  9247. Array<AttributeInfo> attributeInfos;
  9248. Array<Variant> attributes;
  9249. /* readonly */
  9250. String category;
  9251. bool enabled;
  9252. /* readonly */
  9253. bool enabledEffective;
  9254. /* readonly */
  9255. uint id;
  9256. /* readonly */
  9257. Node node;
  9258. /* readonly */
  9259. uint numAttributes;
  9260. ObjectAnimation objectAnimation;
  9261. /* readonly */
  9262. int refs;
  9263. bool temporary;
  9264. /* readonly */
  9265. StringHash type;
  9266. /* readonly */
  9267. String typeName;
  9268. /* readonly */
  9269. int weakRefs;
  9270. };
  9271. class SoundSource
  9272. {
  9273. // Methods:
  9274. void ApplyAttributes();
  9275. void DrawDebugGeometry(DebugRenderer, bool);
  9276. Variant GetAttribute(const String&) const;
  9277. ValueAnimation GetAttributeAnimation(const String&) const;
  9278. float GetAttributeAnimationSpeed(const String&) const;
  9279. float GetAttributeAnimationTime(const String&) const;
  9280. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9281. Variant GetAttributeDefault(const String&) const;
  9282. bool GetInterceptNetworkUpdate(const String&) const;
  9283. bool Load(File, bool = false);
  9284. bool Load(VectorBuffer&, bool = false);
  9285. bool LoadXML(const XMLElement&, bool = false);
  9286. void MarkNetworkUpdate() const;
  9287. void Play(Sound);
  9288. void Play(Sound, float);
  9289. void Play(Sound, float, float);
  9290. void Play(Sound, float, float, float);
  9291. void Remove();
  9292. void RemoveAttributeAnimation(const String&);
  9293. void RemoveInstanceDefault();
  9294. void RemoveObjectAnimation();
  9295. void ResetToDefault();
  9296. bool Save(File) const;
  9297. bool Save(VectorBuffer&) const;
  9298. bool SaveXML(XMLElement&) const;
  9299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9300. void SetAnimationTime(float);
  9301. bool SetAttribute(const String&, const Variant&);
  9302. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9303. void SetAttributeAnimationSpeed(const String&, float);
  9304. void SetAttributeAnimationTime(const String&, float);
  9305. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9306. void SetInterceptNetworkUpdate(const String&, bool);
  9307. void Stop();
  9308. // Properties:
  9309. bool animationEnabled;
  9310. /* readonly */
  9311. float attenuation;
  9312. /* readonly */
  9313. Array<Variant> attributeDefaults;
  9314. /* readonly */
  9315. Array<AttributeInfo> attributeInfos;
  9316. Array<Variant> attributes;
  9317. bool autoRemove;
  9318. /* readonly */
  9319. String category;
  9320. bool enabled;
  9321. /* readonly */
  9322. bool enabledEffective;
  9323. float frequency;
  9324. float gain;
  9325. /* readonly */
  9326. uint id;
  9327. /* readonly */
  9328. Node node;
  9329. /* readonly */
  9330. uint numAttributes;
  9331. ObjectAnimation objectAnimation;
  9332. float panning;
  9333. /* readonly */
  9334. bool playing;
  9335. /* readonly */
  9336. int refs;
  9337. /* readonly */
  9338. Sound sound;
  9339. String soundType;
  9340. bool temporary;
  9341. /* readonly */
  9342. float timePosition;
  9343. /* readonly */
  9344. StringHash type;
  9345. /* readonly */
  9346. String typeName;
  9347. /* readonly */
  9348. int weakRefs;
  9349. };
  9350. class SoundSource3D
  9351. {
  9352. // Methods:
  9353. void ApplyAttributes();
  9354. void DrawDebugGeometry(DebugRenderer, bool);
  9355. Variant GetAttribute(const String&) const;
  9356. ValueAnimation GetAttributeAnimation(const String&) const;
  9357. float GetAttributeAnimationSpeed(const String&) const;
  9358. float GetAttributeAnimationTime(const String&) const;
  9359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9360. Variant GetAttributeDefault(const String&) const;
  9361. bool GetInterceptNetworkUpdate(const String&) const;
  9362. bool Load(File, bool = false);
  9363. bool Load(VectorBuffer&, bool = false);
  9364. bool LoadXML(const XMLElement&, bool = false);
  9365. void MarkNetworkUpdate() const;
  9366. void Play(Sound);
  9367. void Play(Sound, float);
  9368. void Play(Sound, float, float);
  9369. void Play(Sound, float, float, float);
  9370. void Remove();
  9371. void RemoveAttributeAnimation(const String&);
  9372. void RemoveInstanceDefault();
  9373. void RemoveObjectAnimation();
  9374. void ResetToDefault();
  9375. bool Save(File) const;
  9376. bool Save(VectorBuffer&) const;
  9377. bool SaveXML(XMLElement&) const;
  9378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9379. void SetAngleAttenuation(float, float);
  9380. void SetAnimationTime(float);
  9381. bool SetAttribute(const String&, const Variant&);
  9382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9383. void SetAttributeAnimationSpeed(const String&, float);
  9384. void SetAttributeAnimationTime(const String&, float);
  9385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9386. void SetDistanceAttenuation(float, float, float);
  9387. void SetInterceptNetworkUpdate(const String&, bool);
  9388. void Stop();
  9389. // Properties:
  9390. bool animationEnabled;
  9391. /* readonly */
  9392. float attenuation;
  9393. /* readonly */
  9394. Array<Variant> attributeDefaults;
  9395. /* readonly */
  9396. Array<AttributeInfo> attributeInfos;
  9397. Array<Variant> attributes;
  9398. bool autoRemove;
  9399. /* readonly */
  9400. String category;
  9401. bool enabled;
  9402. /* readonly */
  9403. bool enabledEffective;
  9404. float farDistance;
  9405. float frequency;
  9406. float gain;
  9407. /* readonly */
  9408. uint id;
  9409. float innerAngle;
  9410. float nearDistance;
  9411. /* readonly */
  9412. Node node;
  9413. /* readonly */
  9414. uint numAttributes;
  9415. ObjectAnimation objectAnimation;
  9416. float outerAngle;
  9417. float panning;
  9418. /* readonly */
  9419. bool playing;
  9420. /* readonly */
  9421. int refs;
  9422. float rolloffFactor;
  9423. /* readonly */
  9424. Sound sound;
  9425. String soundType;
  9426. bool temporary;
  9427. /* readonly */
  9428. float timePosition;
  9429. /* readonly */
  9430. StringHash type;
  9431. /* readonly */
  9432. String typeName;
  9433. /* readonly */
  9434. int weakRefs;
  9435. };
  9436. class Sphere
  9437. {
  9438. // Methods:
  9439. void Clear();
  9440. void Define(const BoundingBox&);
  9441. void Define(const Frustum&);
  9442. void Define(const Polyhedron&);
  9443. void Define(const Sphere&);
  9444. void Define(const Vector3&, float);
  9445. bool Defined() const;
  9446. float Distance(const Vector3&) const;
  9447. Intersection IsInside(const BoundingBox&) const;
  9448. Intersection IsInside(const Sphere&) const;
  9449. Intersection IsInside(const Vector3&) const;
  9450. Intersection IsInsideFast(const BoundingBox&) const;
  9451. Intersection IsInsideFast(const Sphere&) const;
  9452. void Merge(const BoundingBox&);
  9453. void Merge(const Frustum&);
  9454. void Merge(const Sphere&);
  9455. void Merge(const Vector3&);
  9456. // Properties:
  9457. Vector3 center;
  9458. float radius;
  9459. };
  9460. class Spline
  9461. {
  9462. // Methods:
  9463. void AddKnot(const Variant&);
  9464. void AddKnot(const Variant&, uint);
  9465. void Clear();
  9466. Variant GetPoint(float);
  9467. void RemoveKnot();
  9468. void RemoveKnot(uint);
  9469. // Properties:
  9470. InterpolationMode interpolationMode;
  9471. Array<Variant> knot;
  9472. Array<Variant> knots;
  9473. };
  9474. class SplinePath
  9475. {
  9476. // Methods:
  9477. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9478. void ApplyAttributes();
  9479. void ClearControlPoints();
  9480. void DrawDebugGeometry(DebugRenderer, bool);
  9481. Variant GetAttribute(const String&) const;
  9482. ValueAnimation GetAttributeAnimation(const String&) const;
  9483. float GetAttributeAnimationSpeed(const String&) const;
  9484. float GetAttributeAnimationTime(const String&) const;
  9485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9486. Variant GetAttributeDefault(const String&) const;
  9487. bool GetInterceptNetworkUpdate(const String&) const;
  9488. Vector3 GetPoint(float) const;
  9489. Vector3 GetPosition() const;
  9490. bool Load(File, bool = false);
  9491. bool Load(VectorBuffer&, bool = false);
  9492. bool LoadXML(const XMLElement&, bool = false);
  9493. void MarkNetworkUpdate() const;
  9494. void Move(float);
  9495. void Remove();
  9496. void RemoveAttributeAnimation(const String&);
  9497. void RemoveControlPoint(Node);
  9498. void RemoveInstanceDefault();
  9499. void RemoveObjectAnimation();
  9500. void Reset();
  9501. void ResetToDefault();
  9502. bool Save(File) const;
  9503. bool Save(VectorBuffer&) const;
  9504. bool SaveXML(XMLElement&) const;
  9505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9506. void SetAnimationTime(float);
  9507. bool SetAttribute(const String&, const Variant&);
  9508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9509. void SetAttributeAnimationSpeed(const String&, float);
  9510. void SetAttributeAnimationTime(const String&, float);
  9511. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9512. void SetInterceptNetworkUpdate(const String&, bool);
  9513. void SetPosition(float);
  9514. // Properties:
  9515. bool animationEnabled;
  9516. /* readonly */
  9517. Array<Variant> attributeDefaults;
  9518. /* readonly */
  9519. Array<AttributeInfo> attributeInfos;
  9520. Array<Variant> attributes;
  9521. /* readonly */
  9522. String category;
  9523. Node controlledNode;
  9524. bool enabled;
  9525. /* readonly */
  9526. bool enabledEffective;
  9527. /* readonly */
  9528. uint id;
  9529. InterpolationMode interpolationMode;
  9530. /* readonly */
  9531. bool isFinished;
  9532. /* readonly */
  9533. float length;
  9534. /* readonly */
  9535. Node node;
  9536. /* readonly */
  9537. uint numAttributes;
  9538. ObjectAnimation objectAnimation;
  9539. /* readonly */
  9540. int refs;
  9541. float speed;
  9542. bool temporary;
  9543. /* readonly */
  9544. StringHash type;
  9545. /* readonly */
  9546. String typeName;
  9547. /* readonly */
  9548. int weakRefs;
  9549. };
  9550. class Sprite
  9551. {
  9552. // Methods:
  9553. void AddChild(UIElement);
  9554. void ApplyAttributes();
  9555. void BringToFront();
  9556. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9557. uint FindChild(UIElement) const;
  9558. Variant GetAttribute(const String&) const;
  9559. ValueAnimation GetAttributeAnimation(const String&) const;
  9560. float GetAttributeAnimationSpeed(const String&) const;
  9561. float GetAttributeAnimationTime(const String&) const;
  9562. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9563. Variant GetAttributeDefault(const String&) const;
  9564. UIElement GetChild(const String&, bool = false) const;
  9565. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9566. Array<UIElement> GetChildren(bool = false) const;
  9567. UIElement GetElementEventSender() const;
  9568. bool GetInterceptNetworkUpdate(const String&) const;
  9569. uint GetNumChildren(bool) const;
  9570. void InsertChild(uint, UIElement);
  9571. bool Load(File, bool = false);
  9572. bool Load(VectorBuffer&, bool = false);
  9573. bool LoadChildXML(XMLFile, XMLFile = null);
  9574. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9575. bool LoadXML(File);
  9576. bool LoadXML(VectorBuffer&);
  9577. bool LoadXML(XMLFile, XMLFile);
  9578. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9579. bool LoadXML(const XMLElement&, bool = false);
  9580. void MarkNetworkUpdate() const;
  9581. void Remove();
  9582. void RemoveAllChildren();
  9583. void RemoveAttributeAnimation(const String&);
  9584. void RemoveChild(UIElement, uint = 0);
  9585. void RemoveChild(uint);
  9586. void RemoveInstanceDefault();
  9587. void RemoveObjectAnimation();
  9588. void ResetToDefault();
  9589. bool Save(File) const;
  9590. bool Save(VectorBuffer&) const;
  9591. bool SaveXML(File, const String& = "\t");
  9592. bool SaveXML(VectorBuffer&, const String& = "\t");
  9593. bool SaveXML(XMLElement&) const;
  9594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9595. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9596. void SetAnimationTime(float);
  9597. bool SetAttribute(const String&, const Variant&);
  9598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9599. void SetAttributeAnimationSpeed(const String&, float);
  9600. void SetAttributeAnimationTime(const String&, float);
  9601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9602. void SetFixedHeight(int);
  9603. void SetFixedSize(int, int);
  9604. void SetFixedWidth(int);
  9605. void SetFullImageRect();
  9606. void SetHotSpot(int, int);
  9607. void SetInterceptNetworkUpdate(const String&, bool);
  9608. void SetMaxSize(int, int);
  9609. void SetMinSize(int, int);
  9610. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9611. void SetPosition(float, float);
  9612. void SetScale(float);
  9613. void SetScale(float, float);
  9614. void SetSize(int, int);
  9615. bool SetStyle(const String&, XMLFile = null);
  9616. bool SetStyle(const XMLElement&);
  9617. bool SetStyleAuto(XMLFile = null);
  9618. const Variant& GetVar(const StringHash&);
  9619. // Properties:
  9620. bool animationEnabled;
  9621. /* readonly */
  9622. Array<Variant> attributeDefaults;
  9623. /* readonly */
  9624. Array<AttributeInfo> attributeInfos;
  9625. Array<Variant> attributes;
  9626. BlendMode blendMode;
  9627. bool bringToBack;
  9628. bool bringToFront;
  9629. /* readonly */
  9630. String category;
  9631. /* readonly */
  9632. Array<UIElement> children;
  9633. /* writeonly */
  9634. Color color;
  9635. /* readonly */
  9636. bool colorGradient;
  9637. Array<Color> colors;
  9638. XMLFile defaultStyle;
  9639. /* readonly */
  9640. float derivedOpacity;
  9641. /* readonly */
  9642. uint dragButtonCombo;
  9643. /* readonly */
  9644. int dragButtonCount;
  9645. bool elementEventSender;
  9646. int height;
  9647. HorizontalAlignment horizontalAlignment;
  9648. IntVector2 hotSpot;
  9649. IntRect imageRect;
  9650. String name;
  9651. /* readonly */
  9652. uint numAllChildren;
  9653. /* readonly */
  9654. uint numAttributes;
  9655. /* readonly */
  9656. uint numChildren;
  9657. ObjectAnimation objectAnimation;
  9658. float opacity;
  9659. UIElement parent;
  9660. Vector2 position;
  9661. int priority;
  9662. /* readonly */
  9663. int refs;
  9664. /* readonly */
  9665. UIElement root;
  9666. float rotation;
  9667. Vector2 scale;
  9668. IntVector2 size;
  9669. bool sortChildren;
  9670. String style;
  9671. bool temporary;
  9672. Texture texture;
  9673. /* readonly */
  9674. StringHash type;
  9675. /* readonly */
  9676. String typeName;
  9677. bool useDerivedOpacity;
  9678. /* readonly */
  9679. VariantMap vars;
  9680. VerticalAlignment verticalAlignment;
  9681. bool visible;
  9682. /* readonly */
  9683. bool visibleEffective;
  9684. /* readonly */
  9685. int weakRefs;
  9686. int width;
  9687. };
  9688. class Sprite2D
  9689. {
  9690. // Methods:
  9691. bool Load(File);
  9692. bool Load(VectorBuffer&);
  9693. bool Save(File) const;
  9694. bool Save(VectorBuffer&) const;
  9695. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9696. // Properties:
  9697. /* readonly */
  9698. String category;
  9699. Vector2 hotSpot;
  9700. /* readonly */
  9701. uint memoryUse;
  9702. String name;
  9703. IntVector2 offset;
  9704. IntRect rectangle;
  9705. /* readonly */
  9706. int refs;
  9707. Texture2D texture;
  9708. /* readonly */
  9709. StringHash type;
  9710. /* readonly */
  9711. String typeName;
  9712. /* readonly */
  9713. uint useTimer;
  9714. /* readonly */
  9715. int weakRefs;
  9716. };
  9717. class SpriteSheet2D
  9718. {
  9719. // Methods:
  9720. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9721. Sprite2D GetSprite(const String&);
  9722. bool Load(File);
  9723. bool Load(VectorBuffer&);
  9724. bool Save(File) const;
  9725. bool Save(VectorBuffer&) const;
  9726. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9727. // Properties:
  9728. /* readonly */
  9729. String category;
  9730. /* readonly */
  9731. uint memoryUse;
  9732. String name;
  9733. /* readonly */
  9734. int refs;
  9735. /* readonly */
  9736. Texture2D texture;
  9737. /* readonly */
  9738. StringHash type;
  9739. /* readonly */
  9740. String typeName;
  9741. /* readonly */
  9742. uint useTimer;
  9743. /* readonly */
  9744. int weakRefs;
  9745. };
  9746. class StaticModel
  9747. {
  9748. // Methods:
  9749. void ApplyAttributes();
  9750. void ApplyMaterialList(const String& = String ( ));
  9751. void DrawDebugGeometry(DebugRenderer, bool);
  9752. Variant GetAttribute(const String&) const;
  9753. ValueAnimation GetAttributeAnimation(const String&) const;
  9754. float GetAttributeAnimationSpeed(const String&) const;
  9755. float GetAttributeAnimationTime(const String&) const;
  9756. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9757. Variant GetAttributeDefault(const String&) const;
  9758. bool GetInterceptNetworkUpdate(const String&) const;
  9759. bool IsInView(Camera) const;
  9760. bool IsInside(const Vector3&) const;
  9761. bool IsInsideLocal(const Vector3&) const;
  9762. bool Load(File, bool = false);
  9763. bool Load(VectorBuffer&, bool = false);
  9764. bool LoadXML(const XMLElement&, bool = false);
  9765. void MarkNetworkUpdate() const;
  9766. void Remove();
  9767. void RemoveAttributeAnimation(const String&);
  9768. void RemoveInstanceDefault();
  9769. void RemoveObjectAnimation();
  9770. void ResetToDefault();
  9771. bool Save(File) const;
  9772. bool Save(VectorBuffer&) const;
  9773. bool SaveXML(XMLElement&) const;
  9774. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9775. void SetAnimationTime(float);
  9776. bool SetAttribute(const String&, const Variant&);
  9777. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9778. void SetAttributeAnimationSpeed(const String&, float);
  9779. void SetAttributeAnimationTime(const String&, float);
  9780. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9781. void SetInterceptNetworkUpdate(const String&, bool);
  9782. // Properties:
  9783. bool animationEnabled;
  9784. /* readonly */
  9785. Array<Variant> attributeDefaults;
  9786. /* readonly */
  9787. Array<AttributeInfo> attributeInfos;
  9788. Array<Variant> attributes;
  9789. /* readonly */
  9790. BoundingBox boundingBox;
  9791. bool castShadows;
  9792. /* readonly */
  9793. String category;
  9794. float drawDistance;
  9795. bool enabled;
  9796. /* readonly */
  9797. bool enabledEffective;
  9798. /* readonly */
  9799. uint id;
  9800. /* readonly */
  9801. bool inView;
  9802. uint lightMask;
  9803. float lodBias;
  9804. /* writeonly */
  9805. Material material;
  9806. Array<Material> materials;
  9807. uint maxLights;
  9808. Model model;
  9809. /* readonly */
  9810. Node node;
  9811. /* readonly */
  9812. uint numAttributes;
  9813. /* readonly */
  9814. uint numGeometries;
  9815. ObjectAnimation objectAnimation;
  9816. bool occludee;
  9817. bool occluder;
  9818. uint occlusionLodLevel;
  9819. /* readonly */
  9820. int refs;
  9821. float shadowDistance;
  9822. uint shadowMask;
  9823. bool temporary;
  9824. /* readonly */
  9825. StringHash type;
  9826. /* readonly */
  9827. String typeName;
  9828. uint viewMask;
  9829. /* readonly */
  9830. int weakRefs;
  9831. /* readonly */
  9832. BoundingBox worldBoundingBox;
  9833. uint zoneMask;
  9834. };
  9835. class StaticModelGroup
  9836. {
  9837. // Methods:
  9838. void AddInstanceNode(Node);
  9839. void ApplyAttributes();
  9840. void ApplyMaterialList(const String& = String ( ));
  9841. void DrawDebugGeometry(DebugRenderer, bool);
  9842. Variant GetAttribute(const String&) const;
  9843. ValueAnimation GetAttributeAnimation(const String&) const;
  9844. float GetAttributeAnimationSpeed(const String&) const;
  9845. float GetAttributeAnimationTime(const String&) const;
  9846. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9847. Variant GetAttributeDefault(const String&) const;
  9848. bool GetInterceptNetworkUpdate(const String&) const;
  9849. bool IsInView(Camera) const;
  9850. bool Load(File, bool = false);
  9851. bool Load(VectorBuffer&, bool = false);
  9852. bool LoadXML(const XMLElement&, bool = false);
  9853. void MarkNetworkUpdate() const;
  9854. void Remove();
  9855. void RemoveAllInstanceNodes();
  9856. void RemoveAttributeAnimation(const String&);
  9857. void RemoveInstanceDefault();
  9858. void RemoveInstanceNode(Node);
  9859. void RemoveObjectAnimation();
  9860. void ResetToDefault();
  9861. bool Save(File) const;
  9862. bool Save(VectorBuffer&) const;
  9863. bool SaveXML(XMLElement&) const;
  9864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9865. void SetAnimationTime(float);
  9866. bool SetAttribute(const String&, const Variant&);
  9867. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9868. void SetAttributeAnimationSpeed(const String&, float);
  9869. void SetAttributeAnimationTime(const String&, float);
  9870. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9871. void SetInterceptNetworkUpdate(const String&, bool);
  9872. // Properties:
  9873. bool animationEnabled;
  9874. /* readonly */
  9875. Array<Variant> attributeDefaults;
  9876. /* readonly */
  9877. Array<AttributeInfo> attributeInfos;
  9878. Array<Variant> attributes;
  9879. /* readonly */
  9880. BoundingBox boundingBox;
  9881. bool castShadows;
  9882. /* readonly */
  9883. String category;
  9884. float drawDistance;
  9885. bool enabled;
  9886. /* readonly */
  9887. bool enabledEffective;
  9888. /* readonly */
  9889. uint id;
  9890. /* readonly */
  9891. bool inView;
  9892. /* readonly */
  9893. Array<Node> instanceNodes;
  9894. uint lightMask;
  9895. float lodBias;
  9896. /* writeonly */
  9897. Material material;
  9898. Array<Material> materials;
  9899. uint maxLights;
  9900. Model model;
  9901. /* readonly */
  9902. Node node;
  9903. /* readonly */
  9904. uint numAttributes;
  9905. /* readonly */
  9906. uint numGeometries;
  9907. /* readonly */
  9908. uint numInstanceNodes;
  9909. ObjectAnimation objectAnimation;
  9910. bool occludee;
  9911. bool occluder;
  9912. uint occlusionLodLevel;
  9913. /* readonly */
  9914. int refs;
  9915. float shadowDistance;
  9916. uint shadowMask;
  9917. bool temporary;
  9918. /* readonly */
  9919. StringHash type;
  9920. /* readonly */
  9921. String typeName;
  9922. uint viewMask;
  9923. /* readonly */
  9924. int weakRefs;
  9925. /* readonly */
  9926. BoundingBox worldBoundingBox;
  9927. /* readonly */
  9928. Zone zone;
  9929. uint zoneMask;
  9930. };
  9931. class StaticSprite2D
  9932. {
  9933. // Methods:
  9934. void ApplyAttributes();
  9935. void DrawDebugGeometry(DebugRenderer, bool);
  9936. Variant GetAttribute(const String&) const;
  9937. ValueAnimation GetAttributeAnimation(const String&) const;
  9938. float GetAttributeAnimationSpeed(const String&) const;
  9939. float GetAttributeAnimationTime(const String&) const;
  9940. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9941. Variant GetAttributeDefault(const String&) const;
  9942. bool GetInterceptNetworkUpdate(const String&) const;
  9943. bool IsInView(Camera) const;
  9944. bool Load(File, bool = false);
  9945. bool Load(VectorBuffer&, bool = false);
  9946. bool LoadXML(const XMLElement&, bool = false);
  9947. void MarkNetworkUpdate() const;
  9948. void Remove();
  9949. void RemoveAttributeAnimation(const String&);
  9950. void RemoveInstanceDefault();
  9951. void RemoveObjectAnimation();
  9952. void ResetToDefault();
  9953. bool Save(File) const;
  9954. bool Save(VectorBuffer&) const;
  9955. bool SaveXML(XMLElement&) const;
  9956. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9957. void SetAnimationTime(float);
  9958. bool SetAttribute(const String&, const Variant&);
  9959. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9960. void SetAttributeAnimationSpeed(const String&, float);
  9961. void SetAttributeAnimationTime(const String&, float);
  9962. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9963. void SetFlip(bool, bool);
  9964. void SetInterceptNetworkUpdate(const String&, bool);
  9965. // Properties:
  9966. float alpha;
  9967. bool animationEnabled;
  9968. /* readonly */
  9969. Array<Variant> attributeDefaults;
  9970. /* readonly */
  9971. Array<AttributeInfo> attributeInfos;
  9972. Array<Variant> attributes;
  9973. BlendMode blendMode;
  9974. /* readonly */
  9975. BoundingBox boundingBox;
  9976. bool castShadows;
  9977. /* readonly */
  9978. String category;
  9979. Color color;
  9980. Material customMaterial;
  9981. float drawDistance;
  9982. bool enabled;
  9983. /* readonly */
  9984. bool enabledEffective;
  9985. bool flipX;
  9986. bool flipY;
  9987. Vector2 hotSpot;
  9988. /* readonly */
  9989. uint id;
  9990. /* readonly */
  9991. bool inView;
  9992. int layer;
  9993. uint lightMask;
  9994. float lodBias;
  9995. uint maxLights;
  9996. /* readonly */
  9997. Node node;
  9998. /* readonly */
  9999. uint numAttributes;
  10000. ObjectAnimation objectAnimation;
  10001. bool occludee;
  10002. bool occluder;
  10003. int orderInLayer;
  10004. /* readonly */
  10005. int refs;
  10006. float shadowDistance;
  10007. uint shadowMask;
  10008. Sprite2D sprite;
  10009. bool temporary;
  10010. /* readonly */
  10011. StringHash type;
  10012. /* readonly */
  10013. String typeName;
  10014. bool useHotSpot;
  10015. uint viewMask;
  10016. /* readonly */
  10017. int weakRefs;
  10018. /* readonly */
  10019. BoundingBox worldBoundingBox;
  10020. uint zoneMask;
  10021. };
  10022. class String
  10023. {
  10024. // Methods:
  10025. void AppendUTF8(uint);
  10026. uint AtUTF8(uint) const;
  10027. uint ByteOffsetUTF8(uint) const;
  10028. void Clear();
  10029. int Compare(const String&, bool = true) const;
  10030. bool Contains(const String&, bool = true) const;
  10031. bool Contains(uint8, bool = true) const;
  10032. bool EndsWith(const String&, bool = true) const;
  10033. uint Find(const String&, uint = 0, bool = true) const;
  10034. uint Find(uint8, uint = 0, bool = true) const;
  10035. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10036. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10037. void Join(Array<String>&, const String&);
  10038. uint NextUTF8Char(uint&) const;
  10039. void Replace(const String&, const String&, bool = true);
  10040. void Replace(uint8, uint8, bool = true);
  10041. void ReplaceUTF8(uint, uint);
  10042. String Replaced(const String&, const String&, bool = true) const;
  10043. String Replaced(uint8, uint8, bool = true) const;
  10044. void Resize(uint);
  10045. void SetUTF8FromLatin1(const String&);
  10046. Array<String> Split(uint8, bool = false) const;
  10047. bool StartsWith(const String&, bool = true) const;
  10048. String Substring(uint) const;
  10049. String Substring(uint, uint) const;
  10050. String SubstringUTF8(uint) const;
  10051. String SubstringUTF8(uint, uint) const;
  10052. bool ToBool() const;
  10053. Color ToColor() const;
  10054. double ToDouble() const;
  10055. float ToFloat() const;
  10056. int ToInt() const;
  10057. IntRect ToIntRect() const;
  10058. IntVector2 ToIntVector2() const;
  10059. String ToLower() const;
  10060. Matrix3 ToMatrix3() const;
  10061. Matrix3x4 ToMatrix3x4() const;
  10062. Matrix4 ToMatrix4() const;
  10063. Quaternion ToQuaternion() const;
  10064. uint ToUInt() const;
  10065. String ToUpper() const;
  10066. Vector2 ToVector2() const;
  10067. Vector3 ToVector3() const;
  10068. Vector4 ToVector4(bool = false) const;
  10069. Variant ToVectorVariant() const;
  10070. String Trimmed() const;
  10071. // Properties:
  10072. /* readonly */
  10073. bool empty;
  10074. /* readonly */
  10075. uint length;
  10076. /* readonly */
  10077. uint utf8Length;
  10078. };
  10079. class StringHash
  10080. {
  10081. // Methods:
  10082. String ToString() const;
  10083. // Properties:
  10084. /* readonly */
  10085. uint value;
  10086. };
  10087. class Technique
  10088. {
  10089. // Methods:
  10090. Pass CreatePass(const String&);
  10091. Pass GetPass(const String&);
  10092. Pass GetSupportedPass(const String&);
  10093. bool HasPass(const String&) const;
  10094. bool Load(File);
  10095. bool Load(VectorBuffer&);
  10096. void RemovePass(const String&);
  10097. bool Save(File) const;
  10098. bool Save(VectorBuffer&) const;
  10099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10100. // Properties:
  10101. /* readonly */
  10102. String category;
  10103. bool desktop;
  10104. /* readonly */
  10105. uint memoryUse;
  10106. String name;
  10107. /* readonly */
  10108. uint numPasses;
  10109. /* readonly */
  10110. Array<String> passNames;
  10111. /* readonly */
  10112. Array<Pass> passes;
  10113. /* readonly */
  10114. int refs;
  10115. /* readonly */
  10116. bool supported;
  10117. /* readonly */
  10118. StringHash type;
  10119. /* readonly */
  10120. String typeName;
  10121. /* readonly */
  10122. uint useTimer;
  10123. /* readonly */
  10124. int weakRefs;
  10125. };
  10126. class TechniqueEntry
  10127. {
  10128. // Properties:
  10129. float lodDistance;
  10130. int qualityLevel;
  10131. Technique technique;
  10132. };
  10133. class Terrain
  10134. {
  10135. // Methods:
  10136. void ApplyAttributes();
  10137. void ApplyHeightMap();
  10138. void DrawDebugGeometry(DebugRenderer, bool);
  10139. Variant GetAttribute(const String&) const;
  10140. ValueAnimation GetAttributeAnimation(const String&) const;
  10141. float GetAttributeAnimationSpeed(const String&) const;
  10142. float GetAttributeAnimationTime(const String&) const;
  10143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10144. Variant GetAttributeDefault(const String&) const;
  10145. float GetHeight(const Vector3&) const;
  10146. bool GetInterceptNetworkUpdate(const String&) const;
  10147. Vector3 GetNormal(const Vector3&) const;
  10148. TerrainPatch GetPatch(int, int) const;
  10149. bool Load(File, bool = false);
  10150. bool Load(VectorBuffer&, bool = false);
  10151. bool LoadXML(const XMLElement&, bool = false);
  10152. void MarkNetworkUpdate() const;
  10153. void Remove();
  10154. void RemoveAttributeAnimation(const String&);
  10155. void RemoveInstanceDefault();
  10156. void RemoveObjectAnimation();
  10157. void ResetToDefault();
  10158. bool Save(File) const;
  10159. bool Save(VectorBuffer&) const;
  10160. bool SaveXML(XMLElement&) const;
  10161. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10162. void SetAnimationTime(float);
  10163. bool SetAttribute(const String&, const Variant&);
  10164. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10165. void SetAttributeAnimationSpeed(const String&, float);
  10166. void SetAttributeAnimationTime(const String&, float);
  10167. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10168. void SetInterceptNetworkUpdate(const String&, bool);
  10169. IntVector2 WorldToHeightMap(const Vector3&) const;
  10170. // Properties:
  10171. bool animationEnabled;
  10172. /* readonly */
  10173. Array<Variant> attributeDefaults;
  10174. /* readonly */
  10175. Array<AttributeInfo> attributeInfos;
  10176. Array<Variant> attributes;
  10177. bool castShadows;
  10178. /* readonly */
  10179. String category;
  10180. float drawDistance;
  10181. bool enabled;
  10182. /* readonly */
  10183. bool enabledEffective;
  10184. Image heightMap;
  10185. /* readonly */
  10186. uint id;
  10187. uint lightMask;
  10188. float lodBias;
  10189. Material material;
  10190. uint maxLights;
  10191. uint maxLodLevels;
  10192. /* readonly */
  10193. Node node;
  10194. /* readonly */
  10195. uint numAttributes;
  10196. /* readonly */
  10197. IntVector2 numPatches;
  10198. /* readonly */
  10199. IntVector2 numVertices;
  10200. ObjectAnimation objectAnimation;
  10201. bool occludee;
  10202. bool occluder;
  10203. uint occlusionLodLevel;
  10204. int patchSize;
  10205. /* readonly */
  10206. Array<TerrainPatch> patches;
  10207. /* readonly */
  10208. int refs;
  10209. float shadowDistance;
  10210. uint shadowMask;
  10211. bool smoothing;
  10212. Vector3 spacing;
  10213. bool temporary;
  10214. /* readonly */
  10215. StringHash type;
  10216. /* readonly */
  10217. String typeName;
  10218. uint viewMask;
  10219. /* readonly */
  10220. int weakRefs;
  10221. uint zoneMask;
  10222. };
  10223. class TerrainPatch
  10224. {
  10225. // Methods:
  10226. void ApplyAttributes();
  10227. void DrawDebugGeometry(DebugRenderer, bool);
  10228. Variant GetAttribute(const String&) const;
  10229. ValueAnimation GetAttributeAnimation(const String&) const;
  10230. float GetAttributeAnimationSpeed(const String&) const;
  10231. float GetAttributeAnimationTime(const String&) const;
  10232. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10233. Variant GetAttributeDefault(const String&) const;
  10234. bool GetInterceptNetworkUpdate(const String&) const;
  10235. bool IsInView(Camera) const;
  10236. bool Load(File, bool = false);
  10237. bool Load(VectorBuffer&, bool = false);
  10238. bool LoadXML(const XMLElement&, bool = false);
  10239. void MarkNetworkUpdate() const;
  10240. void Remove();
  10241. void RemoveAttributeAnimation(const String&);
  10242. void RemoveInstanceDefault();
  10243. void RemoveObjectAnimation();
  10244. void ResetToDefault();
  10245. bool Save(File) const;
  10246. bool Save(VectorBuffer&) const;
  10247. bool SaveXML(XMLElement&) const;
  10248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10249. void SetAnimationTime(float);
  10250. bool SetAttribute(const String&, const Variant&);
  10251. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10252. void SetAttributeAnimationSpeed(const String&, float);
  10253. void SetAttributeAnimationTime(const String&, float);
  10254. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10255. void SetInterceptNetworkUpdate(const String&, bool);
  10256. // Properties:
  10257. bool animationEnabled;
  10258. /* readonly */
  10259. Array<Variant> attributeDefaults;
  10260. /* readonly */
  10261. Array<AttributeInfo> attributeInfos;
  10262. Array<Variant> attributes;
  10263. /* readonly */
  10264. BoundingBox boundingBox;
  10265. bool castShadows;
  10266. /* readonly */
  10267. String category;
  10268. float drawDistance;
  10269. bool enabled;
  10270. /* readonly */
  10271. bool enabledEffective;
  10272. /* readonly */
  10273. uint id;
  10274. /* readonly */
  10275. bool inView;
  10276. uint lightMask;
  10277. float lodBias;
  10278. uint maxLights;
  10279. /* readonly */
  10280. Node node;
  10281. /* readonly */
  10282. uint numAttributes;
  10283. ObjectAnimation objectAnimation;
  10284. bool occludee;
  10285. bool occluder;
  10286. /* readonly */
  10287. int refs;
  10288. float shadowDistance;
  10289. uint shadowMask;
  10290. bool temporary;
  10291. /* readonly */
  10292. StringHash type;
  10293. /* readonly */
  10294. String typeName;
  10295. uint viewMask;
  10296. /* readonly */
  10297. int weakRefs;
  10298. /* readonly */
  10299. BoundingBox worldBoundingBox;
  10300. uint zoneMask;
  10301. };
  10302. class Text
  10303. {
  10304. // Methods:
  10305. void AddChild(UIElement);
  10306. void ApplyAttributes();
  10307. void BringToFront();
  10308. void ClearSelection();
  10309. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10310. void DisableLayoutUpdate();
  10311. IntVector2 ElementToScreen(const IntVector2&);
  10312. void EnableLayoutUpdate();
  10313. uint FindChild(UIElement) const;
  10314. Variant GetAttribute(const String&) const;
  10315. ValueAnimation GetAttributeAnimation(const String&) const;
  10316. float GetAttributeAnimationSpeed(const String&) const;
  10317. float GetAttributeAnimationTime(const String&) const;
  10318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10319. Variant GetAttributeDefault(const String&) const;
  10320. UIElement GetChild(const String&, bool = false) const;
  10321. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10322. Array<UIElement> GetChildren(bool = false) const;
  10323. UIElement GetElementEventSender() const;
  10324. bool GetInterceptNetworkUpdate(const String&) const;
  10325. uint GetNumChildren(bool) const;
  10326. void InsertChild(uint, UIElement);
  10327. bool IsInside(IntVector2, bool);
  10328. bool IsInsideCombined(IntVector2, bool);
  10329. bool Load(File, bool = false);
  10330. bool Load(VectorBuffer&, bool = false);
  10331. bool LoadChildXML(XMLFile, XMLFile = null);
  10332. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10333. bool LoadXML(File);
  10334. bool LoadXML(VectorBuffer&);
  10335. bool LoadXML(XMLFile, XMLFile);
  10336. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10337. bool LoadXML(const XMLElement&, bool = false);
  10338. void MarkNetworkUpdate() const;
  10339. void Remove();
  10340. void RemoveAllChildren();
  10341. void RemoveAttributeAnimation(const String&);
  10342. void RemoveChild(UIElement, uint = 0);
  10343. void RemoveChild(uint);
  10344. void RemoveInstanceDefault();
  10345. void RemoveObjectAnimation();
  10346. void ResetDeepEnabled();
  10347. void ResetToDefault();
  10348. bool Save(File) const;
  10349. bool Save(VectorBuffer&) const;
  10350. bool SaveXML(File, const String& = "\t");
  10351. bool SaveXML(VectorBuffer&, const String& = "\t");
  10352. bool SaveXML(XMLElement&) const;
  10353. IntVector2 ScreenToElement(const IntVector2&);
  10354. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10355. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10356. void SetAnimationTime(float);
  10357. bool SetAttribute(const String&, const Variant&);
  10358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10359. void SetAttributeAnimationSpeed(const String&, float);
  10360. void SetAttributeAnimationTime(const String&, float);
  10361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10362. void SetDeepEnabled(bool);
  10363. void SetEnabledRecursive(bool);
  10364. void SetFixedHeight(int);
  10365. void SetFixedSize(int, int);
  10366. void SetFixedWidth(int);
  10367. bool SetFont(Font, int);
  10368. bool SetFont(const String&, int);
  10369. void SetInterceptNetworkUpdate(const String&, bool);
  10370. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10371. void SetMaxSize(int, int);
  10372. void SetMinSize(int, int);
  10373. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10374. void SetPosition(int, int);
  10375. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10376. void SetSize(int, int);
  10377. bool SetStyle(const String&, XMLFile = null);
  10378. bool SetStyle(const XMLElement&);
  10379. bool SetStyleAuto(XMLFile = null);
  10380. void UpdateLayout();
  10381. const Variant& GetVar(const StringHash&);
  10382. // Properties:
  10383. bool animationEnabled;
  10384. /* readonly */
  10385. Array<Variant> attributeDefaults;
  10386. /* readonly */
  10387. Array<AttributeInfo> attributeInfos;
  10388. Array<Variant> attributes;
  10389. bool autoLocalizable;
  10390. bool bringToBack;
  10391. bool bringToFront;
  10392. /* readonly */
  10393. String category;
  10394. /* readonly */
  10395. Array<IntVector2> charPositions;
  10396. /* readonly */
  10397. Array<IntVector2> charSizes;
  10398. /* readonly */
  10399. IntVector2 childOffset;
  10400. /* readonly */
  10401. Array<UIElement> children;
  10402. IntRect clipBorder;
  10403. bool clipChildren;
  10404. /* writeonly */
  10405. Color color;
  10406. /* readonly */
  10407. bool colorGradient;
  10408. Array<Color> colors;
  10409. /* readonly */
  10410. IntRect combinedScreenRect;
  10411. XMLFile defaultStyle;
  10412. /* readonly */
  10413. float derivedOpacity;
  10414. /* readonly */
  10415. uint dragButtonCombo;
  10416. /* readonly */
  10417. int dragButtonCount;
  10418. uint dragDropMode;
  10419. bool editable;
  10420. Color effectColor;
  10421. bool elementEventSender;
  10422. bool enabled;
  10423. /* readonly */
  10424. bool enabledSelf;
  10425. /* readonly */
  10426. bool fixedHeight;
  10427. /* readonly */
  10428. bool fixedSize;
  10429. /* readonly */
  10430. bool fixedWidth;
  10431. bool focus;
  10432. FocusMode focusMode;
  10433. /* readonly */
  10434. Font font;
  10435. /* readonly */
  10436. int fontSize;
  10437. int height;
  10438. HorizontalAlignment horizontalAlignment;
  10439. Color hoverColor;
  10440. /* readonly */
  10441. bool hovering;
  10442. int indent;
  10443. int indentSpacing;
  10444. /* readonly */
  10445. int indentWidth;
  10446. bool internal;
  10447. IntRect layoutBorder;
  10448. Vector2 layoutFlexScale;
  10449. LayoutMode layoutMode;
  10450. int layoutSpacing;
  10451. int maxHeight;
  10452. IntVector2 maxSize;
  10453. int maxWidth;
  10454. int minHeight;
  10455. IntVector2 minSize;
  10456. int minWidth;
  10457. String name;
  10458. /* readonly */
  10459. uint numAllChildren;
  10460. /* readonly */
  10461. uint numAttributes;
  10462. /* readonly */
  10463. uint numChars;
  10464. /* readonly */
  10465. uint numChildren;
  10466. /* readonly */
  10467. uint numRows;
  10468. ObjectAnimation objectAnimation;
  10469. float opacity;
  10470. UIElement parent;
  10471. IntVector2 position;
  10472. int priority;
  10473. /* readonly */
  10474. int refs;
  10475. /* readonly */
  10476. UIElement root;
  10477. /* readonly */
  10478. int rowHeight;
  10479. float rowSpacing;
  10480. /* readonly */
  10481. Array<int> rowWidths;
  10482. /* readonly */
  10483. IntVector2 screenPosition;
  10484. bool selected;
  10485. Color selectionColor;
  10486. /* readonly */
  10487. uint selectionLength;
  10488. /* readonly */
  10489. uint selectionStart;
  10490. IntVector2 size;
  10491. bool sortChildren;
  10492. String style;
  10493. bool temporary;
  10494. String text;
  10495. HorizontalAlignment textAlignment;
  10496. TextEffect textEffect;
  10497. TraversalMode traversalMode;
  10498. /* readonly */
  10499. StringHash type;
  10500. /* readonly */
  10501. String typeName;
  10502. bool useDerivedOpacity;
  10503. /* readonly */
  10504. VariantMap vars;
  10505. VerticalAlignment verticalAlignment;
  10506. bool visible;
  10507. /* readonly */
  10508. bool visibleEffective;
  10509. /* readonly */
  10510. int weakRefs;
  10511. int width;
  10512. bool wordwrap;
  10513. };
  10514. class Text3D
  10515. {
  10516. // Methods:
  10517. void ApplyAttributes();
  10518. void DrawDebugGeometry(DebugRenderer, bool);
  10519. Variant GetAttribute(const String&) const;
  10520. ValueAnimation GetAttributeAnimation(const String&) const;
  10521. float GetAttributeAnimationSpeed(const String&) const;
  10522. float GetAttributeAnimationTime(const String&) const;
  10523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10524. Variant GetAttributeDefault(const String&) const;
  10525. bool GetInterceptNetworkUpdate(const String&) const;
  10526. bool IsInView(Camera) const;
  10527. bool Load(File, bool = false);
  10528. bool Load(VectorBuffer&, bool = false);
  10529. bool LoadXML(const XMLElement&, bool = false);
  10530. void MarkNetworkUpdate() const;
  10531. void Remove();
  10532. void RemoveAttributeAnimation(const String&);
  10533. void RemoveInstanceDefault();
  10534. void RemoveObjectAnimation();
  10535. void ResetToDefault();
  10536. bool Save(File) const;
  10537. bool Save(VectorBuffer&) const;
  10538. bool SaveXML(XMLElement&) const;
  10539. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10540. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10541. void SetAnimationTime(float);
  10542. bool SetAttribute(const String&, const Variant&);
  10543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10544. void SetAttributeAnimationSpeed(const String&, float);
  10545. void SetAttributeAnimationTime(const String&, float);
  10546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10547. bool SetFont(Font, int);
  10548. bool SetFont(const String&, int);
  10549. void SetInterceptNetworkUpdate(const String&, bool);
  10550. // Properties:
  10551. bool animationEnabled;
  10552. /* readonly */
  10553. Array<Variant> attributeDefaults;
  10554. /* readonly */
  10555. Array<AttributeInfo> attributeInfos;
  10556. Array<Variant> attributes;
  10557. /* readonly */
  10558. BoundingBox boundingBox;
  10559. bool castShadows;
  10560. /* readonly */
  10561. String category;
  10562. /* readonly */
  10563. Array<IntVector2> charPositions;
  10564. /* readonly */
  10565. Array<IntVector2> charSizes;
  10566. /* writeonly */
  10567. Color color;
  10568. Array<Color> colors;
  10569. float drawDistance;
  10570. Color effectColor;
  10571. float effectDepthBias;
  10572. bool enabled;
  10573. /* readonly */
  10574. bool enabledEffective;
  10575. FaceCameraMode faceCameraMode;
  10576. /* readonly */
  10577. Font font;
  10578. /* readonly */
  10579. int fontSize;
  10580. HorizontalAlignment horizontalAlignment;
  10581. /* readonly */
  10582. uint id;
  10583. /* readonly */
  10584. bool inView;
  10585. uint lightMask;
  10586. float lodBias;
  10587. Material material;
  10588. uint maxLights;
  10589. /* readonly */
  10590. Node node;
  10591. /* readonly */
  10592. uint numAttributes;
  10593. /* readonly */
  10594. uint numChars;
  10595. /* readonly */
  10596. uint numRows;
  10597. ObjectAnimation objectAnimation;
  10598. bool occludee;
  10599. bool occluder;
  10600. float opacity;
  10601. /* readonly */
  10602. int refs;
  10603. /* readonly */
  10604. int rowHeight;
  10605. float rowSpacing;
  10606. /* readonly */
  10607. Array<int> rowWidths;
  10608. float shadowDistance;
  10609. uint shadowMask;
  10610. bool temporary;
  10611. String text;
  10612. HorizontalAlignment textAlignment;
  10613. TextEffect textEffect;
  10614. /* readonly */
  10615. StringHash type;
  10616. /* readonly */
  10617. String typeName;
  10618. VerticalAlignment verticalAlignment;
  10619. uint viewMask;
  10620. /* readonly */
  10621. int weakRefs;
  10622. int width;
  10623. bool wordwrap;
  10624. /* readonly */
  10625. BoundingBox worldBoundingBox;
  10626. uint zoneMask;
  10627. };
  10628. class Texture
  10629. {
  10630. // Methods:
  10631. void ClearDataLost();
  10632. bool Load(File);
  10633. bool Load(VectorBuffer&);
  10634. bool Save(File) const;
  10635. bool Save(VectorBuffer&) const;
  10636. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10637. void SetNumLevels(uint);
  10638. // Properties:
  10639. Array<TextureAddressMode> addressMode;
  10640. Texture backupTexture;
  10641. Color borderColor;
  10642. /* readonly */
  10643. String category;
  10644. /* readonly */
  10645. uint components;
  10646. /* readonly */
  10647. bool compressed;
  10648. /* readonly */
  10649. bool dataLost;
  10650. TextureFilterMode filterMode;
  10651. /* readonly */
  10652. uint format;
  10653. /* readonly */
  10654. int height;
  10655. /* readonly */
  10656. Array<int> levelHeight;
  10657. /* readonly */
  10658. Array<int> levelWidth;
  10659. /* readonly */
  10660. uint levels;
  10661. /* readonly */
  10662. uint memoryUse;
  10663. Array<int> mipsToSkip;
  10664. String name;
  10665. /* readonly */
  10666. int refs;
  10667. bool sRGB;
  10668. /* readonly */
  10669. StringHash type;
  10670. /* readonly */
  10671. String typeName;
  10672. /* readonly */
  10673. TextureUsage usage;
  10674. /* readonly */
  10675. uint useTimer;
  10676. /* readonly */
  10677. int weakRefs;
  10678. /* readonly */
  10679. int width;
  10680. };
  10681. class Texture2D
  10682. {
  10683. // Methods:
  10684. void ClearDataLost();
  10685. Image GetImage() const;
  10686. bool Load(File);
  10687. bool Load(VectorBuffer&);
  10688. bool Save(File) const;
  10689. bool Save(VectorBuffer&) const;
  10690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10691. bool SetData(Image, bool = false);
  10692. void SetNumLevels(uint);
  10693. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10694. // Properties:
  10695. Array<TextureAddressMode> addressMode;
  10696. Texture backupTexture;
  10697. Color borderColor;
  10698. /* readonly */
  10699. String category;
  10700. /* readonly */
  10701. uint components;
  10702. /* readonly */
  10703. bool compressed;
  10704. /* readonly */
  10705. bool dataLost;
  10706. TextureFilterMode filterMode;
  10707. /* readonly */
  10708. uint format;
  10709. /* readonly */
  10710. int height;
  10711. /* readonly */
  10712. Array<int> levelHeight;
  10713. /* readonly */
  10714. Array<int> levelWidth;
  10715. /* readonly */
  10716. uint levels;
  10717. /* readonly */
  10718. uint memoryUse;
  10719. Array<int> mipsToSkip;
  10720. String name;
  10721. /* readonly */
  10722. int refs;
  10723. /* readonly */
  10724. RenderSurface renderSurface;
  10725. bool sRGB;
  10726. /* readonly */
  10727. StringHash type;
  10728. /* readonly */
  10729. String typeName;
  10730. /* readonly */
  10731. TextureUsage usage;
  10732. /* readonly */
  10733. uint useTimer;
  10734. /* readonly */
  10735. int weakRefs;
  10736. /* readonly */
  10737. int width;
  10738. };
  10739. class Texture3D
  10740. {
  10741. // Methods:
  10742. void ClearDataLost();
  10743. bool Load(File);
  10744. bool Load(VectorBuffer&);
  10745. bool Save(File) const;
  10746. bool Save(VectorBuffer&) const;
  10747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10748. bool SetData(Image, bool = false);
  10749. void SetNumLevels(uint);
  10750. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10751. // Properties:
  10752. Array<TextureAddressMode> addressMode;
  10753. Texture backupTexture;
  10754. Color borderColor;
  10755. /* readonly */
  10756. String category;
  10757. /* readonly */
  10758. uint components;
  10759. /* readonly */
  10760. bool compressed;
  10761. /* readonly */
  10762. bool dataLost;
  10763. TextureFilterMode filterMode;
  10764. /* readonly */
  10765. uint format;
  10766. /* readonly */
  10767. int height;
  10768. /* readonly */
  10769. Array<int> levelHeight;
  10770. /* readonly */
  10771. Array<int> levelWidth;
  10772. /* readonly */
  10773. uint levels;
  10774. /* readonly */
  10775. uint memoryUse;
  10776. Array<int> mipsToSkip;
  10777. String name;
  10778. /* readonly */
  10779. int refs;
  10780. /* readonly */
  10781. RenderSurface renderSurface;
  10782. bool sRGB;
  10783. /* readonly */
  10784. StringHash type;
  10785. /* readonly */
  10786. String typeName;
  10787. /* readonly */
  10788. TextureUsage usage;
  10789. /* readonly */
  10790. uint useTimer;
  10791. /* readonly */
  10792. int weakRefs;
  10793. /* readonly */
  10794. int width;
  10795. };
  10796. class TextureCube
  10797. {
  10798. // Methods:
  10799. void ClearDataLost();
  10800. bool Load(File);
  10801. bool Load(VectorBuffer&);
  10802. bool Save(File) const;
  10803. bool Save(VectorBuffer&) const;
  10804. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10805. bool SetData(CubeMapFace, Image, bool = false);
  10806. void SetNumLevels(uint);
  10807. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10808. // Properties:
  10809. Array<TextureAddressMode> addressMode;
  10810. Texture backupTexture;
  10811. Color borderColor;
  10812. /* readonly */
  10813. String category;
  10814. /* readonly */
  10815. uint components;
  10816. /* readonly */
  10817. bool compressed;
  10818. /* readonly */
  10819. bool dataLost;
  10820. TextureFilterMode filterMode;
  10821. /* readonly */
  10822. uint format;
  10823. /* readonly */
  10824. int height;
  10825. /* readonly */
  10826. Array<int> levelHeight;
  10827. /* readonly */
  10828. Array<int> levelWidth;
  10829. /* readonly */
  10830. uint levels;
  10831. /* readonly */
  10832. uint memoryUse;
  10833. Array<int> mipsToSkip;
  10834. String name;
  10835. /* readonly */
  10836. int refs;
  10837. /* readonly */
  10838. Array<RenderSurface> renderSurfaces;
  10839. bool sRGB;
  10840. /* readonly */
  10841. StringHash type;
  10842. /* readonly */
  10843. String typeName;
  10844. /* readonly */
  10845. TextureUsage usage;
  10846. /* readonly */
  10847. uint useTimer;
  10848. /* readonly */
  10849. int weakRefs;
  10850. /* readonly */
  10851. int width;
  10852. };
  10853. class TextureFrame
  10854. {
  10855. // Properties:
  10856. float time;
  10857. Rect uv;
  10858. };
  10859. class Tile2D
  10860. {
  10861. // Methods:
  10862. bool HasProperty(const String&) const;
  10863. const String& GetProperty(const String&) const;
  10864. // Properties:
  10865. /* readonly */
  10866. int gid;
  10867. /* readonly */
  10868. int refs;
  10869. /* readonly */
  10870. Sprite2D sprite;
  10871. /* readonly */
  10872. int weakRefs;
  10873. };
  10874. class TileMap2D
  10875. {
  10876. // Methods:
  10877. void ApplyAttributes();
  10878. void DrawDebugGeometry(DebugRenderer, bool);
  10879. Variant GetAttribute(const String&) const;
  10880. ValueAnimation GetAttributeAnimation(const String&) const;
  10881. float GetAttributeAnimationSpeed(const String&) const;
  10882. float GetAttributeAnimationTime(const String&) const;
  10883. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10884. Variant GetAttributeDefault(const String&) const;
  10885. bool GetInterceptNetworkUpdate(const String&) const;
  10886. TileMapLayer2D GetLayer(uint) const;
  10887. bool Load(File, bool = false);
  10888. bool Load(VectorBuffer&, bool = false);
  10889. bool LoadXML(const XMLElement&, bool = false);
  10890. void MarkNetworkUpdate() const;
  10891. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10892. void Remove();
  10893. void RemoveAttributeAnimation(const String&);
  10894. void RemoveInstanceDefault();
  10895. void RemoveObjectAnimation();
  10896. void ResetToDefault();
  10897. bool Save(File) const;
  10898. bool Save(VectorBuffer&) const;
  10899. bool SaveXML(XMLElement&) const;
  10900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10901. void SetAnimationTime(float);
  10902. bool SetAttribute(const String&, const Variant&);
  10903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10904. void SetAttributeAnimationSpeed(const String&, float);
  10905. void SetAttributeAnimationTime(const String&, float);
  10906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10907. void SetInterceptNetworkUpdate(const String&, bool);
  10908. Vector2 TileIndexToPosition(int, int) const;
  10909. // Properties:
  10910. bool animationEnabled;
  10911. /* readonly */
  10912. Array<Variant> attributeDefaults;
  10913. /* readonly */
  10914. Array<AttributeInfo> attributeInfos;
  10915. Array<Variant> attributes;
  10916. /* readonly */
  10917. String category;
  10918. bool enabled;
  10919. /* readonly */
  10920. bool enabledEffective;
  10921. /* readonly */
  10922. uint id;
  10923. /* readonly */
  10924. TileMapInfo2D info;
  10925. /* readonly */
  10926. Node node;
  10927. /* readonly */
  10928. uint numAttributes;
  10929. /* readonly */
  10930. uint numLayers;
  10931. ObjectAnimation objectAnimation;
  10932. /* readonly */
  10933. int refs;
  10934. bool temporary;
  10935. TmxFile2D tmxFile;
  10936. /* readonly */
  10937. StringHash type;
  10938. /* readonly */
  10939. String typeName;
  10940. /* readonly */
  10941. int weakRefs;
  10942. };
  10943. class TileMapInfo2D
  10944. {
  10945. // Properties:
  10946. int height;
  10947. /* readonly */
  10948. float mapHeight;
  10949. /* readonly */
  10950. float mapWidth;
  10951. Orientation2D orientation;
  10952. float tileHeight;
  10953. float tileWidth;
  10954. int width;
  10955. };
  10956. class TileMapLayer2D
  10957. {
  10958. // Methods:
  10959. void ApplyAttributes();
  10960. void DrawDebugGeometry(DebugRenderer, bool);
  10961. Variant GetAttribute(const String&) const;
  10962. ValueAnimation GetAttributeAnimation(const String&) const;
  10963. float GetAttributeAnimationSpeed(const String&) const;
  10964. float GetAttributeAnimationTime(const String&) const;
  10965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10966. Variant GetAttributeDefault(const String&) const;
  10967. bool GetInterceptNetworkUpdate(const String&) const;
  10968. TileMapObject2D GetObject(uint) const;
  10969. Node GetObjectNode(uint) const;
  10970. Tile2D GetTile(int, int) const;
  10971. Node GetTileNode(int, int) const;
  10972. bool HasProperty(const String&) const;
  10973. bool Load(File, bool = false);
  10974. bool Load(VectorBuffer&, bool = false);
  10975. bool LoadXML(const XMLElement&, bool = false);
  10976. void MarkNetworkUpdate() const;
  10977. void Remove();
  10978. void RemoveAttributeAnimation(const String&);
  10979. void RemoveInstanceDefault();
  10980. void RemoveObjectAnimation();
  10981. void ResetToDefault();
  10982. bool Save(File) const;
  10983. bool Save(VectorBuffer&) const;
  10984. bool SaveXML(XMLElement&) const;
  10985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10986. void SetAnimationTime(float);
  10987. bool SetAttribute(const String&, const Variant&);
  10988. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10989. void SetAttributeAnimationSpeed(const String&, float);
  10990. void SetAttributeAnimationTime(const String&, float);
  10991. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10992. void SetInterceptNetworkUpdate(const String&, bool);
  10993. const String& GetProperty(const String&) const;
  10994. // Properties:
  10995. bool animationEnabled;
  10996. /* readonly */
  10997. Array<Variant> attributeDefaults;
  10998. /* readonly */
  10999. Array<AttributeInfo> attributeInfos;
  11000. Array<Variant> attributes;
  11001. /* readonly */
  11002. String category;
  11003. int drawOrder;
  11004. bool enabled;
  11005. /* readonly */
  11006. bool enabledEffective;
  11007. /* readonly */
  11008. int height;
  11009. /* readonly */
  11010. uint id;
  11011. /* readonly */
  11012. Node imageNode;
  11013. /* readonly */
  11014. TileMapLayerType2D layerType;
  11015. /* readonly */
  11016. Node node;
  11017. /* readonly */
  11018. uint numAttributes;
  11019. /* readonly */
  11020. uint numObjects;
  11021. ObjectAnimation objectAnimation;
  11022. /* readonly */
  11023. int refs;
  11024. bool temporary;
  11025. /* readonly */
  11026. StringHash type;
  11027. /* readonly */
  11028. String typeName;
  11029. bool visible;
  11030. /* readonly */
  11031. int weakRefs;
  11032. /* readonly */
  11033. int width;
  11034. };
  11035. class TileMapObject2D
  11036. {
  11037. // Methods:
  11038. bool HasProperty(const String&) const;
  11039. const String& GetProperty(const String&) const;
  11040. const Vector2& GetPoint(uint) const;
  11041. // Properties:
  11042. /* readonly */
  11043. String name;
  11044. /* readonly */
  11045. uint numPoints;
  11046. /* readonly */
  11047. TileObjectType2D objectType;
  11048. /* readonly */
  11049. Vector2 position;
  11050. /* readonly */
  11051. int refs;
  11052. /* readonly */
  11053. Vector2 size;
  11054. /* readonly */
  11055. int tileGid;
  11056. /* readonly */
  11057. Sprite2D tileSprite;
  11058. /* readonly */
  11059. String type;
  11060. /* readonly */
  11061. int weakRefs;
  11062. };
  11063. class Time
  11064. {
  11065. // Methods:
  11066. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11067. // Properties:
  11068. /* readonly */
  11069. String category;
  11070. /* readonly */
  11071. float elapsedTime;
  11072. /* readonly */
  11073. uint frameNumber;
  11074. /* readonly */
  11075. int refs;
  11076. /* readonly */
  11077. uint systemTime;
  11078. /* readonly */
  11079. uint timeSinceEpoch;
  11080. /* readonly */
  11081. String timeStamp;
  11082. /* readonly */
  11083. float timeStep;
  11084. /* readonly */
  11085. StringHash type;
  11086. /* readonly */
  11087. String typeName;
  11088. /* readonly */
  11089. int weakRefs;
  11090. };
  11091. class Timer
  11092. {
  11093. // Methods:
  11094. uint GetMSec(bool);
  11095. void Reset();
  11096. };
  11097. class TmxFile2D
  11098. {
  11099. // Methods:
  11100. bool Load(File);
  11101. bool Load(VectorBuffer&);
  11102. bool Save(File) const;
  11103. bool Save(VectorBuffer&) const;
  11104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11105. // Properties:
  11106. /* readonly */
  11107. String category;
  11108. /* readonly */
  11109. uint memoryUse;
  11110. String name;
  11111. /* readonly */
  11112. int refs;
  11113. /* readonly */
  11114. StringHash type;
  11115. /* readonly */
  11116. String typeName;
  11117. /* readonly */
  11118. uint useTimer;
  11119. /* readonly */
  11120. int weakRefs;
  11121. };
  11122. class ToolTip
  11123. {
  11124. // Methods:
  11125. void AddChild(UIElement);
  11126. void ApplyAttributes();
  11127. void BringToFront();
  11128. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11129. void DisableLayoutUpdate();
  11130. IntVector2 ElementToScreen(const IntVector2&);
  11131. void EnableLayoutUpdate();
  11132. uint FindChild(UIElement) const;
  11133. Variant GetAttribute(const String&) const;
  11134. ValueAnimation GetAttributeAnimation(const String&) const;
  11135. float GetAttributeAnimationSpeed(const String&) const;
  11136. float GetAttributeAnimationTime(const String&) const;
  11137. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11138. Variant GetAttributeDefault(const String&) const;
  11139. UIElement GetChild(const String&, bool = false) const;
  11140. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11141. Array<UIElement> GetChildren(bool = false) const;
  11142. UIElement GetElementEventSender() const;
  11143. bool GetInterceptNetworkUpdate(const String&) const;
  11144. uint GetNumChildren(bool) const;
  11145. void InsertChild(uint, UIElement);
  11146. bool IsInside(IntVector2, bool);
  11147. bool IsInsideCombined(IntVector2, bool);
  11148. bool Load(File, bool = false);
  11149. bool Load(VectorBuffer&, bool = false);
  11150. bool LoadChildXML(XMLFile, XMLFile = null);
  11151. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11152. bool LoadXML(File);
  11153. bool LoadXML(VectorBuffer&);
  11154. bool LoadXML(XMLFile, XMLFile);
  11155. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11156. bool LoadXML(const XMLElement&, bool = false);
  11157. void MarkNetworkUpdate() const;
  11158. void Remove();
  11159. void RemoveAllChildren();
  11160. void RemoveAttributeAnimation(const String&);
  11161. void RemoveChild(UIElement, uint = 0);
  11162. void RemoveChild(uint);
  11163. void RemoveInstanceDefault();
  11164. void RemoveObjectAnimation();
  11165. void ResetDeepEnabled();
  11166. void ResetToDefault();
  11167. bool Save(File) const;
  11168. bool Save(VectorBuffer&) const;
  11169. bool SaveXML(File, const String& = "\t");
  11170. bool SaveXML(VectorBuffer&, const String& = "\t");
  11171. bool SaveXML(XMLElement&) const;
  11172. IntVector2 ScreenToElement(const IntVector2&);
  11173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11174. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11175. void SetAnimationTime(float);
  11176. bool SetAttribute(const String&, const Variant&);
  11177. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11178. void SetAttributeAnimationSpeed(const String&, float);
  11179. void SetAttributeAnimationTime(const String&, float);
  11180. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11181. void SetDeepEnabled(bool);
  11182. void SetEnabledRecursive(bool);
  11183. void SetFixedHeight(int);
  11184. void SetFixedSize(int, int);
  11185. void SetFixedWidth(int);
  11186. void SetInterceptNetworkUpdate(const String&, bool);
  11187. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11188. void SetMaxSize(int, int);
  11189. void SetMinSize(int, int);
  11190. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11191. void SetPosition(int, int);
  11192. void SetSize(int, int);
  11193. bool SetStyle(const String&, XMLFile = null);
  11194. bool SetStyle(const XMLElement&);
  11195. bool SetStyleAuto(XMLFile = null);
  11196. void UpdateLayout();
  11197. const Variant& GetVar(const StringHash&);
  11198. // Properties:
  11199. bool animationEnabled;
  11200. /* readonly */
  11201. Array<Variant> attributeDefaults;
  11202. /* readonly */
  11203. Array<AttributeInfo> attributeInfos;
  11204. Array<Variant> attributes;
  11205. bool bringToBack;
  11206. bool bringToFront;
  11207. /* readonly */
  11208. String category;
  11209. /* readonly */
  11210. IntVector2 childOffset;
  11211. /* readonly */
  11212. Array<UIElement> children;
  11213. IntRect clipBorder;
  11214. bool clipChildren;
  11215. /* writeonly */
  11216. Color color;
  11217. /* readonly */
  11218. bool colorGradient;
  11219. Array<Color> colors;
  11220. /* readonly */
  11221. IntRect combinedScreenRect;
  11222. XMLFile defaultStyle;
  11223. float delay;
  11224. /* readonly */
  11225. float derivedOpacity;
  11226. /* readonly */
  11227. uint dragButtonCombo;
  11228. /* readonly */
  11229. int dragButtonCount;
  11230. uint dragDropMode;
  11231. bool editable;
  11232. bool elementEventSender;
  11233. bool enabled;
  11234. /* readonly */
  11235. bool enabledSelf;
  11236. /* readonly */
  11237. bool fixedHeight;
  11238. /* readonly */
  11239. bool fixedSize;
  11240. /* readonly */
  11241. bool fixedWidth;
  11242. bool focus;
  11243. FocusMode focusMode;
  11244. int height;
  11245. HorizontalAlignment horizontalAlignment;
  11246. /* readonly */
  11247. bool hovering;
  11248. int indent;
  11249. int indentSpacing;
  11250. /* readonly */
  11251. int indentWidth;
  11252. bool internal;
  11253. IntRect layoutBorder;
  11254. Vector2 layoutFlexScale;
  11255. LayoutMode layoutMode;
  11256. int layoutSpacing;
  11257. int maxHeight;
  11258. IntVector2 maxSize;
  11259. int maxWidth;
  11260. int minHeight;
  11261. IntVector2 minSize;
  11262. int minWidth;
  11263. String name;
  11264. /* readonly */
  11265. uint numAllChildren;
  11266. /* readonly */
  11267. uint numAttributes;
  11268. /* readonly */
  11269. uint numChildren;
  11270. ObjectAnimation objectAnimation;
  11271. float opacity;
  11272. UIElement parent;
  11273. IntVector2 position;
  11274. int priority;
  11275. /* readonly */
  11276. int refs;
  11277. /* readonly */
  11278. UIElement root;
  11279. /* readonly */
  11280. IntVector2 screenPosition;
  11281. bool selected;
  11282. IntVector2 size;
  11283. bool sortChildren;
  11284. String style;
  11285. bool temporary;
  11286. TraversalMode traversalMode;
  11287. /* readonly */
  11288. StringHash type;
  11289. /* readonly */
  11290. String typeName;
  11291. bool useDerivedOpacity;
  11292. /* readonly */
  11293. VariantMap vars;
  11294. VerticalAlignment verticalAlignment;
  11295. bool visible;
  11296. /* readonly */
  11297. bool visibleEffective;
  11298. /* readonly */
  11299. int weakRefs;
  11300. int width;
  11301. };
  11302. class TouchState
  11303. {
  11304. // Properties:
  11305. IntVector2 delta;
  11306. IntVector2 lastPosition;
  11307. IntVector2 position;
  11308. float pressure;
  11309. int touchID;
  11310. /* readonly */
  11311. UIElement touchedElement;
  11312. };
  11313. class UI
  11314. {
  11315. // Methods:
  11316. void Clear();
  11317. void DebugDraw(UIElement);
  11318. UIElement GetElementAt(const IntVector2&, bool = true);
  11319. UIElement GetElementAt(int, int, bool = true);
  11320. bool HasModalElement() const;
  11321. bool IsDragging() const;
  11322. UIElement LoadLayout(File);
  11323. UIElement LoadLayout(File, XMLFile);
  11324. UIElement LoadLayout(VectorBuffer&);
  11325. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11326. UIElement LoadLayout(XMLFile);
  11327. UIElement LoadLayout(XMLFile, XMLFile);
  11328. bool SaveLayout(File, UIElement);
  11329. bool SaveLayout(VectorBuffer&, UIElement);
  11330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11331. void SetFocusElement(UIElement, bool = false);
  11332. void SetHeight(float);
  11333. void SetWidth(float);
  11334. const Array<UIElement> GetDragElements();
  11335. // Properties:
  11336. /* readonly */
  11337. String category;
  11338. String clipBoardText;
  11339. Cursor cursor;
  11340. /* readonly */
  11341. IntVector2 cursorPosition;
  11342. float defaultToolTipDelay;
  11343. float doubleClickInterval;
  11344. int dragBeginDistance;
  11345. float dragBeginInterval;
  11346. UIElement focusElement;
  11347. bool forceAutoHint;
  11348. /* readonly */
  11349. UIElement frontElement;
  11350. int maxFontTextureSize;
  11351. /* readonly */
  11352. UIElement modalRoot;
  11353. bool nonFocusedMouseWheel;
  11354. /* readonly */
  11355. int refs;
  11356. /* readonly */
  11357. UIElement root;
  11358. float scale;
  11359. /* readonly */
  11360. StringHash type;
  11361. /* readonly */
  11362. String typeName;
  11363. bool useMutableGlyphs;
  11364. bool useScreenKeyboard;
  11365. bool useSystemClipboard;
  11366. /* readonly */
  11367. int weakRefs;
  11368. };
  11369. class UIElement
  11370. {
  11371. // Methods:
  11372. void AddChild(UIElement);
  11373. void ApplyAttributes();
  11374. void BringToFront();
  11375. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11376. void DisableLayoutUpdate();
  11377. IntVector2 ElementToScreen(const IntVector2&);
  11378. void EnableLayoutUpdate();
  11379. uint FindChild(UIElement) const;
  11380. Variant GetAttribute(const String&) const;
  11381. ValueAnimation GetAttributeAnimation(const String&) const;
  11382. float GetAttributeAnimationSpeed(const String&) const;
  11383. float GetAttributeAnimationTime(const String&) const;
  11384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11385. Variant GetAttributeDefault(const String&) const;
  11386. UIElement GetChild(const String&, bool = false) const;
  11387. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11388. Array<UIElement> GetChildren(bool = false) const;
  11389. UIElement GetElementEventSender() const;
  11390. bool GetInterceptNetworkUpdate(const String&) const;
  11391. uint GetNumChildren(bool) const;
  11392. void InsertChild(uint, UIElement);
  11393. bool IsInside(IntVector2, bool);
  11394. bool IsInsideCombined(IntVector2, bool);
  11395. bool Load(File, bool = false);
  11396. bool Load(VectorBuffer&, bool = false);
  11397. bool LoadChildXML(XMLFile, XMLFile = null);
  11398. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11399. bool LoadXML(File);
  11400. bool LoadXML(VectorBuffer&);
  11401. bool LoadXML(XMLFile, XMLFile);
  11402. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11403. bool LoadXML(const XMLElement&, bool = false);
  11404. void MarkNetworkUpdate() const;
  11405. void Remove();
  11406. void RemoveAllChildren();
  11407. void RemoveAttributeAnimation(const String&);
  11408. void RemoveChild(UIElement, uint = 0);
  11409. void RemoveChild(uint);
  11410. void RemoveInstanceDefault();
  11411. void RemoveObjectAnimation();
  11412. void ResetDeepEnabled();
  11413. void ResetToDefault();
  11414. bool Save(File) const;
  11415. bool Save(VectorBuffer&) const;
  11416. bool SaveXML(File, const String& = "\t");
  11417. bool SaveXML(VectorBuffer&, const String& = "\t");
  11418. bool SaveXML(XMLElement&) const;
  11419. IntVector2 ScreenToElement(const IntVector2&);
  11420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11421. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11422. void SetAnimationTime(float);
  11423. bool SetAttribute(const String&, const Variant&);
  11424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11425. void SetAttributeAnimationSpeed(const String&, float);
  11426. void SetAttributeAnimationTime(const String&, float);
  11427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11428. void SetDeepEnabled(bool);
  11429. void SetEnabledRecursive(bool);
  11430. void SetFixedHeight(int);
  11431. void SetFixedSize(int, int);
  11432. void SetFixedWidth(int);
  11433. void SetInterceptNetworkUpdate(const String&, bool);
  11434. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11435. void SetMaxSize(int, int);
  11436. void SetMinSize(int, int);
  11437. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11438. void SetPosition(int, int);
  11439. void SetSize(int, int);
  11440. bool SetStyle(const String&, XMLFile = null);
  11441. bool SetStyle(const XMLElement&);
  11442. bool SetStyleAuto(XMLFile = null);
  11443. void UpdateLayout();
  11444. const Variant& GetVar(const StringHash&);
  11445. // Properties:
  11446. bool animationEnabled;
  11447. /* readonly */
  11448. Array<Variant> attributeDefaults;
  11449. /* readonly */
  11450. Array<AttributeInfo> attributeInfos;
  11451. Array<Variant> attributes;
  11452. bool bringToBack;
  11453. bool bringToFront;
  11454. /* readonly */
  11455. String category;
  11456. /* readonly */
  11457. IntVector2 childOffset;
  11458. /* readonly */
  11459. Array<UIElement> children;
  11460. IntRect clipBorder;
  11461. bool clipChildren;
  11462. /* writeonly */
  11463. Color color;
  11464. /* readonly */
  11465. bool colorGradient;
  11466. Array<Color> colors;
  11467. /* readonly */
  11468. IntRect combinedScreenRect;
  11469. XMLFile defaultStyle;
  11470. /* readonly */
  11471. float derivedOpacity;
  11472. /* readonly */
  11473. uint dragButtonCombo;
  11474. /* readonly */
  11475. int dragButtonCount;
  11476. uint dragDropMode;
  11477. bool editable;
  11478. bool elementEventSender;
  11479. bool enabled;
  11480. /* readonly */
  11481. bool enabledSelf;
  11482. /* readonly */
  11483. bool fixedHeight;
  11484. /* readonly */
  11485. bool fixedSize;
  11486. /* readonly */
  11487. bool fixedWidth;
  11488. bool focus;
  11489. FocusMode focusMode;
  11490. int height;
  11491. HorizontalAlignment horizontalAlignment;
  11492. /* readonly */
  11493. bool hovering;
  11494. int indent;
  11495. int indentSpacing;
  11496. /* readonly */
  11497. int indentWidth;
  11498. bool internal;
  11499. IntRect layoutBorder;
  11500. Vector2 layoutFlexScale;
  11501. LayoutMode layoutMode;
  11502. int layoutSpacing;
  11503. int maxHeight;
  11504. IntVector2 maxSize;
  11505. int maxWidth;
  11506. int minHeight;
  11507. IntVector2 minSize;
  11508. int minWidth;
  11509. String name;
  11510. /* readonly */
  11511. uint numAllChildren;
  11512. /* readonly */
  11513. uint numAttributes;
  11514. /* readonly */
  11515. uint numChildren;
  11516. ObjectAnimation objectAnimation;
  11517. float opacity;
  11518. UIElement parent;
  11519. IntVector2 position;
  11520. int priority;
  11521. /* readonly */
  11522. int refs;
  11523. /* readonly */
  11524. UIElement root;
  11525. /* readonly */
  11526. IntVector2 screenPosition;
  11527. bool selected;
  11528. IntVector2 size;
  11529. bool sortChildren;
  11530. String style;
  11531. bool temporary;
  11532. TraversalMode traversalMode;
  11533. /* readonly */
  11534. StringHash type;
  11535. /* readonly */
  11536. String typeName;
  11537. bool useDerivedOpacity;
  11538. /* readonly */
  11539. VariantMap vars;
  11540. VerticalAlignment verticalAlignment;
  11541. bool visible;
  11542. /* readonly */
  11543. bool visibleEffective;
  11544. /* readonly */
  11545. int weakRefs;
  11546. int width;
  11547. };
  11548. class ValueAnimation
  11549. {
  11550. // Methods:
  11551. bool Load(File);
  11552. bool Load(VectorBuffer&);
  11553. bool Save(File) const;
  11554. bool Save(VectorBuffer&) const;
  11555. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11556. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11557. void SetKeyFrame(float, const Variant&);
  11558. // Properties:
  11559. /* readonly */
  11560. String category;
  11561. InterpMethod interpolationMethod;
  11562. /* readonly */
  11563. uint memoryUse;
  11564. String name;
  11565. /* readonly */
  11566. int refs;
  11567. float splineTension;
  11568. /* readonly */
  11569. StringHash type;
  11570. /* readonly */
  11571. String typeName;
  11572. /* readonly */
  11573. uint useTimer;
  11574. VariantType valueType;
  11575. /* readonly */
  11576. int weakRefs;
  11577. };
  11578. class Variant
  11579. {
  11580. // Methods:
  11581. void Clear();
  11582. const Color& GetColor() const;
  11583. void FromString(VariantType, const String&);
  11584. void FromString(const String&, const String&);
  11585. bool GetBool() const;
  11586. double GetDouble() const;
  11587. float GetFloat() const;
  11588. int GetInt() const;
  11589. RefCounted GetPtr() const;
  11590. ScriptObject GetScriptObject() const;
  11591. StringHash GetStringHash() const;
  11592. Array<String> GetStringVector() const;
  11593. uint GetUInt() const;
  11594. Array<Variant> GetVariantVector() const;
  11595. const IntRect& GetIntRect() const;
  11596. const IntVector2& GetIntVector2() const;
  11597. const Matrix3& GetMatrix3() const;
  11598. const Matrix3x4& GetMatrix3x4() const;
  11599. const Matrix4& GetMatrix4() const;
  11600. const Quaternion& GetQuaternion() const;
  11601. const ResourceRef& GetResourceRef() const;
  11602. const ResourceRefList& GetResourceRefList() const;
  11603. const String& GetString() const;
  11604. String ToString() const;
  11605. const VariantMap& GetVariantMap() const;
  11606. const Vector2& GetVector2() const;
  11607. const Vector3& GetVector3() const;
  11608. const Vector4& GetVector4() const;
  11609. const VectorBuffer GetBuffer() const;
  11610. // Properties:
  11611. /* readonly */
  11612. bool empty;
  11613. /* readonly */
  11614. VariantType type;
  11615. /* readonly */
  11616. String typeName;
  11617. /* readonly */
  11618. bool zero;
  11619. };
  11620. class VariantMap
  11621. {
  11622. // Methods:
  11623. void Clear();
  11624. bool Contains(StringHash) const;
  11625. bool Contains(const String&) const;
  11626. bool Erase(StringHash);
  11627. bool Erase(const String&);
  11628. // Properties:
  11629. /* readonly */
  11630. Array<StringHash> keys;
  11631. /* readonly */
  11632. uint length;
  11633. /* readonly */
  11634. Array<Variant> values;
  11635. };
  11636. class Vector2
  11637. {
  11638. // Methods:
  11639. Vector2 Abs() const;
  11640. float AbsDotProduct(const Vector2&) const;
  11641. float DotProduct(const Vector2&) const;
  11642. bool Equals(const Vector2&) const;
  11643. bool IsNaN() const;
  11644. Vector2 Lerp(const Vector2&, float) const;
  11645. void Normalize();
  11646. Vector2 Normalized() const;
  11647. String ToString() const;
  11648. // Properties:
  11649. /* readonly */
  11650. Array<float> data;
  11651. /* readonly */
  11652. float length;
  11653. /* readonly */
  11654. float lengthSquared;
  11655. float x;
  11656. float y;
  11657. };
  11658. class Vector3
  11659. {
  11660. // Methods:
  11661. Vector3 Abs() const;
  11662. float AbsDotProduct(const Vector3&) const;
  11663. float Angle(const Vector3&) const;
  11664. Vector3 CrossProduct(const Vector3&) const;
  11665. float DotProduct(const Vector3&) const;
  11666. bool Equals(const Vector3&) const;
  11667. bool IsNaN() const;
  11668. Vector3 Lerp(const Vector3&, float) const;
  11669. void Normalize();
  11670. Vector3 Normalized() const;
  11671. String ToString() const;
  11672. // Properties:
  11673. /* readonly */
  11674. Array<float> data;
  11675. /* readonly */
  11676. float length;
  11677. /* readonly */
  11678. float lengthSquared;
  11679. float x;
  11680. float y;
  11681. float z;
  11682. };
  11683. class Vector4
  11684. {
  11685. // Methods:
  11686. Vector4 Abs() const;
  11687. float AbsDotProduct(const Vector4&) const;
  11688. float DotProduct(const Vector4&) const;
  11689. bool Equals(const Vector4&) const;
  11690. bool IsNaN() const;
  11691. Vector4 Lerp(const Vector4&, float) const;
  11692. String ToString() const;
  11693. // Properties:
  11694. /* readonly */
  11695. Array<float> data;
  11696. float w;
  11697. float x;
  11698. float y;
  11699. float z;
  11700. };
  11701. class VectorBuffer
  11702. {
  11703. // Methods:
  11704. void Clear();
  11705. Array<uint8> Read(uint);
  11706. bool ReadBool();
  11707. BoundingBox ReadBoundingBox();
  11708. int8 ReadByte();
  11709. Color ReadColor();
  11710. double ReadDouble();
  11711. String ReadFileID();
  11712. float ReadFloat();
  11713. int ReadInt();
  11714. IntRect ReadIntRect();
  11715. IntVector2 ReadIntVector2();
  11716. String ReadLine();
  11717. Matrix3 ReadMatrix3();
  11718. Matrix3x4 ReadMatrix3x4();
  11719. Matrix4 ReadMatrix4();
  11720. uint ReadNetID();
  11721. Quaternion ReadPackedQuaternion();
  11722. Vector3 ReadPackedVector3(float);
  11723. Quaternion ReadQuaternion();
  11724. int16 ReadShort();
  11725. String ReadString();
  11726. StringHash ReadStringHash();
  11727. uint8 ReadUByte();
  11728. uint ReadUInt();
  11729. uint16 ReadUShort();
  11730. uint ReadVLE();
  11731. Variant ReadVariant();
  11732. VariantMap ReadVariantMap();
  11733. Vector2 ReadVector2();
  11734. Vector3 ReadVector3();
  11735. Vector4 ReadVector4();
  11736. VectorBuffer ReadVectorBuffer(uint);
  11737. void Resize(uint);
  11738. uint Seek(uint);
  11739. void SetData(Deserializer, uint);
  11740. uint Write(Array<uint8>);
  11741. bool WriteBool(bool);
  11742. bool WriteBoundingBox(const BoundingBox&);
  11743. bool WriteByte(int8);
  11744. bool WriteColor(const Color&);
  11745. bool WriteDouble(double);
  11746. bool WriteFileID(const String&);
  11747. bool WriteFloat(float);
  11748. bool WriteInt(int);
  11749. bool WriteIntRect(const IntRect&);
  11750. bool WriteIntVector2(const IntVector2&);
  11751. bool WriteLine(const String&);
  11752. bool WriteMatrix3(const Matrix3&);
  11753. bool WriteMatrix3x4(const Matrix3x4&);
  11754. bool WriteMatrix4(const Matrix4&);
  11755. bool WriteNetID(uint);
  11756. bool WritePackedQuaternion(const Quaternion&);
  11757. bool WritePackedVector3(const Vector3&, float);
  11758. bool WriteQuaternion(const Quaternion&);
  11759. bool WriteShort(int16);
  11760. bool WriteString(const String&);
  11761. bool WriteStringHash(const StringHash&);
  11762. bool WriteUByte(uint8);
  11763. bool WriteUInt(uint);
  11764. bool WriteUShort(uint16);
  11765. bool WriteVLE(uint);
  11766. bool WriteVariant(const Variant&);
  11767. bool WriteVariantMap(const VariantMap&);
  11768. bool WriteVector2(const Vector2&);
  11769. bool WriteVector3(const Vector3&);
  11770. bool WriteVector4(const Vector4&);
  11771. bool WriteVectorBuffer(const VectorBuffer&);
  11772. // Properties:
  11773. /* readonly */
  11774. uint checksum;
  11775. /* readonly */
  11776. bool eof;
  11777. /* readonly */
  11778. String name;
  11779. /* readonly */
  11780. uint position;
  11781. /* readonly */
  11782. uint size;
  11783. };
  11784. class VertexBuffer
  11785. {
  11786. // Methods:
  11787. VectorBuffer GetData();
  11788. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11789. bool SetData(VectorBuffer&);
  11790. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11791. void SetSize(uint, uint, bool = false);
  11792. // Properties:
  11793. /* readonly */
  11794. String category;
  11795. /* readonly */
  11796. bool dynamic;
  11797. /* readonly */
  11798. uint elementMask;
  11799. /* readonly */
  11800. int refs;
  11801. bool shadowed;
  11802. /* readonly */
  11803. StringHash type;
  11804. /* readonly */
  11805. String typeName;
  11806. /* readonly */
  11807. uint vertexCount;
  11808. /* readonly */
  11809. uint vertexSize;
  11810. /* readonly */
  11811. int weakRefs;
  11812. };
  11813. class View3D
  11814. {
  11815. // Methods:
  11816. void AddChild(UIElement);
  11817. void ApplyAttributes();
  11818. void BringToFront();
  11819. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11820. void DisableLayoutUpdate();
  11821. IntVector2 ElementToScreen(const IntVector2&);
  11822. void EnableLayoutUpdate();
  11823. uint FindChild(UIElement) const;
  11824. Variant GetAttribute(const String&) const;
  11825. ValueAnimation GetAttributeAnimation(const String&) const;
  11826. float GetAttributeAnimationSpeed(const String&) const;
  11827. float GetAttributeAnimationTime(const String&) const;
  11828. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11829. Variant GetAttributeDefault(const String&) const;
  11830. UIElement GetChild(const String&, bool = false) const;
  11831. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11832. Array<UIElement> GetChildren(bool = false) const;
  11833. UIElement GetElementEventSender() const;
  11834. bool GetInterceptNetworkUpdate(const String&) const;
  11835. uint GetNumChildren(bool) const;
  11836. void InsertChild(uint, UIElement);
  11837. bool IsInside(IntVector2, bool);
  11838. bool IsInsideCombined(IntVector2, bool);
  11839. bool Load(File, bool = false);
  11840. bool Load(VectorBuffer&, bool = false);
  11841. bool LoadChildXML(XMLFile, XMLFile = null);
  11842. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11843. bool LoadXML(File);
  11844. bool LoadXML(VectorBuffer&);
  11845. bool LoadXML(XMLFile, XMLFile);
  11846. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11847. bool LoadXML(const XMLElement&, bool = false);
  11848. void MarkNetworkUpdate() const;
  11849. void QueueUpdate();
  11850. void Remove();
  11851. void RemoveAllChildren();
  11852. void RemoveAttributeAnimation(const String&);
  11853. void RemoveChild(UIElement, uint = 0);
  11854. void RemoveChild(uint);
  11855. void RemoveInstanceDefault();
  11856. void RemoveObjectAnimation();
  11857. void ResetDeepEnabled();
  11858. void ResetToDefault();
  11859. bool Save(File) const;
  11860. bool Save(VectorBuffer&) const;
  11861. bool SaveXML(File, const String& = "\t");
  11862. bool SaveXML(VectorBuffer&, const String& = "\t");
  11863. bool SaveXML(XMLElement&) const;
  11864. IntVector2 ScreenToElement(const IntVector2&);
  11865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11866. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11867. void SetAnimationTime(float);
  11868. bool SetAttribute(const String&, const Variant&);
  11869. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11870. void SetAttributeAnimationSpeed(const String&, float);
  11871. void SetAttributeAnimationTime(const String&, float);
  11872. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11873. void SetDeepEnabled(bool);
  11874. void SetEnabledRecursive(bool);
  11875. void SetFixedHeight(int);
  11876. void SetFixedSize(int, int);
  11877. void SetFixedWidth(int);
  11878. void SetFullImageRect();
  11879. void SetHoverOffset(int, int);
  11880. void SetInterceptNetworkUpdate(const String&, bool);
  11881. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11882. void SetMaxSize(int, int);
  11883. void SetMinSize(int, int);
  11884. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11885. void SetPosition(int, int);
  11886. void SetSize(int, int);
  11887. bool SetStyle(const String&, XMLFile = null);
  11888. bool SetStyle(const XMLElement&);
  11889. bool SetStyleAuto(XMLFile = null);
  11890. void SetView(Scene, Camera, bool = true);
  11891. void UpdateLayout();
  11892. const Variant& GetVar(const StringHash&);
  11893. // Properties:
  11894. bool animationEnabled;
  11895. /* readonly */
  11896. Array<Variant> attributeDefaults;
  11897. /* readonly */
  11898. Array<AttributeInfo> attributeInfos;
  11899. Array<Variant> attributes;
  11900. bool autoUpdate;
  11901. BlendMode blendMode;
  11902. IntRect border;
  11903. bool bringToBack;
  11904. bool bringToFront;
  11905. /* readonly */
  11906. Node cameraNode;
  11907. /* readonly */
  11908. String category;
  11909. /* readonly */
  11910. IntVector2 childOffset;
  11911. /* readonly */
  11912. Array<UIElement> children;
  11913. IntRect clipBorder;
  11914. bool clipChildren;
  11915. /* writeonly */
  11916. Color color;
  11917. /* readonly */
  11918. bool colorGradient;
  11919. Array<Color> colors;
  11920. /* readonly */
  11921. IntRect combinedScreenRect;
  11922. XMLFile defaultStyle;
  11923. /* readonly */
  11924. Texture2D depthTexture;
  11925. /* readonly */
  11926. float derivedOpacity;
  11927. /* readonly */
  11928. uint dragButtonCombo;
  11929. /* readonly */
  11930. int dragButtonCount;
  11931. uint dragDropMode;
  11932. bool editable;
  11933. bool elementEventSender;
  11934. bool enabled;
  11935. /* readonly */
  11936. bool enabledSelf;
  11937. /* readonly */
  11938. bool fixedHeight;
  11939. bool fixedHeightResizing;
  11940. /* readonly */
  11941. bool fixedSize;
  11942. /* readonly */
  11943. bool fixedWidth;
  11944. bool fixedWidthResizing;
  11945. bool focus;
  11946. FocusMode focusMode;
  11947. uint format;
  11948. int height;
  11949. HorizontalAlignment horizontalAlignment;
  11950. IntVector2 hoverOffset;
  11951. /* readonly */
  11952. bool hovering;
  11953. IntRect imageBorder;
  11954. IntRect imageRect;
  11955. int indent;
  11956. int indentSpacing;
  11957. /* readonly */
  11958. int indentWidth;
  11959. bool internal;
  11960. IntRect layoutBorder;
  11961. Vector2 layoutFlexScale;
  11962. LayoutMode layoutMode;
  11963. int layoutSpacing;
  11964. int maxHeight;
  11965. IntVector2 maxSize;
  11966. int maxWidth;
  11967. int minHeight;
  11968. IntVector2 minSize;
  11969. int minWidth;
  11970. bool modal;
  11971. bool modalAutoDismiss;
  11972. Color modalFrameColor;
  11973. IntVector2 modalFrameSize;
  11974. Color modalShadeColor;
  11975. bool movable;
  11976. String name;
  11977. /* readonly */
  11978. uint numAllChildren;
  11979. /* readonly */
  11980. uint numAttributes;
  11981. /* readonly */
  11982. uint numChildren;
  11983. ObjectAnimation objectAnimation;
  11984. float opacity;
  11985. UIElement parent;
  11986. IntVector2 position;
  11987. int priority;
  11988. /* readonly */
  11989. int refs;
  11990. /* readonly */
  11991. Texture2D renderTexture;
  11992. bool resizable;
  11993. IntRect resizeBorder;
  11994. /* readonly */
  11995. UIElement root;
  11996. /* readonly */
  11997. Scene scene;
  11998. /* readonly */
  11999. IntVector2 screenPosition;
  12000. bool selected;
  12001. IntVector2 size;
  12002. bool sortChildren;
  12003. String style;
  12004. bool temporary;
  12005. Texture texture;
  12006. bool tiled;
  12007. TraversalMode traversalMode;
  12008. /* readonly */
  12009. StringHash type;
  12010. /* readonly */
  12011. String typeName;
  12012. bool useDerivedOpacity;
  12013. /* readonly */
  12014. VariantMap vars;
  12015. VerticalAlignment verticalAlignment;
  12016. /* readonly */
  12017. Viewport viewport;
  12018. bool visible;
  12019. /* readonly */
  12020. bool visibleEffective;
  12021. /* readonly */
  12022. int weakRefs;
  12023. int width;
  12024. };
  12025. class Viewport
  12026. {
  12027. // Methods:
  12028. Ray GetScreenRay(int, int) const;
  12029. Vector3 ScreenToWorldPoint(int, int, float) const;
  12030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12031. void SetRenderPath(XMLFile);
  12032. Vector2 WorldToScreenPoint(const Vector3&) const;
  12033. // Properties:
  12034. Camera camera;
  12035. /* readonly */
  12036. String category;
  12037. Camera cullCamera;
  12038. bool drawDebug;
  12039. IntRect rect;
  12040. /* readonly */
  12041. int refs;
  12042. RenderPath renderPath;
  12043. Scene scene;
  12044. /* readonly */
  12045. StringHash type;
  12046. /* readonly */
  12047. String typeName;
  12048. /* readonly */
  12049. int weakRefs;
  12050. };
  12051. class WeakHandle
  12052. {
  12053. // Methods:
  12054. RefCounted Get() const;
  12055. // Properties:
  12056. /* readonly */
  12057. bool expired;
  12058. /* readonly */
  12059. int refs;
  12060. /* readonly */
  12061. int weakRefs;
  12062. };
  12063. class Window
  12064. {
  12065. // Methods:
  12066. void AddChild(UIElement);
  12067. void ApplyAttributes();
  12068. void BringToFront();
  12069. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12070. void DisableLayoutUpdate();
  12071. IntVector2 ElementToScreen(const IntVector2&);
  12072. void EnableLayoutUpdate();
  12073. uint FindChild(UIElement) const;
  12074. Variant GetAttribute(const String&) const;
  12075. ValueAnimation GetAttributeAnimation(const String&) const;
  12076. float GetAttributeAnimationSpeed(const String&) const;
  12077. float GetAttributeAnimationTime(const String&) const;
  12078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12079. Variant GetAttributeDefault(const String&) const;
  12080. UIElement GetChild(const String&, bool = false) const;
  12081. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12082. Array<UIElement> GetChildren(bool = false) const;
  12083. UIElement GetElementEventSender() const;
  12084. bool GetInterceptNetworkUpdate(const String&) const;
  12085. uint GetNumChildren(bool) const;
  12086. void InsertChild(uint, UIElement);
  12087. bool IsInside(IntVector2, bool);
  12088. bool IsInsideCombined(IntVector2, bool);
  12089. bool Load(File, bool = false);
  12090. bool Load(VectorBuffer&, bool = false);
  12091. bool LoadChildXML(XMLFile, XMLFile = null);
  12092. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12093. bool LoadXML(File);
  12094. bool LoadXML(VectorBuffer&);
  12095. bool LoadXML(XMLFile, XMLFile);
  12096. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12097. bool LoadXML(const XMLElement&, bool = false);
  12098. void MarkNetworkUpdate() const;
  12099. void Remove();
  12100. void RemoveAllChildren();
  12101. void RemoveAttributeAnimation(const String&);
  12102. void RemoveChild(UIElement, uint = 0);
  12103. void RemoveChild(uint);
  12104. void RemoveInstanceDefault();
  12105. void RemoveObjectAnimation();
  12106. void ResetDeepEnabled();
  12107. void ResetToDefault();
  12108. bool Save(File) const;
  12109. bool Save(VectorBuffer&) const;
  12110. bool SaveXML(File, const String& = "\t");
  12111. bool SaveXML(VectorBuffer&, const String& = "\t");
  12112. bool SaveXML(XMLElement&) const;
  12113. IntVector2 ScreenToElement(const IntVector2&);
  12114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12115. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12116. void SetAnimationTime(float);
  12117. bool SetAttribute(const String&, const Variant&);
  12118. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12119. void SetAttributeAnimationSpeed(const String&, float);
  12120. void SetAttributeAnimationTime(const String&, float);
  12121. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12122. void SetDeepEnabled(bool);
  12123. void SetEnabledRecursive(bool);
  12124. void SetFixedHeight(int);
  12125. void SetFixedSize(int, int);
  12126. void SetFixedWidth(int);
  12127. void SetFullImageRect();
  12128. void SetHoverOffset(int, int);
  12129. void SetInterceptNetworkUpdate(const String&, bool);
  12130. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12131. void SetMaxSize(int, int);
  12132. void SetMinSize(int, int);
  12133. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12134. void SetPosition(int, int);
  12135. void SetSize(int, int);
  12136. bool SetStyle(const String&, XMLFile = null);
  12137. bool SetStyle(const XMLElement&);
  12138. bool SetStyleAuto(XMLFile = null);
  12139. void UpdateLayout();
  12140. const Variant& GetVar(const StringHash&);
  12141. // Properties:
  12142. bool animationEnabled;
  12143. /* readonly */
  12144. Array<Variant> attributeDefaults;
  12145. /* readonly */
  12146. Array<AttributeInfo> attributeInfos;
  12147. Array<Variant> attributes;
  12148. BlendMode blendMode;
  12149. IntRect border;
  12150. bool bringToBack;
  12151. bool bringToFront;
  12152. /* readonly */
  12153. String category;
  12154. /* readonly */
  12155. IntVector2 childOffset;
  12156. /* readonly */
  12157. Array<UIElement> children;
  12158. IntRect clipBorder;
  12159. bool clipChildren;
  12160. /* writeonly */
  12161. Color color;
  12162. /* readonly */
  12163. bool colorGradient;
  12164. Array<Color> colors;
  12165. /* readonly */
  12166. IntRect combinedScreenRect;
  12167. XMLFile defaultStyle;
  12168. /* readonly */
  12169. float derivedOpacity;
  12170. /* readonly */
  12171. uint dragButtonCombo;
  12172. /* readonly */
  12173. int dragButtonCount;
  12174. uint dragDropMode;
  12175. bool editable;
  12176. bool elementEventSender;
  12177. bool enabled;
  12178. /* readonly */
  12179. bool enabledSelf;
  12180. /* readonly */
  12181. bool fixedHeight;
  12182. bool fixedHeightResizing;
  12183. /* readonly */
  12184. bool fixedSize;
  12185. /* readonly */
  12186. bool fixedWidth;
  12187. bool fixedWidthResizing;
  12188. bool focus;
  12189. FocusMode focusMode;
  12190. int height;
  12191. HorizontalAlignment horizontalAlignment;
  12192. IntVector2 hoverOffset;
  12193. /* readonly */
  12194. bool hovering;
  12195. IntRect imageBorder;
  12196. IntRect imageRect;
  12197. int indent;
  12198. int indentSpacing;
  12199. /* readonly */
  12200. int indentWidth;
  12201. bool internal;
  12202. IntRect layoutBorder;
  12203. Vector2 layoutFlexScale;
  12204. LayoutMode layoutMode;
  12205. int layoutSpacing;
  12206. int maxHeight;
  12207. IntVector2 maxSize;
  12208. int maxWidth;
  12209. int minHeight;
  12210. IntVector2 minSize;
  12211. int minWidth;
  12212. bool modal;
  12213. bool modalAutoDismiss;
  12214. Color modalFrameColor;
  12215. IntVector2 modalFrameSize;
  12216. Color modalShadeColor;
  12217. bool movable;
  12218. String name;
  12219. /* readonly */
  12220. uint numAllChildren;
  12221. /* readonly */
  12222. uint numAttributes;
  12223. /* readonly */
  12224. uint numChildren;
  12225. ObjectAnimation objectAnimation;
  12226. float opacity;
  12227. UIElement parent;
  12228. IntVector2 position;
  12229. int priority;
  12230. /* readonly */
  12231. int refs;
  12232. bool resizable;
  12233. IntRect resizeBorder;
  12234. /* readonly */
  12235. UIElement root;
  12236. /* readonly */
  12237. IntVector2 screenPosition;
  12238. bool selected;
  12239. IntVector2 size;
  12240. bool sortChildren;
  12241. String style;
  12242. bool temporary;
  12243. Texture texture;
  12244. bool tiled;
  12245. TraversalMode traversalMode;
  12246. /* readonly */
  12247. StringHash type;
  12248. /* readonly */
  12249. String typeName;
  12250. bool useDerivedOpacity;
  12251. /* readonly */
  12252. VariantMap vars;
  12253. VerticalAlignment verticalAlignment;
  12254. bool visible;
  12255. /* readonly */
  12256. bool visibleEffective;
  12257. /* readonly */
  12258. int weakRefs;
  12259. int width;
  12260. };
  12261. class XMLElement
  12262. {
  12263. // Methods:
  12264. XMLElement CreateChild(const String&);
  12265. String GetAttribute(const String& = String ( )) const;
  12266. String GetAttributeLower(const String&) const;
  12267. Array<String> GetAttributeNames() const;
  12268. String GetAttributeUpper(const String&) const;
  12269. bool GetBool(const String&) const;
  12270. BoundingBox GetBoundingBox() const;
  12271. XMLElement GetChild(const String& = String ( )) const;
  12272. Color GetColor(const String&) const;
  12273. double GetDouble(const String&) const;
  12274. float GetFloat(const String&) const;
  12275. int GetInt(const String&) const;
  12276. IntRect GetIntRect(const String&) const;
  12277. IntVector2 GetIntVector2(const String&) const;
  12278. Matrix3 GetMatrix3(const String&) const;
  12279. Matrix3x4 GetMatrix3x4(const String&) const;
  12280. Matrix4 GetMatrix4(const String&) const;
  12281. XMLElement GetNext(const String& = String ( )) const;
  12282. Quaternion GetQuaternion(const String&) const;
  12283. ResourceRef GetResourceRef() const;
  12284. ResourceRefList GetResourceRefList() const;
  12285. uint GetUInt(const String&) const;
  12286. String GetValue() const;
  12287. Variant GetVariant() const;
  12288. VariantMap GetVariantMap() const;
  12289. Array<Variant> GetVariantVector() const;
  12290. Vector2 GetVector2(const String&) const;
  12291. Vector3 GetVector3(const String&) const;
  12292. Vector4 GetVector4(const String&) const;
  12293. Variant GetVectorVariant(const String&) const;
  12294. bool HasAttribute(const String&) const;
  12295. bool HasChild(const String&) const;
  12296. bool RemoveAttribute(const String& = String ( ));
  12297. bool RemoveChild(const String&);
  12298. bool RemoveChild(const XMLElement&);
  12299. bool RemoveChildren(const String& = String ( ));
  12300. XPathResultSet Select(const String&);
  12301. XPathResultSet SelectPrepared(const XPathQuery&);
  12302. XMLElement SelectSingle(const String&);
  12303. XMLElement SelectSinglePrepared(const XPathQuery&);
  12304. bool SetAttribute(const String&);
  12305. bool SetAttribute(const String&, const String&);
  12306. bool SetBool(const String&, bool);
  12307. bool SetBoundingBox(const BoundingBox&);
  12308. bool SetColor(const String&, const Color&);
  12309. bool SetDouble(const String&, double);
  12310. bool SetFloat(const String&, float);
  12311. bool SetInt(const String&, int);
  12312. bool SetIntRect(const String&, const IntRect&);
  12313. bool SetIntVector2(const String&, const IntVector2&);
  12314. bool SetMatrix3(const String&, const Matrix3&);
  12315. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12316. bool SetMatrix4(const String&, const Matrix4&);
  12317. bool SetQuaternion(const String&, const Quaternion&);
  12318. bool SetResourceRef(const String&, const ResourceRef&);
  12319. bool SetResourceRefList(const String&, const ResourceRefList&);
  12320. bool SetUInt(const String&, uint);
  12321. bool SetValue(const String&);
  12322. bool SetVariant(const Variant&);
  12323. bool SetVariantMap(const VariantMap&);
  12324. bool SetVariantVector(Array<Variant>);
  12325. bool SetVector2(const String&, const Vector2&);
  12326. bool SetVector3(const String&, const Vector3&);
  12327. bool SetVector4(const String&, const Vector4&);
  12328. bool SetVectorVariant(const String&, const Variant&);
  12329. // Properties:
  12330. /* readonly */
  12331. XMLFile file;
  12332. /* readonly */
  12333. bool isNull;
  12334. /* readonly */
  12335. String name;
  12336. /* readonly */
  12337. XMLElement nextResult;
  12338. /* readonly */
  12339. bool notNull;
  12340. /* readonly */
  12341. uint numAttributes;
  12342. /* readonly */
  12343. XMLElement parent;
  12344. String value;
  12345. };
  12346. class XMLFile
  12347. {
  12348. // Methods:
  12349. XMLElement CreateRoot(const String&);
  12350. bool FromString(const String&);
  12351. XMLElement GetRoot(const String& = String ( ));
  12352. bool Load(File);
  12353. bool Load(VectorBuffer&);
  12354. void Patch(XMLElement);
  12355. void Patch(XMLFile);
  12356. bool Save(File) const;
  12357. bool Save(File, const String&) const;
  12358. bool Save(VectorBuffer&) const;
  12359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12360. String ToString(const String& = String ( "\t" )) const;
  12361. // Properties:
  12362. /* readonly */
  12363. String category;
  12364. /* readonly */
  12365. uint memoryUse;
  12366. String name;
  12367. /* readonly */
  12368. int refs;
  12369. /* readonly */
  12370. XMLElement root;
  12371. /* readonly */
  12372. StringHash type;
  12373. /* readonly */
  12374. String typeName;
  12375. /* readonly */
  12376. uint useTimer;
  12377. /* readonly */
  12378. int weakRefs;
  12379. };
  12380. class XPathQuery
  12381. {
  12382. // Methods:
  12383. void Bind();
  12384. void Clear();
  12385. XPathResultSet Evaluate(XMLElement);
  12386. bool EvaluateToBool(XMLElement);
  12387. float EvaluateToFloat(XMLElement);
  12388. String EvaluateToString(XMLElement);
  12389. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12390. bool SetVariable(const String&, bool);
  12391. bool SetVariable(const String&, const String&);
  12392. bool SetVariable(const String&, const XPathResultSet&);
  12393. bool SetVariable(const String&, float);
  12394. // Properties:
  12395. String query;
  12396. };
  12397. class XPathResultSet
  12398. {
  12399. // Properties:
  12400. /* readonly */
  12401. bool empty;
  12402. /* readonly */
  12403. XMLElement firstResult;
  12404. /* readonly */
  12405. uint size;
  12406. };
  12407. class Zone
  12408. {
  12409. // Methods:
  12410. void ApplyAttributes();
  12411. void DrawDebugGeometry(DebugRenderer, bool);
  12412. Variant GetAttribute(const String&) const;
  12413. ValueAnimation GetAttributeAnimation(const String&) const;
  12414. float GetAttributeAnimationSpeed(const String&) const;
  12415. float GetAttributeAnimationTime(const String&) const;
  12416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12417. Variant GetAttributeDefault(const String&) const;
  12418. bool GetInterceptNetworkUpdate(const String&) const;
  12419. bool IsInView(Camera) const;
  12420. bool Load(File, bool = false);
  12421. bool Load(VectorBuffer&, bool = false);
  12422. bool LoadXML(const XMLElement&, bool = false);
  12423. void MarkNetworkUpdate() const;
  12424. void Remove();
  12425. void RemoveAttributeAnimation(const String&);
  12426. void RemoveInstanceDefault();
  12427. void RemoveObjectAnimation();
  12428. void ResetToDefault();
  12429. bool Save(File) const;
  12430. bool Save(VectorBuffer&) const;
  12431. bool SaveXML(XMLElement&) const;
  12432. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12433. void SetAnimationTime(float);
  12434. bool SetAttribute(const String&, const Variant&);
  12435. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12436. void SetAttributeAnimationSpeed(const String&, float);
  12437. void SetAttributeAnimationTime(const String&, float);
  12438. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12439. void SetInterceptNetworkUpdate(const String&, bool);
  12440. // Properties:
  12441. Color ambientColor;
  12442. /* readonly */
  12443. Color ambientEndColor;
  12444. bool ambientGradient;
  12445. /* readonly */
  12446. Color ambientStartColor;
  12447. bool animationEnabled;
  12448. /* readonly */
  12449. Array<Variant> attributeDefaults;
  12450. /* readonly */
  12451. Array<AttributeInfo> attributeInfos;
  12452. Array<Variant> attributes;
  12453. BoundingBox boundingBox;
  12454. bool castShadows;
  12455. /* readonly */
  12456. String category;
  12457. float drawDistance;
  12458. bool enabled;
  12459. /* readonly */
  12460. bool enabledEffective;
  12461. Color fogColor;
  12462. float fogEnd;
  12463. float fogHeight;
  12464. float fogHeightScale;
  12465. float fogStart;
  12466. bool heightFog;
  12467. /* readonly */
  12468. uint id;
  12469. /* readonly */
  12470. bool inView;
  12471. /* readonly */
  12472. Matrix3x4 inverseWorldTransform;
  12473. uint lightMask;
  12474. float lodBias;
  12475. uint maxLights;
  12476. /* readonly */
  12477. Node node;
  12478. /* readonly */
  12479. uint numAttributes;
  12480. ObjectAnimation objectAnimation;
  12481. bool occludee;
  12482. bool occluder;
  12483. bool override;
  12484. int priority;
  12485. /* readonly */
  12486. int refs;
  12487. float shadowDistance;
  12488. uint shadowMask;
  12489. bool temporary;
  12490. /* readonly */
  12491. StringHash type;
  12492. /* readonly */
  12493. String typeName;
  12494. uint viewMask;
  12495. /* readonly */
  12496. int weakRefs;
  12497. /* readonly */
  12498. BoundingBox worldBoundingBox;
  12499. uint zoneMask;
  12500. Texture zoneTexture;
  12501. };
  12502. // Enumerations
  12503. enum BlendMode
  12504. {
  12505. BLEND_REPLACE,
  12506. BLEND_ADD,
  12507. BLEND_MULTIPLY,
  12508. BLEND_ALPHA,
  12509. BLEND_ADDALPHA,
  12510. BLEND_PREMULALPHA,
  12511. BLEND_INVDESTALPHA,
  12512. BLEND_SUBTRACT,
  12513. BLEND_SUBTRACTALPHA,
  12514. };
  12515. enum BodyType2D
  12516. {
  12517. BT_STATIC,
  12518. BT_KINEMATIC,
  12519. BT_DYNAMIC,
  12520. };
  12521. enum CollisionEventMode
  12522. {
  12523. COLLISION_NEVER,
  12524. COLLISION_ACTIVE,
  12525. COLLISION_ALWAYS,
  12526. };
  12527. enum CompareMode
  12528. {
  12529. CMP_ALWAYS,
  12530. CMP_EQUAL,
  12531. CMP_NOTEQUAL,
  12532. CMP_LESS,
  12533. CMP_LESSEQUAL,
  12534. CMP_GREATER,
  12535. CMP_GREATEREQUAL,
  12536. };
  12537. enum CompressedFormat
  12538. {
  12539. CF_NONE,
  12540. CF_RGBA,
  12541. CF_DXT1,
  12542. CF_DXT3,
  12543. CF_DXT5,
  12544. CF_ETC1,
  12545. CF_PVRTC_RGB_2BPP,
  12546. CF_PVRTC_RGBA_2BPP,
  12547. CF_PVRTC_RGB_4BPP,
  12548. CF_PVRTC_RGBA_4BPP,
  12549. };
  12550. enum ConstraintType
  12551. {
  12552. CONSTRAINT_POINT,
  12553. CONSTRAINT_HINGE,
  12554. CONSTRAINT_SLIDER,
  12555. CONSTRAINT_CONETWIST,
  12556. };
  12557. enum Corner
  12558. {
  12559. C_TOPLEFT,
  12560. C_TOPRIGHT,
  12561. C_BOTTOMLEFT,
  12562. C_BOTTOMRIGHT,
  12563. };
  12564. enum CreateMode
  12565. {
  12566. REPLICATED,
  12567. LOCAL,
  12568. };
  12569. enum CrowdAgentRequestedTarget
  12570. {
  12571. CA_REQUESTEDTARGET_NONE,
  12572. CA_REQUESTEDTARGET_POSITION,
  12573. CA_REQUESTEDTARGET_VELOCITY,
  12574. };
  12575. enum CrowdAgentState
  12576. {
  12577. CA_STATE_INVALID,
  12578. CA_STATE_WALKING,
  12579. CA_STATE_OFFMESH,
  12580. };
  12581. enum CrowdAgentTargetState
  12582. {
  12583. CA_TARGET_NONE,
  12584. CA_TARGET_FAILED,
  12585. CA_TARGET_VALID,
  12586. CA_TARGET_REQUESTING,
  12587. CA_TARGET_WAITINGFORQUEUE,
  12588. CA_TARGET_WAITINGFORPATH,
  12589. CA_TARGET_VELOCITY,
  12590. };
  12591. enum CubeMapFace
  12592. {
  12593. FACE_POSITIVE_X,
  12594. FACE_NEGATIVE_X,
  12595. FACE_POSITIVE_Y,
  12596. FACE_NEGATIVE_Y,
  12597. FACE_POSITIVE_Z,
  12598. FACE_NEGATIVE_Z,
  12599. };
  12600. enum CullMode
  12601. {
  12602. CULL_NONE,
  12603. CULL_CCW,
  12604. CULL_CW,
  12605. };
  12606. enum CursorShape
  12607. {
  12608. CS_NORMAL,
  12609. CS_IBEAM,
  12610. CS_CROSS,
  12611. CS_RESIZEVERTICAL,
  12612. CS_RESIZEDIAGONAL_TOPRIGHT,
  12613. CS_RESIZEHORIZONTAL,
  12614. CS_RESIZEDIAGONAL_TOPLEFT,
  12615. CS_RESIZE_ALL,
  12616. CS_ACCEPTDROP,
  12617. CS_REJECTDROP,
  12618. CS_BUSY,
  12619. CS_BUSY_ARROW,
  12620. };
  12621. enum DBAPI
  12622. {
  12623. DBAPI_SQLITE,
  12624. DBAPI_ODBC,
  12625. };
  12626. enum DumpMode
  12627. {
  12628. DOXYGEN,
  12629. C_HEADER,
  12630. };
  12631. enum EmitterType
  12632. {
  12633. EMITTER_SPHERE,
  12634. EMITTER_BOX,
  12635. };
  12636. enum EmitterType2D
  12637. {
  12638. EMITTER_TYPE_GRAVITY,
  12639. EMITTER_TYPE_RADIAL,
  12640. };
  12641. enum FaceCameraMode
  12642. {
  12643. FC_NONE,
  12644. FC_ROTATE_XYZ,
  12645. FC_ROTATE_Y,
  12646. FC_LOOKAT_XYZ,
  12647. FC_LOOKAT_Y,
  12648. };
  12649. enum FileMode
  12650. {
  12651. FILE_READ,
  12652. FILE_WRITE,
  12653. FILE_READWRITE,
  12654. };
  12655. enum FillMode
  12656. {
  12657. FILL_SOLID,
  12658. FILL_WIREFRAME,
  12659. FILL_POINT,
  12660. };
  12661. enum FocusMode
  12662. {
  12663. FM_NOTFOCUSABLE,
  12664. FM_RESETFOCUS,
  12665. FM_FOCUSABLE,
  12666. FM_FOCUSABLE_DEFOCUSABLE,
  12667. };
  12668. enum HighlightMode
  12669. {
  12670. HM_NEVER,
  12671. HM_FOCUS,
  12672. HM_ALWAYS,
  12673. };
  12674. enum HorizontalAlignment
  12675. {
  12676. HA_LEFT,
  12677. HA_CENTER,
  12678. HA_RIGHT,
  12679. };
  12680. enum HttpRequestState
  12681. {
  12682. HTTP_INITIALIZING,
  12683. HTTP_ERROR,
  12684. HTTP_OPEN,
  12685. HTTP_CLOSED,
  12686. };
  12687. enum InterpMethod
  12688. {
  12689. IM_LINEAR,
  12690. IM_SPLINE,
  12691. };
  12692. enum InterpolationMode
  12693. {
  12694. BEZIER_CURVE,
  12695. CATMULL_ROM_CURVE,
  12696. LINEAR_CURVE,
  12697. CATMULL_ROM_FULL_CURVE,
  12698. };
  12699. enum Intersection
  12700. {
  12701. OUTSIDE,
  12702. INTERSECTS,
  12703. INSIDE,
  12704. };
  12705. enum JSONValueType
  12706. {
  12707. JSON_NULL,
  12708. JSON_BOOL,
  12709. JSON_NUMBER,
  12710. JSON_STRING,
  12711. JSON_ARRAY,
  12712. JSON_OBJECT,
  12713. };
  12714. enum LayoutMode
  12715. {
  12716. LM_FREE,
  12717. LM_HORIZONTAL,
  12718. LM_VERTICAL,
  12719. };
  12720. enum LightType
  12721. {
  12722. LIGHT_DIRECTIONAL,
  12723. LIGHT_SPOT,
  12724. LIGHT_POINT,
  12725. };
  12726. enum LoadMode
  12727. {
  12728. LOAD_RESOURCES_ONLY,
  12729. LOAD_SCENE,
  12730. LOAD_SCENE_AND_RESOURCES,
  12731. };
  12732. enum LoopMode2D
  12733. {
  12734. LM_DEFAULT,
  12735. LM_FORCE_LOOPED,
  12736. LM_FORCE_CLAMPED,
  12737. };
  12738. enum MouseMode
  12739. {
  12740. MM_ABSOLUTE,
  12741. MM_RELATIVE,
  12742. MM_WRAP,
  12743. MM_FREE,
  12744. };
  12745. enum NavigationPushiness
  12746. {
  12747. NAVIGATIONPUSHINESS_LOW,
  12748. NAVIGATIONPUSHINESS_MEDIUM,
  12749. NAVIGATIONPUSHINESS_HIGH,
  12750. };
  12751. enum NavigationQuality
  12752. {
  12753. NAVIGATIONQUALITY_LOW,
  12754. NAVIGATIONQUALITY_MEDIUM,
  12755. NAVIGATIONQUALITY_HIGH,
  12756. };
  12757. enum NavmeshPartitionType
  12758. {
  12759. NAVMESH_PARTITION_WATERSHED,
  12760. NAVMESH_PARTITION_MONOTONE,
  12761. };
  12762. enum Orientation
  12763. {
  12764. O_HORIZONTAL,
  12765. O_VERTICAL,
  12766. };
  12767. enum Orientation2D
  12768. {
  12769. O_ORTHOGONAL,
  12770. O_ISOMETRIC,
  12771. O_STAGGERED,
  12772. };
  12773. enum PassLightingMode
  12774. {
  12775. LIGHTING_UNLIT,
  12776. LIGHTING_PERVERTEX,
  12777. LIGHTING_PERPIXEL,
  12778. };
  12779. enum PrimitiveType
  12780. {
  12781. TRIANGLE_LIST,
  12782. LINE_LIST,
  12783. POINT_LIST,
  12784. TRIANGLE_STRIP,
  12785. LINE_STRIP,
  12786. TRIANGLE_FAN,
  12787. };
  12788. enum RayQueryLevel
  12789. {
  12790. RAY_AABB,
  12791. RAY_OBB,
  12792. RAY_TRIANGLE,
  12793. RAY_TRIANGLE_UV,
  12794. };
  12795. enum RenderCommandSortMode
  12796. {
  12797. SORT_FRONTTOBACK,
  12798. SORT_BACKTOFRONT,
  12799. };
  12800. enum RenderCommandType
  12801. {
  12802. CMD_NONE,
  12803. CMD_CLEAR,
  12804. CMD_SCENEPASS,
  12805. CMD_QUAD,
  12806. CMD_FORWARDLIGHTS,
  12807. CMD_LIGHTVOLUMES,
  12808. CMD_RENDERUI,
  12809. };
  12810. enum RenderSurfaceUpdateMode
  12811. {
  12812. SURFACE_MANUALUPDATE,
  12813. SURFACE_UPDATEVISIBLE,
  12814. SURFACE_UPDATEALWAYS,
  12815. };
  12816. enum RenderTargetSizeMode
  12817. {
  12818. SIZE_ABSOLUTE,
  12819. SIZE_VIEWPORTDIVISOR,
  12820. SIZE_VIEWPORTMULTIPLIER,
  12821. };
  12822. enum ShapeType
  12823. {
  12824. SHAPE_BOX,
  12825. SHAPE_SPHERE,
  12826. SHAPE_STATICPLANE,
  12827. SHAPE_CYLINDER,
  12828. SHAPE_CAPSULE,
  12829. SHAPE_CONE,
  12830. SHAPE_TRIANGLEMESH,
  12831. SHAPE_CONVEXHULL,
  12832. SHAPE_TERRAIN,
  12833. };
  12834. enum TextEffect
  12835. {
  12836. TE_NONE,
  12837. TE_SHADOW,
  12838. TE_STROKE,
  12839. };
  12840. enum TextureAddressMode
  12841. {
  12842. ADDRESS_WRAP,
  12843. ADDRESS_MIRROR,
  12844. ADDRESS_CLAMP,
  12845. ADDRESS_BORDER,
  12846. };
  12847. enum TextureCoordinate
  12848. {
  12849. COORD_U,
  12850. COORD_V,
  12851. COORD_W,
  12852. };
  12853. enum TextureFilterMode
  12854. {
  12855. FILTER_NEAREST,
  12856. FILTER_BILINEAR,
  12857. FILTER_TRILINEAR,
  12858. FILTER_ANISOTROPIC,
  12859. FILTER_DEFAULT,
  12860. };
  12861. enum TextureUnit
  12862. {
  12863. TU_DIFFUSE,
  12864. TU_ALBEDOBUFFER,
  12865. TU_NORMAL,
  12866. TU_NORMALBUFFER,
  12867. TU_SPECULAR,
  12868. TU_EMISSIVE,
  12869. TU_ENVIRONMENT,
  12870. TU_LIGHTRAMP,
  12871. TU_LIGHTSHAPE,
  12872. TU_SHADOWMAP,
  12873. TU_CUSTOM1,
  12874. TU_CUSTOM2,
  12875. TU_VOLUMEMAP,
  12876. TU_FACESELECT,
  12877. TU_INDIRECTION,
  12878. TU_DEPTHBUFFER,
  12879. TU_LIGHTBUFFER,
  12880. TU_ZONE,
  12881. MAX_MATERIAL_TEXTURE_UNITS,
  12882. MAX_TEXTURE_UNITS,
  12883. };
  12884. enum TextureUsage
  12885. {
  12886. TEXTURE_STATIC,
  12887. TEXTURE_DYNAMIC,
  12888. TEXTURE_RENDERTARGET,
  12889. TEXTURE_DEPTHSTENCIL,
  12890. };
  12891. enum TileMapLayerType2D
  12892. {
  12893. LT_TILE_LAYER,
  12894. LT_OBJECT_GROUP,
  12895. LT_IMAGE_LAYER,
  12896. LT_INVALID,
  12897. };
  12898. enum TileObjectType2D
  12899. {
  12900. OT_RECTANGLE,
  12901. OT_ELLIPSE,
  12902. OT_POLYGON,
  12903. OT_POLYLINE,
  12904. OT_TILE,
  12905. OT_INVALID,
  12906. };
  12907. enum TransformSpace
  12908. {
  12909. TS_LOCAL,
  12910. TS_PARENT,
  12911. TS_WORLD,
  12912. };
  12913. enum TraversalMode
  12914. {
  12915. TM_BREADTH_FIRST,
  12916. TM_DEPTH_FIRST,
  12917. };
  12918. enum VariantType
  12919. {
  12920. VAR_NONE,
  12921. VAR_INT,
  12922. VAR_BOOL,
  12923. VAR_FLOAT,
  12924. VAR_VECTOR2,
  12925. VAR_VECTOR3,
  12926. VAR_VECTOR4,
  12927. VAR_QUATERNION,
  12928. VAR_COLOR,
  12929. VAR_STRING,
  12930. VAR_BUFFER,
  12931. VAR_VOIDPTR,
  12932. VAR_RESOURCEREF,
  12933. VAR_RESOURCEREFLIST,
  12934. VAR_VARIANTVECTOR,
  12935. VAR_VARIANTMAP,
  12936. VAR_INTRECT,
  12937. VAR_INTVECTOR2,
  12938. VAR_PTR,
  12939. VAR_MATRIX3,
  12940. VAR_MATRIX3X4,
  12941. VAR_MATRIX4,
  12942. VAR_DOUBLE,
  12943. VAR_STRINGVECTOR,
  12944. };
  12945. enum VerticalAlignment
  12946. {
  12947. VA_TOP,
  12948. VA_CENTER,
  12949. VA_BOTTOM,
  12950. };
  12951. enum WrapMode
  12952. {
  12953. WM_LOOP,
  12954. WM_ONCE,
  12955. WM_CLAMP,
  12956. };
  12957. // Global functions
  12958. float Abs(float);
  12959. float Acos(float);
  12960. String AddTrailingSlash(const String&);
  12961. float Asin(float);
  12962. float Atan(float);
  12963. float Atan2(float, float);
  12964. float Ceil(float);
  12965. float Clamp(float, float, float);
  12966. int Clamp(int, int, int);
  12967. void ClearDelayedExecute(const String& = String ( ));
  12968. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12969. float Cos(float);
  12970. uint CountSetBits(uint);
  12971. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12972. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12973. bool Equals(float, float);
  12974. void ErrorDialog(const String&, const String&);
  12975. float Floor(float);
  12976. uint GetAlphaFormat();
  12977. Array<String> GetArguments();
  12978. String GetConsoleInput();
  12979. uint GetDepthStencilFormat();
  12980. Object GetEventSender();
  12981. String GetExtension(const String&, bool = true);
  12982. String GetFileName(const String&);
  12983. String GetFileNameAndExtension(const String&, bool = false);
  12984. String GetFileSizeString(uint64);
  12985. uint GetFloat16Format();
  12986. uint GetFloat32Format();
  12987. uint GetFormat(const String&);
  12988. String GetInternalPath(const String&);
  12989. uint GetLinearDepthFormat();
  12990. uint GetLuminanceAlphaFormat();
  12991. uint GetLuminanceFormat();
  12992. uint GetMaxBones();
  12993. uint GetNumLogicalCPUs();
  12994. uint GetNumPhysicalCPUs();
  12995. Array<String> GetObjectCategories();
  12996. Array<String> GetObjectsByCategory(const String&);
  12997. String GetParentPath(const String&);
  12998. String GetPath(const String&);
  12999. String GetPlatform();
  13000. uint GetRG16Format();
  13001. uint GetRGBA16Format();
  13002. uint GetRGBAFloat16Format();
  13003. uint GetRGBAFloat32Format();
  13004. uint GetRGBAFormat();
  13005. uint GetRGBFormat();
  13006. uint GetRGFloat16Format();
  13007. uint GetRGFloat32Format();
  13008. uint GetRandomSeed();
  13009. uint GetReadableDepthFormat();
  13010. String GetTextureUnitName(TextureUnit);
  13011. bool IsAbsolutePath(const String&);
  13012. bool IsAlpha(uint);
  13013. bool IsDigit(uint);
  13014. bool IsNaN(float);
  13015. bool IsPowerOfTwo(uint);
  13016. String Join(Array<String>&, const String&);
  13017. float Lerp(float, float, float);
  13018. void MarkNetworkUpdate();
  13019. float Max(float, float);
  13020. int Max(int, int);
  13021. float Min(float, float);
  13022. int Min(int, int);
  13023. float Mod(float, float);
  13024. uint NextPowerOfTwo(uint);
  13025. void OpenConsoleWindow();
  13026. float Pow(float, float);
  13027. void Print(bool, bool = false);
  13028. void Print(const String&, bool = false);
  13029. void Print(const Variant&, bool = false);
  13030. void Print(float, bool = false);
  13031. void Print(int, bool = false);
  13032. void Print(uint, bool = false);
  13033. void PrintCallStack(bool = false);
  13034. float Random();
  13035. float Random(float);
  13036. float Random(float, float);
  13037. int RandomInt();
  13038. int RandomInt(int);
  13039. int RandomInt(int, int);
  13040. float RandomNormal(float, float);
  13041. void Remove();
  13042. String RemoveTrailingSlash(const String&);
  13043. String ReplaceExtension(const String&, const String&);
  13044. uint SDBMHash(uint, uint8);
  13045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13046. void SetRandomSeed(uint);
  13047. float Sign(float);
  13048. float Sin(float);
  13049. float SmoothStep(float, float, float);
  13050. float Sqrt(float);
  13051. const String& GetTypeName(StringHash);
  13052. void SubscribeToEvent(Object, const String&, const String&);
  13053. void SubscribeToEvent(const String&, const String&);
  13054. float Tan(float);
  13055. uint ToLower(uint);
  13056. String ToStringHex(int);
  13057. uint ToUpper(uint);
  13058. void UnsubscribeFromAllEvents();
  13059. void UnsubscribeFromAllEventsExcept(Array<String>);
  13060. void UnsubscribeFromEvent(Object, const String&);
  13061. void UnsubscribeFromEvent(const String&);
  13062. void UnsubscribeFromEvents(Object);
  13063. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13064. // Global properties
  13065. DBAPI DBAPI;
  13066. Audio audio;
  13067. ResourceCache cache;
  13068. Console console;
  13069. Database database;
  13070. DebugHud debugHud;
  13071. DebugRenderer debugRenderer;
  13072. Engine engine;
  13073. FileSystem fileSystem;
  13074. Graphics graphics;
  13075. Input input;
  13076. Localization localization;
  13077. Log log;
  13078. Network network;
  13079. Node node;
  13080. Octree octree;
  13081. PhysicsWorld physicsWorld;
  13082. PhysicsWorld2D physicsWorld2D;
  13083. Renderer renderer;
  13084. ResourceCache resourceCache;
  13085. Scene scene;
  13086. Script script;
  13087. ScriptFile scriptFile;
  13088. ScriptInstance self;
  13089. Time time;
  13090. UI ui;
  13091. // Global constants
  13092. uint AM_COMPONENTID;
  13093. uint AM_DEFAULT;
  13094. uint AM_FILE;
  13095. uint AM_LATESTDATA;
  13096. uint AM_NET;
  13097. uint AM_NODEID;
  13098. uint AM_NODEIDVECTOR;
  13099. uint AM_NOEDIT;
  13100. Color BLACK;
  13101. Color BLUE;
  13102. uint8 CHANNEL_POSITION;
  13103. uint8 CHANNEL_ROTATION;
  13104. uint8 CHANNEL_SCALE;
  13105. uint CLEAR_COLOR;
  13106. uint CLEAR_DEPTH;
  13107. uint CLEAR_STENCIL;
  13108. int CONTROLLER_AXIS_LEFTX;
  13109. int CONTROLLER_AXIS_LEFTY;
  13110. int CONTROLLER_AXIS_RIGHTX;
  13111. int CONTROLLER_AXIS_RIGHTY;
  13112. int CONTROLLER_AXIS_TRIGGERLEFT;
  13113. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13114. int CONTROLLER_BUTTON_A;
  13115. int CONTROLLER_BUTTON_B;
  13116. int CONTROLLER_BUTTON_BACK;
  13117. int CONTROLLER_BUTTON_DPAD_DOWN;
  13118. int CONTROLLER_BUTTON_DPAD_LEFT;
  13119. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13120. int CONTROLLER_BUTTON_DPAD_UP;
  13121. int CONTROLLER_BUTTON_GUIDE;
  13122. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13123. int CONTROLLER_BUTTON_LEFTSTICK;
  13124. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13125. int CONTROLLER_BUTTON_RIGHTSTICK;
  13126. int CONTROLLER_BUTTON_START;
  13127. int CONTROLLER_BUTTON_X;
  13128. int CONTROLLER_BUTTON_Y;
  13129. Color CYAN;
  13130. uint DD_DISABLED;
  13131. uint DD_SOURCE;
  13132. uint DD_SOURCE_AND_TARGET;
  13133. uint DD_TARGET;
  13134. uint DEBUGHUD_SHOW_ALL;
  13135. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13136. uint DEBUGHUD_SHOW_MEMORY;
  13137. uint DEBUGHUD_SHOW_MODE;
  13138. uint DEBUGHUD_SHOW_NONE;
  13139. uint DEBUGHUD_SHOW_PROFILER;
  13140. uint DEBUGHUD_SHOW_STATS;
  13141. uint DEFAULT_LIGHTMASK;
  13142. uint DEFAULT_VIEWMASK;
  13143. uint DRAWABLE_ANY;
  13144. uint DRAWABLE_GEOMETRY;
  13145. uint DRAWABLE_GEOMETRY2D;
  13146. uint DRAWABLE_LIGHT;
  13147. uint DRAWABLE_ZONE;
  13148. uint FIRST_LOCAL_ID;
  13149. uint FIRST_REPLICATED_ID;
  13150. Color GRAY;
  13151. Color GREEN;
  13152. int HAT_CENTER;
  13153. int HAT_DOWN;
  13154. int HAT_LEFT;
  13155. int HAT_RIGHT;
  13156. int HAT_UP;
  13157. int KEY_0;
  13158. int KEY_1;
  13159. int KEY_2;
  13160. int KEY_3;
  13161. int KEY_4;
  13162. int KEY_5;
  13163. int KEY_6;
  13164. int KEY_7;
  13165. int KEY_8;
  13166. int KEY_9;
  13167. int KEY_A;
  13168. int KEY_ALT;
  13169. int KEY_APPLICATION;
  13170. int KEY_B;
  13171. int KEY_BACKSPACE;
  13172. int KEY_C;
  13173. int KEY_CAPSLOCK;
  13174. int KEY_CTRL;
  13175. int KEY_D;
  13176. int KEY_DELETE;
  13177. int KEY_DOWN;
  13178. int KEY_E;
  13179. int KEY_END;
  13180. int KEY_ESC;
  13181. int KEY_F;
  13182. int KEY_F1;
  13183. int KEY_F10;
  13184. int KEY_F11;
  13185. int KEY_F12;
  13186. int KEY_F13;
  13187. int KEY_F14;
  13188. int KEY_F15;
  13189. int KEY_F16;
  13190. int KEY_F17;
  13191. int KEY_F18;
  13192. int KEY_F19;
  13193. int KEY_F2;
  13194. int KEY_F20;
  13195. int KEY_F21;
  13196. int KEY_F22;
  13197. int KEY_F23;
  13198. int KEY_F24;
  13199. int KEY_F3;
  13200. int KEY_F4;
  13201. int KEY_F5;
  13202. int KEY_F6;
  13203. int KEY_F7;
  13204. int KEY_F8;
  13205. int KEY_F9;
  13206. int KEY_G;
  13207. int KEY_GUI;
  13208. int KEY_H;
  13209. int KEY_HOME;
  13210. int KEY_I;
  13211. int KEY_INSERT;
  13212. int KEY_J;
  13213. int KEY_K;
  13214. int KEY_KP_0;
  13215. int KEY_KP_1;
  13216. int KEY_KP_2;
  13217. int KEY_KP_3;
  13218. int KEY_KP_4;
  13219. int KEY_KP_5;
  13220. int KEY_KP_6;
  13221. int KEY_KP_7;
  13222. int KEY_KP_8;
  13223. int KEY_KP_9;
  13224. int KEY_KP_DIVIDE;
  13225. int KEY_KP_ENTER;
  13226. int KEY_KP_MINUS;
  13227. int KEY_KP_MULTIPLY;
  13228. int KEY_KP_PERIOD;
  13229. int KEY_KP_PLUS;
  13230. int KEY_L;
  13231. int KEY_LALT;
  13232. int KEY_LCTRL;
  13233. int KEY_LEFT;
  13234. int KEY_LGUI;
  13235. int KEY_LSHIFT;
  13236. int KEY_M;
  13237. int KEY_N;
  13238. int KEY_NUMLOCKCLEAR;
  13239. int KEY_O;
  13240. int KEY_P;
  13241. int KEY_PAGEDOWN;
  13242. int KEY_PAGEUP;
  13243. int KEY_PAUSE;
  13244. int KEY_PRINTSCREEN;
  13245. int KEY_Q;
  13246. int KEY_R;
  13247. int KEY_RALT;
  13248. int KEY_RCTRL;
  13249. int KEY_RETURN;
  13250. int KEY_RETURN2;
  13251. int KEY_RGUI;
  13252. int KEY_RIGHT;
  13253. int KEY_RSHIFT;
  13254. int KEY_S;
  13255. int KEY_SCROLLLOCK;
  13256. int KEY_SELECT;
  13257. int KEY_SHIFT;
  13258. int KEY_SPACE;
  13259. int KEY_T;
  13260. int KEY_TAB;
  13261. int KEY_U;
  13262. int KEY_UP;
  13263. int KEY_V;
  13264. int KEY_W;
  13265. int KEY_X;
  13266. int KEY_Y;
  13267. int KEY_Z;
  13268. uint LAST_LOCAL_ID;
  13269. uint LAST_REPLICATED_ID;
  13270. int LOG_DEBUG;
  13271. int LOG_ERROR;
  13272. int LOG_INFO;
  13273. int LOG_NONE;
  13274. int LOG_WARNING;
  13275. Color MAGENTA;
  13276. uint MASK_BLENDINDICES;
  13277. uint MASK_BLENDWEIGHTS;
  13278. uint MASK_COLOR;
  13279. uint MASK_CUBETEXCOORD1;
  13280. uint MASK_CUBETEXCOORD2;
  13281. uint MASK_DEFAULT;
  13282. uint MASK_INSTANCEMATRIX1;
  13283. uint MASK_INSTANCEMATRIX2;
  13284. uint MASK_INSTANCEMATRIX3;
  13285. uint MASK_NONE;
  13286. uint MASK_NORMAL;
  13287. uint MASK_POSITION;
  13288. uint MASK_TANGENT;
  13289. uint MASK_TEXCOORD1;
  13290. uint MASK_TEXCOORD2;
  13291. int MOUSEB_LEFT;
  13292. int MOUSEB_MIDDLE;
  13293. int MOUSEB_RIGHT;
  13294. float M_DEGTORAD;
  13295. float M_DEGTORAD_2;
  13296. float M_EPSILON;
  13297. float M_HALF_PI;
  13298. float M_INFINITY;
  13299. float M_LARGE_EPSILON;
  13300. float M_LARGE_VALUE;
  13301. int M_MAX_INT;
  13302. uint M_MAX_UNSIGNED;
  13303. int M_MIN_INT;
  13304. uint M_MIN_UNSIGNED;
  13305. float M_PI;
  13306. float M_RADTODEG;
  13307. float PIXEL_SIZE;
  13308. int QUALITY_HIGH;
  13309. int QUALITY_LOW;
  13310. int QUALITY_MAX;
  13311. int QUALITY_MEDIUM;
  13312. int QUAL_ALT;
  13313. int QUAL_ANY;
  13314. int QUAL_CTRL;
  13315. int QUAL_SHIFT;
  13316. Color RED;
  13317. int SCANCODE_0;
  13318. int SCANCODE_1;
  13319. int SCANCODE_2;
  13320. int SCANCODE_3;
  13321. int SCANCODE_4;
  13322. int SCANCODE_5;
  13323. int SCANCODE_6;
  13324. int SCANCODE_7;
  13325. int SCANCODE_8;
  13326. int SCANCODE_9;
  13327. int SCANCODE_A;
  13328. int SCANCODE_AC_BACK;
  13329. int SCANCODE_AC_BOOKMARKS;
  13330. int SCANCODE_AC_FORWARD;
  13331. int SCANCODE_AC_HOME;
  13332. int SCANCODE_AC_REFRESH;
  13333. int SCANCODE_AC_SEARCH;
  13334. int SCANCODE_AC_STOP;
  13335. int SCANCODE_AGAIN;
  13336. int SCANCODE_ALT;
  13337. int SCANCODE_ALTERASE;
  13338. int SCANCODE_APOSTROPHE;
  13339. int SCANCODE_APP1;
  13340. int SCANCODE_APP2;
  13341. int SCANCODE_APPLICATION;
  13342. int SCANCODE_AUDIOMUTE;
  13343. int SCANCODE_AUDIONEXT;
  13344. int SCANCODE_AUDIOPLAY;
  13345. int SCANCODE_AUDIOPREV;
  13346. int SCANCODE_AUDIOSTOP;
  13347. int SCANCODE_B;
  13348. int SCANCODE_BACKSLASH;
  13349. int SCANCODE_BACKSPACE;
  13350. int SCANCODE_BRIGHTNESSDOWN;
  13351. int SCANCODE_BRIGHTNESSUP;
  13352. int SCANCODE_C;
  13353. int SCANCODE_CALCULATOR;
  13354. int SCANCODE_CANCEL;
  13355. int SCANCODE_CAPSLOCK;
  13356. int SCANCODE_CLEAR;
  13357. int SCANCODE_CLEARAGAIN;
  13358. int SCANCODE_COMMA;
  13359. int SCANCODE_COMPUTER;
  13360. int SCANCODE_COPY;
  13361. int SCANCODE_CRSEL;
  13362. int SCANCODE_CTRL;
  13363. int SCANCODE_CURRENCYSUBUNIT;
  13364. int SCANCODE_CURRENCYUNIT;
  13365. int SCANCODE_CUT;
  13366. int SCANCODE_D;
  13367. int SCANCODE_DECIMALSEPARATOR;
  13368. int SCANCODE_DELETE;
  13369. int SCANCODE_DISPLAYSWITCH;
  13370. int SCANCODE_DOWN;
  13371. int SCANCODE_E;
  13372. int SCANCODE_EJECT;
  13373. int SCANCODE_END;
  13374. int SCANCODE_EQUALS;
  13375. int SCANCODE_ESCAPE;
  13376. int SCANCODE_EXECUTE;
  13377. int SCANCODE_EXSEL;
  13378. int SCANCODE_F;
  13379. int SCANCODE_F1;
  13380. int SCANCODE_F10;
  13381. int SCANCODE_F11;
  13382. int SCANCODE_F12;
  13383. int SCANCODE_F13;
  13384. int SCANCODE_F14;
  13385. int SCANCODE_F15;
  13386. int SCANCODE_F16;
  13387. int SCANCODE_F17;
  13388. int SCANCODE_F18;
  13389. int SCANCODE_F19;
  13390. int SCANCODE_F2;
  13391. int SCANCODE_F20;
  13392. int SCANCODE_F21;
  13393. int SCANCODE_F22;
  13394. int SCANCODE_F23;
  13395. int SCANCODE_F24;
  13396. int SCANCODE_F3;
  13397. int SCANCODE_F4;
  13398. int SCANCODE_F5;
  13399. int SCANCODE_F6;
  13400. int SCANCODE_F7;
  13401. int SCANCODE_F8;
  13402. int SCANCODE_F9;
  13403. int SCANCODE_FIND;
  13404. int SCANCODE_G;
  13405. int SCANCODE_GRAVE;
  13406. int SCANCODE_GUI;
  13407. int SCANCODE_H;
  13408. int SCANCODE_HELP;
  13409. int SCANCODE_HOME;
  13410. int SCANCODE_I;
  13411. int SCANCODE_INSERT;
  13412. int SCANCODE_INTERNATIONAL1;
  13413. int SCANCODE_INTERNATIONAL2;
  13414. int SCANCODE_INTERNATIONAL3;
  13415. int SCANCODE_INTERNATIONAL4;
  13416. int SCANCODE_INTERNATIONAL5;
  13417. int SCANCODE_INTERNATIONAL6;
  13418. int SCANCODE_INTERNATIONAL7;
  13419. int SCANCODE_INTERNATIONAL8;
  13420. int SCANCODE_INTERNATIONAL9;
  13421. int SCANCODE_J;
  13422. int SCANCODE_K;
  13423. int SCANCODE_KBDILLUMDOWN;
  13424. int SCANCODE_KBDILLUMTOGGLE;
  13425. int SCANCODE_KBDILLUMUP;
  13426. int SCANCODE_KP_0;
  13427. int SCANCODE_KP_00;
  13428. int SCANCODE_KP_000;
  13429. int SCANCODE_KP_1;
  13430. int SCANCODE_KP_2;
  13431. int SCANCODE_KP_3;
  13432. int SCANCODE_KP_4;
  13433. int SCANCODE_KP_5;
  13434. int SCANCODE_KP_6;
  13435. int SCANCODE_KP_7;
  13436. int SCANCODE_KP_8;
  13437. int SCANCODE_KP_9;
  13438. int SCANCODE_KP_A;
  13439. int SCANCODE_KP_AMPERSAND;
  13440. int SCANCODE_KP_AT;
  13441. int SCANCODE_KP_B;
  13442. int SCANCODE_KP_BACKSPACE;
  13443. int SCANCODE_KP_BINARY;
  13444. int SCANCODE_KP_C;
  13445. int SCANCODE_KP_CLEAR;
  13446. int SCANCODE_KP_CLEARENTRY;
  13447. int SCANCODE_KP_COLON;
  13448. int SCANCODE_KP_COMMA;
  13449. int SCANCODE_KP_D;
  13450. int SCANCODE_KP_DBLAMPERSAND;
  13451. int SCANCODE_KP_DBLVERTICALBAR;
  13452. int SCANCODE_KP_DECIMAL;
  13453. int SCANCODE_KP_DIVIDE;
  13454. int SCANCODE_KP_E;
  13455. int SCANCODE_KP_ENTER;
  13456. int SCANCODE_KP_EQUALS;
  13457. int SCANCODE_KP_EQUALSAS400;
  13458. int SCANCODE_KP_EXCLAM;
  13459. int SCANCODE_KP_F;
  13460. int SCANCODE_KP_GREATER;
  13461. int SCANCODE_KP_HASH;
  13462. int SCANCODE_KP_HEXADECIMAL;
  13463. int SCANCODE_KP_LEFTBRACE;
  13464. int SCANCODE_KP_LEFTPAREN;
  13465. int SCANCODE_KP_LESS;
  13466. int SCANCODE_KP_MEMADD;
  13467. int SCANCODE_KP_MEMCLEAR;
  13468. int SCANCODE_KP_MEMDIVIDE;
  13469. int SCANCODE_KP_MEMMULTIPLY;
  13470. int SCANCODE_KP_MEMRECALL;
  13471. int SCANCODE_KP_MEMSTORE;
  13472. int SCANCODE_KP_MEMSUBTRACT;
  13473. int SCANCODE_KP_MINUS;
  13474. int SCANCODE_KP_MULTIPLY;
  13475. int SCANCODE_KP_OCTAL;
  13476. int SCANCODE_KP_PERCENT;
  13477. int SCANCODE_KP_PERIOD;
  13478. int SCANCODE_KP_PLUS;
  13479. int SCANCODE_KP_PLUSMINUS;
  13480. int SCANCODE_KP_POWER;
  13481. int SCANCODE_KP_RIGHTBRACE;
  13482. int SCANCODE_KP_RIGHTPAREN;
  13483. int SCANCODE_KP_SPACE;
  13484. int SCANCODE_KP_TAB;
  13485. int SCANCODE_KP_VERTICALBAR;
  13486. int SCANCODE_KP_XOR;
  13487. int SCANCODE_L;
  13488. int SCANCODE_LALT;
  13489. int SCANCODE_LANG1;
  13490. int SCANCODE_LANG2;
  13491. int SCANCODE_LANG3;
  13492. int SCANCODE_LANG4;
  13493. int SCANCODE_LANG5;
  13494. int SCANCODE_LANG6;
  13495. int SCANCODE_LANG7;
  13496. int SCANCODE_LANG8;
  13497. int SCANCODE_LANG9;
  13498. int SCANCODE_LCTRL;
  13499. int SCANCODE_LEFT;
  13500. int SCANCODE_LEFTBRACKET;
  13501. int SCANCODE_LGUI;
  13502. int SCANCODE_LSHIFT;
  13503. int SCANCODE_M;
  13504. int SCANCODE_MAIL;
  13505. int SCANCODE_MEDIASELECT;
  13506. int SCANCODE_MENU;
  13507. int SCANCODE_MINUS;
  13508. int SCANCODE_MODE;
  13509. int SCANCODE_MUTE;
  13510. int SCANCODE_N;
  13511. int SCANCODE_NONUSBACKSLASH;
  13512. int SCANCODE_NONUSHASH;
  13513. int SCANCODE_NUMLOCKCLEAR;
  13514. int SCANCODE_O;
  13515. int SCANCODE_OPER;
  13516. int SCANCODE_OUT;
  13517. int SCANCODE_P;
  13518. int SCANCODE_PAGEDOWN;
  13519. int SCANCODE_PAGEUP;
  13520. int SCANCODE_PASTE;
  13521. int SCANCODE_PAUSE;
  13522. int SCANCODE_PERIOD;
  13523. int SCANCODE_POWER;
  13524. int SCANCODE_PRINTSCREEN;
  13525. int SCANCODE_PRIOR;
  13526. int SCANCODE_Q;
  13527. int SCANCODE_R;
  13528. int SCANCODE_RALT;
  13529. int SCANCODE_RCTRL;
  13530. int SCANCODE_RETURN;
  13531. int SCANCODE_RETURN2;
  13532. int SCANCODE_RGUI;
  13533. int SCANCODE_RIGHT;
  13534. int SCANCODE_RIGHTBRACKET;
  13535. int SCANCODE_RSHIFT;
  13536. int SCANCODE_S;
  13537. int SCANCODE_SCROLLLOCK;
  13538. int SCANCODE_SELECT;
  13539. int SCANCODE_SEMICOLON;
  13540. int SCANCODE_SEPARATOR;
  13541. int SCANCODE_SHIFT;
  13542. int SCANCODE_SLASH;
  13543. int SCANCODE_SLEEP;
  13544. int SCANCODE_SPACE;
  13545. int SCANCODE_STOP;
  13546. int SCANCODE_SYSREQ;
  13547. int SCANCODE_T;
  13548. int SCANCODE_TAB;
  13549. int SCANCODE_THOUSANDSSEPARATOR;
  13550. int SCANCODE_U;
  13551. int SCANCODE_UNDO;
  13552. int SCANCODE_UNKNOWN;
  13553. int SCANCODE_UP;
  13554. int SCANCODE_V;
  13555. int SCANCODE_VOLUMEDOWN;
  13556. int SCANCODE_VOLUMEUP;
  13557. int SCANCODE_W;
  13558. int SCANCODE_WWW;
  13559. int SCANCODE_X;
  13560. int SCANCODE_Y;
  13561. int SCANCODE_Z;
  13562. uint SCAN_DIRS;
  13563. uint SCAN_FILES;
  13564. uint SCAN_HIDDEN;
  13565. int SHADOWQUALITY_HIGH_16BIT;
  13566. int SHADOWQUALITY_HIGH_24BIT;
  13567. int SHADOWQUALITY_LOW_16BIT;
  13568. int SHADOWQUALITY_LOW_24BIT;
  13569. String SOUND_AMBIENT;
  13570. String SOUND_EFFECT;
  13571. String SOUND_MASTER;
  13572. String SOUND_MUSIC;
  13573. String SOUND_VOICE;
  13574. Color TRANSPARENT;
  13575. uint VO_DISABLE_OCCLUSION;
  13576. uint VO_DISABLE_SHADOWS;
  13577. uint VO_LOW_MATERIAL_QUALITY;
  13578. uint VO_NONE;
  13579. Color WHITE;
  13580. Color YELLOW;
  13581. VariantMap globalVars;